/* ==========================================================================
   Forge Pixel Studio — design system
   Direction: "forge floor" — soot base, molten ember accents, expanded
   industrial display type, monospace reserved for real data.
   ========================================================================== */

/* --- Tokens ------------------------------------------------------------- */

:root {
  /* palette: dark (default) */
  --bg:          #0b0a0c;
  --bg-deep:     #070609;
  --surface:     #131116;
  --surface-2:   #1a171e;
  --line:        rgba(255, 255, 255, .10);
  --line-strong: rgba(255, 255, 255, .20);
  --text:        #f5f2ef;
  --muted:       #a09aa6;

  --ember:       #ff4d14;
  --flare:       #ffa62b;
  --whitehot:    #ffe7c4;
  --steel:       #7ea6c9;
  --accent-ink:  var(--flare);   /* accent that stays legible at small sizes */
  --on-ember:    #1c0803;

  --shadow-s: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow-l: 0 32px 80px rgba(0, 0, 0, .55);
  --glow:     0 10px 40px rgba(255, 77, 20, .28);

  /* type */
  --display: "Archivo", "Arial Black", "Helvetica Neue", Helvetica, sans-serif;
  --body:    "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* metrics */
  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 44px);
  --band: clamp(76px, 9vw, 132px);
  --r-s: 6px;
  --r-m: 12px;
  --r-l: 20px;

  color-scheme: dark;
}

html[data-theme="light"] {
  --bg:          #ecece9;
  --bg-deep:     #e3e3df;
  --surface:     #ffffff;
  --surface-2:   #f6f6f3;
  --line:        rgba(18, 16, 20, .13);
  --line-strong: rgba(18, 16, 20, .28);
  --text:        #121014;
  --muted:       #56525b;

  --ember:       #e33e05;
  --flare:       #c96a00;
  --whitehot:    #8a5a12;
  --steel:       #3d6d95;
  --accent-ink:  #b83000;
  --on-ember:    #fff4ec;

  --shadow-s: 0 2px 10px rgba(30, 20, 10, .08);
  --shadow-l: 0 30px 70px rgba(40, 28, 16, .14);
  --glow:     0 10px 34px rgba(227, 62, 5, .18);

  color-scheme: light;
}

/* --- Base --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -.035em;
  line-height: .98;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }
p + p { margin-top: 1em; }

::selection { background: var(--ember); color: var(--on-ember); }

:focus-visible {
  outline: 2px solid var(--flare);
  outline-offset: 3px;
  border-radius: 3px;
}

.wrap {
  width: min(var(--wrap), 100% - (var(--gutter) * 2));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 999;
  padding: 12px 18px;
  background: var(--ember);
  color: var(--on-ember);
  font-family: var(--mono);
  font-size: .8rem;
  border-radius: var(--r-s);
  transition: top .18s;
}
.skip-link:focus { top: 16px; }

/* --- Utility type ------------------------------------------------------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
}
.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  flex: none;
  background: linear-gradient(90deg, var(--ember), var(--flare));
}

.lead {
  color: var(--muted);
  font-size: clamp(1.06rem, 1.5vw, 1.24rem);
  line-height: 1.55;
  max-width: 58ch;
}

.muted { color: var(--muted); }

/* --- Buttons ------------------------------------------------------------ */

.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 22px;
  background: var(--btn-bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  color: var(--text);
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
}
.btn:hover { transform: translateY(-2px); border-color: var(--flare); }

.btn-primary {
  --btn-bg: var(--ember);
  border-color: var(--ember);
  color: var(--on-ember);
  box-shadow: var(--glow);
}
.btn-primary:hover { --btn-bg: var(--flare); border-color: var(--flare); color: var(--on-ember); }

.btn-sm { min-height: 40px; padding: 0 14px; font-size: .7rem; }

.arw { transition: transform .18s; }
.btn:hover .arw { transform: translate(2px, -2px); }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Header ------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 108%;
  font-size: .98rem;
  letter-spacing: -.02em;
}
.brand img { width: 30px; height: 30px; flex: none; border-radius: 6px; box-shadow: var(--glow); }
.brand em { font-style: normal; color: var(--muted); font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 9px 12px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  border-radius: var(--r-s);
  transition: color .18s, background .18s;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--r-s);
  color: var(--text);
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.icon-btn:hover { border-color: var(--line-strong); background: var(--surface-2); }
.icon-btn svg { width: 17px; height: 17px; }

