:root {
    --bg: #090b12;
    --bg-deep: #07080e;
    --panel: #11141f;
    --panel-strong: #151927;
    --panel-soft: rgba(20, 24, 38, .72);
    --line: rgba(255,255,255,.085);
    --line-bright: rgba(255,255,255,.15);
    --text: #f4f5fb;
    --muted: #9297ad;
    --subtle: #676d83;
    --violet: #8b7cff;
    --violet-deep: #6658ea;
    --blue: #61b5ff;
    --mint: #59d4b3;
    --coral: #ff8379;
    --gold: #f3c56d;
    --pink: #e995f0;
    --shadow: 0 22px 60px rgba(0,0,0,.25);
    --radius: 18px;
    --ease: cubic-bezier(.2,.8,.2,1);
}
:root[data-theme="light"] { --bg:#f4f5fb; --bg-deep:#eceef6; --panel:#ffffff; --panel-strong:#fff; --panel-soft:rgba(255,255,255,.82); --line:rgba(31,35,58,.11); --line-bright:rgba(31,35,58,.2); --text:#1b1d2c; --muted:#687087; --subtle:#8b91a4; --shadow:0 22px 60px rgba(39,43,76,.13); }
:root[data-theme="light"] body { background:radial-gradient(900px 650px at 79% -12%,rgba(125,109,242,.12),transparent 60%),#f4f5fb; }
:root[data-theme="light"] .sidebar, :root[data-theme="light"] .topbar { background:rgba(247,248,253,.84); }
:root[data-theme="light"] .panel, :root[data-theme="light"] .game-card { background:rgba(255,255,255,.82); }
:root[data-theme="light"] .input, :root[data-theme="light"] .select, :root[data-theme="light"] .textarea, :root[data-theme="light"] .modal { background:#fff; color:#1b1d2c; }
:root[data-theme="light"] .nav-item { color:#697087; }
:root[data-theme="light"] .hero { background:radial-gradient(500px 200px at 73% 40%,rgba(119,103,242,.16),transparent 70%),linear-gradient(120deg,rgba(229,226,255,.94),rgba(244,245,252,.94)); }

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(900px 650px at 79% -12%, rgba(111, 92, 235, .14), transparent 60%), radial-gradient(650px 520px at 2% 72%, rgba(49, 111, 194, .08), transparent 65%), var(--bg); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
.ambient { position: fixed; pointer-events: none; filter: blur(2px); z-index: -1; opacity: .48; }
.ambient-one { width: 420px; height: 420px; right: -180px; top: 20%; border-radius: 50%; background: radial-gradient(circle, rgba(135,94,255,.1), transparent 68%); }
.ambient-two { width: 360px; height: 360px; left: 10%; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(53,180,209,.09), transparent 68%); }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.app-shell { display: flex; min-height: 100vh; opacity: 1; transition: opacity .2s ease; }
.app-shell.is-loading { opacity: .55; }
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: 252px; display: flex; flex-direction: column; padding: 27px 16px 18px; border-right: 1px solid var(--line); background: rgba(11,13,22,.8); backdrop-filter: blur(22px); }
.brand-lockup { display:flex; align-items:center; gap: 10px; padding: 0 12px 42px; }
.brand { display:flex; align-items:center; gap: 10px; font-size: 22px; font-weight: 780; letter-spacing: -.06em; }
.brand-mark { position:relative; display:inline-flex; width: 27px; height: 27px; align-items:center; justify-content:center; transform: rotate(-8deg); }
.brand-mark:before { content:""; position:absolute; inset: 2px; border:2px solid var(--violet); border-radius: 9px 9px 9px 3px; box-shadow: 0 0 24px rgba(139,124,255,.28); }
.brand-mark i { position:absolute; width:4px; height:4px; border-radius:50%; background:var(--violet); top:9px; }
.brand-mark i:nth-child(1) { left:7px; }.brand-mark i:nth-child(2) { left:12px; top:14px; }.brand-mark i:nth-child(3) { right:6px; top:7px; }
.beta-pill { border: 1px solid rgba(139,124,255,.35); color: #a69dff; font-size: 8px; letter-spacing: .12em; padding: 3px 6px; border-radius: 5px; font-weight: 800; }
.workspace-label { padding: 0 12px 10px; color: #656b82; font-size: 10px; text-transform: uppercase; letter-spacing: .15em; font-weight: 700; }
.nav-secondary-label { margin-top: 30px; }
.main-nav { display: grid; gap: 4px; }
.nav-item { position: relative; display:flex; align-items:center; gap: 12px; min-height: 42px; padding: 0 12px; color: #8c92a7; border-radius: 11px; font-weight: 560; transition: color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); }
.nav-item:hover { color: #e5e6f2; background: rgba(255,255,255,.045); transform: translateX(2px); }
.nav-item.is-active { color: #f1f0ff; background: linear-gradient(100deg, rgba(139,124,255,.17), rgba(139,124,255,.045)); }
.nav-item.is-active:before { content:""; position:absolute; left:-16px; width:3px; height:19px; border-radius:0 4px 4px 0; background: var(--violet); box-shadow: 0 0 15px rgba(139,124,255,.65); }
.nav-count { margin-left:auto; min-width:20px; height:20px; display:grid; place-items:center; color:#a79eff; border:1px solid rgba(139,124,255,.2); border-radius: 6px; font-size: 10px; }
.nav-icon { width: 18px; height: 18px; position:relative; display:inline-block; flex:none; opacity:.9; }
.icon-home:before { content:""; position:absolute; width:11px; height:10px; left:3px; top:6px; border:1.5px solid currentColor; border-top:none; border-radius:2px; }.icon-home:after { content:""; position:absolute; width:10px; height:10px; left:4px; top:2px; border-left:1.5px solid currentColor; border-top:1.5px solid currentColor; transform:rotate(45deg); border-radius:2px 0 0 0; }
.icon-grid { background: radial-gradient(circle, currentColor 0 1.5px, transparent 2px) 0 0/7px 7px; border:1.5px solid currentColor; border-radius:4px; }
.icon-users:before, .icon-users:after { content:""; position:absolute; border:1.5px solid currentColor; border-radius:50%; width:6px; height:6px; top:1px; }.icon-users:before { left:2px; }.icon-users:after { right:1px; }.icon-users { border-bottom:1.5px solid currentColor; border-radius: 0 0 8px 8px; height:11px; top:4px; }
.icon-profile:before { content:""; position:absolute; left:5px; top:1px; width:7px; height:7px; border:1.5px solid currentColor; border-radius:50%; }.icon-profile:after { content:""; position:absolute; left:2px; bottom:1px; width:13px; height:7px; border:1.5px solid currentColor; border-radius:9px 9px 3px 3px; }
.icon-settings:before { content:"⚙"; position:absolute; font-size:17px; line-height:17px; left:0; top:0; }
.sidebar-spacer { flex: 1; }
.sidebar-invite-card { margin: 20px 4px 20px; padding: 16px 15px 14px; display:grid; gap: 7px; border: 1px solid rgba(139,124,255,.16); border-radius: 14px; background: linear-gradient(145deg, rgba(139,124,255,.11), rgba(80,71,156,.035)); }
.mini-spark { color: var(--violet); font-size: 16px; }.sidebar-invite-card strong { font-size: 12px; }.sidebar-invite-card span:not(.mini-spark) { color: #777d93; font-size: 10px; line-height: 1.45; }.text-button { padding: 3px 0; margin-top: 4px; color: #afa8ff; border:0; background:transparent; text-align:left; font-size:11px; font-weight:700; }.text-button span { margin-left: 4px; color:#d4d1ff; }
.sidebar-footer { display:flex; align-items:center; gap:8px; padding: 0 11px; color:#696f83; font-size:10px; }.status-dot { width:6px; height:6px; border-radius:50%; background:#54d2a2; box-shadow:0 0 10px #54d2a2; }.footer-lock { margin-left:auto; font-size:16px; color:#555b70; }
.main-content { width: calc(100% - 252px); min-width: 0; margin-left: 252px; }
.topbar { height: 78px; display:flex; align-items:center; justify-content:space-between; padding: 0 4.2vw; border-bottom: 1px solid rgba(255,255,255,.045); }
.breadcrumb { display:flex; align-items:center; gap:10px; color:#e7e8f3; font-size:13px; }.breadcrumb-muted { color:#646a80; }.breadcrumb-slash { color:#3f4559; }.breadcrumb strong { font-weight:600; }
.topbar-actions { display:flex; align-items:center; gap:10px; }.icon-button, .button-icon { width:35px; height:35px; display:grid; place-items:center; color:#8d93aa; border:1px solid transparent; background:transparent; border-radius:10px; transition:all .2s ease; }.icon-button:hover { color:#f5f4ff; border-color:var(--line); background:rgba(255,255,255,.05); }.notification-button { position:relative; }.notification-button b { position:absolute; right:7px; top:7px; width:5px; height:5px; background:var(--violet); border:1px solid #141625; border-radius:50%; }.icon-command:before { content:"⌘"; font-size:17px; }.icon-bell:before { content:"♧"; display:block; transform:rotate(180deg); font-size:19px; }.top-divider { width:1px; height:26px; background:var(--line); margin:0 5px; }.user-chip { display:flex; align-items:center; gap:9px; padding:4px 5px 4px 7px; color:var(--text); border:1px solid transparent; background:transparent; border-radius:12px; text-align:left; }.user-chip:hover { border-color:var(--line); background:rgba(255,255,255,.04); }.user-chip-copy { display:grid; gap:0; }.user-chip-copy strong { max-width:130px; overflow:hidden; color:#e5e6ef; font-size:12px; font-weight:650; text-overflow:ellipsis; white-space:nowrap; }.user-chip-copy small { color:#71778c; font-size:10px; }.chevron { color:#747a91; font-size:15px; margin-left:3px; }.avatar { width:30px; height:30px; display:grid; place-items:center; flex:none; color:#fff; background:linear-gradient(135deg,#8c7eff,#5e55c6); border-radius:10px; font-size:11px; font-weight:800; }.avatar-top { width:31px;height:31px; }
.mobile-menu { display:none; }
.view-root { width: min(1440px, 100%); margin: 0 auto; padding: 37px 4.2vw 70px; }
.page-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:24px; margin-bottom:26px; }.page-heading-copy { display:grid; gap:6px; }.page-kicker { margin:0; color:#8d84ef; font-size:10px; font-weight:800; letter-spacing:.16em; text-transform:uppercase; }.page-heading h1 { margin:0; font-size:clamp(26px,3vw,39px); letter-spacing:-.055em; line-height:1.06; }.page-heading p { max-width:580px; margin:2px 0 0; color:var(--muted); font-size:13px; }.heading-actions { display:flex; gap:9px; align-items:center; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:39px; padding:0 15px; border:1px solid transparent; border-radius:10px; color:#f5f4ff; background:#1d2130; font-weight:650; font-size:12px; transition:transform .2s var(--ease), background .2s ease, border-color .2s ease, box-shadow .2s ease; }.button:hover { transform:translateY(-2px); background:#282d40; }.button:active { transform:translateY(0); }.button-primary { background:linear-gradient(135deg,#897cf9,#6758e7); box-shadow:0 9px 25px rgba(107,91,235,.2); }.button-primary:hover { background:linear-gradient(135deg,#998eff,#7264f2); box-shadow:0 13px 30px rgba(107,91,235,.33); }.button-quiet { color:#c1c4d3; border-color:var(--line); background:rgba(255,255,255,.025); }.button-quiet:hover { border-color:var(--line-bright); }.button-danger { color:#ffaaa7; background:rgba(255,87,93,.1); border-color:rgba(255,87,93,.18); }.button-small { min-height:33px; padding:0 11px; font-size:11px; }.button-full { width:100%; }.button-icon { min-height:35px; padding:0; }
.hero { position:relative; min-height:282px; display:grid; grid-template-columns:minmax(0,1.15fr) minmax(350px,.85fr); gap:25px; overflow:hidden; padding:34px 36px; border:1px solid rgba(155,143,255,.18); border-radius:22px; background: radial-gradient(500px 200px at 73% 40%, rgba(119,103,242,.2), transparent 70%), linear-gradient(120deg, rgba(55,45,118,.55), rgba(22,25,47,.82) 55%, rgba(13,17,30,.9)); box-shadow: inset 0 1px 0 rgba(255,255,255,.04), var(--shadow); }
.hero:before { content:""; position:absolute; width:380px; height:380px; right:4%; top:-170px; border:1px solid rgba(171,159,255,.12); border-radius:50%; box-shadow:0 0 0 35px rgba(171,159,255,.025), 0 0 0 70px rgba(171,159,255,.016); }.hero:after { content:""; position:absolute; width:160px; height:160px; right:19%; bottom:-115px; border-radius:50%; background:rgba(85,196,234,.08); filter:blur(15px); }
.hero-copy { position:relative; z-index:1; align-self:center; }.hero-overline { display:flex; align-items:center; gap:8px; margin-bottom:14px; color:#aaa4ff; font-size:10px; font-weight:800; letter-spacing:.17em; text-transform:uppercase; }.hero-overline span { width:20px; height:1px; background:#9387ff; }.hero h1 { max-width:610px; margin:0 0 13px; font-size:clamp(29px,3.5vw,48px); letter-spacing:-.065em; line-height:1.02; }.hero h1 em { color:#a49bff; font-style:normal; }.hero-copy p { max-width:510px; margin:0; color:#a2a5bd; font-size:13px; line-height:1.65; }.hero-actions { display:flex; gap:10px; margin-top:24px; }.hero-actions .button { min-height:43px; padding:0 17px; }
.hero-art { position:relative; z-index:1; min-height:190px; align-self:center; display:flex; align-items:center; justify-content:center; }.lobby-orbit { position:relative; width:285px; height:185px; }.orbit-ring { position:absolute; width:210px; height:108px; left:37px; top:38px; border:1px solid rgba(154,143,255,.32); border-radius:50%; transform:rotate(-17deg); }.orbit-ring:after { content:""; position:absolute; inset:-17px 15px; border:1px solid rgba(109,194,235,.16); border-radius:50%; transform:rotate(42deg); }.orbit-core { position:absolute; left:107px; top:61px; width:72px; height:61px; display:grid; place-items:center; border:1px solid rgba(190,183,255,.35); border-radius:19px; background:linear-gradient(145deg,rgba(135,122,255,.4),rgba(50,48,116,.75)); box-shadow:0 20px 35px rgba(0,0,0,.2), 0 0 35px rgba(122,107,255,.24); }.orbit-core .brand-mark { transform:rotate(-8deg) scale(1.25); }.orbit-user { position:absolute; width:32px; height:32px; display:grid; place-items:center; border:3px solid #1a1c2d; border-radius:50%; color:#fff; font-size:9px; font-weight:800; box-shadow:0 7px 18px rgba(0,0,0,.25); }.orbit-user.u1{left:25px;top:54px;background:#ff8a80}.orbit-user.u2{right:25px;top:19px;background:#5eb5fb}.orbit-user.u3{right:18px;bottom:10px;background:#52d5ae}.orbit-user.u4{left:53px;bottom:5px;background:#d994ee}.orbit-line { position:absolute; width:6px; height:6px; background:#c6c1ff; border-radius:50%; box-shadow:0 0 12px currentColor; }.orbit-line.l1{left:78px;top:46px;color:#a598ff}.orbit-line.l2{right:62px;top:67px;color:#5eb5fb}.orbit-line.l3{left:92px;bottom:31px;color:#59d9b6}
.section-head { display:flex; align-items:center; justify-content:space-between; gap:15px; margin:32px 0 14px; }.section-head h2 { margin:0; font-size:17px; letter-spacing:-.035em; }.section-head p { margin:4px 0 0; color:#73798e; font-size:11px; }.section-link { color:#a7a0ff; font-size:11px; font-weight:700; }.section-link:hover { color:#d3d0ff; }
.game-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:13px; }.game-card { position:relative; min-height:201px; display:flex; flex-direction:column; justify-content:space-between; overflow:hidden; padding:17px; border:1px solid var(--line); border-radius:16px; background:linear-gradient(145deg,rgba(22,25,39,.9),rgba(14,16,26,.78)); transition:transform .25s var(--ease), border-color .25s ease, box-shadow .25s ease; }.game-card:hover { transform:translateY(-4px); border-color:rgba(155,145,255,.3); box-shadow:0 17px 35px rgba(0,0,0,.22); }.game-card:after { content:""; position:absolute; width:125px; height:125px; top:-58px; right:-47px; border-radius:50%; background:var(--card-gradient); opacity:.12; filter:blur(2px); transition:transform .3s ease; }.game-card:hover:after { transform:scale(1.35); }.game-card-top { position:relative; z-index:1; display:flex; justify-content:space-between; }.game-icon { width:47px; height:47px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.13); border-radius:14px; color:#fff; background:var(--card-gradient); box-shadow:0 8px 23px rgba(0,0,0,.2); font-family:Georgia,serif; font-size:22px; }.game-card:nth-child(2) .game-icon { font-family:inherit; font-size:22px; }.game-eyebrow { height:23px; align-self:flex-start; display:flex; align-items:center; padding:0 8px; color:#8c92a8; border:1px solid var(--line); border-radius:7px; font-size:9px; }.game-card h3 { position:relative; z-index:1; margin:16px 0 5px; font-size:16px; letter-spacing:-.03em; }.game-card p { position:relative; z-index:1; min-height:34px; margin:0; color:#858a9e; font-size:11px; line-height:1.55; }.game-card-bottom { position:relative; z-index:1; display:flex; align-items:center; justify-content:space-between; margin-top:17px; padding-top:12px; border-top:1px solid rgba(255,255,255,.065); }.game-meta { display:flex; align-items:center; gap:6px; color:#70768b; font-size:10px; }.game-meta .tiny-users { width:13px; height:13px; border:1px solid currentColor; border-radius:50%; }.game-open { display:flex; align-items:center; gap:5px; color:#bbb5ff; border:0; background:transparent; font-size:10px; font-weight:750; }.game-open span { display:grid; place-items:center; width:19px; height:19px; border:1px solid rgba(169,160,255,.24); border-radius:6px; }.tone-violet{--card-gradient:linear-gradient(135deg,#8b7cff,#4b5bdb)}.tone-coral{--card-gradient:linear-gradient(135deg,#ff8175,#d84471)}.tone-mint{--card-gradient:linear-gradient(135deg,#54d6b2,#2c92a8)}.tone-gold{--card-gradient:linear-gradient(135deg,#f5c96e,#eb8b6d)}.tone-pink{--card-gradient:linear-gradient(135deg,#e783f0,#8c66dc)}.tone-blue{--card-gradient:linear-gradient(135deg,#61b8ff,#5e70dd)}
.dashboard-lower { display:grid; grid-template-columns:minmax(0,1fr) 295px; gap:14px; margin-top:26px; }.panel { border:1px solid var(--line); border-radius:16px; background:rgba(17,20,31,.74); box-shadow:0 12px 35px rgba(0,0,0,.1); }.panel-header { display:flex; align-items:center; justify-content:space-between; padding:16px 17px 12px; }.panel-header h3 { margin:0; font-size:13px; letter-spacing:-.02em; }.panel-header span { color:#73798e; font-size:10px; }.activity-list { padding:0 17px 9px; }.activity-item { display:flex; align-items:center; gap:10px; min-height:47px; border-top:1px solid rgba(255,255,255,.055); }.activity-avatar { width:27px; height:27px; display:grid; place-items:center; flex:none; color:#fff; border-radius:8px; font-size:9px; font-weight:800; }.activity-copy { min-width:0; display:grid; gap:1px; }.activity-copy strong { overflow:hidden; color:#d8dae4; font-size:11px; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }.activity-copy span { color:#777d91; font-size:10px; }.activity-time { margin-left:auto; color:#5c6276; font-size:9px; white-space:nowrap; }.quick-card { padding:18px; background:linear-gradient(160deg,rgba(30,29,62,.75),rgba(17,20,31,.8)); }.quick-orbit { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }.quick-orbit .mini-stack { display:flex; }.quick-orbit .avatar { width:28px; height:28px; margin-left:-6px; border:2px solid #1a1d2b; }.quick-orbit .avatar:first-child { margin-left:0; }.quick-card h3 { margin:0 0 5px; font-size:14px; }.quick-card p { margin:0 0 15px; color:#83889c; font-size:11px; line-height:1.55; }.quick-card .button { width:100%; }
.loading-state { min-height:450px; display:grid; place-items:center; color:#858ba1; }.spinner { width:25px; height:25px; border:2px solid rgba(139,124,255,.2); border-top-color:var(--violet); border-radius:50%; animation:spin .7s linear infinite; }@keyframes spin{to{transform:rotate(360deg)}}
.empty-state { display:grid; justify-items:center; gap:10px; padding:58px 20px; border:1px dashed rgba(255,255,255,.12); border-radius:16px; text-align:center; }.empty-icon { width:47px; height:47px; display:grid; place-items:center; border-radius:14px; color:#aaa4ff; background:rgba(139,124,255,.12); font-size:20px; }.empty-state h3 { margin:3px 0 0; font-size:15px; }.empty-state p { max-width:390px; margin:0; color:#7f8498; font-size:11px; }
/* modal */
.modal-backdrop { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:20px; background:rgba(4,5,10,.72); backdrop-filter:blur(12px); animation:fade-in .2s ease; }.modal { width:min(560px,100%); max-height:min(760px,calc(100vh - 40px)); overflow:auto; border:1px solid rgba(255,255,255,.12); border-radius:20px; background:#11141f; box-shadow:0 30px 90px rgba(0,0,0,.55); animation:modal-in .25s var(--ease); }.modal-wide { width:min(740px,100%); }.modal-header { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; padding:23px 24px 14px; }.modal-header h2 { margin:0; font-size:20px; letter-spacing:-.05em; }.modal-header p { margin:5px 0 0; color:#858a9e; font-size:11px; line-height:1.5; }.close-button { width:30px; height:30px; display:grid; place-items:center; color:#8a90a5; border:1px solid var(--line); border-radius:8px; background:rgba(255,255,255,.035); font-size:18px; }.close-button:hover { color:#fff; }.modal-body { padding:0 24px 24px; }.modal-footer { display:flex; justify-content:flex-end; gap:9px; padding:14px 24px 20px; border-top:1px solid var(--line); }.form-grid { display:grid; gap:15px; }.form-row { display:grid; grid-template-columns:1fr 1fr; gap:12px; }.field { display:grid; gap:7px; }.field label { color:#a8adbd; font-size:11px; font-weight:650; }.field small { color:#6f758a; font-size:10px; }.input, .select, .textarea { width:100%; min-height:41px; padding:0 12px; color:#f1f2f8; border:1px solid rgba(255,255,255,.1); outline:none; border-radius:10px; background:#0c0f18; transition:border-color .2s ease, box-shadow .2s ease; }.textarea { min-height:95px; padding:11px 12px; resize:vertical; }.input:focus, .select:focus, .textarea:focus { border-color:rgba(139,124,255,.7); box-shadow:0 0 0 3px rgba(139,124,255,.12); }.select { appearance:none; background-image:linear-gradient(45deg,transparent 50%,#858ba2 50%),linear-gradient(135deg,#858ba2 50%,transparent 50%); background-position:calc(100% - 16px) 17px,calc(100% - 12px) 17px; background-size:4px 4px,4px 4px; background-repeat:no-repeat; }.segmented { display:grid; grid-template-columns:1fr 1fr; gap:5px; padding:4px; border:1px solid var(--line); border-radius:11px; background:#0b0e16; }.segment { min-height:34px; color:#7f859a; border:0; border-radius:7px; background:transparent; font-size:11px; }.segment.is-active { color:#eeedff; background:#272541; box-shadow:inset 0 0 0 1px rgba(139,124,255,.22); }.form-error { display:none; padding:10px 11px; color:#ffaaa8; border:1px solid rgba(255,110,110,.2); border-radius:9px; background:rgba(255,79,79,.08); font-size:11px; }.form-error.is-visible { display:block; }.modal-note { display:flex; gap:10px; margin-top:14px; padding:11px; color:#858ba0; border:1px solid rgba(139,124,255,.13); border-radius:10px; background:rgba(139,124,255,.06); font-size:10px; line-height:1.5; }.modal-note b { color:#b6aeff; font-size:15px; }
/* lobbies */
.lobby-list { display:grid; gap:9px; }.lobby-row { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(120px,.9fr) 110px 105px; align-items:center; gap:15px; padding:16px 17px; border:1px solid var(--line); border-radius:14px; background:rgba(17,20,31,.72); }.lobby-row:hover { border-color:rgba(139,124,255,.25); }.lobby-title { display:flex; align-items:center; gap:10px; min-width:0; }.lobby-game-dot { width:34px; height:34px; display:grid; place-items:center; flex:none; border-radius:10px; color:#fff; background:var(--card-gradient); font-size:16px; }.lobby-title-copy { min-width:0; }.lobby-title-copy strong { display:block; overflow:hidden; font-size:12px; text-overflow:ellipsis; white-space:nowrap; }.lobby-title-copy span { display:block; margin-top:2px; color:#747a8e; font-size:10px; }.lobby-column { display:grid; gap:2px; }.lobby-column strong { font-size:11px; }.lobby-column span { color:#73798d; font-size:10px; }.lobby-code { color:#aaa4ff; font-family:ui-monospace,monospace; font-size:11px; letter-spacing:.16em; }.status-label { display:inline-flex; align-items:center; gap:6px; color:#70dcb8; font-size:10px; }.status-label:before { content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
/* lobby waiting room */
.lobby-head { display:flex; justify-content:space-between; align-items:flex-start; gap:25px; margin-bottom:22px; }.lobby-head-copy { display:grid; gap:7px; }.back-link { color:#81879c; border:0; background:transparent; padding:0; font-size:11px; text-align:left; }.back-link:hover { color:#c3beff; }.lobby-head h1 { margin:0; font-size:clamp(25px,3vw,38px); letter-spacing:-.06em; }.lobby-head-meta { display:flex; align-items:center; gap:10px; color:#747a8e; font-size:11px; }.game-tag { display:inline-flex; align-items:center; gap:5px; padding:4px 8px; color:#b3adff; border:1px solid rgba(139,124,255,.22); border-radius:6px; background:rgba(139,124,255,.08); font-size:10px; }.lobby-actions { display:flex; gap:8px; }.invite-strip { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 14px; margin-bottom:14px; border:1px solid rgba(139,124,255,.14); border-radius:12px; background:linear-gradient(90deg,rgba(139,124,255,.1),rgba(27,31,48,.55)); }.invite-copy { display:flex; align-items:center; gap:11px; min-width:0; }.invite-copy .invite-icon { width:31px; height:31px; display:grid; place-items:center; color:#b9b2ff; border-radius:8px; background:rgba(139,124,255,.14); }.invite-copy strong { display:block; font-size:11px; }.invite-copy span { display:block; margin-top:2px; overflow:hidden; color:#777d92; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }.invite-code { flex:none; color:#e0ddff; font-family:ui-monospace,monospace; font-size:14px; font-weight:700; letter-spacing:.16em; }.lobby-columns { display:grid; grid-template-columns:minmax(0,1.35fr) minmax(280px,.65fr); gap:14px; }.room-panel { overflow:hidden; }.room-panel-header { display:flex; justify-content:space-between; align-items:center; padding:16px 18px; border-bottom:1px solid var(--line); }.room-panel-header h3 { margin:0; font-size:13px; }.room-panel-header span { color:#747a90; font-size:10px; }.player-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; padding:15px; }.player-tile { position:relative; display:flex; align-items:center; gap:10px; min-height:67px; padding:10px; border:1px solid rgba(255,255,255,.075); border-radius:12px; background:rgba(255,255,255,.025); }.player-tile.is-me { border-color:rgba(139,124,255,.36); background:rgba(139,124,255,.07); }.player-tile .avatar { width:32px; height:32px; border-radius:10px; }.player-info { min-width:0; }.player-info strong { display:block; overflow:hidden; max-width:130px; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }.player-info span { display:flex; align-items:center; gap:5px; margin-top:3px; color:#72788d; font-size:9px; }.online-dot { width:5px; height:5px; border-radius:50%; background:#51d7ae; }.online-dot.offline { background:#62687c; }.host-badge { position:absolute; top:9px; right:9px; color:#b9b1ff; font-size:9px; }.ready-badge { position:absolute; right:9px; bottom:10px; color:#65dcb4; font-size:9px; }.room-empty-slot { min-height:67px; display:grid; place-items:center; color:#666c80; border:1px dashed rgba(255,255,255,.1); border-radius:12px; font-size:10px; }.room-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px 16px; border-top:1px solid var(--line); }.room-footer-note { color:#787e93; font-size:10px; }.room-footer-actions { display:flex; gap:7px; }.chat-panel { display:flex; flex-direction:column; min-height:385px; }.chat-messages { flex:1; min-height:240px; max-height:390px; overflow:auto; padding:11px 14px; }.chat-message { display:grid; grid-template-columns:24px minmax(0,1fr); gap:8px; margin:7px 0; }.chat-message .avatar { width:24px; height:24px; border-radius:7px; font-size:8px; }.chat-bubble { min-width:0; }.chat-line { display:flex; align-items:baseline; gap:6px; }.chat-line strong { color:#cfd1dc; font-size:10px; }.chat-line time { color:#60667a; font-size:8px; }.chat-bubble p { margin:2px 0 0; color:#9297aa; font-size:10px; line-height:1.4; overflow-wrap:anywhere; }.system-message { justify-content:center; display:flex; color:#6e7489; font-size:9px; font-style:italic; text-align:center; }.chat-form { display:flex; gap:7px; padding:11px; border-top:1px solid var(--line); }.chat-form .input { min-height:36px; font-size:11px; }.chat-send { width:36px; min-width:36px; padding:0; }
/* game rooms */
.game-shell { display:grid; grid-template-columns:minmax(0,1.4fr) minmax(300px,.6fr); gap:14px; }.game-stage { min-width:0; overflow:hidden; }.game-stage-head { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:16px 18px; border-bottom:1px solid var(--line); }.game-stage-head h2 { margin:0; font-size:15px; }.turn-pill { display:inline-flex; align-items:center; gap:6px; padding:6px 9px; color:#bdb7ff; border-radius:7px; background:rgba(139,124,255,.11); font-size:10px; }.turn-pill:before { content:""; width:6px; height:6px; border-radius:50%; background:var(--violet); box-shadow:0 0 10px var(--violet); }.game-stage-body { min-height:470px; display:grid; place-items:center; padding:28px; background:radial-gradient(circle at 50% 42%,rgba(139,124,255,.08),transparent 45%); }.game-aside { display:flex; flex-direction:column; gap:14px; min-width:0; }.game-info-panel { padding:17px; }.game-info-panel h3 { margin:0 0 8px; font-size:13px; }.game-info-panel p { margin:0; color:#858b9e; font-size:10px; line-height:1.55; }.game-side-chat { min-height:270px; }.game-side-chat .chat-messages { min-height:140px; max-height:240px; }.game-action-bar { display:flex; gap:7px; flex-wrap:wrap; padding:13px 16px; border-top:1px solid var(--line); }
/* chess */
.chess-wrap { width:min(100%,590px); display:grid; gap:15px; }.chess-board { display:grid; grid-template-columns:repeat(8,1fr); width:100%; aspect-ratio:1; overflow:hidden; border:7px solid #2b2b3e; border-radius:12px; box-shadow:0 18px 35px rgba(0,0,0,.32); }.chess-square { position:relative; display:grid; place-items:center; border:0; color:#fff; font-family:Georgia,serif; font-size:clamp(23px,4.6vw,48px); line-height:1; }.chess-square.light { background:#d9d3c9; }.chess-square.dark { background:#746c83; }.chess-square.selected { box-shadow:inset 0 0 0 4px rgba(168,157,255,.85); }.chess-square.legal:after { content:""; position:absolute; width:20%; aspect-ratio:1; border-radius:50%; background:rgba(112,82,192,.55); }.chess-square.legal.capture:after { width:78%; background:transparent; border:4px solid rgba(112,82,192,.6); }.chess-piece { position:relative; z-index:1; filter:drop-shadow(1px 3px 1px rgba(0,0,0,.35)); }.chess-piece.white { color:#fbf7e9; text-shadow:0 2px 1px #5c5663, 0 0 1px #5c5663; }.chess-piece.black { color:#242435; text-shadow:0 1px 1px rgba(255,255,255,.18); }.chess-coordinates { display:flex; justify-content:space-between; color:#777d93; font-size:9px; padding:0 4px; }.move-history { display:flex; align-items:center; gap:8px; overflow:auto; padding:10px 13px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.025); }.move-history span { color:#a8adbe; font-family:ui-monospace,monospace; font-size:10px; white-space:nowrap; }.move-history span b { color:#6e7488; margin-right:3px; }
/* uno */
.uno-table { width:min(100%,650px); display:grid; gap:24px; }.uno-opponents { display:flex; justify-content:center; gap:8px; flex-wrap:wrap; }.uno-player-badge { display:flex; align-items:center; gap:7px; padding:5px 9px 5px 5px; border:1px solid var(--line); border-radius:9px; background:rgba(255,255,255,.03); }.uno-player-badge.active { border-color:rgba(139,124,255,.5); box-shadow:0 0 20px rgba(139,124,255,.14); }.uno-player-badge .avatar { width:23px; height:23px; border-radius:7px; font-size:8px; }.uno-player-badge strong { max-width:75px; overflow:hidden; font-size:9px; text-overflow:ellipsis; white-space:nowrap; }.uno-player-badge small { display:block; color:#757b90; font-size:8px; }.uno-center { display:flex; align-items:center; justify-content:center; gap:28px; min-height:170px; }.uno-deck { width:85px; height:123px; position:relative; display:grid; place-items:center; color:#fff; border:5px solid #202338; border-radius:10px; background:linear-gradient(135deg,#6860d7,#ae6fe7); box-shadow:4px 5px 0 #36345f, 8px 10px 20px rgba(0,0,0,.25); font-size:12px; font-weight:800; text-align:center; }.uno-deck:before { content:""; position:absolute; inset:8px; border:1px solid rgba(255,255,255,.45); border-radius:7px; transform:rotate(-13deg); }.uno-deck span { position:relative; z-index:1; transform:rotate(-13deg); }.uno-card { width:77px; height:112px; position:relative; display:grid; place-items:center; padding:7px; overflow:hidden; border:4px solid rgba(255,255,255,.85); border-radius:10px; color:#fff; background:var(--uno-color,#e65465); box-shadow:0 7px 15px rgba(0,0,0,.24); transition:transform .2s var(--ease), box-shadow .2s ease; }.uno-card:before { content:""; position:absolute; inset:10px 7px; border:1px solid rgba(255,255,255,.4); border-radius:50%; transform:rotate(-37deg); }.uno-card:hover { transform:translateY(-9px) rotate(-2deg); box-shadow:0 15px 23px rgba(0,0,0,.32); }.uno-card.is-disabled { opacity:.45; filter:grayscale(.35); }.uno-card .uno-value { position:relative; z-index:1; font-size:31px; font-weight:850; text-shadow:1px 2px 0 rgba(0,0,0,.18); }.uno-card .uno-corner { position:absolute; top:3px; left:5px; font-size:8px; font-weight:800; }.uno-card.wild { background:linear-gradient(135deg,#5b58c9 0 25%,#e55f70 25% 50%,#e9bf5e 50% 75%,#55bfaa 75%); }.uno-card.mini { width:48px; height:70px; border-width:3px; }.uno-card.mini .uno-value { font-size:18px; }.uno-discard { transform:rotate(3deg); }.uno-hand { display:flex; align-items:flex-end; justify-content:center; min-height:124px; padding:0 15px 8px; }.uno-hand .uno-card { margin-left:-16px; }.uno-hand .uno-card:first-child { margin-left:0; }.uno-hand .uno-card:hover { z-index:3; }.uno-hand .uno-card:nth-child(2n) { transform:rotate(-2deg); }.uno-hand .uno-card:nth-child(3n) { transform:rotate(2deg); }.uno-hand .uno-card:hover { transform:translateY(-10px) rotate(0); }.uno-hand-label { display:flex; justify-content:space-between; color:#858b9e; font-size:10px; }.color-picker { display:flex; gap:7px; justify-content:center; }.color-swatch { width:25px; height:25px; border:2px solid rgba(255,255,255,.5); border-radius:50%; }.color-swatch.red{background:#ec5e6c}.color-swatch.yellow{background:#efc85f}.color-swatch.green{background:#59c6a9}.color-swatch.blue{background:#5a8fe5}
/* ludo */
.ludo-wrap { width:min(100%,520px); display:grid; gap:15px; }.ludo-board { display:grid; grid-template-columns:repeat(11,1fr); grid-template-rows:repeat(11,1fr); width:100%; aspect-ratio:1; padding:8px; border:1px solid rgba(255,255,255,.12); border-radius:15px; background:#e8e3d7; box-shadow:0 17px 35px rgba(0,0,0,.25); }.ludo-home { grid-area:span 4 / span 4; display:grid; place-items:center; padding:11px; border:5px solid #e8e3d7; border-radius:11px; }.ludo-home.coral{background:#ef9b93}.ludo-home.blue{background:#83b8e8}.ludo-home.mint{background:#86d6bf}.ludo-home.gold{background:#efca81}.ludo-home-inner { display:grid; grid-template-columns:1fr 1fr; gap:7px; width:80%; height:75%; padding:8px; border-radius:8px; background:rgba(255,255,255,.72); }.ludo-piece { width:18px; height:18px; align-self:center; justify-self:center; border:2px solid rgba(255,255,255,.8); border-radius:50%; box-shadow:0 2px 3px rgba(0,0,0,.25); }.ludo-piece.coral{background:#df665d}.ludo-piece.blue{background:#4b8dcc}.ludo-piece.mint{background:#35ad8b}.ludo-piece.gold{background:#d59a37}.ludo-track { display:grid; place-items:center; min-width:0; border:1px solid #c9c2b5; background:#f4f0e7; }.ludo-track.safe { background:#dbd4c7; }.ludo-center { grid-area:5 / 5 / 8 / 8; display:grid; place-items:center; overflow:hidden; border:1px solid #d0c9bb; background:conic-gradient(#df8d86 0 25%,#82b5df 25% 50%,#86d0b6 50% 75%,#e6bc72 75%); clip-path:polygon(50% 0,100% 100%,0 100%); }.ludo-die { width:57px; height:57px; display:grid; place-items:center; color:#171824; border-radius:14px; background:#fff; box-shadow:0 8px 18px rgba(0,0,0,.17); font-size:27px; font-weight:800; }.ludo-toolbar { display:flex; align-items:center; justify-content:center; gap:10px; }.dice-button { width:58px; height:48px; color:#202031; border:0; border-radius:12px; background:#fff; box-shadow:0 7px 18px rgba(0,0,0,.18); font-size:20px; font-weight:800; }.dice-button:disabled { opacity:.35; cursor:not-allowed; }.ludo-player-strip { display:flex; gap:7px; justify-content:center; flex-wrap:wrap; }.ludo-chip { display:flex; align-items:center; gap:6px; padding:5px 8px; border:1px solid var(--line); border-radius:7px; color:#9da2b3; font-size:9px; }.ludo-chip.is-current { color:#f5f3ff; border-color:rgba(139,124,255,.4); }.ludo-color-dot { width:8px; height:8px; border-radius:50%; background:var(--c); }
/* skribbl */
.skribbl-wrap { width:min(100%,720px); display:grid; gap:13px; }.drawing-canvas { width:100%; aspect-ratio:1.5; touch-action:none; border:1px solid rgba(255,255,255,.12); border-radius:14px; background:#fcfaf6; box-shadow:0 18px 35px rgba(0,0,0,.25); }.drawing-toolbar { display:flex; align-items:center; gap:7px; flex-wrap:wrap; padding:9px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.03); }.brush-size { width:84px; }.tool-button { min-width:29px; height:29px; display:grid; place-items:center; color:#9b9fb0; border:1px solid var(--line); border-radius:7px; background:#151927; }.tool-button.is-active { color:#fff; border-color:rgba(139,124,255,.52); background:rgba(139,124,255,.15); }.palette-dot { width:21px; height:21px; border:2px solid transparent; border-radius:50%; }.palette-dot.is-active { border-color:#fff; box-shadow:0 0 0 2px var(--violet); }.word-options { display:flex; gap:8px; justify-content:center; flex-wrap:wrap; }.word-choice { min-height:42px; padding:0 18px; color:#dddafe; border:1px solid rgba(139,124,255,.25); border-radius:10px; background:rgba(139,124,255,.1); font-size:12px; font-weight:700; }.word-choice:hover { background:rgba(139,124,255,.2); }.timer-bar { height:5px; overflow:hidden; border-radius:3px; background:#272b3a; }.timer-bar span { display:block; height:100%; background:linear-gradient(90deg,#67d7b5,#9d8cff); transition:width 1s linear; }.guess-feed { display:grid; gap:5px; max-height:130px; overflow:auto; }.guess-item { color:#9298aa; font-size:10px; }.guess-item strong { color:#dedff0; }.guess-item.correct { color:#70dbb6; }
/* hidden-info games */
.secret-game { width:min(100%,610px); display:grid; gap:18px; }.secret-card { padding:25px; text-align:center; border:1px solid rgba(139,124,255,.22); border-radius:18px; background:radial-gradient(circle at 50% 0,rgba(139,124,255,.16),transparent 63%),rgba(20,23,38,.82); }.secret-card .secret-symbol { width:53px; height:53px; display:grid; place-items:center; margin:0 auto 13px; color:#c2bcff; border:1px solid rgba(139,124,255,.35); border-radius:17px; background:rgba(139,124,255,.14); font-size:25px; }.secret-card h2 { margin:0; font-size:25px; letter-spacing:-.05em; }.secret-card p { margin:5px 0 0; color:#858b9f; font-size:11px; }.role-pill { display:inline-flex; margin-top:14px; padding:5px 9px; border-radius:7px; color:#bdb6ff; background:rgba(139,124,255,.12); font-size:10px; }.role-pill.imposter { color:#ffaba6; background:rgba(255,112,103,.12); }.clue-list, .question-list { display:grid; gap:8px; }.clue-item, .question-item { padding:11px 12px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.025); }.clue-item strong, .question-item strong { color:#d8d9e5; font-size:10px; }.clue-item p, .question-item p { margin:3px 0 0; color:#a0a5b7; font-size:11px; }.vote-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:8px; }.vote-button { display:flex; align-items:center; gap:8px; padding:8px; color:#d7d8e4; border:1px solid var(--line); border-radius:9px; background:rgba(255,255,255,.035); text-align:left; }.vote-button:hover { border-color:rgba(139,124,255,.45); background:rgba(139,124,255,.09); }.answer-grid { display:flex; gap:7px; flex-wrap:wrap; }.answer-button { min-height:34px; padding:0 11px; color:#aeb2c3; border:1px solid var(--line); border-radius:8px; background:rgba(255,255,255,.03); font-size:10px; }.answer-button:hover { color:#fff; border-color:rgba(139,124,255,.45); }
/* profile/settings */
.profile-grid { display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:14px; }.profile-card { padding:24px; }.profile-hero { display:flex; align-items:center; gap:14px; padding-bottom:20px; border-bottom:1px solid var(--line); }.profile-hero .avatar { width:58px; height:58px; border-radius:17px; font-size:17px; }.profile-hero h2 { margin:0; font-size:18px; }.profile-hero p { margin:4px 0 0; color:#777d91; font-size:11px; }.stat-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; padding-top:18px; }.stat-box { padding:12px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.025); }.stat-box strong { display:block; font-size:19px; letter-spacing:-.04em; }.stat-box span { display:block; margin-top:3px; color:#777d90; font-size:9px; }.settings-list { display:grid; gap:0; }.setting-row { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:63px; padding:0 2px; border-bottom:1px solid var(--line); }.setting-copy strong { display:block; font-size:11px; }.setting-copy span { display:block; margin-top:3px; color:#747a8f; font-size:10px; }.toggle { position:relative; width:39px; height:22px; padding:0; border:0; border-radius:20px; background:#292d3b; }.toggle:after { content:""; position:absolute; width:16px; height:16px; left:3px; top:3px; border-radius:50%; background:#8f95a8; transition:transform .2s ease,background .2s ease; }.toggle.is-on { background:rgba(139,124,255,.45); }.toggle.is-on:after { transform:translateX(17px); background:#fff; }.card-management { margin-top:14px; }.uno-card-preview-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(80px,1fr)); gap:8px; padding:0 17px 17px; }.uploaded-preview { position:relative; overflow:hidden; aspect-ratio:.7; border:1px solid var(--line); border-radius:9px; background:#0c0f18; }.uploaded-preview img { width:100%; height:100%; object-fit:cover; }.uploaded-preview button { position:absolute; right:4px; top:4px; width:21px; height:21px; color:#fff; border:0; border-radius:6px; background:rgba(0,0,0,.55); }
/* toast */
.toast-region { position:fixed; z-index:200; right:22px; bottom:22px; display:grid; gap:8px; width:min(350px,calc(100vw - 30px)); }.toast { display:flex; align-items:flex-start; gap:10px; padding:13px 14px; border:1px solid rgba(255,255,255,.13); border-radius:12px; background:#181c2b; box-shadow:0 17px 35px rgba(0,0,0,.32); animation:toast-in .3s var(--ease); }.toast-icon { width:19px; height:19px; display:grid; place-items:center; flex:none; color:#70ddb6; border-radius:50%; background:rgba(79,211,167,.13); font-size:11px; }.toast.error .toast-icon { color:#ff9e9a; background:rgba(255,97,91,.13); }.toast-copy strong { display:block; font-size:11px; }.toast-copy span { display:block; margin-top:2px; color:#858b9e; font-size:10px; line-height:1.4; }
@keyframes fade-in{from{opacity:0}to{opacity:1}}@keyframes modal-in{from{opacity:0;transform:translateY(12px) scale(.98)}to{opacity:1;transform:none}}@keyframes toast-in{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@media (max-width: 1180px) { .sidebar{width:220px}.main-content{width:calc(100% - 220px);margin-left:220px}.hero{grid-template-columns:1fr 300px;padding-left:28px;padding-right:24px}.game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.dashboard-lower{grid-template-columns:1fr}.sidebar-invite-card{display:none}.brand-lockup{padding-bottom:34px} }
@media (max-width: 860px) { .sidebar{transform:translateX(-100%);transition:transform .25s var(--ease);box-shadow:20px 0 50px rgba(0,0,0,.35)}.sidebar.is-open{transform:none}.main-content{width:100%;margin-left:0}.topbar{height:66px;padding:0 20px}.mobile-menu{display:flex;flex-direction:column;gap:4px;margin-right:10px}.mobile-menu span{width:16px;height:1px;background:currentColor}.breadcrumb{margin-right:auto}.view-root{padding:28px 20px 55px}.hero{grid-template-columns:1fr;min-height:300px}.hero-art{position:absolute;right:-25px;bottom:-12px;opacity:.65;transform:scale(.8)}.hero-copy{max-width:72%}.lobby-columns,.game-shell,.profile-grid{grid-template-columns:1fr}.game-aside{display:grid;grid-template-columns:1fr 1fr}.game-info-panel{grid-column:span 2}.chat-panel{min-height:300px}.lobby-row{grid-template-columns:minmax(0,1.5fr) 100px 100px}.lobby-row .lobby-column:nth-child(3){display:none} }
@media (max-width: 590px) { body{font-size:13px}.topbar-actions .icon-button,.top-divider{display:none}.user-chip-copy,.user-chip .chevron{display:none}.topbar-actions{gap:0}.view-root{padding:23px 14px 42px}.page-heading{align-items:flex-start;flex-direction:column;gap:14px}.heading-actions{width:100%}.heading-actions .button{flex:1}.hero{padding:25px 21px;border-radius:17px}.hero-copy{max-width:100%}.hero h1{font-size:31px}.hero-art{right:-78px;bottom:-30px;opacity:.38}.hero-actions{flex-wrap:wrap}.hero-actions .button{flex:1}.game-grid{grid-template-columns:1fr}.game-card{min-height:184px}.dashboard-lower{margin-top:18px}.lobby-head{flex-direction:column;gap:15px}.lobby-actions{width:100%}.lobby-actions .button{flex:1}.invite-strip{align-items:flex-start;flex-wrap:wrap}.invite-code{margin-left:42px}.lobby-columns{gap:10px}.player-grid{grid-template-columns:1fr 1fr;padding:10px}.room-footer{align-items:flex-start;flex-direction:column}.room-footer-actions{width:100%}.room-footer-actions .button{flex:1}.game-stage-body{min-height:360px;padding:16px 10px}.game-aside{display:flex}.game-info-panel{display:none}.chess-board{border-width:4px}.chess-square{font-size:clamp(20px,9vw,43px)}.uno-center{gap:15px}.uno-card{width:61px;height:89px;border-width:3px}.uno-card .uno-value{font-size:25px}.uno-hand{padding-left:4px;padding-right:4px}.uno-hand .uno-card{margin-left:-24px}.uno-hand .uno-card:first-child{margin-left:0}.uno-deck{width:67px;height:98px}.form-row{grid-template-columns:1fr}.modal-backdrop{padding:8px}.modal{max-height:calc(100vh - 16px);border-radius:16px}.modal-header,.modal-body{padding-left:18px;padding-right:18px}.modal-footer{padding-left:18px;padding-right:18px}.lobby-row{grid-template-columns:minmax(0,1fr) auto;gap:10px}.lobby-row .lobby-column,.lobby-row .button{display:none}.lobby-row .lobby-title{grid-column:1}.lobby-row .lobby-code{grid-column:2;grid-row:1}.lobby-row .button{display:inline-flex;grid-column:2;grid-row:2}.stat-grid{grid-template-columns:1fr 1fr}.stat-box:last-child{grid-column:span 2}.drawing-toolbar{gap:5px}.palette-dot{width:18px;height:18px} }
.ludo-board { grid-template-columns:repeat(15,minmax(0,1fr)); grid-template-rows:repeat(15,minmax(0,1fr)); }
.ludo-center { position:relative; grid-area:7 / 7 / 10 / 10; }
.ludo-markers,.ludo-finish-markers { display:flex; align-items:center; justify-content:center; flex-wrap:wrap; gap:1px; }
.ludo-markers { max-width:100%; }
.ludo-track .ludo-piece { width:13px; height:13px; }
.friend-card { grid-column:1 / -1; }
.friend-code-block { display:grid; gap:9px; margin:4px 0 18px; padding:14px; border:1px solid var(--line); border-radius:12px; background:rgba(255,255,255,.025); }
.friend-section-title { display:flex; align-items:baseline; justify-content:space-between; gap:8px; margin-bottom:8px; }
.friend-section-title strong { font-size:11px; }
.friend-section-title span { color:#777d90; font-size:10px; }
.friend-code-row { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.friend-code-row code { color:#c2bcff; font-family:ui-monospace,monospace; font-size:16px; letter-spacing:.12em; }
.friend-request-form { max-width:520px; }
.friend-lists { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin-top:22px; }
.friend-list { display:grid; gap:8px; }
.friend-row { display:flex; align-items:center; gap:9px; min-height:48px; padding:8px; border:1px solid var(--line); border-radius:10px; background:rgba(255,255,255,.02); }
.friend-row .avatar { width:31px; height:31px; flex:none; }
.friend-copy { min-width:0; flex:1; }
.friend-copy strong,.friend-copy span { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.friend-copy strong { font-size:10px; }
.friend-copy span,.friend-empty { margin-top:3px; color:#777d90; font-size:9px; }
.friend-actions { display:flex; gap:5px; }
.friend-empty { padding:9px 2px; }
@media (max-width: 860px) { .friend-lists { grid-template-columns:1fr; } }
@media (max-width: 590px) { .friend-code-row { align-items:flex-start; flex-direction:column; } .friend-row { flex-wrap:wrap; } .friend-actions { width:100%; margin-left:40px; } }
.ludo-home-lane.coral { background:#f4c5bf; }
.ludo-home-lane.blue { background:#c5ddf3; }
.ludo-home-lane.mint { background:#c8eee2; }
.ludo-home-lane.gold { background:#f5e1b8; }
.ludo-finish-markers { position:absolute; top:4px; left:4px; right:4px; }
.ludo-finish-markers .ludo-piece { width:12px; height:12px; }
