:root{--ink:#17233c;--muted:#6b758a;--paper:#fffdf8;--cream:#f6f2e9;--line:#e5e0d6;--orange:#ff704d;--orange-dark:#dd4d32;--blue:#5167f6;--blue-soft:#eef0ff;--green:#14a579;--red:#d85151;--shadow:0 16px 40px rgba(23,35,60,.08)}
*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}.shell{max-width:1240px;margin:auto;padding:20px 28px 56px}.topbar{display:flex;justify-content:space-between;align-items:center;padding:4px 0 36px}.wordmark{display:flex;align-items:center;gap:10px;color:var(--ink);font-weight:950;letter-spacing:.12em;text-decoration:none}.wordmark em{font-style:normal;color:var(--orange)}.wordmark-mark{display:grid;place-items:center;width:31px;height:31px;border-radius:9px;background:var(--ink);color:white;font-size:20px;letter-spacing:0}.connection{font-size:12px;font-weight:800;color:var(--muted)}.connection:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;margin:0 7px 1px 0;background:#c8c4bb}.connection[data-connection=live]{color:var(--green)}.connection[data-connection=live]:before{background:var(--green)}main{min-height:650px}.view{animation:appear .2s ease-out}@keyframes appear{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}.hero{max-width:700px;padding:50px 0 40px}.kicker,.eyebrow{margin:0;color:var(--orange-dark);font-size:11px;font-weight:900;letter-spacing:.16em}.hero h1{margin:18px 0 18px;font-size:clamp(44px,7vw,84px);line-height:.96;letter-spacing:-.06em}.hero h1 span{color:var(--orange)}.hero-copy{max-width:460px;color:var(--muted);font-size:18px;line-height:1.55}.home-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;max-width:900px}.card{background:var(--paper);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}.host-card,.join-card{padding:30px}.card-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;font-size:25px;font-weight:900;margin-bottom:27px}.orange{background:#fff0eb;color:var(--orange)}.blue{background:var(--blue-soft);color:var(--blue)}.card h2{margin:0 0 8px;font-size:25px;letter-spacing:-.03em}.card p{margin:0 0 24px;color:var(--muted);line-height:1.55}.button{display:inline-flex;justify-content:center;align-items:center;gap:20px;border:0;border-radius:11px;padding:14px 18px;font-weight:900;letter-spacing:.01em;transition:.15s transform,.15s box-shadow}.button:hover:not(:disabled){transform:translateY(-2px);box-shadow:0 7px 16px rgba(23,35,60,.12)}.button span{font-size:19px}.primary{background:var(--orange);color:white}.dark{background:var(--ink);color:white}.ghost{border:1px solid var(--line);background:white;color:var(--ink)}.host-card .button{width:100%;margin-bottom:10px}.join-card form{display:grid;gap:8px}.join-card label,.editor-card label{font-size:12px;font-weight:900;color:var(--muted);margin-top:7px}.join-card input,.editor-card input,.editor-card textarea,.editor-card select,.import-dialog textarea{width:100%;border:1px solid #d9d5cb;border-radius:10px;background:white;color:var(--ink);padding:12px 13px;outline:0}.join-card input:focus,.editor-card input:focus,.editor-card textarea:focus,.editor-card select:focus,.import-dialog textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #eef0ff}.code-input{text-transform:uppercase;font-size:20px;font-weight:900;letter-spacing:.18em}.resume{display:flex;align-items:center;gap:14px;width:max-content;margin-top:22px;padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:#fff}.text-button{border:0;background:transparent;color:var(--blue);font-weight:900;padding:7px}.muted-button{color:var(--muted)}.page-heading{display:flex;justify-content:space-between;align-items:flex-start;margin:18px 0 28px}.page-heading h1,.room-header h1{font-size:42px;line-height:1;margin:10px 0 8px;letter-spacing:-.05em}.page-heading p:not(.kicker){margin:0;color:var(--muted)}.builder-layout{display:grid;grid-template-columns:370px minmax(0,1fr);gap:20px}.bank-card,.editor-card{padding:24px}.section-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:19px}.section-heading h2{font-size:21px;margin:7px 0 0}.bank-badge,.live-dot{font-size:11px;font-weight:900;color:var(--green);background:#eaf8f2;padding:6px 8px;border-radius:99px;white-space:nowrap}.bank-actions{display:flex;flex-wrap:wrap;gap:7px;border-bottom:1px solid var(--line);padding-bottom:18px}.button.small{padding:9px 11px;font-size:12px;gap:8px}.question-list{display:grid;gap:6px;max-height:455px;overflow:auto;padding:15px 0 8px}.question-row{display:grid;grid-template-columns:27px 1fr 18px;gap:8px;align-items:center;text-align:left;border:1px solid transparent;border-radius:10px;padding:9px;background:transparent;color:var(--ink)}.question-row:hover{background:#faf8f2}.question-row.active{border-color:#ffb19f;background:#fff2ee}.question-row .number{display:grid;place-items:center;width:27px;height:27px;border-radius:8px;background:#f2efe8;color:var(--muted);font-size:11px;font-weight:900}.question-row.active .number{background:var(--orange);color:white}.question-row p{overflow:hidden;margin:0;font-size:13px;font-weight:750;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.question-row .tick{color:var(--green);font-weight:900}.add-question{width:100%;border:1px dashed #c7c1b5;border-radius:10px;background:transparent;color:var(--muted);padding:11px;font-weight:850}.counter{font-size:12px;color:var(--muted);font-weight:800}.empty-editor{text-align:center;padding:80px 20px;color:var(--muted)}.empty-editor h3{margin:15px 0 4px;color:var(--ink)}.empty-editor p{margin:0}.empty-icon{display:grid;place-items:center;margin:auto;width:48px;height:48px;border-radius:50%;background:#fff0eb;color:var(--orange);font-size:23px}.answer-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.answer-grid label{display:block}.editor-card textarea{resize:vertical;min-height:86px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}.form-row>div{display:grid}.editor-actions{display:flex;justify-content:space-between;align-items:center;margin-top:20px}.danger{background:#fff1f1;color:var(--red);border:1px solid #f3caca}.launch-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);margin-top:28px;padding-top:20px}.launch-bar div{color:var(--muted);font-size:13px}.launch-bar b{color:var(--ink)}.room-header{display:flex;align-items:flex-end;justify-content:space-between;margin:18px 0 28px}.room-code{display:grid;grid-template-columns:auto auto auto;align-items:center;gap:12px;padding:10px 14px;border:1px solid var(--line);border-radius:13px;background:#fff}.room-code span{font-size:10px;color:var(--muted);font-weight:900;letter-spacing:.15em}.room-code strong{font-size:24px;letter-spacing:.18em}.copy-button{border:0;background:var(--blue-soft);color:var(--blue);border-radius:7px;padding:7px 9px;font-size:12px;font-weight:900}.room-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px}.live-card,.players-card{padding:25px}.live-top{display:flex;justify-content:space-between;gap:15px}.live-top h2{font-size:27px;margin:7px 0 0;letter-spacing:-.04em}.live-timer{font-size:39px;font-weight:950;color:var(--orange)}.live-question{min-height:130px;display:grid;place-items:center;text-align:center;padding:30px 20px;font-size:clamp(20px,3vw,31px);font-weight:900;line-height:1.15}.live-answers{display:grid;grid-template-columns:1fr 1fr;gap:10px}.live-answer{min-height:70px;display:flex;align-items:center;gap:13px;text-align:left;border:2px solid var(--line);border-radius:12px;background:white;padding:12px;font-weight:850}.live-answer:not(:disabled):hover{border-color:var(--blue);transform:translateY(-2px)}.live-answer .answer-key{display:grid;place-items:center;width:29px;height:29px;border-radius:8px;background:var(--blue-soft);color:var(--blue);font-size:12px}.live-answer.chosen{border-color:var(--orange);background:#fff3ef}.live-answer.correct{border-color:var(--green);background:#eaf8f2}.live-answer.wrong{opacity:.58}.host-controls{display:flex;flex-wrap:wrap;gap:9px;margin-top:24px}.host-controls .button:first-child{flex:1}.result-panel{border:1px solid var(--line);border-radius:12px;padding:16px;background:#fbfaf6}.result-title{font-weight:900;margin-bottom:9px}.distribution{display:grid;gap:7px}.dist-line{display:grid;grid-template-columns:20px 1fr 25px;gap:7px;align-items:center;font-size:12px;font-weight:800}.dist-bar{height:8px;border-radius:8px;background:#e8e5dd;overflow:hidden}.dist-bar i{display:block;height:100%;background:var(--blue);border-radius:8px}.players-card h2{margin:7px 0 0}.room-players{display:grid;gap:8px}.room-player{display:grid;grid-template-columns:30px 1fr auto;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #eeebe3}.player-avatar{display:grid;place-items:center;width:30px;height:30px;border-radius:9px;background:#eef0ff;color:var(--blue);font-weight:950}.room-player b{font-size:13px}.room-player small{display:block;color:var(--muted);font-size:11px}.room-player strong{font-size:13px}.remove-player{border:0;background:transparent;color:var(--red);font-size:17px}.helper{font-size:12px!important;color:var(--muted);margin-top:18px!important}.toast{position:fixed;bottom:25px;left:50%;z-index:5;transform:translate(-50%,20px);opacity:0;pointer-events:none;background:var(--ink);color:white;border-radius:10px;padding:12px 17px;font-weight:800;box-shadow:var(--shadow);transition:.2s}.toast.show{opacity:1;transform:translate(-50%,0)}.import-dialog{width:min(620px,calc(100% - 30px));border:1px solid var(--line);border-radius:18px;padding:0;background:var(--paper);color:var(--ink);box-shadow:0 30px 90px #17233c35}.import-dialog::backdrop{background:#17233c88}.import-dialog form{padding:25px}.dialog-close{float:right;border:0;background:transparent;font-size:28px;color:var(--muted)}.import-dialog h2{font-size:27px;margin:7px 0}.import-dialog p:not(.kicker){color:var(--muted);line-height:1.5}.import-dialog textarea{resize:vertical;margin-top:9px}.dialog-footer{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-top:12px}.dialog-footer span{font-size:11px;color:var(--muted)}code{background:#f1eee6;border-radius:4px;padding:2px 4px}
@media(max-width:850px){.shell{padding:17px 16px 45px}.home-grid,.builder-layout,.room-layout{grid-template-columns:1fr}.hero{padding:30px 0}.builder-layout{display:flex;flex-direction:column}.editor-card{order:-1}.question-list{max-height:300px}.room-header{align-items:flex-start;gap:20px;flex-direction:column}.room-code{width:100%;grid-template-columns:auto 1fr auto}.room-code strong{justify-self:center}.topbar{padding-bottom:25px}}@media(max-width:520px){.hero h1{font-size:50px}.host-card,.join-card,.bank-card,.editor-card,.live-card,.players-card{padding:19px}.live-answers{grid-template-columns:1fr}.answer-grid,.form-row{grid-template-columns:1fr}.launch-bar{align-items:stretch;flex-direction:column}.dialog-footer{align-items:stretch;flex-direction:column}.dialog-footer .button{width:100%}}
.starter-picker{display:flex;align-items:center;gap:7px;width:100%;padding:9px 0 2px}.starter-picker label{margin:0!important;font-size:11px!important;color:var(--muted);font-weight:900}.starter-picker input{width:66px;padding:8px 9px;border:1px solid var(--line);border-radius:8px;font-weight:900;color:var(--ink);background:#fff}
