/* Feature-only styles: the landing keeps its original stylesheet and behavior. */
.playtest-page { overflow-x: visible; }
.playtest-page [hidden] { display: none !important; }
.playtest-page a:not(.btn):not(.nav__brand) { color: var(--gold); }
.playtest-page :focus-visible { outline: 3px solid var(--gold); outline-offset: 5px; }
.playtest-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 24px; flex-wrap: wrap; }
.playtest-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.playtest-main { padding-block: 40px 80px; min-height: 75vh; }
.playtest-intro { padding-bottom: 26px; border-bottom: 2px solid var(--ember); margin-bottom: 28px; }
.playtest-intro .lead { margin-bottom: 16px; }
.playtest-sprite { width: 84px; margin-bottom: 22px; }
.question { min-width: 0; padding: 22px 24px 18px; margin: 0 0 28px; border: 1px solid rgba(246,232,214,.25); border-radius: var(--r); background: var(--char); }
.question legend { font-size: 19px; font-weight: 900; padding: 0 8px; max-width: 100%; }
.choices { display: flex; gap: 10px; flex-wrap: wrap; }
.choice { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 15px; border: 2px solid rgba(246,232,214,.3); border-radius: 10px; cursor: pointer; }
.choice:hover { border-color: var(--ember); }
.choice:has(input:checked) { border-color: var(--gold); background: var(--char2); font-weight: 900; }
.choice:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.choice input { accent-color: var(--gold); width: 18px; height: 18px; flex-shrink: 0; margin: 0; }
.ratings { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.ratings .choice { justify-content: center; padding: 10px 5px; }
.playtest-page input:not([type=radio]), .playtest-page textarea, .playtest-page select { width: 100%; min-width: 0; border: 2px solid rgba(246,232,214,.35); border-radius: 10px; background: var(--coal); color: var(--cream); padding: 12px 14px; font: inherit; }
.playtest-page input[type=number] { max-width: 240px; }
.playtest-page textarea { resize: vertical; min-height: 140px; }
.playtest-page [aria-invalid=true]:not([type=radio]) { border-color: var(--gold); }
.field-hint { font-size: 15px; color: var(--cream-dim); margin: 0 0 14px; }
textarea + .field-hint, input + .field-hint { margin-top: 10px; }
.field-error { color: var(--gold); font-weight: 700; margin: 12px 0 0; }
.field-error:empty { display: none; }
.feedback { color: var(--gold); overflow-wrap: anywhere; }
.feedback:empty { display: none; }
.submit-area { padding: 0 0 20px; }
.playtest-page .btn:disabled { opacity: .65; cursor: wait; transform: none; }
.playtest-panel { padding: 26px; border-radius: var(--r); background: var(--char); border: 1px solid rgba(246,232,214,.22); }
.gate { max-width: 540px; }
.gate label { display: block; margin-bottom: 8px; font-weight: 900; }
.gate .btn { margin-top: 22px; }
.results-tools { display: flex; gap: 20px; align-items: end; flex-wrap: wrap; margin-bottom: 28px; }
.results-tools label { display: grid; gap: 8px; flex: 1; min-width: 0; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-block: 24px; }
.metric { margin: 0; padding: 22px; background: var(--char); border-radius: var(--r); }
.metric dt { color: var(--cream-dim); }
.metric dd { margin: 8px 0 0; font: 28px "Bungee", sans-serif; color: var(--gold); }
.results-section { margin-block: 36px; }
.results-section h2 { font: 23px "Bungee", sans-serif; }
.rating-summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px 20px; }
.rating-summary dt, .rating-summary dd { padding-block: 12px; margin: 0; border-bottom: 1px solid rgba(246,232,214,.2); }
.rating-summary dd { color: var(--gold); font-weight: 900; }
.distribution { display: grid; gap: 14px; padding: 0; list-style: none; }
.distribution span { display: block; }
.distribution progress { width: 100%; height: 12px; accent-color: var(--ember); }
.response { border-top: 1px solid rgba(246,232,214,.25); padding-block: 22px; overflow-wrap: anywhere; }
.response h3 { color: var(--gold); font-size: 16px; margin: 0 0 16px; }
.response p { white-space: pre-wrap; margin: 6px 0 20px; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: fixed; z-index: 100; top: 12px; left: 12px; background: var(--coal); padding: 14px; }
@media (max-width:620px) {
  .playtest-main { padding-top: 24px; }
  .question { padding: 18px 14px; }
  .question legend { font-size: 18px; }
  .ratings { gap: 6px; }
  .ratings .choice { flex-direction: column; gap: 4px; }
  .choices:not(.ratings) .choice { flex-grow: 1; }
  .playtest-page .btn { max-width: 100%; white-space: normal; }
  .submit-area .btn { width: 100%; }
  .metrics { grid-template-columns: minmax(0, 1fr); }
  .playtest-panel { padding: 20px; }
}
/* Survey: a continuation of the landing (card surfaces, keycaps, ember glow). */
.survey-page { background: radial-gradient(900px 520px at 88% -140px, rgba(255,122,24,.16), transparent 70%), var(--coal); }
.survey-page .playtest-main { padding-block: 8px 96px; }
.survey-page .playtest-intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px; padding: 24px 0 36px; margin: 0; border: 0; }
.survey-page .playtest-intro .h2 { font-size: clamp(34px, 5.4vw, 56px); margin: 14px 0 16px; }
.survey-page .playtest-intro .lead { margin: 0 0 24px; max-width: 44ch; }
.survey-page .playtest-sprite { width: 132px; height: auto; margin: 0 8px 0 0; filter: drop-shadow(0 18px 16px rgba(0,0,0,.55)); animation: floaty 3.4s ease-in-out infinite; }
.survey-meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14px; color: var(--cream-dim); }
.survey-meta li { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(246,232,214,.16); background: rgba(246,232,214,.04); }
.survey-meta b { font: 13px "Bungee", sans-serif; color: var(--gold); margin-right: 4px; }

