/* Guided hosting: essentials first, optional rules one click away. */
.quiz-mode:has(#hostSetup:not([hidden])) > .quiz-masthead { display:none; }
#hostSetup { margin-top:26px; padding:24px; }
#hostSetup .host-setup-heading { align-items:flex-start; margin:0 0 24px; padding:0; border:0; background:transparent!important; }
.host-setup-heading h2 { margin:0; font-size:28px; letter-spacing:-.7px; }
.host-setup-heading p { margin:5px 0 0; color:var(--text-soft); font-size:14px; }
.host-setup-heading > button { margin-top:5px; flex:none; }
.host-setup-layout { display:grid; grid-template-columns:minmax(0,1fr) 260px; gap:36px; align-items:start; }
.host-setup-main { min-width:0; }
.host-step { padding-bottom:18px; margin-bottom:18px; border-bottom:1px solid var(--border); }
.host-step-heading { display:flex; align-items:center; gap:10px; margin-bottom:12px; }
.host-step-heading h3 { margin:0; font-size:17px; font-weight:650; letter-spacing:-.2px; }
.host-step-heading > button { margin-left:auto; font-size:13px; }
.host-step-number { display:grid; place-items:center; flex:none; width:26px; height:26px; border-radius:50%; background:var(--accent-soft); color:var(--accent-2); font-size:12px; font-weight:700; }
#hostSetup .setup-grid { gap:16px; }
#hostSetup .setup-grid label { color:var(--text); font-size:13px; font-weight:600; gap:7px; align-content:start; }
#hostSetup .setup-grid select,#hostSetup .setup-grid input { height:auto; min-height:44px; border-radius:8px; width:100%; font-size:14px; font-weight:400; }
#hostSetup .setup-grid small { font-size:12px; line-height:1.45; color:var(--text-soft); font-weight:400; }
#hostSetup .host-question-fields { grid-template-columns:minmax(0,1fr) 155px; }
#hostSetup .host-set-summary { min-height:0; padding:0; margin:9px 0 0; border:0; background:transparent!important; font-size:12px; color:var(--text-soft)!important; }
#hostSetup .mode-picker { grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px; margin:0; }
#hostSetup .game-mode-choice { position:relative; padding:13px 11px; min-height:86px; grid-template-columns:28px minmax(0,1fr); align-content:center; gap:4px 9px; background:var(--surface)!important; border:1px solid var(--border); border-radius:10px; color:var(--text); }
#hostSetup .game-mode-choice svg { width:28px; height:28px; margin:0; grid-row:1/3; align-self:center; }
#hostSetup .game-mode-choice strong { grid-column:2; font-size:14px; font-weight:650; padding-right:7px; }
#hostSetup .game-mode-choice span { grid-column:2; font-size:12px; line-height:1.4; }
#hostSetup .game-mode-choice:hover { transform:none; border-color:var(--accent); background:var(--hover)!important; }
#hostSetup .game-mode-choice[aria-pressed=true] { border-color:var(--accent); box-shadow:inset 0 0 0 1px var(--accent); background:var(--accent-soft)!important; }
#hostSetup .game-mode-choice[aria-pressed=true]::after { content:"✓"; position:absolute; right:10px; top:10px; font-size:14px; color:var(--accent-2); }
#hostSetup .mode-help { min-height:0; padding:0; margin:12px 0 0; border:0; background:transparent!important; color:var(--text-soft)!important; font-size:13px; line-height:1.6; }
.host-length-note { margin:9px 0 0; color:var(--text-soft); font-size:12px; line-height:1.6; }
.host-more-options { border-bottom:1px solid var(--border); }
.host-more-options > summary { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:0 0 20px; cursor:pointer; list-style:none; }
.host-more-options > summary::-webkit-details-marker { display:none; }
.host-more-options summary strong { font-size:14px; }
.host-more-options summary small { display:block; font-size:12px; color:var(--text-soft); margin-top:3px; }
.host-more-options summary svg { width:20px; height:20px; color:var(--text-soft); transition:transform .18s ease; }
.host-more-options[open] summary svg { transform:rotate(180deg); }
.host-options-body { padding-bottom:20px; }
.host-option-group + .host-option-group { padding-top:18px; margin-top:18px; border-top:1px solid var(--border); }
.host-option-group h4 { margin:0 0 12px; font-size:14px; }
#hostSetup .settings-note { font-size:12px; margin:9px 0 0; }
.host-preset-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:22px; }
.host-preset-actions button { font-size:12px; }
#presetStatus { color:var(--text-soft); font-size:12px; flex-basis:100%; }
.host-ready { position:sticky; top:24px; min-width:0; padding:22px; background:var(--surface-2); border:1px solid var(--border); border-radius:12px; }
.host-ready h3 { font-size:12px; font-weight:600; color:var(--text-soft); margin:0 0 12px; }
#hostReadyMode { display:block; font-size:22px; letter-spacing:-.5px; line-height:1.25; }
#hostReadySet { color:var(--text-soft); font-size:13px; margin:6px 0 18px; overflow-wrap:anywhere; }
#hostReadyDetails { margin:0; display:grid; gap:12px; }
#hostReadyDetails > div { display:flex; justify-content:space-between; align-items:baseline; gap:10px; font-size:12px; }
#hostReadyDetails dt { color:var(--text-soft); }
#hostReadyDetails dd { text-align:right; margin:0; font-weight:600; overflow-wrap:anywhere; }
.host-ready-extras { border-top:1px solid var(--border); padding-top:14px; margin:16px 0 0; font-size:12px; color:var(--text-soft); line-height:1.7; }
#hostSetup #createRoomButton { width:100%; min-height:46px; margin:20px 0 0; display:flex; align-items:center; justify-content:space-between; gap:8px; background:var(--accent-2)!important; color:#fff!important; border-color:var(--accent-2)!important; font-size:14px; }
:root[data-theme=dark] #hostSetup #createRoomButton { background:#b68aef!important; border-color:#b68aef!important; color:#211236!important; }
#hostSetup #createRoomButton:hover:enabled { filter:brightness(.94); }
.host-ready-note { margin:9px 0 0; font-size:11px; color:var(--text-soft); line-height:1.5; }
.host-try-button { font-size:12px; text-align:left; margin:17px 0 0; padding:0; min-height:32px; }
#hostSetup #hostStatus { font-size:12px; margin:14px 0 0; min-height:0; overflow-wrap:anywhere; }
#hostSetup #hostStatus:empty { display:none; }
#hostSetup [aria-invalid=true] { outline:2px solid var(--danger); outline-offset:1px; }
@media(max-width:900px) { .host-setup-layout { grid-template-columns:minmax(0,1fr) 240px; gap:24px; } #hostSetup .mode-picker { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:740px) {
  #hostSetup { padding:20px; margin-top:18px; }
  #hostSetup .host-setup-heading { margin-bottom:24px; gap:12px; }
  .host-setup-heading h2 { font-size:24px; }
  .host-setup-heading p { font-size:12px; }
  .host-setup-heading > button { font-size:12px; max-width:90px; }
  .host-setup-layout { grid-template-columns:minmax(0,1fr); gap:24px; }
  .host-ready { position:static; padding:20px; }
  #hostSetup #createRoomButton { position:fixed; left:24px; right:24px; bottom:16px; width:calc(100% - 48px); z-index:20; margin:0; box-shadow:0 0 0 8px var(--page)!important; }
  body:has(#hostSetup:not([hidden])) .page-shell { padding-bottom:76px; }
  #hostSetup .host-question-fields { grid-template-columns:minmax(0,1fr); }
  #hostSetup .setup-grid { grid-template-columns:minmax(0,1fr); gap:13px; }
  #hostSetup .mode-picker { grid-template-columns:repeat(2,minmax(0,1fr)); }
  #hostSetup .game-mode-choice { min-height:105px; grid-template-columns:minmax(0,1fr); }
  #hostSetup .game-mode-choice svg { grid-row:auto; margin-bottom:5px; }
  #hostSetup .game-mode-choice strong,#hostSetup .game-mode-choice span { grid-column:1; }
  .host-step { padding-bottom:20px; margin-bottom:20px; }
  .host-step-heading h3 { font-size:16px; }
}
@media(prefers-reduced-motion:reduce) { .host-more-options summary svg { transition:none; } }
