:root { --green:#143e2d; --green2:#1f7a57; --gold:#f2b84b; --cream:#fff8e8; --ink:#13231c; }
* { box-sizing: border-box; }
body { margin:0; min-height:100vh; background:radial-gradient(circle at 80% 10%, rgba(242,184,75,.22), transparent 25%), linear-gradient(135deg,#102c21,#1c5b41); color:#fff; font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; }
.site-header { width:min(1200px,90vw); margin:auto; min-height:90px; display:flex; align-items:center; justify-content:space-between; }
.site-header a { color:#dcebe4; font-weight:800; text-decoration:none; }
.site-header > a { margin-left:auto; }
.site-language-switcher { display:flex; gap:12px; margin-left:18px; }
.site-language-switcher a { border:1px solid rgba(255,255,255,.25); border-radius:99px; min-width:38px; padding:6px 10px; font-size:11px; text-align:center; }
.brand { font-weight:950; font-size:34px; letter-spacing:-1.5px; }
.brand span { color:var(--gold); }
.brand.dark { color:var(--ink); }
.hero { width:min(1200px,90vw); min-height:calc(100vh - 90px); margin:auto; display:grid; grid-template-columns:1.25fr .75fr; align-items:center; gap:7vw; padding:5vh 0 10vh; }
.eyebrow { color:var(--gold); text-transform:uppercase; letter-spacing:.18em; font-size:12px; font-weight:950; }
.hero h1 { margin:2vh 0; font-size:clamp(54px,7.2vw,112px); line-height:.93; letter-spacing:-.065em; }
.hero h1 em { color:var(--gold); font-style:normal; }
.hero p { max-width:720px; color:#dbe9e2; font-size:clamp(18px,1.55vw,25px); line-height:1.5; }
.hero-actions { display:flex; gap:12px; margin-top:4vh; }
.hero-actions a { border-radius:12px; padding:14px 20px; font-weight:900; text-decoration:none; }
.primary-link { background:var(--gold); color:var(--ink); }
.secondary-link { border:1px solid rgba(255,255,255,.3); color:#fff; }
.feature-stack { display:grid; gap:13px; }
.feature-stack div { display:grid; grid-template-columns:55px 1fr; align-items:center; gap:12px; background:rgba(255,255,255,.09); border:1px solid rgba(255,255,255,.13); border-radius:15px; padding:20px; }
.feature-stack strong { color:var(--gold); font-size:17px; }
.feature-stack span { font-size:18px; font-weight:800; line-height:1.3; }

.phone-page { display:flex; align-items:center; justify-content:center; padding:24px; background:var(--cream); color:var(--ink); }
.phone-card { width:min(460px,100%); background:#fff; border:1px solid #e7dfcd; border-radius:24px; padding:30px; box-shadow:0 20px 55px rgba(22,55,42,.12); }
.phone-card .eyebrow { margin-top:35px; color:var(--green2); }
.phone-card h1 { font-size:38px; line-height:1.05; margin:9px 0; }
.phone-card p { color:#66726c; line-height:1.5; }
.coming-card { margin:25px 0; background:#edf7f1; border-radius:14px; padding:18px; }
.coming-card strong, .coming-card span { display:block; }
.coming-card strong { color:var(--green2); margin-bottom:7px; }
.coming-card span { line-height:1.45; }
.code-display { border-top:1px solid #eee8db; padding-top:18px; color:#66726c; }

.join-card { margin:auto; }
.join-form { display:grid; gap:10px; margin-top:22px; }
.join-form label { color:var(--ink); font-size:14px; font-weight:900; }
.join-form input { width:100%; border:2px solid #d9ded9; border-radius:13px; padding:15px 14px; background:#fff; color:var(--ink); font:inherit; font-size:18px; outline:none; }
.join-form input:focus { border-color:var(--green2); box-shadow:0 0 0 4px rgba(31,122,87,.12); }
.phone-button { display:block; width:100%; border:0; border-radius:13px; padding:15px 18px; background:var(--green); color:#fff; font:inherit; font-weight:900; text-decoration:none; text-align:center; cursor:pointer; }
.phone-button:active { transform:translateY(1px); }
.phone-alert { margin:18px 0; border-radius:12px; padding:13px 14px; line-height:1.4; font-weight:750; }
.phone-alert.error { border:1px solid #f2c5bd; background:#fff0ed; color:#a93627; }
.qr-test-success { display:grid; gap:6px; border:1px solid #b9dfc8; background:#e9f7ee; color:#185f3e; }
.qr-test-success strong { font-size:20px; }
.qr-test-success span { color:#4e6b5d; font-size:13px; }
.continue-team { display:grid; gap:6px; margin-top:22px; border-radius:15px; padding:18px; background:#edf7f1; }
.continue-team span { color:#66726c; font-size:13px; font-weight:800; text-transform:uppercase; letter-spacing:.07em; }
.continue-team strong { margin-bottom:8px; font-size:23px; }
.join-divider { display:flex; align-items:center; gap:10px; margin:20px 0 4px; color:#89928e; font-size:12px; font-weight:900; text-transform:uppercase; letter-spacing:.08em; }
.join-divider::before, .join-divider::after { content:""; flex:1; height:1px; background:#e7e3da; }
.join-note { margin-top:20px; border-top:1px solid #eee8db; padding-top:16px; color:#7b837f; font-size:13px; line-height:1.45; }

.game-phone-page { display:block; min-height:100vh; padding:0; background:#f5f0e4; color:var(--ink); }
.phone-game { width:min(620px,100%); min-height:100vh; margin:0 auto; padding:18px 16px 40px; background:#fffaf0; box-shadow:0 0 40px rgba(20,62,45,.12); }
.phone-game-header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.phone-game-header .brand { font-size:28px; }
.phone-venue { max-width:330px; margin-top:2px; color:#78817c; font-size:12px; font-weight:800; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.team-score-card { flex:0 0 auto; display:grid; grid-template-columns:auto auto; align-items:baseline; gap:0 7px; min-width:104px; border-radius:15px; padding:9px 12px; background:var(--green); color:#fff; }
.team-score-card span { grid-row:1 / 3; color:var(--gold); font-size:20px; font-weight:950; }
.team-score-card strong { font-size:24px; line-height:1; }
.team-score-card small { color:#dbe9e2; font-size:10px; font-weight:800; text-transform:uppercase; }
.team-strip { display:flex; align-items:center; gap:8px; margin:16px 0; border-radius:12px; padding:11px 13px; background:#eaf4ee; }
.team-strip span { color:#6d7772; font-size:12px; font-weight:850; text-transform:uppercase; letter-spacing:.06em; }
.team-strip strong { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.phone-status { display:flex; align-items:center; justify-content:space-between; gap:12px; border-radius:17px 17px 0 0; padding:13px 16px; background:var(--green); color:#fff; }
.phone-status > div:first-child { display:grid; gap:2px; }
.phone-status span { color:#f4d895; font-size:11px; font-weight:950; text-transform:uppercase; letter-spacing:.08em; }
.phone-status strong { font-size:13px; }
.phone-timer { min-width:48px; text-align:right; color:var(--gold); font-size:34px; font-weight:950; line-height:1; }
.phase-waiting .phone-timer { min-width:105px; font-size:20px; }
.phone-question, .phone-break, .phone-waiting, .phone-rules, .phone-finished { display:none; border:1px solid #e5ddca; border-top:0; border-radius:0 0 18px 18px; padding:19px 16px; background:#fff; }
.phone-question.visible, .phone-break.visible, .phone-waiting.visible, .phone-rules.visible, .phone-finished.visible { display:block; }
.phone-category { color:var(--green2); font-size:11px; font-weight:950; text-transform:uppercase; letter-spacing:.1em; }
.phone-question h1 { margin:7px 0 17px; font-size:clamp(23px,6vw,34px); line-height:1.12; letter-spacing:-.025em; }
.phone-question-image { display:none; width:100%; height:clamp(160px,42vw,260px); margin:0 0 17px; overflow:hidden; border-radius:13px; background:#ebe4d5; }
.phone-question-image.visible { display:flex; align-items:center; justify-content:center; }
.phone-question-image img { display:block; width:100%; height:100%; max-width:100%; max-height:100%; object-fit:contain; }
.phone-answers { display:grid; gap:16px; }
.phone-answers button { width:100%; min-height:70px; border:2px solid #ded7c8; border-radius:13px; padding:12px; display:flex; align-items:center; gap:12px; background:#fffcf5; color:var(--ink); font:inherit; text-align:left; cursor:pointer; touch-action:manipulation; }
.phone-answers button span { flex:0 0 auto; width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; background:#e8dfcc; font-size:17px; font-weight:950; }
.phone-answers button strong { font-size:16px; line-height:1.25; }
.phone-answers button:disabled { cursor:default; opacity:.62; }
.phone-answers button.selected { opacity:1; border-color:var(--green2); background:#eaf7ef; }
.phone-answers button.selected span { background:var(--green2); color:#fff; }
.phase-answer .phone-answers button.correct { opacity:1; border-color:#2c986a; background:#dff6e9; }
.phase-answer .phone-answers button.correct span { background:#2c986a; color:#fff; }
.phase-answer .phone-answers button.wrong { opacity:1; border-color:#d76150; background:#fff0ed; }
.phase-answer .phone-answers button.wrong span { background:#d76150; color:#fff; }
.answer-feedback { margin-top:13px; border-radius:11px; padding:11px 12px; background:#f2efe7; color:#6d746f; font-size:13px; line-height:1.4; font-weight:750; }
.answer-feedback.submitted { background:#e8f2ec; color:var(--green); }
.answer-feedback.correct { background:#dff6e9; color:#176443; }
.answer-feedback.wrong { background:#fff0ed; color:#9d382b; }
.phone-break { padding:30px 22px; text-align:center; }
.phone-break-icon { font-size:64px; }
.phone-break .eyebrow { margin-top:8px; color:var(--green2); }
.phone-break h1 { margin:7px 0; font-size:32px; }
.phone-break p { margin:0; color:#68736d; line-height:1.45; }
.phone-waiting { padding:30px 22px; text-align:center; }
.phone-waiting .eyebrow { margin-top:8px; color:var(--green2); }
.phone-waiting h1 { margin:7px 0; font-size:32px; }
.phone-waiting p { margin:0; color:#68736d; line-height:1.55; }
.phone-rules { padding:30px 22px; text-align:center; }
.phone-rules .eyebrow { margin-top:8px; color:var(--green2); }
.phone-rules h1 { margin:7px 0 12px; font-size:32px; }
.phone-rules p { margin:0; color:#536159; font-size:17px; line-height:1.6; white-space:pre-line; }
.phone-finished { padding:30px 22px; text-align:center; }
.phone-finished .eyebrow { margin-top:8px; color:var(--green2); }
.phone-finished h1 { margin:7px 0; font-size:32px; }
.phone-finished p { margin:0; color:#68736d; line-height:1.55; }
.phone-leaderboard { margin-top:18px; border:1px solid #e5ddca; border-radius:17px; padding:16px; background:#fff; }
.phone-leaderboard h2 { margin:0 0 10px; font-size:16px; }
.phone-leaderboard ol { margin:0; padding:0; list-style:none; display:grid; gap:6px; }
.phone-leaderboard li { display:grid; grid-template-columns:28px minmax(0,1fr) auto; align-items:center; gap:8px; border-radius:9px; padding:8px 9px; color:#737b76; font-size:13px; }
.phone-leaderboard li strong { overflow:hidden; color:var(--ink); text-overflow:ellipsis; white-space:nowrap; }
.phone-leaderboard li b { color:var(--green); }
.phone-leaderboard li.current { background:#eaf4ee; }
.phone-leaderboard li.current strong::after { content:" • " attr(data-you-label); color:var(--green2); font-size:11px; }
.phone-leaderboard li.empty { display:block; text-align:center; }
.phone-connection-error { display:none; position:sticky; bottom:10px; z-index:5; box-shadow:0 8px 24px rgba(80,25,15,.2); }
.phone-connection-error.visible { display:block; }

@media(max-width:800px){ .hero{grid-template-columns:1fr;}.feature-stack{margin-top:3vh}.site-header{min-height:72px}.hero h1{font-size:55px}.hero-actions{flex-direction:column}.hero-actions a{text-align:center} }

@media(max-width:380px){ .phone-game{padding-left:10px;padding-right:10px}.phone-venue{max-width:190px}.team-score-card{min-width:94px;padding-left:9px;padding-right:9px}.phone-question{padding-left:11px;padding-right:11px} }
