/* Teams Pack Builder — screens on top of style.css's design system */

.builder-screen { display: none; }
.builder-screen.active { display: block; }

.builder-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 56px var(--side) 0;
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.builder-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.back-link {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-family: 'Courier Prime', monospace;
  font-size: 16px;
  color: var(--ink);
}
.back-link:hover { color: var(--red); }

.progress { display: flex; gap: 6px; align-items: center; }
.progress .seg { width: 40px; height: 6px; background: #D6D0C3; }
.progress .seg.done { background: var(--red); }
.progress .step-label { margin-left: 10px; font-family: 'Courier Prime', monospace; font-size: 15px; }

.builder-q-head { display: flex; flex-direction: column; gap: 14px; }
.builder-q-head h1 {
  font-size: clamp(44px, 6vw, 80px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  max-width: 16ch;
}

.taste-head {
  flex-direction: row !important;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: 24px;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 24px;
  width: 100%;
}

.option-card {
  border: 0;
  cursor: pointer;
  text-align: left;
  background: var(--white);
  color: var(--ink);
  padding: 32px 28px 26px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 170px;
  transition: transform 200ms, background .15s, color .15s;
}
.option-card:hover { transform: rotate(0deg) translateY(-3px); }
.option-card.selected { background: var(--red); color: var(--white); }

.option-card .label {
  font-family: 'Alfa Slab One', serif;
  font-size: 26px;
  line-height: 1.02;
  text-transform: uppercase;
}
.option-card .sub { font-size: 16px; line-height: 1.45; }
.option-card .hint { margin-top: auto; font-family: 'Courier Prime', monospace; font-size: 14px; }

.taste-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 20px;
  width: 100%;
}

.taste-tile {
  border: 0;
  padding: 0;
  cursor: pointer;
  background: var(--white);
  text-align: left;
  box-shadow: 0 8px 18px rgba(0,0,0,0.14);
  outline: 3px solid transparent;
  outline-offset: 4px;
  display: flex;
  flex-direction: column;
}
.taste-tile.picked { outline-color: var(--red); }
.taste-tile.dimmed { opacity: 0.45; cursor: default; }
.taste-tile .photo { aspect-ratio: 1; overflow: hidden; background: #EAE7E0; }
.taste-tile .photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.14); }
.taste-tile .cap {
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.taste-tile .cap .name { font-family: 'Courier Prime', monospace; font-size: 14px; }
.taste-tile .cap .mark { font-weight: 700; font-size: 14px; color: var(--red); }

.taste-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.generating-wrap {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}
.generating-wrap > .inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 64px var(--side);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 48px;
  width: 100%;
}

.flipper.small { width: min(340px, 80%); aspect-ratio: 340 / 400; margin: 0 auto; }

.generating-copy { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.generating-line {
  font-family: 'Zilla Slab', serif;
  font-weight: 700;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1;
}

.result-hero.hero-inner { gap: 22px; padding-bottom: 72px; }

.result-note-row {
  max-width: var(--max);
  margin: 0 auto;
  padding: 88px var(--side) 96px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 56px;
  align-items: center;
}

.note-card {
  background: var(--white);
  padding: 56px clamp(28px, 4vw, 52px) 36px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  transform: rotate(-1deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 24px;
}
.note-text {
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.08;
  text-wrap: balance;
}

.result-cta-col { display: flex; flex-direction: column; gap: 20px; }
.result-cta-col h2 { font-size: clamp(36px, 4vw, 52px); line-height: 0.95; }
.result-cta-col p { margin: 0; font-size: 18px; line-height: 1.55; max-width: 46ch; }

.result-links { display: flex; gap: 20px; flex-wrap: wrap; font-family: 'Courier Prime', monospace; font-size: 15px; }
.result-links button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  color: var(--ink);
  font-size: 15px;
  font-family: inherit;
}

.gate-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--muted); }

.sent-summary {
  border-top: 2px dashed var(--ink);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: 'Courier Prime', monospace;
  font-size: 15px;
}
