/* Lotto & Bingo: the games' blue visual system; orange for what's just happened. */
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;min-height:100vh;background:#f5f8fc;color:#243247;font-family:'Manrope',Arial,sans-serif}
button,input,select{font:inherit}
button{cursor:pointer}
button:disabled{cursor:default;opacity:.55}
button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
main{max-width:1136px;margin:auto;padding:0 48px}
header{height:86px;border-bottom:1px solid #dce5f0;display:flex;align-items:center;justify-content:space-between}
.brand{font-size:25px;font-weight:800;color:#243247;letter-spacing:-1.2px}
.brand a{color:inherit;text-decoration:none}
.brand span{font-size:17px;color:#7b8da5;font-weight:500;letter-spacing:0}
.top-actions{display:flex;align-items:center;gap:14px}
.edition,.eyebrow{font-size:10px;font-weight:800;letter-spacing:2px}
.edition{color:#7b8da5}
.intro{margin:44px 0 30px}
.eyebrow{color:#647b98;display:flex;align-items:center;gap:8px}
.eyebrow i{width:6px;height:6px;border-radius:50%;background:#2563eb}
h1{font-size:70px;line-height:1;margin:15px 0;letter-spacing:-4px}
h1 span{color:#2563eb}
.intro p{font-size:15px;color:#7286a0;margin:0;line-height:1.7}
.mobile{display:none}
.layout{display:grid;grid-template-columns:minmax(300px,600px) minmax(240px,1fr);gap:64px}
.layout>*{min-width:0}
/* In a game the play area takes the whole width; the server notes move below it. */
.in-game .layout{grid-template-columns:1fr;gap:40px}
.in-game aside{display:grid;grid-template-columns:1fr 1fr;gap:0 64px;border-top:1px solid #dce5f0;padding-top:30px}
.in-game .intro{margin:28px 0 22px}
.in-game h1{font-size:44px;letter-spacing:-2.5px}

/* Cards before the game: lobby, invitation, closed. */
.play>.card{max-width:520px;background:#fff;border:1px solid #dce5f0;border-radius:14px;padding:26px}
.card h2{font-size:24px;letter-spacing:-.8px;line-height:1.25;margin:10px 0 8px}
.card p{font-size:13px;color:#6e83a0;line-height:1.7;margin:0 0 6px}
.card p.center{text-align:center;font-weight:700;margin:0}
.label,.card label{display:block;font-size:11px;font-weight:700;margin:14px 0 8px}
.card input{width:100%;border:1px solid #c5d6ee;border-radius:7px;padding:12px 13px;background:#fff;color:#243247;outline-color:#2563eb}
.small{font-size:12px}
.card .small{margin-top:10px}
.card .small a,.card p a{color:#2563eb}
.warn{color:#a44237!important}
.seg{display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;border:1px solid #dce5f0;border-radius:999px;background:#e9eef5}
.seg button{border:0;background:none;border-radius:999px;padding:8px 16px;font-size:14px;font-weight:700;color:#7286a0}
.seg button[aria-checked=true]{background:#fff;color:#243247;box-shadow:0 1px 3px rgba(20,30,50,.12)}
.rules-text{margin-top:8px!important}
.primary{display:block;border:0;background:#2563eb;color:#fff;padding:14px 18px;width:100%;border-radius:7px;margin-top:16px;font-size:13px;font-weight:700;text-align:center;text-decoration:none}
.check{display:inline-flex!important;align-items:center;gap:8px;font-size:13px!important;font-weight:600!important;margin:0!important;cursor:pointer}
.check input{width:18px;height:18px;margin:0;accent-color:#2563eb}
.host-plays{display:flex!important;align-items:center;gap:12px;margin:16px 0 0!important;padding:13px 16px;border:2px solid #2563eb;border-radius:12px;background:#eef4ff;cursor:pointer}
.host-plays input{flex:none;width:22px;height:22px;margin:0;accent-color:#2563eb}
.host-plays b{display:block;font-size:16px;font-weight:800;color:#243247}
.host-plays small{display:block;font-size:12px;font-weight:600;color:#5f7593;margin-top:2px}
.host-plays:has(input:checked){background:#d6e4fd}
.round-setup .host-plays{margin:0!important}
.link-btn{border:0;background:none;color:#2563eb;font-size:12px;font-weight:700;padding:4px 0}
.pill{border:1px solid #dce5f0;background:#fff;color:#243247;border-radius:999px;padding:8px 16px;font-size:13px;font-weight:700}
.pill:hover:not(:disabled){border-color:#6692f1}
select{border:1px solid #c5d6ee;border-radius:7px;padding:7px 8px;background:#fff;color:#243247;font-size:13px}

/* The game: what's called on the left (on top on a phone), the board and the players beside it. */
.game{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:28px 48px;align-items:start}
.col-a,.col-b{display:flex;flex-direction:column;gap:22px;min-width:0}
.caller{display:flex;align-items:center;gap:24px;background:#fff;border:1px solid #dce5f0;border-radius:16px;padding:20px 24px}
.ball{flex:none;width:150px;height:150px;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;
  background:radial-gradient(circle at 38% 32%,#fff 0 30%,#fde7d4 70%,#f9c79c);box-shadow:inset 0 -6px 0 #f3b07a,0 6px 18px rgba(234,88,12,.18);
  color:#243247;font-size:68px;font-weight:800;letter-spacing:-3px;line-height:1;font-variant-numeric:tabular-nums}
#ball-num{display:flex;flex-direction:column;align-items:center}
.ball small{font-size:22px;letter-spacing:1px;color:#ea580c;margin-bottom:-2px}
.ball .turn{font-weight:800;letter-spacing:0}
.ball.empty{background:#eef3fa;box-shadow:inset 0 -6px 0 #dce5f0;color:#9fb0c6}
.ball.pop{animation:pop .45s ease-out}
@keyframes pop{0%{transform:scale(.6) rotate(-20deg)}70%{transform:scale(1.08)}100%{transform:none}}
.call{min-width:0}
.call p{margin:0}
.nick{font-size:24px;font-weight:800;letter-spacing:-.6px;color:#ea580c;line-height:1.2}
.nick:empty{display:none}
.count{font-size:13px;color:#7286a0;margin-top:6px!important}
.status{font-size:15px;font-weight:700;margin-top:6px!important;line-height:1.45}
.status:empty{display:none}
.banner{position:fixed;left:50%;top:14px;transform:translate(-50%,-8px);max-width:min(92vw,520px);background:#243247;color:#fff;padding:9px 18px;border-radius:999px;font-size:14px;font-weight:700;text-align:center;opacity:0;transition:opacity .2s,transform .2s;pointer-events:none;z-index:50}
.banner.show{opacity:1;transform:translate(-50%,0)}
.banner.win{background:#16a34a}
.banner.no{background:#b45309}

.host{background:#fff;border:1px solid #dce5f0;border-radius:16px;padding:20px 24px;display:flex;flex-direction:column;gap:14px}
.host .settings .label:first-child{margin-top:0}
.round-setup,.drawing{display:flex;flex-direction:column;gap:14px}
.round-setup .primary{margin-top:0}
.draw{border:0;background:#2563eb;color:#fff;border-radius:12px;padding:20px;font-size:20px;font-weight:800;letter-spacing:-.3px}
.draw:hover:not(:disabled){background:#1d4fd8}
.host-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px}
.end-row{justify-content:space-between;border-top:1px solid #e5edf7;padding-top:10px}
.end-row #end{color:#a44237}

.winners{background:#f0fdf4;border:1px solid #bbf7d0;border-radius:14px;padding:16px 20px}
.winners .eyebrow{color:#15803d}
.winners ul{list-style:none;margin:8px 0 0;padding:0;font-size:14px;line-height:1.8}
.winners li{display:flex;gap:10px;flex-wrap:wrap}
.winners b{min-width:120px}

.mine-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:10px}
.cards{display:flex;flex-direction:column;gap:14px}
.lcard{display:grid;grid-template-columns:repeat(var(--cols),1fr);gap:3px;padding:5px;background:#c9d8ee;border-radius:10px}
.lcard.us{max-width:360px;gap:4px}
.cell{position:relative;aspect-ratio:1;border:0;border-radius:5px;background:#fff;color:#243247;padding:0;font-size:18px;font-weight:800;display:flex;align-items:center;justify-content:center;font-variant-numeric:tabular-nums;user-select:none;-webkit-user-select:none}
.lcard.us .cell{font-size:22px}
.cell.blank{background:#e4ecf7}
.cell.head{background:none;color:#2563eb;font-size:18px;aspect-ratio:auto;padding:2px 0}
.cell.free{background:#dbe7fb;color:#2563eb;font-size:12px;letter-spacing:1px}
.cell.mark{background:radial-gradient(circle,#fdba74 0 56%,#fff 58%)}
.cell.win{box-shadow:inset 0 0 0 3px #16a34a}
button.cell:active{transform:scale(.94)}
.claim{display:flex;flex-direction:column;align-items:center;width:100%;margin-top:14px;border:0;border-radius:12px;background:#ea580c;color:#fff;padding:14px;font-size:24px;font-weight:800;letter-spacing:-.4px}
.claim small{font-size:12px;font-weight:600;letter-spacing:0;opacity:.9}
.claim:hover:not(:disabled){background:#d14d07}
.claim.ready{animation:ready 1s ease-in-out infinite}
@keyframes ready{50%{box-shadow:0 0 0 8px rgba(234,88,12,.25)}}
.next-round{margin:0;font-size:14px;font-weight:700;background:#e9f1fc;border-radius:10px;padding:14px 16px}

.invite-box,.board-box,.people-box{background:#fff;border:1px solid #dce5f0;border-radius:16px;padding:18px 20px}
.invite{display:flex;gap:18px;align-items:flex-start;margin-top:10px}
.invite p{font-size:13px;color:#6e83a0;line-height:1.6;margin:0 0 10px}
.qr{flex:none;width:150px;height:150px;background:#fff;border-radius:8px;padding:4px}
.qr svg{display:block;width:100%;height:100%}
.invite-body{flex:1;min-width:0}
.link-row{display:flex;gap:6px;margin-bottom:10px}
.link-row input{flex:1;min-width:0;font-size:12px;padding:10px;border:1px solid #c5d6ee;border-radius:7px;background:#fff;color:#243247}
.link-row button{flex:none;border:0;border-radius:7px;background:#2563eb;color:#fff;font-size:12px;font-weight:700;padding:0 14px}
.board-head{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:10px}
.board-head .small{color:#7286a0;font-weight:700}
.history{display:grid;gap:3px}
.history.ru{grid-template-columns:repeat(10,1fr)}
.history.us{grid-template-columns:repeat(16,1fr)}
.h{text-align:center;font-size:12px;font-weight:700;padding:5px 0;border-radius:4px;background:#eef3fa;color:#9fb0c6;font-variant-numeric:tabular-nums}
.h.head{background:none;color:#2563eb;font-weight:800}
.h.on{background:#2563eb;color:#fff}
.h.last{background:#ea580c;color:#fff}
.people{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.people li{display:flex;align-items:center;gap:8px;min-height:34px;font-size:14px;font-weight:700}
.people li.none{color:#7286a0;font-weight:600;font-size:13px}
.people .pname{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.people .tag{font-size:11px;font-weight:600;color:#7286a0;white-space:nowrap}
.dot{width:8px;height:8px;border-radius:50%;background:#c5d6ee;flex:none}
.dot.on{background:#22c55e}
.kick{margin-left:auto;border:0;background:none;color:#9fb0c6;font-size:14px;padding:6px 8px;border-radius:6px}
.kick:hover{color:#a44237;background:#fdf0ee}

.under{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:18px 0 15px;font-size:11px;color:#6e83a0}
.under button{border:0;background:none;color:#2563eb;font-size:11px;padding:0;white-space:nowrap;margin-left:auto}
.instructions{font-size:13px;line-height:1.8;background:#e9f1fc;padding:18px;border-radius:8px}
.instructions ul{margin:0;padding-left:18px}

.how h2{font-size:24px;letter-spacing:-1px;margin:15px 0 12px}
.how ol{margin:0 0 12px;padding-left:20px;font-size:14px;line-height:1.7;color:#4a5f7d}
.how p{font-size:13px;line-height:1.7;color:#768ba8;margin:0 0 14px}
.downloads{list-style:none;padding:0;margin:0 0 26px;display:flex;flex-direction:column;gap:8px}
.downloads a{display:inline-block;padding:8px 14px;border:1px solid #dce5f0;border-radius:999px;background:#fff;color:#243247;font-size:12px;font-weight:700;text-decoration:none}
.downloads a:hover{border-color:#6692f1}
.note{border-top:1px solid #d9e4f2;padding:26px 0}
.in-game .note{border-top:0;padding-top:0}
.note>span{font-size:9px;font-weight:800;letter-spacing:1.5px;color:#8199b5}
.note p{font-size:18px;line-height:1.5;letter-spacing:-.4px;color:#637f9e;margin:15px 0}
.cta-link{font-size:13px;font-weight:700;color:#2563eb;text-decoration:none;line-height:1.6}
.cta-link:hover{text-decoration:underline}
.privacy{font-size:10px;color:#7f93ad;line-height:1.7;max-width:260px}
footer{display:flex;justify-content:space-between;gap:16px;border-top:1px solid #dce5f0;padding:22px 0;margin-top:40px;color:#7f93ad;font-size:10px}
footer a{color:inherit}

/* A big screen (the host's laptop or a TV in a video call): a bigger number. */
@media(min-width:1100px){.layout{gap:80px}.in-game .ball{width:190px;height:190px;font-size:88px}.in-game .nick{font-size:30px}}
@media(max-width:900px){.game{grid-template-columns:1fr}}
@media(max-width:720px){main{padding:0 16px;max-width:560px}
header{height:65px}
.edition{font-size:8px;letter-spacing:1px}
.intro{margin:28px 0 20px}
h1,.in-game h1{font-size:40px;letter-spacing:-2.5px}
.in-game .intro p{display:none}
.mobile{display:inline}
.intro p{font-size:13px}
.layout,.in-game .layout{grid-template-columns:1fr;gap:34px}
.in-game aside{grid-template-columns:1fr}
.play>.card{padding:20px}
.card h2{font-size:20px}
/* On a phone the number stays in sight while the cards scroll under it. */
.caller{position:sticky;top:0;z-index:5;border-radius:0 0 14px 14px;margin:0 -16px;padding:10px 16px;gap:14px;border-width:0 0 1px;box-shadow:0 4px 12px rgba(20,30,50,.06)}
.ball{width:76px;height:76px;font-size:36px;letter-spacing:-1.5px}
.ball small{font-size:13px}
.nick{font-size:18px}
.count{font-size:12px;margin-top:2px!important}
.status{font-size:13px;margin-top:2px!important}
.host{padding:16px}
.lcard{gap:2px;padding:3px}
.cell{font-size:15px;border-radius:4px}
.lcard.us .cell{font-size:20px}
.invite{flex-direction:column;align-items:center}
.qr{width:170px;height:170px}
.invite-body{width:100%}
.h{font-size:11px;padding:4px 0}
.history.us .h{font-size:9px}
.note p{font-size:16px}
.privacy{max-width:none}
footer{margin-top:24px;font-size:9px}}
@media(max-width:520px){.edition{display:none}}

/* Dark theme (data-theme=dark on <html>, set by /theme.js). */
:root[data-theme=dark] body{background:#0f151c;color:#dfe4ec}
:root[data-theme=dark] header,:root[data-theme=dark] footer,:root[data-theme=dark] .in-game aside{border-color:#202933}
:root[data-theme=dark] .brand{color:#dfe4ec}
:root[data-theme=dark] .brand span,:root[data-theme=dark] .edition{color:#738298}
:root[data-theme=dark] .eyebrow{color:#8796a9}
:root[data-theme=dark] h1 span{color:#5d8bf0}
:root[data-theme=dark] .intro p{color:#7b8a9e}
:root[data-theme=dark] .play>.card,:root[data-theme=dark] .caller,:root[data-theme=dark] .host,
:root[data-theme=dark] .invite-box,:root[data-theme=dark] .board-box,:root[data-theme=dark] .people-box{background:#151d27;border-color:#232e3c}
:root[data-theme=dark] .card p,:root[data-theme=dark] .invite p{color:#7c8ca1}
:root[data-theme=dark] .warn{color:#e08a80!important}
:root[data-theme=dark] .card .small a,:root[data-theme=dark] .card p a,:root[data-theme=dark] .link-btn,:root[data-theme=dark] .under button{color:#5d8bf0}
:root[data-theme=dark] .card input,:root[data-theme=dark] .link-row input,:root[data-theme=dark] select{background:#0f151c;border-color:#2b3644;color:#dfe4ec}
:root[data-theme=dark] .seg{background:#0f151c;border-color:#2b3644}
:root[data-theme=dark] .seg button{color:#8796a9}
:root[data-theme=dark] .seg button[aria-checked=true]{background:#2a3442;color:#dfe4ec;box-shadow:none}
:root[data-theme=dark] .host-plays{background:#101a28;border-color:#3b6fe0}
:root[data-theme=dark] .host-plays b{color:#dfe4ec}
:root[data-theme=dark] .host-plays small{color:#8fa0b5}
:root[data-theme=dark] .host-plays:has(input:checked){background:#1a2c4d}
:root[data-theme=dark] .pill{background:#0f151c;border-color:#2b3644;color:#dfe4ec}
:root[data-theme=dark] .ball{background:radial-gradient(circle at 38% 32%,#fff7ef 0 30%,#f6c9a0 70%,#e8a46b);box-shadow:inset 0 -6px 0 #c9834c,0 6px 18px rgba(0,0,0,.35);color:#1b2533}
:root[data-theme=dark] .ball.empty{background:#1c2633;box-shadow:inset 0 -6px 0 #141c26;color:#4c5b70}
:root[data-theme=dark] .nick{color:#fb923c}
:root[data-theme=dark] .count,:root[data-theme=dark] .board-head .small,:root[data-theme=dark] .people .tag,:root[data-theme=dark] .people li.none{color:#7b8a9e}
:root[data-theme=dark] .banner{background:#dfe4ec;color:#0f151c}
:root[data-theme=dark] .banner.win{background:#22c55e;color:#06210f}
:root[data-theme=dark] .banner.no{background:#f59e0b;color:#2a1700}
:root[data-theme=dark] .end-row{border-color:#232e3c}
:root[data-theme=dark] .end-row #end{color:#e08a80}
:root[data-theme=dark] .winners{background:#0d2016;border-color:#1b4d2e}
:root[data-theme=dark] .winners .eyebrow{color:#4ade80}
:root[data-theme=dark] .lcard{background:#2a3a52}
:root[data-theme=dark] .cell{background:#dfe6f0;color:#1b2533}
:root[data-theme=dark] .cell.blank{background:#1f2b3b}
:root[data-theme=dark] .cell.head{background:none;color:#7aa2f7}
:root[data-theme=dark] .cell.free{background:#b9cdf0;color:#1d4fd8}
:root[data-theme=dark] .cell.mark{background:radial-gradient(circle,#fb923c 0 56%,#dfe6f0 58%)}
:root[data-theme=dark] .cell.win{box-shadow:inset 0 0 0 3px #22c55e}
:root[data-theme=dark] .next-round,:root[data-theme=dark] .instructions{background:#101a28}
:root[data-theme=dark] .h{background:#1c2633;color:#4c5b70}
:root[data-theme=dark] .h.head{background:none;color:#7aa2f7}
:root[data-theme=dark] .h.on{background:#2563eb;color:#fff}
:root[data-theme=dark] .h.last{background:#ea580c;color:#fff}
:root[data-theme=dark] .dot{background:#2b3644}
:root[data-theme=dark] .dot.on{background:#22c55e}
:root[data-theme=dark] .kick{color:#5f6f85}
:root[data-theme=dark] .kick:hover{color:#e08a80;background:#2a1714}
:root[data-theme=dark] .under{color:#7c8ca1}
:root[data-theme=dark] .how ol{color:#a9b5c4}
:root[data-theme=dark] .how p{color:#71839c}
:root[data-theme=dark] .downloads a{background:#151d27;border-color:#2b3644;color:#dfe4ec}
:root[data-theme=dark] .note{border-color:#1f2935}
:root[data-theme=dark] .note>span{color:#607793}
:root[data-theme=dark] .note p{color:#8295a9}
:root[data-theme=dark] .cta-link{color:#5d8bf0}
:root[data-theme=dark] .privacy{color:#697c95}
#join-error:empty{display:none}
