:root{--bg:#14201c;--panel:#1d2e28;--panel-2:#29413a;--text:#f1f6f3;--muted:#9db5aa;--accent:#ffc233;--good:#5ee6a0;--bad:#ff6b6b;--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;font-family:system-ui,-apple-system,Segoe UI,sans-serif}*{box-sizing:border-box}body{background:radial-gradient(1200px 600px at 50% -100px, #2f5a49, var(--bg)) fixed;color:var(--text);min-height:100vh;margin:0}a{color:inherit}header{border-bottom:1px solid #ffffff14;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:12px;padding:12px 20px;display:flex}.brand{font-size:1.2rem;font-weight:900;text-decoration:none}nav{flex-wrap:wrap;align-items:center;gap:6px;display:flex}nav a{color:var(--muted);border-radius:8px;padding:6px 10px;text-decoration:none}nav a.on,nav a:hover{background:var(--panel-2);color:var(--text)}main{max-width:1000px;margin:0 auto;padding:20px 16px 60px}button,input{font:inherit;color:inherit;background:var(--panel-2);border:1px solid #fff2;border-radius:10px;padding:9px 14px}button{cursor:pointer}button:hover:not(:disabled){border-color:var(--accent)}button:disabled{opacity:.45;cursor:not-allowed}button.primary{background:var(--accent);color:#1c1600;border-color:#0000;font-weight:700}button.ghost{background:0 0;border:0}.big-btn{padding:12px 30px;font-size:1.15rem}.card{background:var(--panel);border:1px solid #ffffff14;border-radius:16px;margin-bottom:14px;padding:18px}.muted{color:var(--muted)}.small{font-size:.85rem}.good{color:var(--good)}.bad{color:var(--bad)}.center{place-items:center;max-width:500px;min-height:60vh;margin:auto;display:grid}.center-text{text-align:center;justify-content:center}.row{flex-wrap:wrap;align-items:center;gap:10px;margin-top:12px;display:flex}.between{justify-content:space-between}.toolbar{flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:14px;display:flex}.segmented{flex-wrap:wrap;gap:4px;display:inline-flex}.segmented button.on{background:var(--accent);color:#1c1600;font-weight:700}.check{cursor:pointer;align-items:center;gap:8px;display:flex!important}.login{place-items:center;min-height:100vh;padding:16px;display:grid}.login .card{text-align:center;flex-direction:column;gap:12px;width:360px;max-width:100%;display:flex}.login h1,.login p{margin:0}.logo{font-size:3rem}.avatar{border-radius:50%;flex:none;place-items:center;line-height:1;display:inline-grid}.home .hero{text-align:center}.modes{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:14px;display:grid}.modes .card{text-align:center;flex-direction:column;gap:6px;text-decoration:none;display:flex}.modes a.card:hover{border-color:var(--accent);transform:translateY(-3px)}.modes .soon{opacity:.5}.modes span{font-size:2.4rem}.modes small{color:var(--muted)}.stats{flex-wrap:wrap;gap:8px;margin-top:8px;display:flex}.stats span{background:var(--panel-2);border-radius:8px;padding:6px 12px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%}th,td{text-align:left;border-bottom:1px solid #ffffff12;padding:9px 8px}.who-cell{align-items:center;gap:8px;display:flex}tr.me{background:#ffc23322}.profile-head{flex-wrap:wrap;align-items:center;gap:20px;display:flex}.profile-head h2,.profile-head p{margin:4px 0}.avatar-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:12px;display:grid}.avatar-card{text-align:center;flex-direction:column;align-items:center;gap:8px;margin:0;display:flex}.avatar-card.on{border:2px solid var(--accent)}.columns{grid-template-columns:repeat(auto-fit,minmax(320px,1fr));align-items:start;gap:14px;display:grid}.columns label{color:var(--muted);margin:12px 0 6px;display:block}.rooms{margin:0;padding:0;list-style:none}.rooms li{border-bottom:1px solid #ffffff12;align-items:center;gap:10px;padding:10px 0;display:flex}.rooms li>div{flex:1}.rooms small{display:block}code{background:#0b1411;border-radius:6px;padding:2px 8px}.code{letter-spacing:4px;-webkit-user-select:all;user-select:all;font-size:1.5rem}.slots{text-align:center;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;display:grid}.slot{overflow-wrap:anywhere;flex-direction:column;justify-content:center;align-items:center;gap:4px;min-width:0;min-height:200px;margin:0;display:flex}.waiting{animation:1.4s infinite blink}@keyframes blink{50%{opacity:.35}}.board-wrap{margin-top:12px;position:relative}.result-overlay{z-index:5;background:#000a;border-radius:16px;place-items:center;display:grid;position:absolute;inset:0}.result{text-align:center;flex-direction:column;align-items:center;gap:4px;margin:0;display:flex}.result h2{margin:6px 0}.result .big{font-size:4rem}.ludo{grid-template-columns:minmax(0,1fr) 320px;align-items:start;gap:16px;display:grid}.ludo-board svg{aspect-ratio:1;border-radius:14px;width:100%;max-width:580px;margin:0 auto;display:block;box-shadow:0 8px 30px #0008}.board-bg{fill:#f4ecd8}.yard-in{fill:#fff8}.cell{fill:#fffdf6;stroke:#0003;stroke-width:.04px}.star{fill:#0005;text-anchor:middle;dominant-baseline:central;pointer-events:none;font-size:.62px}.horse{transition:transform .35s cubic-bezier(.3,.8,.3,1)}.horse .body{stroke:#fff;stroke-width:.06px;filter:drop-shadow(0 .03px .04px #0008)}.horse .glyph{fill:#fff;text-anchor:middle;dominant-baseline:central;pointer-events:none}.horse.legal{cursor:pointer}.horse.legal .body{stroke:#111;stroke-width:.1px;animation:.8s ease-in-out infinite pulse}@keyframes pulse{50%{stroke-width:.02px}}.ludo-side{flex-direction:column;gap:12px;display:flex}.seats{flex-direction:column;gap:6px;margin:0;padding:0;list-style:none;display:flex}.seats li{background:var(--panel);border:2px solid #0000;border-radius:12px;align-items:center;gap:10px;padding:8px 10px;display:flex}.seats li.active{background:var(--panel-2)}.seats .who{overflow-wrap:anywhere;flex-direction:column;flex:1;min-width:0;display:flex}.seats .home{grid-template-columns:repeat(4,8px);gap:2px;display:grid}.seats .home i{background:#fff2;border-radius:2px;width:8px;height:8px}.dice-box{background:var(--panel);border-radius:14px;flex-wrap:wrap;align-items:center;gap:12px;padding:12px;display:flex}.dice-box .big-btn{flex:1;padding:12px 10px;font-size:1rem}.die{background:#fff;border:4px solid;border-radius:14px;flex:none;grid-template-rows:repeat(3,1fr);grid-template-columns:repeat(3,1fr);width:64px;height:64px;padding:7px;display:grid}.die i{border-radius:50%;margin:2px}.die i.on{background:#222}.die.rolling{animation:.15s linear infinite shake}@keyframes shake{25%{transform:rotate(-8deg)}75%{transform:rotate(8deg)}}.timer-bar{background:#0b1411;border-radius:4px;flex-basis:100%;height:6px;overflow:hidden}.timer-bar i{height:100%;transition:width .25s linear;display:block}.log{color:var(--muted);flex-direction:column;gap:4px;min-height:8.5em;margin:0;padding:0;font-size:.9rem;list-style:none;display:flex}.log li.new{color:var(--text);font-weight:600}@media (width<=800px){.ludo{grid-template-columns:1fr}.ludo-side{order:-1}}@media (prefers-reduced-motion:reduce){.horse{transition:none}.die.rolling,.horse.legal .body,.waiting{animation:none}}.view-switch{margin-bottom:8px}.stage{border-radius:14px;width:100%;max-width:640px;margin:0 auto;position:relative;overflow:hidden}.stage.square{overflow:visible}.stage.loading{aspect-ratio:1;color:var(--muted);background:var(--panel);place-items:center;display:grid}.stage.wide{aspect-ratio:4/3.2;background:radial-gradient(at 50% 40%,#2c5a48,#0f1a16);max-width:760px;box-shadow:0 8px 30px #0008}.stage.wide canvas{display:block}.stage .hint{color:#fffa;pointer-events:none;text-shadow:0 1px 2px #000;font-size:.75rem;position:absolute;bottom:8px;left:10px}.ludo-board svg{max-width:580px}
