/* ============================================================
   Tabletop Theatre — Interactive Quiz Styles
   All rules are scoped under .tt-quiz so nothing here collides
   with the site's existing .btn / .eyebrow / .card rules.
   Colors, fonts, and spacing reuse the site's own CSS variables
   defined in style.css — this file defines no new variables.
   ============================================================ */

.tt-quiz{ text-align:left; }

/* Sits inside .genre-frame as a sibling to .genre-list — same
   padding as .genre-list, but with no background or border of
   its own, since .genre-frame already supplies those. */
.tt-quiz-wrap{
  padding:clamp(1.25rem, 5vw, 2.75rem) clamp(0.3rem, 4vw, 2.25rem) clamp(0.9rem, 3vw, 2rem);
  background:none; border:none;
}

/* Layout: Quiz 1 and Quiz 2 side by side, waitlist spanning both
   columns beneath them. Single column on narrow screens. */
.tt-quiz-grid{
  display:grid; grid-template-columns:1fr; gap:1.5rem;
}
@media (min-width:900px){
  .tt-quiz-grid{
    grid-template-columns:1fr 1fr;
    align-items:start;
    gap:clamp(1.5rem, 2.5vw, 2.25rem);
  }
  .tt-quiz-waitlist{ grid-column:1 / -1; }
}

.tt-quiz-kicker{ text-align:center; margin-bottom:0.25rem; }
.tt-quiz-kicker h3{ font-size:var(--h2s2); margin-bottom:0.3rem; }
.tt-quiz-kicker p{ color:var(--text-muted-dark); font-size:var(--p-sm); }

/* Card shell — matches .session-preview-card's border/background exactly */
.tt-quiz-card{
  position:relative; margin-top:0.75rem;
  background:hsla(0,0%,97%,0.05); color:var(--text-on-dark);
  border:1.5px solid hsla(0,0%,97%,0.25);
  border-left:3px solid var(--accent-second);
  border-radius:0.4rem;
  min-height:clamp(19rem, 40vw, 23rem);
  display:flex; flex-direction:column;
}
.tt-quiz-card-inner{
  padding:clamp(0.9rem,2vw,1.3rem);
  display:flex; flex-direction:column; flex:1; width:100%;
}
.tt-quiz-card-inner > *{ width:100%; }

/* Progress bar */
.tt-quiz-progress-row{
  display:flex; align-items:center; justify-content:space-between;
  margin-bottom:1.6rem; gap:1rem;
}
.tt-quiz-progress-label{ font-size:var(--label-sm); letter-spacing:0.08em; text-transform:uppercase; opacity:0.65; white-space:nowrap; }
.tt-quiz-progress-track{
  flex:1; height:6px; border-radius:99px; background:hsla(0,0%,100%,0.12); overflow:hidden;
}
.tt-quiz-progress-fill{
  height:100%; background:var(--coral); border-radius:99px;
  transition:width 0.35s ease;
}

/* Question body */
.tt-quiz-body{ display:flex; flex-direction:column; flex:1; }
.tt-quiz-question{ min-height:clamp(9rem, 24vw, 10.5rem); flex:1; }
.tt-quiz-question h4{
  font-family:var(--font-body); font-weight:600; font-size:clamp(0.95rem,1.7vw,1.1rem);
  margin-bottom:1rem; line-height:1.3;
}