.survey-progress { position: sticky; top: 0; z-index: 5; margin: 0 -16px 28px; padding: 14px 16px 12px; background: rgba(16,12,10,.88); backdrop-filter: blur(12px) saturate(1.3); border-bottom: 1px solid rgba(246,232,214,.08); }
.survey-progress > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 8px; color: var(--cream-dim); }
.survey-progress strong { color: var(--gold); font-variant-numeric: tabular-nums; }
.survey-progress progress { display: block; width: 100%; height: 8px; border: 0; border-radius: 999px; overflow: hidden; background: var(--char2); accent-color: var(--ember); }
.survey-progress progress::-webkit-progress-bar { background: var(--char2); }
.survey-progress progress::-webkit-progress-value { background: linear-gradient(90deg, var(--fire), var(--ember), var(--gold)); transition: width .4s var(--ease); }
.survey-progress progress::-moz-progress-bar { background: linear-gradient(90deg, var(--fire), var(--ember), var(--gold)); }

.survey-block { margin: 0 0 28px; padding: 4px 28px 8px; background: linear-gradient(160deg, #241b15, #181310); border: 1px solid rgba(246,232,214,.1); border-radius: var(--r); }
.survey-section-heading { display: flex; align-items: center; gap: 16px; padding: 22px 0; margin-bottom: 26px; border-bottom: 1px dashed rgba(246,232,214,.14); }
.survey-section-heading img { width: 56px; height: 56px; flex-shrink: 0; filter: drop-shadow(0 6px 10px rgba(0,0,0,.5)); }
.survey-section-heading h2 { margin: 0 0 2px; font: 22px "Bungee", sans-serif; color: var(--gold); }
.survey-section-heading p { margin: 0; color: var(--cream-dim); font-size: 15px; }

.survey-page .question { position: relative; border: 0; border-bottom: 1px solid rgba(246,232,214,.08); border-radius: 0; background: transparent; padding: 0 0 26px; margin: 0 0 26px; scroll-margin-top: 100px; }
.survey-block .question:last-child { border-bottom: 0; margin-bottom: 0; }
.survey-page .question legend { width: 100%; padding: 0 0 16px; display: flex; align-items: baseline; gap: 14px; font-size: 18px; font-weight: 900; line-height: 1.45; }
.question-number { flex-shrink: 0; display: inline-grid; place-items: center; min-width: 36px; height: 28px; padding: 0 6px; border-radius: 8px; background: #120e0b; border: 1px solid rgba(246,232,214,.22); box-shadow: 0 3px 0 rgba(246,232,214,.12); font: 12px "Bungee", sans-serif; color: var(--cream-dim); transform: translateY(-3px); transition: background .2s, color .2s, border-color .2s; }
.is-complete .question-number { background: var(--gold); border-color: var(--gold); color: var(--coal); box-shadow: 0 3px 0 #8a5a00; }
.survey-page .question.has-error legend { color: var(--gold); }

.survey-page .choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
.survey-page .choice { position: relative; min-height: 52px; padding: 12px 16px; background: #120e0b; border: 1px solid rgba(246,232,214,.2); border-radius: 12px; font-weight: 700; transition: border-color .18s var(--ease), background .18s, transform .18s var(--ease), box-shadow .18s; }
.survey-page .choice:hover { border-color: rgba(255,122,24,.7); }
.survey-page .choice:active { transform: translateY(1px); }
.survey-page .choice input { appearance: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(246,232,214,.45); transition: border-color .18s, background .18s; }
.survey-page .choice input:checked { border-color: #1a0d04; background: radial-gradient(circle, #1a0d04 38%, transparent 44%); }
.survey-page .choice:has(input:checked) { background: linear-gradient(180deg, #ffd27a, var(--gold)); color: #1a0d04; border-color: var(--gold); box-shadow: 0 4px 0 #8a5a00; font-weight: 900; }

.survey-page .ratings { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.survey-page .ratings .choice { min-height: 60px; justify-content: center; padding: 8px; font: 22px "Bungee", sans-serif; box-shadow: 0 4px 0 rgba(246,232,214,.1); }
.survey-page .ratings .choice:hover { transform: translateY(-2px); }
.survey-page .ratings input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.survey-page .ratings .choice:has(input:checked) { transform: translateY(2px); box-shadow: 0 2px 0 #8a5a00; }
.survey-page .scale-ends { display: flex; justify-content: space-between; gap: 18px; margin: 12px 2px 0; font-size: 13.5px; }

.survey-page input:not([type=radio]), .survey-page textarea { background: #120e0b; border: 1px solid rgba(246,232,214,.24); border-radius: 12px; padding: 14px 16px; transition: border-color .18s, box-shadow .18s; }
.survey-page input:not([type=radio]):focus, .survey-page textarea:focus { border-color: var(--ember); box-shadow: 0 0 0 4px rgba(255,122,24,.18); }
.survey-page .field-error { margin-top: 12px; padding: 10px 14px; border-radius: 10px; background: rgba(255,192,67,.08); border: 1px solid rgba(255,192,67,.35); font-size: 15px; }
.text-count { display: block; text-align: right; color: var(--cream-dim); font-size: 13px; font-variant-numeric: tabular-nums; }
.survey-page input, .survey-page textarea { scroll-margin-block: 120px 40px; }

.survey-page .submit-area, .survey-page #success { display: grid; justify-items: center; text-align: center; padding: 40px 28px; background: radial-gradient(420px 220px at 50% 0, rgba(255,122,24,.2), transparent 70%), linear-gradient(160deg, #241b15, #181310); border: 1px solid rgba(255,122,24,.3); border-radius: var(--r); }
.survey-page .submit-area img, .survey-page #success img { width: 64px; height: auto; margin-bottom: 14px; animation: floaty 3s ease-in-out infinite; }
.survey-page #success img { width: 96px; }
.survey-page .submit-area h2 { margin: 0 0 8px; font: 24px "Bungee", sans-serif; }
.survey-page .submit-area > p { margin: 0 0 22px; color: var(--cream-dim); }
.survey-page .submit-area .feedback { color: var(--gold); max-width: 48ch; }
.survey-page #success p { color: var(--cream-dim); margin: 0 0 24px; }

@media (max-width:620px) {
  .survey-page .playtest-intro { grid-template-columns: minmax(0, 1fr); padding-top: 8px; }
  .survey-page .playtest-sprite { display: none; }
  .survey-block { padding: 2px 16px 6px; }
  .survey-section-heading img { width: 44px; height: 44px; }
  .survey-section-heading h2 { font-size: 19px; }
  .survey-page .question legend { gap: 10px; font-size: 17px; }
  .survey-page .choices { grid-template-columns: minmax(0, 1fr); }
  .survey-page .choices:has(> :nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .survey-page .ratings { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
  .survey-page .ratings .choice { min-height: 54px; font-size: 19px; }
  .survey-page .submit-area { padding: 30px 18px; }
}