.nav-toggle { display: none; }
.theme-toggle .moon { display: none; }
html[data-theme="light"] .theme-toggle .sun { display: none; }
html[data-theme="light"] .theme-toggle .moon { display: block; }

/* --- Hero --------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(72px, 11vw, 146px) 0 clamp(56px, 7vw, 92px);
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

#forge {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(115% 78% at 46% 44%, transparent 0%, color-mix(in srgb, var(--bg) 70%, transparent) 52%, var(--bg) 100%),
    linear-gradient(180deg, var(--bg) 0%, transparent 20%, transparent 72%, var(--bg) 100%);
}

.hero-inner { display: grid; gap: 26px; justify-items: start; }

.hero h1 {
  font-size: clamp(3rem, 9.2vw, 7rem);
  font-weight: 900;
  font-stretch: 118%;
  line-height: .88;
  letter-spacing: -.045em;
  max-width: 14ch;
}
h1 .hot {
  background: linear-gradient(96deg, var(--whitehot) 0%, var(--flare) 40%, var(--ember) 86%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin: clamp(26px, 5vw, 54px) 0 0;
  border-top: 1px solid var(--line);
}
.facts div {
  flex: 1 1 180px;
  padding: 18px 22px 18px 0;
  border-right: 1px solid var(--line);
}
.facts div:last-child { border-right: 0; }
.facts dt {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  font-size: 1.65rem;
  letter-spacing: -.03em;
  line-height: 1.1;
}
.facts dd {
  margin: 5px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* --- Bands & section heads ---------------------------------------------- */

.band { padding: var(--band) 0; border-bottom: 1px solid var(--line); }
.band-alt { background: var(--bg-deep); }

.band-head {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(18px, 4vw, 60px);
  align-items: end;
  margin-bottom: clamp(34px, 5vw, 62px);
}
.band-head h2 {
  margin-top: 18px;
  font-size: clamp(2.1rem, 5.2vw, 3.9rem);
  font-weight: 900;
  font-stretch: 114%;
}
.band-head .lead { padding-bottom: 6px; }

.rule {
  position: relative;
  height: 1px;
  margin-bottom: clamp(26px, 4vw, 46px);
  background: var(--line);
}
.rule::before {
  content: "";
  position: absolute;
  left: 0;
  top: -1px;
  width: clamp(60px, 12vw, 130px);
  height: 3px;
  background: linear-gradient(90deg, var(--ember), var(--flare) 60%, transparent);
  box-shadow: var(--glow);
}

/* --- App catalog -------------------------------------------------------- */

.catalog { display: grid; gap: 18px; }

.item {
  position: relative;
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) minmax(0, 300px);
  gap: clamp(20px, 3vw, 42px);
  padding: clamp(24px, 3vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--tint, var(--ember));
}
.item:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-l);
}

.app-icon { width: 88px; height: 88px; border-radius: 22px; box-shadow: var(--shadow-s); }

.item h3 { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 900; font-stretch: 114%; }
.item .role {
  margin-top: 6px;
  color: var(--tint, var(--accent-ink));
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.item .desc { margin-top: 14px; color: var(--muted); max-width: 52ch; }

.spec {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
  margin: 22px 0 0;
  list-style: none;
}
.spec li {
  padding-right: 14px;
  margin-right: 14px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.spec li:last-child { border-right: 0; margin-right: 0; padding-right: 0; }
.spec b { color: var(--text); font-weight: 500; }

.item-side {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  padding-left: clamp(0px, 2vw, 32px);
  border-left: 1px solid var(--line);
}
.item-side .btn { justify-content: space-between; }

/* --- Games -------------------------------------------------------------- */

.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }

.game {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  overflow: hidden;
  transition: border-color .25s, transform .25s, box-shadow .25s;
}
.game:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: var(--shadow-l); }

