*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#0b1f33;color:#eaf2fb}.screen-center{display:flex;align-items:center;justify-content:center;height:100vh}.home{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:16px;background:radial-gradient(circle at top,#123a5e,#05111d 70%)}.home-card{width:100%;max-width:420px;background:#0a1e32d9;border:1px solid rgba(255,255,255,.08);border-radius:16px;padding:24px;text-align:center}.home-card h1{margin:0 0 4px;font-size:1.6rem}.subtitle{color:#8fb3d9;margin:0 0 20px;font-size:.9rem}.stat-row{display:flex;justify-content:space-between;gap:8px;margin-bottom:20px}.stat{flex:1;background:#ffffff0d;border-radius:10px;padding:10px 6px}.stat-label{display:block;font-size:.7rem;color:#8fb3d9}.stat-value{display:block;font-size:1.1rem;font-weight:600;margin-top:4px}.guest-form{display:flex;flex-direction:column;gap:10px}.guest-form input{padding:12px 14px;border-radius:10px;border:1px solid rgba(255,255,255,.15);background:#ffffff0f;color:#fff;font-size:1rem}.guest-form button,.bet-btn,.logout-btn{padding:12px 14px;border-radius:10px;border:none;background:linear-gradient(135deg,#ffb347,#ff7043);color:#1a1a1a;font-weight:700;font-size:1rem;cursor:pointer}.guest-form button:disabled,.bet-btn:disabled{opacity:.5;cursor:not-allowed}.error{color:#ff8a8a;margin-top:12px;font-size:.85rem}.game-screen{min-height:100vh;display:flex;flex-direction:column;background:linear-gradient(#0e2b47,#05141f)}.game-header{display:flex;align-items:center;justify-content:space-between;padding:12px 16px;gap:8px}.pill{background:#ffffff14;border-radius:999px;padding:6px 12px;font-weight:600;font-size:.9rem}.round-badge{font-size:.75rem;color:#8fb3d9;flex:1;text-align:center}.logout-btn{padding:8px 12px;font-size:.8rem}.room-grid{flex:1;display:grid;grid-template-columns:repeat(2,1fr);gap:10px;padding:10px 16px}.room-tile{position:relative;aspect-ratio:1.3;border-radius:12px;border:1px solid rgba(255,255,255,.1);background:#ffffff0f;color:#eaf2fb;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;cursor:pointer;transition:transform .1s ease,border-color .1s ease}.room-tile.selected{border-color:#ffb347;background:#ffb34726;transform:scale(1.02)}.room-name{font-size:.95rem;font-weight:600}.room-players{font-size:.75rem;color:#8fb3d9}.bet-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;background:#00000059}.player-info{display:flex;flex-direction:column;font-size:.85rem}.invested{color:#8fb3d9;font-size:.75rem}.bet-btn{white-space:nowrap}.streaks{display:flex;gap:6px}.pill.win{color:#ffb347}.pill.lose{color:#7fc4ff}.timer-card{margin:0 16px;padding:12px 16px;border-radius:14px;background:#ffffff0f;text-align:center}.timer-top{display:flex;justify-content:space-between;font-size:.8rem;color:#8fb3d9}.status{font-weight:600}.status.betting{color:#6be38a}.status.locked{color:#ff8a8a}.countdown{font-size:2.4rem;font-weight:700;font-variant-numeric:tabular-nums;margin:4px 0}.progress{height:6px;border-radius:3px;background:#ffffff1a;overflow:hidden}.progress-bar{height:100%;background:linear-gradient(90deg,#ffb347,#ff7043);transition:width .25s linear}.last-result{margin-top:10px;font-size:.8rem;color:#cfe2f5}.src{color:#6f8fb0}.room-tile{gap:3px}.room-tile:disabled{opacity:.75;cursor:not-allowed}.room-num{position:absolute;top:6px;left:10px;font-size:.75rem;color:#6f8fb0}.room-total{font-size:1.05rem;font-weight:700;color:#ffd28a}.room-tile.has-stake{border-color:#6be38a}.room-stake{font-size:.72rem;color:#6be38a}.room-tile.killed{border-color:#ff5252;background:#ff525238;animation:shake .4s}.skull{position:absolute;top:4px;right:8px;font-size:1.3rem}@keyframes shake{25%{transform:translate(-4px)}75%{transform:translate(4px)}}.history{display:flex;gap:6px;padding:4px 16px 10px;overflow-x:auto}.dot{flex:none;width:26px;height:26px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.75rem;font-weight:700;background:#c0392b;color:#fff}.dot.void{background:#4a5f75}.bet-controls{display:flex;flex-direction:column;gap:6px;min-width:0}.chips{display:flex;gap:6px}.chip{padding:6px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.2);background:transparent;color:#eaf2fb;cursor:pointer;font-weight:600}.chip.active{background:#ffb347;border-color:#ffb347;color:#1a1a1a}.error.inline{margin:0}.toast{position:fixed;left:50%;top:18px;transform:translate(-50%);width:calc(100% - 32px);max-width:420px;padding:14px 16px;border-radius:12px;text-align:center;cursor:pointer;z-index:10;background:#123a5e;border:1px solid rgba(255,255,255,.2)}.toast.win{background:#14532d;border-color:#6be38a}.toast.lose{background:#5b1a1a;border-color:#ff5252}@media (min-width: 768px){.room-grid{grid-template-columns:repeat(4,1fr);max-width:900px;margin:0 auto;width:100%}.game-header,.timer-card,.history,.bet-bar{max-width:900px;margin:0 auto;width:100%}}
