:root {
  --ink: #0b1739; --paper: #f4f7fb; --lime: #cbed5b; --orange: #ff681f;
  --blue: #1264d7; --cyan: #17c9e8; --muted: #627087; --line: rgba(11,23,57,.14);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; overflow-x: hidden; color: var(--ink); background: var(--paper); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.noise { position: fixed; inset: 0; pointer-events: none; opacity: .35; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 140 140' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E"); }
.shell { max-width: 1180px; margin: auto; padding: 28px; position: relative; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 46px; }
.top-actions { display: flex; align-items: center; gap: 9px; }
.player-top-status { gap: 7px; }
.player-top-name { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.player-top-stat { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.player-top-stat b { color: var(--ink); font-size: 14px; }
.home-link { padding: 8px 13px; border-radius: 999px; color: var(--ink); font-size: 13px; font-weight: 850; text-decoration: none; }
.home-link:hover, .home-link.active { background: var(--ink); color: white; }
.tutorial-top-button { border: 1px solid var(--blue); border-radius: 999px; padding: 8px 13px; background: #eef0ff; color: var(--blue); font-size: 13px; font-weight: 900; }
.tutorial-top-button:hover { background: var(--blue); color: white; }
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); color: white; font-size: 14px; font-weight: 750; letter-spacing: .02em; box-shadow: 0 0 0 3px rgba(23,201,232,.35); }
.account-menu > div { position: absolute; z-index: 30; top: calc(100% + 9px); right: 0; display: grid; width: 230px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: 0 18px 45px rgba(11,23,57,.18); }
.account-menu strong,.account-menu small { padding: 2px 8px; overflow: hidden; text-overflow: ellipsis; }
.account-menu small { padding-bottom: 10px; color: var(--muted); }
.account-menu a,.account-menu button { border: 0; border-radius: 9px; padding: 10px 8px; background: transparent; color: var(--ink); text-align: left; text-decoration: none; font-weight: 800; }
.account-menu a:hover,.account-menu button:hover { background: var(--paper); }
.brand { font-weight: 950; font-size: 20px; letter-spacing: -.03em; }
.brand i { display: inline-block; width: 15px; height: 15px; background: var(--orange); border: 3px solid #ffd08a; border-radius: 50%; margin-right: 10px; box-shadow: 0 0 0 3px rgba(23,201,232,.35); vertical-align: -2px; }
.pill { border: 1px solid var(--line); padding: 8px 13px; border-radius: 999px; font-size: 13px; font-weight: 750; background: rgba(255,255,255,.45); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ab66d; margin-right: 7px; }
.host-grid { display: grid; grid-template-columns: 1.4fr .85fr; gap: 26px; }
.eyebrow { color: var(--blue); text-transform: uppercase; font-size: 12px; letter-spacing: .14em; font-weight: 900; }
h1 { font-size: clamp(46px, 7vw, 88px); line-height: .95; letter-spacing: -.065em; margin: 13px 0 24px; max-width: 790px; }
h2 { font-size: 30px; margin: 0 0 8px; letter-spacing: -.035em; }
.lead { color: var(--muted); font-size: 18px; max-width: 620px; }
.card { background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 24px; padding: 25px; box-shadow: 0 14px 45px rgba(38,45,41,.07); }
.join-card { align-self: start; transform: rotate(1deg); }
.room { font-size: 37px; letter-spacing: .08em; font-weight: 950; margin: 10px 0; }
.url { padding: 12px; border-radius: 11px; background: #ebe7dc; word-break: break-all; font: 13px ui-monospace, monospace; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.btn { border: 0; border-radius: 13px; padding: 13px 18px; background: var(--ink); color: white; font-weight: 850; box-shadow: 0 4px 0 rgba(0,0,0,.18); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 rgba(0,0,0,.18); }
.btn.alt { background: var(--lime); color: var(--ink); }
.btn.orange { background: var(--orange); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.players { margin-top: 35px; }
.player-list { display: flex; gap: 10px; flex-wrap: wrap; }
.player { background: white; border: 1px solid var(--line); padding: 10px 14px; border-radius: 14px; font-weight: 760; }
.empty { color: var(--muted); border: 1px dashed var(--line); border-radius: 14px; padding: 18px; }
.question { max-width: 850px; margin: 20px auto; }
.question h1 { font-size: clamp(38px, 6vw, 68px); }
.answers { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; margin-top: 30px; }
.answer { min-height: 88px; text-align: left; border: 2px solid transparent; border-radius: 18px; padding: 18px; background: white; color: var(--ink); font-weight: 850; font-size: 18px; box-shadow: 0 5px 0 var(--line); }
.answer:hover { border-color: var(--blue); }
.answer.selected { background: var(--blue); color: white; }
.answer.correct { background: var(--lime); color: var(--ink); }
.answer.wrong { opacity: .42; }
.host-answer-help { margin: 18px 0 -15px; color: var(--muted); font-size: 14px; font-weight: 750; }
.host-answer { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; width: 100%; cursor: pointer; }
.host-answer span { grid-row: 1 / 3; }
.host-answer small { color: var(--muted); text-align: right; text-transform: uppercase; letter-spacing: .06em; }
.host-answer strong { color: #267044; text-align: right; font-size: 13px; }
.host-answer.accepted-answer { border-color: #65a832; background: var(--lime); }
.host-answer.original-answer:not(.accepted-answer) { border-color: var(--orange); background: #fff4df; }
.host-answer.original-answer:not(.accepted-answer) small { color: var(--orange); }
.host-alphabet { grid-template-columns: repeat(9,minmax(58px,1fr)); }
.host-letter { position: relative; aspect-ratio: auto; min-height: 74px; display: grid; place-content: center; gap: 2px; padding: 6px; }
.host-letter b { font-size: 24px; }
.host-letter small { min-height: 12px; color: var(--muted); font-size: 8px; line-height: 1.1; text-transform: uppercase; }
.host-letter strong { position: absolute; top: 5px; right: 7px; color: #267044; }
.host-letter.accepted-answer { border-color: #65a832; background: var(--lime); color: var(--ink); }
.host-letter.original-answer:not(.accepted-answer) { border-color: var(--orange); background: #fff4df; color: var(--ink); }
.host-text-answers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 28px; }
.host-text-answer { min-height: 82px; }
.host-text-answers .empty { grid-column: 1/-1; }
.join { width: min(470px, calc(100% - 34px)); margin: 8vh auto; }
.join .card { padding: 32px; }
.join h1 { font-size: 54px; }
label { display: block; font-size: 13px; font-weight: 850; margin: 22px 0 7px; }
input { width: 100%; border: 1px solid var(--line); background: white; border-radius: 13px; padding: 15px; font-size: 18px; outline: none; }
input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61,90,254,.12); }
select, textarea { width: 100%; border: 1px solid var(--line); background: white; border-radius: 13px; padding: 13px; color: var(--ink); }
textarea { min-height: 92px; resize: vertical; }
.big { width: 100%; margin-top: 12px; }
.scoreline { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.notice { padding: 14px; border-radius: 13px; background: #fff0c7; margin-top: 16px; color: #6e5011; font-size: 14px; }
.rank { display: flex; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); font-weight: 800; }
.rank:first-of-type { font-size: 20px; }
.studio-head, .deck-title { display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.studio-head { margin-bottom: 22px; }
.studio-head .actions { margin: 0; }
.studio { display: grid; grid-template-columns: minmax(280px,360px) minmax(0,1fr); gap: 22px; align-items: start; }
.studio-toolbar { position: sticky; top: 0; z-index: 12; display: flex; justify-content: space-between; align-items: center; gap: 22px; margin: -10px 0 24px; padding: 13px 0; background: rgba(245,241,232,.94); backdrop-filter: blur(10px); }
.studio-name { min-width: 220px; }
.studio-name input { width: min(420px,38vw); padding: 5px 0; border: 0; border-radius: 0; background: transparent; font-size: 24px; font-weight: 900; }
.studio-name input:focus { box-shadow: none; border-bottom: 2px solid var(--blue); }
.save-state { display: block; color: var(--muted); font-size: 12px; font-weight: 750; }
.toolbar-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; flex-wrap: wrap; }
.tool-btn { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: rgba(255,255,255,.7); color: var(--ink); font-weight: 800; }
.deck-menu { position: relative; }
.deck-menu summary { list-style: none; cursor: pointer; }
.deck-menu summary::-webkit-details-marker { display: none; }
.deck-menu > div { position: absolute; z-index: 15; right: 0; top: calc(100% + 7px); display: grid; min-width: 170px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: white; box-shadow: 0 14px 35px rgba(24,32,29,.16); }
.deck-menu > div button { border: 0; border-radius: 8px; padding: 10px; background: transparent; text-align: left; font-weight: 750; }
.deck-menu > div button:hover { background: var(--paper); }
.deck-panel { position: sticky; top: 105px; display: flex; flex-direction: column; height: calc(100vh - 125px); max-height: calc(100vh - 125px); overflow: hidden; padding: 14px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.48); }
.slide-list { display: grid; flex: 1 1 auto; min-height: 0; align-content: start; gap: 8px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 8px 4px 2px; scrollbar-gutter: stable; }
.add-slide-button { width: 100%; margin-top: 10px; padding: 12px; border: 1px dashed var(--blue); border-radius: 12px; background: transparent; color: var(--blue); font-weight: 900; }
.deck { display: grid; gap: 10px; min-width: 0; }
.deck-title { margin-bottom: 8px; color: var(--muted); font-size: 13px; }
.slide-thumb { display: grid; grid-template-columns: 30px minmax(0,1fr); gap: 9px 11px; align-items: center; min-width: 0; padding: 13px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.65); cursor: grab; transition: border-color .15s, box-shadow .15s, opacity .15s, transform .15s; }
.slide-thumb:hover { border-color: var(--blue); }
.slide-thumb.dragging { opacity: .38; cursor: grabbing; transform: scale(.98); }
.slide-thumb.drag-over { border-color: var(--orange); box-shadow: 0 -4px 0 var(--orange); }
.slide-thumb.editing { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(61,90,254,.12); }
.slide-thumb b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 270px; }
.slide-thumb small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; margin-top: 3px; }
.slide-summary { min-width: 0; padding-right: 34px; }
.slide-num { position: relative; display: grid; place-items: center; width: 28px; height: 28px; border: 0; padding: 0; border-radius: 8px; background: var(--ink); color: white; font-size: 12px; font-weight: 900; cursor: text; }
.slide-num:hover,.slide-num:focus-visible { background: var(--blue); outline: 2px solid rgba(61,90,254,.25); outline-offset: 2px; }
.slide-num.editing-position { overflow: visible; background: white; outline: 0; }
.slide-position-input { width: 42px !important; height: 32px; border: 1px solid var(--blue) !important; border-radius: 8px !important; padding: 2px !important; background: white !important; color: var(--ink); font: 900 14px system-ui !important; text-align: center; box-shadow: 0 0 0 3px rgba(61,90,254,.12); }
.slide-position-input::-webkit-inner-spin-button { display: none; }
.drag-grip { position: absolute; left: -12px; color: var(--muted); font-size: 16px; opacity: .65; }
.slide-tools { position: absolute; right: 8px; bottom: 8px; display: flex; justify-content: flex-end; gap: 4px; opacity: 0; transform: translateY(3px); transition: .15s; }
.slide-thumb { position: relative; }
.slide-thumb:hover .slide-tools, .slide-thumb:focus-within .slide-tools { opacity: 1; transform: none; }
.slide-tools button { border: 0; width: 28px; height: 28px; border-radius: 7px; background: #e9e5da; }
.composer { position: sticky; top: 20px; min-width: 0; }
.studio-clean .composer { top: 105px; max-height: calc(100vh - 125px); overflow-y: auto; padding: 25px; }
.editor-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.editor-heading h2 { max-width: 650px; margin: 5px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-close, .dialog-close { border: 0; border-radius: 50%; width: 36px; height: 36px; background: #ebe7dc; color: var(--ink); font-size: 22px; }
.editor-empty { min-height: 430px; display: grid; place-items: center; text-align: center; }
.editor-empty p { color: var(--muted); }
.empty-spark { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto; border-radius: 18px; background: var(--lime); font-size: 28px; transform: rotate(-5deg); }
.editor-save { position: sticky; bottom: -25px; display: flex; justify-content: flex-end; align-items: center; gap: 15px; margin: 20px -25px -25px; padding: 14px 25px; border-top: 1px solid var(--line); background: rgba(255,255,255,.96); }
.advanced-options { margin-top: 20px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 13px; background: rgba(245,241,232,.55); }
.advanced-options summary { cursor: pointer; color: var(--blue); font-weight: 850; }
.undo-toast { display: flex; align-items: center; gap: 12px; width: fit-content; margin: -10px 0 14px auto; padding: 10px 13px; border-radius: 12px; background: var(--ink); color: white; box-shadow: 0 10px 25px rgba(24,32,29,.2); }
.undo-toast button { border: 0; background: transparent; color: var(--lime); font-weight: 900; }
.slide-tabs { display: flex; gap: 7px; margin: 18px 0; }
.tab { border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; background: transparent; font-weight: 800; }
.tab.active { background: var(--ink); color: white; }
.choice-row { display: grid; grid-template-columns: 22px 1fr; align-items: center; gap: 7px; margin: 7px 0; }
.choice-row input[type=radio] { width: 18px; }
.choice-row .choice { padding: 11px; }
.timing-note { display: flex; justify-content: space-between; gap: 15px; padding: 13px; margin-top: 15px; background: #eef5d4; border-radius: 12px; font-size: 13px; }
.timing-note span { color: var(--muted); text-align: right; }
.form-error { min-height: 20px; color: #b73320; margin-top: 9px; font-size: 13px; }
.timer { height: 9px; border-radius: 99px; background: #dedbd1; overflow: hidden; margin-top: 17px; }
.timer span { display: block; width: 100%; height: 100%; background: var(--orange); transition: width .1s linear; }
.timer-label { margin-top: 5px; text-align: right; font-weight: 900; font-variant-numeric: tabular-nums; }
.text-response { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 25px; }
.reveal-answer { margin-top: 25px; font-size: 22px; font-weight: 850; }
.pause-view { padding-top: 8vh; }
.save-strip { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 9px; align-items: center; padding: 14px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.52); }
.save-strip input { padding: 11px 13px; }
.save-strip #saveMessage { grid-column: 1 / -1; color: #23804d; font-weight: 800; font-size: 13px; }
.import-panel { display: grid; grid-template-columns: minmax(220px,1fr) minmax(220px,.9fr) auto; gap: 12px; align-items: center; padding: 16px; margin-bottom: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.52); }
.import-panel p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.import-panel input[type=file] { min-width: 0; padding: 9px; font-size: 13px; }
.import-panel details { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.import-panel summary { cursor: pointer; color: var(--blue); font-weight: 850; }
.import-panel code { display: block; overflow-x: auto; margin: 8px 0 4px; padding: 9px; border-radius: 8px; background: #ebe7dc; color: var(--ink); }
.import-panel small { display: block; }
#importMessage { grid-column: 1 / -1; color: #23804d; font-size: 13px; font-weight: 800; }
.library { margin-top: 28px; display: grid; gap: 8px; }
.saved-deck { width: 100%; padding: 13px; border: 1px solid var(--line); border-radius: 13px; background: white; text-align: left; color: var(--ink); }
.saved-deck-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.saved-deck-head > span:last-child { display: flex; gap: 5px; }
.saved-deck-head button, .copy-list button { border: 0; border-radius: 8px; padding: 7px 9px; background: #ebe7dc; color: var(--ink); font-weight: 800; }
.saved-deck details { margin-top: 10px; }
.saved-deck summary { cursor: pointer; color: var(--blue); font-size: 12px; font-weight: 850; }
.saved-deck b, .saved-deck small { display: block; }
.saved-deck small { color: var(--muted); margin-top: 2px; }
.copy-list { display: grid; gap: 5px; margin-top: 8px; }
.copy-list button { display: flex; justify-content: space-between; gap: 10px; text-align: left; font-size: 12px; }
.copy-list button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.copy-list button b { color: var(--blue); white-space: nowrap; }
.picture-preview { display: block; width: min(100%, 360px); max-height: 240px; object-fit: contain; border-radius: 14px; margin: 7px 0 12px; background: #ebe7dc; }
.optional-picture { margin-top: 18px; padding: 16px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.5); }
.optional-picture > label:first-child { margin-top: 0; }
.remove-picture { display: flex !important; align-items: center; gap: 8px; margin: -3px 0 12px !important; color: var(--muted); font-size: 13px; }
.remove-picture input { width: auto; }
.question-picture { display: block; width: min(100%, 560px); max-height: 390px; object-fit: contain; margin: 18px auto 24px; border-radius: 22px; background: #e9e5da; box-shadow: 0 12px 35px rgba(24,32,29,.12); }
.field-help { display: block; color: var(--muted); margin-top: 6px; }
.response-panel { margin-top: 28px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.55); }
.answer-status { display: flex; justify-content: space-between; gap: 15px; padding: 11px 2px; border-bottom: 1px solid var(--line); }
.answer-status:last-child { border-bottom: 0; }
.answer-status.detailed { align-items: center; }
.answer-status.detailed > span { display: grid; grid-template-columns: auto 1fr; align-items: center; min-width: 0; }
.answer-status.detailed > span small { grid-column: 2; margin-top: 3px; color: var(--muted); overflow-wrap: anywhere; }
.point-adjust { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.point-adjust input { width: 72px; padding: 8px; font-size: 14px; }
.point-adjust button, .response-groups button { border: 0; border-radius: 8px; padding: 8px 10px; background: #e9e5da; color: var(--ink); font-weight: 800; }
.adjudication { margin-top: 18px; padding: 18px; border: 1px solid #b8c5ff; border-radius: 18px; background: rgba(238,241,255,.75); }
.accepted-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin: 12px 0; }
.accepted-summary span { padding: 6px 9px; border-radius: 999px; background: var(--lime); font-size: 13px; font-weight: 850; }
.response-groups { display: grid; gap: 7px; }
.response-groups > div:not(.empty) { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px; border-radius: 12px; background: white; }
.response-groups > div > span { display: grid; }
.response-groups small { color: var(--muted); }
.response-groups > div > div { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.response-groups .accept-more { background: var(--lime); }
.response-groups .replace-correct { color: var(--orange); }
.status-dot { display: inline-block; width: 9px; height: 9px; margin-right: 9px; border-radius: 50%; background: #c7c4bb; }
.status-dot.done { background: #3ab66d; }
.ready-banner { margin: 18px 0; padding: 15px; border: 1px solid #c8d995; border-radius: 14px; background: #eef5d4; color: #47571e; font-weight: 850; text-align: center; }
.dialog-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(24,32,29,.55); backdrop-filter: blur(6px); }
.preview-backdrop { position: fixed; inset: 0; z-index: 110; display: grid; place-items: center; padding: 18px; background: rgba(13,19,17,.78); backdrop-filter: blur(9px); }
.deck-preview-dialog { display: grid; grid-template-rows: auto 1fr auto; width: min(1180px,100%); height: min(820px,calc(100vh - 36px)); overflow: hidden; border-radius: 25px; background: var(--paper); box-shadow: 0 28px 100px rgba(0,0,0,.4); }
.deck-preview-dialog > header,.deck-preview-dialog > footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 17px 22px; background: white; }
.deck-preview-dialog > header { border-bottom: 1px solid var(--line); }
.deck-preview-dialog > header > div { display: grid; gap: 3px; }
.deck-preview-dialog > footer { justify-content: flex-end; border-top: 1px solid var(--line); }
.deck-preview-dialog > main { min-height: 0; overflow-y: auto; padding: clamp(25px,5vw,65px); }
.preview-question,.preview-center { width: min(920px,100%); margin: auto; }
.preview-question h1,.preview-center h1 { margin: 25px 0; font-size: clamp(42px,6vw,82px); }
.preview-meta { display: flex; justify-content: space-between; color: var(--blue); font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.preview-answers { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.preview-answers span,.preview-thinking { padding: 20px; border-radius: 16px; background: white; font-size: clamp(18px,2.4vw,28px); font-weight: 800; }
.preview-thinking { color: var(--muted); text-align: center; }
.preview-center { min-height: 100%; display: grid; align-content: center; text-align: center; }
.preview-center p { color: var(--muted); font-size: 24px; }
.preview-ranks { display: grid; width: min(650px,100%); margin: auto; text-align: left; }
.preview-ranks span { display: flex; justify-content: space-between; padding: 15px; border-bottom: 1px solid var(--line); font-size: 22px; }
.preview-empty { display: grid; place-content: center; height: 100%; color: var(--muted); text-align: center; }
.preview-empty b { color: var(--ink); font-size: 34px; }
.preview-button { color: var(--blue); border-color: var(--blue); }
.end-dialog { width: min(520px,100%); padding: 28px; border-radius: 24px; background: var(--paper); box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.end-dialog h2 { margin-top: 10px; }
.end-dialog p { color: var(--muted); }
.studio-dialog { position: relative; width: min(760px,100%); max-height: min(82vh,760px); overflow-y: auto; padding: 28px; border-radius: 24px; background: var(--paper); box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.dialog-close { position: absolute; top: 15px; right: 15px; z-index: 2; }
.dialog-panel { padding: 2px; }
.dialog-panel h2 { margin: 8px 0; }
.studio-dialog .import-panel, .studio-dialog .sound-manager { margin: 0; border: 0; padding: 2px; background: transparent; }
.deck-transfer { display: grid; gap: 14px; }
.deck-transfer > p { margin: 0 38px 4px 0; color: var(--muted); line-height: 1.5; }
.deck-transfer > .btn { justify-self: start; }
.deck-transfer #transferMessage { min-height: 20px; color: var(--orange); font-weight: 750; }
.transfer-select-all { display: flex; align-items: center; gap: 8px; }
.transfer-select-all span { margin-left: auto; color: var(--muted); font-weight: 800; }
.question-transfer-list { display: grid; max-height: 280px; overflow-y: auto; border: 1px solid var(--line); border-radius: 14px; background: white; }
.question-transfer-list label { display: flex; align-items: flex-start; gap: 12px; padding: 13px 15px; border-bottom: 1px solid var(--line); cursor: pointer; }
.question-transfer-list label:last-child { border-bottom: 0; }
.question-transfer-list label:hover { background: var(--paper); }
.question-transfer-list input { width: auto; margin-top: 3px; }
.question-transfer-list span { display: grid; gap: 3px; min-width: 0; }
.question-transfer-list b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.question-transfer-list small { color: var(--muted); }
.destination-choice { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px 14px; padding: 16px; border-radius: 14px; background: rgba(255,255,255,.65); }
.destination-choice label { display: flex; align-items: center; gap: 7px; margin: 0; white-space: nowrap; }
.destination-choice label input { width: auto; }
.end-options { display: grid; gap: 10px; margin-top: 24px; }
.home-hero { padding: 4vh 0 6vh; }
.home-hero h1 { max-width: 850px; }
.home-hero .btn { display: inline-block; text-decoration: none; }
.getting-started { margin-bottom: 55px; }
.home-create { display: flex; justify-content: flex-end; margin: -36px 0 48px; }
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; margin-top: 20px; }
.steps > div { padding: 8px; }
.steps b { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 10px; background: var(--lime); }
.steps h3 { margin: 14px 0 5px; font-size: 20px; }
.steps p { margin: 0; color: var(--muted); }
.deck-library-home { margin-bottom: 70px; }
.library-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.library-heading input { max-width: 370px; }
.home-deck-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.home-deck { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.7); box-shadow: 0 8px 28px rgba(38,45,41,.05); }
.home-deck[hidden] { display: none !important; }
.home-deck h2 { margin: 7px 0 3px; }
.home-deck p { margin: 0; color: var(--muted); }
.home-deck .actions { margin: 0; justify-content: flex-end; }
.home-empty { grid-column: 1 / -1; }
.control-lobby > h1 { margin-bottom: 16px; }
.control-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; margin-top: 34px; align-items: start; }
.control-slides { display: grid; gap: 9px; }
.control-slide { display: flex; justify-content: space-between; align-items: center; gap: 15px; width: 100%; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); text-align: left; }
.control-slide b, .control-slide small { display: block; }
.control-slide small { margin-top: 3px; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.control-slide strong { color: var(--blue); white-space: nowrap; }
.display-shell { min-height: 100vh; padding: clamp(30px,5vw,72px); background: var(--paper); }
.display-brand { position: fixed; top: 26px; left: 32px; font-weight: 950; letter-spacing: -.03em; }
.display-brand i { display: inline-block; width: 15px; height: 15px; margin-right: 10px; border: 3px solid #ffd08a; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(23,201,232,.4); vertical-align: -2px; }
.display-center { min-height: calc(100vh - 144px); display: grid; place-content: center; text-align: center; }
.display-center h1 { max-width: none; font-size: clamp(54px,8vw,118px); margin: 18px 0; }
.display-center p { color: var(--muted); font-size: clamp(20px,3vw,38px); margin: 5px; }
.display-center h2 { margin-top: 45px; font-size: clamp(25px,4vw,50px); }
.display-url { display: inline-block; max-width: 100%; padding: 16px 24px; margin: 20px auto; border-radius: 16px; background: white; font: 600 clamp(16px,1.65vw,26px)/1.25 ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; letter-spacing: -.025em; }
.join-methods { display: flex; align-items: center; justify-content: center; gap: clamp(24px,5vw,70px); margin: 24px auto 10px; text-align: left; }
.join-methods > div { width: min(900px,60vw); max-width: 100%; }
.join-methods p { color: var(--ink); font-weight: 850; }
.join-methods span { color: var(--muted); font-size: 18px; }
.join-methods .display-url { display: block; overflow-wrap: normal; white-space: nowrap; margin: 10px 0 0; }
.join-methods .fallback-url { font-size: .62em; margin-top: 4px; }
.join-qr { width: clamp(190px,25vw,310px); flex: 0 0 auto; padding: 9px; border-radius: 18px; background: white; box-shadow: 0 15px 45px rgba(24,32,29,.14); }
.display-question, .display-board { max-width: 1100px; margin: 8vh auto 0; }
.display-question h1, .display-board h1 { max-width: 1050px; }
.display-meta { display: flex; justify-content: space-between; color: var(--blue); text-transform: uppercase; letter-spacing: .12em; font-weight: 900; }
.display-answer { min-height: 90px; padding: 22px; border-radius: 18px; background: white; font-size: clamp(20px,2.5vw,32px); font-weight: 850; }
.display-answer.correct { background: var(--lime); }
.display-answer.wrong { opacity: .35; }
.display-thinking, .display-board .empty { padding: 25px; border-radius: 18px; background: white; color: var(--muted); text-align: center; font-size: 24px; }
.display-rank { display: flex; justify-content: space-between; padding: 20px 6px; border-bottom: 1px solid var(--line); font-size: clamp(24px,3vw,42px); }
.display-rank:first-of-type { color: var(--blue); font-size: clamp(30px,4vw,54px); }
.leaderboard-window { max-height: 544px; overflow: hidden; scroll-behavior: auto; }
.display-rank { min-height: 68px; }
.display-sound { position: fixed; top: 24px; right: 30px; z-index: 4; border: 1px solid var(--line); border-radius: 999px; padding: 10px 15px; background: white; color: var(--ink); font-weight: 850; }
.display-sound.enabled { background: var(--lime); }
.audience-reactions { position: fixed; inset: 0; z-index: 8; overflow: hidden; pointer-events: none; }
.audience-reaction { position: absolute; left: var(--reaction-x); bottom: -110px; display: grid; place-items: center; width: clamp(64px,7vw,108px); height: clamp(64px,7vw,108px); border: 4px solid rgba(255,255,255,.85); border-radius: 50%; background: rgba(255,255,255,.92); box-shadow: 0 12px 36px rgba(11,23,57,.24); font-size: clamp(38px,4.7vw,72px); line-height: 1; animation: audience-reaction-rise 4.2s cubic-bezier(.2,.65,.35,1) forwards; }
@keyframes audience-reaction-rise { 0% { transform: translate(0,0) scale(.55) rotate(0); opacity: 0; } 10% { opacity: 1; } 72% { opacity: 1; } 100% { transform: translate(var(--reaction-drift),-112vh) scale(1.18) rotate(var(--reaction-tilt)); opacity: 0; } }
.player-reactions { position: fixed; z-index: 30; left: 50%; bottom: max(12px,env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 6px; width: max-content; max-width: calc(100vw - 20px); padding: 8px 10px; border: 2px solid var(--ink); border-radius: 999px; background: rgba(255,255,255,.96); box-shadow: 0 8px 0 var(--ink),0 18px 40px rgba(11,23,57,.18); transform: translateX(-50%); backdrop-filter: blur(10px); }
.player-reactions span { padding: 0 5px; color: var(--muted); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.player-reactions button { display: grid; place-items: center; width: 43px; height: 43px; padding: 0; border: 0; border-radius: 50%; background: var(--paper); font-size: 25px; transition: transform .15s ease,background .15s ease; }
.player-reactions button:hover,.player-reactions button:focus-visible { background: var(--lime); transform: translateY(-2px) scale(1.08); }
.player-reactions button.sent { background: var(--cyan); animation: reaction-button-pop .35s ease; }
.player-reactions button.failed { background: #ffd1cb; }
@keyframes reaction-button-pop { 50% { transform: scale(1.28); } }
body:has(.player-reactions) .shell { padding-bottom: 100px; }
.display-answers-hidden { margin-top: 28px; }
.number-answer { width: min(390px,100%); margin: 24px auto 0; }
.number-answer output { display: flex; align-items: center; justify-content: flex-end; min-height: 78px; margin-bottom: 12px; padding: 12px 20px; overflow: hidden; border: 3px solid var(--ink); border-radius: 16px; background: white; font-size: 42px; font-weight: 900; letter-spacing: .04em; }
.number-answer output:empty::before { content: 'Enter a number'; color: var(--muted); font-size: 18px; font-weight: 700; letter-spacing: 0; }
.number-keypad { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; }
.number-keypad button { min-height: 58px; border: 2px solid var(--ink); border-radius: 14px; background: white; color: var(--ink); font-size: 24px; font-weight: 900; box-shadow: 0 4px 0 var(--ink); }
.number-keypad button:active:not(:disabled) { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.number-keypad .number-backspace { background: #eef0ff; color: var(--blue); }
.number-keypad .number-enter { background: var(--lime); font-size: 17px; }
.has-soundboard .shell { padding-bottom: 245px; }
.soundboard { position: fixed; z-index: 20; left: 0; right: 0; bottom: 0; width: 100%; max-height: 215px; overflow-y: auto; padding: 10px max(18px,calc((100vw - 1200px)/2)); border: 0; border-top: 3px solid var(--orange); border-radius: 18px 18px 0 0; background: rgba(245,241,232,.98); box-shadow: 0 -12px 38px rgba(24,32,29,.2); backdrop-filter: blur(10px); }
.soundboard-head { position: sticky; top: -10px; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -10px -18px 9px; padding: 10px max(18px,calc((100vw - 1200px)/2)); background: var(--orange); color: white; }
.soundboard-head b { text-transform: uppercase; letter-spacing: .06em; }
.soundboard-head button { flex: 0 0 auto; min-width: 34px; padding: 5px; background: rgba(255,255,255,.2); color: white; font-size: 19px; }
.soundboard-buttons { display: grid; grid-template-columns: repeat(auto-fill,minmax(120px,1fr)); gap: 7px; }
.soundboard.collapsed { max-height: 48px; overflow: hidden; }
.soundboard.collapsed .soundboard-head { margin-bottom: -10px; }
.soundboard.collapsed .soundboard-buttons { display: none; }
.soundboard button { flex: 1; min-width: 90px; border: 0; border-radius: 10px; padding: 9px; background: white; color: var(--ink); font-weight: 800; }
.soundboard .soundboard-head button { flex: 0 0 auto; min-width: 34px; padding: 5px; background: rgba(255,255,255,.2); color: white; }
.soundboard button:hover { background: var(--lime); transform: translateY(-1px); }
.soundboard .custom-sound { border: 1px solid #1c847a; }
.soundboard .custom-sound.playing { background: var(--orange); color: white; }

/* Guided host tutorial */
.tutorial-backdrop { position: fixed; inset: 0; z-index: 100; padding: 18px; background: rgba(13,19,17,.72); backdrop-filter: blur(8px); }
.tutorial-dialog { display: grid; grid-template-columns: 245px minmax(0,1fr); width: min(1360px,100%); height: calc(100vh - 36px); margin: auto; overflow: hidden; border-radius: 25px; background: var(--paper); box-shadow: 0 28px 100px rgba(0,0,0,.35); }
.tutorial-nav { overflow-y: auto; padding: 22px 14px; background: var(--ink); color: white; }
.tutorial-nav-brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 22px; }
.tutorial-nav-brand i { width: 18px; height: 18px; border: 3px solid #ffd08a; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(23,201,232,.35); }
.tutorial-nav-brand span { display: grid; }
.tutorial-nav-brand small { color: #aab5af; }
.tutorial-nav-group { display: grid; gap: 4px; margin: 0 0 18px; }
.tutorial-nav-group > b { padding: 0 9px 5px; color: #91a099; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.tutorial-nav-group button { display: grid; grid-template-columns: 25px 1fr; align-items: center; gap: 8px; width: 100%; border: 0; border-radius: 10px; padding: 8px; background: transparent; color: #dce2df; text-align: left; font-size: 12px; font-weight: 750; }
.tutorial-nav-group button span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; background: rgba(255,255,255,.1); }
.tutorial-nav-group button:hover, .tutorial-nav-group button.active { background: rgba(255,255,255,.12); color: white; }
.tutorial-nav-group button.active span { background: var(--lime); color: var(--ink); }
.tutorial-main { display: flex; flex-direction: column; min-width: 0; overflow-y: auto; }
.tutorial-main > header { position: sticky; top: 0; z-index: 3; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 24px 30px 15px; background: rgba(245,241,232,.96); }
.tutorial-main > header h1 { margin: 5px 0 0; font-size: clamp(34px,4vw,58px); }
.tutorial-close { flex: 0 0 auto; width: 42px; height: 42px; border: 0; border-radius: 50%; background: white; color: var(--ink); font-size: 27px; }
.tutorial-progress { position: sticky; top: 111px; z-index: 4; height: 5px; background: #ddd9cf; }
.tutorial-progress span { display: block; height: 100%; background: var(--orange); transition: width .2s ease; }
.tutorial-content { flex: 1; padding: 30px; }
.tutorial-main > footer { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 15px 30px; border-top: 1px solid var(--line); background: rgba(245,241,232,.97); }
.tutorial-main > footer > span { color: var(--muted); font-weight: 800; }
.tutorial-main button:disabled { opacity: .35; cursor: default; }
.tutorial-hero { display: grid; grid-template-columns: 1fr .8fr; gap: 30px; align-items: center; min-height: 320px; }
.tutorial-hero h2 { margin: 10px 0; font-size: clamp(32px,4vw,56px); line-height: 1; }
.tutorial-hero p { max-width: 650px; color: var(--muted); font-size: 19px; }
.tutorial-route { display: grid; gap: 9px; padding: 24px; border-radius: 22px; background: white; box-shadow: 0 12px 35px rgba(24,32,29,.08); }
.tutorial-route span { padding: 13px; border-radius: 11px; background: #eef0ff; color: var(--blue); font-weight: 900; text-align: center; }
.tutorial-route b { color: var(--orange); text-align: center; }
.tutorial-callout, .tutorial-warning, .tutorial-success, .tutorial-note, .tutorial-key { margin-top: 22px; padding: 16px 18px; border-radius: 14px; background: #eef5d4; }
.tutorial-warning { background: #fff0c7; color: #6e5011; }
.tutorial-success { background: var(--lime); font-size: 18px; font-weight: 850; text-align: center; }
.tutorial-note { margin: 0 0 20px; background: #eef0ff; color: #3449bd; }
.tutorial-key { margin-top: 18px; background: white; border: 1px solid var(--line); }
.tutorial-checklist { display: grid; gap: 13px; margin: 0; padding: 0; list-style: none; counter-reset: tutorial-list; }
.tutorial-checklist li { counter-increment: tutorial-list; display: grid; grid-template-columns: 45px 1fr; column-gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.tutorial-checklist li::before { content: counter(tutorial-list); grid-row: 1/3; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--lime); font-weight: 950; }
.tutorial-checklist li span { color: var(--muted); }
.edit-demo { display: grid; grid-template-columns: .8fr 1.2fr; gap: 18px; }
.edit-demo > * { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.mini-label { margin-bottom: 10px; color: var(--blue); font-size: 11px; font-weight: 900; letter-spacing: .12em; }
.fake-slide { display: grid; grid-template-columns: 28px 1fr auto; gap: 9px; align-items: center; margin: 7px 0; padding: 11px; border: 1px solid var(--line); border-radius: 11px; }
.fake-slide.active { border-color: var(--blue); }
.fake-slide > b { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 7px; background: var(--ink); color: white; }
.fake-slide span, .fake-slide small { display: block; }
.fake-slide small { color: var(--muted); }
.fake-slide em { color: var(--blue); white-space: nowrap; }
.edit-demo aside > button { width: 100%; border: 1px dashed var(--blue); border-radius: 9px; padding: 9px; background: transparent; color: var(--blue); font-weight: 850; }
.edit-demo section label { margin-top: 10px; }
.fake-field { padding: 12px; border: 1px solid var(--line); border-radius: 10px; }
.fake-save { width: fit-content; margin: 18px 0 0 auto; padding: 10px 15px; border-radius: 10px; background: var(--ink); color: white; font-weight: 850; }
.tutorial-bullets { columns: 2; gap: 35px; margin-top: 22px; }
.tutorial-bullets li { break-inside: avoid; margin-bottom: 10px; }
.tutorial-card-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.tutorial-card-grid.three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.tutorial-card-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.tutorial-card-grid article b { color: var(--blue); font-size: 20px; }
.tutorial-card-grid article p { margin-bottom: 0; color: var(--muted); }
.screen-preview-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; align-items: start; }
.screen-preview { min-height: 370px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 8px 25px rgba(24,32,29,.06); }
.screen-preview > header { padding: 10px 13px; background: var(--ink); color: white; font-size: 11px; font-weight: 900; letter-spacing: .08em; }
.screen-preview > header i { display: inline-block; width: 9px; height: 9px; margin-right: 6px; border-radius: 3px; background: var(--orange); }
.screen-preview > :not(header) { margin-left: 15px; margin-right: 15px; }
.screen-preview h4 { margin: 18px 15px; font-size: 21px; line-height: 1.1; }
.mini-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; color: var(--blue); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.mini-timer { height: 6px; border-radius: 10px; background: #dedbd1; }
.mini-timer span { display: block; width: 68%; height: 100%; background: var(--orange); }
.mini-status, .mini-response, .mini-thinking { margin-top: 15px; padding: 11px; border-radius: 10px; background: #eef5d4; font-size: 12px; font-weight: 750; }
.mini-response { background: #f1f0eb; }
.display-preview { background: #f5f1e8; }
.display-mini-choices, .player-mini-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.display-mini-choices span, .tutorial-choice { min-height: 50px; padding: 9px; border-radius: 9px; background: white; font-size: 12px; font-weight: 800; }
.tutorial-choice.correct { outline: 2px solid var(--lime); }
.player-preview { max-width: 290px; justify-self: center; }
.player-mini-controls { grid-template-columns: 1fr; }
.tutorial-input { display: flex; justify-content: space-between; gap: 8px; padding: 11px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: 12px; }
.tutorial-input b { padding: 3px 6px; border-radius: 5px; background: var(--ink); color: white; }
.tutorial-picture { display: grid; place-items: center; height: 85px; margin-top: 13px; border-radius: 12px; background: #ebe7dc; }
.tutorial-picture span { font-size: 35px; }
.tutorial-picture small { color: var(--muted); }
.tutorial-flow { display: grid; gap: 10px; }
.tutorial-flow > div { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.tutorial-flow > div > b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--orange); color: white; }
.tutorial-flow span, .tutorial-flow strong { display: block; }
.tutorial-flow span { color: var(--muted); }
.tutorial-flow strong { color: var(--ink); }
.tutorial-shortcuts { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 20px; padding: 15px; border-radius: 14px; background: #eef0ff; }
kbd { padding: 3px 7px; border: 1px solid #bcc3e7; border-bottom-width: 3px; border-radius: 6px; background: white; }
.tutorial-finish { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tutorial-finish > div { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.tutorial-finish label { margin: 10px 0; }
.tutorial-two-column, .format-tabs { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.tutorial-checklist.compact li { padding: 12px; }
.tutorial-checklist.compact li::before { width: 36px; height: 36px; }
.sound-upload-demo, .format-tabs > section { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.sound-upload-demo > button { width: 100%; margin-top: 16px; border: 0; border-radius: 10px; padding: 11px; background: var(--ink); color: white; font-weight: 850; }
.tutorial-file-rules { display: grid; gap: 7px; margin-top: 18px; padding: 14px; border-radius: 12px; background: #eef5d4; }
.tutorial-file-rules span { color: var(--muted); }
.tutorial-intro { margin: 0 0 20px; font-size: 17px; }
.format-tabs { grid-template-columns: 1fr 1fr; }
.format-tabs > section p { min-height: 60px; color: var(--muted); font-size: 13px; }
.tutorial-code { min-height: 250px; margin: 12px 0 0; overflow: auto; padding: 15px; border-radius: 12px; background: var(--ink); color: #eaf6c5; font: 12px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre; }
.format-guide { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 18px; }
.format-guide > div { padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.format-guide b, .format-guide span { display: block; }
.format-guide span { margin-top: 5px; color: var(--muted); }
.sound-manager { display: grid; grid-template-columns: minmax(220px,.75fr) minmax(280px,1.25fr); gap: 22px; margin: 18px 0; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.sound-manager h3, .sound-manager p { margin: 5px 0; }
.sound-manager p, .sound-list small { color: var(--muted); }
.sound-upload { display: grid; grid-template-columns: 1fr 1.3fr auto; gap: 9px; align-items: center; }
.sound-upload #soundMessage { grid-column: 1/-1; color: var(--orange); font-weight: 750; }
.sound-list { grid-column: 1/-1; display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 8px; }
.sound-list > div:not(.empty) { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px; border-radius: 12px; background: var(--paper); }
.sound-list span { display: grid; }
.sound-list button { border: 0; background: transparent; color: var(--orange); font-weight: 800; }
.question-options { display: grid; grid-template-columns: minmax(160px,.65fr) minmax(240px,1.35fr); gap: 16px; margin-top: 20px; }
.question-options > div { min-width: 0; }
.spotify { background: #1ed760; color: #102117; }
.alphabet-answers { display: grid; grid-template-columns: repeat(7,minmax(42px,1fr)); gap: 9px; margin-top: 28px; }
.letter-answer { aspect-ratio: 1; min-height: 48px; border: 2px solid var(--line); border-radius: 14px; background: white; color: var(--ink); font-size: clamp(18px,4vw,26px); font-weight: 900; box-shadow: 0 4px 0 var(--line); }
.letter-answer:hover:not(:disabled), .letter-answer.selected { border-color: var(--blue); background: var(--blue); color: white; transform: translateY(-1px); }
.letter-answer.correct { border-color: var(--lime); background: var(--lime); color: var(--ink); }
.letter-answer.wrong { opacity: .45; }
.letter-answer:disabled { cursor: default; }
.answers-hidden { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 110px; margin-top: 24px; padding: 22px; border: 2px dashed var(--line); border-radius: 18px; background: rgba(255,255,255,.55); color: var(--muted); text-align: center; }
.answers-hidden span { font-size: 28px; }
.voting-editor-note { display: flex; flex-direction: column; gap: 5px; margin-top: 10px; padding: 18px; border: 2px solid #c9d8ff; border-radius: 16px; background: #f1f5ff; color: var(--ink); }
.voting-editor-note span { color: var(--muted); }
.voting-stage-banner { margin: 22px 0; padding: 15px 20px; border-radius: 16px; background: linear-gradient(135deg,var(--blue),#725cff); color: white; font-size: 18px; font-weight: 900; text-align: center; }
.vote-results { margin-top: 28px; }
.vote-result { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 10px 0; padding: 16px 18px; border: 2px solid var(--line); border-radius: 16px; background: white; }
.vote-result.vote-leader { border-color: var(--orange); box-shadow: 0 5px 0 rgba(255,114,92,.22); }
.vote-result > div:first-child { display: flex; align-items: center; gap: 13px; min-width: 0; }
.vote-result > div:first-child > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.vote-result small { color: var(--muted); }
.vote-rank { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border-radius: 50%; background: var(--ink); color: white; font-weight: 900; }
.vote-award { display: flex; gap: 8px; }
.vote-award input { width: 88px; padding: 9px; border: 2px solid var(--line); border-radius: 10px; font: inherit; font-weight: 800; }
.vote-award button { border: 0; border-radius: 10px; padding: 9px 12px; background: var(--blue); color: white; font-weight: 850; }
.vote-player { display: grid; gap: 10px; margin-top: 22px; }
.vote-choice { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; padding: 17px 19px; border: 2px solid var(--line); border-radius: 16px; background: white; color: var(--ink); font: inherit; font-size: 18px; text-align: left; box-shadow: 0 4px 0 var(--line); }
.vote-choice:hover:not(:disabled),.vote-choice.selected { border-color: var(--blue); background: #edf3ff; transform: translateY(-1px); }
.vote-choice.winner { border-color: var(--orange); background: #fff3e8; }
.vote-choice b { color: var(--blue); white-space: nowrap; }
.display-vote-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; margin-top: 28px; }
.display-vote { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 90px; padding: 20px 24px; border: 3px solid rgba(255,255,255,.35); border-radius: 20px; background: rgba(255,255,255,.12); font-size: clamp(22px,3vw,34px); font-weight: 850; }
.display-vote.winner { border-color: var(--orange); background: rgba(255,114,92,.25); }
.display-vote b { color: var(--lime); white-space: nowrap; }
.confetti { position: fixed; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; top: -8vh; color: var(--orange); font-style: normal; font-size: 30px; animation: confetti-fall 4.5s ease-in infinite; }
.confetti i:nth-child(2) { left: 18%; color: var(--blue); animation-delay: .5s; }.confetti i:nth-child(3) { left: 34%; color: var(--lime); animation-delay: 1.1s; }.confetti i:nth-child(4) { left: 55%; animation-delay: .2s; }.confetti i:nth-child(5) { left: 73%; color: var(--blue); animation-delay: 1.5s; }.confetti i:nth-child(6) { left: 90%; color: var(--lime); animation-delay: .8s; }
@keyframes confetti-fall { 0% { transform: translateY(-8vh) rotate(0); opacity: 0; } 12% { opacity: 1; } 100% { transform: translateY(115vh) rotate(540deg); opacity: .1; } }
@media (max-width: 980px) { .studio { grid-template-columns: 1fr; } .composer, .studio-clean .composer, .deck-panel { position: static; max-height: none; } .deck-panel { height: min(480px,65vh); } .slide-list { max-height: none; } .studio-toolbar { position: static; align-items: flex-start; flex-direction: column; } .studio-name input { width: min(100%,520px); } .toolbar-actions { justify-content: flex-start; } }
@media (max-width: 800px) { .control-grid { grid-template-columns: 1fr; } }
@media (max-width: 840px) { .import-panel, .sound-manager { grid-template-columns: 1fr; } .import-panel details, #importMessage, .sound-list { grid-column: 1; } .sound-upload { grid-template-columns: 1fr; } .sound-upload #soundMessage { grid-column: 1; } }
@media (max-width: 780px) { .steps, .home-deck-grid { grid-template-columns: 1fr; } .library-heading, .home-deck { align-items: stretch; flex-direction: column; } .library-heading input { max-width: none; } }
@media (max-width: 600px) { .home-create { justify-content: stretch; margin-top: -35px; } .home-create .btn { width: 100%; } .toolbar-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; } .toolbar-actions .session-button { grid-column: 1/-1; } .tool-btn { width: 100%; } .has-soundboard .shell { padding-bottom: 265px; } .soundboard { max-height: 235px; } }
@media (max-width: 650px) { .answer-status.detailed, .response-groups > div:not(.empty) { align-items: stretch; flex-direction: column; } .point-adjust input { flex: 1; width: auto; } .response-groups > div > div { justify-content: stretch; } .response-groups button { flex: 1; } }
@media (max-width: 650px) { .vote-result { align-items: stretch; flex-direction: column; } .vote-award input { flex: 1; width: auto; } .display-vote-grid { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .host-text-answers { grid-template-columns: 1fr; } }
@media (max-width: 850px) { .host-alphabet { grid-template-columns: repeat(6,1fr); } }
@media (max-width: 700px) { .join-methods { flex-direction: column; text-align: center; } .join-methods > div { width: 100%; } .join-methods .display-url { text-align: center; white-space: normal; overflow-wrap: anywhere; } }
@media (max-width: 480px) { .alphabet-answers { grid-template-columns: repeat(6,1fr); gap: 7px; } .letter-answer { min-height: 42px; border-radius: 11px; } }
@media (max-width: 420px) { .player-reactions { gap: 3px; padding: 7px; } .player-reactions span { display: none; } .player-reactions button { width: 42px; height: 42px; } }
@media (max-width: 520px) { .player-top-status { gap: 4px; } .player-top-name { max-width: 92px; font-size: 13px; } .player-top-stat { padding: 6px 7px; font-size: 10px; } .player-top-stat b { font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { .audience-reaction { animation-duration: 1.2s; } }
@media (max-width: 760px) { .shell { padding: 20px; } .host-grid { grid-template-columns: 1fr; } .topbar { margin-bottom: 30px; } .answers, .question-options { grid-template-columns: 1fr; } h1 { font-size: 50px; } .studio-head { align-items: flex-start; flex-direction: column; } .text-response { grid-template-columns: 1fr; } }
@media (max-width: 650px) { .preview-backdrop { padding: 0; } .deck-preview-dialog { width: 100%; height: 100vh; border-radius: 0; } .preview-answers { grid-template-columns: 1fr; } .deck-preview-dialog > footer .btn { flex: 1; } }
@media (max-width: 600px) { .save-strip { grid-template-columns: 1fr 1fr; } .save-strip input, .save-strip #saveMessage { grid-column: 1 / -1; } }
@media (max-width: 980px) { .tutorial-dialog { grid-template-columns: 190px minmax(0,1fr); } .screen-preview-grid, .tutorial-card-grid.three { grid-template-columns: 1fr; } .screen-preview, .player-preview { width: 100%; max-width: none; min-height: 0; } }
@media (max-width: 700px) { .tutorial-backdrop { padding: 0; } .tutorial-dialog { display: block; height: 100vh; border-radius: 0; overflow-y: auto; } .tutorial-nav { display: none; } .tutorial-main { min-height: 100vh; overflow: visible; } .tutorial-main > header { padding: 18px 18px 12px; } .tutorial-progress { top: 96px; } .tutorial-content { padding: 20px 18px; } .tutorial-main > footer { padding: 12px 18px; } .tutorial-main > footer > span { display: none; } .tutorial-hero, .edit-demo, .tutorial-finish, .tutorial-two-column, .format-tabs { grid-template-columns: 1fr; } .tutorial-card-grid { grid-template-columns: 1fr; } .tutorial-bullets { columns: 1; } .format-guide { grid-template-columns: 1fr; } .format-tabs > section p { min-height: 0; } .top-actions .pill { display: none; } }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(460px,100%); padding: 34px; border: 2px solid var(--ink); border-radius: 24px; background: white; box-shadow: 10px 10px 0 var(--ink); }
.auth-card-wide { width: min(760px,100%); }
.auth-card .brand { margin-bottom: 34px; }
.auth-card h1 { margin: 6px 0 10px; font-size: clamp(38px,8vw,58px); }
.auth-card > p { color: var(--muted); line-height: 1.5; }
.auth-card form { display: grid; gap: 16px; margin-top: 24px; }
.auth-card label { display: grid; gap: 7px; font-weight: 850; }
.auth-card input { width: 100%; padding: 13px 14px; border: 2px solid var(--line); border-radius: 12px; font: inherit; }
.auth-card select { padding: 13px 14px; border: 2px solid var(--line); }
.auth-card label small,.profile-card label small { margin-left: 5px; color: var(--muted); font-weight: 650; }
.auth-grid,.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.auth-span,.profile-span { grid-column: 1/-1; }
.auth-text-link { color: var(--blue); font-size: 13px; font-weight: 850; }
.auth-actions a { text-align: center; text-decoration: none; }
.password-rules { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 3px; color: var(--muted); font-size: 12px; font-weight: 700; }
.password-rules .met { color: #267044; }
.notice.success { background: #e9f8ee; color: #267044; }
.auth-actions { display: flex; gap: 10px; }
.auth-actions .btn { flex: 1; }
.auth-card .notice:empty { display: none; }
.verified-card { text-align: center; }
.verified-card .btn { display: block; margin-top: 24px; text-decoration: none; }
.verified-brand { justify-content: center; margin: 18px 0 28px !important; }
.verified-logo { display: grid; place-items: center; width: 112px; height: 112px; margin: 0 auto; border-radius: 28px; background: var(--ink); box-shadow: 7px 7px 0 var(--orange); transform: rotate(-3deg); }
.verified-logo span { width: 52px; height: 52px; border: 10px solid var(--lime); border-top-color: var(--blue); border-radius: 50%; }
.subscription-pill { background: #eef5d4; color: var(--ink); }
.profile-card { display: grid; grid-template-columns: .65fr 1.35fr; gap: 34px; margin-bottom: 28px; scroll-margin-top: 24px; }
.profile-card > div > p { color: var(--muted); }
.profile-card form { margin: 0; }
.profile-actions { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.profile-actions span { color: var(--muted); font-weight: 750; }
.account-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 28px; }
.account-tools article { display: grid; align-content: start; gap: 8px; }
.account-tools h2,.account-tools p { margin: 0; }
.account-tools p { color: var(--muted); }
.account-tools .btn { justify-self: start; margin-top: 10px; }
.account-tool-message { min-height: 20px; color: var(--muted); font-size: 13px; font-weight: 750; }
.danger-card { border-color: rgba(184,48,48,.28); }
.danger-card .eyebrow { color: #a52d2d; }
.danger-button { background: #a52d2d; color: white; }
.account-dialog { position: relative; width: min(560px,100%); max-height: min(760px,calc(100vh - 40px)); overflow-y: auto; padding: 30px; border-radius: 24px; background: var(--paper); box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.account-dialog h2 { margin-top: 8px; }
.account-dialog > p { color: var(--muted); }
.account-dialog textarea { min-height: 110px; }
.confirm-row { display: grid !important; grid-template-columns: 22px 1fr; gap: 10px !important; align-items: start; padding: 14px; border: 1px solid var(--line); border-radius: 13px; background: white; line-height: 1.4; }
.confirm-row input { width: 18px !important; margin: 2px 0 0; }
.terms-summary { max-height: 280px; overflow-y: auto; margin: 18px 0; padding: 5px 18px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.terms-summary p { color: var(--muted); }
.terms-summary a { color: var(--blue); font-weight: 850; }
.account-dialog .notice:empty { display: none; }
.subscription-card { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 auto 28px; }
.subscription-card h2, .subscription-card p { margin: 5px 0; }
.subscription-card > div:last-child { display: grid; text-align: right; }
.subscription-card > div:last-child b { color: var(--blue); font-size: 38px; line-height: 1; }
.subscription-card > div:last-child span { color: var(--muted); font-weight: 750; }
.billing-manage-button { margin-top: 12px; }
.account-legal-links { display: flex; justify-content: center; gap: 22px; margin: 28px 0 8px; color: var(--muted); font-size: 13px; font-weight: 800; }
.account-legal-links a { color: inherit; }
.account-legal-links a:hover { color: var(--blue); }
.pricing-section { margin: 0 0 34px; }
.pricing-section > h2 { margin: 6px 0 18px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.pricing-plan { display: grid; align-content: start; min-height: 285px; padding: 24px; border: 2px solid var(--line); border-radius: 20px; background: white; }
.pricing-plan.current { border-color: var(--blue); box-shadow: 6px 6px 0 rgba(50,98,255,.18); }
.pricing-plan h3 { margin: 8px 0 5px; font-size: 26px; }
.pricing-plan p { color: var(--muted); line-height: 1.45; }
.pricing-plan .btn,.pricing-note { margin-top: auto; }
.pricing-note { color: var(--muted); font-weight: 800; }
.pricing-amount { color: var(--blue); font-size: 36px; font-weight: 950; }
.pricing-amount small { margin-left: 4px; color: var(--muted); font-size: 14px; }
.billing-notice { margin: -28px 0 28px; padding: 13px 16px; border-radius: 12px; background: #fff3e8; font-weight: 800; }
.billing-notice.success { background: #eef5d4; }
@media (max-width: 780px) { .pricing-grid { grid-template-columns: 1fr; } .pricing-plan { min-height: 240px; } }
@media (max-width: 700px) { .auth-grid,.profile-grid,.profile-card,.account-tools { grid-template-columns: 1fr; } .auth-span,.profile-span { grid-column: auto; } .top-actions { gap: 5px; } .home-link,.tutorial-top-button { display: none; } }
.generator-hero { display: flex; align-items: center; gap: 24px; margin: 34px 0 30px; }
.generator-hero h1 { margin: 8px 0 14px; }
.generator-intro-avatar,.generator-avatar > span { display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: linear-gradient(145deg,var(--blue),#0c1c62); color: white; font-weight: 950; box-shadow: 0 0 0 7px #dff5fb, 7px 7px 0 rgba(24,32,29,.12); }
.generator-intro-avatar { width: 92px; height: 92px; font-size: 45px; }
.generator-tabs { display: flex; gap: 8px; margin: -8px 0 28px; padding-bottom: 10px; border-bottom: 2px solid var(--line); }
.generator-tabs button { padding: 12px 18px; border: 0; border-radius: 12px 12px 4px 4px; background: transparent; color: var(--muted); font: inherit; font-weight: 900; cursor: pointer; }
.generator-tabs button:hover { background: #eef5ff; color: var(--blue); }
.generator-tabs button.active { background: var(--ink); color: white; box-shadow: inset 0 -4px 0 var(--orange); }
.generator-layout { display: grid; grid-template-columns: minmax(280px,360px) minmax(0,1fr); gap: 24px; align-items: start; padding-bottom: 60px; }
.generator-form { position: sticky; top: 20px; display: grid; gap: 18px; }
.generator-form > label,.generator-options label,.generated-question > label { display: grid; gap: 7px; font-weight: 850; }
.generator-form input,.generator-form textarea,.generator-form select,.generated-question input,.generated-question textarea,.generated-question select { width: 100%; padding: 12px 13px; border: 2px solid var(--line); border-radius: 12px; background: white; color: var(--ink); font: inherit; }
.generator-form textarea { min-height: 126px; resize: vertical; line-height: 1.45; }
.generator-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.generator-form fieldset { display: grid; gap: 10px; margin: 0; padding: 16px; border: 2px solid var(--line); border-radius: 14px; }
.generator-form fieldset label { display: flex; align-items: center; gap: 9px; font-weight: 750; }
.generator-form fieldset input { width: auto; }
.generator-privacy { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.generator-access { margin: -12px 0 24px; padding: 13px 16px; border: 2px solid #ffd7b6; border-radius: 14px; background: #fff5ec; color: var(--ink); font-weight: 750; }
.generator-access.full { border-color: #badfca; background: #eefaf3; }
.generator-access a { color: var(--blue); font-weight: 900; }
.generator-results { min-width: 0; }
.generator-empty { padding: 50px 24px; border: 2px dashed var(--line); border-radius: 20px; color: var(--muted); text-align: center; }
.generator-loading { display: flex; align-items: center; gap: 22px; min-height: 190px; padding: 34px; border: 2px solid var(--line); border-radius: 20px; background: white; box-shadow: 5px 5px 0 rgba(24,32,29,.08); }
.generator-loading h2,.generator-loading p { margin: 6px 0; }
.generator-loading p { color: var(--muted); line-height: 1.45; }
.generator-avatar { position: relative; flex: 0 0 86px; width: 86px; height: 86px; }
.generator-avatar > span { position: absolute; inset: 14px; z-index: 1; font-size: 27px; box-shadow: none; }
.generator-loader { position: absolute; inset: 0; border: 7px solid #dff5fb; border-top-color: var(--blue); border-radius: 50%; animation: generator-spin 1s linear infinite; }
.generator-loader i { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--orange); }
.generator-loader i:nth-child(1) { top: -3px; left: 23px; }
.generator-loader i:nth-child(2) { right: -3px; bottom: 9px; }
.generator-loader i:nth-child(3) { left: 1px; bottom: 2px; background: var(--blue); }
.button-spinner { display: inline-block; width: 16px; height: 16px; margin-right: 7px; border: 3px solid rgba(255,255,255,.5); border-top-color: white; border-radius: 50%; vertical-align: -3px; animation: generator-spin .8s linear infinite; }
@keyframes generator-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .generator-loader,.button-spinner { animation-duration: 2.5s; } }
.generator-result-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.generator-result-head h2,.generator-result-head p { margin: 5px 0; }
.generator-result-head p { color: var(--muted); }
.generated-list { display: grid; gap: 16px; }
.generated-question { display: grid; gap: 14px; padding: 22px; border: 2px solid var(--line); border-radius: 20px; background: white; box-shadow: 5px 5px 0 rgba(24,32,29,.08); }
.generated-select { display: flex !important; align-items: center; gap: 8px; }
.generated-select input { width: auto; }
.generated-type { width: max-content; padding: 6px 10px; border-radius: 999px; background: #edf3ff; color: var(--blue); font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.generated-question textarea { min-height: 86px; resize: vertical; }
.generated-answers { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.generated-answers label { display: grid; grid-template-columns: 24px 1fr; align-items: center; color: var(--blue); font-weight: 950; }
.generated-question details { padding: 13px 15px; border-radius: 12px; background: #f6f7f5; }
.generated-question summary { cursor: pointer; font-weight: 850; }
.generated-question blockquote { margin: 12px 0; padding-left: 13px; border-left: 4px solid var(--orange); color: var(--muted); line-height: 1.5; }
.generated-question details a { color: var(--blue); font-weight: 800; }
@media (max-width: 850px) { .generator-layout { grid-template-columns: 1fr; } .generator-form { position: static; } }
@media (max-width: 600px) { .generator-hero { align-items: flex-start; } .generator-intro-avatar { width: 62px; height: 62px; font-size: 30px; } .generator-loading { align-items: flex-start; flex-direction: column; } .generator-result-head { align-items: stretch; flex-direction: column; } .generated-answers { grid-template-columns: 1fr; } }
