/* Required player details, then one manageable setup step at a time. */
.audience-view.identity-entry-view { min-height: 0; padding: clamp(24px, 5vw, 48px) 0; }
.audience-panel.identity-entry-panel { max-width: 660px; }
.identity-entry-panel > h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.player-identity-form { display: grid; gap: 22px; margin: 24px 0; padding: clamp(20px, 4vw, 32px); border: 1px solid var(--line); border-radius: 20px; background: var(--panel); box-shadow: var(--shadow); }
.identity-entry-field { display: grid; gap: 7px; min-width: 0; }
.identity-entry-field label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; color: var(--paper); font-weight: 800; }
.identity-entry-field label > span { font-size: .8125rem; font-weight: 500; color: var(--muted); }
.player-identity-form input { width: 100%; min-height: 48px; font-size: 1rem; }
.player-identity-form input[aria-invalid="true"] { border: 2px solid var(--red); }
.identity-entry-field small, .identity-privacy-note { font-size: .875rem; line-height: 1.6; color: var(--muted); }
.identity-privacy-note, .identity-field-error { margin: 0; }
.identity-field-error { font-size: .875rem; color: var(--red); }
.player-identity-form .primary-button { width: 100%; white-space: normal; padding: 12px 16px; }
.welcome-player-details { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 12px; margin: 16px auto 0; color: var(--paper); }
.welcome-player-details > span { min-width: 0; overflow-wrap: anywhere; text-align: center; }
.audience-view { padding: clamp(24px, 4vw, 48px) 0; }
.audience-panel { max-width: 880px; }
.audience-panel > h1 { margin: 12px auto; font-size: clamp(1.85rem, 4vw, 3rem); line-height: 1.15; }
.audience-panel > p { font-size: 1rem; line-height: 1.5; }
.audience-options { gap: 18px; margin-top: 26px; }
.audience-card { min-height: 0; padding: 24px; border-radius: 18px; box-shadow: none; }
.audience-card > .audience-card-top { display: flex; align-items: center; gap: 12px; font-size: .875rem; letter-spacing: .045em; }
.audience-card-top img { flex-shrink: 0; }
.audience-card > strong { font-size: 2rem; line-height: 1.15; margin-top: 16px; letter-spacing: -.025em; }
.audience-card > p { margin: 10px 0 20px; font-size: 1rem; line-height: 1.5; }
.audience-card > b { display: flex; justify-content: space-between; align-items: center; width: 100%; border-top: 1px solid #ffffff30; padding-top: 16px; font-size: 1rem; }
.high-school-card { border-top: 3px solid #d8ff3f; }
.high-school-card > b { color: #8b5b09; }
.adult-card { border-top: 3px solid #89ecd7; }
.audience-panel > .welcome-next { margin: 16px auto 0; color: var(--muted); font-size: .875rem; }
.welcome-resume { display: block; margin: 20px auto 0; width: min(100%, 440px); white-space: normal; }
.welcome-help { display: flex; align-items: flex-start; gap: 24px; border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }
.welcome-help .demo-invite { flex: 1; margin: 0; padding: 10px; min-width: 0; background: transparent; }
.welcome-help .demo-thumbnail { flex-basis: 72px; }
.welcome-help .demo-thumbnail img { width: 72px; height: 48px; }
.welcome-explainer { flex: 1; min-width: 0; }
.welcome-explainer summary, .setup-extra-help summary { padding: 14px 0; cursor: pointer; font-size: 1rem; font-weight: 700; color: var(--muted); }
.welcome-explainer p { font-size: 1rem; color: var(--muted); line-height: 1.6; margin: 8px 0 16px; }
body[data-view="setup"] .top-actions > button:not(#switchVersionButton):not(#rulesButton):not(#scoresButton) { display: none; }
body[data-view="setup"] .adventure-save-bar { display: none; }
.setup-view { display: block; }
.setup-copy { max-width: 780px; }
.setup-copy > h1 { margin: 8px 0 10px; font-size: clamp(1.8rem, 4vw, 2.4rem); }
.setup-copy > .setup-lead { margin: 0; font-size: 1rem; }
.setup-view .journey-board { display: none; }
.setup-checklist-panel { margin: 24px 0; padding: 0; border: 0; background: transparent; }
.setup-checklist-panel > p { margin: 0 0 10px; font-size: .875rem; color: var(--muted); }
#setupChecklist { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
#setupChecklist button { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2px 8px; min-height: 68px; padding: 10px 12px; background: var(--panel); color: var(--muted); border: 1px solid var(--line); font-size: 1rem; }
#setupChecklist button > span { font-weight: 750; color: var(--muted); }
#setupChecklist button > b { font-size: .875rem; font-weight: 400; color: var(--muted); }
#setupChecklist button.setup-ready { background: var(--panel); border-color: var(--line); }
#setupChecklist button.setup-ready > span { color: var(--aqua); }
#setupChecklist button[aria-current="step"] { border-color: #89ecd7; box-shadow: inset 0 0 0 2px #89ecd7; }
.setup-step > h2 { margin: 0 0 16px; font-size: 1.4rem; line-height: 1.35; scroll-margin-top: 18px; }
.setup-step > p { font-size: 1rem; line-height: 1.6; color: var(--muted); }
.setup-step .setup-block { margin-top: 24px; }
.setup-step .experience-picker button { min-width: 0; padding: 16px; text-align: left; }
.experience-picker b { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.experience-picker b small { padding: 3px 7px; border-radius: 6px; background: #c9f6e7; color: var(--paper); font-size: .875rem; font-weight: 700; }
.setup-step .experience-picker span { margin-top: 6px; font-size: 1rem; }
.setup-step #experienceStatus:empty { display: none; }
.setup-step .mode-card { min-height: 92px; padding: 14px 10px; }
.setup-step .mode-card b { font-size: 1.1rem; }
.setup-step .mode-card span { font-size: .875rem; }
.setup-step-note { margin: 16px 0 0; }
.setup-step .profession-field { margin: 0; border: 0; padding: 0; min-width: 0; }
.setup-step > .profession-field > legend { position: absolute; width: 1px; height: 1px; padding: 0; clip-path: inset(50%); overflow: hidden; }
.setup-step .profession-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.setup-step .personal-goal-setup { margin-top: 0; }
.setup-step .personal-goal-setup > h2 { font-size: 1.1rem; }
.setup-flow-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.setup-flow-actions > button { width: auto; min-width: 120px; }
.setup-flow-actions .primary-button { margin-left: auto; }
.setup-extra-help { margin-top: 18px; }
.setup-extra-help button { margin: 0 8px 8px 0; white-space: normal; }
.setup-copy > .save-note { font-size: .875rem; line-height: 1.6; color: var(--muted); }
.setup-copy > #continueButton { margin-bottom: 20px; }
@media (max-width: 680px) {
  .audience-options { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
  .audience-card { padding: 18px; }
  .audience-card > .audience-card-top { font-size: .875rem; }
  .audience-card-top img { width: 28px; height: 28px; }
  .audience-card > strong { margin-top: 10px; font-size: 1.65rem; }
  .audience-card > p { margin: 8px 0 12px; }
  .audience-card > b { padding-top: 12px; }
  .welcome-help { flex-direction: column; gap: 8px; margin-top: 20px; }
  .welcome-help > * { width: 100%; }
  .welcome-help .demo-invite { max-width: none; }
  #setupChecklist { gap: 6px; }
  #setupChecklist button { padding: 10px 4px; grid-template-columns: 1fr; text-align: center; justify-items: center; font-size: .875rem; }
  #setupChecklist button > b { grid-column: 1; }
  .setup-step .experience-picker { grid-template-columns: 1fr; }
  .setup-step .experience-picker button { min-height: 0; padding: 14px; }
  .setup-step .mode-picker { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .setup-step .mode-card { white-space: normal; }
  .setup-flow-actions > button { min-width: 0; }
}
@media (max-width: 380px) {
  .setup-step .mode-picker { grid-template-columns: 1fr; }
  .setup-step .mode-card { min-height: 0; text-align: left; }
  .setup-step .profession-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .audience-card { transition: none; }
  .audience-card:hover { transform: none; }
}

.audience-card-top img { padding: 6px; box-sizing: content-box; background: #c9f6e7; border-radius: 10px; }
.setup-step .profession-choice b { font-size: 1rem; line-height: 1.4; }
.setup-step .profession-choice { min-height: 72px; }
.setup-step #professionHint, .setup-step #professionDescription { font-size: 1rem; line-height: 1.6; color: var(--muted); }
.setup-step .mode-card b, .setup-step .mode-card span { display: block; margin-left: 0; }
.setup-flow-actions { position: sticky; bottom: 0; z-index: 2; padding: 16px 0; background: var(--panel); }
body[data-audience="high-school"] .setup-flow-actions { background: var(--panel); }
#setupChecklist { scroll-margin-top: 16px; }
@media (max-width: 680px) {
  .setup-step .mode-picker { grid-template-columns: 1fr; gap: 8px; }
  .setup-step .mode-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; padding: 14px 16px; text-align: left; }
  .setup-step .mode-card b { flex-shrink: 0; }
  .setup-step .mode-card span { margin-top: 0; max-width: 65%; text-align: right; line-height: 1.45; }
}
