/* ==========================================================================
   webGameUniverse design system v3: deep space
   --------------------------------------------------------------------------
   Black space. Light blue for action and text accents. Deep purple for
   surfaces. Vivid ultraviolet for energy (glows, active states, XP).
   Star-gold only for XP / achievements / stars. No gradient text or buttons.

   Frames are chamfered HUD panels: clip-path trims the corners and four tiny
   gradients draw the diagonal edge. To make a new framed component, add its
   selector to the FRAME GROUP below and set --fill / --edge / --cut.
   ========================================================================== */

@font-face { font-family: 'Orbitron'; src: url('../fonts/Orbitron-Variable.woff2') format('woff2'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Inter'; src: url('../fonts/Inter-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

@property --edge { syntax: '<color>'; inherits: true; initial-value: #3a2475; }

:root {
  /* space */
  --bg: #03040a;
  --bg-2: #06070f;
  --panel: #0a0b1a;
  --panel-2: #10112a;
  --panel-3: #181538;

  /* the three colours */
  --blue: #7fd8ff;          /* light blue: actions, links, accents */
  --blue-hi: #bfeaff;
  --blue-dim: #3d8fb3;
  --violet: #8b4dff;        /* ultraviolet: energy, glow, active */
  --violet-hi: #a875ff;
  --purple: #2a1659;        /* dark purple: fills */
  --purple-deep: #1a0f3d;
  --purple-edge: #3a2475;   /* dark purple: borders */
  --gold: #ffd24a;          /* XP / achievements / stars only */

  --mint: #5fffc0;
  --red: #ff6b81;
  --amber: #ffd24a;
  --pink: #ff6bd5;          /* tiny glints only */
  --cyan: var(--blue);
  --lime: #b6ff5a;

  --line: rgba(127, 216, 255, .13);
  --line-2: rgba(139, 77, 255, .42);
  --text: #e9ecff;
  --muted: #a3a9d4;
  --faint: #8187b3;

  --glow-v: 0 0 24px -4px rgba(139, 77, 255, .65);
  --glow-b: 0 0 22px -4px rgba(127, 216, 255, .55);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Orbitron', 'Inter', system-ui, sans-serif;
  --maxw: 1240px;
  --header-h: 64px;
  --r: 10px;
  --r-sm: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background:
    linear-gradient(to bottom, rgba(3, 4, 10, 0.76), rgba(3, 4, 10, 0.88) 60%, rgba(3, 4, 10, 0.95)),
    radial-gradient(900px 520px at 8% -8%, rgba(139, 77, 255, .18), transparent 62%),
    radial-gradient(800px 460px at 100% 2%, rgba(127, 216, 255, .12), transparent 60%),
    url('/assets/img/bg/space-bg.webp') center top / cover no-repeat fixed,
    var(--bg);
  background-attachment: fixed;
  color: var(--text); font: 400 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
/* static star dust under everything; stars.js adds a drifting canvas on top */
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -2; opacity: .8;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff, transparent), radial-gradient(1px 1px at 27% 72%, #bfeaff, transparent),
    radial-gradient(1.5px 1.5px at 41% 33%, #fff, transparent), radial-gradient(1px 1px at 56% 88%, #a875ff, transparent),
    radial-gradient(1px 1px at 68% 14%, #fff, transparent), radial-gradient(1.5px 1.5px at 79% 61%, #bfeaff, transparent),
    radial-gradient(1px 1px at 91% 38%, #fff, transparent), radial-gradient(1px 1px at 6% 52%, #bfeaff, transparent),
    radial-gradient(1px 1px at 34% 8%, #a875ff, transparent), radial-gradient(1px 1px at 62% 47%, #fff, transparent),
    radial-gradient(1px 1px at 84% 92%, #fff, transparent), radial-gradient(1px 1px at 18% 94%, #fff, transparent);
  background-size: 520px 520px;
}
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
body.playing #stars { display: none; }
img, svg { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-hi); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; }
h1, h2 { font-family: var(--display); letter-spacing: .02em; }
p { margin: 0; }
code { font: 500 .88em ui-monospace, 'Cascadia Code', Consolas, monospace; background: var(--panel-2); padding: .12em .4em; border-radius: 4px; color: var(--gold); }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
::selection { background: rgba(139, 77, 255, .5); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .85rem; }
.center { text-align: center; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--blue); color: #021018; padding: .6rem 1rem; font-weight: 700; z-index: 200; }
.skip:focus { top: 10px; text-decoration: none; }
.glow-text { color: var(--blue); text-shadow: 0 0 18px rgba(127, 216, 255, .55); }
.grad-text { color: var(--blue); text-shadow: 0 0 18px rgba(127, 216, 255, .5); }   /* legacy name, solid colour now */

/* icons from /assets/img/icons.svg */
.i { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.i-lg { width: 1.6em; height: 1.6em; }

/* ============================ FRAME GROUP =================================
   Chamfered corners + 1px edge. Straight edges come from the border, the four
   cut corners are drawn by the gradients. Everything here shares one recipe.  */
.btn, .panel, .stat, .gcard, .challenge, .modal, .toast, .menu, .spotlight, .cabinet,
.table-wrap, .bdg, .gstat, .chip, .pill, .userchip, .empty, .guestbar, .faq details,
.kv > div, .ach, .bar-frame, .tile {
  --cut: 10px;
  --edge: var(--purple-edge);
  --fill: var(--panel);
  border: 1px solid var(--edge);
  background-color: var(--fill);
  background-image:
    linear-gradient(to bottom right, transparent 50%, var(--edge) 50%, var(--edge) calc(50% + 1.3px), transparent calc(50% + 1.3px)),
    linear-gradient(to bottom left, transparent 50%, var(--edge) 50%, var(--edge) calc(50% + 1.3px), transparent calc(50% + 1.3px)),
    linear-gradient(to top left, transparent 50%, var(--edge) 50%, var(--edge) calc(50% + 1.3px), transparent calc(50% + 1.3px)),
    linear-gradient(to top right, transparent 50%, var(--edge) 50%, var(--edge) calc(50% + 1.3px), transparent calc(50% + 1.3px));
  background-size: var(--cut) var(--cut);
  background-position: left top, right top, right bottom, left bottom;
  background-repeat: no-repeat;
  background-origin: border-box;
  clip-path: polygon(var(--cut) 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, var(--cut) 100%, 0 calc(100% - var(--cut)), 0 var(--cut));
  transition: --edge .18s, background-color .18s, box-shadow .2s, transform .15s;
}

/* ---------------------------------------------------------------- layout -- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1720px; }
main { flex: 1; width: 100%; overflow-x: clip; }
.section { padding: 34px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 18px; flex-wrap: wrap; }
.section-head h2 { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .1em; padding-left: 14px; position: relative; }
.section-head h2::before { content: ''; position: absolute; left: 0; top: 50%; width: 4px; height: 1.1em; transform: translateY(-50%); background: var(--violet); box-shadow: var(--glow-v); }
.section-head p { color: var(--muted); font-size: .9rem; margin-top: 4px; padding-left: 14px; }
.section-head a.more { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.stack { display: grid; gap: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grid { display: grid; gap: 18px; }
.grid-games { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------------------------------------------------------------- topbar -- */
.topbar {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(3, 4, 10, .78); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--purple-edge);
  box-shadow: 0 1px 0 rgba(127, 216, 255, .06), 0 10px 30px -18px rgba(139, 77, 255, .5);
}
.topbar-inner { max-width: var(--maxw); margin: 0 auto; height: 100%; padding: 0 20px; display: flex; align-items: center; gap: 26px; }
.topbar-wide .topbar-inner { max-width: 1720px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand-mark { height: 38px; width: auto; image-rendering: pixelated; filter: drop-shadow(0 0 8px rgba(139, 77, 255, .6)); transition: transform .6s; }
.brand:hover .brand-mark { transform: rotate(18deg) scale(1.06); }
.brand-word { height: 21px; width: auto; image-rendering: pixelated; }
.brand-sm .brand-mark { height: 30px; } .brand-sm .brand-word { height: 17px; }
.nav { display: flex; gap: 2px; margin-right: auto; }
.nav a { position: relative; color: var(--muted); font: 600 .78rem var(--display); letter-spacing: .1em; text-transform: uppercase; padding: .55rem .95rem; transition: color .15s; }
.nav a::after { content: ''; position: absolute; left: .95rem; right: .95rem; bottom: 2px; height: 2px; background: var(--violet); box-shadow: var(--glow-v); transform: scaleX(0); transition: transform .2s; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav a:hover::after, .nav a[aria-current='page']::after { transform: scaleX(1); }
.nav a[aria-current='page'] { color: var(--blue-hi); }
.nav a.nav-tools {
  margin-left: 0.6rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  border-radius: 6px;
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.4);
  background: rgba(56, 189, 248, 0.08);
  padding: 0.35rem 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  align-self: center;
  transition: all 0.15s ease;
}
.nav a.nav-tools::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
}
.nav a.nav-tools::after { display: none; }
.nav a.nav-tools:hover, .nav a.nav-tools:focus-visible {
  color: #ffffff;
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.2);
  transform: translateY(-1px);
}
.nav a.nav-tools[aria-current='page'] {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.25);
  border-color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}
.hud { display: flex; align-items: center; gap: 10px; }
.burger { display: none; width: 42px; height: 42px; background: transparent; border: 1px solid var(--purple-edge); color: var(--blue); cursor: pointer; padding: 0; place-items: center; }
.burger .i { width: 22px; height: 22px; }

.usermenu { position: relative; }
.userchip { --cut: 8px; --fill: var(--panel); display: flex; align-items: center; gap: 10px; color: var(--text); padding: 4px 12px 4px 6px; cursor: pointer; font: inherit; }
.userchip:hover { --edge: var(--blue); box-shadow: inset 0 0 14px rgba(127, 216, 255, .15); }
.userchip-meta { display: grid; gap: 4px; min-width: 70px; max-width: 130px; text-align: left; }
.userchip-name { font-size: .8rem; font-weight: 600; line-height: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lvl { font: 800 .7rem var(--display); color: #060312; background: var(--violet-hi); padding: .25rem .5rem; clip-path: polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%); letter-spacing: .06em; }
.menu { --cut: 10px; --edge: var(--violet); --fill: var(--panel); position: absolute; right: 0; top: calc(100% + 10px); min-width: 230px; padding: 6px; z-index: 60; filter: none; box-shadow: none; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: .6rem .8rem; border: 0; background: none; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
.menu a:hover, .menu button:hover { background: rgba(139, 77, 255, .18); color: var(--blue-hi); text-decoration: none; }
.menu-head { padding: .6rem .8rem .7rem; border-bottom: 1px solid var(--purple-edge); margin-bottom: 4px; display: grid; gap: 2px; }
.menu-head span { color: var(--muted); font-size: .8rem; }

/* ------------------------------------------------------------- notices ---- */
.notice { display: flex; align-items: center; justify-content: center; gap: 12px; padding: .5rem 1rem; font-size: .86rem; background: rgba(127, 216, 255, .07); border-bottom: 1px solid rgba(127, 216, 255, .22); }
.notice-new { background: rgba(95, 255, 192, .07); border-color: rgba(95, 255, 192, .25); }
.notice-warn { background: rgba(255, 210, 74, .08); border-color: rgba(255, 210, 74, .28); }
.notice-x { background: none; border: 0; color: var(--muted); font-size: 1.2rem; cursor: pointer; line-height: 1; }

/* -------------------------------------------------------------- buttons --- */
.btn {
  --cut: 8px; --fill: var(--purple-deep); --edge: var(--purple-edge);
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .72rem 1.3rem; color: var(--blue-hi);
  font: 700 .78rem var(--display); letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer; text-decoration: none !important; white-space: nowrap;
}
.btn:hover { --edge: var(--violet-hi); --fill: var(--purple); color: #fff; box-shadow: inset 0 0 18px rgba(139, 77, 255, .45); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled='true'] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-primary { --fill: var(--blue); --edge: var(--blue-hi); color: #021018; }
.btn-primary:hover { --fill: var(--blue-hi); --edge: #fff; color: #021018; box-shadow: inset 0 0 20px rgba(255, 255, 255, .5), 0 0 0 1px var(--blue-hi); }
.btn-ghost { --fill: transparent; --edge: var(--line-2); color: var(--blue); }
.btn-ghost:hover { --fill: rgba(139, 77, 255, .16); }
.btn-danger { --fill: rgba(255, 107, 129, .1); --edge: rgba(255, 107, 129, .55); color: #ff9aa9; }
.btn-danger:hover { --fill: rgba(255, 107, 129, .22); --edge: var(--red); box-shadow: inset 0 0 18px rgba(255, 107, 129, .3); color: #fff; }
.btn-sm { padding: .48rem .9rem; font-size: .68rem; --cut: 6px; }
.btn-lg { padding: 1rem 1.9rem; font-size: .88rem; --cut: 11px; }
.btn-block { width: 100%; }
.btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ------------------------------------------------------ badges and chips --- */
.badge { display: inline-block; font: 700 .62rem var(--display); letter-spacing: .1em; text-transform: uppercase; padding: .28rem .55rem; background: rgba(3, 4, 10, .82); border: 1px solid var(--purple-edge); color: var(--blue-hi); clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); backdrop-filter: blur(4px); }
.badge-status { color: var(--gold); border-color: rgba(255, 210, 74, .5); }
.chip { --cut: 5px; --fill: rgba(139, 77, 255, .14); --edge: rgba(139, 77, 255, .4); display: inline-flex; align-items: center; gap: .35rem; font: 600 .72rem var(--font); padding: .26rem .65rem; color: #cdbcff; }
.chip:hover { text-decoration: none; }
.chip-amber { --fill: rgba(255, 210, 74, .1); --edge: rgba(255, 210, 74, .4); color: var(--gold); }
.chip-cyan { --fill: rgba(127, 216, 255, .1); --edge: rgba(127, 216, 255, .4); color: var(--blue); }
.chip-violet { --fill: rgba(139, 77, 255, .18); --edge: rgba(139, 77, 255, .5); color: #cdbcff; }
.chip-mint { --fill: rgba(95, 255, 192, .1); --edge: rgba(95, 255, 192, .4); color: var(--mint); }
.chip-red { --fill: rgba(255, 107, 129, .1); --edge: rgba(255, 107, 129, .4); color: #ff9aa9; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .72rem; color: var(--muted); border: 1px solid var(--purple-edge); padding: .15rem .55rem; }
.tag:hover { color: var(--blue-hi); border-color: var(--blue-dim); text-decoration: none; }
.lfg-pulse-badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: rgba(30, 41, 59, 0.7); border: 1px solid rgba(88, 166, 255, 0.4); font: 700 0.76rem var(--display); color: #79c0ff; text-transform: uppercase; letter-spacing: 0.08em; }
.lfg-pulse-badge:hover { text-decoration: none; border-color: #58a6ff; background: rgba(56, 139, 253, 0.2); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: #3fb950; box-shadow: 0 0 8px #3fb950; animation: wgu-pulse 2s infinite; }
@keyframes wgu-pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(1.25); } 100% { opacity: 1; transform: scale(1); } }


/* ----------------------------------------------------------- avatar + xp --- */
.avatar { --c: var(--blue); display: inline-grid; place-items: center; width: 44px; height: 44px; font-size: 1.3rem; flex: none;
  background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--c) 30%, #12102a), #080714);
  border: 2px solid var(--c); box-shadow: 0 0 14px -3px var(--c);
  clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%); }
.av-sm { width: 30px; height: 30px; font-size: .9rem; border-width: 1.5px; }
.av-lg { width: 92px; height: 92px; font-size: 2.8rem; }
.av-xl { width: 120px; height: 120px; font-size: 3.6rem; }
.av-cyan { --c: var(--blue); } .av-pink { --c: var(--pink); } .av-amber { --c: var(--gold); } .av-mint { --c: var(--mint); }
.av-violet { --c: var(--violet-hi); } .av-red { --c: var(--red); } .av-blue { --c: #6aa5ff; } .av-lime { --c: var(--lime); }
.xpbar { display: block; height: 8px; background: rgba(139, 77, 255, .16); overflow: hidden; position: relative; clip-path: polygon(4px 0, 100% 0, calc(100% - 4px) 100%, 0 100%); }
.xpbar i { display: block; height: 100%; background: var(--violet); box-shadow: 0 0 12px var(--violet); transition: width .5s cubic-bezier(.2, .8, .2, 1);
  background-image: repeating-linear-gradient(90deg, transparent 0 9px, rgba(3, 4, 10, .55) 9px 11px); }
.xpbar-sm { height: 4px; } .xpbar-lg { height: 12px; }
.xpbar-done i { background-color: var(--mint); box-shadow: 0 0 12px var(--mint); }
.stars { display: inline-flex; gap: 1px; font-size: .8rem; }
.star { color: #2d2a55; }
.star.on { color: var(--gold); }

/* ---------------------------------------------------------------- panels --- */
.panel { --cut: 14px; --fill: linear-gradient(180deg, var(--panel), var(--bg-2)); padding: 22px; background-color: var(--panel); }
.panel h3 { font: 700 .82rem var(--display); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; color: var(--blue-hi); }
.panel-flush { padding: 0; overflow: hidden; }
.stat { --cut: 9px; padding: 16px 18px; }
.stat b { display: block; font: 800 1.55rem var(--display); color: #fff; }
.stat span { color: var(--muted); font-size: .8rem; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }

/* ----------------------------------------------------------------- cover --- */
.cover { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, hsl(var(--h) 55% 16%), hsl(calc(var(--h) + 50) 60% 8%)); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cover-mark { position: absolute; inset: 0; display: none; place-items: center; font: 900 clamp(2.5rem, 8vw, 4.5rem) var(--display); color: hsl(var(--h) 80% 70% / .3); text-shadow: 0 0 40px hsl(var(--h) 90% 60% / .5); }
.cover.no-img .cover-mark { display: grid; }
.cover.no-img::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, hsl(calc(var(--h) + 40) 90% 60% / .22), transparent 55%); }

/* ------------------------------------------------------------ game cards --- */
.gcard { --cut: 14px; position: relative; display: flex; flex-direction: column; overflow: hidden; }
.gcard:hover { --edge: var(--blue); transform: translateY(-4px); box-shadow: inset 0 0 28px rgba(139, 77, 255, .28); }
.gcard-cover { border-bottom: 1px solid var(--purple-edge); }
.gcard-cover img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.gcard:hover .gcard-cover img { transform: scale(1.06); }
.gcard-badges { position: absolute; top: 12px; left: 16px; display: flex; gap: 6px; }
.gcard-body { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.gcard h3 { font: 700 1rem var(--font); }
.gcard-link { color: var(--text); }
.gcard-link:hover { text-decoration: none; color: var(--blue-hi); }
.gcard-link::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.gcard-pitch { color: var(--muted); font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em; }
.gcard-foot { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 8px; font-size: .78rem; color: var(--muted); flex-wrap: wrap; }
.gcard-foot .meta-best { color: var(--gold); font-weight: 700; }
.gcard-foot .meta-ach { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }
.gcard-foot .meta-ach .i { color: var(--gold); width: 1em; height: 1em; }
.fav { position: absolute; top: 10px; right: 14px; z-index: 2; width: 34px; height: 34px; border: 1px solid var(--purple-edge); background: rgba(3, 4, 10, .72); color: #7a7fae; cursor: pointer; backdrop-filter: blur(4px); display: grid; place-items: center; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); transition: color .15s, transform .15s; }
.fav .i { width: 17px; height: 17px; }
.fav:hover { color: var(--pink); transform: scale(1.1); }
.fav.on { color: var(--pink); border-color: var(--pink); filter: drop-shadow(0 0 6px var(--pink)); }
.fav.on .i { fill: currentColor; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 290px); gap: 16px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--purple-edge) transparent; }
.rail > * { scroll-snap-align: start; }

/* ------------------------------------------------------------------ hero --- */
.hero { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; padding: 60px 0 40px; isolation: isolate; }
.hero-visual { position: relative; min-height: 470px; }
.hero-galaxy { position: absolute; z-index: -1; right: calc(min(330px, 70%) - 56px); top: 70px; width: clamp(302.4px, 36.72vw, 475.2px); height: 450px; image-rendering: pixelated; animation: float 9s ease-in-out infinite; filter: drop-shadow(0 0 46px rgba(139, 77, 255, .55)); pointer-events: none; }
.hero-featured { position: relative; margin-left: auto; width: min(330px, 70%); display: grid; gap: 14px; }
.hero-featured .spotlight { position: relative; width: 100%; }
.hero-lfg-link { flex-direction: column; gap: 0; padding: 0; min-height: 152px; white-space: normal; letter-spacing: .04em; text-align: center; }
.hero-lfg-link img { display: block; flex: none; width: 100%; height: auto; }
.hero-lfg-link > span { font-size: .78rem; padding: 6px 12px 10px; }
.hero-lfg-link { position: relative; isolation: isolate; --fill: #080808; --edge: #a62e25; color: #fff; text-shadow: 0 1px 5px #000; }
.hero-lfg-link::before {
  content: ''; position: absolute; inset: 1px; z-index: -1; pointer-events: none;
  background: #080808;
  clip-path: polygon(calc(var(--cut) - 1px) 0, calc(100% - var(--cut) + 1px) 0, 100% calc(var(--cut) - 1px), 100% calc(100% - var(--cut) + 1px), calc(100% - var(--cut) + 1px) 100%, calc(var(--cut) - 1px) 100%, 0 calc(100% - var(--cut) + 1px), 0 calc(var(--cut) - 1px));
}
.hero-lfg-link:hover, .hero-lfg-link:focus-visible {
  --fill: #080808; --edge: #ff4438; color: #fff;
  box-shadow: inset 0 0 16px rgba(255, 35, 20, .12), 0 0 22px -8px rgba(255, 35, 20, .45);
}

@keyframes drift { to { transform: rotate(360deg); } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-12px) rotate(1.5deg); } }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font: 700 .68rem var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); padding: .42rem .85rem; border: 1px solid rgba(127, 216, 255, .3); background: rgba(127, 216, 255, .06); clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%); }
.eyebrow::before { content: ''; width: 6px; height: 6px; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.7rem); font-weight: 900; line-height: 1.06; margin: 20px 0 16px; text-transform: uppercase; }
.hero p.lead { color: var(--muted); font-size: 1.1rem; max-width: 34rem; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.spotlight { --cut: 18px; --edge: var(--violet); position: relative; overflow: hidden; box-shadow: inset 0 0 30px rgba(139, 77, 255, .15); }
.spotlight .cover { aspect-ratio: 16 / 9; }
.spotlight-body { padding: 18px 22px 22px; display: grid; gap: 10px; }
.spotlight-body h2 { font-size: 1.2rem; }
.spotlight .badges { position: absolute; top: 14px; left: 20px; display: flex; gap: 6px; z-index: 2; }
.hero-stats { display: flex; gap: 30px; margin-top: 34px; flex-wrap: wrap; }
.hero-stats b { display: block; font: 800 1.5rem var(--display); color: #fff; }
.hero-stats span { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; }

/* ------------------------------------------------------------ challenges --- */
.challenge { --cut: 10px; padding: 16px; display: grid; gap: 8px; }
.challenge.done { --edge: rgba(95, 255, 192, .5); --fill: rgba(95, 255, 192, .05); }
.challenge-top { display: flex; justify-content: space-between; align-items: center; }
.challenge-xp { font: 700 .78rem var(--display); color: var(--gold); }
.challenge h4 { font-size: .96rem; }
.challenge p { color: var(--muted); font-size: .84rem; }
.challenge-foot { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text); }

/* ----------------------------------------------------------- forms/tabs ---- */
label { display: block; font-weight: 600; font-size: .8rem; margin-bottom: 6px; color: #cfd3f5; letter-spacing: .02em; }
.field { margin-bottom: 14px; }
.field small { display: block; color: var(--faint); margin-top: 5px; font-size: .78rem; }
input[type='text'], input[type='password'], input[type='search'], input[type='number'], input[type='email'], input[type='datetime-local'], textarea, select {
  width: 100%; padding: .7rem .9rem; background: var(--bg-2); color: var(--text); border: 1px solid var(--purple-edge); border-radius: 0; font: inherit;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); transition: border-color .15s, box-shadow .15s, background .15s;
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--blue); background: #080a1a; box-shadow: inset 0 0 14px rgba(127, 216, 255, .14); }
textarea { resize: vertical; min-height: 84px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--blue) 50%), linear-gradient(135deg, var(--blue) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 2.2rem; }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 500; }
.switch input { appearance: none; width: 46px; height: 24px; background: var(--panel-3); border: 1px solid var(--purple-edge); position: relative; cursor: pointer; flex: none; transition: background .2s, border-color .2s; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); }
.switch input::after { content: ''; position: absolute; top: 3px; left: 5px; width: 16px; height: 16px; background: #9aa0d4; transition: transform .2s, background .2s; }
.switch input:checked { background: var(--purple); border-color: var(--violet); }
.switch input:checked::after { transform: translateX(20px); background: var(--blue); box-shadow: 0 0 10px var(--blue); }
.form-error { color: #ff9aa9; background: rgba(255, 107, 129, .08); border: 1px solid rgba(255, 107, 129, .4); padding: .65rem .9rem; font-size: .88rem; margin-bottom: 14px; }
.form-ok { color: var(--mint); background: rgba(95, 255, 192, .07); border: 1px solid rgba(95, 255, 192, .35); padding: .65rem .9rem; font-size: .88rem; margin-bottom: 14px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--purple-edge); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; color: var(--muted); font: 700 .74rem var(--display); letter-spacing: .1em; text-transform: uppercase; padding: .85rem 1.1rem; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color .15s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected='true'] { color: var(--blue-hi); border-color: var(--violet); box-shadow: 0 8px 14px -10px var(--violet); }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--purple-edge); padding: 3px; gap: 2px; }
.seg button { background: none; border: 0; color: var(--muted); font: 700 .7rem var(--display); letter-spacing: .08em; text-transform: uppercase; padding: .45rem .9rem; cursor: pointer; }
.seg button[aria-pressed='true'] { background: var(--purple); color: var(--blue-hi); box-shadow: inset 0 0 0 1px var(--violet); }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pill { --cut: 6px; --fill: var(--panel); color: var(--muted); padding: .42rem .9rem; font: 600 .78rem var(--font); cursor: pointer; }
.pill:hover { --edge: var(--blue-dim); color: var(--text); }
.pill[aria-pressed='true'] { --fill: var(--purple); --edge: var(--violet); color: #fff; box-shadow: inset 0 0 12px rgba(139, 77, 255, .4); }

/* ----------------------------------------------------------------- table --- */
.table-wrap { --cut: 12px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font: 700 .66rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: .8rem 1rem; border-bottom: 1px solid var(--purple-edge); background: rgba(3, 4, 10, .5); white-space: nowrap; }
td { padding: .75rem 1rem; border-bottom: 1px solid rgba(139, 77, 255, .1); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: rgba(139, 77, 255, .08); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.rank { font: 800 .95rem var(--display); color: var(--muted); width: 56px; }
tr.me td { background: rgba(127, 216, 255, .07); }
.rank-1 { color: var(--gold); } .rank-2 { color: #d4d9ff; } .rank-3 { color: #ff9b6a; }
.who { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; }
.who .avatar { width: 32px; height: 32px; font-size: 1rem; border-width: 1.5px; }

/* ----------------------------------------------------------- toast/modal --- */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: grid; gap: 10px; width: min(360px, calc(100vw - 36px)); pointer-events: none; }
.toast { --cut: 10px; --fill: var(--panel-2); --edge: var(--violet); display: flex; align-items: center; gap: 12px; padding: .75rem 1rem; transform: translateY(14px); opacity: 0; transition: transform .28s cubic-bezier(.2, .8, .2, 1), opacity .28s, --edge .2s; pointer-events: auto; }
.toast.in { transform: none; opacity: 1; }
.toast-icon { display: grid; place-items: center; color: var(--blue); }
.toast-icon .i { width: 24px; height: 24px; }
.toast-body { display: grid; gap: 1px; font-size: .9rem; }
.toast-body small { color: var(--muted); font: 700 .62rem var(--display); letter-spacing: .12em; text-transform: uppercase; }
.toast-ach { --edge: var(--gold); } .toast-ach .toast-icon { color: var(--gold); }
.toast-level { --edge: var(--violet-hi); } .toast-level .toast-icon { color: var(--violet-hi); }
.toast-xp { --edge: var(--blue); }
.toast-warn { --edge: var(--red); } .toast-warn .toast-icon { color: var(--red); }
.modal-back { position: fixed; inset: 0; z-index: 250; background: rgba(2, 3, 8, .78); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; animation: fade .15s; }
.modal { --cut: 16px; --edge: var(--violet); width: min(480px, 100%); max-height: 90vh; overflow: auto; padding: 26px; }
.modal h2 { font-size: 1.05rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .08em; }
.modal-body { color: var(--muted); display: grid; gap: 12px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
@keyframes fade { from { opacity: 0; } }

/* ------------------------------------------------------------ skeletons ---- */
.skel { background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 37%, var(--panel) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; min-height: 90px; clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
.empty { --cut: 14px; --edge: var(--purple-edge); --fill: transparent; text-align: center; padding: 48px 20px; color: var(--muted); border-style: dashed; }
.empty h3 { color: var(--text); margin-bottom: 6px; }

/* ----------------------------------------------------------- catalogue ----- */
.toolbar { display: grid; gap: 14px; margin: 26px 0 22px; }
.searchbox { position: relative; flex: 1 1 260px; }
.searchbox input { padding-left: 2.8rem; }
.searchbox .i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--blue-dim); z-index: 1; pointer-events: none; }
.page-title { padding: 36px 0 0; }
.page-title h1 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); text-transform: uppercase; }
.page-title p { color: var(--muted); margin-top: 6px; }

/* -------------------------------------------------------------- game page -- */
.game-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 0 14px; }
.game-head h1 { font-size: clamp(1.2rem, 2.6vw, 1.8rem); text-transform: uppercase; }
.game-head .back { color: var(--muted); font-size: .85rem; display: inline-flex; align-items: center; gap: 4px; }
.game-head .back:hover { color: var(--blue-hi); }
/* theater: the stage takes the height of the window, not a slice of a column */
.stagewrap { --ratio: 1.7778; width: min(100%, max(640px, calc((100vh - var(--header-h) - 190px) * var(--ratio)))); margin: 0 auto; }
.stagewrap.fill { width: 100%; }
.cabinet { --cut: 16px; --edge: var(--violet); --fill: #02030a; box-shadow: inset 0 0 40px rgba(139, 77, 255, .12); }
.cabinet-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px 8px 22px; background: linear-gradient(180deg, var(--panel-2), var(--panel)); border-bottom: 1px solid var(--purple-edge); flex-wrap: wrap; }
.cabinet-bar .title { font: 700 .72rem var(--display); letter-spacing: .14em; color: var(--muted); margin-right: auto; text-transform: uppercase; }
.stage { position: relative; aspect-ratio: var(--aspect, 16 / 9); background: #000; width: 100%; }
.stagewrap.fill .stage { aspect-ratio: auto; height: calc(100vh - var(--header-h) - 190px); min-height: 420px; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.stage:fullscreen { aspect-ratio: auto; }
.stage-cover { position: absolute; inset: 0; display: grid; place-items: center; background: radial-gradient(circle at 50% 42%, rgba(139, 77, 255, .28), #02030a 68%); z-index: 2; text-align: center; padding: 20px; transition: opacity .35s; }
.stage-cover.gone { opacity: 0; pointer-events: none; }
.loader { width: 74px; height: 56px; margin: 0 auto 16px; background: url('/assets/img/brand/mark-192.png') center / contain no-repeat; image-rendering: pixelated; animation: spin 2.4s linear infinite; filter: drop-shadow(0 0 14px rgba(139, 77, 255, .8)); }
.guestbar { --cut: 10px; --edge: rgba(255, 210, 74, .45); --fill: rgba(255, 210, 74, .05); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 18px; margin-top: 14px; font-size: .88rem; }
.guestbar .btn { margin-left: auto; }
.dock { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; margin: 18px 0 44px; align-items: start; }
.dock .panel { padding: 0; overflow: hidden; }
.dock .tabs { margin: 0; padding: 0 8px; background: rgba(3, 4, 10, .5); }
.dock .tabpane { padding: 18px; display: grid; gap: 16px; }
body.cinema .topbar, body.cinema .footer, body.cinema #notices, body.cinema .game-head, body.cinema .dock, body.cinema .guestbar { display: none; }
body.cinema .stagewrap { width: min(100vw, max(640px, calc((100vh - 46px) * var(--ratio)))); }
body.cinema .container { max-width: none; padding: 0; }
body.cinema .cabinet { clip-path: none; border: 0; }
body.cinema .stagewrap.fill .stage { height: calc(100vh - 46px); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kv > div { --cut: 7px; --fill: var(--bg-2); padding: 10px 12px; }
.kv b { display: block; font: 800 1.1rem var(--display); color: #fff; }
.kv span { color: var(--muted); font-size: .74rem; }
.ach-list { display: grid; gap: 8px; list-style: none; padding: 0; margin: 0; }
.ach { --cut: 8px; --fill: var(--bg-2); display: flex; gap: 12px; align-items: center; padding: 10px 12px; }
.ach .ach-ico { color: #4a4f7a; display: grid; place-items: center; }
.ach .ach-ico .i { width: 22px; height: 22px; }
.ach.on { --edge: rgba(255, 210, 74, .5); --fill: rgba(255, 210, 74, .05); }
.ach.on .ach-ico { color: var(--gold); filter: drop-shadow(0 0 6px rgba(255, 210, 74, .6)); }
.ach b { display: block; font-size: .88rem; }
.ach small { color: var(--muted); }
.ach .xp { margin-left: auto; font: 700 .7rem var(--display); color: var(--gold); white-space: nowrap; }
.rate-row { display: flex; align-items: center; gap: 4px; }
.rate-row button { background: none; border: 0; font-size: 1.6rem; color: #2d2a55; cursor: pointer; padding: 0 2px; transition: transform .1s, color .1s; }
.rate-row button:hover { transform: scale(1.2); }
.rate-row button.on { color: var(--gold); }
.controls-list { margin: 0; padding-left: 1.1rem; color: var(--muted); font-size: .88rem; display: grid; gap: 3px; }

/* --------------------------------------------------------------- profile ---- */
.profile-head { --cut: 22px; --edge: var(--violet); display: flex; gap: 26px; align-items: center; padding: 28px; margin: 28px 0 22px; flex-wrap: wrap; position: relative; isolation: isolate; overflow: hidden; --fill: var(--panel); }
.profile-head::before { content: ''; position: absolute; inset: 0; z-index: -1; background: url('/assets/img/ui/nebula.webp') right center / cover no-repeat; opacity: .32; -webkit-mask-image: linear-gradient(to left, #000, transparent 75%); mask-image: linear-gradient(to left, #000, transparent 75%); }
.profile-head h1 { font-size: clamp(1.4rem, 3vw, 2rem); }
.profile-head .info { flex: 1 1 280px; min-width: 0; display: grid; gap: 8px; }
.profile-head .levelbox { flex: 1 1 260px; max-width: 360px; display: grid; gap: 6px; }
.profile-head .levelbox .big { font: 900 2.8rem/1 var(--display); color: var(--violet-hi); text-shadow: 0 0 22px rgba(139, 77, 255, .7); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.bdg { --cut: 9px; display: flex; gap: 12px; align-items: center; padding: 12px 14px; }
.bdg .ico { font-size: 1.7rem; }
.bdg b { display: block; font-size: .88rem; }
.bdg small { color: var(--muted); font-size: .76rem; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.feed li { display: flex; gap: 12px; align-items: baseline; padding: .6rem .2rem; border-bottom: 1px solid rgba(139, 77, 255, .1); font-size: .9rem; }
.feed time { margin-left: auto; color: var(--faint); font-size: .78rem; white-space: nowrap; }
.avatar-picker { display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px; }
.avatar-picker button { background: none; border: 0; padding: 2px; cursor: pointer; outline-offset: 0; }
.avatar-picker button[aria-pressed='true'] .avatar { box-shadow: 0 0 0 2px #fff, 0 0 18px var(--c); }
.avatar-picker .avatar { width: 100%; height: auto; aspect-ratio: 1; font-size: 1.1rem; }
.gstat { --cut: 10px; display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; }
.gstat:hover { --edge: var(--violet-hi); text-decoration: none; }
.gstat .cover { aspect-ratio: 1; }
.gstat h4 { font-size: .95rem; }
.gstat small { color: var(--muted); }
.recovery { font: 800 1.5rem var(--display); letter-spacing: .12em; text-align: center; padding: 18px; background: var(--bg-2); border: 1px dashed var(--gold); color: var(--gold); user-select: all; }

/* --------------------------------------------------------------- auth card -- */
.authwrap { min-height: calc(100vh - var(--header-h) - 160px); display: grid; place-items: center; padding: 40px 0; }
.authcard { width: min(440px, 100%); }
.authcard h1 { font-size: 1.5rem; text-align: center; margin-bottom: 4px; text-transform: uppercase; }
.authcard .sub { text-align: center; color: var(--muted); margin-bottom: 22px; }

/* ----------------------------------------------------------------- footer ---- */
.footer { margin-top: 40px; border-top: 1px solid var(--purple-edge); background: rgba(3, 4, 10, .7); position: relative; }
.footer::before { content: ''; position: absolute; left: 0; right: 0; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--violet), var(--blue), var(--violet), transparent); opacity: .6; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 28px 20px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.footer-inner p { margin-top: 8px; max-width: 28rem; }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font: 600 .72rem var(--display); letter-spacing: .1em; text-transform: uppercase; }
.footer-links a:hover { color: var(--blue-hi); text-decoration: none; }
.prose { max-width: 720px; margin: 0 auto; }
.prose h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); line-height: 1.15; margin: 14px 0 20px; text-transform: uppercase; }
.prose h2 { font-size: 1rem; margin: 30px 0 10px; color: var(--blue); text-transform: uppercase; letter-spacing: .1em; }
.prose p { color: #cbd0f0; margin-bottom: 14px; font-size: 1.03rem; }
.prose blockquote { margin: 22px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--violet); font: 600 .95rem var(--display); color: var(--gold); }
.faq details { --cut: 10px; padding: .9rem 1.1rem; margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: 10px; font-size: .95rem; }
.logo-banner { display: block; width: min(420px, 90%); margin: 0 auto 18px; image-rendering: pixelated; }

/* ------------------------------------------------------------ responsive ---- */
@media (max-width: 1020px) {
  .dock { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 34px; }
  .hero-visual { min-height: 0; }
  .hero-galaxy { display: none; }
  .hero-featured { position: relative; width: 100%; }
}
@media (max-width: 820px) {
  .burger { display: grid; }
  .topbar-inner { gap: 12px; }
  .nav { position: absolute; left: 0; right: 0; top: var(--header-h); flex-direction: column; background: rgba(3, 4, 10, .97); border-bottom: 1px solid var(--purple-edge); padding: 10px 16px 16px; display: none; }
  .nav-open .nav { display: flex; }
  .nav a.nav-tools { margin-left: 0; align-self: flex-start; }
  .nav a { padding: .9rem 1rem; }
  .hud { margin-left: auto; }
  .userchip-meta { display: none; }
  .userchip { padding-right: 8px; }
}
@media (max-width: 680px) {
  .hud .btn-primary { display: none; }
  .hud .chip { display: none; }
}
@media (max-width: 560px) {
  .container, .topbar-inner { padding: 0 14px; }
  .brand-word { height: 17px; } .brand-mark { height: 32px; }
  .grid-games { grid-template-columns: 1fr; }
  .profile-head { padding: 20px; gap: 16px; }
  .avatar-picker { grid-template-columns: repeat(4, 1fr); }
  .gstat { grid-template-columns: 48px 1fr; }
  .gstat > :last-child { grid-column: 1 / -1; }
  th, td { padding: .65rem .7rem; }
  .hide-sm { display: none; }
  .stagewrap { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .hero-galaxy { animation: none; }
}

