:root{--bg: #0b1120;--panel: #111827;--panel-2: #1e293b;--border: rgba(148, 163, 184, .18);--text: #f8fafc;--muted: #94a3b8;--accent: #10b981;--accent-hover: #059669;--danger: #ef4444;--warning: #f59e0b;--board-bg: #d9ead3;--tile-bg: #f8fafc;--tile-text: #0f172a}*{box-sizing:border-box;margin:0;padding:0}body{font-family:Inter,system-ui,-apple-system,sans-serif;background:radial-gradient(circle at top,#13223a,#0b1120 65%);color:var(--text);min-height:100vh}button{font-family:inherit;cursor:pointer;border:none;transition:all .15s ease}button:disabled{opacity:.45;cursor:not-allowed}input,select{font-family:inherit}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border-radius:10px;font-weight:600;font-size:.9rem}.btn-primary{background:linear-gradient(135deg,#10b981,#059669);color:#fff;box-shadow:0 4px 14px #10b9814d}.btn-primary:hover:not(:disabled){filter:brightness(1.08);transform:translateY(-1px)}.btn-secondary{background:var(--panel-2);color:var(--text);border:1px solid var(--border)}.btn-secondary:hover:not(:disabled){background:#273549}.btn-warning{background:linear-gradient(135deg,#f59e0b,#d97706);color:#fff}.btn-danger{background:linear-gradient(135deg,#ef4444,#dc2626);color:#fff}.btn-sm{padding:6px 11px;font-size:.8rem;border-radius:8px}.toast-error{position:fixed;top:16px;left:50%;transform:translate(-50%);background:#7f1d1d;border:1px solid #ef4444;color:#fee2e2;padding:10px 18px;border-radius:12px;font-size:.9rem;font-weight:600;z-index:200;box-shadow:0 10px 30px #00000073}.lobby-page{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px}.lobby-card{width:100%;max-width:560px;background:#111827eb;border:1px solid var(--border);border-radius:22px;padding:32px;box-shadow:0 24px 64px #0000008c;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.brand-badge{display:inline-flex;align-items:center;gap:8px;background:#10b98124;color:#34d399;border:1px solid rgba(16,185,129,.35);padding:5px 12px;border-radius:999px;font-size:.78rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;margin-bottom:12px}.lobby-title{font-size:2.1rem;font-weight:900;letter-spacing:-.02em;margin-bottom:6px}.lobby-subtitle{color:var(--muted);font-size:.95rem;margin-bottom:24px}.tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;background:#0f172a;padding:5px;border-radius:12px;margin-bottom:20px}.tab-btn{padding:10px;border-radius:9px;background:transparent;color:var(--muted);font-weight:600;font-size:.9rem}.tab-btn.active{background:var(--panel-2);color:var(--text);box-shadow:0 2px 8px #00000040}.field{margin-bottom:16px}.field label{display:block;font-size:.82rem;font-weight:600;color:var(--muted);margin-bottom:6px}.field input{width:100%;padding:11px 14px;border-radius:10px;background:#0f172a;border:1px solid var(--border);color:var(--text);font-size:.95rem;outline:none}.field input:focus{border-color:var(--accent)}.token-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.token-choice{display:flex;align-items:center;gap:8px;padding:9px 10px;border-radius:10px;background:#0f172a;border:2px solid transparent;color:var(--text);font-size:.85rem;font-weight:600}.token-choice.selected{border-color:var(--accent);background:#10b9811f}.token-choice.taken{opacity:.35;cursor:not-allowed}.room-code-box{display:flex;align-items:center;justify-content:space-between;background:#0f172a;border:1px dashed rgba(16,185,129,.5);border-radius:14px;padding:14px 18px;margin-bottom:20px}.room-code-value{font-size:1.8rem;font-weight:900;letter-spacing:.18em;color:#34d399}.lobby-players{display:flex;flex-direction:column;gap:8px;margin-bottom:20px}.lobby-player-row{display:flex;align-items:center;justify-content:space-between;background:#0f172a;border:1px solid var(--border);border-radius:11px;padding:10px 14px}.game-shell{display:grid;grid-template-columns:290px minmax(640px,1fr) 310px;gap:14px;padding:14px;min-height:100vh;max-width:1680px;margin:0 auto;align-items:start}@media(max-width:1260px){.game-shell{grid-template-columns:1fr}}.side-column{display:flex;flex-direction:column;gap:12px}.card-panel{background:#111827eb;border:1px solid var(--border);border-radius:16px;padding:14px}.card-panel-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-size:.85rem;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}.board-wrap{display:flex;justify-content:center;align-items:center}.board-grid{display:grid;grid-template-columns:1.35fr repeat(9,1fr) 1.35fr;grid-template-rows:1.35fr repeat(9,1fr) 1.35fr;width:min(88vh,840px);height:min(88vh,840px);background:#0f172a;border:3px solid #334155;border-radius:14px;overflow:hidden;box-shadow:0 24px 60px #0009;gap:1px}.tile{position:relative;background:var(--tile-bg);color:var(--tile-text);display:flex;flex-direction:column;justify-content:space-between;padding:3px;font-size:.62rem;line-height:1.12;cursor:pointer;overflow:hidden;-webkit-user-select:none;user-select:none}.tile:hover{filter:brightness(.95);z-index:3}.tile.active-tile{box-shadow:inset 0 0 0 2px #10b981}.tile.mortgaged{background:#cbd5e1;opacity:.85}.tile-color-bar{height:12px;width:100%;border-radius:2px;display:flex;align-items:center;justify-content:center;gap:2px;flex-shrink:0}.tile-name{font-weight:700;text-align:center;padding:1px 2px;word-break:break-word}.tile-price{font-weight:700;text-align:center;color:#334155;font-size:.6rem}.tile-corner{background:#e2f2df;align-items:center;justify-content:center;text-align:center;padding:5px}.tile-corner-icon{font-size:1.35rem;margin-bottom:2px}.tile-corner-title{font-size:.68rem;font-weight:900;letter-spacing:.02em}.tile-owner-dot{position:absolute;top:2px;right:2px;width:9px;height:9px;border-radius:999px;border:1.5px solid #fff;box-shadow:0 1px 3px #00000080}.tile-mortgage-tag{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;background:#0f172a59;color:#fff;font-weight:900;font-size:.58rem;letter-spacing:.06em;pointer-events:none}.house-pip{width:7px;height:7px;border-radius:1.5px;background:#16a34a;border:1px solid #fff}.hotel-pip{width:12px;height:8px;border-radius:2px;background:#dc2626;border:1px solid #fff}.tile-tokens{position:absolute;bottom:2px;left:2px;right:2px;display:flex;flex-wrap:wrap;justify-content:center;gap:2px;pointer-events:none}.player-pawn{width:20px;height:20px;border-radius:999px;display:inline-flex;align-items:center;justify-content:center;font-size:.72rem;border:2px solid #fff;box-shadow:0 2px 5px #00000073}.board-center{grid-column:2 / 11;grid-row:2 / 11;background:radial-gradient(circle at center,#132a24,#0d1f1c);display:flex;flex-direction:column;align-items:center;justify-content:space-between;padding:20px;color:var(--text);position:relative}.board-logo{text-align:center}.board-logo h1{font-size:2.1rem;font-weight:900;letter-spacing:.14em;background:linear-gradient(135deg,#f8fafc 20%,#34d399);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.board-logo span{font-size:.78rem;color:#6ee7b7;letter-spacing:.18em;text-transform:uppercase}.dice-stage{display:flex;flex-direction:column;align-items:center;gap:12px;width:100%;max-width:390px}.dice-pair{display:flex;gap:14px}.die-face{width:54px;height:54px;border-radius:12px;background:linear-gradient(145deg,#fff,#e2e8f0);color:#0f172a;font-size:1.6rem;font-weight:900;display:flex;align-items:center;justify-content:center;box-shadow:0 8px 20px #00000073,inset 0 -3px #cbd5e1}.turn-banner{background:#0f172ac7;border:1px solid rgba(52,211,153,.35);border-radius:12px;padding:10px 16px;text-align:center;width:100%}.card-popup{background:#f59e0b26;border:1px solid rgba(245,158,11,.5);border-radius:12px;padding:10px 14px;font-size:.82rem;text-align:center;width:100%}.action-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;width:100%}.player-card{display:flex;flex-direction:column;gap:6px;padding:10px 12px;border-radius:12px;background:#0f172a;border:1px solid var(--border);margin-bottom:8px}.player-card.is-turn{border-color:#10b981;box-shadow:0 0 0 1px #10b98166}.player-card.is-bankrupt{opacity:.45}.player-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.player-money{font-weight:800;color:#34d399;font-size:.98rem}.prop-chips{display:flex;flex-wrap:wrap;gap:4px}.prop-chip{width:16px;height:11px;border-radius:3px;border:1px solid rgba(255,255,255,.35);cursor:pointer}.prop-chip.mortgaged{opacity:.35}.scroll-list{max-height:240px;overflow-y:auto;display:flex;flex-direction:column;gap:6px;font-size:.8rem}.log-item{padding:6px 8px;border-radius:8px;background:#0f172abf;border-left:3px solid #64748b;line-height:1.35}.log-item.success{border-left-color:#10b981}.log-item.warning{border-left-color:#f59e0b}.log-item.danger{border-left-color:#ef4444}.log-item.card{border-left-color:#a855f7}.log-item.system{border-left-color:#38bdf8}.chat-form{display:flex;gap:6px;margin-top:8px}.chat-form input{flex:1;padding:8px 10px;border-radius:8px;background:#0f172a;border:1px solid var(--border);color:var(--text);font-size:.85rem}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#020617bf;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;z-index:150;padding:16px}.modal-box{background:#111827;border:1px solid var(--border);border-radius:18px;width:100%;max-width:480px;max-height:90vh;overflow-y:auto;padding:22px;box-shadow:0 24px 60px #000000a6}.rent-table{width:100%;border-collapse:collapse;margin:12px 0;font-size:.85rem}.rent-table td{padding:5px 4px;border-bottom:1px solid var(--border)}.rent-table td:last-child{text-align:right;font-weight:700}.trade-columns{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:12px 0}.trade-col{background:#0f172a;border:1px solid var(--border);border-radius:12px;padding:10px}.trade-prop-item{display:flex;align-items:center;gap:6px;font-size:.8rem;padding:4px 0;cursor:pointer}