.game-art {
  aspect-ratio: 16 / 9;
  background: var(--bg-deep);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.game-art svg {
  width: 100%;
  height: 100%;
  transition: transform .5s cubic-bezier(.2, .7, .2, 1);
}
.game:hover .game-art svg { transform: scale(1.035); }

.game-body { padding: clamp(20px, 2.4vw, 30px); }
.game-body h3 { font-size: clamp(1.15rem, 1.8vw, 1.5rem); font-weight: 800; }
.game-body p { margin-top: 10px; color: var(--muted); font-size: .96rem; }

.tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 10px;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}

/* --- Studio standards --------------------------------------------------- */

.standards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.std {
  padding: clamp(26px, 3.4vw, 46px);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.std .n { color: var(--muted); font-family: var(--mono); font-size: .66rem; letter-spacing: .18em; }
.std h3 { margin: 14px 0 10px; font-size: clamp(1.25rem, 2vw, 1.6rem); }
.std p { color: var(--muted); max-width: 44ch; }

/* --- Contact slab ------------------------------------------------------- */

.slab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: clamp(24px, 4vw, 60px);
  align-items: center;
  padding: clamp(32px, 5vw, 66px);
  background: var(--surface);
  background-image: radial-gradient(90% 150% at 100% 0%, color-mix(in srgb, var(--ember) 15%, transparent), transparent 62%);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
}
.slab h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 900; font-stretch: 114%; }
.slab p { margin-top: 14px; color: var(--muted); max-width: 46ch; }
.slab .stack { display: grid; gap: 10px; }

/* --- Footer ------------------------------------------------------------- */

footer { padding: 46px 0 58px; }
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 30px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.foot nav { display: flex; flex-wrap: wrap; gap: 20px; }
.foot a:hover { color: var(--text); }

/* --- Back to top -------------------------------------------------------- */

.back-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 70;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-s);
  color: var(--text);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.back-top.show { opacity: 1; transform: none; pointer-events: auto; }

/* --- Inner pages -------------------------------------------------------- */

.page-hero {
  padding: clamp(54px, 8vw, 100px) 0 clamp(40px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background-image: radial-gradient(70% 120% at 0% 0%, color-mix(in srgb, var(--ember) 13%, transparent), transparent 58%);
}
.page-hero h1 {
  margin-top: 16px;
  font-size: clamp(2.6rem, 6.4vw, 4.8rem);
  font-weight: 900;
  font-stretch: 116%;
}
.page-hero .lead { margin-top: 18px; }
.page-hero .actions { margin-top: 26px; }

.app-hero { display: flex; flex-wrap: wrap; gap: clamp(20px, 3vw, 38px); align-items: center; }
.app-hero .app-icon { width: 104px; height: 104px; border-radius: 26px; }

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.panel {
  padding: clamp(24px, 3vw, 40px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
}
.panel h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); }
.panel > p { margin-top: 14px; color: var(--muted); }

.checks { margin-top: 24px; list-style: none; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .62em;
  width: 13px;
  height: 3px;
  background: linear-gradient(90deg, var(--ember), var(--flare));
}

.datalist { margin: 20px 0 0; }
.datalist div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.datalist dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding-top: 2px;
}
.datalist dd { margin: 0; font-family: var(--mono); font-size: .8rem; text-align: right; }

.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: s; }
.step {
  position: relative;
  padding: clamp(24px, 3vw, 38px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  counter-increment: s;
}
.step::before {
  content: "STEP " counter(s, decimal-leading-zero);
  display: block;
  margin-bottom: 16px;
  color: var(--accent-ink);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .18em;
}
.step h3 { font-size: clamp(1.15rem, 1.9vw, 1.45rem); }
.step p { margin-top: 10px; color: var(--muted); font-size: .97rem; }

/* --- Policy pages ------------------------------------------------------- */

.policy { max-width: 76ch; }
.policy h2 {
  margin: 46px 0 14px;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-weight: 800;
  font-stretch: 108%;
  scroll-margin-top: 96px;
}
.policy h3 {
  margin: 26px 0 10px;
  font-family: var(--body);
  font-size: 1.02rem;
  font-weight: 600;
  font-stretch: normal;
  letter-spacing: 0;
  line-height: 1.4;
}
.policy p, .policy li { color: var(--muted); }
.policy a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.policy ul, .policy ol { margin: 14px 0; padding-left: 22px; display: grid; gap: 9px; }
.policy strong { color: var(--text); font-weight: 600; }
.policy .actions { margin-top: 46px; }

.notice {
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ember);
  border-radius: var(--r-m);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .74rem;
  line-height: 2;
}
.notice strong { color: var(--text); font-weight: 500; }

