/* Boundary portal. Dark, rounded, colorful: the games are the color. */
:root {
    --bg: #0d0e14;
    --bg-2: #13151f;
    --panel: #181b27;
    --panel-2: #1f2333;
    --line: #2a2f43;
    --text: #eceef6;
    --muted: #9aa0b8;
    --faint: #6b7190;
    --accent: #7c5cff;
    --accent-2: #9d85ff;
    --go: #2fd27a;
    --go-2: #4be394;
    --warn: #ffb547;
    --bad: #ff6b6b;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(1200px 600px at 85% -10%, rgba(124, 92, 255, .18), transparent 60%),
        radial-gradient(900px 500px at -10% 10%, rgba(47, 210, 122, .08), transparent 60%),
        var(--bg);
    color: var(--text);
    font: 15px/1.5 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
button, input { font: inherit; color: inherit; }

/* --- top bar --- */
.topbar {
    position: sticky; top: 0; z-index: 10;
    display: flex; align-items: center; gap: 20px;
    height: 60px; padding: 0 max(16px, calc((100vw - 1240px) / 2));
    background: rgba(13, 14, 20, .82);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 19px; }
.brand-mark {
    width: 26px; height: 26px; border-radius: 7px; transform: rotate(12deg);
    background: linear-gradient(135deg, var(--accent), #ff5ca8);
    box-shadow: inset 0 0 0 7px rgba(255, 255, 255, .0), 0 4px 14px rgba(124, 92, 255, .5);
    position: relative;
}
.brand-mark::after { content: ""; position: absolute; inset: 8px; background: #fff; border-radius: 2px; }
.topnav a { text-decoration: none; color: var(--muted); font-weight: 600; padding: 6px 10px; border-radius: 8px; }
.topnav a:hover { color: var(--text); background: var(--panel); }
.spacer { flex: 1; }
.account { display: flex; align-items: center; gap: 10px; }
.who { font-weight: 600; }
.avatar, .face {
    display: inline-grid; place-items: center;
    width: 32px; height: 32px; border-radius: 50%;
    background: hsl(var(--h, 260) 65% 52%);
    font-weight: 800; font-size: 14px; color: #fff;
    box-shadow: 0 0 0 2px var(--bg);
}
[hidden] { display: none !important; }

/* --- buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 10px 18px; border-radius: 10px; border: 0;
    font-weight: 700; text-decoration: none; cursor: pointer;
    transition: transform .08s ease, background .15s ease, box-shadow .15s ease, opacity .15s;
    user-select: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn.primary { background: var(--go); color: #06210f; box-shadow: 0 4px 16px rgba(47, 210, 122, .25); }
.btn.primary:hover { background: var(--go-2); }
.btn.ghost { background: var(--panel-2); color: var(--text); }
.btn.ghost:hover { background: #283049; }
.btn.small { padding: 6px 12px; font-size: 13px; border-radius: 8px; }
.btn.big { padding: 14px 34px; font-size: 18px; border-radius: 12px; }
.btn.wide { width: 100%; }
.btn:disabled, .btn.disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.btn.busy { opacity: .7; }
.btn:focus-visible, .card:focus-visible, input:focus-visible, .tab:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.play-icon { width: 0; height: 0; border-left: 14px solid currentColor; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }

/* --- layout --- */
.view { max-width: 1240px; margin: 0 auto; padding: 28px 16px 64px; outline: none; transition: opacity .15s; }
.view.loading { opacity: .6; }
.lede { color: var(--muted); margin: 6px 0 0; font-size: 16px; }
.center-note { text-align: center; color: var(--muted); padding: 48px 16px; }

/* --- auth --- */
.auth { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; min-height: calc(100vh - 160px); }
.auth-art { position: relative; height: 420px; }
.tile { position: absolute; border-radius: 22px; box-shadow: var(--shadow); animation: float 7s ease-in-out infinite; }
.t1 { width: 210px; height: 210px; left: 8%; top: 6%; background: linear-gradient(135deg, #7c5cff, #b06bff); transform: rotate(-8deg); }
.t2 { width: 150px; height: 150px; left: 52%; top: 0; background: linear-gradient(135deg, #2fd27a, #13a6a0); animation-delay: -2s; transform: rotate(10deg); }
.t3 { width: 170px; height: 170px; left: 40%; top: 46%; background: linear-gradient(135deg, #ff5ca8, #ff9a5c); animation-delay: -4s; transform: rotate(6deg); }
.t4 { width: 100px; height: 100px; left: 4%; top: 64%; background: linear-gradient(135deg, #ffd25c, #ff9a3c); animation-delay: -1s; transform: rotate(-14deg); }
.t5 { width: 80px; height: 80px; left: 78%; top: 40%; background: linear-gradient(135deg, #4cc3ff, #5c7cff); animation-delay: -3s; transform: rotate(20deg); }
@keyframes float { 50% { translate: 0 -14px; } }
.auth-card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 32px; box-shadow: var(--shadow); max-width: 440px; }
.auth-card h1 { font-size: 30px; }
.auth-form { display: flex; flex-direction: column; gap: 8px; margin-top: 22px; }
.auth-form label { font-size: 13px; font-weight: 700; color: var(--muted); margin-top: 8px; }
.auth-form input, .create input, .search {
    width: 100%; padding: 12px 14px; border-radius: 10px;
    background: var(--bg-2); border: 1px solid var(--line);
    transition: border-color .15s, background .15s;
}
.auth-form input:focus, .create input:focus, .search:focus { border-color: var(--accent); background: #0f111a; outline: none; }
.auth-form .btn { margin-top: 14px; }
.tabs { display: flex; gap: 4px; background: var(--bg-2); padding: 4px; border-radius: 12px; }
.tab { flex: 1; padding: 9px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.tab.active { background: var(--panel-2); color: var(--text); }
.hint { color: var(--faint); font-size: 13px; margin: 4px 0 0; min-height: 0; }
.hint:empty, .form-error:empty { display: none; }
.form-error { color: var(--bad); font-weight: 600; margin: 6px 0 0; }

/* --- catalog --- */
.hero { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 26px; flex-wrap: wrap; }
.hero h1 { font-size: 34px; }
.search { max-width: 320px; }
.shelf { margin-top: 30px; }
.shelf h2 { font-size: 20px; margin-bottom: 14px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.card {
    display: block; text-decoration: none; border-radius: var(--radius); overflow: hidden;
    background: var(--panel); border: 1px solid var(--line);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #3a4160; }
.card-thumb, .game-thumb {
    position: relative; aspect-ratio: 16 / 9; overflow: hidden;
    background: linear-gradient(135deg, hsl(var(--h) 60% 42%), hsl(calc(var(--h) + 40) 70% 30%));
}
.card-thumb img, .game-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-thumb img { transition: transform .3s ease; }
.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 8px; }
.card-body h3 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; }
.badge.multi { background: rgba(47, 210, 122, .14); color: var(--go-2); }
.badge.solo { background: rgba(157, 133, 255, .14); color: var(--accent-2); }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }

/* --- game page --- */
.back { display: inline-block; color: var(--muted); text-decoration: none; margin-bottom: 18px; font-weight: 600; }
.back:hover { color: var(--text); }
.game-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.game-thumb { border-radius: 18px; box-shadow: var(--shadow); }
.game-info { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.game-info h1 { font-size: 34px; line-height: 1.15; }
.desc { color: var(--muted); margin: 0; font-size: 16px; }
.warn { color: var(--warn); margin: 0; }
.game-side { margin-top: 32px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.panel-head h2 { font-size: 20px; }
.rooms { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.room { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); }
.room.empty { color: var(--muted); justify-content: center; padding: 22px; }
.room-main { flex: 1; min-width: 0; }
.room-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.room-meta { color: var(--faint); font-size: 13px; }
.faces { display: flex; }
.face { width: 26px; height: 26px; font-size: 12px; margin-left: -6px; }
.face.away { filter: grayscale(1) brightness(.7); }
.room-count { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 700; min-width: 52px; text-align: right; }
.room-count.full { color: var(--warn); }
.create { display: flex; gap: 10px; margin-top: 14px; }
.create input { flex: 1; }

/* --- toasts --- */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 50; }
.toast { padding: 10px 16px; border-radius: 10px; background: #2a1720; border: 1px solid #5a2a3a; color: #ffd0d6; box-shadow: var(--shadow); font-weight: 600; transition: opacity .4s, translate .4s; }
.toast.ok { background: #13281d; border-color: #24563a; color: #c4f5d8; }
.toast.leaving { opacity: 0; translate: 0 8px; }

/* --- list view extras --- */
.list-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: -6px 0 6px; }
.list-tools .search { max-width: 340px; flex: 1 1 220px; }
.chips { display: flex; gap: 6px; background: var(--bg-2); padding: 4px; border-radius: 12px; border: 1px solid var(--line); }
.chip { border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 9px; cursor: pointer; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--panel-2); color: var(--text); box-shadow: 0 1px 0 rgba(255,255,255,.04) inset; }
.chip:focus-visible, .vt-btn:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.count { color: var(--faint); font-size: 13px; font-weight: 600; margin-left: auto; }
.note { background: rgba(255, 181, 71, .1); border: 1px solid rgba(255, 181, 71, .3); color: var(--warn); padding: 10px 14px; border-radius: 10px; }
.card-title { display: flex; align-items: center; gap: 9px; min-width: 0; }
.card-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card-sector { color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.card.flash { animation: flash 1.6s ease-out 1; }
@keyframes flash { 0%, 30% { box-shadow: 0 0 0 3px var(--accent-2), var(--shadow); } }
.swatch {
    flex: none; width: 16px; height: 16px; border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, color-mix(in srgb, var(--c1) 55%, white), var(--c1) 45%, color-mix(in srgb, var(--c1) 50%, black) 100%);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--c2) 45%, transparent), 0 0 10px color-mix(in srgb, var(--c2) 55%, transparent);
}
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.live i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.live.hot { color: var(--go-2); }
.live.hot i { background: var(--go-2); box-shadow: 0 0 0 0 rgba(75, 227, 148, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(75, 227, 148, 0); } 100% { box-shadow: 0 0 0 0 rgba(75, 227, 148, 0); } }

/* --- view toggle --- */
.view-toggle { display: inline-flex; gap: 2px; padding: 4px; border-radius: 12px; background: rgba(19, 21, 31, .72); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.vt-btn { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; padding: 7px 12px; border-radius: 9px; cursor: pointer; }
.vt-btn:hover { color: var(--text); }
.vt-btn.on { background: var(--panel-2); color: var(--text); }
.vt-btn:disabled { opacity: .4; cursor: not-allowed; }
.vt-icon { width: 14px; height: 14px; display: inline-block; position: relative; }
.i-galaxy { border-radius: 50%; border: 2px solid currentColor; border-left-color: transparent; border-right-color: transparent; transform: rotate(-30deg); }
.i-galaxy::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: currentColor; }
.i-list { background: linear-gradient(currentColor 0 0) 0 1px / 14px 2px no-repeat, linear-gradient(currentColor 0 0) 0 6px / 14px 2px no-repeat, linear-gradient(currentColor 0 0) 0 11px / 14px 2px no-repeat; }

/* --- the galaxy --- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
body.galaxy-on { overflow: hidden; }
body.galaxy-on .view { max-width: none; padding: 0; }
.galaxy { position: fixed; inset: 60px 0 0 0; overflow: hidden; background: #05060c; outline: none; user-select: none; -webkit-user-select: none; }
.galaxy::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 150px; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(5, 6, 12, .7), rgba(5, 6, 12, 0)); }
.galaxy-hud { z-index: 2; }
.galaxy-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.galaxy-canvas:active { cursor: grabbing; }
.galaxy-labels { position: absolute; inset: 0; pointer-events: none; transition: opacity .4s; }
.planet-label, .sector-label { position: absolute; left: 0; top: 0; will-change: transform; }
.planet-label {
    pointer-events: auto; cursor: pointer; border: 0; background: rgba(8, 10, 20, .42); color: #e9ebf7;
    display: inline-flex; align-items: center; gap: 7px; padding: 3px 9px; border-radius: 99px;
    font: 600 12px/1.3 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; letter-spacing: .01em;
    white-space: nowrap; backdrop-filter: blur(6px); box-shadow: 0 0 0 1px rgba(255,255,255,.07);
    transition: background .2s, box-shadow .2s, color .2s;
}
.planet-label:hover, .planet-label.hover { background: rgba(20, 24, 44, .78); box-shadow: 0 0 0 1px rgba(255,255,255,.22); }
.planet-label.selected { background: rgba(124, 92, 255, .32); box-shadow: 0 0 0 1px rgba(157, 133, 255, .7); color: #fff; }
.pl-live { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.pl-live.hot { color: var(--go-2); }
.pl-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--go-2); box-shadow: 0 0 8px var(--go-2); }
.sector-label { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; }
.sector-name { font: 800 13px/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: .32em; text-transform: uppercase; color: rgba(222, 226, 255, .78); text-shadow: 0 0 18px rgba(124, 92, 255, .8), 0 1px 2px #000; white-space: nowrap; }
.sector-count { font: 600 10px/1 ui-sans-serif, system-ui, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: rgba(170, 176, 214, .55); }
.galaxy-reticle { position: absolute; left: 0; top: 0; width: 40px; height: 40px; opacity: 0; transition: opacity .25s, width .2s, height .2s; border-radius: 50%; }
.galaxy-reticle.on { opacity: .75; }
.galaxy-reticle.on.locked { opacity: 1; }
.galaxy-reticle { border: 1.5px solid rgba(214, 205, 255, .55); box-shadow: 0 0 24px rgba(124, 92, 255, .35), inset 0 0 24px rgba(124, 92, 255, .2); }
.galaxy-reticle span { position: absolute; background: rgba(230, 224, 255, .95); border-radius: 2px; }
.galaxy-reticle span:nth-child(1) { left: 50%; top: -7px; width: 2px; height: 10px; translate: -50% 0; }
.galaxy-reticle span:nth-child(2) { left: 50%; bottom: -7px; width: 2px; height: 10px; translate: -50% 0; }
.galaxy-reticle span:nth-child(3) { top: 50%; left: -7px; height: 2px; width: 10px; translate: 0 -50%; }
.galaxy-reticle span:nth-child(4) { top: 50%; right: -7px; height: 2px; width: 10px; translate: 0 -50%; }
.galaxy-hud { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 26px; pointer-events: none; }
.galaxy-hud > * { pointer-events: auto; }
.galaxy-title h1 { font-size: 26px; font-weight: 800; letter-spacing: -.01em; text-shadow: 0 2px 20px rgba(0,0,0,.6); }
.galaxy-title p { margin: 2px 0 0; color: rgba(200, 205, 235, .7); font-size: 13px; font-weight: 600; letter-spacing: .02em; }
.galaxy-toolbar { display: flex; align-items: center; gap: 10px; }
.galaxy-search { position: relative; }
.galaxy-search input {
    width: 250px; padding: 10px 36px 10px 14px; border-radius: 12px; color: var(--text);
    background: rgba(19, 21, 31, .72); border: 1px solid var(--line); backdrop-filter: blur(10px); transition: border-color .15s, width .2s;
}
.galaxy-search input:focus { outline: none; border-color: var(--accent); width: 290px; }
.galaxy-search kbd { position: absolute; right: 10px; top: 50%; translate: 0 -50%; font: 700 11px/1 ui-monospace, monospace; color: var(--faint); border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; pointer-events: none; }
.galaxy-search input:focus + kbd { display: none; }
.galaxy-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; list-style: none; margin: 0; padding: 6px; border-radius: 12px; background: rgba(16, 18, 30, .92); border: 1px solid var(--line); backdrop-filter: blur(14px); box-shadow: var(--shadow); z-index: 3; }
.galaxy-suggest li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.galaxy-suggest li[aria-selected="true"], .galaxy-suggest li:hover { background: var(--panel-2); }
.sg-title { font-weight: 700; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sg-sector { color: var(--faint); font-size: 12px; white-space: nowrap; }
.sg-empty { color: var(--muted); cursor: default !important; }

/* the glass card */
.planet-card {
    position: absolute; right: 22px; top: 84px; width: min(380px, calc(100% - 44px)); max-height: calc(100% - 110px); overflow: auto;
    border-radius: 20px; background: linear-gradient(160deg, rgba(40, 44, 72, .55), rgba(16, 18, 32, .62));
    border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 24px 60px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255,255,255,.08);
    backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3);
    animation: card-in .45s cubic-bezier(.2, .8, .2, 1);
}
@keyframes card-in { from { opacity: 0; translate: 24px 0; } }
.pc { position: relative; }
.pc-thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h) 60% 42%), hsl(calc(var(--h) + 40) 70% 30%)); }
.pc-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pc-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(16, 18, 32, .65)); }
.pc-close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(10, 12, 22, .6); color: #fff; font-size: 20px; line-height: 1; backdrop-filter: blur(6px); }
.pc-close:hover { background: rgba(10, 12, 22, .85); }
.pc-close:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.pc-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 10px; }
.pc-kicker { display: flex; align-items: center; gap: 8px; color: rgba(200, 205, 235, .75); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.pc-kicker .swatch { width: 12px; height: 12px; }
.pc-body h2 { font-size: 26px; line-height: 1.1; }
.pc-badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pc-desc { margin: 0; color: #c3c7dc; font-size: 14px; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.pc-rooms { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pc-rooms li { display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 12px; border-radius: 10px; background: rgba(10, 12, 22, .45); border: 1px solid rgba(255,255,255,.06); }
.pc-room-name { flex: 1; min-width: 0; font-weight: 600; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-room-count { color: var(--muted); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pc-actions { display: flex; gap: 10px; margin-top: 6px; }
.pc-actions .btn { flex: 1; }
.pc-actions .btn.ghost { background: rgba(255,255,255,.08); }
.pc-actions .btn.ghost:hover { background: rgba(255,255,255,.14); }

.minimap { position: absolute; left: 22px; bottom: 22px; width: 168px; height: 168px; border-radius: 50%; cursor: crosshair; background: rgba(10, 12, 22, .45); backdrop-filter: blur(8px); box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.4); }
.galaxy-hints { position: absolute; left: 50%; bottom: 18px; translate: -50% 0; display: flex; gap: 16px; padding: 8px 16px; border-radius: 99px; background: rgba(10, 12, 22, .45); backdrop-filter: blur(8px); color: rgba(190, 196, 225, .7); font-size: 12px; white-space: nowrap; pointer-events: none; }
.galaxy-hints b { color: #e6e8f5; font-weight: 700; }
.galaxy[data-intro] .galaxy-hud, .galaxy[data-intro] .minimap, .galaxy[data-intro] .galaxy-hints { opacity: 0; }
.galaxy-hud, .minimap, .galaxy-hints { transition: opacity .8s; }

@media (max-width: 860px) {
    .galaxy-hud { flex-direction: column; padding: 14px 16px; }
    .galaxy-title h1 { font-size: 20px; }
    .galaxy-search input, .galaxy-search input:focus { width: 100%; }
    .galaxy-toolbar { width: 100%; }
    .galaxy-search { flex: 1; }
    .planet-card { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; max-height: 58%; }
    .pc-thumb { display: none; }
    .minimap { width: 104px; height: 104px; left: 12px; bottom: 12px; }
    .galaxy[data-selected] .minimap { display: none; }
    .galaxy-hints { display: none; }
}

@media (max-width: 860px) {
    .auth { grid-template-columns: 1fr; min-height: 0; }
    .auth-art { display: none; }
    .auth-card { margin: 0 auto; width: 100%; }
    .game-hero { grid-template-columns: 1fr; }
    .who { display: none; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .room { flex-wrap: wrap; }
}
@media (max-width: 480px) {
    .topnav { display: none !important; }
    .topbar { gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
