:root{font-family:system-ui,-apple-system,"Segoe UI",sans-serif;color:#202534;background:#f7f3ea;font-size:18px}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:radial-gradient(circle at 100% 0%,#f9dfc2 0,transparent 33%),radial-gradient(circle at 0% 80%,#d9e8df 0,transparent 38%),#f7f3ea}button,input{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible{outline:3px solid #b95234;outline-offset:3px}.shell{max-width:680px;margin:auto;min-height:100vh;padding:0 20px 28px}.top{display:flex;justify-content:space-between;align-items:center;height:74px}.brand{font-weight:900;letter-spacing:-1.4px;font-size:24px;color:#163d43}.brand span:last-child{color:#b95234}.brand-mark{font-size:28px;color:#b95234;margin-right:7px}.lang{border:1px solid #d8d4c8;background:#fffdf8;padding:9px 13px;border-radius:12px;font-size:14px;font-weight:750;color:#245b57;min-height:42px}.lang span{color:#b95234}.entry{padding-top:min(12vh,90px)}.eyebrow{color:#b95234;font-weight:900;letter-spacing:.14em;text-transform:uppercase;font-size:12px;margin-bottom:16px}.hero-art{width:84px;height:84px;border-radius:28px;background:#245b57;display:grid;place-items:center;color:#fff;font-size:40px;box-shadow:12px 12px 0 #e9bf83;transform:rotate(-7deg);margin:0 0 40px 7px}.hero-art span{transform:rotate(7deg)}h1{font-size:clamp(39px,10.4vw,68px);letter-spacing:-.055em;line-height:1.04;margin:0 0 20px;color:#173d42}h1 em{font-style:normal;color:#b95234}.lead{font-size:20px;line-height:1.45;color:#5a6265;margin:0 0 34px;max-width:490px}.primary{border:0;background:#245b57;color:white;min-height:58px;border-radius:17px;padding:14px 24px;font-weight:800;width:100%;box-shadow:0 6px 0 #173d42;transition:transform .15s,box-shadow .15s}.primary:active{transform:translateY(4px);box-shadow:0 2px 0 #173d42}.primary:disabled{opacity:.6;cursor:default}.small-note{font-size:14px;color:#687170;line-height:1.5;text-align:center;margin-top:20px}.pill-row{display:flex;gap:8px;flex-wrap:wrap;margin-top:44px}.pill{background:#fff9f0;border:1px solid #e7d6c0;border-radius:100px;padding:8px 13px;font-size:13px;font-weight:700;color:#6f5948}.panel{background:#fffdf9;border:1px solid #ebe6da;border-radius:27px;padding:25px;box-shadow:0 15px 40px #243f3912}.join-panel{margin-top:clamp(38px,9vh,96px)}.back{border:0;background:transparent;color:#245b57;padding:10px 0;font-size:15px;font-weight:750}.join-panel h1{font-size:40px;margin:24px 0 10px}.join-panel p{color:#63706f;line-height:1.45}.field{display:block;font-size:14px;font-weight:800;margin:29px 0 9px}.nickname{border:2px solid #d9dfd9;background:#fff;border-radius:14px;width:100%;height:58px;padding:0 16px;color:#202534;font-size:20px}.join-panel .primary{margin-top:22px}.game-header{padding-top:12px}.game-meta{display:flex;justify-content:space-between;align-items:center;color:#6a716d;font-size:13px;font-weight:800;text-transform:uppercase;letter-spacing:.08em}.progress{height:7px;border-radius:8px;background:#e1e5d9;margin:12px 0 15px;overflow:hidden}.progress span{height:100%;display:block;background:#b95234;border-radius:8px}.players{display:flex;gap:7px;overflow:auto;padding:2px 0 14px;scrollbar-width:none}.player{white-space:nowrap;border-radius:100px;background:#e9efeb;color:#27534d;padding:7px 11px;font-size:13px;font-weight:750}.player.human{background:#245b57;color:white}.question-card{background:#fffdf9;border:1px solid #ece5d9;border-radius:26px;padding:21px 19px 25px;box-shadow:0 12px 38px #25413b14}.q-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:13px;gap:8px}.topic{font-size:12px;color:#b95234;text-transform:uppercase;letter-spacing:.11em;font-weight:900}.timer{font-variant-numeric:tabular-nums;border-radius:100px;background:#f0e5d4;color:#7f482d;padding:6px 11px;font-size:14px;font-weight:850;min-width:54px;text-align:center}.timer.urgent{background:#fce1db;color:#a33333}.question-card h2{font-size:clamp(25px,6vw,35px);letter-spacing:-.035em;line-height:1.18;color:#202534;margin:0 0 22px}.options{display:grid;gap:10px}.option{min-height:62px;width:100%;border:1.5px solid #dde3dc;background:#fff;color:#283538;border-radius:15px;padding:12px 14px;text-align:left;display:flex;align-items:center;gap:13px;line-height:1.3;font-weight:650}.option .letter{flex:0 0 29px;width:29px;height:29px;display:grid;place-items:center;border-radius:9px;background:#edf1ed;color:#55746b;font-size:14px;font-weight:900}.option:not(:disabled):hover{border-color:#245b57;background:#f6faf6}.option.selected{border-color:#245b57;background:#e5f0e9}.option.correct{border-color:#226347;background:#e5f3e9}.option.wrong{border-color:#a33333;background:#fae8e3}.option:disabled{cursor:default}.status-line{font-size:14px;font-weight:750;color:#245b57;min-height:23px;margin:15px 2px 0}.reveal-box{margin-top:20px;padding:17px;border-radius:16px;background:#f6f0e3;line-height:1.4}.reveal-box strong{display:block;color:#245b57;margin-bottom:5px}.reveal-box p{margin:0;color:#455451;font-size:16px}.score-burst{font-weight:900;font-size:25px;color:#226347;margin-top:14px}.messages{max-height:240px;overflow:auto;display:grid;gap:10px;margin:15px 0;min-height:46px}.bubble{background:#f2f4ef;border-radius:14px;padding:10px 12px;font-size:15px;line-height:1.4;overflow-wrap:anywhere}.bubble.human{background:#e6f0e9}.bubble .who{font-size:12px;font-weight:900;color:#245b57;margin-bottom:2px}.bubble.system{font-style:italic;background:#f7ede3}.chat-form{display:flex;gap:7px}.chat-input{min-width:0;flex:1;border:1.5px solid #d7ded6;border-radius:13px;height:48px;padding:0 12px;background:#fff;font-size:15px}.send{background:#245b57;color:#fff;border:0;border-radius:12px;width:49px;font-size:23px;flex:0 0 49px}.reaction-row{display:flex;gap:8px;margin-top:11px}.reaction{background:#fbf5e9;border:1px solid #e8ddcb;border-radius:11px;min-height:41px;min-width:51px;font-size:20px}.reaction-feed{font-size:15px;align-self:center;color:#677671}.results{padding-top:28px}.results .eyebrow{text-align:center}.results h1{text-align:center;font-size:43px;margin-bottom:10px}.results-sub{text-align:center;color:#626d6a;line-height:1.45;margin:0 0 26px}.podium{display:grid;gap:9px;margin:22px 0 28px}.podium-row{display:flex;align-items:center;justify-content:space-between;border-radius:16px;background:#f3f5ed;padding:13px 16px;font-weight:800}.podium-row:first-child{background:#e9d9b9}.podium-row .score{color:#245b57}.results .primary{margin-top:5px}.loading{text-align:center;padding:22vh 12px;color:#245b57;font-weight:750}.error{color:#a33333;font-size:14px;line-height:1.4;margin:12px 0}@media(max-width:390px){.shell{padding:0 14px 22px}.top{height:66px}.question-card{padding:18px 15px}.option{min-height:58px}.panel{padding:21px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.culture-set{border:0;padding:0;margin:24px 0 0}.culture-set legend{font-size:14px;font-weight:800;padding:0 0 9px}.culture-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.culture-options label{cursor:pointer}.culture-options input{position:absolute;opacity:0}.culture-options span{display:grid;place-items:center;min-height:54px;background:#fff;border:2px solid #d9dfd9;border-radius:13px;font-size:17px;font-weight:800;color:#314d4b}.culture-options input:checked+span{border-color:#245b57;background:#e7f1eb}.culture-options input:focus-visible+span{outline:3px solid #b95234;outline-offset:3px}.culture-set small{display:block;color:#687170;line-height:1.4;font-size:13px;margin-top:10px}



.repeat-note{background:#fff3dc;color:#80542d;border:1px solid #ead5b3;border-radius:13px;padding:11px 13px;font-size:13px;line-height:1.4;font-weight:700;margin:0 0 13px}

.results-secondary{display:block;width:100%;min-height:50px;margin-top:18px;padding:10px 18px;border:1.5px solid #c8d9d1;border-radius:14px;background:#fffdf9;color:#245b57;font-size:15px;font-weight:800}.results-secondary:hover{background:#eef5ef}

.ai-sparkle{display:inline-block;width:16px;height:16px;margin-left:3px;color:#b95234;vertical-align:-2px;line-height:0;flex:none}.ai-sparkle svg{display:block;width:100%;height:100%}.player .ai-sparkle{width:14px;height:14px;vertical-align:-2px}.bubble .ai-sparkle{width:13px;height:13px;vertical-align:-1px}
.chat-strip{width:100%;height:78px;min-height:78px;display:flex;align-items:center;gap:9px;margin:0 0 13px;padding:0 13px;border:1px solid #d3ded6;border-radius:16px;background:#eaf2eb;color:#245b57;text-align:left;box-shadow:0 5px 15px #24433a0d}.chat-strip-spark{font-size:16px;color:#b95234;flex:none}.chat-strip-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:2px}.chat-strip-title{font-size:10px;font-weight:850;letter-spacing:.08em;text-transform:uppercase;color:#6b8079;line-height:1.1}.chat-strip-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;max-height:2.5em;overflow:hidden;color:#28514b;font-size:14px;line-height:1.25;font-weight:650;overflow-wrap:anywhere}.chat-strip-arrow{flex:none;font-size:21px;line-height:1}.results .chat-strip{margin-top:18px}
.chat-overlay[hidden]{display:none}.chat-overlay{position:fixed;inset:0;z-index:20}.chat-backdrop{position:absolute;inset:0;background:#152b2ed1}.chat-sheet{position:absolute;left:50%;bottom:0;transform:translateX(-50%);width:min(100%,680px);height:min(82vh,710px);height:min(82dvh,710px);min-height:340px;display:flex;flex-direction:column;overflow:hidden;background:#fffdf9;border-radius:26px 26px 0 0;box-shadow:0 -18px 55px #071b2070}.chat-sheet-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:18px 19px 8px;color:#245b57}.chat-sheet-head>div{display:flex;flex-direction:column;gap:3px;min-width:0}.chat-sheet-head strong{font-size:18px}.chat-sheet-head span{font-size:12px;color:#72827c;font-weight:750}.chat-close{display:grid;place-items:center;flex:none;width:44px;height:44px;border:1px solid #d8e2da;border-radius:12px;background:#f3f7f2;color:#245b57;font-size:30px;line-height:1}.chat-sheet-hint{padding:0 19px 12px;color:#75837e;font-size:12px;font-weight:650}.chat-sheet .messages{flex:1;min-height:0;max-height:none;display:flex;flex-direction:column;align-items:stretch;gap:10px;overflow:auto;margin:0;padding:14px 18px;background:#faf9f4;overscroll-behavior:contain}.chat-compose{flex:none;padding:12px 18px max(15px,env(safe-area-inset-bottom));border-top:1px solid #e8e9df;background:#fffdf9}.chat-compose .error{margin:0 0 8px}.chat-compose .error:empty{display:none}.chat-compose .reaction-row{margin-top:10px}.option-mark{margin-left:auto;color:#226347;font-weight:900;font-size:20px;flex:none}.status-line{line-height:1.4;min-height:25px}
@media(max-width:340px){.chat-strip{gap:7px;padding:0 10px}}