.toc {
  margin-top: 22px;
  padding: 22px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
}
.toc p {
  margin-bottom: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .66rem;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.toc ol {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 9px 26px;
  counter-reset: t;
}
.toc li { counter-increment: t; }
.toc a { color: var(--muted); font-size: .93rem; }
.toc a::before {
  content: counter(t, decimal-leading-zero) "  ";
  font-family: var(--mono);
  font-size: .7rem;
  color: var(--accent-ink);
  white-space: pre;
}
.toc a:hover { color: var(--text); }

/* --- 404 ---------------------------------------------------------------- */

.center { display: grid; justify-items: center; text-align: center; gap: 22px; }
.center .lead { margin-inline: auto; }

/* --- Reveal ------------------------------------------------------------- */

html.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1);
}
html.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* --- Responsive --------------------------------------------------------- */

@media (max-width: 1000px) {
  .item { grid-template-columns: 72px minmax(0, 1fr); }
  .app-icon { width: 72px; height: 72px; border-radius: 18px; }
  .item-side {
    grid-column: 1 / -1;
    flex-direction: row;
    flex-wrap: wrap;
    padding-left: 0;
    padding-top: 22px;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .band-head { grid-template-columns: 1fr; align-items: start; }
  .split { grid-template-columns: 1fr; }
  .slab { grid-template-columns: 1fr; align-items: start; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }

  .nav-toggle { display: grid; }
  .nav-links {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 14px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    transform: translateY(-145%);
    transition: transform .3s cubic-bezier(.2, .7, .2, 1);
  }
  .nav-links.open { transform: none; }
  .nav-links a { padding: 13px 4px; font-size: .8rem; }
  .nav-links .icon-btn { width: 100%; height: 46px; margin-top: 10px; }

  .games, .standards, .steps { grid-template-columns: 1fr; }
  .standards { border-left: 0; }
  .std { border-right: 0; }
  .facts div { flex-basis: 44%; border-right: 0; padding-right: 12px; }
  .item { grid-template-columns: 1fr; }
  .app-icon { width: 64px; height: 64px; border-radius: 16px; }
  .item-side .btn { flex: 1 1 100%; }
  .back-top { right: 14px; bottom: 14px; }
}

/* --- Badges & Custom UI Beautification ----------------------------------- */

.badge-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: color-mix(in srgb, var(--surface) 90%, var(--ember));
  border: 1px solid color-mix(in srgb, var(--ember) 40%, var(--line));
  border-radius: var(--r-s);
  color: var(--text);
  font-family: var(--mono);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2);
}

.badge-play-large {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  background: color-mix(in srgb, var(--surface) 85%, var(--ember));
  border: 1px solid color-mix(in srgb, var(--ember) 50%, var(--line));
  border-radius: var(--r-s);
  color: var(--text);
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: var(--glow);
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--flare);
  box-shadow: 0 0 10px var(--flare);
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(255, 166, 43, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 8px rgba(255, 166, 43, 0); }
  100% { transform: scale(0.95); opacity: 0.8; box-shadow: 0 0 0 0 rgba(255, 166, 43, 0); }
}

.game-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.game-meta .tag { margin-bottom: 0; }

.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Glassmorphic card polish */
.item, .game, .panel, .slab, .std {
  backdrop-filter: blur(8px);
}

.item:hover, .game:hover {
  border-color: color-mix(in srgb, var(--ember) 45%, var(--line-strong));
}

.std:hover {
  background: var(--surface-2);
  transition: background .2s ease;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
  }
  html.js [data-reveal] { opacity: 1; transform: none; }
}