.tt-quiz-options{ display:flex; flex-direction:column; gap:0.6rem; }
.tt-quiz-option{
  display:flex; align-items:center; gap:0.8rem;
  text-align:left; width:100%;
  background:hsla(0,0%,100%,0.04);
  border:1.5px solid hsla(0,0%,100%,0.18);
  color:var(--text-on-dark);
  border-radius:0.6rem; padding:0.65rem 0.9rem;
  font-family:inherit; font-size:1.1rem; cursor:pointer;
  transition:background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.tt-quiz-option:hover{ border-color:var(--coral); background:hsla(11,65%,58%,0.1); }
.tt-quiz-option:active{ transform:scale(0.99); }
.tt-quiz-option.is-selected{ border-color:var(--coral); background:hsla(11,65%,58%,0.18); }
.tt-quiz-option-die{
  flex-shrink:0; width:1.6rem; height:1.6rem; border-radius:50%;
  border:1.5px solid hsla(0,0%,100%,0.3);
  display:grid; place-items:center; font-size:0.75rem; opacity:0.6;
}
.tt-quiz-option.is-selected .tt-quiz-option-die{ border-color:var(--coral); background:var(--coral); color:var(--stage); opacity:1; }

.tt-quiz-nav-row{
  display:flex; justify-content:space-between; align-items:center;
  margin-top:2rem; padding-top:1.4rem;
  border-top:1px dashed hsla(0,0%,100%,0.2);
}

/* Buttons — scoped so they never touch the site's real .btn */
.tt-quiz-btn{
  display:inline-flex; align-items:center; gap:0.5rem;
  font-family:var(--font-body); font-weight:600; font-size:0.92rem; padding:0.85rem 1.6rem;
  border:2px solid var(--parchment); border-radius:0.3rem;
  background:var(--coral); color:var(--stage);
  box-shadow:4px 4px 0 hsla(0,0%,100%,0.35);
  cursor:pointer;
  transition:transform 0.15s ease, box-shadow 0.15s ease;
}
.tt-quiz-btn:hover{ transform:translate(2px,2px); box-shadow:2px 2px 0 hsla(0,0%,100%,0.35); }
.tt-quiz-btn:active{ transform:translate(4px,4px); box-shadow:none; }
.tt-quiz-btn:disabled{ opacity:0.35; cursor:not-allowed; transform:none; box-shadow:4px 4px 0 hsla(0,0%,100%,0.35); }
.tt-quiz-btn-ghost{ background:transparent; color:var(--text-on-dark); box-shadow:none; border:2px solid var(--text-on-dark); }
.tt-quiz-btn-ghost:hover{ background:var(--parchment); color:var(--ink); }

/* Intro state */
.tt-quiz-intro{ text-align:center; padding-block:1rem; flex:1; display:flex; flex-direction:column; justify-content:center; align-items:center; }
.tt-quiz-intro p{ opacity:0.90; max-width:30rem; margin:0 auto 1.6rem; }
.tt-quiz-meta{
  display:flex; justify-content:center; gap:1.5rem; margin-bottom:1.8rem;
  font-size:var(--label); letter-spacing:0.05em; text-transform:uppercase; opacity:0.85;
}
@media (max-width:640px){
  .tt-quiz-meta{ flex-direction:column; gap:0.4rem; align-items:center; }
}

/* Results state */
.tt-quiz-results{ display:none; }
.tt-quiz-results.is-active{ display:flex; flex-direction:column; flex:1; }
.tt-quiz-results-head{ text-align:center; margin-bottom:1.8rem; }
.tt-quiz-results-head .eyebrow{ justify-content:center; }
.tt-quiz-results-head h3{ font-family:var(--font-script); font-size:clamp(1.8rem,4vw,2.4rem); color:var(--accent-second); }

.tt-quiz-result-rank{
  display:flex; align-items:center; gap:1rem;
  padding:0.9rem 0; border-bottom:1px dashed hsla(0,0%,100%,0.15);
}
.tt-quiz-result-rank:last-child{ border-bottom:none; }
.tt-quiz-result-rank-num{
  font-family:var(--font-display); font-size:1.1rem; opacity:0.5; width:1.6rem; flex-shrink:0;
}
.tt-quiz-result-rank-body{ flex:1; min-width:0; }
.tt-quiz-result-rank-top{ display:flex; justify-content:space-between; align-items:baseline; gap:0.6rem; margin-bottom:0.35rem; }
.tt-quiz-result-rank-name{ font-weight:600; font-size:1.05rem; }
.tt-quiz-result-rank-pct{ font-size:0.85rem; opacity:0.55; flex-shrink:0; }
.tt-quiz-result-bar-track{ height:8px; border-radius:99px; background:hsla(0,0%,100%,0.1); overflow:hidden; }
.tt-quiz-result-bar-fill{ height:100%; border-radius:99px; transition:width 0.6s ease; }

.tt-quiz-result-rank.is-first .tt-quiz-result-rank-name{ color:var(--accent-second); }
.tt-quiz-result-rank.is-first .tt-quiz-result-rank-num{ opacity:1; color:var(--accent-second); }

.tt-quiz-results-blurb{
  margin-top:1.6rem; padding:1.2rem 1.3rem;
  background:hsla(0,0%,100%,0.04); border-radius:0.6rem;
  border-left:3px solid var(--accent-second);
  font-size:1.1rem; opacity:0.9;
}
.tt-quiz-results-blurb p{ margin:0; }
.tt-quiz-results-blurb p:first-child{ margin-bottom:0.8rem; }
.tt-quiz-results-style-line{
  font-size:0.9rem; font-weight:600;
  color:var(--accent-second); opacity:1;
}

.tt-quiz-restart-row{
  display:flex; justify-content:center; gap:1rem; margin-top:2rem;
  padding-top:1.4rem; border-top:1px dashed hsla(0,0%,100%,0.2);
}

/* Progress dots */
.tt-quiz-dots{ display:flex; gap:0.4rem; justify-content:center; margin-top:1.2rem; }
.tt-quiz-dot{
  width:7px; height:7px; border-radius:50%; background:hsla(0,0%,100%,0.2);
  transition:background 0.2s ease, transform 0.2s ease;
}
.tt-quiz-dot.is-done{ background:var(--accent-second); }
.tt-quiz-dot.is-current{ background:var(--coral); transform:scale(1.3); }

/* ============================================================
   Waitlist card — matches .contact-card / .form-group patterns
   ============================================================ */
.tt-quiz-waitlist-card{
  width:100%;
  background:hsla(0,0%,97%,0.05);
  border:1.5px solid hsla(0,0%,97%,0.25);
  border-left:3px solid var(--accent-second);
  border-radius:0.4rem;
  color:var(--text-on-dark);
  margin-top:0.75rem;
}
.tt-quiz-waitlist-card-inner{ padding:clamp(0.9rem,2vw,1.3rem); }
.tt-quiz-waitlist-head{ margin-bottom:0.85rem; }
.tt-quiz-waitlist-head h4{ font-size:clamp(1.05rem,1.8vw,1.25rem); margin-bottom:0.35rem; font-family:var(--font-body); font-weight:600; }
.tt-quiz-waitlist-head p{ opacity:0.90; font-size:var(--p-sm); }

.tt-quiz-waitlist-tags{ display:flex; flex-wrap:wrap; gap:0.6rem; margin-bottom:1.6rem; }
.tt-quiz-waitlist-tag{
  display:flex; align-items:center; gap:0.5rem;
  border:1.5px solid hsla(0,0%,100%,0.25); border-radius:0.5rem;
  padding:0.6rem 0.9rem; font-size:0.88rem;
}
.tt-quiz-waitlist-tag-dot{ width:0.6rem; height:0.6rem; border-radius:50%; flex-shrink:0; }
.tt-quiz-waitlist-tag b{ font-weight:600; }
.tt-quiz-waitlist-tag .tt-quiz-tag-label{ opacity:0.6; font-size:var(--label-sm); text-transform:uppercase; letter-spacing:0.05em; }

.tt-quiz-form .tt-quiz-form-group{ display:flex; flex-direction:column; margin-bottom:1.4rem; }
.tt-quiz-form label{ font-size:var(--p-sm); margin-bottom:0.5rem; opacity:0.8; font-family:var(--font-body); }
.tt-quiz-form input{
  border:none; border-bottom:1.5px solid hsla(0,0%,97%,0.35);
  background:transparent; color:var(--text-on-dark);
  padding:0.6rem 0; outline:none; font-size:var(--p-sm); width:100%; font-family:inherit;
}
.tt-quiz-form input:focus{ border-color:var(--coral); }
.tt-quiz-form-footer{ display:flex; flex-direction:column; gap:0.8rem; }
.tt-quiz-form-footer button{
  align-self:flex-start;
  border:2px solid var(--parchment); background:var(--coral); color:var(--stage);
  padding:0.75rem 1.6rem; border-radius:0.3rem; font-weight:600; font-family:var(--font-body);
  box-shadow:4px 4px 0 hsla(0,0%,100%,0.35); cursor:pointer;
}
.tt-quiz-form-footer button:hover{ transform:translate(2px,2px); box-shadow:2px 2px 0 hsla(0,0%,100%,0.35); }
.tt-quiz-form-footer p{ opacity:0.90; font-size:var(--p-sm); }

.tt-quiz-waitlist-success{ display:none; text-align:center; padding:1.5rem 0; }
.tt-quiz-waitlist-success.is-active{ display:block; }
.tt-quiz-waitlist-success h4{ font-family:var(--font-script); font-weight:400; font-size:clamp(1.6rem,3vw,2rem); color:var(--accent-second); margin-bottom:0.6rem; }
.tt-quiz-waitlist-success p{ opacity:0.90; max-width:26rem; margin-inline:auto; }
