@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(/site/fonts/BricolageGrotesque-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 500 800; font-display: swap;
  src: url(/site/fonts/BricolageGrotesque-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/site/fonts/Figtree-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Figtree"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(/site/fonts/Figtree-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #0d1119;
  --ink-2: #151b27;
  --ink-3: #1f2737;
  --ink-line: rgba(255, 255, 255, .08);
  --ink-text: #f4f6fa;
  --ink-muted: #9aa3b5;

  --bg: #f4f1ec;
  --surface: #ffffff;
  --surface-2: #faf8f5;
  --surface-3: #f1ede6;
  --border: #e7e1d7;
  --border-strong: #d6cdbf;
  --text: #151922;
  --text-2: #3c4453;
  --muted: #646b7a;
  --link: #2459e6;

  --accent: #ff5a1f;
  --accent-hover: #ff7340;
  --accent-press: #e84b12;
  --accent-soft: #fff0e8;
  --accent-text: #1a0d05;

  --primary: var(--accent);
  --primary-hover: var(--accent-hover);
  --buy: #0b7d4f;
  --buy-hover: #096a43;
  --danger: #e5484d;
  --danger-hover: #f05a5f;
  --warn-bg: #fff6df;
  --warn-text: #6b4a00;
  --ok-bg: #e4f6ed;
  --ok-text: #0d5a38;
  --err-bg: #fdeceb;
  --err-text: #8f1f22;
  --info-bg: #eaf0ff;
  --info-text: #1d3f9e;
  --gold: #ffb627;
  --gold-text: #2b1d00;
  --stud: #ffc23d;
  --stud-ring: #c27f00;
  --tix: #3ddc84;
  --tix-ring: #0d8a4a;
  --online: #22c55e;
  --nav-bg: var(--ink);
  --nav-bg-2: var(--ink-2);

  --shadow-sm: 0 1px 2px rgba(18, 22, 32, .05);
  --shadow: 0 1px 2px rgba(18, 22, 32, .05), 0 6px 18px rgba(18, 22, 32, .06);
  --shadow-lift: 0 18px 44px rgba(18, 22, 32, .16);
  --radius: 12px;
  --radius-sm: 9px;
  --radius-lg: 16px;
  --side-w: 248px;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --nav-h: 64px;
  --page-w: 1240px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b0e14;
  --surface: #131823;
  --surface-2: #171d29;
  --surface-3: #1e2533;
  --border: #252d3c;
  --border-strong: #333d4f;
  --text: #eef1f6;
  --text-2: #c4cbd7;
  --muted: #8b94a6;
  --link: #85a8ff;
  --accent-soft: #2b1a12;
  --warn-bg: #33270b;
  --warn-text: #ffd98a;
  --ok-bg: #0f2a1f;
  --ok-text: #8fe0b8;
  --err-bg: #34161a;
  --err-text: #ffb0b3;
  --info-bg: #17213b;
  --info-text: #a9c1ff;
  --ink: #090c12;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 22px rgba(0, 0, 0, .28);
  --shadow-lift: 0 18px 44px rgba(0, 0, 0, .5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body.bf {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.bf a { color: var(--link); text-decoration: none; }
.bf a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bf h1, .bf h2, .bf h3, .bf h4 { margin: 0; font-weight: 700; color: var(--text); font-family: var(--font-display); letter-spacing: -.015em; line-height: 1.15; }
.bf p { margin: 0 0 10px; }
.bf button { font: inherit; }
.bf :focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 55%, transparent); outline-offset: 2px; }
.bf ::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.bf .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.bf .skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; display: inline-flex; align-items: center; min-height: 44px; background: var(--surface); padding: 8px 14px; border-radius: var(--radius-sm); }
.bf .skip-link:focus { left: 12px; }

.bf-nav {
  position: sticky; top: 0; z-index: 1000; height: var(--nav-h);
  background: var(--ink); color: var(--ink-text); border-bottom: 1px solid var(--ink-line);
}
.bf-nav-inner {
  height: 100%; max-width: calc(var(--page-w) + 48px); margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 8px;
}
.bf-nav a, .bf-nav button { color: inherit; }
.bf-nav a:hover { text-decoration: none; }
.bf-burger {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 10px 0 8px; margin-left: -8px;
  background: none; border: 0; border-radius: var(--radius-sm); cursor: pointer; flex: none;
}
.bf-burger:hover, .bf-burger[aria-expanded="true"] { background: rgba(255, 255, 255, .08); }
.bf-burger-lbl { font-size: 14px; font-weight: 700; }
.bf-logo { display: flex; align-items: center; gap: 10px; margin-right: 18px; flex: none; }
.bf-logo svg { display: block; }
.bf-logo-word { font-family: var(--font-display); font-weight: 800; font-size: 22px; letter-spacing: -.025em; color: var(--ink-text); }
.bf-lockup { display: flex; align-items: center; gap: 9px; }
.bf-lockup svg { flex: none; }
.bf-side-mark .bf-logo-word { font-size: 27px; letter-spacing: -.03em; }

.bf-top { display: none; align-self: stretch; gap: 2px; margin-right: auto; flex: none; }
.bf-top a, .bf-strip a {
  position: relative; display: flex; align-items: center; flex: none; padding: 0 11px; white-space: nowrap;
  font-size: 14.5px; font-weight: 600; color: var(--ink-muted) !important; text-decoration: none !important;
}
.bf-top a:hover, .bf-strip a:hover, .bf-top a.active, .bf-strip a.active { color: var(--ink-text) !important; }
.bf-top a.active::after, .bf-strip a.active::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent);
}
.bf-strip { background: var(--ink); border-bottom: 1px solid var(--ink-line); overflow-x: auto; scrollbar-width: none; }
.bf-strip::-webkit-scrollbar { display: none; }
.bf-strip-inner { display: flex; gap: 2px; height: 46px; max-width: calc(var(--page-w) + 48px); margin: 0 auto; padding: 0 13px; }
.bf-strip a { min-width: 44px; justify-content: center; }

.bf-search { position: relative; flex: 1 1 240px; max-width: 380px; margin-left: auto; }
.bf-search input {
  width: 100%; height: 40px; border: 1px solid var(--ink-line); border-radius: 12px; padding: 0 14px 0 38px;
  font: inherit; font-size: 14px; background: rgba(255, 255, 255, .06); color: #fff; transition: background .12s, border-color .12s;
}
.bf-search input::placeholder { color: var(--ink-muted); }
.bf-search input:focus { outline: none; background: rgba(255, 255, 255, .1); border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.bf-search .bf-search-go {
  position: absolute; left: 6px; top: 6px; width: 28px; height: 28px; border: 0; background: none; color: var(--ink-muted); cursor: pointer;
  display: grid; place-items: center; padding: 0;
}
.bf-search-menu {
  position: absolute; top: 46px; left: 0; right: 0; padding: 6px; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lift); display: none; z-index: 5;
}
.bf-search-menu.open { display: block; }
.bf-search-menu a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--text) !important; font-size: 14px; }
.bf-search-menu a:hover, .bf-search-menu a.hl { background: var(--accent-soft); text-decoration: none; }
.bf-nav-right { display: flex; align-items: center; gap: 6px; flex: none; margin-left: 12px; }
.bf-wallet-pair {
  display: flex; align-items: center; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .06);
  border: 1px solid var(--ink-line); padding: 0 4px;
}
.bf-wallet { display: flex; align-items: center; gap: 6px; padding: 0 9px; height: 32px; border-radius: 9px; font-size: 14px; font-weight: 700; color: #fff !important; }
.bf-wallet:hover { background: rgba(255, 255, 255, .08); }
.bf-wallet + .bf-wallet { border-left: 1px solid var(--ink-line); border-radius: 0 9px 9px 0; }
.bf-iconbtn {
  position: relative; background: none; border: 0; width: 40px; height: 40px; border-radius: 12px; color: var(--ink-muted) !important;
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.bf-iconbtn:hover { background: rgba(255, 255, 255, .08); color: #fff !important; }
.bf-iconbtn .dot {
  position: absolute; top: 3px; right: 2px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
  background: var(--accent); color: var(--accent-text); font-size: 12px; line-height: 16px; font-weight: 800; text-align: center;
  box-shadow: 0 0 0 2px var(--ink);
}
.bf-me-btn {
  display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 10px 0 4px; margin-left: 4px;
  border: 1px solid transparent; border-radius: 999px; background: none; cursor: pointer; color: #fff;
}
.bf-me-btn:hover, .bf-me-btn[aria-expanded="true"] { background: rgba(255, 255, 255, .08); border-color: var(--ink-line); }
.bf-me-btn .headshot .disc { background: var(--ink-3); border: 2px solid var(--ink-3); }
.bf-me-btn .chev { color: var(--ink-muted); }
.bf-me { position: relative; display: flex; align-items: center; }
.bf-menu {
  position: absolute; top: calc(100% + 10px); right: 0; width: 300px; padding: 8px; z-index: 5;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  display: none;
}
.bf-menu.open { display: block; animation: bf-pop .14s ease; }
.bf-menu-head { display: flex; align-items: center; gap: 12px; padding: 10px 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.bf-menu-head .who { min-width: 0; }
.bf-menu-head b { display: block; font-family: var(--font-display); font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-menu-head a { font-size: 13px; }
.bf-menu a, .bf-menu button.item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 9px 10px; border-radius: 11px;
  color: var(--text) !important; background: none; border: 0; cursor: pointer; font-size: 14px; font-weight: 500;
}
.bf-menu a svg, .bf-menu button.item svg { color: var(--muted); flex: none; }
.bf-menu a:hover, .bf-menu button.item:hover { background: var(--surface-3); text-decoration: none; }
.bf-menu a:hover svg, .bf-menu button.item:hover svg { color: var(--accent); }
.bf-menu .count { margin-left: auto; background: var(--accent); color: var(--accent-text); border-radius: 999px; padding: 0 8px; font-size: 12px; font-weight: 800; line-height: 20px; }
.bf-menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 4px; }
.bf-menu .bf-menu-head a { display: inline; padding: 0; border-radius: 0; font-size: 13px; font-weight: 600; color: var(--link) !important; }
.bf-menu .bf-menu-head a:hover { background: none; text-decoration: underline; }
.bf-auth-links { display: flex; gap: 8px; }
.bf-auth-links a { display: inline-flex; align-items: center; height: 44px; padding: 0 16px; border-radius: 12px; font-weight: 700; font-size: 14px; color: #fff !important; }
.bf-auth-links a.login { background: rgba(255, 255, 255, .06); border: 1px solid var(--ink-line); }
.bf-auth-links a.login:hover { background: rgba(255, 255, 255, .12); }
.bf-auth-links a.signup { background: var(--accent); color: var(--accent-text) !important; }
.bf-auth-links a.signup:hover { background: var(--accent-hover); }
.bf-search-toggle { display: none; }

.bf-drawer-back { position: fixed; inset: 0; z-index: 1500; background: rgba(8, 10, 15, .5); display: none; }
.bf-drawer-back.open { display: block; animation: bf-fade .14s; }

.bf-side {
  position: fixed; top: 0; left: 0; bottom: 0; width: min(var(--side-w), 86vw); z-index: 1600;
  display: flex; flex-direction: column; gap: 16px; padding: 18px 12px 24px;
  background: var(--ink); color: var(--ink-text); border-right: 1px solid var(--ink-line);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--ink-3) transparent;
  transform: translateX(-102%); visibility: hidden; transition: transform .18s ease, visibility 0s linear .18s;
}
.bf-side.open { transform: none; visibility: visible; transition: transform .18s ease; }
.bf-side a { text-decoration: none !important; }
.bf-side-mark { display: flex; flex-direction: column; gap: 9px; padding: 8px 10px 2px; border-radius: var(--radius-sm); flex: none; }
.bf-side-mark .tag { font-size: 12px; line-height: 1.3; color: var(--ink-muted); }
.bf-side-play {
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 0 4px; flex: none;
  border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-text) !important; font-size: 15px; font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -3px 0 rgba(0, 0, 0, .2);
}
.bf-side-play:hover { background: var(--accent-hover); }
.bf-side-nav { display: flex; flex-direction: column; gap: 16px; }
.bf-side .grp { display: flex; flex-direction: column; gap: 2px; }
.bf-side h5 { margin: 0 10px 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); }
.bf-side-nav a {
  display: flex; align-items: center; gap: 11px; min-height: 44px; padding: 6px 8px; border-radius: var(--radius-sm);
  color: var(--ink-muted) !important; font-size: 14.5px; font-weight: 600;
}
.bf-side-nav a:hover { background: rgba(255, 255, 255, .06); color: var(--ink-text) !important; }
.bf-side-nav .tile {
  position: relative; flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px;
  background: rgba(255, 255, 255, .06);
}
.bf-side-nav a.active { background: rgba(255, 255, 255, .07); color: var(--ink-text) !important; }
.bf-side-nav a.active .tile { background: var(--accent); color: var(--accent-text); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32), inset 0 -2px 0 rgba(0, 0, 0, .2); }
.bf-side-nav a.active .tile::before {
  content: ""; position: absolute; top: -4px; left: 50%; width: 12px; height: 5px; margin-left: -6px;
  border-radius: 3px 3px 0 0; background: var(--accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .32);
}
.bf-side-nav .side-lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bf-side-nav .count { margin-left: auto; background: var(--accent); color: var(--accent-text); border-radius: 999px; padding: 0 8px; font-size: 12px; font-weight: 800; line-height: 20px; }

@media (min-width: 1100px) {
  body.has-side { padding-left: var(--side-w); }
  body.has-side .bf-side { width: var(--side-w); transform: none; visibility: visible; transition: none; z-index: 1100; }
  body.has-side .bf-side-nav a { min-height: 40px; padding: 4px 8px; }
  body.has-side .bf-drawer-back { display: none !important; }
  body.has-side .side-you { display: none; }
  body.has-side .bf-burger, body.has-side .bf-nav .bf-logo { display: none; }
  body.has-side .bf-search { max-width: 360px; }
  body.has-side .toasts { left: calc(50% + var(--side-w) / 2); }
  .bf-top { display: flex; }
  .bf-strip, .bf-side .side-top { display: none; }
}
@media (min-width: 1100px) and (max-width: 1319px) {
  .bf-search { display: none; position: absolute; right: 24px; top: calc(var(--nav-h) + 8px); width: 420px; max-width: calc(100vw - 48px); margin: 0; }
  .bf-search.open { display: block; }
  .bf-search input { background: var(--ink-2); box-shadow: var(--shadow-lift); }
  .bf-search-toggle { display: inline-flex; }
}
@media (max-width: 1499px) {
  .bf-me-btn .me-name { display: none; }
}
@media (max-width: 1099px) {
  .bf-search { max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bf-side, .bf-side.open { transition: none; }
}
@media (max-width: 760px) {
  .bf-wallet-pair { flex-direction: column; align-items: stretch; justify-content: center; height: 44px; padding: 0 3px; }
  .bf-wallet { height: 21px; padding: 0 6px 0 4px; gap: 5px; font-size: 12.5px; line-height: 1; border-radius: 7px; font-variant-numeric: tabular-nums; white-space: nowrap; }
  .bf-wallet svg { width: 14px; height: 14px; flex: none; }
  .bf-wallet + .bf-wallet { border-left: 0; border-radius: 7px; }
}
@media (max-width: 640px) {
  .bf-nav-inner { padding: 0 14px; gap: 4px; }
  .bf-logo { margin-right: auto; }
  .bf-logo-word { font-size: 20px; }
  .bf-search { display: none; position: absolute; left: 10px; right: 10px; top: calc(var(--nav-h) + 8px); max-width: none; }
  .bf-search.open { display: block; }
  .bf-search input { background: var(--ink-2); box-shadow: var(--shadow-lift); }
  .bf-search-toggle { display: inline-flex; }
  .bf-auth-links a.login { display: none; }
  .bf-menu { position: fixed; top: calc(var(--nav-h) + 6px); right: 8px; left: 8px; width: auto; }
  .bf-nav-right { gap: 2px; margin-left: 4px; }
  .bf-nav-right .bf-iconbtn { width: 36px; }
  .bf-me-btn { padding: 0 2px; margin-left: 2px; gap: 0; }
  .bf-me-btn .chev { display: none; }
  .bf-strip-inner { padding: 0 3px; }
  .bf-strip a { padding: 0 10px; font-size: 14px; }
  .bf-strip a.active::after { left: 10px; right: 10px; }
}
@media (max-width: 480px) {
  .bf-nav.signed-in .bf-logo { display: none; }
}
@media (max-width: 360px) {
  .bf-burger-lbl { display: none; }
}
@media (max-width: 379px) {
  .bf-nav-inner { padding: 0 10px; }
  .bf-nav-right .bf-iconbtn { width: 34px; }
}

.bf-page { min-height: calc(100vh - var(--nav-h)); display: flex; flex-direction: column; }
.bf-container { width: 100%; max-width: calc(var(--page-w) + 48px); margin: 0 auto; padding: 32px 24px 0; flex: 1; }
.bf-container.wide { max-width: calc(var(--page-w) + 48px); }
@media (max-width: 640px) { .bf-container { padding: 20px 14px 0; } }

.bf-footer { margin-top: 64px; background: var(--ink); color: var(--ink-muted); border-top: 1px solid var(--ink-line); }
.bf-footer-inner {
  max-width: calc(var(--page-w) + 48px); margin: 0 auto; padding: 44px 24px 28px;
  display: grid; grid-template-columns: 1.5fr 1.3fr 1fr 1fr; gap: 28px;
}
.bf-footer-about .bf-logo { margin: 2px 0 14px; }
.bf-footer .bf-logo { margin: 0 0 12px; }
.bf-footer .blurb { font-size: 14px; max-width: 320px; }
.bf-footer h2 { margin: 4px 0 12px; font-family: inherit; line-height: inherit; font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; }
.bf-footer nav a { display: block; color: var(--ink-muted) !important; font-size: 14px; padding: 4px 0; }
.bf-footer nav a:hover { color: #fff !important; text-decoration: none; }
.bf-footer-base {
  max-width: calc(var(--page-w) + 48px); margin: 0 auto; padding: 18px 24px 26px; border-top: 1px solid var(--ink-line);
  display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; font-size: 13px;
}
.bf .bf-footer-base a { color: var(--ink-muted); }
.bf .bf-footer-base a:hover { color: #fff; }
@media (max-width: 760px) { .bf-footer-inner { grid-template-columns: 1fr 1fr; } .bf-footer-inner > :first-child { grid-column: 1 / -1; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 20px 22px;
}
.card + .card { margin-top: 16px; }
.grid-2 > .card + .card, .grid-3 > .card + .card, .row > .card + .card, .stack > .card + .card { margin-top: 0; }
.stack > .card + .card { margin-top: 12px; }
.card.flush { padding: 0; overflow: hidden; }
.card.lift { box-shadow: var(--shadow-lift); }
.section { margin-top: 36px; }
.section:first-child { margin-top: 0; }
.section-h { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.section-h h2, .section-h h3 { font-size: 22px; font-weight: 700; color: var(--text); }
.section-h h3 { font-size: 18px; }
.section-h .more {
  margin-left: auto; display: inline-flex; align-items: center; gap: 4px; padding: 5px 13px; border-radius: 999px; white-space: nowrap;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2) !important; font-size: 13px; font-weight: 700;
}
.section-h .more::after { content: "\2192"; font-weight: 700; }
.section-h .more:hover { border-color: var(--accent); color: var(--text) !important; text-decoration: none; }
.page-title { font-family: var(--font-display); font-size: 36px; font-weight: 800; letter-spacing: -.025em; line-height: 1.08; margin-bottom: 6px !important; }
.subtitle { color: var(--muted); font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 16px; }
.row.wrap { flex-wrap: wrap; }
.row.center { align-items: center; }
.col { flex: 1 1 0; min-width: 0; }
@media (max-width: 760px) { .row.wrap > .col { flex: 1 1 100% !important; min-width: 0 !important; } }
.stack > * + * { margin-top: 12px; }
.spacer { flex: 1; }
.divider { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.center { text-align: center; }
.hidden { display: none !important; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--border-strong); border-radius: 12px; padding: 0 18px; min-height: 40px;
  font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none !important; white-space: nowrap;
  background: var(--surface); color: var(--text) !important; line-height: 1.2;
  transition: background .12s, border-color .12s, transform .06s, box-shadow .12s;
}
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 2px 0 var(--accent-press); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-buy { background: var(--buy); border-color: var(--buy); color: #fff !important; box-shadow: 0 2px 0 #075a39; }
.btn-buy:hover { background: var(--buy-hover); border-color: var(--buy-hover); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff !important; }
.btn-danger:hover { background: var(--danger-hover); border-color: var(--danger-hover); }
.btn-ghost { background: none; border-color: transparent; color: var(--text-2) !important; }
.btn-ghost:hover { background: var(--surface-3); }
.btn-sm { padding: 0 12px; min-height: 32px; font-size: 13px; border-radius: 10px; }
.btn-lg { padding: 0 26px; min-height: 52px; font-size: 16px; border-radius: 14px; }
.btn-block { display: flex; width: 100%; }
.btn-group { display: flex; gap: 8px; flex-wrap: wrap; }

.field { margin-bottom: 16px; }
.field > label, .label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 6px; color: var(--text-2); }
.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 15px; color: var(--text); background: var(--surface);
  border: 1px solid var(--border-strong); border-radius: 12px; padding: 8px 14px; min-height: 42px;
  transition: border-color .12s, box-shadow .12s;
}
.select { padding-right: 34px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23646b7a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
.textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: color-mix(in srgb, var(--border-strong) 60%, var(--text) 25%); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.help { font-size: 13px; color: var(--muted); margin-top: 5px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.check input { accent-color: var(--accent); width: 16px; height: 16px; }
.inline-form { display: flex; gap: 8px; align-items: center; }
.inline-form .input { flex: 1; }

.notice { border-radius: 12px; padding: 11px 14px; font-size: 14px; margin-bottom: 14px; border: 1px solid transparent; }
.notice.warn { background: var(--warn-bg); color: var(--warn-text); border-color: color-mix(in srgb, var(--warn-text) 18%, transparent); }
.notice.ok { background: var(--ok-bg); color: var(--ok-text); border-color: color-mix(in srgb, var(--ok-text) 18%, transparent); }
.notice.err { background: var(--err-bg); color: var(--err-text); border-color: color-mix(in srgb, var(--err-text) 18%, transparent); }
.notice.info { background: var(--info-bg); color: var(--info-text); border-color: color-mix(in srgb, var(--info-text) 15%, transparent); }
.empty { color: var(--muted); text-align: center; padding: 34px 14px; font-size: 15px; }
.loading { color: var(--muted); padding: 34px 0; text-align: center; }
.loading::before {
  content: ""; display: inline-block; width: 16px; height: 16px; margin-right: 10px; vertical-align: -3px;
  border: 2px solid color-mix(in srgb, var(--accent) 25%, transparent); border-top-color: var(--accent); border-radius: 50%;
  animation: bf-spin .8s linear infinite;
}

.cur { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cur svg { flex: none; }
.cur.studs { color: #965a00; }
.cur.tix { color: #0f8a4c; }
:root[data-theme="dark"] .cur.studs { color: #ffc96b; }
:root[data-theme="dark"] .cur.tix { color: #5fe3a1; }
.bf-nav .cur { color: #fff; }

.tabs { display: flex; gap: 6px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button {
  display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 7px 16px; font-size: 14px; font-weight: 700; color: var(--text-2) !important; cursor: pointer; white-space: nowrap;
}
.tabs a:hover, .tabs button:hover { text-decoration: none; border-color: var(--border-strong); color: var(--text) !important; }
.tabs .active, .tabs [aria-selected="true"] { background: var(--text); border-color: var(--text); color: var(--surface) !important; }
.tabs a.active:hover, .tabs button.active:hover, .tabs [aria-selected="true"]:hover { border-color: var(--text); color: var(--surface) !important; }
.tabs .count { background: var(--accent); color: var(--accent-text); border-radius: 999px; padding: 0 7px; font-size: 12px; line-height: 18px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 800; color: var(--muted); font-size: 12px; letter-spacing: .07em; text-transform: uppercase; padding: 8px 10px; border-bottom: 1px solid var(--border); }
.table td { padding: 11px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td, .table tbody tr:hover td { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

.pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 24px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.pager .btn { min-width: 40px; padding: 0; border-radius: 999px; }

.pill { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); line-height: 1.5; }
.pill.blue { background: var(--info-bg); color: var(--info-text); }
.pill.green { background: var(--ok-bg); color: var(--ok-text); }
.pill.red { background: var(--err-bg); color: var(--err-text); }
.pill.gold { background: color-mix(in srgb, var(--gold) 26%, var(--surface)); color: color-mix(in srgb, var(--gold-text) 80%, var(--text)); }

.thumb { display: block; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 0; overflow: hidden; aspect-ratio: 1; }
.thumb svg.render { position: absolute; inset: 0; width: 100%; height: 100%; }
.thumb img.render { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.fit-stage { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; border-radius: var(--radius); overflow: hidden; background: radial-gradient(circle at 50% 38%, #ffffff, #ebe5da); cursor: grab; touch-action: pan-y; }
:root[data-theme="dark"] .fit-stage { background: radial-gradient(circle at 50% 38%, #283041, #151a24); }
.fit-stage .figure-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fit-shot { position: absolute; left: -9999px; top: 0; width: 512px; height: 512px; visibility: hidden; }
.fit-shot .figure-canvas { width: 512px; height: 512px; display: block; }
.fit-slider { display: grid; grid-template-columns: 70px 1fr 64px; gap: 8px; align-items: center; margin-bottom: 6px; }
.fit-slider input[type=range] { width: 100%; }
.fit-slider input[type=number] { width: 64px; }
.fit-stage.dark, :root[data-theme="dark"] .fit-stage.dark { background: radial-gradient(circle at 50% 38%, #2b3346, #0f131b); }
.fx-card { border: 1px solid var(--border); border-radius: 12px; padding: 4px 12px 10px; margin: 8px 0; background: var(--surface-2); }
.fx-card > summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.fx-card .fit-slider { grid-template-columns: 76px 1fr 64px; }
.thumb.bg-soft { background: radial-gradient(120% 100% at 50% 0%, #ffffff 0%, #f3efe8 60%, #e9e3d9 100%); }
:root[data-theme="dark"] .thumb.bg-soft { background: radial-gradient(120% 100% at 50% 0%, #252d3b 0%, #1a202c 60%, #141922 100%); }
.headshot { position: relative; display: inline-block; border-radius: 50%; overflow: visible; flex: none; }
.headshot .disc { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 35%, #ffffff, #ece6dc); border: 1px solid var(--border); }
:root[data-theme="dark"] .headshot .disc { background: radial-gradient(circle at 50% 35%, #2a3242, #1a202b); }
.headshot svg.render { position: absolute; inset: 0; width: 100%; height: 100%; }
.headshot .presence { position: absolute; right: 2px; bottom: 2px; width: 24%; height: 24%; min-width: 10px; min-height: 10px; max-width: 16px; max-height: 16px; border-radius: 50%; background: var(--online); border: 2px solid var(--surface); }
.club-mark { display: inline-flex; vertical-align: middle; }

.ribbon { position: absolute; left: 0; bottom: 0; display: flex; align-items: stretch; font-size: 12px; font-weight: 800; font-style: italic; letter-spacing: .1em; line-height: 20px; z-index: 2; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.ribbon .r-main, .ribbon .r-u { position: relative; display: inline-block; }
.ribbon .r-main {
  background: linear-gradient(#ffd977 0 50%, var(--gold) 50% 100%); color: var(--gold-text); padding: 0 16px 0 10px;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%); text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
}
.ribbon .r-u {
  margin-left: -9px; background: linear-gradient(#2a3140 0 50%, var(--ink) 50% 100%); color: var(--gold); padding: 0 15px 0 14px; font-style: normal;
  clip-path: polygon(9px 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}
.ribbon .r-main::after, .ribbon .r-u::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255, 255, 255, .45); }
.ribbon .r-u::after { background: rgba(255, 255, 255, .14); }
.tag-new, .tag-timer, .tag-club, .tag-serial {
  position: absolute; z-index: 2; font-size: 12px; font-weight: 800; letter-spacing: .05em; line-height: 20px; padding: 0 8px; border-radius: 999px;
}
.tag-new { left: 8px; top: 8px; background: var(--accent); color: var(--accent-text); }
.tag-timer { right: 8px; top: 8px; background: var(--ink); color: #fff; display: inline-flex; align-items: center; gap: 3px; }
.tag-club { right: 8px; bottom: 8px; background: var(--link); color: #fff; }
.tag-serial { right: 8px; bottom: 8px; background: rgba(13, 17, 25, .8); color: #fff; }

.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 22px 16px; }
.items.small { grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 14px 12px; }
.item-card { position: relative; display: block; color: var(--text) !important; }
.item-card:hover { text-decoration: none !important; }
.item-card .thumb { transition: transform .16s ease, border-color .16s, box-shadow .16s; }
.item-card:hover .thumb { border-color: var(--border-strong); z-index: 21; }
.item-card .name { margin-top: 8px; font-size: 14px; font-weight: 700; line-height: 1.3; max-height: 2.6em; overflow: hidden; overflow-wrap: anywhere; }
.item-card .price-line { font-size: 14px; margin-top: 2px; }
.item-card .remaining { font-size: 12px; font-weight: 700; color: var(--text-2); }
.item-card .remaining b { color: var(--err-text); }
.item-card .was { font-size: 12px; color: var(--muted); }
.item-card .offsale { font-size: 13px; color: var(--muted); font-weight: 600; }
.item-pop {
  position: absolute; left: -10px; right: -10px; top: -10px; z-index: 20; background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lift); padding: 10px 10px 12px; border-radius: 20px; display: none; pointer-events: none;
}
.item-card:hover .item-pop { display: block; animation: bf-fade .12s ease; }
.item-pop .pop-space { aspect-ratio: 1; }
.item-pop .name { font-size: 14px; }
.item-pop dl { margin: 8px 0 0; font-size: 12px; display: grid; grid-template-columns: auto 1fr; gap: 1px 6px; }
.item-pop dt { color: var(--muted); font-weight: 700; }
.item-pop dd { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (hover: none) { .item-pop { display: none !important; } }

.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 16px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 6px; color: var(--text) !important; text-align: center; min-width: 0; }
.person:hover { text-decoration: none !important; }
.person:hover .disc { border-color: var(--accent); }
.person .nm { font-size: 13px; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.person .st { font-size: 12px; color: var(--ok-text); font-weight: 700; }
.hscroll { display: flex; gap: 16px; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.hscroll > * { flex: none; scroll-snap-align: start; }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 24px 18px; }
.start-here-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.start-here-label { margin: 2px 0 0; }
.game-card { display: block; color: var(--text) !important; }
.game-card:hover { text-decoration: none !important; }
.game-card .game-cover {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: var(--ink-2);
  border: 1px solid var(--border); transition: transform .16s ease, box-shadow .16s ease;
}
.game-card:hover .game-cover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.game-cover img, .game-cover svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; object-fit: cover; }
.game-cover .play-chip {
  position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 10px;
  border-radius: 999px; background: var(--accent); color: var(--accent-text); font-size: 12px; font-weight: 800; letter-spacing: .02em;
  opacity: 0; transform: translateY(6px); transition: opacity .16s, transform .16s;
}
.game-card:hover .play-chip, .game-card:focus-visible .play-chip { opacity: 1; transform: none; }
.game-card .name { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin-top: 10px; line-height: 1.25; max-height: 2.5em; overflow: hidden; }
.game-card .meta { font-size: 13px; color: var(--muted); display: flex; gap: 12px; align-items: center; margin-top: 3px; font-weight: 600; }
.game-card .meta span { display: inline-flex; align-items: center; gap: 4px; }
.game-card .meta .liked { color: var(--ok-text); }
.vote-bar { display: none; }
.game-icon { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; display: flex; align-items: center; justify-content: center; }
.game-icon svg { width: 100%; height: 100%; display: block; }
.game-row { position: relative; }
.game-row .hscroll .game-card, .hscroll.game-row .game-card { width: 290px; }

.modal-back {
  position: fixed; inset: 0; background: rgba(8, 10, 15, .55); backdrop-filter: blur(3px); z-index: 3000;
  display: flex; align-items: center; justify-content: center; padding: 16px; animation: bf-fade .12s ease;
}
.modal {
  background: var(--surface); color: var(--text); border-radius: var(--radius-lg); width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto;
  border: 1px solid var(--border); box-shadow: 0 24px 64px rgba(0, 0, 0, .35); animation: bf-pop .16s ease;
}
.modal.wide { max-width: 780px; }
.wn { display: flex; flex-direction: column; gap: 6px; }
.wn-pic { display: block; margin-bottom: 8px; border-radius: 12px; overflow: hidden; aspect-ratio: 1200 / 630; background: var(--surface-3); }
.wn-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wn-kicker { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-text); }
.wn-title { margin: 0; font-size: 20px; line-height: 1.25; }
.wn-sub { margin: 0; font-weight: 700; color: var(--text-2); }
.wn-text { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.wn-more { margin-top: 6px; font-size: 13px; color: var(--text-2); }
.modal-h { padding: 20px 22px 6px; display: flex; align-items: center; gap: 8px; }
.modal-h h3 { font-size: 20px; }
.modal-h .x { margin-left: auto; width: 34px; height: 34px; border-radius: 10px; background: none; border: 0; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.modal-h .x:hover { background: var(--surface-3); color: var(--text); }
.modal-b { padding: 10px 22px 16px; }
.modal-f { padding: 12px 22px 20px; display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
@keyframes bf-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bf-pop { from { opacity: 0; transform: translateY(6px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes bf-spin { to { transform: rotate(360deg); } }
.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 4000; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px; background: var(--ink-2); color: #fff; padding: 12px 18px 12px 14px; border-radius: 14px;
  border: 1px solid var(--ink-line); box-shadow: 0 12px 34px rgba(0, 0, 0, .3); font-size: 14px; font-weight: 600;
  max-width: min(560px, calc(100vw - 32px)); animation: bf-toast .18s ease; pointer-events: auto;
}
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.toast.err::before { background: #ff6b6b; }
.toast.ok::before { background: #3ddc97; }
@keyframes bf-toast { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.home-hero {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 26px 28px; border-radius: var(--radius-lg); color: #fff; margin-bottom: 8px;
  background: radial-gradient(90% 140% at 100% 0%, rgba(255, 90, 31, .45), transparent 60%), linear-gradient(135deg, #121826, #0d1119);
  border: 1px solid var(--ink-line);
}
.home-hero::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 260px; height: 260px; border-radius: 48px; transform: rotate(18deg);
  background: linear-gradient(135deg, rgba(255, 182, 39, .18), rgba(255, 90, 31, .04)); pointer-events: none;
}
.home-hero .headshot .disc { background: radial-gradient(circle at 50% 35%, #2c3546, #161c28); border: 3px solid rgba(255, 255, 255, .12); }
.home-hero .hi { position: relative; z-index: 1; min-width: 0; flex: 1 1 260px; }
.home-hero .hi small { display: block; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #ffb38f; }
.home-hero h1 { color: #fff; font-size: 38px; font-weight: 800; letter-spacing: -.03em; margin: 2px 0 10px; overflow-wrap: anywhere; }
.home-hero .chips { display: flex; gap: 8px; flex-wrap: wrap; }
.home-hero .chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); color: #fff !important; font-size: 14px; font-weight: 700; }
.home-hero .chip .cur { color: #fff; }
.home-hero .chip:hover { background: rgba(255, 255, 255, .14); text-decoration: none; }
.home-hero .actions { position: relative; z-index: 1; display: flex; gap: 10px; flex-wrap: wrap; }
.home-hero .btn:not(.btn-primary) { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); color: #fff !important; }
.home-hero .btn:not(.btn-primary):hover { background: rgba(255, 255, 255, .16); }
@media (max-width: 600px) { .home-hero { padding: 20px; } .home-hero h1 { font-size: 28px; } }
.hello { display: flex; align-items: center; gap: 22px; margin-bottom: 8px; }
.hello h1 { font-size: 40px; font-weight: 800; }
.feed-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.feed-item:last-child { border-bottom: 0; }
.feed-item .who { font-weight: 800; }
.feed-item .when { font-size: 12px; color: var(--muted); margin-top: 2px; }
.feed-item .text { overflow-wrap: anywhere; color: var(--text-2); }

.catalog-layout { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: start; }
@media (max-width: 820px) { .catalog-layout { grid-template-columns: 1fr; } }
.cat-nav { position: sticky; top: calc(var(--nav-h) + 20px); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; font-size: 14px; }
.cat-nav h4 { font-family: var(--font); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 6px 10px 6px; font-weight: 800; }
.cat-nav a { display: block; padding: 7px 10px 7px 24px; border-radius: 10px; color: var(--text-2) !important; font-weight: 500; }
.cat-nav a.top { padding-left: 10px; font-weight: 700; color: var(--text) !important; margin-top: 2px; }
.cat-nav a:hover { background: var(--surface-3); text-decoration: none; }
.cat-nav a.active { background: var(--accent-soft); color: var(--accent) !important; font-weight: 800; }
@media (max-width: 820px) {
  .cat-nav { position: static; display: flex; gap: 6px; overflow-x: auto; padding: 6px; }
  .cat-nav h4 { display: none; }
  .cat-nav a, .cat-nav a.top { flex: none; padding: 7px 14px; margin: 0; white-space: nowrap; }
}
.cat-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 20px; }
.cat-toolbar .input { max-width: 360px; }
.cat-toolbar .select { width: auto; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12px; color: var(--muted); margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--border); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .sw { display: inline-flex; width: auto; height: auto; aspect-ratio: auto; overflow: visible; background: none; border: 0; }
.legend .sw .ribbon { position: static; }

.item-page { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 3fr); gap: 28px; }
@media (max-width: 960px) { .item-page { grid-template-columns: 1fr; } }
.item-page .thumb { max-width: 460px; border-radius: 0; }
.thumb .view3d-stage { position: absolute; inset: 0; z-index: 1; cursor: grab; touch-action: pan-y; }
.thumb .view3d-stage:active { cursor: grabbing; }
.thumb .view3d-stage .figure-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.thumb.in-3d > .render { visibility: hidden; }
.thumb .view3d-stage.hover3d { pointer-events: none; cursor: inherit; opacity: 0; transition: opacity .18s ease; }
.thumb .view3d-stage.hover3d.shown { opacity: 1; }
.item-card .thumb > .render { transition: opacity .18s ease; }
.item-card .thumb.hover-3d > .render { opacity: 0; }
.view3d-btn { position: absolute; right: 10px; bottom: 10px; z-index: 3; min-width: 46px; font-weight: 800; border-radius: 999px; }
.tag-club ~ .view3d-btn, .tag-serial ~ .view3d-btn { bottom: 34px; }
.buy-box { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; text-align: center; background: var(--surface); box-shadow: var(--shadow-sm); }
.buy-box .lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.buy-box .big { font-family: var(--font-display); font-size: 30px; font-weight: 800; margin: 4px 0 14px; }
.buy-box .or { color: var(--muted); font-size: 13px; margin: 10px 0; }
.buy-box .facts { font-size: 13px; color: var(--muted); margin-top: 12px; }
.countdown { font-weight: 800; color: var(--danger); font-variant-numeric: tabular-nums; }
.creator-box { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: 14px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; font-weight: 600; }
.reseller { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.reseller:last-child { border-bottom: 0; }
.chart { width: 100%; height: auto; display: block; }
.chart .axis { stroke: var(--border-strong); }
.chart .gridline { stroke: var(--border); }
.chart text { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; }
.chart .area { fill: color-mix(in srgb, var(--accent) 16%, transparent); }
.chart .bar { fill: color-mix(in srgb, var(--accent) 60%, transparent); }
.comment { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.comment:last-child { border-bottom: 0; }

.profile-head { display: flex; gap: 24px; align-items: center; }
.profile-head .headshot { width: 150px; height: 150px; }
.profile-head .headshot .disc { border: 4px solid var(--surface); box-shadow: var(--shadow); }
.profile-head h1 { font-size: 34px; font-weight: 800; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; letter-spacing: -.025em; }
.profile-head .status { color: var(--text-2); margin: 4px 0 10px; overflow-wrap: anywhere; }
.profile-stats { display: flex; gap: 10px; margin: 10px 0 12px; flex-wrap: wrap; }
.profile-stats a { color: var(--text) !important; text-align: left; padding: 8px 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); min-width: 96px; }
.profile-stats a:hover { border-color: var(--accent); text-decoration: none; }
.profile-stats b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.profile-stats span { font-size: 12px; color: var(--muted); font-weight: 700; }
@media (max-width: 640px) { .profile-head { flex-direction: column; text-align: center; } .profile-stats { justify-content: center; } }
.avatar-stage { position: relative; aspect-ratio: 1; max-width: 360px; margin: 0 auto; border-radius: var(--radius); background: radial-gradient(circle at 50% 38%, #ffffff, #ebe5da); }
:root[data-theme="dark"] .avatar-stage { background: radial-gradient(circle at 50% 38%, #283041, #151a24); }
.avatar-stage svg.render { position: absolute; inset: 0; width: 100%; height: 100%; }
.avatar-stage.gl { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.avatar-stage.gl:active { cursor: grabbing; }
.avatar-stage .figure-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 14px; }
.badge-tile { text-align: center; font-size: 13px; font-weight: 600; }
.badge-tile svg { display: block; margin: 0 auto 6px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat-grid div { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-align: center; }
.stat-grid b { display: block; font-family: var(--font-display); font-size: 22px; }
.stat-grid span { font-size: 12px; color: var(--muted); font-weight: 600; }

.msg-row { display: grid; grid-template-columns: 44px 170px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); cursor: pointer; color: var(--text) !important; }
.msg-row:hover { background: var(--surface-2); text-decoration: none !important; }
.msg-row.unread { font-weight: 800; }
.msg-row.unread .from-name::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.msg-row .prev { color: var(--muted); font-weight: 400; }
@media (max-width: 640px) { .msg-row { grid-template-columns: 34px 1fr; } .msg-row .from-name, .msg-row .when { display: none; } }

.trade-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 700px) { .trade-sides { grid-template-columns: 1fr; } }
.trade-box { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; }
.trade-box h4 { font-family: var(--font); font-size: 15px; display: flex; align-items: center; gap: 6px; margin-bottom: 10px !important; }
.trade-box .value { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--muted); }
.tw-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.tw-head .page-title { margin: 0; }
.tw-head p { margin: 4px 0 0; font-size: 14px; }
.tw-table { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tw-side { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.tw-side-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.tw-side-head h2 { margin: 0; font-size: 19px; }
.tw-worth { margin-left: auto; display: flex; align-items: baseline; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 600; }
.tw-worth b { color: var(--text); font: 800 19px/1 var(--font-display); }
.tw-slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tw-slot { min-width: 0; }
.tw-slot-btn { position: relative; display: block; width: 100%; padding: 0; border: 2px solid var(--border-strong); border-radius: 12px; background: none; cursor: pointer; overflow: hidden; }
.tw-slot-btn .thumb { border: 0; border-radius: 10px; }
.tw-x { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 6px; background: var(--surface); color: var(--text); font-size: 17px; font-weight: 800; line-height: 1; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
button.tw-slot-btn:hover, button.tw-slot-btn:focus-visible { border-color: var(--danger); }
a.tw-slot-btn:hover, a.tw-slot-btn:focus-visible { border-color: var(--accent); }
.tw-slot-btn:hover .tw-x, .tw-slot-btn:focus-visible .tw-x { background: var(--danger); color: #fff; }
.tw-slot.gone .tw-slot-btn { opacity: .5; }
.tw-gone { color: var(--err-text); font-weight: 700; }
.tw-slot-name { margin-top: 7px; font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-slot-meta { margin-top: 1px; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tw-slot-meta .cur { font-weight: 700; }
.tw-ench i { font-style: normal; }
.tw-socket {
  --peg: color-mix(in srgb, var(--border-strong) 75%, transparent);
  aspect-ratio: 1; border: 2px dashed var(--border-strong); border-radius: 12px; background-color: var(--surface-2);
  background-image: radial-gradient(circle closest-side, transparent 0 30%, var(--peg) 33% 44%, transparent 47%);
  background-size: 50% 50%;
}
.tw-zars { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 6px 12px; }
.tw-zars label { font-size: 14px; font-weight: 700; }
.tw-zars-field { display: flex; align-items: center; gap: 8px; }
.tw-zars-input { width: 150px; }
.tw-zars-input[aria-invalid="true"] { border-color: var(--danger); }
.tw-zars-note { grid-column: 1 / -1; margin: 0; font-size: 13px; color: var(--muted); }
.tw-zars-note.bad { color: var(--err-text); font-weight: 600; }
.tw-tabs { display: none; }
.tw-pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
.tw-picker { min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.tw-picker-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px; }
.tw-count { padding: 1px 7px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 700; }
.tw-count:empty { display: none; }
.tw-pick { cursor: pointer; border-radius: 12px; }
.tw-pick .thumb { transition: transform .08s ease; }
.tw-pick:hover .thumb { transform: translateY(-2px); }
.tw-pick.chosen .thumb { outline: 3px solid var(--accent); outline-offset: -3px; }
.tw-pick.full:not(.chosen) { cursor: not-allowed; }
.tw-pick-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; }
.tw-in { padding: 1px 6px; border-radius: 5px; background: var(--accent); color: var(--accent-text); font-size: 12px; font-weight: 800; }
.tw-deal {
  position: sticky; bottom: 0; z-index: 30; margin-top: 18px;
  display: grid; grid-template-columns: auto minmax(120px, 1fr) auto auto; align-items: center; gap: 6px 18px;
  padding: 14px 18px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: 0 -8px 24px rgba(0, 0, 0, .14);
}
.tw-total { grid-row: 1; font-size: 12px; font-weight: 600; color: var(--muted); }
.tw-total b { display: block; color: var(--text); font: 800 22px/1.1 var(--font-display); }
.tw-total.get { text-align: right; }
.tw-scale { grid-row: 1; position: relative; height: 12px; border-radius: 6px; background: var(--buy); overflow: hidden; }
.tw-scale.idle { background: var(--surface-3); }
.tw-scale-give { position: absolute; inset: 0 auto 0 0; background: var(--text-2); }
.tw-scale.idle .tw-scale-give { background: var(--surface-3); }
.tw-scale-even { position: absolute; top: 0; bottom: 0; left: calc(50% - 1px); width: 2px; background: var(--surface); }
.tw-send { grid-row: 1 / span 2; grid-column: 4; }
.tw-verdict { grid-row: 2; grid-column: 2; margin: 0; text-align: center; font-size: 14px; font-weight: 700; color: var(--text-2); }
.tw-verdict.good { color: var(--ok-text); }
.tw-verdict.warn { color: var(--warn-text); }
.tw-verdict.bad { color: var(--err-text); }
.tw-err { grid-column: 1 / -1; margin: 4px 0 0; }
.tw-err.hidden { display: none; }
.modal:has(.tw-view) { max-width: 980px; }
.tw-zars-line { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 14px; font-weight: 600; }
.tw-deal.static { position: static; margin-top: 14px; grid-template-columns: auto minmax(120px, 1fr) auto; border-radius: var(--radius); background: var(--surface-2); box-shadow: none; }
@media (max-width: 760px) {
  .tw-deal.static { border-width: 1px; border-radius: var(--radius); padding: 12px 14px; }
  .tw-head .page-title { font-size: 26px; }
  .tw-table { grid-template-columns: 1fr; gap: 12px; }
  .tw-side { padding: 14px; }
  .tw-slots { gap: 8px; }
  .tw-tabs { display: flex; gap: 6px; margin-top: 16px; padding: 4px; border-radius: 12px; background: var(--surface-3); }
  .tw-tab { flex: 1 1 0; min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 0 8px; border: 0; border-radius: 9px; background: none; color: var(--text-2); font-weight: 700; cursor: pointer; }
  .tw-tab-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tw-tab[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .15); }
  .tw-pickers { grid-template-columns: 1fr; margin-top: 10px; }
  .tw-pickers[data-show="mine"] #tw-pick-theirs, .tw-pickers[data-show="theirs"] #tw-pick-mine { display: none; }
  .tw-picker-title { display: none; }
  .tw-deal { margin: 16px 0 0; grid-template-columns: auto 1fr auto; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-radius: 14px 14px 0 0; border-width: 1px 0 0; }
  .tw-total b { font-size: 18px; }
  .tw-verdict { grid-row: 2; grid-column: 1 / -1; }
  .tw-send { grid-row: 3; grid-column: 1 / -1; width: 100%; }
}
.trade-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; }
.trade-item .thumb { width: 56px; flex: none; border-radius: 12px; }
.trade-item.gone { opacity: .5; text-decoration: line-through; }

.group-emblem { flex: none; border-radius: 14px; overflow: hidden; display: block; }
.moon-frame { overflow: visible; }
.moon-frame.silver { box-shadow: 0 0 0 3px #c9ced6, 0 0 12px rgba(220, 228, 240, 0.55); }
.moon-frame.gold { box-shadow: 0 0 0 3px #e6b422, 0 0 16px rgba(255, 196, 60, 0.6); }
.moon-challenge { padding: 10px 0; border-top: 1px solid var(--border); }
.moon-challenge:first-of-type { border-top: 0; }
.moon-challenge.done b { color: var(--ok, #2a8); }
.moon-bar { height: 6px; border-radius: 3px; background: var(--surface-3); margin-top: 6px; overflow: hidden; }
.moon-bar span { display: block; height: 100%; background: linear-gradient(90deg, #6a8cff, #9be2ff); }
.moon-shop-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--border); }
.moon-shop-row:first-of-type { border-top: 0; }
.moon-board { margin: 6px 0 0; padding-left: 20px; line-height: 1.8; }
.moon-board li span { margin-left: 6px; }
.heist-live { border-left: 4px solid #e2513a; margin-bottom: 14px; }
.group-head { display: flex; gap: 20px; }
.shout { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); padding: 12px 14px; border-radius: 12px; }
.wall-post { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.wall-post:last-child { border-bottom: 0; }
.group-list-item { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 12px; color: var(--text) !important; }
.group-list-item + .group-list-item { margin-top: 2px; }
.group-list-item:hover { background: var(--surface-2); text-decoration: none !important; }

.forum-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.forum-table th { background: var(--surface-2); color: var(--muted); text-align: left; font-weight: 800; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.forum-table td { padding: 14px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 14px; }
.forum-table tr:last-child td { border-bottom: 0; }
.forum-table tbody tr:hover td { background: var(--surface-2); }
.forum-table .sub-name { font-weight: 800; font-size: 15px; }
.forum-table .num { text-align: center; width: 90px; font-weight: 700; font-variant-numeric: tabular-nums; }
.forum-table .last { width: 230px; font-size: 13px; }
.forum-table .cat-row td { background: var(--surface-3); font-weight: 800; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); padding: 9px 14px; }
@media (max-width: 700px) { .forum-table .num, .forum-table .last { display: none; } }
.post { display: grid; grid-template-columns: 160px 1fr; border-bottom: 1px solid var(--border); }
.post:last-child { border-bottom: 0; }
.post .who { background: var(--surface-2); padding: 16px 12px; text-align: center; font-size: 12px; color: var(--muted); border-right: 1px solid var(--border); }
.post .who .nm { font-size: 14px; font-weight: 800; display: block; margin-top: 6px; overflow: hidden; text-overflow: ellipsis; color: var(--text); }
.post .body { padding: 16px 18px; }
.post .body .when { font-size: 12px; color: var(--muted); margin-bottom: 8px; display: flex; gap: 10px; }
.post .body .text { white-space: pre-wrap; overflow-wrap: anywhere; }
.post.deleted .text { color: var(--muted); font-style: italic; }
@media (max-width: 600px) { .post { grid-template-columns: 1fr; } .post .who { border-right: 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; text-align: left; } }

.balance-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.balance-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.balance-tile .v { font-family: var(--font-display); font-size: 32px; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.book { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.book td, .book th { padding: 5px 8px; text-align: right; }
.book th { color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.book .ask td:first-child { color: var(--danger); }
.book .bid td:first-child { color: var(--buy); }
.amount-pos { color: var(--ok-text); font-weight: 700; }
.amount-neg { color: var(--danger); font-weight: 700; }

.lp-hero { position: relative; overflow: hidden; display: flex; align-items: flex-end; min-height: 640px; color: #fff; background: linear-gradient(180deg, #0d1119, #121826); }
.lp-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lp-backdrop:not([src]) { display: none; }
.lp-hero .lp-backdrop { object-position: 70% 40%; }
.lp-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(8, 11, 17, .9), rgba(8, 11, 17, .66) 42%, rgba(8, 11, 17, .12) 78%), linear-gradient(to top, rgba(8, 11, 17, .7), transparent 40%);
}
.lp-hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 360px); gap: 40px; align-items: end; width: 100%; max-width: calc(var(--page-w) + 48px); margin: 0 auto; padding: 120px 24px 72px; }
.lp-hero-main { min-width: 0; }
.lp-updates { align-self: center; padding: 16px 16px 10px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(9, 12, 18, .78); }
.lp-updates[hidden], .lp-new[hidden] { display: none; }
.lp-upd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 8px; }
.bf .lp-upd-head h2 { margin: 0; color: #fff; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.bf .lp-upd-head a { color: #ffb627; font-size: 13px; font-weight: 700; }
.lp-updates ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.lp-upd { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 12px; align-items: center; margin: 0 -8px; padding: 8px; border-radius: 10px; color: #fff !important; text-decoration: none !important; }
.lp-upd:hover, .lp-upd:focus-visible { background: rgba(255, 255, 255, .08); }
.lp-upd-pic { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 6px; background: #0d1119; }
.lp-upd-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-upd-txt { display: grid; gap: 3px; min-width: 0; }
.lp-upd-meta { display: flex; align-items: center; gap: 8px; color: #aab3c2; font-size: 12px; font-weight: 700; }
.lp-upd-meta b, .lp-new b { padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.lp-upd-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 15px; font-weight: 700; line-height: 1.3; }
.lp-new { display: none; }
@media (max-width: 1060px) {
  .lp-hero-in { grid-template-columns: minmax(0, 1fr); }
  .lp-updates { display: none; }
  .lp-new:not([hidden]) {
    display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 44px; margin: 0 0 18px; padding: 6px 16px 6px 8px;
    border-radius: 999px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(9, 12, 18, .72); color: #fff !important; font-size: 14px; font-weight: 700; text-decoration: none !important;
  }
  .lp-new b { flex: none; }
  .lp-new span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}
.lp-hero h1 { max-width: 760px; margin: 0 0 20px; color: #fff; font-size: clamp(46px, 7vw, 92px); font-weight: 800; letter-spacing: -.045em; line-height: .95; }
.lp-hero h1 em { font-style: normal; background: linear-gradient(90deg, #ff5a1f, #ffb627); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero .lead { max-width: 560px; margin: 0 0 40px; color: #e3e7ef; font-size: 18px; }
.lp-bricks { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 26px 18px; }
.lp-brick {
  --stud: #39435a;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; padding: 0 26px;
  border: 0; border-radius: 8px; background: var(--stud); color: #fff !important; cursor: pointer; text-decoration: none !important;
  font: 800 17px/1.1 var(--font-display); letter-spacing: -.01em;
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255, 255, 255, .16), 0 10px 24px rgba(0, 0, 0, .4);
  transition: transform .08s ease;
}
.lp-brick::before {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 100%; height: 8px; pointer-events: none;
  background: radial-gradient(circle at 50% 100%, var(--stud) 0 7px, transparent 7.5px) center bottom / 28px 16px; background-repeat: round no-repeat;
}
.bf button.lp-brick { font: 800 17px/1.1 var(--font-display); }
.bf button.lp-brick-play { font-size: 30px; }
.lp-brick:hover { transform: translateY(-2px); }
.lp-brick:active { transform: translateY(2px); }
.lp-brick-play {
  --stud: var(--accent); min-height: 84px; padding: 0 48px; color: var(--accent-text) !important;
  box-shadow: inset 0 -7px 0 var(--accent-press), inset 0 1px 0 rgba(255, 255, 255, .3), 0 14px 34px rgba(0, 0, 0, .45);
}
.lp-founder { max-width: 520px; margin: -12px 0 40px; padding: 16px 18px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(9, 12, 18, .72); }
.bf .lp-founder p:last-child { margin: 12px 0 0; color: #c9d0dc; font-size: 14px; }
.fd-count { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; font-weight: 700; }
.bf .fd-count { margin: 0 0 12px; }
.fd-count b { font: 800 28px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.fd-flag { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #1666c5; color: #fff; }
.fd-studs { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 4px; max-width: 480px; }
.fd-studs i { aspect-ratio: 1; border-radius: 50%; background: rgba(127, 137, 156, .28); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .18); }
.fd-studs i.on { background: var(--accent); box-shadow: inset 0 -2px 0 var(--accent-press), inset 0 1px 0 rgba(255, 255, 255, .35); }
.fd-studs i.next { background: transparent; box-shadow: inset 0 0 0 2px var(--accent); animation: fd-pulse 1.4s ease-in-out infinite; }
@keyframes fd-pulse { 50% { transform: scale(.72); opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .fd-studs i.next { animation: none; } }
.fd-box { margin: 0 0 18px; padding: 14px 16px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); }
.bf .fd-box p { margin: 10px 0 0; color: var(--text-2); font-size: 14px; }
.fd-welcome { text-align: center; }
.fd-medal { position: relative; display: grid; place-items: center; width: 96px; height: 96px; margin: 6px auto 22px; border-radius: 50%; background: #1666c5; color: #fff; box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .25); }
.fd-medal b { position: absolute; bottom: -10px; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-text); font: 800 15px/1.3 var(--font-display); }
.bf .fd-welcome p { margin: 0; font-size: 16px; }
.bf .lp-cta-note { margin: 20px 0 0; }
.bf .lp-live { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14px; font-weight: 700; color: #b9f5d3; }
.bf .lp-live:empty { display: none; }
.lp-live i { width: 8px; height: 8px; border-radius: 50%; background: #3ee08a; }
.bf-page.landing button.btn { font-weight: 700; }
.bf-page.landing .bf-container { padding-top: 48px; }
.lp-pic { position: relative; display: block; margin: 0; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; background: var(--ink-2); }
.lp-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-pic figcaption { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); }
.lp-pic figcaption a {
  display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; min-height: 40px; padding: 7px 12px; border-radius: 10px;
  background: rgba(9, 12, 18, .8); color: #d5dbe6 !important; font-size: 13px; line-height: 1.35; text-decoration: none !important;
}
.lp-pic figcaption b { color: #fff; font-weight: 800; }
.lp-pic figcaption a:hover { background: rgba(9, 12, 18, .92); }
.lp-latest { margin-top: 48px; }
.lp-news-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.lp-news { display: flex; flex-direction: column; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); color: var(--text) !important; text-decoration: none !important; }
.lp-news:hover { border-color: var(--accent); }
.lp-news-pic { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ink); }
.lp-news-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lp-news-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 20px; }
.lp-news-meta { color: var(--muted); font-size: 13px; font-weight: 700; }
.bf .lp-news h3 { font-size: 20px; font-weight: 800; line-height: 1.2; }
.lp-news-text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; color: var(--text-2); font-size: 15px; }
.lp-duo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; margin-top: 48px; }
.lp-duo article { overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); }
.lp-duo .lp-pic { border-radius: 0; }
.lp-duo .txt { padding: 22px 26px 26px; }
.bf .lp-big h2 { margin-bottom: 10px; font-size: clamp(24px, 2.4vw, 32px); font-weight: 800; letter-spacing: -.025em; }
.bf .lp-small h3 { margin-bottom: 8px; font-size: 21px; }
.bf .lp-duo p { margin: 0; max-width: 560px; color: var(--text-2); font-size: 16px; }
.bf .lp-duo .lp-go { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin: 16px 0 0; }
.lp-go a:not(.btn) { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.lp-duo .btn { min-height: 44px; }
.bf-page.landing .universe { margin-top: 48px; }
.lp-relics { margin-top: 48px; }
.lp-relics .section-h { align-items: flex-end; margin-bottom: 18px; }
.bf .lp-relics .section-h h2, .bf .lp-latest .section-h h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.025em; }
.bf .lp-sub { margin: 6px 0 0; max-width: 640px; color: var(--text-2); font-size: 15px; }
.lp-relics .items { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); }
.lp-join {
  margin-top: 56px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 420px); gap: 48px; align-items: center;
  padding: 44px 48px; border-radius: var(--radius-lg); background: var(--ink); border: 1px solid var(--ink-line); scroll-margin-top: calc(var(--nav-h) + 16px);
}
.bf .lp-join-copy h2 { margin-bottom: 12px; color: #fff; font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.03em; }
.bf .lp-join-copy p { color: #c4cbd9; font-size: 17px; }
.lp-join-copy ul { display: grid; gap: 10px; margin: 16px 0 0; padding-left: 20px; color: #e3e7ef; font-size: 16px; }
.lp-join-copy li::marker { color: var(--accent); }
.bf .lp-join-copy a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.lp-join .lp-pic { margin-top: 32px; border: 1px solid var(--ink-line); }
.bf .lp-join .lp-pic figcaption a { text-decoration: none; }
.lp-card { padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface); color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.lp-card h2 { margin-bottom: 4px; font-size: 24px; }
.lp-card .sub { margin-bottom: 18px; color: var(--muted); font-size: 14px; }
@media (max-width: 980px) {
  .lp-relics .items { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-join { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px; }
  .lp-join .lp-pic { display: none; }
  .lp-join .lp-card { max-width: 520px; }
}
@media (max-width: 860px) {
  .lp-duo { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .lp-hero { min-height: 0; }
  .lp-hero::after { background: linear-gradient(to top, rgba(8, 11, 17, .94) 35%, rgba(8, 11, 17, .5)); }
  .lp-hero-in { padding: 96px 16px 48px; }
  .lp-hero .lead { font-size: 16px; }
  .lp-bricks { gap: 22px 12px; }
  .lp-brick-play { flex-basis: 100%; }
  .lp-brick:not(.lp-brick-play) { flex: 1 1 auto; }
  .lp-founder { margin: -16px 0 34px; padding: 14px; }
}
@media (max-width: 560px) {
  .lp-relics .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-relics .section-h { flex-wrap: wrap; }
  .lp-relics .section-h .more { margin-left: 0; }
  .lp-duo .txt { padding: 18px 18px 22px; }
  .lp-join { margin-left: -14px; margin-right: -14px; padding: 28px 16px; border-radius: 0; border-width: 1px 0; }
  .lp-join .lp-card { padding: 20px 16px; }
}

.bf-page.ev-page {
  --ink: #0c0806; --ink-2: #160f0c; --ink-3: #221813; --ink-line: rgba(255, 122, 26, .16); --ink-text: #f5ecdf; --ink-muted: #b9a690;
  --surface: #1b1310; --surface-2: #1f1612; --surface-3: #2a1d17; --border: #36261d; --border-strong: #7a5c48;
  --text: #f5ecdf; --text-2: #dccbb5; --muted: #b3a18c; --link: #a6dd6a;
  --accent: #ff7a1a; --accent-hover: #ff8f3d; --accent-press: #c85a0c; --accent-soft: #3b1d0c; --accent-text: #1a0d05;
  --err-text: #ffb0b3; --ok-text: #9fe0b5; --ev-warm: #ffb27a;
  color: var(--text);
}
body.bf.ev-night { background: #0c0806 linear-gradient(180deg, #0c0806, #22150e) fixed; }
.ev-page .bf-container { padding-top: 0; }
.ev-page .thumb.bg-soft { background: radial-gradient(120% 100% at 50% 0%, #3a2418 0%, #24170f 58%, #170f0b 100%); }
.ev-page .cur.studs { color: #ffc96b; }
.ev-page .lp-brick { --stud: #4a3426; }
.ev-page .lp-brick.lp-brick-play { --stud: var(--accent); }
.ev-page a.lp-brick-play { min-height: 66px; padding: 0 34px; font-size: 22px; }
.ev-hero { position: relative; display: flex; align-items: center; min-height: 620px; color: var(--text); }
.ev-hero-in { width: 100%; max-width: calc(var(--page-w) + 48px); margin: 0 auto; padding: 96px 24px 80px; }
.bf .ev-tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 5px 12px; border-radius: 6px; background: var(--accent); color: var(--accent-text); font-size: 14px; font-weight: 800; }
.ev-tag.live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-text); }
.bf .ev-hero h1 { max-width: 860px; margin: 0 0 22px; color: #fff; font-size: clamp(52px, 8.4vw, 116px); font-weight: 800; letter-spacing: -.045em; line-height: .92; text-shadow: 0 6px 40px rgba(0, 0, 0, .6); }
.ev-hero h1 em { font-style: normal; text-shadow: none; background: linear-gradient(90deg, #ff7a1a, #ffb347); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bf .ev-lead { max-width: 580px; margin: 0 0 34px; color: #f0e2cf; font-size: 19px; text-shadow: 0 1px 12px rgba(0, 0, 0, .85); }
.bf .ev-dates { margin: -14px 0 30px; color: var(--text-2); font-weight: 700; }
.ev-cta { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px 22px; }
.bf .ev-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; color: var(--ev-warm); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.ev-count { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 32px; }
.ev-count-l { color: var(--ev-warm); font-weight: 800; }
.ev-count-parts { display: flex; gap: 10px; }
.ev-count-n { display: grid; place-items: center; min-width: 78px; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(255, 122, 26, .3); background: rgba(12, 8, 6, .78); }
.ev-count-n b { color: #fff; font: 800 34px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.ev-count-n small { color: var(--text-2); font-size: 12px; }
.ev-panel { position: relative; padding: 26px 28px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: rgba(27, 19, 16, .93); box-shadow: 0 18px 44px rgba(0, 0, 0, .45); }
.bf .ev-panel h2 { margin: 0 0 16px; color: #fff; font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -.02em; }
.bf .ev-panel h3 { margin: 0 0 8px; color: #fff; font-size: 21px; }
.ev-panel p { color: var(--text-2); }
.ev-live { margin-bottom: 24px; }
.bf .ev-rewards { margin: 14px 0 0; }
.ev-know { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.ev-know dl { display: grid; margin: 0; }
.ev-know-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--border); }
.ev-know-row:first-child { border-top: 0; padding-top: 0; }
.ev-know dt { color: var(--ev-warm); font-weight: 800; }
.ev-know dd { margin: 0; }
.ev-know dd b { display: block; color: #fff; font-size: 17px; }
.ev-know dd span { color: var(--text-2); font-size: 15px; }
.bf .ev-sub { margin: -6px 0 22px; color: #ffd9a8; font: 700 clamp(22px, 2.6vw, 34px)/1.2 var(--font-display); text-shadow: 0 2px 16px rgba(0, 0, 0, .8); }
.ev-mystery {
  position: relative; display: flex; align-items: center; min-height: 480px; margin-top: 24px; overflow: hidden;
  border-radius: var(--radius-lg); border: 1px solid rgba(255, 122, 26, .3); box-shadow: 0 18px 44px rgba(0, 0, 0, .45);
  background: url(/site/img/hollowbrick-manor.svg) right bottom / auto 100% no-repeat, linear-gradient(to top, #0a0507 5.1%, transparent 5.1%), linear-gradient(180deg, #140a1f, #22111f 55%, #341a0c);
}
.ev-mystery::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(12, 6, 14, .9), rgba(12, 6, 14, .6) 45%, rgba(12, 6, 14, 0) 72%); }
.ev-mystery-in { position: relative; z-index: 1; max-width: 660px; padding: 40px 44px; }
.bf .ev-mystery h2 { margin: 0 0 10px; color: #fff; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.03em; }
.bf .ev-mystery p { max-width: 520px; color: #f0e2cf; }
.ev-boxes { display: flex; flex-wrap: wrap; gap: 26px 24px; margin: 40px 0 30px; }
.ev-box {
  --box: #8f4dff;
  position: relative; display: grid; place-items: center; width: 120px; height: 120px; border-radius: 14px;
  background: linear-gradient(160deg, var(--box), #4b1f9e);
  box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .28), inset 0 2px 0 rgba(255, 255, 255, .25), 0 0 34px rgba(160, 90, 255, .4), 0 14px 26px rgba(0, 0, 0, .5);
  transform: rotate(-2deg);
}
.ev-box::before {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 100%; height: 10px; pointer-events: none;
  background: radial-gradient(circle at 50% 100%, var(--box) 0 9px, transparent 9.5px) center bottom / 46px 20px; background-repeat: round no-repeat;
}
.ev-box span { color: #ffd27a; font: 800 74px/1 var(--font-display); text-shadow: 0 4px 0 #2d0f5c, 0 0 24px rgba(255, 190, 90, .55); }
.ev-box:nth-child(2) { --box: #ff8a24; background: linear-gradient(160deg, var(--box), #b23c08); transform: translateY(-14px) rotate(3deg); box-shadow: inset 0 -10px 0 rgba(0, 0, 0, .28), inset 0 2px 0 rgba(255, 255, 255, .3), 0 0 38px rgba(255, 140, 40, .45), 0 14px 26px rgba(0, 0, 0, .5); }
.ev-box:nth-child(2) span { color: #fff6dc; text-shadow: 0 4px 0 #6b2405, 0 0 24px rgba(255, 220, 150, .6); }
.ev-box:nth-child(3) { transform: rotate(-4deg) translateY(4px); }
.bf .ev-unlock { color: var(--ev-warm); font-weight: 800; }
.ev-mystery .ev-count { margin: 0; }
.ev-ready { margin-top: 56px; scroll-margin-top: calc(var(--nav-h) + 16px); }
.bf .ev-ready > h2 { margin: 0 0 18px; color: #fff; font-size: clamp(30px, 3.6vw, 44px); font-weight: 800; letter-spacing: -.03em; text-shadow: 0 2px 20px rgba(0, 0, 0, .7); }
.ev-ready-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 20px; align-items: start; }
.ev-dress { grid-row: span 2; }
.ev-shop { margin: 16px 0 10px; }
.ev-shop .items { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); }
.ev-look .lp-brick { margin-top: 18px; }
.bf .ev-note { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.ev-planets { display: grid; gap: 12px; margin-top: 12px; }
.ev-planet { position: relative; display: block; aspect-ratio: 16 / 7; overflow: hidden; border-radius: 12px; background: var(--ink); text-decoration: none !important; }
.ev-planet-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-planet-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(to top, rgba(12, 8, 6, .94), rgba(12, 8, 6, .62) 60%, transparent); }
.ev-planet-t b { display: block; color: #fff; font: 800 20px/1.1 var(--font-display); }
.ev-planet-t span { display: block; margin-top: 3px; color: #f0e2cf; font-size: 13px; }
.ev-planet:hover { box-shadow: 0 0 0 2px var(--accent); }
.ev-account { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; margin-top: 24px; border-color: rgba(255, 122, 26, .35); background: linear-gradient(120deg, rgba(58, 29, 12, .96), rgba(27, 19, 16, .96)); }
.bf .ev-account p { margin: 0; max-width: 560px; }
.ev-account-go { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px; }
@media (max-width: 980px) {
  .ev-ready-grid, .ev-know { grid-template-columns: minmax(0, 1fr); }
  .ev-dress { grid-row: auto; }
}
@media (max-width: 640px) {
  .ev-hero { min-height: 0; }
  .ev-hero-in { padding: 64px 16px 48px; }
  .bf .ev-lead { font-size: 17px; }
  .ev-panel { padding: 20px 16px; }
  .ev-know-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ev-mystery { min-height: 0; background-size: auto 70%, auto; }
  .ev-mystery::before { background: linear-gradient(180deg, rgba(12, 6, 14, .82), rgba(12, 6, 14, .7)); }
  .ev-mystery-in { padding: 28px 18px; }
  .ev-boxes { gap: 22px 14px; }
  .ev-box { width: 88px; height: 88px; }
  .ev-box span { font-size: 54px; }
  .ev-shop .items { gap: 10px; }
  .ev-count-n { min-width: 64px; }
}

.landing-hero { position: relative; overflow: hidden; color: #fff; padding: 60px 20px; text-align: center; background: linear-gradient(180deg, #0d1119, #121826); }
.landing-card { background: var(--surface); color: var(--text); max-width: 380px; margin: 0 auto; border-radius: var(--radius-lg); padding: 22px; text-align: left; }
.landing-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }

.auth-wrap { max-width: 440px; margin: 20px auto 0; }

.avatar-shell .layout { max-width: none; padding: 0; }
.ownership-note { font-size: 13px; color: var(--muted); margin: 0 0 12px; }

.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.admin-grid > div { background: var(--surface-2); border: 1px solid var(--border); padding: 14px; border-radius: 12px; text-align: center; }
.admin-grid b { display: block; font-family: var(--font-display); font-size: 24px; }
.admin-grid span { font-size: 12px; color: var(--muted); font-weight: 600; }
.part-row { display: grid; grid-template-columns: 110px repeat(6, minmax(60px, 1fr)) 48px 36px; gap: 6px; align-items: end; margin-bottom: 6px; }
.part-row .input, .part-row .select { min-height: 32px; padding: 3px 8px; font-size: 13px; border-radius: 9px; }
.part-row input[type=color] { width: 100%; height: 32px; padding: 0; border: 1px solid var(--border-strong); border-radius: 9px; background: none; }
@media (max-width: 760px) { .part-row { grid-template-columns: repeat(4, 1fr); } }

.game-media { width: min(640px, 100%); flex: none; }
.game-media .game-icon { width: min(420px, 100%); }
.shot-stage { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #0d1220; cursor: zoom-in; border: 1px solid var(--border); }
.shot-stage:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.shot-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.shot-cap { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 5px 12px; border-radius: 999px; background: rgba(9, 13, 22, .74); color: #fff; font-size: 13px; font-weight: 700; pointer-events: none; }
.shot-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(9, 13, 22, .62); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .15s, background .15s; }
.shot-nav:hover { background: rgba(9, 13, 22, .85); }
.shot-nav.prev { left: 12px; }
.shot-nav.next { right: 12px; }
.shot-stage:hover .shot-nav, .shot-stage:focus-within .shot-nav { opacity: 1; }
@media (hover: none) { .shot-nav { opacity: 1; } }
.shot-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 10px; }
.shot-thumb { padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: #0d1220; cursor: pointer; aspect-ratio: 16 / 9; }
.shot-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; opacity: .7; transition: opacity .15s; }
.shot-thumb:hover img, .shot-thumb.active img { opacity: 1; }
.shot-thumb.active { border-color: var(--accent); }
.shot-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.shot-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.shot-tools .help { margin: 0; }
.shot-empty { position: relative; }
.shot-wait { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: rgba(9, 13, 22, .78); color: #fff; font-size: 13px; font-weight: 600; }
.shot-spin { width: 14px; height: 14px; flex: none; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: bf-spin .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { .shot-spin, .loading::before { animation-duration: 3s; } }
.lb-back { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: rgba(5, 8, 14, .93); animation: bf-fade .15s; }
.lb-fig { margin: 0; }
.lb-img { display: block; max-width: 92vw; max-height: 84vh; border-radius: 12px; }
.lb-fig figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; color: #e8ecf3; font-size: 14px; }
.lb-count { color: #9aa6b8; }
.lb-btn { position: fixed; width: 46px; height: 46px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; }
.lb-btn:hover, .lb-btn:focus-visible { background: rgba(255, 255, 255, .22); }
.lb-x { top: 14px; right: 16px; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 16px; }
.lb-next { right: 16px; }

.studio-card {
  position: relative; overflow: hidden; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding: 22px 26px; margin: 12px 0 20px; border-radius: var(--radius-lg); color: #fff;
  background: radial-gradient(90% 140% at 100% 0%, rgba(255, 90, 31, .45), transparent 60%), linear-gradient(135deg, #121826, #0d1119);
  border: 1px solid var(--ink-line);
}
.studio-card .studio-mark { flex: none; width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); box-shadow: 0 3px 0 var(--accent-press); }
.studio-card .hi { flex: 1 1 260px; min-width: 0; }
.studio-card h2 { color: #fff; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.studio-card p { margin: 4px 0 0; color: #c9d0dc; font-size: 15px; }
@media (max-width: 600px) { .studio-card { padding: 20px; } .studio-card h2 { font-size: 22px; } }
.pill.studio { background: var(--accent-soft); color: #b83a0c; }
:root[data-theme="dark"] .pill.studio { color: #ffb38f; }

.upload-card { margin-bottom: 26px; }
.upload-preview { display: grid; grid-template-columns: 220px 1fr; gap: 16px; align-items: center; margin: 4px 0 14px; }
.upload-stage { position: relative; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border);
  background: radial-gradient(120% 100% at 50% 0%, #ffffff 0%, #f3efe8 60%, #e9e3d9 100%); }
:root[data-theme="dark"] .upload-stage { background: radial-gradient(120% 100% at 50% 0%, #252d3b 0%, #1a202c 60%, #141922 100%); }
.upload-stage .figure-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.upload-flat img { display: block; width: 100%; max-width: 420px; height: auto; border-radius: 8px; border: 1px solid var(--border); background: #fff; }
@media (max-width: 640px) { .upload-preview { grid-template-columns: 1fr; } .upload-stage { max-width: 260px; } }
.creation-thumb { flex: none; width: 72px; display: block; }
.creation-thumb .thumb { border-radius: 12px; }
.creation-thumb svg { display: block; width: 100%; height: 100%; }

.approval-tools { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 14px; }
.approval-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.approval-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; }
.approval-pic { aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--border); }
.approval-pic img { width: 100%; height: 100%; object-fit: contain; transition: filter .15s; }
.approval-pic.bg-striped { background: repeating-linear-gradient(45deg, #d9d5ce 0 12px, #efebe4 12px 24px); }
.approval-pic.bg-white { background: #fff; }
.approval-pic.bg-black { background: #000; }
.approval-pic.blurred img { filter: blur(14px); }
.approval-meta { padding: 10px 12px; display: grid; gap: 4px; }
.approval-actions { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 12px 12px; margin-top: auto; }

.ac-code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 12.5px; white-space: nowrap; }
.ac-detail { max-width: 460px; font-size: 13px; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.ac-detail summary { cursor: pointer; }
.ac-detail[open] summary { color: var(--muted); margin-bottom: 4px; }
.appeal-card { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); padding: 12px 14px; display: grid; gap: 8px; }
.appeal-card + .appeal-card { margin-top: 12px; }
.appeal-text { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.ban-card .notice { margin: 14px 0 0; }
.ban-card form { margin-top: 18px; }

@media (prefers-reduced-motion: reduce) {
  .item-card .thumb, .game-card .game-cover, .lp-brick { transition: none; }
  .game-card:hover .game-cover { transform: none; }
}

.universe { margin: 28px 0 8px; border-radius: 14px; overflow: hidden; background: #070a18; border: 1px solid #1d2147; color: #e9ecff; }
.uv-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 18px 22px 12px; background: linear-gradient(180deg, #0b0f26, #070a18); flex-wrap: wrap; }
.uv-head h2 { margin: 0 0 4px; font-size: 22px; color: #fff; letter-spacing: 0.2px; }
.uv-head p { margin: 0; max-width: 620px; color: #a9b0d8; font-size: 14px; line-height: 1.45; }
.uv-side { display: flex; align-items: center; gap: 16px; font-size: 14px; color: #c9cff5; white-space: nowrap; }
.uv-side .more { color: #9fb6ff; }
.uv-stat b { color: #fff; margin: 0 2px; }
.uv-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #50557a; margin: 0 6px 1px 12px; }
.uv-dot.on { background: #3ee08a; }
.uv-stage { position: relative; height: clamp(340px, 46vw, 540px); }
.uv-stage.compact { height: clamp(300px, 40vw, 440px); }
.uv-canvas { position: absolute; inset: 0; display: block; }
.uv-layer { position: absolute; inset: 0; }
.uv-planet { position: absolute; transform: translate(-50%, -50%); border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; outline-offset: 6px; }
.uv-planet:focus-visible { outline: 2px solid #9fb6ff; }
.uv-moon { z-index: 1; min-width: 24px; min-height: 24px; }
.uv-lazy-stage { display: grid; place-items: center; background: #070a18 url('/site/img/notes-stars.jpg') center / cover no-repeat; }
.uv-glyph { display: flex; pointer-events: none; opacity: 0.9; }
.uv-label { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 4px 9px 5px; border-radius: 8px; background: rgba(7, 10, 24, 0.78); white-space: nowrap; pointer-events: none; }
.uv-label b { color: #fff; font-size: 13px; font-weight: 700; }
.uv-label span { font-size: 12px; }
.uv-live { color: #57eb98; display: inline-flex; align-items: center; gap: 5px; }
.uv-live i { width: 6px; height: 6px; border-radius: 50%; background: #3ee08a; display: inline-block; }
.uv-idle { color: #9fa6cf; }
.uv-off { color: #6c7299; }
.uv-been { color: #ffc56b; }
.uv-event { display: inline-block; padding: 1px 7px; border-radius: 999px; background: #ff7a1a; color: #1a0d05; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; line-height: 1.5; }
.uv-card { position: absolute; z-index: 2; width: 236px; padding: 12px; border-radius: 12px; background: #11163a; border: 1px solid #2c3370; color: #e9ecff; }
.uv-card.hidden { display: none; }
.uv-card-top { display: flex; gap: 10px; align-items: center; }
.uv-card-top strong { display: block; font-size: 15px; color: #fff; }
.uv-card-top small { color: #a9b0d8; }
.uv-swatch { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: none; }
.uv-card-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0; font-size: 12px; color: #a9b0d8; }
.uv-card-stats .ok { color: #57eb98; }
.uv-card-actions { display: flex; gap: 8px; }
.uv-card-actions .btn { flex: 1; justify-content: center; }
@media (max-width: 640px) {
  .uv-head { padding: 14px 14px 10px; }
  .uv-label b { font-size: 12px; }
}

.uv-card-hint { margin-top: 8px; font-size: 12px; color: #8d94c4; }
.uv-menu { position: absolute; width: 0; height: 0; z-index: 3; }
.uv-mi, .uv-menu-name { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(0.2); opacity: 0;
  transition: transform 0.32s cubic-bezier(0.2, 1.4, 0.4, 1), opacity 0.2s; transition-delay: calc(var(--i, 0) * 45ms); }
.uv-menu.open .uv-mi { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1); opacity: 1; }
.uv-menu.open .uv-menu-name { transform: translate(-50%, calc(-50% + var(--dy))) scale(1); opacity: 1; }
.uv-mi { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #3a4386; background: #151b46; color: #e9ecff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.uv-mi:hover, .uv-mi:focus-visible { background: #232c6e; border-color: #9fb6ff; outline: none; }
.uv-mi.play { width: 52px; height: 52px; background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.uv-mi.play:hover { filter: brightness(1.1); }
.uv-mi.close { width: 30px; height: 30px; background: #0d1130; }
.uv-mi.on { color: #ffd166; border-color: #ffd166; }
.uv-mi::after { content: attr(data-label); position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  padding: 3px 8px; border-radius: 6px; background: #0b0f26; color: #e9ecff; font-size: 12px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.15s; }
.uv-mi:hover::after, .uv-mi:focus-visible::after { opacity: 1; }
.uv-menu-name { display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; border: 1px solid;
  background: #0b0f26; color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; pointer-events: none; }
.uv-menu-name .uv-live { font-size: 12px; font-weight: 600; }

.tryit { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 0; }
.tryit-label { font-size: 12px; font-weight: 800; color: var(--text-2); margin-right: 2px; }
.tryit-chip { font: inherit; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-2); cursor: pointer; line-height: 1.5; }
.tryit-chip:hover { background: var(--surface-3); }
.tryit-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.react-card { border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; margin: 8px 0; background: var(--surface-2); }
.react-card .grid-2 { align-items: end; }
.item-live { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }

.grow { flex: 1; min-width: 0; }
.lbl { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.ench-badge {
  --tier: #58b9ff;
  display: inline-flex; align-items: center; gap: 5px; flex-wrap: wrap; font-size: 13px; font-weight: 800; line-height: 1.4;
  padding: 2px 10px; border-radius: 999px; vertical-align: middle;
  color: color-mix(in srgb, var(--tier) 52%, #000);
  background: color-mix(in srgb, var(--tier) 13%, var(--surface));
  border: 1px solid color-mix(in srgb, var(--tier) 42%, transparent);
}
:root[data-theme="dark"] .ench-badge { color: color-mix(in srgb, var(--tier) 72%, #fff); background: color-mix(in srgb, var(--tier) 16%, var(--surface)); }
.ench-badge.small { font-size: 12px; padding: 1px 8px; gap: 4px; }
.ench-star { color: var(--tier); text-shadow: 0 0 6px color-mix(in srgb, var(--tier) 60%, transparent); }
.ench-num { font-weight: 700; opacity: .7; font-variant-numeric: tabular-nums; }
.ench-variant { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; padding: 0 6px; border-radius: 999px; line-height: 16px; color: #fff; background: var(--ink-3); }
.ench-chroma .ench-variant { background: linear-gradient(90deg, #ff4f8b, #ffb627, #3ddc97, #4f8bff, #b45cff); }
.ench-radiant { box-shadow: 0 0 0 1px color-mix(in srgb, var(--tier) 50%, transparent), 0 0 14px color-mix(in srgb, var(--tier) 45%, transparent); }
.ench-radiant .ench-variant { background: linear-gradient(90deg, #fff6c9, #ffc61a, #fff6c9); color: #3a2a00; background-size: 200% 100%; animation: ench-shine 2.4s linear infinite; }
@keyframes ench-shine { from { background-position: 0 0; } to { background-position: 200% 0; } }

.thumb.enchanted { border-color: color-mix(in srgb, var(--tier) 70%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--tier) 45%, transparent), 0 0 18px color-mix(in srgb, var(--tier) 28%, transparent); }
.tag-ench {
  position: absolute; z-index: 2; left: 8px; top: 8px; max-width: calc(100% - 16px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 12px; font-weight: 800; letter-spacing: .04em; line-height: 20px; padding: 0 8px; border-radius: 999px;
  color: #fff; background: color-mix(in srgb, var(--tier) 48%, #0d1119);
}

.enchant-card { border-top: 3px solid transparent; border-image: linear-gradient(90deg, #58b9ff, #ff7a2e, #b45cff, #ffc61a) 1; }
.ench-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.ench-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 12px 0; }
@media (max-width: 560px) { .ench-stats { grid-template-columns: 1fr 1fr; } }
.ench-stat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.ench-stat .big { font-family: var(--font-display); font-size: 24px; font-weight: 800; margin-top: 2px; }
.ench-tiers { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; margin: 6px 0; }
.ench-tier { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; padding: 1px 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--tier) 40%, transparent); background: color-mix(in srgb, var(--tier) 10%, var(--surface)); }
.ench-tier::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--tier); }
.ench-tier.big { font-size: 14px; padding: 4px 12px; }
.ench-charge { margin: 10px 0; }
.ench-charge-bar { height: 10px; border-radius: 999px; background: var(--surface-3); overflow: hidden; border: 1px solid var(--border); margin-bottom: 4px; }
.ench-charge-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #58b9ff, #b45cff, #ffc61a); transition: width .4s ease; }
.btn-enchant { background: linear-gradient(135deg, #7b3cff, #c45cff 55%, #ffb627); border-color: #7b3cff; color: #fff !important; box-shadow: 0 2px 0 #4f1fb8, 0 0 18px rgba(180, 92, 255, .35); }
.btn-enchant:hover { filter: brightness(1.08); }
.btn-enchant:disabled { filter: grayscale(.6); box-shadow: none; }
.ench-section { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--border); }
.ench-section h3 { font-size: 16px; font-weight: 800; margin-bottom: 10px; }
.ench-row { display: flex; align-items: center; gap: 12px; padding: 8px 0; flex-wrap: wrap; }
.ench-row + .ench-row { border-top: 1px dashed var(--border); }
.ench-thumb { width: 56px; flex: none; border-radius: 12px; }
.ench-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 14px 12px; }
.ench-tile { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; color: var(--text) !important; }
.ench-tile:hover { text-decoration: none !important; }
.ench-tile .thumb { width: 100%; }
.ench-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.ench-log.big { font-size: 14px; gap: 8px; }
.ench-log li { padding: 4px 0; border-bottom: 1px solid var(--border); }
.ench-log li:last-child { border-bottom: 0; }

.ench-preview-stage, .ench-reveal {
  position: relative; width: 100%; max-width: 360px; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #2b3346, #0f131b); cursor: grab; touch-action: pan-y; margin-top: 8px;
}
.ench-preview-stage.big { max-width: 520px; margin-top: 0; }
.ench-preview-stage .figure-canvas, .ench-reveal .figure-canvas, .copy-stage .figure-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ench-preview-caption { margin-top: 10px; font-size: 14px; }
.ench-result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: center; }
.ench-result:has(.ench-fail) { display: block; }
@media (max-width: 640px) { .ench-result { grid-template-columns: 1fr; } }
.ench-reveal { margin: 0; max-width: none; animation: ench-pop .6s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes ench-pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.ench-reveal-title { font-family: var(--font-display); font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.ench-reveal-text p { margin: 8px 0 0; }
.ench-fail { text-align: center; }
.ench-fail .ench-reveal-title { color: var(--muted); }

.ench-page { --tier-ink: color-mix(in srgb, var(--tier) 45%, var(--text)); }
:root[data-theme="dark"] .ench-page { --tier-ink: color-mix(in srgb, var(--tier) 78%, #fff); }
.ench-head { max-width: 62ch; margin: 4px 0 36px; }
.ench-h1 { font-size: 40px; margin-bottom: 10px !important; }
.ench-spectrum { display: flex; width: 96px; height: 5px; margin: 0 0 16px; border-radius: 3px; overflow: hidden; }
.ench-spectrum span, .ench-share-bar span { display: block; background: var(--tier); min-width: 3px; }
.ench-intro { margin: 0 0 18px; font-size: 17px; line-height: 1.5; color: var(--text-2); }
.ench-head-links { display: flex; flex-wrap: wrap; gap: 8px; }
.ench-sec-head { margin-bottom: 16px; }
.ench-sec-head h2 { font-size: 24px; }
.ench-sec-head p { margin: 6px 0 0; font-size: 15px; color: var(--text-2); max-width: 60ch; }

.ench-lib { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 440px); gap: 20px 36px; align-items: start; }
.ench-lib-stage { position: sticky; top: calc(var(--nav-h) + 12px); }
.ench-preview-stage.big { max-width: none; margin-top: 0; }
.ench-preview-caption { margin-top: 12px; }
.ench-cap-line { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ench-cap-name { font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.ench-cap-tier { font-size: 13px; font-weight: 700; color: var(--tier-ink); }
.ench-cap-blurb { margin: 4px 0 0; font-size: 15px; color: var(--text-2); }

.ench-tier-group + .ench-tier-group { margin-top: 22px; }
.ench-tier-head { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.ench-tier-head h3 { font-size: 17px; color: var(--tier-ink); }
.ench-tier-share { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ench-fx-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.ench-fx {
  display: flex; align-items: flex-start; gap: 12px; width: 100%; min-height: 44px; padding: 10px 12px; text-align: left; font: inherit; color: var(--text);
  cursor: pointer; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); transition: border-color .12s, background-color .12s;
}
.ench-fx:hover { border-color: var(--border-strong); background: var(--surface-2); }
.ench-fx.active { border-color: var(--tier); box-shadow: inset 0 0 0 1px var(--tier); background: color-mix(in srgb, var(--tier) 9%, var(--surface)); }
.ench-fx:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ench-fx-chip { flex: none; width: 28px; height: 28px; margin-top: 1px; border-radius: 6px; border: 1px solid rgba(0, 0, 0, .12); }
.ench-fx-text { display: block; min-width: 0; }
.ench-fx-name { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-weight: 800; line-height: 1.3; }
.ench-fx-tag { font-size: 12px; font-weight: 700; line-height: 18px; padding: 0 6px; border-radius: 4px; color: var(--text-2); background: var(--surface-3); }
.ench-fx-tag.season { color: var(--tier-ink); background: color-mix(in srgb, var(--tier) 12%, var(--surface)); }
.ench-fx-blurb { display: block; margin-top: 2px; font-size: 13px; line-height: 1.4; color: var(--text-2); }

.ench-rules { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 24px 48px; align-items: start; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); }
.ench-rules .ench-sec-head { grid-column: 1 / -1; margin-bottom: 0; }
.ench-steps { margin: 0; padding: 0; list-style: none; counter-reset: ench-step; display: grid; gap: 14px; max-width: 64ch; }
.ench-steps li { position: relative; padding-left: 44px; font-size: 15px; line-height: 1.55; color: var(--text-2); }
.ench-steps li b { color: var(--text); }
.ench-steps li::before {
  counter-increment: ench-step; content: counter(ench-step); position: absolute; left: 0; top: 0; width: 30px; height: 30px; line-height: 30px; text-align: center;
  font-family: var(--font-display); font-size: 15px; font-weight: 800; color: var(--text); background: var(--surface-3); border-radius: 8px;
}
.ench-share h3 { font-size: 15px; margin-bottom: 10px; }
.ench-share-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--surface-3); }
.ench-share-key { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 12px 0 0; }
.ench-share-key div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.ench-share-key dt { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.ench-share-key dt::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--tier); }
.ench-share-key dd { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.ench-share-note { margin: 14px 0 0; font-size: 13px; color: var(--muted); }

.ench-items-sec, .ench-recent { margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--border); scroll-margin-top: calc(var(--nav-h) + 16px); }
.ench-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 22px 18px; }
.ench-item { display: block; color: var(--text) !important; border-radius: 6px; }
.ench-item:hover { text-decoration: none !important; }
.ench-item:hover .ench-item-name { text-decoration: underline; }
.ench-item:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.ench-item-name { font-weight: 700; margin-top: 10px; line-height: 1.3; }
.ench-item-chance { font-family: var(--font-display); font-size: 24px; font-weight: 800; letter-spacing: -.01em; line-height: 1.1; margin-top: 2px; }
.ench-item-chance span { font-family: inherit; font-size: 13px; font-weight: 700; color: var(--text-2); letter-spacing: 0; }
.ench-item-meta { margin-top: 6px; font-size: 13px; color: var(--text-2); display: flex; align-items: center; flex-wrap: wrap; gap: 2px 0; }
.ench-item-dot { display: inline-block; width: 100%; height: 0; }
.ench-empty { padding: 26px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2); max-width: 64ch; }
.ench-empty p { margin: 0; font-size: 15px; }
.ench-empty p:first-child { font-weight: 700; margin-bottom: 4px; }

.ench-feed { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.ench-feed li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); font-size: 14px; }
.ench-feed li:first-child { border-top: 0; padding-top: 0; }
.ench-feed-thumb { width: 44px; height: 44px; }
.ench-feed-text { min-width: 0; line-height: 1.4; }
.ench-feed-result { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-top: 1px; }
.ench-feed-fx { color: var(--tier-ink); }
.ench-feed-tier { font-size: 12px; font-weight: 700; color: var(--text-2); }
.ench-feed-when { font-size: 13px; color: var(--muted); white-space: nowrap; }

@media (max-width: 900px) {
  .ench-lib { grid-template-columns: 1fr; }
  .ench-lib-stage { position: static; order: -1; max-width: 440px; }
  .ench-rules { grid-template-columns: 1fr; }
}
@media (max-width: 599px) {
  .ench-h1 { font-size: 32px; }
  .ench-intro { font-size: 15px; }
  .ench-sec-head h2 { font-size: 21px; }
  .ench-rules, .ench-items-sec, .ench-recent { margin-top: 40px; padding-top: 24px; }
  .ench-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .ench-feed li { grid-template-columns: 40px minmax(0, 1fr); }
  .ench-feed-thumb { width: 40px; height: 40px; }
  .ench-feed-when { grid-column: 2; }
}

.copy-page { grid-template-columns: minmax(0, 5fr) minmax(0, 4fr) minmax(0, 4fr); margin-top: 16px; }
@media (max-width: 960px) { .copy-page { grid-template-columns: 1fr; } }
.copy-stage { width: 100%; max-width: 460px; }
.copy-stage:has(.figure-canvas) { background: radial-gradient(circle at 50% 40%, #2b3346, #0f131b); cursor: grab; touch-action: pan-y; }
.copy-history { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--border); display: grid; gap: 10px; font-size: 14px; }
.copy-history li { position: relative; }
.copy-history li::before { content: ""; position: absolute; left: -20px; top: 7px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--border-strong); }
.copy-kind { font-weight: 800; }
.copy-enchanted, .copy-rerolled { color: #8a3fd1; }
.copy-disenchanted { color: var(--muted); }
.copy-traded { color: var(--link); }
.copy-sold, .copy-bought { color: var(--buy); }
:root[data-theme="dark"] .copy-enchanted, :root[data-theme="dark"] .copy-rerolled { color: #c99bff; }

.values-table td { vertical-align: middle; }
.values-item { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text) !important; }
.values-thumb { width: 40px; flex: none; border-radius: 9px; }

.ad-card { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--surface-2); }
.ad-card + .ad-card { margin-top: 10px; }
.ad-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.ad-body { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 14px; align-items: center; }
@media (max-width: 720px) { .ad-body { grid-template-columns: 1fr; } .ad-arrow { transform: rotate(90deg); justify-self: center; } }
.ad-arrow { font-size: 24px; color: var(--muted); }
.ad-items { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.ad-item { width: 92px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; color: var(--text) !important; font: inherit; text-align: left; }
.ad-item:hover { text-decoration: none !important; }
.ad-item .thumb { width: 100%; }
.ad-item.pickable { background: none; border: 2px solid transparent; border-radius: 14px; padding: 3px; cursor: pointer; }
.ad-item.pickable[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.ad-items.picker { max-height: 340px; overflow: auto; padding: 4px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.ad-wants { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.ad-variant { border: 1px solid color-mix(in srgb, var(--tier) 45%, transparent); background: color-mix(in srgb, var(--tier) 12%, var(--surface)); }
.ad-search { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.pill-x { border: 0; background: none; color: inherit; font: inherit; font-weight: 800; padding: 0 2px; cursor: pointer; line-height: 1; opacity: .7; }
.pill-x:hover { opacity: 1; }

.twostep-steps { margin: 0 0 12px; padding-left: 20px; }
.twostep-setup { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.twostep-qr { background: #fff; padding: 8px; border-radius: 12px; border: 1px solid var(--border); image-rendering: pixelated; }
.twostep-secret { display: inline-block; margin-top: 4px; font: 700 15px/1.4 ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .06em; padding: 6px 10px; border-radius: 8px; background: var(--surface-3); user-select: all; word-break: break-all; }
.recovery-codes { font: 600 14px/1.7 ui-monospace, "Cascadia Mono", Consolas, monospace; columns: 2; background: var(--surface); color: var(--text); padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); margin: 8px 0; user-select: all; }
.fx-pic { flex: none; width: 72px; height: 72px; border-radius: 10px; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #2b3346, #0f131b); border: 1px solid var(--border); }
.fx-pic img { width: 64px; height: 64px; object-fit: contain; }

body.er-open { overflow: hidden; }
.er-overlay {
  --tier: #58b9ff;
  position: fixed; inset: 0; z-index: 3500; color: #fff; overflow: hidden; user-select: none;
  background: radial-gradient(circle at 50% 42%, #161b28, #04060a 70%);
  animation: er-in .25s ease-out;
}
.er-overlay.closing { animation: er-out .22s ease-in forwards; }
@keyframes er-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes er-out { to { opacity: 0; } }
.er-fx { position: fixed; inset: 0; display: block; }
.er-center { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 16px; text-align: center; pointer-events: none; }
.er-center button { pointer-events: auto; }
.er-kicker { font: 800 14px/1.2 var(--font); letter-spacing: .22em; text-transform: uppercase; color: #c9d3e6; min-height: 18px; transition: color .25s; animation: er-breathe 1.2s ease-in-out infinite; }
.t-spark .er-kicker, .t-flame .er-kicker, .t-aura .er-kicker, .t-mythic .er-kicker { animation: none; color: #e9eef8; }
@keyframes er-breathe { 50% { opacity: .55; } }
.er-stage { position: relative; flex: none; width: min(400px, 76vw, 48vh); aspect-ratio: 1; filter: brightness(.5) saturate(.5); transition: filter .5s ease; }
.er-stage .figure-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.er-stage.lit { filter: none; animation: er-pop .6s cubic-bezier(.2, 1.5, .4, 1); }
@keyframes er-pop { from { transform: scale(.82); } to { transform: none; } }
.er-info { min-height: 210px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.er-tier {
  font: 900 clamp(40px, 9vw, 78px)/1 var(--font-display); letter-spacing: .07em; color: var(--tier);
  text-shadow: 0 0 22px var(--tier), 0 0 64px color-mix(in srgb, var(--tier) 60%, transparent);
  animation: er-slam .6s cubic-bezier(.18, 1.7, .35, 1) both;
}
.t-mythic .er-tier {
  background: linear-gradient(100deg, #fff1b0 0%, #ffc61a 30%, #fff8dc 50%, #ffb300 70%, #fff1b0 100%); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 18px rgba(255, 198, 26, .8)); text-shadow: none;
  animation: er-slam .6s cubic-bezier(.18, 1.7, .35, 1) both, er-sheen 2.4s linear .6s infinite;
}
@keyframes er-slam { 0% { transform: scale(2.6); opacity: 0; letter-spacing: .4em; } 60% { opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes er-sheen { to { background-position: -250% 0; } }
.er-pips { display: flex; gap: 8px; font-size: 22px; line-height: 1; margin: 2px 0 4px; }
.er-pip { color: rgba(255, 255, 255, .16); }
.er-pip.on { color: var(--tier); text-shadow: 0 0 12px var(--tier); animation: er-pip .4s cubic-bezier(.2, 1.8, .4, 1) backwards; }
@keyframes er-pip { from { transform: scale(0) rotate(-90deg); opacity: 0; } }
.er-name { font: 800 32px/1.15 var(--font-display); animation: er-rise .5s ease-out .45s backwards; }
.er-blurb { color: #aeb8cb; max-width: 460px; font-size: 15px; animation: er-rise .5s ease-out .6s backwards; }
@keyframes er-rise { from { transform: translateY(14px); opacity: 0; } }
.er-variant {
  margin-top: 6px; padding: 5px 16px; border-radius: 999px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; font-size: 15px;
  animation: er-banner .7s cubic-bezier(.2, 1.6, .4, 1) .8s backwards;
}
.er-variant small { font-weight: 700; letter-spacing: .02em; text-transform: none; opacity: .8; }
.er-chroma { color: #14101c; background: linear-gradient(90deg, #ff4f8b, #ffb627, #3ddc97, #4f8bff, #b45cff, #ff4f8b); background-size: 300% 100%; box-shadow: 0 0 26px rgba(180, 92, 255, .55); animation: er-banner .7s cubic-bezier(.2, 1.6, .4, 1) .8s backwards, er-hue 2.6s linear infinite; }
.er-radiant { color: #3a2a00; background: linear-gradient(90deg, #fff4c2, #ffc61a, #fff4c2); background-size: 200% 100%; box-shadow: 0 0 30px rgba(255, 198, 26, .8); animation: er-banner .7s cubic-bezier(.2, 1.6, .4, 1) .8s backwards, er-hue 1.8s linear infinite; }
@keyframes er-banner { from { transform: scaleX(0); opacity: 0; } }
@keyframes er-hue { to { background-position: -300% 0; } }
.er-meta { color: #d3dae7; font-size: 14px; font-weight: 600; animation: er-rise .5s ease-out .95s backwards; }
.er-odds { color: #8d97ab; font-size: 12.5px; animation: er-rise .5s ease-out 1.05s backwards; }
.er-actions { display: flex; gap: 10px; justify-content: center; margin-top: 14px; animation: er-rise .4s ease-out 1.2s backwards; }
.er-actions.quick { animation-delay: .35s; }
.er-actions .btn:not(.btn-enchant) { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); color: #fff !important; }
.er-flash { position: fixed; inset: 0; z-index: 3; pointer-events: none; opacity: 0; }
.er-flash.go { animation: er-flash .35s ease-out; }
.er-flash.go.big { animation: er-flash .7s ease-out; }
@keyframes er-flash { 0% { opacity: 1; } 100% { opacity: 0; } }
.er-skip { position: fixed; left: 0; right: 0; bottom: 22px; z-index: 4; text-align: center; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .42); pointer-events: none; }
.er-miss { color: #c2cad8; font-size: 15px; animation: er-rise .4s ease-out backwards; }
.er-charge { width: min(340px, 80vw); margin-top: 6px; animation: er-rise .4s ease-out .1s backwards; }
.er-charge-bar { height: 12px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; border: 1px solid rgba(255, 255, 255, .16); }
.er-charge-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #58b9ff, #b45cff, #ffc61a); transition: width .6s cubic-bezier(.2, 1.3, .4, 1); box-shadow: 0 0 14px rgba(180, 92, 255, .6); }
.er-charge-label { margin-top: 6px; font-weight: 800; font-size: 13px; color: #e1e7f2; }
.er-full { margin-top: 8px; font-weight: 900; color: #ffd75a; text-shadow: 0 0 14px rgba(255, 198, 26, .7); animation: er-rise .4s ease-out backwards, er-breathe 1.4s ease-in-out .4s infinite; }
@media (max-width: 560px) { .er-name { font-size: 26px; } .er-info { min-height: 230px; } }
@media (prefers-reduced-motion: reduce) {
  .er-overlay, .er-overlay *, .er-overlay *::before { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

.legal { max-width: 820px; margin: 24px auto; padding: 32px 36px; line-height: 1.6; }
.legal h2 { font-family: var(--font-display); font-size: 20px; margin: 26px 0 8px; }
.legal p, .legal li { font-size: 15px; }
.legal ul { padding-left: 22px; margin: 6px 0 12px; }
.legal li { margin: 4px 0; }
@media (max-width: 640px) { .legal { padding: 20px 16px; } }

.js [data-ssr] { display: none; }
.ssr-nav { display: flex; flex-wrap: wrap; gap: 6px 16px; max-width: 980px; margin: 0 auto; padding: 16px; font-weight: 600; }
.ssr-main { max-width: 980px; margin: 0 auto; padding: 0 16px 40px; line-height: 1.6; }
.ssr-main img { max-width: 100%; height: auto; }
.info .lead { font-size: 17px; color: var(--text-2); }
.info figure { margin: 18px 0; }
.info figure img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--border); }
.info figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); }
.info ol { padding-left: 22px; margin: 6px 0 12px; }
.info ol li { margin: 4px 0; }
.news-list { list-style: none; padding: 0 !important; }
.news-list li { margin: 0 !important; padding: 14px 0; border-top: 1px solid var(--border); }
.lp-about { max-width: 820px; margin: 36px auto 0; padding: 32px 36px; line-height: 1.6; }
.lp-about h2 { font-family: var(--font-display); font-size: 21px; margin: 26px 0 8px; }
.lp-about h2:first-child { margin-top: 0; }
.lp-about ul { padding-left: 22px; }
.lp-about li { margin: 6px 0; }
.lp-about details { border-top: 1px solid var(--border); }
.lp-about summary { cursor: pointer; font-weight: 700; padding: 10px 0; }
.lp-about details p { margin: 0 0 12px; color: var(--text-2); }
@media (max-width: 640px) { .lp-about { padding: 20px 16px; } }
.share-row { display: flex; gap: 8px; margin: 6px 0 16px; }
.share-row .input { flex: 1; min-width: 0; }
.share-code { width: 100%; min-height: 84px; font-family: ui-monospace, Consolas, monospace; font-size: 12px; resize: vertical; }
.share-badge { display: block; margin: 8px 0; }
.earn-card { margin-bottom: 18px; }
.earn-row { display: flex; flex-wrap: wrap; gap: 12px 40px; }
.earn-v { font-size: 22px; font-weight: 800; margin-top: 2px; }
.invite-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; border-color: var(--accent); }
.invite-banner b { font-size: 17px; }
.player-card { display: block; width: 100%; height: auto; border-radius: 12px; margin-bottom: 8px; }
.orbit-hero .lead { max-width: 720px; }
.orbit-me, .orbit-earn, .orbit-discord { margin-top: 18px; }
.orbit-me-head { display: flex; align-items: center; gap: 16px; }
.orbit-me-head h2 { margin: 2px 0; }
.orbit-bar { height: 12px; border-radius: 999px; background: var(--surface-3); overflow: hidden; margin: 16px 0 8px; }
.orbit-bar i { display: block; height: 100%; background: linear-gradient(90deg, #2f8fe8, #7c4ddb, #e0a10f); border-radius: 999px; }
.orbit-today { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin-top: 12px; }
.orbit-today .label { grid-column: 1 / -1; }
.orbit-src { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; }
.orbit-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.orbit-tier h3 { margin: 10px 0 2px; }
.orbit-tier ul { padding-left: 20px; margin: 10px 0 0; }
.orbit-tier.current { border-color: var(--accent); }
.orbit-earn ul { padding-left: 20px; }
.orbit-earn li { margin: 6px 0; }
.orbit-confirm { margin-bottom: 18px; border-color: var(--accent); }
.orbit-discord ol { padding-left: 22px; }
.orbit-discord li { margin: 6px 0; }
@media (max-width: 760px) { .orbit-tiers { grid-template-columns: 1fr; } }
.uv-held { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; }
.gx-fight { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 999px; background: rgba(255, 90, 60, 0.22); color: #ff9c85;
  font-size: 12px; font-weight: 800; letter-spacing: 0.6px; text-transform: uppercase; animation: pl-flash 1.2s infinite alternate; }
@keyframes pl-flash { from { opacity: 0.65; } to { opacity: 1; } }
.pl-moon { display: inline-flex; align-items: center; gap: 6px; min-width: 0; padding: 3px 10px 3px 8px; border-radius: 999px; text-decoration: none;
  color: #fff; font-size: 13px; font-weight: 700; background: color-mix(in srgb, var(--m) 22%, transparent);
  border: 1px solid color-mix(in srgb, var(--m) 55%, transparent); }
.pl-moon span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pl-moon:hover { background: color-mix(in srgb, var(--m) 35%, transparent); }
.pl-moon.attacker { box-shadow: 0 0 0 2px rgba(255, 90, 60, 0.35); }
.pl-front-orb { flex: 0 0 auto; width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--c) 40%, #fff), var(--c) 55%, color-mix(in srgb, var(--c) 40%, #000)); }

.gw-card { margin-top: 14px; }
.gw-card.fight { border-color: rgba(255, 90, 60, 0.6); }

.pr-card { margin-top: 14px; }
.bf .rw-intro { margin: 0 0 16px; color: var(--text-2); }
.rw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.rw-card { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface-2); }
.rw-card.got { border-color: var(--ok-text); }
.rw-pic { display: block; width: 100%; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; background: var(--surface-3); }
.rw-pic .thumb { width: 100%; height: 100%; }
.rw-pic img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bf .rw-name { color: var(--text); font-weight: 800; line-height: 1.25; }
.rw-hint { color: var(--text-2); font-size: 14px; line-height: 1.4; }
@media (max-width: 480px) { .rw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
.pr-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 16px; }
.pr-row { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.pr-h + .pr-row { border-top: 0; }
.pr-pic { flex: none; width: 64px; height: 64px; display: block; border-radius: 12px; overflow: hidden; background: var(--surface-3); }
.pr-pic .thumb { width: 100%; height: 100%; }
.pr-pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pr-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.pr-body b { overflow-wrap: anywhere; }
.pr-progress { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pr-progress .pr-track { flex: 1 1 160px; max-width: 320px; }
.pr-track { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.pr-track i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.adm-track { padding: 4px 0 14px; }
.adm-track .adm-sub-h { margin: 12px 0 6px; font-size: 14px; }
.gw-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gw-head .col { flex: 1 1 260px; gap: 4px; }
.gw-head .pl-moon, .gw-rows .pl-moon, .gw-head .muted .pl-moon { color: var(--text); }
.gw-rows { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.gw-row { display: grid; grid-template-columns: minmax(90px, 200px) minmax(0, 1fr) 44px; align-items: center; gap: 10px; }
.gw-track { height: 8px; border-radius: 999px; background: var(--line, rgba(127, 127, 127, 0.2)); overflow: hidden; }
.gw-track i { display: block; height: 100%; border-radius: 999px; }
.mw-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 12px; }
.mw-stats div { display: flex; flex-direction: column; padding: 12px; border-radius: 12px; background: var(--accent-soft); }
.mw-stats b { font-family: var(--font-display); font-size: 24px; }
.mw-stats span { font-size: 12px; color: var(--muted); }
.mw-fronts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.mw-front { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--text);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.mw-front.fight { border-color: #ff5a3c; }
.mw-front .col { flex: 1 1 auto; min-width: 0; }
.mw-front b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mw-share { font-weight: 800; }
@media (max-width: 680px) { .mw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.bf-alert { border-bottom: 1px solid transparent; font-size: 14px; font-weight: 600; }
.bf-alert.info { background: #1d4ed8; color: #fff; }
.bf-alert.ok { background: #15803d; color: #fff; }
.bf-alert.warn { background: #f59e0b; color: #231600; }
.bf-alert-inner { max-width: calc(var(--page-w) + 48px); margin: 0 auto; padding: 9px 48px 9px 24px; position: relative; text-align: center; }
.bf-alert-inner a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.bf-alert-x { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border: 0; border-radius: 6px;
  background: rgba(0, 0, 0, 0.15); color: inherit; font-size: 18px; line-height: 1; cursor: pointer; }
.bf-alert-x:hover { background: rgba(0, 0, 0, 0.28); }

.bf-container.adm-main { max-width: none; padding: 0; }
.bf-container.adm-main + .bf-footer, .bf-page:has(.adm-main) .bf-footer { margin-top: 0; }
.adm { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: calc(100vh - var(--nav-h)); background: var(--bg); }
.adm :is(a, button, input, select, textarea, summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.adm-side { position: sticky; top: var(--nav-h); align-self: start; height: calc(100vh - var(--nav-h)); overflow-y: auto; display: flex; flex-direction: column;
  gap: 2px; padding: 18px 12px; background: var(--surface); color: var(--text); border-right: 1px solid var(--border); scrollbar-width: thin; }
.adm-brand { display: flex; align-items: baseline; gap: 6px; padding: 2px 12px 14px; margin-bottom: 4px; border-bottom: 1px solid var(--border);
  color: var(--text) !important; text-decoration: none !important; }
.adm-brand b { font-family: var(--font-display); font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.adm-brand span { font-size: 15px; font-weight: 600; color: var(--text-2); }
.adm-sec { display: flex; flex-direction: column; gap: 2px; margin-top: 14px; }
.adm-sec h6, .adm-sec-h h6 { margin: 0; padding: 0 12px 4px; font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--text-2); }
.adm-sec-h { display: flex; align-items: center; justify-content: space-between; padding-right: 4px; }
.adm-sec-h h6 { padding-bottom: 0; }
.adm-link { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 12px; border-radius: 10px; color: var(--text-2) !important; font-size: 14px;
  font-weight: 600; text-decoration: none !important; transition: background .12s, color .12s; }
.adm-link svg { flex: none; }
.adm-link span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-link:hover { background: var(--surface-3); color: var(--text) !important; }
.adm-link[aria-current="page"], .adm-link[aria-current="page"]:hover { background: var(--text); color: var(--surface) !important; }
.adm-count { flex: none; min-width: 22px; padding: 0 7px; border-radius: 999px; background: var(--text); color: var(--surface); font-size: 12px; font-weight: 800;
  line-height: 20px; text-align: center; font-variant-numeric: tabular-nums; }
.adm-link[aria-current="page"] .adm-count { background: var(--surface); color: var(--text); }
.adm-back { margin-top: auto; min-height: 48px; border-top: 1px solid var(--border); border-radius: 0; padding-top: 10px; }
.adm-back:hover { background: transparent; }
.adm-saved { margin-top: 14px; padding: 12px 0 0; border-top: 1px solid var(--border); }
.adm-saved-row { display: flex; align-items: center; gap: 4px; }
.adm-saved-row a { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border-radius: 10px;
  color: var(--text-2) !important; font-size: 13px; font-weight: 600; text-decoration: none !important; }
.adm-saved-row a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-saved-row a svg { color: var(--text-2); flex: none; }
.adm-saved-row a:hover { background: var(--surface-3); color: var(--text) !important; }
.adm-icon-btn { flex: none; width: 28px; height: 28px; border: 0; border-radius: 8px; background: transparent; color: var(--text-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; }
.adm-icon-btn:hover { background: var(--surface-3); color: var(--text); }
.adm-hint { margin: 2px 12px 4px; font-size: 12px; color: var(--text-2); line-height: 1.4; }
.adm-body { min-width: 0; display: flex; flex-direction: column; }
.adm-top { display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 32px; background: var(--surface); border-bottom: 1px solid var(--border); }
.adm-crumbs { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-2); min-width: 0; flex: 1 1 auto; }
.adm-crumbs b { color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-find-form { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; width: min(340px, 40vw); border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.adm-find-form:focus-within { border-color: var(--accent); }
.adm-find-form .adm-find:focus-visible { outline: none; }
.adm-find { flex: 1 1 auto; min-width: 0; border: 0; outline: none; background: transparent; color: var(--text); font: inherit; font-size: 14px; }
.adm-content { padding: 28px 32px 48px; width: 100%; max-width: 1400px; }
.adm-page { display: flex; flex-direction: column; gap: 20px; }
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.bf .adm-head h1 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.025em; }
.adm-head p { margin: 6px 0 0; color: var(--text-2); font-size: 15px; max-width: 72ch; }
.adm-head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adm-backlink { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0; border: 0; background: none; color: var(--text-2);
  font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.adm-backlink:hover { color: var(--text); }
.adm-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); min-width: 0; overflow: hidden; }
.adm-panel-h { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; min-height: 32px; padding: 16px 18px 0; }
.bf .adm-panel-h h2 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.02em; flex: 1 1 auto; }
.adm-panel-b { padding: 14px 18px 16px; min-width: 0; }
.adm-panel-b > .table-wrap { margin: -14px -18px -16px; }
.adm-panel-h + .adm-panel-b > .table-wrap { margin-top: 0; }
.adm-panel-b > div > .table-wrap { margin: 0 -18px -16px; }
.adm-panel-b > div > .table-wrap:first-child { margin-top: -14px; }
.adm-panel-b > .adm-list > .table-wrap { margin: 0 -18px; }
.adm-panel-b > .adm-list > .table-wrap:last-child { margin-bottom: -16px; }
.bf .adm-sub { font-size: 16px; font-weight: 700; margin: 14px 0 6px; }
.adm-dash { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.adm-todo-line { margin: 0 0 6px; font-size: 15px; color: var(--text-2); }
.adm-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.adm-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.adm-queue { display: flex; flex-direction: column; margin: 0 -18px -16px; }
.adm-queue-row { display: flex; align-items: center; gap: 16px; min-height: 72px; padding: 12px 18px; border: 0; border-top: 1px solid var(--border); border-radius: 0;
  background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: background .12s; }
.adm-queue-row:hover { background: var(--surface-2); }
.adm-queue-row > b { flex: none; min-width: 56px; font-family: var(--font-display); font-size: 32px; font-weight: 800; line-height: 1; letter-spacing: -.02em;
  text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.adm-queue-row.hot > b { color: var(--accent); }
.adm-queue-row > svg { flex: none; color: var(--text-2); }
.adm-queue-l { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.adm-queue-l strong { font-size: 15px; font-weight: 700; }
.adm-queue-l small { font-size: 13px; color: var(--text-2); }
.adm-queue-row:not(.hot) .adm-queue-l strong { color: var(--text-2); }
.adm-metrics { display: flex; flex-direction: column; }
.adm-metric { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.adm-metric:first-child { padding-top: 2px; }
.adm-metric:last-child { border-bottom: 0; padding-bottom: 2px; }
.adm-metric span { color: var(--text-2); }
.adm-metric b { font-variant-numeric: tabular-nums; font-size: 16px; }
.adm-live { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.adm-live-card { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2);
  color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.adm-live-card:hover { border-color: var(--border-strong); background: var(--surface-3); }
.adm-live-card div { display: flex; flex-direction: column; min-width: 0; }
.adm-live-card b, .adm-live-card span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-live-card span { font-size: 13px; color: var(--text-2); }
.adm-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.adm-toolbar .input { max-width: 360px; }
.adm .table th, body:has(.adm-main) .modal .table th { font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--text-2); }
.adm-table th { background: var(--surface-2); position: sticky; top: 0; padding: 10px 12px; }
.adm-table td { padding: 10px 12px; }
.adm-table td.pos { color: var(--ok-text); font-weight: 700; }
.adm-table td.neg { color: var(--err-text); font-weight: 700; }
.adm-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.adm-who div { display: flex; flex-direction: column; min-width: 0; }
.adm-who span { font-size: 12px; color: var(--text-2); }
.adm-pills { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.adm-manage { display: inline-flex; align-items: center; gap: 2px; color: var(--text-2); font-weight: 700; font-size: 13px; }
.adm-table tr.clickable:hover .adm-manage { color: var(--text); }
.adm-row-actions { display: inline-flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.adm-manage-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.adm-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.adm-profile-card { padding: 20px; }
.adm-profile-top { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.adm-profile-main { flex: 1 1 260px; min-width: 0; }
.bf .adm-player-name { margin: 0 0 4px; font-size: 30px; font-weight: 800; letter-spacing: -.025em; overflow-wrap: anywhere; }
.adm-player-id { font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--text-2); }
.adm-presence { margin: 0 0 8px; font-size: 14px; color: var(--text-2); }
.adm-balances { display: flex; gap: 8px 18px; flex-wrap: wrap; margin-top: 10px; font-size: 16px; }
.adm-profile-links { margin-top: 12px; }
.adm-record { margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.adm-record > div { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); }
.adm-record dt { font-size: 12px; font-weight: 700; color: var(--text-2); }
.adm-record dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.adm-record .warn { background: var(--err-bg); }
.adm-record .warn :is(dt, dd) { color: var(--err-text); }
.adm-kv { display: grid; grid-template-columns: minmax(120px, 40%) minmax(0, 1fr); gap: 0; margin: 0; font-size: 14px; }
.adm-kv dt, .adm-kv dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--border); }
.adm-kv dt { color: var(--text-2); }
.adm-kv dd { font-weight: 600; overflow-wrap: anywhere; }
.adm-kv dt:nth-last-child(2), .adm-kv dd:last-child { border-bottom: 0; }
.adm-warn { color: var(--err-text); }
.adm-actions { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 14px; }
.adm-act-group { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.bf .adm-act-group h3 { margin: 0 0 4px; font-family: var(--font); font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--text); }
.adm-act { width: 100%; min-height: 40px; justify-content: center; }
.adm-act-group .adm-note { margin: -2px 0 4px; font-size: 12px; }
.adm-seg { display: inline-flex; padding: 3px; border-radius: var(--radius-sm); background: var(--surface-3); gap: 2px; }
.adm-seg button { border: 0; background: transparent; min-height: 32px; padding: 0 14px; border-radius: 8px; font: inherit; font-size: 13px; font-weight: 700; color: var(--text-2); cursor: pointer; }
.adm-seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.adm-report.urgent { border-color: color-mix(in srgb, var(--danger) 55%, var(--border)); }
.adm-snapshot { background: var(--surface-3); padding: 8px 10px; border-radius: 8px; max-height: 160px; overflow: auto; font-size: 13px; }
.adm-appeal .appeal-text { margin: 10px 0; }
.adm-alert-preview { border-radius: 10px; overflow: hidden; }
.adm-alert-preview .bf-alert-inner { padding: 9px 14px; }
@media (max-width: 1180px) {
  .adm-dash { grid-template-columns: minmax(0, 1fr); }
  .adm-grid3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-manage-grid { grid-template-columns: minmax(0, 1fr); }
  .adm-actions { position: static; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .adm-act { min-height: 44px; }
}
@media (max-width: 900px) {
  .adm { grid-template-columns: minmax(0, 1fr); }
  .adm-side { position: static; height: auto; flex-direction: row; align-items: center; overflow-x: auto; padding: 8px 12px; gap: 6px; border-right: 0; border-bottom: 1px solid var(--border); }
  .adm-brand { border: 0; padding: 0 8px 0 4px; margin: 0; flex: none; }
  .adm-brand > span:last-child, .adm-saved, .adm-sec h6, .adm-back { display: none; }
  .adm-nav { display: flex; gap: 4px; }
  .adm-sec { flex-direction: row; margin: 0; }
  .adm-sec + .adm-sec { padding-left: 6px; border-left: 1px solid var(--border); }
  .adm-link { white-space: nowrap; min-height: 44px; padding: 0 14px; }
  .adm-top { height: auto; min-height: 60px; padding: 8px 16px; }
  .adm-find-form { height: 44px; }
  .adm-record { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .adm-find-form { width: auto; flex: 1 1 auto; }
  .adm-content { padding: 20px 16px 32px; }
  .adm-grid2, .adm-grid3 { grid-template-columns: minmax(0, 1fr); }
  .bf .adm-head h1, .bf .adm-player-name { font-size: 26px; }
  .adm-queue-row > b { min-width: 44px; font-size: 28px; }
}
.adm-livebadge { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; font-size: 13px; font-weight: 600; color: var(--text-2); font-variant-numeric: tabular-nums; }
.adm-livebadge i { width: 8px; height: 8px; border-radius: 50%; background: var(--online); }
.adm-livebadge.off { color: var(--warn-text); }
.adm-livebadge.off i { background: var(--gold); }
.adm-bump { animation: adm-bump 1.4s ease-out; border-radius: 4px; }
@keyframes adm-bump { from { background: color-mix(in srgb, var(--accent) 24%, transparent); } to { background: transparent; } }
@media (prefers-reduced-motion: reduce) { .adm-bump { animation: none; } .adm-link, .adm-queue-row { transition: none; } }
.adm-face-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.adm-face-pic { display: flex; flex-direction: column; gap: 14px; }
.adm-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 22px 16px;
  border: 2px dashed var(--border-strong); border-radius: 14px; background: var(--surface-2); color: var(--text-2); text-align: center; cursor: pointer; }
.adm-drop b { color: var(--text); font-size: 15px; }
.adm-drop span { font-size: 13px; }
.adm-drop svg { color: var(--accent); }
.adm-drop:hover, .adm-drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); }
.adm-file { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.adm-face-previews { display: flex; gap: 18px; flex-wrap: wrap; justify-content: center; }
.adm-face-previews figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.adm-face-previews figcaption { font-size: 12px; color: var(--text-2); font-weight: 600; }
.adm-face-canvas { width: 192px; height: 192px; image-rendering: pixelated; border-radius: 12px; border: 1px solid var(--border);
  background: repeating-conic-gradient(#e7e3dc 0% 25%, #f8f6f2 0% 50%) 50% / 16px 16px; }
.adm-face-head { width: 192px; height: 192px; border-radius: 12px; border: 1px solid var(--border); background: radial-gradient(circle at 50% 40%, #2a3346, #141922); }
.adm-face-status { padding: 10px 12px; border-radius: 10px; font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--text-2); }
.adm-face-status.ok { background: var(--ok-bg); color: var(--ok-text); }
.adm-face-status.bad { background: var(--err-bg); color: var(--err-text); }
.adm-range { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 12px; }
.adm-range label { display: flex; flex-direction: column; font-size: 14px; font-weight: 700; }
.adm-range label span { font-size: 12px; font-weight: 500; color: var(--text-2); }
.adm-range input[type="range"] { width: 100%; accent-color: var(--accent); }
.adm-face-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.adm-face-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text) !important; text-decoration: none !important; text-align: center; }
.adm-face-tile:hover { border-color: var(--accent); }
.adm-face-tile b { font-size: 13px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-face-tile small { font-size: 12px; color: var(--text-2); }
.adm-face-swatch { width: 64px; height: 64px; border-radius: 12px; background: linear-gradient(135deg, #ffdc55, #e3a900); display: flex; align-items: center; justify-content: center; }
.adm-face-swatch img { width: 56px; height: 56px; }
@media (max-width: 1000px) { .adm-face-grid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 560px) { .adm-range { grid-template-columns: minmax(0, 1fr); gap: 4px; } }

.catalog-page { --gutter: 24px; --cat-focus: #c2410c; --cat-studs: #965a00; --cat-tix: #0a7340; }
:root[data-theme="dark"] .catalog-page { --cat-focus: var(--accent); --cat-studs: #ffc96b; --cat-tix: #5fe3a1; }
.catalog-page :is(a, button, select):focus-visible { outline: 3px solid var(--cat-focus); outline-offset: 2px; }

.cat-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 440px); gap: 16px 40px; align-items: stretch; margin-bottom: 28px; }
.cat-head.solo { grid-template-columns: minmax(0, 1fr); }
.cat-head-main { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; min-width: 0; }
.cat-title { margin: 0 !important; overflow-wrap: anywhere; }
.cat-intro { margin: 6px 0 0; font-size: 15px; color: var(--text-2); max-width: 56ch; }
.cat-money { margin: 0 0 14px; font-size: 14px; color: var(--text-2); max-width: 72ch; }

.cat-search { display: flex; gap: 8px; max-width: 640px; }
.cat-search-field { position: relative; flex: 1; min-width: 0; }
.cat-search-ic { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: inline-flex; color: var(--text-2); pointer-events: none; }
.cat-search .input { width: 100%; min-height: 48px; padding-left: 44px; font-size: 16px; background: var(--surface); }
.cat-search .btn { min-height: 48px; padding: 0 20px; font-size: 15px; }

.cat-skip { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cat-skip:focus { position: static; width: auto; height: auto; clip: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; margin-bottom: 8px; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--text) !important; }

.cat-aisle-row { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.cat-aisle { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--text-2) !important; font-size: 14px; font-weight: 700; white-space: nowrap; transition: background .12s, border-color .12s, color .12s; }
.cat-aisle:hover { border-color: var(--border-strong); color: var(--text) !important; text-decoration: none !important; }
.cat-aisle.in { border-color: var(--text); color: var(--text) !important; }
.cat-aisle[aria-current="page"] { background: var(--text); border-color: var(--text); color: var(--surface) !important; }

.cat-shelf-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin-top: 10px; }
.cat-shelf { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px; border-radius: 10px; color: var(--text) !important; font-size: 14px; font-weight: 600; white-space: nowrap; transition: background .12s; }
.cat-shelf:hover { background: var(--surface-3); text-decoration: none !important; }
.cat-shelf[aria-current="page"], .cat-shelf[aria-current="page"]:hover { font-weight: 800; text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 6px !important; }
.cat-shelf .n { font-weight: 500; color: var(--text-2); font-variant-numeric: tabular-nums; }
.cat-shelf-sep { flex: none; width: 1px; height: 20px; background: var(--border-strong); margin: 0 8px; }

.cat-body { display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 32px; align-items: start; }
.cat-main { min-width: 0; }
.cat-aisles { display: none; }
.cat-side { position: sticky; top: calc(var(--nav-h) + 20px); max-height: calc(100vh - var(--nav-h) - 40px); overflow-y: auto; scrollbar-width: thin; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; }
.bf .cat-side-h { margin: 6px 12px 8px; font-family: var(--font); font-size: 13px; font-weight: 700; letter-spacing: 0; color: var(--text-2); }
.cat-side ul { list-style: none; margin: 0; padding: 0; }
.cat-side-group { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border); }
.cat-side-group + .cat-side-group { border-top: 0; padding-top: 0; }
.cat-side-a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; font-size: 14px; font-weight: 700; color: var(--text) !important; transition: background .12s; }
.cat-side-a:hover { background: var(--surface-3); text-decoration: none !important; }
.cat-side-a[aria-current="page"], .cat-side-shelf[aria-current="page"] { background: var(--text); color: var(--surface) !important; }
.cat-side-shelves { margin: 0 0 4px; }
.cat-side-shelf { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 36px; padding: 0 12px 0 26px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-2) !important; transition: background .12s; }
.cat-side-shelf:hover { background: var(--surface-3); color: var(--text) !important; text-decoration: none !important; }
.cat-side-shelf[aria-current="page"] { font-weight: 700; }
.cat-side-shelf .n { font-variant-numeric: tabular-nums; color: var(--text-2); }
.cat-side-shelf[aria-current="page"] .n { color: inherit; }
.cat-body .cat-resbar { margin-top: 0; padding-top: 0; border-top: 0; }

.cat-results { scroll-margin-top: calc(var(--nav-h) + 16px); }
.cat-resbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin: 20px 0 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.cat-resbar-l { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 14px; min-width: 0; }
.cat-count { margin: 0; font-size: 15px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.cat-clear { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; }
.cat-sort { display: flex; align-items: center; gap: 8px; }
.cat-sort label { font-size: 14px; font-weight: 700; color: var(--text-2); }
.cat-sort .select { width: auto; min-height: 44px; font-size: 15px; }
.cat-tools { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 18px; }
.cat-offsale { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 700; color: var(--text-2); cursor: pointer; user-select: none; }
.cat-offsale input { position: absolute; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.cat-offsale-track { position: relative; flex: 0 0 auto; width: 38px; height: 22px; border-radius: 11px; background: var(--surface-3); border: 1px solid var(--border-strong); transition: background .15s, border-color .15s; }
.cat-offsale-knob { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .35); transition: transform .15s; }
.cat-offsale input:checked ~ .cat-offsale-track { background: var(--accent); border-color: var(--accent); }
.cat-offsale input:checked ~ .cat-offsale-track .cat-offsale-knob { transform: translateX(16px); }
.cat-offsale input:checked ~ .cat-offsale-text { color: var(--text); }
.cat-offsale input:focus-visible ~ .cat-offsale-track { outline: 2px solid var(--accent); outline-offset: 2px; }
.cat-offsale:hover .cat-offsale-text { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .cat-offsale-track, .cat-offsale-knob { transition: none; } }

.cat-results-body { min-height: 360px; }
.cat-results-body .items { transition: opacity .15s; }
.cat-results-body.is-loading .items { opacity: .5; pointer-events: none; }
.catalog-page .items { grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 28px 20px; }
.catalog-page .items > * { min-width: 0; }
.catalog-page .item-card { border-radius: 12px; }
.catalog-page .item-card:focus-visible { outline-offset: 4px; }
.catalog-page .item-card .name { font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; max-height: none; }
.catalog-page .item-card .price-line { font-size: 15px; }
.catalog-page .cur.studs { color: var(--cat-studs); }
.catalog-page .cur.tix { color: var(--cat-tix); }
.catalog-page .item-card .offsale, .catalog-page .item-card .was { color: var(--text-2); }
.catalog-page .item-card .remaining b { color: var(--err-text); }
.catalog-page .tag-new { color: var(--ink); }
.catalog-page .pager .btn { min-width: 44px; min-height: 44px; }

.cat-empty { text-align: center; padding: 48px 20px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2); }
.bf .cat-empty h3 { font-family: var(--font-display); font-weight: 700; font-size: 18px; margin: 0 0 6px; overflow-wrap: anywhere; }
.cat-empty p { margin: 0 auto 16px; max-width: 46ch; font-size: 14px; color: var(--text-2); }
.cat-empty-actions { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.cat-empty-actions .btn { min-height: 44px; }
.cat-error { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px 20px; margin: 0; }
.bf .cat-error h3 { font-family: var(--font); font-size: 16px; font-weight: 700; color: inherit; margin: 0; }
.cat-error p { margin: 0; }
.cat-error .btn { min-height: 44px; }

.cat-legend { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border); }
.bf .cat-legend h2 { font-family: var(--font-display); font-weight: 700; font-size: 16px; margin: 0 0 12px; }
.cat-legend dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px 28px; margin: 0; }
.cat-legend dl > div { display: flex; align-items: center; gap: 10px; }
.cat-legend dt { flex: none; }
.cat-legend dd { margin: 0; font-size: 14px; color: var(--text-2); }
.cat-legend :is(.ribbon, .tag-new, .tag-club, .tag-timer) { position: static; }

@media (prefers-reduced-motion: reduce) {
  .catalog-page *, .catalog-page *::before { transition: none !important; }
}

@media (max-width: 1023px) {
  .cat-body { grid-template-columns: minmax(0, 1fr); }
  .cat-side { display: none; }
  .cat-aisles { display: block; }
  .cat-body .cat-resbar { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
  .cat-head { grid-template-columns: minmax(0, 1fr); }
  .cat-aisle-row, .cat-shelf-row { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .cat-aisle-row::-webkit-scrollbar, .cat-shelf-row::-webkit-scrollbar { display: none; }
  .cat-shelf-row { margin-top: 4px; }
  .cat-aisle, .cat-shelf { flex: none; min-height: 44px; }
  .catalog-page .items { grid-template-columns: repeat(auto-fill, minmax(156px, 1fr)); gap: 24px 16px; }
}

@media (max-width: 640px) {
  .catalog-page { --gutter: 14px; }
}

@media (max-width: 599px) {
  .cat-title { font-size: 28px !important; }
  .cat-intro { font-size: 14px; }
  .catalog-page .items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .catalog-page .item-card .name, .catalog-page .item-card .price-line { font-size: 14px; }
}

@media (max-width: 379px) {
  .cat-sort label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .cat-offsale-text { font-size: 13px; }
}

:root[data-theme="dark"][data-skin="halloween"] {
  --ink: #0c0806;
  --ink-2: #160f0c;
  --ink-3: #221813;
  --ink-line: rgba(255, 122, 26, .16);
  --ink-text: #f5ecdf;
  --ink-muted: #b9a690;
  --bg: #120c0a;
  --surface: #1b1310;
  --surface-2: #1f1612;
  --surface-3: #2a1d17;
  --border: #36261d;
  --border-strong: #7a5c48;
  --text: #f5ecdf;
  --text-2: #dccbb5;
  --muted: #b3a18c;
  --link: #a6dd6a;
  --accent: #ff7a1a;
  --accent-hover: #ff8f3d;
  --accent-press: #c85a0c;
  --accent-soft: #3b1d0c;
  --accent-text: #1a0d05;
  --buy: #0b7d4f;
  --buy-hover: #0a7247;
  --warn-bg: #33240b;
  --warn-text: #ffd98a;
  --ok-bg: #102a1c;
  --ok-text: #9fe0b5;
  --err-bg: #3a1517;
  --err-text: #ffb0b3;
  --info-bg: #241a33;
  --info-text: #d7c2ff;
  --gold-text: #1a0d05;
  --online: #a6dd6a;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
  --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 8px 22px rgba(0, 0, 0, .4);
  --shadow-lift: 0 18px 44px rgba(0, 0, 0, .6);
  scrollbar-color: #5a4232 var(--bg);
}
:root[data-skin="halloween"] body.bf {
  background: radial-gradient(1100px 420px at 50% calc(var(--nav-h) - 60px), rgba(255, 122, 26, .10), transparent 70%) no-repeat, var(--bg);
}
:root[data-skin="halloween"] .bf-nav { border-bottom: 2px solid var(--accent); box-shadow: 0 6px 28px -10px rgba(255, 122, 26, .55); }
:root[data-skin="halloween"] .bf-logo-word { color: var(--ink-text); }
:root[data-skin="halloween"] .bf :focus-visible { outline-color: var(--accent); }
:root[data-skin="halloween"] :is(.bf-iconbtn .dot, .bf-menu .count, .bf-side .count, .tabs .count, .tag-new, .game-cover .play-chip) { color: var(--accent-text); }
:root[data-skin="halloween"] .btn-buy { box-shadow: 0 2px 0 #064d30; }
:root[data-skin="halloween"] .thumb.bg-soft { background: radial-gradient(120% 100% at 50% 0%, #3a2418 0%, #24170f 58%, #170f0b 100%); }
:root[data-skin="halloween"] :is(.fit-stage, .avatar-stage) { background: radial-gradient(circle at 50% 38%, #3a2418, #160e0b); }
:root[data-skin="halloween"] .headshot .disc { background: radial-gradient(circle at 50% 35%, #3a2418, #1a110c); }
:root[data-skin="halloween"] :is(.home-hero, .studio-card) {
  background: radial-gradient(90% 140% at 100% 0%, rgba(255, 122, 26, .42), transparent 60%), linear-gradient(135deg, #1d120d, #0c0806);
}
:root[data-skin="halloween"] .lp-hero {
  background: radial-gradient(48% 70% at 76% 46%, rgba(255, 122, 26, .3), transparent 70%), linear-gradient(180deg, #0c0806, #1d120d);
}
:root[data-skin="halloween"] .landing-hero { background: linear-gradient(180deg, #0c0806, #1d120d); }
:root[data-skin="thanksgiving"] {
  --ink: #6f3800;
  --ink-2: #5c2e00;
  --ink-3: #844600;
  --ink-line: rgba(255, 224, 170, .22);
  --ink-text: #fff6e8;
  --ink-muted: #f6dfc2;
  --bg: #fff7ea;
  --surface: #fffdf8;
  --surface-2: #fff9ef;
  --surface-3: #ffefd6;
  --border: #f0d2a4;
  --border-strong: #b97f3c;
  --text: #2e1600;
  --text-2: #54300f;
  --muted: #7a4f25;
  --link: #a83f06;
  --accent: #c2410c;
  --accent-hover: #d9520f;
  --accent-press: #9a3208;
  --accent-soft: #ffe6c7;
  --accent-text: #fff;
  --buy: #b3261e;
  --buy-hover: #c8322a;
  --danger: #a3201a;
  --danger-hover: #b3261e;
  --warn-bg: #ffe9b8;
  --warn-text: #6b4200;
  --ok-bg: #f0f3cf;
  --ok-text: #4a5a05;
  --err-bg: #ffe0d6;
  --err-text: #9a1c10;
  --info-bg: #fff0d6;
  --info-text: #6b3d00;
  --online: #6f8f12;
  --shadow-sm: 0 1px 2px rgba(110, 60, 0, .12);
  --shadow: 0 1px 2px rgba(110, 60, 0, .12), 0 8px 22px rgba(110, 60, 0, .12);
  --shadow-lift: 0 18px 44px rgba(110, 60, 0, .28);
  scrollbar-color: #c98a3e #fff1dc;
}
:root[data-skin="thanksgiving"] body.bf {
  background: radial-gradient(1100px 420px at 50% calc(var(--nav-h) - 60px), rgba(245, 154, 35, .26), transparent 70%) no-repeat, var(--bg);
}
:root[data-skin="thanksgiving"] .bf-footer a { color: #ffe1ba; }
:root[data-skin="thanksgiving"] .bf-footer a:hover { color: #fff; }

:root[data-skin="thanksgiving"] .bf-nav {
  --ink: #f08c28;
  --ink-2: #fffdf8;
  --ink-3: #fffdf8;
  --ink-line: #a8560c;
  --ink-text: #2e1600;
  --ink-muted: #3d1e00;
  --accent: #7a3606;
  --accent-hover: #8f4209;
  --accent-press: #5c2800;
  --accent-text: #fff;
  border-bottom: 2px solid var(--accent);
  box-shadow: 0 6px 28px -10px rgba(110, 60, 0, .55);
}
:root[data-skin="thanksgiving"] :is(.bf-menu, .bf-drop-menu, .bf-search-menu, .lp-card) {
  --accent: #c2410c;
  --accent-hover: #d9520f;
  --accent-press: #9a3208;
  --accent-text: #fff;
}
:root[data-skin="thanksgiving"] :is(.home-hero, .studio-card) { --accent: #7a3606; --accent-press: #5c2800; }
:root[data-skin="thanksgiving"] :is(.lp-hero, .landing-hero, .toast) { --accent: #ffcc66; --accent-text: #2e1600; }
:root[data-skin="thanksgiving"] .bf-nav .bf-logo-word { color: #3a1a00; }
:root[data-skin="thanksgiving"] :is(.bf-nav-links > a, .bf-nav-links > .bf-drop > a) { color: #3d1e00; }
:root[data-skin="thanksgiving"] :is(.bf-nav-links > a:hover, .bf-nav-links > .bf-drop:hover > a, .bf-nav-links > .bf-drop:focus-within > a, .bf-nav-links > a.active, .bf-nav-links > .bf-drop > a.active) { color: #1f0e00; }
:root[data-skin="thanksgiving"] .bf-drop-menu a.active { color: var(--text); }
:root[data-skin="thanksgiving"] .bf-iconbtn:hover { background: rgba(255, 255, 255, .3); color: #1f0e00 !important; }
:root[data-skin="thanksgiving"] .bf-burger:hover { background: rgba(255, 255, 255, .3); }
:root[data-skin="thanksgiving"] .bf-me-btn { color: #2e1600; }
:root[data-skin="thanksgiving"] :is(.bf-me-btn:hover, .bf-me-btn[aria-expanded="true"]) { background: rgba(255, 255, 255, .3); }
:root[data-skin="thanksgiving"] .bf-me-btn .headshot .disc { background: #fffdf8; border-color: #a8560c; }
:root[data-skin="thanksgiving"] .bf-nav .bf-search input { background: #fffdf8; border-color: #a8560c; color: #2e1600; }
:root[data-skin="thanksgiving"] .bf-nav .bf-search input::placeholder { color: #7a4f25; }
:root[data-skin="thanksgiving"] .bf-nav .bf-search input:focus { background: #fff; border-color: #7a3606; }
:root[data-skin="thanksgiving"] .bf-auth-links a.login { background: #fffdf8; border-color: #a8560c; color: #2e1600 !important; }
:root[data-skin="thanksgiving"] .bf-auth-links a.login:hover { background: #ffeed4; }
:root[data-skin="thanksgiving"] .bf-auth-links a.signup { background: #b3261e; }
:root[data-skin="thanksgiving"] .bf-auth-links a.signup:hover { background: #c8322a; }

:root[data-skin="thanksgiving"] .bf :focus-visible { outline-color: var(--accent); }
:root[data-skin="thanksgiving"] .btn-primary { background: #f59a23; border-color: #f59a23; color: #2e1600 !important; box-shadow: 0 2px 0 #b8690f; }
:root[data-skin="thanksgiving"] .btn-primary:hover { background: #f9a93d; border-color: #f9a93d; }
:root[data-skin="thanksgiving"] .btn-buy { box-shadow: 0 2px 0 #7d1712; }
:root[data-skin="thanksgiving"] .btn-enchant { background: linear-gradient(135deg, #a8321e, #d9650b 55%, #ffb627); border-color: #7d1712; box-shadow: 0 2px 0 #5c1c0c; }
:root[data-skin="thanksgiving"] :is(.bf-iconbtn .dot, .bf-menu .count, .bf-side .count, .tabs .count, .tag-new, .game-cover .play-chip) { color: var(--accent-text); }
:root[data-skin="thanksgiving"] .cur.studs { color: #8a5200; }
:root[data-skin="thanksgiving"] .cur.tix { color: #146b3e; }
:root[data-skin="thanksgiving"] :is(.bf-nav, .home-hero) .cur { color: #2e1600; }
:root[data-skin="thanksgiving"] .toast .cur { color: #fff; }
:root[data-skin="thanksgiving"] .pill.studio { color: var(--accent); }
:root[data-skin="thanksgiving"] .ench-cap-name { color: var(--text) !important; }
:root[data-skin="thanksgiving"] .catalog-page { --cat-focus: var(--accent); --cat-studs: #8a5200; --cat-tix: #146b3e; }
:root[data-skin="thanksgiving"] .bf-alert.info { background: #b54f07; }
:root[data-skin="thanksgiving"] .bf-alert.ok { background: #5f7a10; }

:root[data-skin="thanksgiving"] :is(.home-hero, .studio-card) {
  color: #2e1600; border-color: #c98a3e;
  background: radial-gradient(90% 140% at 100% 0%, rgba(255, 240, 180, .55), transparent 60%), linear-gradient(135deg, #f7962c, #ffc45e);
}
:root[data-skin="thanksgiving"] :is(.home-hero h1, .studio-card h2) { color: #2e1600; }
:root[data-skin="thanksgiving"] .home-hero .hi small { color: #6f2a00; }
:root[data-skin="thanksgiving"] .studio-card p { color: #4a2500; }
:root[data-skin="thanksgiving"] .home-hero .chip { background: rgba(255, 255, 255, .62); border-color: rgba(110, 60, 0, .35); color: #2e1600 !important; }
:root[data-skin="thanksgiving"] .home-hero .btn:not(.btn-primary) { background: #fffdf8; border-color: #b8690f; color: #2e1600 !important; }
:root[data-skin="thanksgiving"] .home-hero .btn:not(.btn-primary):hover { background: #ffeed4; }
:root[data-skin="thanksgiving"] .home-hero .headshot .disc { background: radial-gradient(circle at 50% 35%, #fff, #ffe4bd); border: 3px solid #fff; }
:root[data-skin="thanksgiving"] .lp-hero {
  background: radial-gradient(48% 70% at 76% 46%, rgba(255, 190, 90, .14), transparent 70%), linear-gradient(180deg, #7a3606, #9a4408);
}
:root[data-skin="thanksgiving"] .landing-hero { background: linear-gradient(180deg, #7a3606, #9a4408); }
:root[data-skin="thanksgiving"] .lp-hero h1 em { background-image: linear-gradient(90deg, #ffe08a, #ffc46b); }
:root[data-skin="thanksgiving"] .lp-hero .lead { color: #ffefd9; }
:root[data-skin="thanksgiving"] :is(.lp-cta-note, .lp-live) { color: #fff; }
:root[data-skin="thanksgiving"] :is(.lp-join-copy p, .lp-join-copy ul) { color: #ffefd9; }

:root[data-skin="thanksgiving"] .thumb.bg-soft { background: radial-gradient(120% 100% at 50% 0%, #fffdf8 0%, #fff1dc 60%, #ffe4bd 100%); }
:root[data-skin="thanksgiving"] :is(.fit-stage:not(.dark), .avatar-stage) { background: radial-gradient(circle at 50% 38%, #fffdf8, #ffe4bd); }
:root[data-skin="thanksgiving"] .headshot .disc { background: radial-gradient(circle at 50% 35%, #fffdf8, #ffe9c9); }
:root[data-skin="thanksgiving"] :is(.fit-stage.dark, .copy-stage:has(.figure-canvas), .fx-pic, .adm-face-head, .ench-preview-stage, .ench-reveal) { background: radial-gradient(circle at 50% 40%, #5a3312, #241206); }
:root[data-skin="thanksgiving"] .er-overlay { background: radial-gradient(circle at 50% 42%, #3a1f0a, #0a0401 70%); }
:root[data-skin="thanksgiving"] .ribbon .r-u { background: linear-gradient(#7a3606 0 50%, var(--ink) 50% 100%); }
:root[data-skin="thanksgiving"] .moon-bar span { background: linear-gradient(90deg, #d9650b, #ffc46b); }
:root[data-skin="thanksgiving"] .orbit-bar i { background: linear-gradient(90deg, #a9743a, #d9650b, #e0a10f); }
:root[data-skin="thanksgiving"] :is(.ench-charge-fill, .er-charge-fill) { background: linear-gradient(90deg, #a9743a, #e4572e, #ffc61a); }
:root[data-skin="thanksgiving"] .enchant-card { border-image: linear-gradient(90deg, #a9743a, #ff7a2e, #a8321e, #ffc61a) 1; }
:root[data-skin="thanksgiving"] .ench-chroma .ench-variant { background: linear-gradient(90deg, #e4572e, #ffb627, #f2c14e, #d9650b, #a8321e); }
:root[data-skin="thanksgiving"] .er-chroma { background-image: linear-gradient(90deg, #e4572e, #ffb627, #f2c14e, #d9650b, #a8321e, #e4572e); }
:root[data-skin="thanksgiving"] :is(.universe, .sm canvas) { filter: sepia(.92) saturate(1.45) hue-rotate(-14deg); }

:root[data-skin="thanksgiving"] .bf-page.dn-space {
  --surface: rgba(58, 28, 8, .92);
  --surface-2: rgba(72, 36, 10, .92);
  --surface-3: rgba(255, 224, 170, .12);
  --border: rgba(255, 200, 130, .24);
  --border-strong: rgba(255, 200, 130, .42);
  --text: #fff6e8;
  --text-2: #f6dfc2;
  --muted: #dcb98c;
  --link: #ffc46b;
  --accent: #ffa94d;
  --accent-press: #d97f1f;
  --accent-text: #2e1600;
  --dn-sky: #ffc46b;
  --dn-hot: #ff9a4d;
  background: linear-gradient(#5c2e00, #2e1600);
}
:root[data-skin="thanksgiving"] :is(.dn-hero img, .dn-play img) { filter: sepia(.8) saturate(1.35) hue-rotate(-10deg); }
:root[data-skin="thanksgiving"] .dn-hero-text p { color: #fff0dc; }
:root[data-skin="thanksgiving"] .dn-writer .headshot .disc { border-color: #7a3606; background: radial-gradient(circle at 50% 30%, #b4520c, #3a1c04 72%); box-shadow: 0 0 0 2px var(--dn-hot), 0 0 20px rgba(255, 150, 60, .4); }
:root[data-skin="thanksgiving"] .dn-card {
  background:
    linear-gradient(var(--dn-hot), var(--dn-hot)) left top / 26px 2px no-repeat,
    linear-gradient(var(--dn-hot), var(--dn-hot)) left top / 2px 26px no-repeat,
    linear-gradient(var(--dn-sky), var(--dn-sky)) right bottom / 26px 2px no-repeat,
    linear-gradient(var(--dn-sky), var(--dn-sky)) right bottom / 2px 26px no-repeat,
    linear-gradient(180deg, rgba(72, 36, 10, .94), rgba(46, 22, 4, .94));
}
:root[data-skin="thanksgiving"] .dn-side .card { background: linear-gradient(180deg, rgba(72, 36, 10, .94), rgba(46, 22, 4, .94)); }

:root[data-skin="thanksgiving"] .sp {
  --sp-void: #120803;
  --sp-bg: #1c0e05;
  --sp-panel: #2a1609;
  --sp-panel-2: #351d0c;
  --sp-panel-3: #42260f;
  --sp-line: rgba(255, 190, 110, .16);
  --sp-line-2: rgba(255, 190, 110, .32);
  --sp-text: #fff3e0;
  --sp-text-2: #ecd6b6;
  --sp-muted: #c8a77e;
  --link: #ffc46b;
  --accent: #ffa94d;
  --accent-hover: #ffbd73;
  --accent-press: #d97f1f;
  --accent-soft: #3a2410;
  --accent-text: #2e1600;
  --info-bg: #3a2410;
  --info-text: #ffd79a;
}
:root[data-skin="thanksgiving"] :is(.sp-block, .sp-rules, .sp-readout) { background: rgba(42, 22, 9, .7); }
:root[data-skin="thanksgiving"] .sp-card:hover { background: #2f1a0a; }
:root[data-skin="thanksgiving"] .sp-card-art.no-shot {
  background:
    radial-gradient(1px 1px at 18% 26%, rgba(255, 255, 255, .7), transparent 60%),
    radial-gradient(1px 1px at 82% 68%, rgba(255, 255, 255, .55), transparent 60%),
    radial-gradient(1px 1px at 64% 14%, rgba(255, 224, 170, .6), transparent 60%),
    radial-gradient(1px 1px at 36% 84%, rgba(255, 244, 222, .5), transparent 60%),
    radial-gradient(120% 90% at 72% 18%, color-mix(in srgb, var(--c) 26%, transparent), transparent 62%), var(--sp-void);
}
:root[data-skin="thanksgiving"] .sp-play { color: var(--accent-text); }
:root[data-skin="thanksgiving"] .sm .uv-mi { border-color: rgba(255, 190, 110, .34); }
:root[data-skin="thanksgiving"] :is(.sm-btn:hover, .sm-chip:hover, .sp-lens:hover, .sp .btn.sp-btn:hover) { border-color: rgba(255, 210, 150, .55); }
:root[data-skin="thanksgiving"] .sm-chip[aria-pressed="true"] span { color: #7a5a3a; }
:root[data-skin="thanksgiving"] .k-route .sp-key-mark { border-top-color: #e8c08a; }
:root[data-skin="thanksgiving"] .top2 .sp-rank { color: #efdcc0; }
:root[data-skin="thanksgiving"] .sp-feed .k-lost .sp-feed-ic { background: #6b5238; }
.skin-scene { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; pointer-events: none; display: block; }

.badge-card .empty { color: var(--text-2); }
.bf .badge-group-h { font-family: var(--font); font-size: 14px; font-weight: 700; letter-spacing: 0; color: var(--text-2); margin: 0 0 10px; }
.bf .badge-list + .badge-group-h { margin-top: 22px; }
.badge-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.badge-list.given { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.badge-row { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface-2); }
.badge-list.given .badge-row { background: var(--surface); border-color: var(--border-strong); padding: 14px 16px; }
.badge-art { flex: none; display: inline-flex; }
.badge-art svg { display: block; }
.badge-art.pic { width: 72px; height: 72px; align-items: center; justify-content: center; border-radius: 14px; overflow: hidden; background: var(--surface-3); border: 1px solid var(--border); }
.badge-art.pic img { width: 100%; height: 100%; object-fit: contain; display: block; }
.badge-txt { min-width: 0; }
.badge-txt b { display: block; font-size: 15px; line-height: 1.25; color: var(--text); overflow-wrap: anywhere; }
.badge-txt p { margin: 3px 0 0; font-size: 13px; line-height: 1.4; color: var(--text-2); overflow-wrap: anywhere; }
.badge-meta { display: block; margin-top: 5px; font-size: 12px; font-weight: 600; color: var(--text-2); }
@media (max-width: 599px) {
  .badge-list, .badge-list.given { grid-template-columns: minmax(0, 1fr); }
}

.adm-note { margin: 4px 0 0; font-size: 13px; line-height: 1.4; color: var(--text-2); }
.adm-note.bad { color: var(--err-text); font-weight: 700; }
.adm-badge-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 360px); gap: 24px; align-items: start; }
.adm-badge-submit { margin-top: 14px; }
.adm-badge-preview { padding: 16px; border: 1px dashed var(--border-strong); border-radius: 14px; background: var(--surface-2); }
.bf .adm-badge-preview h3 { font-size: 13px; font-weight: 700; color: var(--text-2); margin: 0 0 10px; }
.adm-badge-preview .badge-row { background: var(--surface); }
.adm-badges { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.adm-badge { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.adm-badge-info { flex: 1; min-width: 0; }
.adm-badge-info b { display: block; font-size: 15px; overflow-wrap: anywhere; }
.adm-badge-info p { margin: 2px 0 0; font-size: 13px; color: var(--text-2); overflow-wrap: anywhere; }
.adm-badge-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.adm-picks { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; max-height: 320px; overflow-y: auto; }
.adm-pick { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.adm-pick:hover { border-color: var(--accent); background: var(--accent-soft); }
.adm-pick .adm-note { margin: 0 0 0 auto; }
.adm-ubadges { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.adm-ubadge { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; }
.adm-ubadge.off { background: var(--surface-2); }
.adm-ubadge.off .badge-art { opacity: .45; }
.adm-ubadge-t { flex: 1; min-width: 0; }
.adm-ubadge-t b { display: block; font-size: 14px; }
.adm-ubadge-t .adm-note { margin: 0; font-size: 12px; }
.badge-art.pic.sm { width: 40px; height: 40px; border-radius: 10px; }
.adm-ubadge-give { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.adm-ubadge-give .select { width: auto; flex: 1 1 180px; }
.adm-inline-link { border: 0; background: none; padding: 0; font: inherit; color: var(--link); text-decoration: underline; cursor: pointer; }
@media (max-width: 760px) {
  .adm-badge-grid { grid-template-columns: minmax(0, 1fr); }
  .adm-badge { flex-wrap: wrap; }
  .adm-badge-acts { width: 100%; justify-content: flex-start; }
}

.badge-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 4px; }
.badge-btn { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; min-height: 44px; padding: 8px 4px 7px; border: 1px solid transparent; border-radius: 12px; background: none; color: var(--text); font: inherit; cursor: pointer; transition: background .12s, border-color .12s; }
.badge-btn:hover { background: var(--surface-2); }
.badge-btn[aria-pressed="true"] { background: var(--surface-2); border-color: var(--border-strong); }
.badge-btn svg, .badge-pic { display: block; width: 60px; height: 60px; object-fit: contain; }
.badge-btn:hover svg, .badge-btn:hover .badge-pic { transform: translateY(-2px); }
.badge-btn svg, .badge-btn .badge-pic { transition: transform .12s; }
.badge-name { max-width: 100%; font-size: 12px; font-weight: 700; line-height: 1.25; text-align: center; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.badge-detail { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; line-height: 1.45; color: var(--text-2); }
.badge-detail b { color: var(--text); margin-right: 6px; }
.badge-detail .badge-meta { display: inline; margin: 0; }
@media (max-width: 599px) {
  .badge-grid { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .badge-btn svg, .badge-pic { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .badge-btn svg, .badge-btn .badge-pic { transition: none; }
  .badge-btn:hover svg, .badge-btn:hover .badge-pic { transform: none; }
}
.adm-badge-art { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; }
.adm-badge-sample { width: 104px; cursor: default; }
.adm-badge-preview .badge-detail { background: var(--surface); }

.pf-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px 32px; align-items: start; margin-top: 28px; }
.pf-main, .pf-side { min-width: 0; display: flex; flex-direction: column; gap: 30px; }
.pf-sec-h { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.bf .pf-sec-h h2 { display: flex; align-items: baseline; gap: 8px; margin: 0; font-family: var(--font-display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.pf-count { font-family: var(--font); font-size: 14px; font-weight: 700; color: var(--text-2); }
.pf-more { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 700; }
.pf-panel { padding: 14px 18px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.pf-panel .pf-sec-h { margin-bottom: 8px; }
.bf .pf-panel .pf-sec-h h2 { font-size: 18px; }
.pf-about { max-width: 68ch; font-size: 16px; line-height: 1.6; color: var(--text); }
.pf-about p { margin: 0 0 8px; }
.pf-quiet { color: var(--text-2); }
.pf-empty { margin: 0; padding: 18px; border: 1px dashed var(--border-strong); border-radius: 14px; background: var(--surface-2); font-size: 14px; color: var(--text-2); }
.pf-panel .pf-empty { padding: 0; border: 0; background: none; }
.pf-games { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pf-showall { margin-top: 14px; min-height: 44px; }
.pf-friends { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
.pf-friend { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; color: var(--text) !important; font-size: 13px; font-weight: 700; text-align: center; }
.pf-friend > span:last-child { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-friend:hover > span:last-child { text-decoration: underline; }
.pf-moons { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.pf-moon { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px; border-radius: 12px; color: var(--text) !important; }
.pf-moon:hover { background: var(--surface-2); text-decoration: none !important; }
.pf-moon-t { display: flex; flex-direction: column; min-width: 0; }
.pf-moon-t b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-moon-t span { font-size: 12px; color: var(--text-2); }
.pf-record { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pf-record > div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.pf-record dt { font-size: 12px; font-weight: 700; color: var(--text-2); }
.pf-record dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--text); overflow-wrap: anywhere; }

@media (max-width: 1023px) {
  .pf-body { grid-template-columns: minmax(0, 1fr); }
  .pf-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
}
@media (max-width: 767px) {
  .pf-side { display: flex; }
  .pf-friends { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
}

.pf-head { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.pf-banner { height: 168px; background:
  radial-gradient(circle at 50% 50%, rgba(255, 255, 255, .16) 0 4px, transparent 4.5px) 0 0 / 22px 22px,
  linear-gradient(180deg, rgba(255, 255, 255, .10), rgba(0, 0, 0, .18)),
  var(--pf-c, #1a73d9); }
.pf-head-row { display: flex; align-items: flex-end; gap: 22px; padding: 0 28px 22px; }
.pf-avatar { flex: none; margin-top: -68px; }
.pf-avatar .headshot .disc { border: 5px solid var(--surface); }
.pf-id { flex: 1; min-width: 0; padding-top: 14px; }
.pf-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; }
.bf .pf-name { margin: 0; font-family: var(--font-display); font-size: clamp(28px, 4vw, 38px); font-weight: 800; letter-spacing: -.025em; line-height: 1.05; color: var(--text); overflow-wrap: anywhere; }
.pf-status { margin: 6px 0 0; font-size: 15px; color: var(--text-2); overflow-wrap: anywhere; }
a.pf-status.empty { display: inline-block; font-weight: 600; }
.pf-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 10px; font-size: 14px; color: var(--text-2); }
.pf-presence { display: inline-flex; align-items: center; gap: 6px; }
.pf-presence.on { color: var(--text); font-weight: 700; }
.pf-presence i { width: 9px; height: 9px; border-radius: 50%; background: var(--online); }
.pf-stat { color: var(--text-2) !important; }
.pf-stat b { color: var(--text); font-weight: 800; }
.pf-stat:hover { color: var(--text) !important; }
.pf-actions { flex: none; align-self: flex-end; }
.pf-actions .btn-group { justify-content: flex-end; }
.pf-figure-card .avatar-stage { max-width: 260px; }

@media (max-width: 1023px) {
  .pf-head-row { flex-wrap: wrap; }
  .pf-actions { flex-basis: 100%; }
  .pf-actions .btn-group { justify-content: flex-start; }
}
@media (max-width: 767px) {
  .pf-banner { height: 112px; }
  .pf-head-row { flex-direction: column; align-items: flex-start; gap: 10px; padding: 0 18px 18px; }
  .pf-avatar { margin-top: -56px; }
  .pf-avatar .headshot { width: 104px !important; height: 104px !important; }
  .pf-id { padding-top: 0; }
  .pf-actions { align-self: stretch; }
  .pf-actions .btn { min-height: 44px; }
}

.pf-banner-wrap { position: relative; }
.pf-banner.has-img { background-size: cover !important; background-position: center !important; background-repeat: no-repeat !important; }
.pf-banner-edit { position: absolute; top: 12px; right: 12px; min-height: 36px; }
.pf-pending { margin: 0; padding: 10px 28px; background: var(--info-bg); color: var(--info-text); font-size: 14px; font-weight: 600; }
.bf .pf-modal-h { font-size: 15px; font-weight: 700; margin: 0 0 2px; }
.pf-note { margin: 0 0 8px; font-size: 13px; color: var(--text-2); }
.pf-state { font-weight: 700; color: var(--text); }
.pf-swatches { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.pf-swatch { width: 40px; height: 40px; padding: 0; border-radius: 10px; border: 2px solid var(--border-strong); background: var(--sw); cursor: pointer; }
.pf-swatch.auto { display: inline-flex; align-items: center; gap: 8px; width: auto; padding: 0 12px 0 8px; background: var(--surface); color: var(--text); font: 700 13px var(--font); }
.pf-swatch.auto::before { content: ""; width: 22px; height: 22px; border-radius: 6px; background: var(--sw); border: 1px solid var(--border-strong); }
.pf-swatch[aria-checked="true"] { border-color: var(--text); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--text); }
.pf-banner-preview { aspect-ratio: 4 / 1; margin: 6px 0 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-3) center / cover no-repeat; }
.pf-pick { position: relative; cursor: pointer; }
.pf-pick input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.pf-pick:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }

.cx-stats { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.cx-tile.cx-pay { grid-column: 1 / -1; background: color-mix(in srgb, var(--gold) 16%, var(--surface)); border-color: color-mix(in srgb, var(--gold) 40%, transparent); }

.relic-pay { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; color: color-mix(in srgb, var(--gold-text) 85%, var(--text)); }
div.relic-pay { display: flex; margin-top: 2px; font-size: 12px; }
.relic-pay-lg { margin-bottom: 2px; padding: 8px 12px; border-radius: 10px; font-size: 16px; background: color-mix(in srgb, var(--gold) 18%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.relic-pay-note { margin: 4px 0 12px; font-size: 12px; color: var(--text-2); }
.relic-earn { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-bottom: 14px; background: color-mix(in srgb, var(--gold) 10%, var(--surface)); border-color: color-mix(in srgb, var(--gold) 35%, var(--border)); }
.relic-earn-text { display: flex; flex-direction: column; gap: 8px; flex: 1 1 280px; min-width: 0; }
.relic-earn-text > b { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 17px; }
.relic-earn.teaser .relic-earn-text span { color: var(--text-2); font-size: 14px; }
.relic-earn-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.relic-earn-steps { display: flex; flex-direction: column; gap: 8px; }
.relic-earn-steps .relic-earn-done { flex-wrap: wrap; }
.relic-earn-track { flex: 1 1 180px; max-width: 320px; height: 10px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.relic-earn-track i { display: block; height: 100%; border-radius: inherit; background: var(--gold); transition: width .4s ease; }
.relic-earn-done { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--ok-text); }
.relic-earn-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; flex: 0 1 260px; min-width: 0; font-size: 13px; }
.relic-earn-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
@media (prefers-reduced-motion: reduce) { .relic-earn-track i { transition: none; } }
.relic-advice { margin: 0 0 14px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 35%, var(--border)); font-size: 13px; line-height: 1.45; }
.relic-advice p { margin: 0; }
.relic-advice p + p { margin-top: 4px; }
.relic-advice .relic-advice-warn { color: var(--warn-text); font-weight: 600; }
.adm-rules { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.45; }
.cx-inv .cx-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.cx-tile { min-width: 0; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid transparent; }
.cx-tile.lead { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 22%, transparent); }
.cx-tile dt { font-size: 12px; font-weight: 700; color: var(--text-2); }
.cx-tile dd { margin: 4px 0 0; font-family: var(--font-display); font-size: 22px; font-weight: 800; line-height: 1.15; color: var(--text); overflow-wrap: anywhere; }
.cx-tile dd a { color: var(--text) !important; }
.cx-tile .cur { gap: 6px; }
.bf .cx-tile .cx-tile-sub { margin-top: 4px; font-family: var(--font); font-size: 12px; font-weight: 600; line-height: 1.35; color: var(--text-2); }
.cx-none { color: var(--muted); }
.cx-change.up { color: var(--ok-text); }
.cx-change.down { color: var(--err-text); }
.cx-tier-pill { margin-left: 2px; }
.cx-tier { margin-top: 14px; }
.cx-tier-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 6px; font-size: 13px; color: var(--text-2); }
.cx-tier-top b { color: var(--text); }
.cx-tier-bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.cx-tier-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.cx-chart { margin-top: 18px; }
.cx-chart-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 8px; }
.cx-legend { display: flex; gap: 16px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.cx-key { display: inline-flex; align-items: center; gap: 6px; font-style: normal; }
.cx-key::before { content: ""; width: 18px; border-top: 3px solid var(--accent); }
.cx-key.rap::before { border-top: 3px dashed var(--text-2); }
.cx-range { font-size: 13px; color: var(--text-2); }
.cx-plot { position: relative; }
.chart .cx-rap-line { fill: none; stroke: var(--text-2); stroke-width: 2; stroke-dasharray: 6 4; }
.chart .cx-cross { stroke: var(--border-strong); stroke-width: 1; }
.chart .cx-dot { stroke: var(--surface); stroke-width: 2; }
.chart .cx-dot.value { fill: var(--accent); }
.chart .cx-dot.rap { fill: var(--text-2); }
.cx-svg { touch-action: pan-y; border-radius: 8px; }
.cx-svg:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cx-tip { position: absolute; top: 4px; z-index: 2; min-width: 150px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); font-size: 13px; color: var(--text); pointer-events: none; }
.cx-tip > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 3px; }
.cx-tip .cx-key { color: var(--text-2); font-weight: 700; }
.cx-tip-n { color: var(--text-2); font-size: 12px; }
.cx-wait { margin: 0; padding: 16px; border: 1px dashed var(--border-strong); border-radius: 12px; background: var(--surface-2); font-size: 14px; color: var(--text-2); }
.bf .cx-sub { margin: 20px 0 10px; font-size: 15px; font-weight: 800; }
.cx-note { margin: 14px 0 0; font-size: 13px; color: var(--text-2); }
.cx-lines { margin-top: 4px; font-size: 12px; }
.cx-lines > div { display: flex; align-items: center; justify-content: space-between; gap: 6px; }
.cx-lines > div > span:first-child { font-weight: 700; color: var(--text-2); }
.cx-pile { margin-top: 4px; font-size: 12px; font-weight: 700; color: var(--text-2); }
.cx-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 14px; }
.cx-tools .input { flex: 1 1 200px; max-width: 280px; }
.cx-tools .select { flex: 0 1 190px; }
.cx-count { margin: -6px 0 10px; font-size: 13px; color: var(--text-2); }
.cx-count:empty { display: none; }

.cx-board-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; }
.cx-board-head .page-title { margin-bottom: 4px; }
.cx-board-head p { margin: 0; }
.cx-board-sum { margin: 14px 0; font-size: 15px; color: var(--text-2); }
.cx-board-card { padding: 6px 18px 12px; }
.cx-board { list-style: none; margin: 0; padding: 0; }
.cx-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) 52px 140px 120px; grid-template-areas: "place who best value rap"; align-items: center; gap: 8px 14px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.cx-row:last-child { border-bottom: 0; }
.cx-row.me { margin: 0 -10px; padding: 10px; border-radius: 12px; background: var(--accent-soft); }
.cx-place { grid-area: place; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-family: var(--font-display); font-size: 16px; font-weight: 800; color: var(--text-2); }
.cx-place.p1 { background: var(--gold); color: var(--gold-text); }
.cx-place.p2, .cx-place.p3 { background: var(--surface-3); color: var(--text); }
.cx-who { grid-area: who; display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 44px; color: var(--text) !important; }
.cx-who-t { display: flex; flex-direction: column; min-width: 0; }
.cx-who-t b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-who-t span { font-size: 13px; color: var(--text-2); }
.cx-who:hover b { text-decoration: underline; }
.cx-best { grid-area: best; display: block; width: 48px; }
.cx-best .thumb { border-radius: 10px; }
.cx-num { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; min-width: 0; font-size: 14px; color: var(--text-2); }
.cx-num:nth-last-child(2) { grid-area: value; }
.cx-num:last-child { grid-area: rap; }
.cx-num small { font-size: 12px; font-weight: 700; color: var(--text-2); }
.cx-num.on { color: var(--text); font-weight: 800; font-size: 16px; }
.cx-how { margin-top: 20px; }
.bf .cx-how h2 { margin: 0 0 8px; font-size: 18px; }
.bf .cx-how h3 { margin: 16px 0 8px; font-size: 15px; }
.cx-how p { max-width: 72ch; margin: 0 0 8px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.cx-tiers { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cx-tiers li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.cx-tiers b { color: var(--text); }

@media (max-width: 760px) {
  .cx-stats, .cx-inv .cx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-tile dd { font-size: 19px; }
  .cx-board-card { padding: 4px 14px 10px; }
  .cx-row { grid-template-columns: 36px minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "place who who" "place value rap"; }
  .cx-best { display: none; }
  .cx-num { align-items: flex-start; }
  .cx-tools .input, .cx-tools .select { max-width: none; flex-basis: 100%; }
}
.adm-banner-list { display: flex; flex-direction: column; gap: 16px; }
.adm-banner img { display: block; width: 100%; max-width: 720px; aspect-ratio: 4 / 1; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-3); }
.adm-banner-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; max-width: 720px; margin-top: 6px; font-size: 13px; }
@media (max-width: 767px) {
  .pf-pending { padding: 10px 18px; }
  .pf-banner-edit { top: 8px; right: 8px; }
}
.adm-log-banner { display: inline-flex; align-items: center; gap: 10px; }
.adm-log-banner img { width: 96px; aspect-ratio: 4 / 1; object-fit: cover; border-radius: 6px; border: 1px solid var(--border); background: var(--surface-3); }

.adm .muted, body:has(.adm-main) .modal .muted { color: var(--text-2); }
.adm-plink { color: var(--text) !important; font-weight: 700; }
.adm-plink:hover { text-decoration: underline !important; text-underline-offset: 3px; }
.adm-who .adm-banned { display: block; margin-top: 3px; font-size: 12px; line-height: 1.4; color: var(--err-text); white-space: normal; }
.adm-static tbody tr:hover td { background: transparent; }
.adm-strong { font-weight: 600; }
.adm-count-note { margin: 0; }
.adm-lead { margin: 0 0 12px; }
.adm-live-line { margin: 0 0 6px; font-weight: 600; color: var(--text); }
.adm-stack.tight { gap: 12px; }
.adm-report-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.adm-report-what { flex: 1 1 280px; min-width: 0; }
.bf .adm-report-what h3 { margin: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 17px; font-weight: 700; }
.adm-report-who { margin: 12px 0 6px; font-size: 14px; }
.adm-checks { display: flex; flex-direction: column; gap: 8px; }
.adm-share { margin-top: 12px; }
.adm-tool { display: inline-flex; align-items: center; gap: 8px; }
.adm-tool .adm-note { margin: 0; }
.adm-page .tabs { margin-bottom: 0; }
.approval-grid > :is(.empty, .loading) { grid-column: 1 / -1; }
.adm-face-gallery > :is(.empty, .loading, .notice) { grid-column: 1 / -1; }
.approval-pic.blurred { cursor: pointer; }
.adm-badges { gap: 0; }
.adm-badge { border: 0; border-radius: 0; background: none; padding: 14px 0; border-bottom: 1px solid var(--border); }
.adm-badge:first-child { padding-top: 0; }
.adm-badge:last-child { border-bottom: 0; padding-bottom: 0; }
.adm-ubadges { gap: 0; }
.adm-ubadge { border: 0; border-radius: 0; padding: 10px 0; border-bottom: 1px solid var(--border); }
.adm-ubadge:first-child { padding-top: 0; }
.adm-ubadge:last-child { border-bottom: 0; }
.adm-ubadge.off { background: none; }
.adm-drop { border-radius: var(--radius); }
.adm-drop svg { color: var(--text-2); }
.adm-drop.over svg { color: var(--accent); }
.adm-drop:focus-within { border-color: var(--accent); outline: 3px solid var(--accent); outline-offset: 2px; }
.adm-badge-preview { border: 1px solid var(--border); border-radius: var(--radius); }
.adm-badge-sample { pointer-events: none; }
.adm-face-canvas, .adm-face-head, .adm-face-tile, .adm-face-status, .adm-alert-preview, .adm-snapshot { border-radius: var(--radius-sm); }
.adm :is(.empty, .loading, .help), body:has(.adm-main) .modal :is(.empty, .loading, .help) { color: var(--text-2); }
.bf .badge-detail { margin: 10px 0 0; }
.bf .adm-hint { margin: 2px 12px 4px; }
.bf button.adm-backlink { font-size: 14px; font-weight: 700; }
.adm-parts { overflow-x: auto; }
.adm-parts .part-row { min-width: 600px; }
@media (max-width: 760px) { .adm-parts .part-row { min-width: 0; } }
@media (pointer: coarse) {
  .adm .btn-sm, .adm-seg button, .adm-backlink, .adm-link, .adm-saved-row a, .adm-find-form { min-height: 44px; }
  .adm-icon-btn { width: 44px; height: 44px; }
}
.adm .btn, body:has(.adm-main) .modal .btn { font-family: var(--font); font-size: 14px; font-weight: 700; }
.adm .btn-sm, body:has(.adm-main) .modal .btn-sm { font-size: 13px; }
.adm .btn-lg { font-size: 16px; }

.robot { position: relative; margin: 4px 0 16px; }
.robot-box { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 12px;
  background: var(--surface); cursor: pointer; }
.robot-box:hover { border-color: color-mix(in srgb, var(--border-strong) 60%, var(--text) 25%); }
.robot-box:focus-within { border-color: var(--accent); }
.robot-tick { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--accent); cursor: pointer; }
.robot-tick:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.robot-tick[aria-disabled="true"] { cursor: default; }
.robot-label { flex: 1 1 auto; font-size: 15px; font-weight: 700; color: var(--text); }
.bf .robot-state { display: flex; align-items: center; gap: 8px; margin: 8px 2px 0; font-size: 13px; font-weight: 700; line-height: 1.4; color: var(--text-2); }
.bf .robot-state:empty { display: none; }
.robot[data-state="busy"] .robot-state::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--border-strong);
  border-top-color: var(--accent); animation: robot-spin .8s linear infinite; }
.robot[data-state="done"] .robot-state { color: var(--ok-text); }
.robot[data-state="done"] .robot-box { border-color: color-mix(in srgb, var(--ok-text) 45%, var(--border)); }
.robot[data-state="fail"] .robot-box { border-color: color-mix(in srgb, var(--err-text) 45%, var(--border)); }
.robot[data-state="fail"] .robot-state { color: var(--err-text); font-weight: 600; }
.bf .robot-note { margin: 6px 2px 0; font-size: 12px; line-height: 1.4; color: var(--text-2); }
.robot-trap { position: absolute; left: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden; }
@keyframes robot-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .robot[data-state="busy"] .robot-state::before { animation: none; border-color: var(--accent); } }
.start-card { margin-top: 24px; }
.start-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.start-head h2 { font-size: 22px; font-weight: 700; color: var(--text); }
.start-head p { margin-top: 2px; }
.start-side { display: flex; align-items: center; gap: 12px; }
.start-count { font-size: 13px; font-weight: 700; color: var(--text-2); }
.start-list { list-style: none; margin: 0; padding: 0; }
.start-step { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--border); }
.start-step:first-child { border-top: 0; }
.start-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-press); }
:root[data-theme="dark"] .start-icon { color: var(--accent); }
.start-step.done .start-icon { background: var(--ok-bg); color: var(--ok-text); }
.start-text { min-width: 0; }
.start-text h3 { font-size: 15px; font-weight: 700; color: var(--text); }
.start-text p { font-size: 14px; color: var(--text-2); margin-top: 2px; max-width: 64ch; }
.start-step.done .start-text h3 { color: var(--text-2); }
@media (max-width: 760px) {
  .start-step { grid-template-columns: 36px 1fr; }
  .start-step .btn { grid-column: 2; justify-self: start; }
}
.uv-stage { touch-action: pan-y; cursor: grab; outline: none; overflow: hidden; }
.uv-stage:focus-visible { box-shadow: inset 0 0 0 2px #9fb6ff; }
.uv-stage.panning { cursor: grabbing; }
.uv-planet:not(.named):not(:hover):not(:focus-visible) .uv-label { display: none; }
.uv-planet:hover, .uv-planet:focus-visible { z-index: 2; }
.uv-controls { position: absolute; right: 12px; bottom: 12px; z-index: 3; display: flex; gap: 6px; }
.uv-ctl { min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px; border: 1px solid #3a4386; background: #151b46; color: #e9ecff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.uv-ctl:hover { background: #232c6e; border-color: #9fb6ff; }
.uv-ctl:focus-visible { background: #232c6e; border-color: #9fb6ff; outline: 2px solid #9fb6ff; outline-offset: 2px; }
.uv-hint { position: absolute; left: 50%; top: 14px; transform: translateX(-50%); z-index: 3; padding: 6px 12px; border-radius: 8px; background: rgba(7, 10, 24, 0.9); border: 1px solid #2c3370; color: #e9ecff; font-size: 13px; pointer-events: none; opacity: 0; transition: opacity .2s; white-space: nowrap; }
.uv-hint.on { opacity: 1; }
.uv-empty { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; padding: 24px; text-align: center; color: #c9cff5; font-size: 15px; pointer-events: none; }
.uv-empty a { color: #9fb6ff; pointer-events: auto; }
.uv-empty.hidden { display: none; }
.uv-find-wrap { position: relative; }
.uv-find-wrap.hidden { display: none; }
.uv-find { width: 190px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid #2c3370; background: #0d1130; color: #e9ecff; font: inherit; font-size: 14px; }
.uv-find::placeholder { color: #9aa1cc; }
.uv-find:focus-visible { outline: 2px solid #9fb6ff; outline-offset: 1px; border-color: #9fb6ff; }
.uv-find-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 6; width: 250px; max-height: 290px; overflow: auto; margin: 0; padding: 4px; list-style: none; background: #11163a; border: 1px solid #2c3370; border-radius: 10px; white-space: normal; }
.uv-find-list.hidden { display: none; }
.uv-find-list li { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: 8px; cursor: pointer; color: #e9ecff; font-size: 14px; }
.uv-find-list li.on, .uv-find-list li:hover { background: #232c6e; }
.uv-find-list li small { margin-left: auto; color: #a9b0d8; font-size: 12px; }
.uv-find-list li small.uv-live { color: #57eb98; }
.uv-find-list .uv-find-none { color: #a9b0d8; cursor: default; }
.uv-find-list .uv-find-none:hover { background: none; }
.uv-planet::after { content: ""; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%); border-radius: 50%; }
@media (pointer: coarse) {
  .uv-ctl { min-width: 44px; height: 44px; }
  .uv-find { height: 44px; }
  .uv-side .more { display: inline-flex; align-items: center; min-height: 44px; }
  .section-h .more { min-height: 44px; }
  .input, .select { min-height: 44px; }
  .pw-wrap .pw-toggle { min-height: 44px; min-width: 44px; }
  .bf-nav:not(.signed-in) .bf-burger { min-width: 44px; height: 44px; }
  .bf-nav:not(.signed-in) .bf-nav-right .bf-iconbtn { width: 44px; height: 44px; }
  .bf-footer nav a { padding: 12px 0; }
  .bf .bf-footer-base a { display: inline-block; min-width: 44px; padding: 12px 4px; text-align: center; }
  .bf-footer-base .btn { min-height: 44px; }
  .lp-pic figcaption a { min-height: 44px; }
}
@media (max-width: 760px) {
  .uv-side { flex-wrap: wrap; white-space: normal; }
  .uv-find-wrap, .uv-find { width: 100%; }
  .uv-find-list { left: 0; right: auto; width: 100%; }
}

.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 68px; }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%); min-height: 32px; padding: 0 10px;
  border: 0; border-radius: 6px; background: transparent; color: var(--link); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer;
}
.pw-toggle:hover { background: var(--surface-3); }
.name-hint { font-size: 13px; font-weight: 600; margin: -8px 0 12px; }
.name-hint:empty { display: none; }
.name-hint.ok { color: var(--ok-text); }
.name-hint.bad { color: var(--err-text); }
.linkish { border: 0; padding: 0; background: none; color: var(--link); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.jump-page { max-width: 1080px; margin: 12px auto 40px; }
.jump-head { margin-bottom: 22px; }
.jump-head p { margin: 4px 0 0; font-size: 16px; }
.jump-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; align-items: start; }
.jump-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.jump-art { position: relative; aspect-ratio: 16 / 9; background: radial-gradient(120% 90% at 70% 20%, color-mix(in srgb, var(--c) 40%, transparent), transparent 65%), var(--ink); }
.jump-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.jump-glyph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.jump-live, .jump-open {
  position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px;
  border-radius: 999px; background: rgba(3, 5, 11, .82); color: #d6dcea; font-size: 12px; font-weight: 700;
}
.jump-live { color: #4fe39a; }
.jump-live i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.jump-body { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.jump-body h2 { margin: 0; font-family: var(--font-display); font-size: 18px; line-height: 1.25; }
.jump-body p { margin: 0 0 6px; }
.jump-card.big .jump-body h2 { font-size: 22px; }
.jump-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 22px; }
.jump-news { margin-top: 28px; }
.jump-note {
  display: flex; align-items: center; gap: 16px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text) !important; text-decoration: none !important;
}
.jump-note:hover { border-color: var(--border-strong); }
.jump-note img { flex: none; width: 200px; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--radius-sm); }
.jump-note-txt { display: grid; gap: 3px; min-width: 0; }
.jump-note-txt small { font-size: 13px; font-weight: 700; color: var(--text-2); }
.jump-note-txt b { font-family: var(--font-display); font-size: 20px; line-height: 1.2; }
.jump-note-txt span { color: var(--muted); font-size: 14px; }
.jump-also { margin: 10px 2px 0; }
@media (max-width: 520px) {
  .jump-note { flex-direction: column; align-items: stretch; }
  .jump-note img { width: 100%; }
}
@media (max-width: 860px) {
  .jump-grid { grid-template-columns: 1fr 1fr; }
  .jump-card.big { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .jump-grid { grid-template-columns: 1fr; }
}
.lp-cta-note { margin: 10px 0 0; font-size: 14px; color: rgba(255, 255, 255, .72); }
.guest-perks { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 10px; }
.guest-perks li { display: flex; gap: 10px; align-items: flex-start; }
.guest-perks .perk-ic { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-press); }
.guest-perks b { display: block; font-size: 14px; }
.guest-perks span:not(.perk-ic) { font-size: 13px; color: var(--muted); }

.bf-page.dn-space {
  --surface: rgba(12, 17, 29, .9);
  --surface-2: rgba(20, 27, 44, .9);
  --surface-3: rgba(255, 255, 255, .09);
  --border: rgba(150, 178, 235, .2);
  --border-strong: rgba(150, 178, 235, .36);
  --text: #eff3fc;
  --text-2: #c9d2e4;
  --muted: #96a3bc;
  --link: #8fb7ff;
  --dn-sky: #8fb7ff;
  --dn-hot: #ff7a45;
  color: var(--text);
  background: linear-gradient(rgba(5, 7, 13, .5), rgba(5, 7, 13, .74)), #05070d url(/site/img/notes-stars.jpg) center top / cover fixed;
}
.dn-hero { position: relative; display: flex; align-items: flex-end; min-height: 460px; overflow: hidden; }
.dn-hero.small { min-height: 250px; }
.dn-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent); mask-image: linear-gradient(to bottom, #000 72%, transparent); }
.dn-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 7, 13, 0), rgba(5, 7, 13, .55) 18%, rgba(5, 7, 13, 0) 48%); }
.dn-hero-text { position: relative; z-index: 1; width: 100%; max-width: calc(var(--page-w) + 48px); margin: 0 auto; padding: 0 24px 8px; }
.bf .dn-hero-text h1 { font-size: 68px; font-weight: 800; line-height: 1; letter-spacing: -.03em; color: #fff; text-shadow: 0 2px 22px rgba(0, 0, 0, .75); }
.bf .dn-hero.small h1 { font-size: 44px; }
.bf .dn-hero-text h1 a { color: inherit; text-decoration: none; }
.dn-hero-text p { max-width: 58ch; margin: 10px 0 0; font-size: 17px; color: #dbe3f3; text-shadow: 0 1px 10px rgba(0, 0, 0, .85); }
.dn-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; }
.dn-main { min-width: 0; }
.dn-write { margin: 0 0 20px; }
.dn-older { margin: 8px 0 18px; text-align: center; }
.bf .dn-filter { margin: 0 0 18px; font-size: 24px; }
.dn-note { display: grid; grid-template-columns: 116px minmax(0, 1fr); gap: 18px; }
.dn-writer { font-size: 13px; line-height: 1.3; text-align: center; }
.dn-writer .headshot { width: 116px !important; height: 116px !important; }
.dn-writer .headshot .disc { border: 3px solid #27324b; background: radial-gradient(circle at 50% 30%, #2d4478, #0b1020 72%); box-shadow: 0 0 0 2px var(--dn-hot), 0 0 26px rgba(95, 145, 255, .4); }
.dn-writer b { display: block; margin-top: 10px; font-size: 14px; overflow-wrap: anywhere; }
.dn-writer span:not(.headshot):not(.disc) { display: block; margin-top: 2px; color: var(--muted); font-style: italic; }
.dn-card {
  min-width: 0; padding: 24px 26px; border: 1px solid var(--border); border-radius: 6px;
  background:
    linear-gradient(var(--dn-hot), var(--dn-hot)) left top / 26px 2px no-repeat,
    linear-gradient(var(--dn-hot), var(--dn-hot)) left top / 2px 26px no-repeat,
    linear-gradient(var(--dn-sky), var(--dn-sky)) right bottom / 26px 2px no-repeat,
    linear-gradient(var(--dn-sky), var(--dn-sky)) right bottom / 2px 26px no-repeat,
    linear-gradient(180deg, rgba(22, 30, 50, .94), rgba(9, 13, 23, .94));
}
.dn-date { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--dn-sky); }
.bf .dn-card h2 { font-size: 32px; font-weight: 800; line-height: 1.12; letter-spacing: -.015em; overflow-wrap: anywhere; }
.bf .dn-card h2 a { color: inherit; text-decoration: none; }
.bf .dn-card h2 a:hover { color: var(--dn-hot); }
.dn-subtitle { margin: 6px 0 16px; font: 700 19px/1.3 var(--font-display); color: var(--dn-hot); }
.dn-banner { display: block; width: 100%; height: auto; margin: 4px 0 18px; border: 1px solid var(--border); border-radius: 4px; }
.dn-body { margin-top: 14px; color: var(--text-2); font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.dn-subtitle + .dn-body, .dn-banner + .dn-body { margin-top: 0; }
.dn-body p { margin: 0 0 14px; }
.dn-body strong { color: #fff; }
.bf .dn-body h3 { margin: 24px 0 8px; font-size: 20px; color: var(--dn-hot); }
.bf .dn-body h4 { margin: 18px 0 6px; font-size: 16px; color: var(--dn-sky); }
.dn-body ul, .dn-body ol { margin: 0 0 14px; padding-left: 24px; }
.dn-body li { margin-bottom: 4px; }
.dn-body li::marker { color: var(--dn-hot); }
.dn-body img { display: block; max-width: 100%; height: auto; margin: 16px auto; border: 1px solid var(--border); border-radius: 4px; }
.dn-body hr { margin: 22px 0; border: 0; border-top: 1px solid var(--border); }
.dn-table { margin: 0 0 16px; overflow-x: auto; }
.dn-table table { border-collapse: collapse; }
.dn-table td { padding: 6px 20px 6px 0; border-bottom: 1px solid var(--border); vertical-align: top; }
.dn-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 20px 0 0; padding-top: 14px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.dn-tags a { padding: 2px 10px; border: 1px solid var(--border-strong); border-radius: 4px; color: var(--text-2); text-decoration: none; }
.dn-tags a:hover { border-color: var(--dn-hot); color: #fff; }
.dn-admin { margin: 14px 0 0; }
.dn-orbit { display: flex; align-items: center; gap: 14px; margin: 26px 0 26px 134px; color: var(--dn-hot); }
.dn-orbit::before, .dn-orbit::after { content: ""; flex: 1; height: 1px; background: var(--border-strong); }
.dn-side { display: grid; gap: 18px; min-width: 0; }
.dn-side .card { margin: 0; padding: 18px; border-radius: 6px; background: linear-gradient(180deg, rgba(22, 30, 50, .94), rgba(9, 13, 23, .94)); }
.bf .dn-side h3 { margin: 0 0 12px; font-size: 17px; }
.dn-side p { margin: 0; }
.dn-play img { display: block; width: 100%; height: auto; margin-bottom: 12px; border-radius: 4px; }
.dn-current { display: block; margin-bottom: 10px; font-weight: 700; }
.dn-archive details { margin-bottom: 8px; }
.dn-archive summary { font-weight: 700; color: var(--dn-hot); cursor: pointer; }
.dn-archive ul { margin: 6px 0 0; padding: 0; list-style: none; }
.dn-archive li { padding: 3px 0 3px 14px; }
.dn-archive a.active { font-weight: 700; color: #fff; }
.dn-tagcloud p { display: flex; flex-wrap: wrap; gap: 6px; }
.dn-tagcloud a { padding: 2px 10px; border: 1px solid var(--border-strong); border-radius: 4px; color: var(--text-2); font-size: 13px; text-decoration: none; }
.dn-tagcloud a:hover { border-color: var(--dn-hot); color: #fff; }
.dn-editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 16px; }
.dn-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
@media (max-width: 1080px) {
  .dn-editor { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .dn-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .dn-hero { min-height: 300px; }
  .dn-hero.small { min-height: 170px; }
  .dn-hero-text { padding: 0 14px 4px; }
  .bf .dn-hero-text h1 { font-size: 42px; }
  .bf .dn-hero.small h1 { font-size: 32px; }
  .dn-hero-text p { font-size: 15px; }
  .dn-note { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .dn-writer { display: flex; align-items: center; gap: 12px; text-align: left; }
  .dn-writer .headshot { width: 56px !important; height: 56px !important; }
  .dn-writer b { margin-top: 0; }
  .dn-card { padding: 18px 16px; }
  .bf .dn-card h2 { font-size: 25px; }
  .dn-orbit { margin-left: 0; }
}

.body-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.body-choice { display: flex; flex-direction: column; align-items: center; gap: 4px; min-height: 44px; padding: 8px 6px; border: 2px solid var(--border); border-radius: 12px; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.body-choice:hover { border-color: var(--border-strong); }
.body-choice[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.body-choice:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.body-stage { position: relative; width: 100%; height: 170px; }
.body-stage .figure-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.field-title { font-weight: 600; margin-bottom: 6px; }
.av-body-row { display: flex; gap: 8px; }
.av-body-row .btn { flex: 1; min-height: 44px; }

.st-list { display: grid; gap: 16px; }
.st-event-h { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.st-event-h h3 { font-size: 20px; font-weight: 700; margin: 0; min-width: 0; overflow-wrap: anywhere; }
.st-event.ended { opacity: .8; }
.st-event p, .st-saga > p { margin: 8px 0 0; line-height: 1.55; color: var(--text-2); }
.st-block { margin-top: 14px; display: grid; gap: 14px; }
.st-items { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.st-play { margin-top: 14px; }
.st-meter-h { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 6px; }
.st-meter-h b { overflow-wrap: anywhere; }
.st-track { position: relative; height: 16px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border); overflow: hidden; }
.st-track.slim { height: 10px; }
.st-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: var(--accent); transition: width .4s ease; }
.st-mark { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -2px; background: var(--border-strong); }
.st-mark.hit { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.st-meter.closed .st-fill, .st-vote.closed .st-fill { background: var(--muted); }
.st-opt { margin-top: 10px; }
.st-opt-h { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; margin-bottom: 4px; }
.st-opt.lead .st-fill { background: var(--buy); }
.st-opt.lead .st-opt-h { font-weight: 700; }
.st-progress { margin: 14px 0 4px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--border); }
.st-chapters { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 14px; }
.st-chapter { display: flex; gap: 12px; align-items: flex-start; opacity: .6; }
.st-chapter.reached { opacity: 1; }
.st-num { flex: none; width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; background: var(--surface-3); color: var(--text-2); }
.st-chapter.reached .st-num { background: var(--ok-bg); color: var(--ok-text); }
.st-chapter-b { min-width: 0; flex: 1; }
.st-chapter-b b { overflow-wrap: anywhere; }
.st-chapter-b p { margin: 4px 0 0; line-height: 1.5; color: var(--text-2); }
.st-links { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.st-news { display: grid; gap: 12px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.st-news-t { font-size: 15px; }
.st-meter.compact .st-track { height: 12px; }
.st-meter.compact .st-meter-h, .st-vote.compact .st-meter-h { margin-bottom: 4px; font-size: 14px; }

.adm-story-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.adm-story-row:last-child { border-bottom: 0; }
.adm-story-row > .grow { flex: 1 1 220px; min-width: 0; }
.adm-story-row .grow b { overflow-wrap: anywhere; }
.adm-chapter { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 10px; background: var(--surface-2); }
.adm-chapter-h { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.adm-chapter-h b { flex: 1; }
.adm-chk-grid { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.adm-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.adm-log-bad { color: var(--err-text); }
.adm-log-ok { color: var(--text-2); }
.adm-log-got { display: inline-flex; align-items: center; gap: 8px; }
.adm-log-got .badge-art.pic.sm { width: 32px; height: 32px; flex: none; }
.adm-badge-award { padding: 12px 0; border-bottom: 1px solid var(--border); }
.adm-badge-award:last-child { border-bottom: 0; }
@media (max-width: 640px) {
  .adm-form-grid { grid-template-columns: minmax(0, 1fr); }
}

.xc-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px 28px; align-items: end; margin-bottom: 18px; }
.xc-title p { margin: 0; }
.xc-quote { text-align: right; }
.xc-price { display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 6px 10px; margin-right: -8px; padding: 2px 8px; border-radius: 12px; }
.xc-price b { font-family: var(--font-display); font-size: 46px; font-weight: 800; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.xc-one { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: 700; color: var(--text-2); }
.xc-sub { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 14px; margin-top: 8px; font-size: 14px; }
.xc-change { font-weight: 800; font-variant-numeric: tabular-nums; }
.xc-stats { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 0; padding-top: 14px; border-top: 1px solid var(--border); }
.xc-stats dt { font-size: 12px; font-weight: 700; color: var(--muted); }
.xc-stats dd { margin: 2px 0 0; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
:is(.xc-change, .xc-table td, .xc-orders b, .xc-mytrades span, .xc-delta).up { color: var(--ok-text); }
:is(.xc-change, .xc-table td, .xc-orders b, .xc-mytrades span, .xc-delta).down { color: var(--err-text); }
.xc-change.flat { color: var(--text-2); }
@keyframes xc-flash-up { from { background: color-mix(in srgb, var(--buy) 24%, transparent); } to { background: transparent; } }
@keyframes xc-flash-down { from { background: color-mix(in srgb, var(--danger) 22%, transparent); } to { background: transparent; } }
.xc-price.flash-up { animation: xc-flash-up 1.4s ease-out; }
.xc-price.flash-down { animation: xc-flash-down 1.4s ease-out; }

.xc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.xc-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.xc-col > .card + .card, .xc-lists > .card + .card { margin-top: 0; }
.xc-lists { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.xc-h { font-family: var(--font-display); font-size: 18px; font-weight: 800; margin: 0 0 10px; }
.xc-h3 { font-size: 14px; font-weight: 800; color: var(--text-2); margin: 18px 0 6px; }
.xc-quiet { margin: 0; font-size: 14px; color: var(--muted); }
.xc-note { margin: -4px 0 10px; font-size: 13px; color: var(--muted); }

.xc-chart-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.xc-chart-bar .xc-h { margin: 0; }
.xc-chart-tools { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.xc-chart .xc-quiet { margin-top: 8px; }
.xc-plot { position: relative; }
.xc-svg { touch-action: pan-y; }
.xc-svg:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.chart.xc-svg text { font-size: 12px; }
.chart .xc-line { fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linejoin: round; }
.chart.up .xc-line { stroke: var(--buy); }
.chart.down .xc-line { stroke: var(--danger); }
.chart .xc-area { fill: color-mix(in srgb, var(--text-2) 8%, transparent); }
.chart.up .xc-area { fill: color-mix(in srgb, var(--buy) 12%, transparent); }
.chart.down .xc-area { fill: color-mix(in srgb, var(--danger) 10%, transparent); }
.chart .xc-vol { fill: color-mix(in srgb, var(--text-2) 30%, transparent); }
.xc-candle line { stroke-width: 1.5; }
.xc-candle.up line { stroke: var(--buy); }
.xc-candle.up rect { fill: var(--surface); stroke: var(--buy); stroke-width: 1.5; }
.xc-candle.down line { stroke: var(--danger); }
.xc-candle.down rect { fill: var(--danger); stroke: var(--danger); stroke-width: 1; }
.xc-candle.flat line, .xc-candle.flat rect { stroke: var(--muted); fill: var(--muted); }
.chart .xc-now { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 4 4; }
.chart .xc-now-tag { fill: var(--accent); }
.chart text.xc-now-text { fill: var(--accent-text); font-weight: 800; }
.chart .xc-cross { stroke: var(--border-strong); stroke-width: 1; }
.chart .xc-dot { fill: var(--text); stroke: var(--surface); stroke-width: 2; }
.xc-tip { position: absolute; top: 4px; z-index: 2; min-width: 150px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); font-size: 13px; color: var(--text); pointer-events: none; }
.xc-tip > div { display: flex; justify-content: space-between; gap: 14px; margin-top: 3px; }
.xc-tip span { color: var(--text-2); }
.xc-tip b { font-variant-numeric: tabular-nums; }

.xc-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; margin-bottom: 14px; border-radius: 14px; background: var(--surface-3); }
.xc-side { min-height: 44px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 15px; font-weight: 800; color: var(--text-2); cursor: pointer; }
.xc-side:hover { color: var(--text); }
.xc-side.buy.on { background: var(--buy); color: #fff; }
.xc-side.sell.on { background: var(--danger); color: #fff; }
.xc-modes { display: flex; gap: 20px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.xc-mode { min-height: 44px; margin-bottom: -1px; padding: 0 0 2px; border: 0; border-bottom: 2px solid transparent; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--muted); cursor: pointer; }
.xc-mode:hover { color: var(--text); }
.xc-mode.on { color: var(--text); border-bottom-color: var(--accent); }
:is(.xc-side, .xc-mode, .xc-max):focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.xc-money { margin-bottom: 12px; }
.xc-money-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 32px; margin-bottom: 4px; }
.xc-money-top label { font-size: 13px; font-weight: 700; color: var(--text-2); }
.xc-max { min-height: 44px; padding: 0 6px; margin-right: -6px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 800; color: var(--link); cursor: pointer; }
.xc-money-box { position: relative; display: flex; align-items: center; }
.xc-money-box .input { min-height: 52px; padding-right: 128px; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; appearance: textfield; -moz-appearance: textfield; }
.xc-money-box .input::-webkit-inner-spin-button, .xc-money-box .input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.xc-unit { position: absolute; right: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--text-2); pointer-events: none; }
.xc-lines { margin: 2px 0 14px; }
.xc-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.xc-line span { color: var(--text-2); }
.xc-line b { text-align: right; font-variant-numeric: tabular-nums; }
.xc-warn { margin: 10px 0 0; padding: 9px 11px; border-radius: 10px; background: var(--warn-bg); color: var(--warn-text); font-size: 13px; font-weight: 600; }
.xc-fine { margin: 8px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted); }
.xc-wallet { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 12px 0 0; font-size: 13px; color: var(--text-2); }
.xc-signin { margin: 0 0 14px; color: var(--text-2); }
.xc-gap { margin-top: 8px; }

.xc-orders, .xc-mytrades { margin: 0; padding: 0; list-style: none; }
.xc-orders li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.xc-order-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.xc-order-main b { font-size: 14px; }
.xc-mytrades li { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.xc-mytrades li > span:first-child { min-width: 56px; font-weight: 800; }
.xc-mytrades li > span:last-child { margin-left: auto; }
.xc-more { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; }
.xc-table th:first-child, .xc-table td:first-child { text-align: left; }
.xc-table td:first-child { font-weight: 800; }
.xc-table .xc-mid td { background: var(--surface-2); color: var(--text); font-weight: 800; }
.xc-table .xc-mid td:last-child { text-align: left; color: var(--muted); font-weight: 600; }
.xc-tag { margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 700; }

.xc-factlist { display: grid; gap: 12px; margin: 0; }
.xc-fact dt { font-size: 12px; font-weight: 700; color: var(--text-2); }
.xc-fact dd { margin: 3px 0 0; font-size: 16px; font-weight: 800; }
.xc-fact dd.xc-fact-sub { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.xc-pairline { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; }
.xc-delta { font-weight: 700; }
.xc-how { margin-top: 16px; padding-top: 8px; border-top: 1px solid var(--border); }
.xc-how summary { display: flex; align-items: center; min-height: 40px; font-size: 14px; font-weight: 800; cursor: pointer; }
.xc-how ul { margin: 4px 0 0; padding-left: 18px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.xc-how li + li { margin-top: 6px; }

@media (max-width: 980px) {
  .xc-grid { display: flex; flex-direction: column; }
  .xc-col { display: contents; }
  .xc-chart { order: 1; }
  .xc-trade { order: 2; }
  .xc-markets { order: 3; }
  .xc-mine { order: 4; }
  .xc-lists { order: 5; }
  .xc-facts { order: 6; }
}
@media (max-width: 760px) {
  .xc-head { grid-template-columns: minmax(0, 1fr); }
  .xc-quote { text-align: left; }
  .xc-price { justify-content: flex-start; margin: 0 0 0 -8px; }
  .xc-price b { font-size: 38px; }
  .xc-sub { justify-content: flex-start; }
  .xc-stats { gap: 10px 22px; }
  .xc-lists { grid-template-columns: minmax(0, 1fr); }
  .xc-chart-tools .btn-sm { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .xc-price.flash-up, .xc-price.flash-down { animation: none; }
}

.xc-markets { margin: 0; }
.xc-mk-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px 32px; align-items: start; margin-bottom: 14px; }
.xc-mk-label { margin: 0 0 4px; font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--text-2); }
.xc-mk-big { display: flex; align-items: center; gap: 8px; }
.xc-mk-big b { font-family: var(--font-display); font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.xc-mk-big span { font-size: 16px; font-weight: 700; color: var(--text-2); }
.xc-mk-mid { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.xc-mk-mid > span:nth-child(2) { font-size: 14px; font-weight: 700; color: var(--text-2); }
.xc-mk-mid .xc-change { font-size: 14px; }
.xc-mk-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; font-size: 13px; color: var(--muted); }
.xc-dom-bar { display: flex; gap: 2px; height: 12px; margin: 8px 0; border-radius: 6px; overflow: hidden; background: var(--surface); }
.xc-dom-bar i { display: block; min-width: 3px; height: 100%; }
.xc-dom-bar i:first-child { border-radius: 6px 0 0 6px; }
.xc-dom-bar i:last-child { border-radius: 0 6px 6px 0; }
:is(.xc-dom-bar, .xc-dom-keys) i.zar { background: var(--stud-ring); }
:is(.xc-dom-bar, .xc-dom-keys) i.emr { background: var(--tix-ring); }
.xc-dom-keys { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.xc-dom-keys span { display: inline-flex; align-items: center; gap: 6px; }
.xc-dom-keys i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.xc-amt { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.xc-nowrap { white-space: nowrap; }
.xc-coins { width: 100%; border-collapse: collapse; font-size: 14px; }
.xc-coins th, .xc-coins td { padding: 12px 10px; text-align: right; vertical-align: middle; border-top: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.xc-coins thead th { padding-top: 6px; padding-bottom: 8px; border-top: 0; font-size: 12px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.xc-coins thead th:nth-child(-n+2), .xc-coins .xc-rank, .xc-coins .xc-coin { text-align: left; }
.xc-coins .xc-rank { width: 28px; color: var(--muted); font-weight: 700; }
.xc-coin { white-space: nowrap; }
.xc-coin > span { display: inline-flex; flex-direction: column; margin-left: 10px; vertical-align: middle; line-height: 1.2; }
.xc-coin svg { vertical-align: middle; }
.xc-coin b { font-size: 15px; }
.xc-coin small { font-size: 12px; font-weight: 700; color: var(--muted); }
.xc-coins td b, .xc-coins .xc-amt { font-weight: 700; }
.xc-made { display: block; margin-top: 2px; font-size: 12px; color: var(--muted); }
.xc-spark-cell { width: 140px; }
.xc-spark { display: inline-block; vertical-align: middle; }
.xc-spark polyline { fill: none; stroke: var(--text-2); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; stroke-linecap: round; }
.xc-spark.up polyline { stroke: var(--buy); }
.xc-spark.down polyline { stroke: var(--danger); }
.xc-mk-note { margin: 10px 0 0; }
@media (max-width: 760px) {
  .xc-mk-big b { font-size: 30px; }
  .xc-coins thead { display: none; }
  .xc-coins, .xc-coins tbody { display: block; }
  .xc-coins tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 14px; padding: 14px 0; border-top: 1px solid var(--border); }
  .xc-coins th, .xc-coins td { padding: 0; border: 0; text-align: left; }
  .xc-coins .xc-rank { display: none; }
  .xc-coins .xc-coin, .xc-coins .xc-spark-cell { grid-column: 1 / -1; width: auto; }
  .xc-coins td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: 12px; font-weight: 700; color: var(--muted); }
  .xc-spark { width: 100%; height: 44px; }
}

.xc-chart-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px 16px; margin-bottom: 14px; }
.xc-chart-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.xc-chart-name .xc-h { margin: 0; font-size: 20px; }
.xc-chart-name .xc-h small { font-family: var(--font); font-size: 13px; font-weight: 700; color: var(--muted); }
.xc-chart-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 2px; }
.xc-chart-price b { font-family: var(--font-display); font-size: 32px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.xc-chart-price > span:nth-child(2) { font-size: 14px; font-weight: 700; color: var(--text-2); }
.xc-chart-price .xc-change { font-size: 14px; }
.xc-chart-note { margin-top: 8px; font-size: 13px; }

.xa-head { margin-bottom: 18px; }
.xa-head p { margin: 0; }
.xa-wrap { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.xa-toc { position: sticky; top: calc(var(--nav-h) + 12px); display: flex; flex-direction: column; gap: 2px; }
.xa-toc a { display: flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; color: var(--text-2); font-size: 14px; font-weight: 700; text-decoration: none; }
.xa-toc a:hover { background: var(--surface-3); color: var(--text); }
.xa-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.xa-body > .card + .card { margin-top: 0; }
.xa-section { scroll-margin-top: calc(var(--nav-h) + 12px); }
.xa-section h2 { margin: 0 0 8px; font-family: var(--font-display); font-size: 22px; font-weight: 800; }
.xa-section h3 { margin: 16px 0 6px; font-size: 14px; font-weight: 800; color: var(--text-2); }
.xa-section p { line-height: 1.55; }
.xa-path { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.xa-path code { font-size: 14px; overflow-wrap: anywhere; }
.xa-get { padding: 2px 8px; border-radius: 6px; background: var(--ok-bg); color: var(--ok-text); font-size: 12px; font-weight: 800; }
.xa-section code, .xa-facts code { font-family: Consolas, "Cascadia Mono", Menlo, monospace; font-size: 13px; padding: 1px 5px; border-radius: 5px; background: var(--surface-3); }
.xa-code { position: relative; margin: 8px 0 12px; }
.xa-code pre { margin: 0; padding: 14px 16px; padding-right: 76px; overflow-x: auto; border-radius: 12px; background: var(--ink); color: var(--ink-text); font-size: 13px; line-height: 1.5; }
.xa-code pre code { padding: 0; background: none; color: inherit; font-size: inherit; }
.xa-copy { position: absolute; top: 8px; right: 8px; }
.xa-table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 6px 0 10px; }
.xa-table th, .xa-table td { padding: 8px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.xa-table th { font-size: 12px; font-weight: 700; color: var(--muted); }
.xa-notes { margin: 8px 0; padding-left: 18px; line-height: 1.55; color: var(--text-2); }
.xa-notes li + li { margin-top: 6px; }
.xa-facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 12px 0; }
.xa-facts dt { font-weight: 800; }
.xa-facts dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .xa-wrap { grid-template-columns: minmax(0, 1fr); }
  .xa-toc { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .xa-toc a { background: var(--surface-3); }
  .xa-facts { grid-template-columns: minmax(0, 1fr); gap: 2px 0; }
  .xa-facts dd { margin-bottom: 8px; }
}
.xc-note.xc-api { margin: 14px 0 0; }

.tour {
  position: fixed; right: 20px; bottom: 20px; z-index: 2500; width: min(380px, calc(100vw - 24px));
  background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lift);
}
.tour[hidden], .tour-pill[hidden], .tour-ring[hidden] { display: none; }
.tour-studs { position: absolute; left: 18px; bottom: 100%; display: flex; align-items: flex-end; gap: 8px; pointer-events: none; }
.tour-studs i { display: block; width: 18px; height: 7px; border-radius: 9px 9px 0 0; background: var(--border-strong); }
.tour-studs i.on { background: var(--accent); }
.tour-studs i.now { height: 9px; background: var(--surface); border: 2px solid var(--accent); border-bottom: 0; }
.tour-body { padding: 16px 18px 14px; max-height: min(70vh, 520px); overflow-y: auto; }
.tour-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tour-count { margin: 0; font-size: 13px; font-weight: 700; color: var(--muted); }
.tour-x { width: 36px; height: 36px; margin: -6px -8px 0 0; display: grid; place-items: center; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.tour-x:hover { background: var(--surface-3); color: var(--text); }
.tour-title { margin: 4px 0 0; font: 800 20px/1.2 var(--font-display); letter-spacing: -.01em; color: var(--text); }
.tour-text { margin: 6px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.tour-extra { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.tour-extra:empty { display: none; }
.tour-item { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text) !important; text-decoration: none !important; }
.tour-item:hover { border-color: var(--border-strong); }
.tour-item .thumb { width: 52px; flex: none; border-radius: 8px; }
.tour-item small, .tour-got small { display: block; font-size: 12px; font-weight: 600; color: var(--muted); }
.tour-item b, .tour-got b { display: block; font-size: 15px; }
.tour-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.tour .tour-leave { background: none; border-color: transparent; box-shadow: none; padding: 0 10px; font-weight: 600; color: var(--text-2) !important; text-decoration: underline !important; text-underline-offset: 3px; }
.tour .tour-leave:hover { background: var(--surface-3); }
.tour-pill {
  position: fixed; right: 20px; bottom: 20px; z-index: 2500; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: 700 14px/1.2 var(--font); box-shadow: var(--shadow-lift); cursor: pointer;
}
.tour-pill svg { color: var(--accent); }
.tour-ring { position: fixed; z-index: 1550; border-radius: 12px; pointer-events: none; box-shadow: 0 0 0 3px var(--accent), 0 0 0 200vmax rgba(8, 10, 15, .45); }
.tour-done > p { margin: 0 0 12px; line-height: 1.5; color: var(--text-2); }
.tour-got { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tour-got li { display: flex; align-items: center; gap: 12px; }
.tour-got .tour-item { flex: 1; }
.tour-got-zars { font: 800 22px/1.2 var(--font-display); }
.tour-badge img { display: block; width: 56px; height: 56px; }
.tour-more a { font-weight: 700; }
@media (max-width: 600px) {
  .tour { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .tour-body { max-height: 55vh; }
  .tour-pill { right: 12px; bottom: 12px; }
}
@media (pointer: coarse) {
  .tour .btn, .tour-x { min-height: 44px; min-width: 44px; }
}
.tour.tour-inline { position: relative; inset: auto; width: auto; max-width: 620px; margin: 28px 0 14px; z-index: auto; }
.tour-pill.tour-inline { position: static; margin: 0 0 14px; }

.case-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.case-head p { max-width: 62ch; margin: 4px 0 0; }
.case-balance { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.r-common { --rc: #8b94a6; --rc-text: #566072; }
.r-rare { --rc: #2f9bff; --rc-text: #1463b8; }
.r-epic { --rc: #9b5cff; --rc-text: #6a33cf; }
.r-legendary { --rc: #f0a400; --rc-text: #845400; }
:root[data-theme="dark"] .r-common { --rc-text: #bac3d2; }
:root[data-theme="dark"] .r-rare { --rc-text: #7cc0ff; }
:root[data-theme="dark"] .r-epic { --rc-text: #c4a3ff; }
:root[data-theme="dark"] .r-legendary { --rc-text: #ffc94d; }
.cx-shelf { display: flex; gap: 10px; overflow-x: auto; padding: 3px 3px 10px; margin: 0 -3px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.cx-pick { flex: 1 0 172px; scroll-snap-align: start; display: flex; align-items: center; gap: 10px; min-height: 72px; padding: 8px 12px 8px 8px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s, transform .15s; }
.cx-pick:hover:not(:disabled) { border-color: color-mix(in srgb, var(--tier) 55%, var(--border)); transform: translateY(-2px); }
.cx-pick.is-on { border-color: color-mix(in srgb, var(--tier) 70%, var(--text)); background: color-mix(in srgb, var(--tier) 14%, var(--surface)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tier) 70%, var(--text)); }
.cx-pick:disabled { opacity: .5; cursor: default; }
.cx-pick:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cx-pick .ca-art { flex: none; }
.cx-pick-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cx-pick-name { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-main { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.cx-stage { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 480px; padding: 28px 24px 24px; text-align: center; border-radius: var(--radius); border: 1px solid var(--border); background: radial-gradient(ellipse 62% 52% at 50% 32%, color-mix(in srgb, var(--tier) 30%, transparent), transparent 72%), var(--surface); overflow: hidden; }
.cx-stage:focus { outline: none; }
.cx-stage.is-result { background: radial-gradient(ellipse 62% 52% at 50% 30%, color-mix(in srgb, var(--rc) 28%, transparent), transparent 72%), var(--surface); }
.cx-sound { position: absolute; top: 12px; right: 12px; }
.cx-art { width: 220px; height: 220px; display: grid; place-items: center; animation: cx-in .28s ease-out; }
.cx-art .ca-art { width: 100%; height: 100%; transform-origin: 50% 85%; filter: drop-shadow(0 14px 16px color-mix(in srgb, var(--tier) 32%, transparent)); }
.cx-art .ca-lid { transition: transform .35s cubic-bezier(.34, 1.56, .64, 1); }
.cx-art .ca-glow { transform-box: fill-box; transform-origin: center; transition: transform .4s ease-out; }
.cx-stage.is-opening .cx-art .ca-art { animation: cx-shake .25s ease-in-out 2; }
.cx-stage.is-opening .cx-art .ca-lid { transform: translateY(-18px) rotate(-9deg); transition-delay: .5s; }
.cx-stage.is-opening .cx-art .ca-glow { transform: scale(1.3); transition-delay: .5s; }
.cx-copy { max-width: 44ch; }
.cx-name { font-family: var(--font-display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
.cx-blurb { margin: 6px 0 0; color: var(--text-2); }
.cx-buy { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 8px; }
.cx-buy p { margin: 0; }
.cx-open .cur, .cx-won-actions .btn-primary .cur { color: inherit; }
.cx-open .cur svg, .cx-won-actions .btn-primary .cur svg { filter: drop-shadow(0 0 1px rgba(0, 0, 0, .35)); }
.cx-buy .btn:disabled { opacity: .6; }
.cx-inside { padding: 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--surface); }
.cx-inside-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.cx-inside-head h3 { margin: 0; font-size: 17px; }
.cx-odds { list-style: none; margin: 0; padding: 0 2px 0 0; display: flex; flex-direction: column; gap: 6px; max-height: 420px; overflow-y: auto; scrollbar-width: thin; }
.cx-odds li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 10px 6px 6px; border-radius: var(--radius-sm); background: var(--surface-2); }
.cx-odds-thumb { display: block; width: 44px; border-radius: 9px; overflow: hidden; }
.cx-odds-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cx-odds-name { font-weight: 700; font-size: 14px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-bar { display: block; height: 4px; margin-top: 3px; border-radius: 2px; background: var(--surface-3); overflow: hidden; }
.cx-bar > span { display: block; height: 100%; border-radius: inherit; background: var(--rc); }
.cx-odds-chance { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; font-variant-numeric: tabular-nums; }
.cx-odds-chance b { font-size: 15px; }
.cx-rarity { font-size: 12px; font-weight: 700; color: var(--rc-text); }
.cx-spin-label { margin: 0 0 6px; font-weight: 700; color: var(--text-2); }
.cx-reel { position: relative; width: 100%; height: 176px; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); }
.cx-reel::before, .cx-reel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 64px; z-index: 2; pointer-events: none; }
.cx-reel::before { left: 0; background: linear-gradient(90deg, var(--surface-2), transparent); }
.cx-reel::after { right: 0; background: linear-gradient(-90deg, var(--surface-2), transparent); }
.cx-strip { display: flex; height: 100%; will-change: transform; }
.cx-tile { flex: 0 0 124px; margin: 16px 4px; padding: 6px; display: flex; flex-direction: column; gap: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); border-bottom: 4px solid var(--rc); text-align: left; }
.cx-tile .thumb { border-radius: 8px; }
.cx-tile-name { font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-tile.won { box-shadow: 0 0 0 3px var(--rc), 0 0 24px color-mix(in srgb, var(--rc) 55%, transparent); }
.cx-marker { position: absolute; left: 50%; top: 0; bottom: 0; z-index: 3; width: 3px; transform: translateX(-50%); background: color-mix(in srgb, var(--tier) 70%, var(--text)); }
.cx-marker::before, .cx-marker::after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); border: 8px solid transparent; }
.cx-marker::before { top: 0; border-top-color: color-mix(in srgb, var(--tier) 70%, var(--text)); }
.cx-marker::after { bottom: 0; border-bottom-color: color-mix(in srgb, var(--tier) 70%, var(--text)); }
.cx-won { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100%; animation: cx-pop .45s ease-out; }
.cx-won-thumb { width: 200px; border-radius: var(--radius); overflow: hidden; box-shadow: 0 0 0 3px var(--rc), 0 18px 40px -14px color-mix(in srgb, var(--rc) 70%, transparent); }
.cx-won-text { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.cx-won-kicker { font-size: 14px; color: var(--muted); }
.cx-won-text h2 { margin: 0; font-family: var(--font-display); font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; overflow-wrap: anywhere; }
.cx-won-text h2 a { color: var(--text); }
.cx-serial { color: var(--muted); }
.cx-won-meta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; align-items: center; }
.cx-won-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.cx-inv { flex-basis: 100%; font-size: 14px; }
.cx-problem { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.cx-problem p { margin: 0; }
.cx-recent, .cx-how { margin-top: 32px; }
.cx-recent h2, .cx-how h2 { font-size: 20px; margin: 0 0 12px; }
.cx-recent-list { list-style: none; margin: 0; padding: 0 0 8px; display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.cx-recent-list li { flex: 0 0 250px; scroll-snap-align: start; display: flex; gap: 10px; align-items: center; min-width: 0; padding: 10px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface); }
.cx-recent-thumb { width: 52px; flex: none; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 2px var(--rc); }
.cx-recent-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cx-recent-name { font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-recent-case { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); }
.cx-recent-case .ca-art { flex: none; }
.cx-how { max-width: 72ch; }
.cx-how p { color: var(--text-2); }
.adm-case-art { display: grid; place-items: center; width: 72px; height: 72px; }
@keyframes cx-in { from { transform: scale(.94); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cx-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
@keyframes cx-pop { from { transform: scale(.92); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 860px) {
  .cx-main { grid-template-columns: minmax(0, 1fr); }
  .cx-odds { max-height: none; }
  .cx-stage { min-height: 0; }
}
@media (max-width: 560px) {
  .cx-stage { padding: 14px 14px 20px; }
  .cx-sound { position: static; align-self: flex-end; }
  .cx-art { width: 176px; height: 176px; }
  .cx-name { font-size: 24px; }
  .cx-pick { flex-basis: 156px; }
  .cx-won-thumb { width: 160px; }
  .cx-won-text h2 { font-size: 22px; }
  .cx-buy .btn, .cx-won-actions .btn { width: 100%; justify-content: center; }
}
@media (pointer: coarse) {
  .cx-sound { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-art, .cx-won, .cx-stage.is-opening .cx-art .ca-art { animation: none; }
  .cx-art .ca-lid, .cx-art .ca-glow, .cx-pick { transition: none; }
}
.adm-case-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px 14px; align-items: end; }
.adm-case-form input[type=color] { height: 40px; padding: 4px; }
.adm-case-sub { margin: 6px 0 0; font-size: 14px; }
.adm-case-add { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-case-add .input { flex: 1 1 220px; min-width: 0; }
.adm-case-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; }
.adm-case-chip { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); min-width: 0; }
.adm-case-chip.bad { border-color: var(--danger); }
.adm-case-chip-thumb { width: 36px; flex: none; border-radius: 6px; overflow: hidden; }
.adm-case-chip-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.adm-case-chip-text a, .adm-case-chip-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-case-warn { color: var(--danger); }
.adm-case-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.adm-case-filters .input { flex: 1 1 160px; min-width: 0; }

:root[data-theme="dark"][data-skin="neoncoast"] {
  --ink: #0a0614;
  --ink-2: #130b22;
  --ink-3: #1e1233;
  --ink-line: rgba(255, 61, 139, .2);
  --ink-text: #fbf2ff;
  --ink-muted: #c9b6e4;
  --bg: #100a1c;
  --surface: #1a1029;
  --surface-2: #1f1431;
  --surface-3: #2a1b42;
  --border: #33224d;
  --border-strong: #6b4a93;
  --text: #fbf2ff;
  --text-2: #e3d4f5;
  --muted: #c3b2de;
  --link: #3be8d8;
  --accent: #ff3d8b;
  --accent-hover: #ff5c9f;
  --accent-press: #f0347f;
  --accent-soft: #3a1030;
  --accent-text: #1a0010;
  --buy: #0b7a71;
  --buy-hover: #096a62;
  --warn-bg: #352409;
  --warn-text: #ffd98a;
  --ok-bg: #0c2b2a;
  --ok-text: #8ff0e4;
  --err-bg: #3a1022;
  --err-text: #ffb0cf;
  --info-bg: #1d1640;
  --info-text: #cbbcff;
  --gold-text: #1a0d05;
  --online: #3be8d8;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .45);
  --shadow: 0 1px 2px rgba(0, 0, 0, .45), 0 8px 22px rgba(10, 0, 30, .45);
  --shadow-lift: 0 18px 44px rgba(10, 0, 30, .65);
  scrollbar-color: #5a3a7f var(--bg);
}
:root[data-skin="neoncoast"] body.bf { background: var(--bg); }
:root[data-skin="neoncoast"] .skin-scene.neon-scene { position: absolute; top: 0; height: 560px; }
:root[data-skin="neoncoast"] .bf-nav { border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, #ff3d8b, #ffb15c 50%, #3be8d8) 1; }
:root[data-skin="neoncoast"] .bf-logo-word { color: var(--ink-text); }
:root[data-skin="neoncoast"] .bf :focus-visible { outline-color: #3be8d8; }
:root[data-skin="neoncoast"] :is(.bf-iconbtn .dot, .bf-menu .count, .bf-side .count, .tabs .count, .tag-new, .game-cover .play-chip) { color: var(--accent-text); }
:root[data-skin="neoncoast"] .btn-buy { box-shadow: 0 2px 0 #054a44; }
:root[data-skin="neoncoast"] .thumb.bg-soft { background: radial-gradient(120% 100% at 50% 0%, #34204f 0%, #211538 58%, #170e28 100%); }
:root[data-skin="neoncoast"] :is(.fit-stage, .avatar-stage) { background: radial-gradient(circle at 50% 38%, #3a2156, #130b22); }
:root[data-skin="neoncoast"] .headshot .disc { background: radial-gradient(circle at 50% 35%, #3a2156, #160d27); }
:root[data-skin="neoncoast"] :is(.home-hero, .studio-card) {
  background: radial-gradient(90% 140% at 100% 0%, rgba(255, 61, 139, .38), transparent 60%), radial-gradient(70% 120% at 0% 100%, rgba(59, 232, 216, .16), transparent 60%), linear-gradient(135deg, #1e1233, #0a0614);
}
:root[data-skin="neoncoast"] .lp-hero {
  background: radial-gradient(48% 70% at 76% 46%, rgba(255, 61, 139, .3), transparent 70%), linear-gradient(180deg, #0a0614, #1e1233);
}
:root[data-skin="neoncoast"] .landing-hero { background: linear-gradient(180deg, #0a0614, #1e1233); }
@media (max-width: 639px) {
  :root[data-skin="neoncoast"] .skin-scene.neon-scene { height: 420px; }
}


.fc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; align-items: center; margin-bottom: 18px; padding: 20px 22px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.fc[hidden] { display: none; }
.fc-intro h2 { margin: 0 0 6px; font-size: 20px; }
.fc-intro p { margin: 0 0 8px; color: var(--text-2); }
.fc-waiting { font-weight: 700; color: var(--text) !important; }
.fc-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fc-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.fc-step { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); text-align: center; }
.fc-step .ca-art { opacity: .55; }
.fc-step.is-got .ca-art, .fc-step.is-next .ca-art { opacity: 1; }
.fc-step.is-next { border-color: color-mix(in srgb, var(--tier) 70%, var(--text)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tier) 70%, var(--text)); }
.fc-step.is-got .fc-step-text .small { color: var(--ok-text); font-weight: 700; }
.fc-seg { display: block; width: 100%; height: 6px; border-radius: 3px; background: var(--surface-3); overflow: hidden; }
.fc-seg > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.fc-step-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; max-width: 100%; }
.fc-step-text .small { color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-streak { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fc-streak p { margin: 0; color: var(--text-2); }
.fc-streak-count { display: flex; align-items: baseline; gap: 6px; }
.fc-streak-count b { font-family: var(--font-display); font-size: 34px; font-weight: 800; line-height: 1; }
.fc-streak-count span { font-weight: 700; color: var(--text-2); }
.fc-days { display: flex; gap: 5px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.fc-day { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--surface-3); color: var(--text-2); font-size: 13px; font-weight: 700; }
.fc-day.is-done { background: var(--accent); color: var(--accent-text); }
.fc-day.has-prize { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-strong); }
.fc-day.has-prize.is-done { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.cx-pick { position: relative; }
.cx-free-badge { position: absolute; top: -7px; right: 8px; padding: 1px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-size: 12px; font-weight: 800; }
.cx-zar { display: grid; place-items: center; aspect-ratio: 1; background: color-mix(in srgb, var(--gold) 16%, var(--surface-2)); }
.cx-zar .cur { font-weight: 800; }
.cx-won-thumb .cx-zar .cur { font-size: 26px; }
.cx-mode { margin-bottom: 10px; }
.cx-earn { margin: 0; font-weight: 700; color: var(--text-2); }
@media (max-width: 1000px) {
  .fc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .fc-intro { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .fc { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .fc-actions .btn { flex: 1 1 auto; justify-content: center; }
}

.adm-free-step { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fc-earn { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; grid-column: span 2; }
.fc-earn li { display: flex; align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); min-width: 0; }
.fc-earn li > span { display: flex; flex-direction: column; min-width: 0; }
.fc-earn b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-earn .small { color: var(--text-2); }
.fc-earn .ca-art { flex: none; }
.signup-gift { margin: 0 0 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--ok-bg); color: var(--ok-text); font-weight: 700; }
@media (max-width: 1000px) { .fc-earn { grid-column: 1 / -1; } }
.bulk-lead { max-width: 72ch; }
.bulk-card { display: flex; flex-direction: column; gap: 12px; margin: 14px 0; }
.bulk-card h2 { margin: 6px 0 0; font-size: 18px; }
.bulk-cases { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; border: 0; }
.bulk-cases legend { padding: 0; margin-bottom: 6px; font-weight: 700; }
.bulk-go { margin: 12px 0; }
.bulk-list { display: flex; flex-direction: column; gap: 6px; }
.bulk-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.bulk-pic { width: 72px; height: 72px; border-radius: 9px; background: var(--surface-3); overflow: hidden; }
.bulk-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bulk-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bulk-main .input { max-width: 320px; }
.bulk-links { display: flex; gap: 12px; flex-wrap: wrap; }
.bulk-err { color: var(--err-text); }
.bulk-row.is-done { border-color: var(--border-strong); }
@media (max-width: 560px) { .bulk-row { grid-template-columns: 56px minmax(0, 1fr); } .bulk-pic { width: 56px; height: 56px; } .bulk-links { grid-column: 1 / -1; } }
.cx-art.is-3d { width: 320px; height: 320px; max-width: 100%; animation: none; }
.cx-art .case3d { display: block; width: 100%; height: 100%; }
.cx-stage.is-opening .cx-art.is-3d { animation: none; }
@media (max-width: 560px) { .cx-art.is-3d { width: 250px; height: 250px; } }
.fp-lead { margin: 0 0 12px; color: var(--text-2); }
.fp-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 8px; margin: 0 0 14px; padding: 0; list-style: none; }
.fp-list li { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.fp-list li > span { display: flex; flex-direction: column; min-width: 0; }
.fp-list .small { color: var(--text-2); }
.fp-steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; color: var(--text-2); }
.push-card { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin: 16px 0 14px; }
.push-text { min-width: 0; flex: 1 1 260px; }
.push-title { margin: 0 0 2px; font-size: 16px; }
.push-text p { margin: 0; color: var(--text-2); }
.push-actions { display: flex; align-items: center; gap: 14px; }
.push-later { color: var(--text-2); }
.push-done { margin: 0; font-weight: 700; color: var(--ok-text); }
.push-blocked { margin: 8px 0 0; color: var(--err-text); }
.ws-page { display: flex; flex-direction: column; gap: 20px; max-width: 980px; }
.ws-head { display: flex; flex-direction: column; gap: 8px; }
.ws-title { margin: 0; font-family: var(--font-display); font-size: clamp(30px, 6vw, 48px); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.ws-blurb { margin: 0; max-width: 62ch; color: var(--text-2); font-size: 17px; }
.ws-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.ws-timer { font-weight: 800; font-variant-numeric: tabular-nums; }
.ws-grid { display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: 16px; align-items: start; }
.ws-reward { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.ws-reward-pic { display: block; width: 100%; max-width: 220px; }
.ws-reward-pic .thumb { width: 100%; }
.ws-reward-b { display: flex; flex-direction: column; gap: 4px; align-items: center; }
.ws-reward-b p { margin: 0; color: var(--text-2); }
.ws-eyebrow { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.ws-reward-name { font-size: 20px; font-weight: 800; }
.ws-list h2, .ws-card h2 { margin: 0 0 10px; font-size: 18px; }
.ws-pieces { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ws-piece { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface-2); }
.ws-piece.is-done { border-color: var(--ok-text); }
.ws-check { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 2px solid var(--border-strong); border-radius: 50%; color: var(--ok-text); }
.ws-piece.is-done .ws-check { background: var(--ok-bg); border-color: var(--ok-text); }
.ws-piece-b { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ws-piece-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ws-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 14px; }
.ws-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.ws-grid > .card + .card, .ws-board > .card + .card { margin-top: 0; }
.ws-people { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ws-people li { display: flex; align-items: center; gap: 10px; }
.ws-who { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.ws-rank { flex: none; min-width: 28px; font-weight: 800; color: var(--text-2); }
.ws-none { text-align: center; padding: 28px 16px; }
.ws-past { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.ws-past-card { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.ws-past-card.is-got { border-color: var(--ok-text); }
.ws-past-pic { display: block; width: 96px; }
.ws-home { display: flex; flex-direction: column; gap: 8px; margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); }
.ws-home-t { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.ws-home-name { font-weight: 800; }
.ws-home-n { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.ws-prof { display: grid; grid-template-columns: repeat(auto-fill, minmax(64px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.ws-prof a { display: block; }
.ws-streak { margin: 8px 0 0; font-weight: 700; }
.ws-build { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
.ws-build-row { display: grid; grid-template-columns: 170px 90px minmax(0, 1fr) minmax(0, 1.4fr) auto; gap: 8px; align-items: center; }
.ws-build-row .ws-build-x { grid-column: 3; }
.ws-build-row .ws-build-x[hidden] { display: none; }
.ws-build-row > input[aria-label="Label"] { grid-column: 4; }
@media (max-width: 760px) {
  .ws-grid { grid-template-columns: minmax(0, 1fr); }
  .ws-piece { flex-wrap: wrap; }
  .ws-build-row { grid-template-columns: minmax(0, 1fr) 90px; }
  .ws-build-row .ws-build-x, .ws-build-row > input[aria-label="Label"] { grid-column: 1 / -1; }
}
.game-keys { margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.game-keys kbd { display: inline-block; min-width: 20px; margin: 0 1px; padding: 1px 6px; border: 1px solid var(--border); border-radius: 5px; font: inherit; font-size: 12px; text-align: center; color: var(--text); }

.signup-consent a { text-decoration: underline; }
.uv-lazy-stage { cursor: default; }
@media (max-width: 820px) {
  .uv-lazy-stage { background-image: radial-gradient(ellipse at 50% 40%, #151a3d 0%, #070a18 70%); }
}
.xc-intro { margin-bottom: 14px; padding: 4px 16px; }
.xc-intro summary { display: flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 800; cursor: pointer; }
.xc-intro ul { margin: 0 0 10px; padding-left: 18px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
.xc-intro li + li { margin-top: 6px; }
.xc-win { font-weight: 600; color: var(--muted); }
.rwd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rwd-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px 20px; align-items: center; padding: 14px 16px; margin: 0; }
.rwd-do { display: flex; flex-direction: column; gap: 2px; }
.rwd-prog { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.rwd-bar { width: 100%; max-width: 220px; }
.rwd-lab { display: none; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
@media (max-width: 720px) {
  .rwd-row { grid-template-columns: 1fr; }
  .rwd-lab { display: block; }
}
.tour .tour-cue { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 45%, transparent); }

.cx-pick { align-items: center; }
.cx-pick-name { white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; overflow-wrap: anywhere; }
.cx-fold > summary { list-style: none; cursor: pointer; margin-bottom: 0; min-height: 44px; align-items: center; }
.cx-fold > summary::-webkit-details-marker { display: none; }
.cx-fold > summary h3::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); }
.cx-fold[open] > summary h3::after { transform: rotate(-135deg) translateY(-1px); }
.cx-fold[open] > summary { margin-bottom: 10px; }
.cx-fold > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 1060px) {
  .lp-new[hidden] { display: block; visibility: hidden; height: 44px; margin: 0 0 18px; }
}
@media (max-width: 480px) {
  .lp-hero-main { display: flex; flex-direction: column; align-items: stretch; }
  .lp-hero-main .lp-new { order: 0; align-self: flex-start; }
  .lp-hero-main h1 { order: 1; }
  .lp-hero-main .lead { order: 2; margin-bottom: 24px; }
  .lp-hero-main .lp-bricks { order: 3; }
  .lp-hero-main .lp-cta-note { order: 4; margin-top: 12px; }
  .lp-hero-main .lp-founder { order: 5; margin: 24px 0 0; }
  .lp-hero-main .lp-live { order: 6; }
  .lp-hero-in { padding-top: 72px; padding-bottom: 32px; }
  .lp-hero h1 { font-size: 44px; margin-bottom: 14px; }
  .lp-hero-main .lp-bricks { gap: 18px 12px; }
  .bf button.lp-brick-play { font-size: 26px; min-height: 72px; padding: 0 24px; white-space: nowrap; line-height: 1; }
  .lp-brick-play svg { flex: none; display: block; }
}
@media (max-height: 499px) {
  :root { --nav-h: 48px; }
  .bf-strip { display: none; }
}
.jump-page { min-height: 70vh; }
.jump-grid { min-height: 440px; }
.jump-grid > .loading, .jump-grid > .empty { grid-column: 1 / -1; }
.jump-news { min-height: 120px; }
.jump-size { min-height: 2.8em; margin: 4px 0 0; }
.jump-page p a:not(.btn), .jump-also a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) {
  .jump-grid { min-height: 380px; }
}

.relic-table td.num, .relic-table th.num { white-space: nowrap; }
.scroll-hint { display: none; margin: 0 0 6px; }
@media (max-width: 720px) {
  .scroll-hint { display: block; }
  .relic-wrap { background: linear-gradient(to right, var(--surface) 30%, transparent) 0 0 / 28px 100% no-repeat local, linear-gradient(to left, var(--surface) 30%, transparent) 100% 0 / 28px 100% no-repeat local, linear-gradient(to right, rgba(0, 0, 0, .18), transparent) 0 0 / 12px 100% no-repeat scroll, linear-gradient(to left, rgba(0, 0, 0, .18), transparent) 100% 0 / 12px 100% no-repeat scroll; }
  .relic-table { font-size: 13px; }
  .relic-table th, .relic-table td { padding-left: 8px; padding-right: 8px; }
  .relic-table td:first-child, .relic-table th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 120px; max-width: 150px; box-shadow: 1px 0 0 var(--border); }
}

@media (max-width: 640px), (pointer: coarse) {
  html body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="hidden"]),
  html body select,
  html body textarea { font-size: 16px !important; }
}
html.bf-noscroll { overflow: hidden; }
html.bf-noscroll body { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
.bf-side-close, .bf-search-close { display: none; }
.bf-search-head { padding: 8px 12px 4px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.bf-search-menu a.sug { padding: 11px 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 1099px) {
  .bf-side-close {
    display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: none; position: relative; z-index: 1;
    align-self: flex-end; margin: -8px -4px -52px auto; border: 0; border-radius: var(--radius-sm); background: rgba(255, 255, 255, .06); color: var(--ink-text); cursor: pointer;
  }
  .bf-side-close:hover { background: rgba(255, 255, 255, .12); }
}
@media (max-width: 640px) {
  html.bf-searching .bf-strip { visibility: hidden; }
  .bf-search.open {
    position: fixed; z-index: 1700; top: 0; left: 0; right: 0; margin: 0; height: var(--nav-h); display: flex; align-items: center;
    background: var(--ink); border-bottom: 1px solid var(--ink-line); padding: 0 6px 0 10px; box-shadow: none;
  }
  .bf-search.open input { flex: 1 1 auto; min-width: 0; height: 44px; padding-left: 42px; box-shadow: none; }
  .bf-search.open .bf-search-go { left: 14px; top: 50%; margin-top: -14px; }
  .bf-search.open .bf-search-close {
    display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; margin-left: 4px;
    border: 0; border-radius: 12px; background: none; color: var(--ink-text); cursor: pointer;
  }
  .bf-search.open .bf-search-close:hover { background: rgba(255, 255, 255, .08); }
  .bf-search.open .bf-search-menu {
    position: fixed; top: var(--nav-h); left: 0; right: 0; max-height: calc(100vh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto; overscroll-behavior: contain; border-radius: 0; border-width: 1px 0 0; box-shadow: var(--shadow-lift); background: var(--surface);
  }
  .bf-search-menu a { padding: 12px; min-height: 44px; display: flex; align-items: center; }
  .bf-nav-right .bf-iconbtn { width: 44px; height: 44px; }
  .bf-nav-right { gap: 0; }
  .bf-strip a { min-height: 44px; }
  .bf-footer nav a { display: flex; align-items: center; min-height: 44px; padding: 0; }
  .bf .bf-footer-base a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin: 0 4px; }
  .pager { gap: 12px; }
  .pager .btn { min-width: 44px; min-height: 44px; }
  .tabs { gap: 8px; }
  .tabs a, .tabs button { min-height: 44px; }
  .xc-side, .xc-mode, .xc-max, .xc-more { min-height: 44px; }
  .robot-box { min-height: 56px; padding: 8px 14px; cursor: pointer; }
  .robot-tick { width: 28px; height: 28px; }
  .robot-label { padding: 12px 0; flex: 1; }
  main li > a:only-child:not(:has(*)):not(.btn) { display: inline-block; padding: 12px 0; min-height: 44px; box-sizing: border-box; }
}

.catalog-page .item-card .name { min-height: 2.6em; }
.cat-count { min-height: 1.5em; }
.cat-shelf .n:empty, .cat-side-shelf .n:empty { display: inline-block; min-width: 2.5ch; }
.cat-skel .item-card.skel { pointer-events: none; }
.cat-skel .item-card.skel .skel-bar { display: block; height: 14px; width: 80%; margin-top: 4px; border-radius: 6px; background: var(--surface-3); }
.cat-skel .item-card.skel .skel-bar.short { width: 46%; }
.cat-skel .item-card.skel .price-line { min-height: 46px; }
.cat-skel .item-card.skel .thumb { animation: cat-skel-pulse 1.4s ease-in-out infinite; }
@keyframes cat-skel-pulse { 50% { opacity: .6; } }
.item-card .thumb img.render { background: transparent; }
@media (prefers-reduced-motion: reduce) { .cat-skel .item-card.skel .thumb { animation: none; } }
@media (max-width: 1023px) {
  .cat-aisle-row, .cat-shelf-row { gap: 8px; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
  .cat-aisle-row.at-end, .cat-shelf-row.at-end { -webkit-mask-image: none; mask-image: none; }
  .cat-aisle, .cat-shelf { min-height: 44px; }
  .cat-shelf { padding: 0 12px; }
}

.nm-dot { margin-left: auto; flex: none; background: var(--accent); color: var(--accent-text); border-radius: 999px; padding: 0 7px; font-size: 11px; font-weight: 800; line-height: 18px; }
.bf-top .nm-dot, .bf-strip .nm-dot { margin-left: 6px; display: inline-block; vertical-align: middle; }
.nm-more { margin: 4px 10px 0; font-size: 13px; line-height: 1.45; color: var(--ink-muted); }
.bf-side-nav .nm-more a { display: inline; padding: 0; background: none; color: var(--ink-muted); text-decoration: underline !important; }
.bf-side-nav .nm-more a:hover { background: none; color: var(--ink-text) !important; }
.nm-intro p { margin: 0 0 10px; line-height: 1.5; }
.nm-intro .nm-intro-lead { font-weight: 700; }
.ng-next { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px 16px; margin-top: 16px; border-left: 4px solid var(--accent); }
.ng-next[hidden] { display: none; }
.ng-next-icon { width: 44px; height: 44px; border-radius: var(--radius-sm); display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-press); }
:root[data-theme="dark"] .ng-next-icon { color: var(--accent); }
.ng-next-text { min-width: 0; }
.ng-next-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); }
.ng-next-text h2 { font-size: 20px; font-weight: 700; color: var(--text); margin: 2px 0 0; }
.ng-next-text p { font-size: 14px; color: var(--text-2); margin: 4px 0 0; max-width: 60ch; }
.ng-next-go { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ng-reward { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--ok-bg); color: var(--ok-text); font-size: 12px; font-weight: 700; white-space: nowrap; }
@media (max-width: 760px) {
  .ng-next { grid-template-columns: 44px 1fr; }
  .ng-next-go { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
  .ng-next-go .btn { min-height: 44px; }
}
.ng-crumbs { margin: 0 0 12px; font-size: 14px; }
.ng-crumb-list { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; list-style: none; margin: 0; padding: 0; color: var(--text-2); }
.ng-crumb-list li + li::before { content: "\203A"; margin: 0 8px; color: var(--text-2); }
.ng-crumb-list a { display: inline-flex; align-items: center; min-height: 28px; }
.ng-crumb-list li[aria-current] span { color: var(--text); font-weight: 600; overflow-wrap: anywhere; }
.ng-help { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; padding: 0; margin-left: 4px; vertical-align: middle; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface); color: var(--text-2); font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1; cursor: pointer; }
.ng-help::after { content: ""; position: absolute; inset: -9px; }
.ng-help:hover { color: var(--text); border-color: var(--text-2); }
.ng-help:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ng-help[aria-expanded="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.ng-has-corner { position: relative; }
.ng-help-corner { position: absolute; top: 8px; right: 16px; margin: 0; }
.ng-pop, .ng-tip { position: absolute; z-index: 1500; width: min(320px, calc(100vw - 24px)); box-sizing: border-box; padding: 12px 14px; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lift); font-size: 14px; line-height: 1.45; font-weight: 400; text-align: left; text-transform: none; letter-spacing: 0; }
.ng-pop p, .ng-tip p { margin: 0 0 8px; }
.ng-pop p:first-child { font-weight: 600; }
.ng-pop:focus { outline: none; }
.ng-pop .btn, .ng-tip .btn { min-height: 36px; }
@media (pointer: coarse), (max-width: 760px) {
  .ng-pop .btn, .ng-tip .btn { min-height: 44px; min-width: 44px; }
}
.ng-back { margin: 18px 0 -4px; font-weight: 800; font-size: 18px; }

.notice.recovery-bar { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm, none); }
.notice.recovery-bar > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) {
  .notice.recovery-bar { flex-direction: column; align-items: stretch !important; }
  .notice.recovery-bar > span { flex: 0 0 auto !important; }
  .notice.recovery-bar .btn { width: 100%; justify-content: center; min-height: 44px; }
}
@media (max-width: 640px) {
  .msg-row { grid-template-columns: 34px minmax(0, 1fr); }
  .msg-row > * { min-width: 0; }
  .msg-row .ellipsis { max-width: 100%; }
  .bf-container > .row.center:has(> .page-title), .bf-container > .row.center:has(> .page-title) > * { min-width: 0; }
  .bf-container > .row.center:has(> .page-title) { flex-wrap: wrap; gap: 8px 10px; }
  .bf-container > .row.center:has(> .page-title) > .page-title { flex: 1 1 100%; margin-right: 0 !important; }
  .bf-container > .row.center:has(> .page-title) > .btn { flex: 1 1 auto; justify-content: center; min-height: 44px; }
  .card.flush { min-width: 0; overflow-x: clip; }
  .card.flush .pre { overflow-wrap: anywhere; word-break: break-word; }
  .card.flush h2 { overflow-wrap: anywhere; }
}
@media (max-width: 560px) {
  .case-head > div { min-width: 0; flex: 1 1 100%; }
  .case-balance { flex: 1 1 100%; width: 100%; justify-content: space-between; padding: 12px 16px; min-height: 52px; font-size: 18px; flex-wrap: wrap; }
  .case-balance .muted { font-size: 14px; }
  .cx-room { min-width: 0; }
  .cx-shelf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; margin: 0 0 8px; padding: 3px 0 6px; scroll-snap-type: none; }
  .cx-pick { flex: none; min-width: 0; width: 100%; padding-right: 8px; }
}

.tour-morebtn { display: none; }
.tour.tour-inline { scroll-margin-top: calc(var(--nav-h, 56px) + 56px); margin-top: calc(var(--nav-h, 56px) + 36px); }
@media (max-width: 640px) {
  .tour { left: 8px; right: 8px; bottom: calc(var(--tabbar-h, 0px) + 8px); width: auto; max-width: calc(100vw - 16px); box-sizing: border-box; }
  .tour-pill { right: 8px; bottom: calc(var(--tabbar-h, 0px) + 8px); max-width: calc(100vw - 16px); }
  .tour-studs { left: auto; right: 54px; top: 17px; bottom: auto; align-items: center; gap: 5px; }
  .tour-studs i, .tour-studs i.now { width: 12px; height: 6px; border-radius: 6px; }
  .tour-studs i.now { border-width: 2px; }
  .tour-body { padding: 8px 12px 10px; max-height: 40vh; }
  .tour-head { min-height: 28px; }
  .tour-count { font-size: 13px; }
  .tour-x { margin: -4px -6px 0 0; }
  .tour-title { margin: 0; font-size: 16px; line-height: 1.25; }
  .tour-text { margin: 2px 0 0; font-size: 13px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .tour.tour-open .tour-text { display: block; }
  .tour-morebtn { display: inline-block; margin: 2px 0 0; padding: 0; min-height: 0; border: 0; background: none; color: var(--link, var(--accent)); font: 700 13px/1.4 var(--font); text-decoration: underline; cursor: pointer; }
  .tour-morebtn[hidden] { display: none; }
  .tour-extra { margin-top: 6px; gap: 6px; }
  .tour-item { padding: 4px 8px; }
  .tour-item .thumb { width: 36px; }
  .tour-actions { flex-wrap: nowrap; gap: 6px; margin-top: 8px; }
  .tour-actions .btn { min-height: 44px; padding-left: 10px; padding-right: 10px; font-size: 14px; white-space: nowrap; }
  .tour-actions .btn:first-child { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .tour .tour-leave { padding: 0 6px; font-size: 13px; }
  .tour.tour-inline { position: relative; inset: auto; left: auto; right: auto; bottom: auto; max-width: none; }
  .tour-pill.tour-inline { position: static; }
}

:root { --tabbar-h: 0px; }
.bf-tabbar { display: none; }
.bf-iconbtn .dot { top: 2px; right: -3px; }
.sr-more {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
}
@media (max-width: 1023px) {
  :is(.tabs, .cat-nav, .cat-aisle-row, .cat-shelf-row) { scroll-snap-type: x proximity; scroll-padding-inline: 12px; }
  :is(.tabs, .cat-nav, .cat-aisle-row, .cat-shelf-row) > * { scroll-snap-align: start; flex: none; }
  .tabs { padding-left: 4px; padding-right: 12px; }
}
@media (max-width: 820px) {
  .cat-nav a, .cat-nav a.top { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (max-width: 640px) {
  .bf-nav { overflow-x: clip; }
  .bf-nav-inner, .bf-nav-right { min-width: 0; }
  .bf-nav-inner { padding: 0 8px; }
  .bf-burger-lbl { display: none; }
  .bf-wallet-pair { flex-direction: row; align-items: center; height: 36px; padding: 0 2px; flex: 0 1 auto; min-width: 0; }
  .bf-wallet { height: 30px; padding: 0 5px; gap: 4px; font-size: 13px; line-height: 1; border-radius: 8px; white-space: nowrap; min-width: 0; }
  .bf-wallet .amt { overflow: hidden; text-overflow: ellipsis; }
  .bf-wallet svg { width: 15px; height: 15px; flex: none; }
  .bf-wallet + .bf-wallet { border-left: 1px solid var(--ink-line); border-radius: 0 8px 8px 0; }
  .bf-nav-right { margin-left: auto; }
  .bf-me-btn { margin-left: 0; }
}
@media (max-width: 420px) {
  .bf-logo-word { display: none; }
  .bf-logo { margin-right: auto; }
}
@media (max-width: 640px) and (min-height: 500px) and (orientation: portrait) {
  html:has(.bf-tabbar) { --tabbar-h: calc(56px + env(safe-area-inset-bottom, 0px)); }
  html:has(.bf-tabbar).bf-noscroll, html:has(.bf-tabbar).bf-searching, html:has(.bf-tabbar):has(.modal-back) { --tabbar-h: 0px; }
  html:has(.bf-tabbar) .bf-tabbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050; box-sizing: border-box; width: 100%;
    height: var(--tabbar-h); padding: 0 4px env(safe-area-inset-bottom, 0px);
    background: var(--ink); border-top: 1px solid var(--ink-line);
  }
  html:has(.bf-tabbar):is(.bf-noscroll, .bf-searching) .bf-tabbar, html:has(.bf-tabbar):has(.modal-back) .bf-tabbar { display: none; }
  .bf-tabbar a {
    flex: 1 1 0; min-width: 0; min-height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    color: var(--ink-muted) !important; text-decoration: none !important; font-size: 12px; font-weight: 700; position: relative;
  }
  .bf-tabbar a.active { color: var(--ink-text) !important; }
  .bf-tabbar a.active::before { content: ""; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--accent); }
  .bf-tabbar .tb-lbl { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.bf-page > #main { min-height: 100vh; min-height: 100dvh; }

@media (max-width: 720px) {
  .relic-wrap { background: none; overflow: visible; }
  .relic-table, .relic-table tbody, .relic-table tr, .relic-table td { display: block; width: 100%; }
  .relic-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .relic-table tr { margin: 0 0 10px; padding: 10px 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
  .relic-table td, .relic-table tbody tr:hover td { padding: 5px 0; border: 0; background: none; }
  .relic-table td.relic-name { position: static; min-width: 0; max-width: none; box-shadow: none; font-size: 16px; font-weight: 800; padding-bottom: 6px; border-bottom: 1px solid var(--border); margin-bottom: 4px; overflow-wrap: anywhere; }
  .relic-table td.num { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; text-align: right; white-space: nowrap; font-size: 14px; }
  .relic-table td.num::before { content: attr(data-label); flex: none; margin-right: auto; color: var(--text-2); font-size: 13px; font-weight: 600; white-space: normal; text-align: left; }
}

.cx-pick-name { display: block; -webkit-line-clamp: unset; line-clamp: unset; overflow: visible; text-overflow: clip; white-space: normal; overflow-wrap: anywhere; }
.fc-earn b, .fc-step-text .small, .cx-recent-name, .cx-odds-name { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.fc-earn li, .fc-step { align-items: flex-start; }
.fp-list b { overflow-wrap: anywhere; }
.cx-name, .cx-won-text h2, .cx-won-kicker { overflow-wrap: anywhere; }
.cx-pick { height: auto; }

.tour-mini { display: none; }
@media (max-width: 640px) {
  .tour.tour-collapsed { display: none; }
  .tour-mini:not([hidden]) {
    display: flex; align-items: stretch; position: fixed; left: 8px; bottom: calc(var(--tabbar-h, 0px) + 8px); z-index: 2500;
    height: 44px; max-width: calc(100vw - 16px); box-sizing: border-box; overflow: hidden;
    background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); box-shadow: var(--shadow-lift);
  }
  .tour-mini button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; border: 0; background: none; color: var(--text); font: 700 14px/1.2 var(--font); cursor: pointer; }
  .tour-mini-open { padding: 0 10px 0 12px; min-width: 0; white-space: nowrap; }
  .tour-mini-open svg { color: var(--accent); flex: none; }
  .tour-mini-next { width: 44px; flex: none; border-left: 1px solid var(--border) !important; color: var(--accent) !important; }
}
.toasts { bottom: calc(var(--tabbar-h, 0px) + 12px); max-width: calc(100vw - 24px); }
.toast { cursor: pointer; line-height: 1.35; }
@media (max-width: 760px) {
  .toasts { left: 12px; right: 12px; transform: none; align-items: stretch; }
  .toast { max-width: none; }
  body.has-side .toasts { left: 12px; }
}
.ng-help { box-sizing: content-box; width: 26px; height: 26px; }
@media (pointer: coarse), (max-width: 760px) {
  .ng-help { width: 44px; height: 44px; margin: -9px -9px -9px -5px; padding: 0; border: 0; background: none; border-radius: 0; }
  .ng-help::before { content: "?"; display: flex; align-items: center; justify-content: center; width: 26px; height: 26px; box-sizing: border-box; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface); color: var(--text-2); font-size: 14px; font-weight: 700; line-height: 1; }
  .ng-help { font-size: 0; }
  .ng-help::after { display: none; }
  .ng-help[aria-expanded="true"]::before { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
  .ng-help-corner { margin: 0; top: 0; right: 8px; }
}

html { scroll-padding-bottom: var(--tabbar-h); }
html:has(.bf-tabbar) { scroll-padding-bottom: var(--tabbar-h); }
@media (max-width: 640px) and (min-height: 500px) and (orientation: portrait) {
  html:has(.bf-tabbar) .bf-page { padding-bottom: calc(var(--tabbar-h) + 16px); box-sizing: border-box; }
  html:has(.bf-tabbar):not(:has(.bf-page)) body { padding-bottom: calc(var(--tabbar-h) + 16px); box-sizing: border-box; }
  html:has(.bf-tabbar) .bf-strip { display: none; }
  html:has(.bf-tabbar) .bf-page > #main { min-height: calc(100vh - var(--nav-h)); min-height: calc(100dvh - var(--nav-h)); }
}
@media (max-width: 1023px) {
  :is(.tabs, .cat-nav, .cat-aisle-row, .cat-shelf-row):not(.sr-end) {
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
    mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent);
  }
  .tabs { max-width: 100%; min-width: 0; box-sizing: border-box; }
  :has(> .tabs) { min-width: 0; max-width: 100%; }
}
.xc-win { font-size: 13px; }
@media (max-width: 640px) {
  .xc-coins td[data-label]::before { font-size: 13px; }
  label:has(> input[type="checkbox"]), label:has(> input[type="radio"]), .check { display: flex; align-items: center; gap: 10px; min-height: 44px; }
  input[type="checkbox"]:not(.robot-tick), input[type="radio"] { width: 24px; height: 24px; flex: none; }
  .linkish, .card p.center > a, p.center.small > a { display: inline-flex; align-items: center; min-height: 44px; }
  .card .center a:not(.btn), form ~ p a:not(.btn) { min-height: 44px; display: inline-flex; align-items: center; }
}


.cat-skel .item-card.skel .price-line { min-height: 52px; }
.cat-skel .item-card.skel .name { display: block; }
.cat-skel .item-card.skel .name .skel-bar { margin-top: 2px; height: 16px; }
.cat-shelf .n, .cat-side-shelf .n { display: inline-block; min-width: 4ch; }
.cat-side-shelf .n { text-align: right; }
.cat-count { min-width: 15ch; }
.ng-help, .ng-help:hover, .ng-help[aria-expanded="true"] { box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-width: 44px; margin: -9px -9px -9px -5px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--text-2); font-size: 0; font-weight: 400; line-height: 0; vertical-align: middle; text-transform: none; letter-spacing: 0; }
.ng-help::after { content: none; display: none; }
.ng-help::before { content: "?"; display: flex; align-items: center; justify-content: center; flex: none; box-sizing: border-box; width: 26px; height: 26px; border: 1px solid var(--border-strong); border-radius: 50%; background: var(--surface); color: var(--text-2); font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1; text-transform: none; letter-spacing: 0; }
.ng-help:hover::before { color: var(--text); border-color: var(--text-2); }
.ng-help[aria-expanded="true"]::before { background: var(--accent-soft); border-color: var(--accent); color: var(--text); }
.ng-help-corner { position: absolute; top: 0; right: 8px; margin: 0; }
@media (max-width: 640px) {
  .jump-page { margin-top: 0; min-height: calc(100dvh - var(--nav-h) - var(--tabbar-h, 0px)); }
  .jump-head { margin-bottom: 10px; }
  .jump-head .page-title { margin: 0; font-size: 24px; line-height: 1.15; }
  .jump-head p { display: none; }
  .jump-grid { min-height: 292px; }
  .jump-art { aspect-ratio: 16 / 9; max-height: 118px; }
  .jump-body { gap: 4px; padding: 10px 12px 12px; }
  .jump-body h2, .jump-card.big .jump-body h2 { font-size: 18px; }
  .jump-body p { margin: 0 0 4px; }
  .jump-body .btn-lg { min-height: 48px; }
  .jump-size { min-height: 2.6em; font-size: 12.5px; margin: 2px 0 0; }
  .jump-foot { margin-top: 12px; gap: 8px 12px; font-size: 13px; }
  .jump-foot .muted.small { font-size: 12.5px; line-height: 1.4; }
  .jump-news { margin-top: 20px; }
}
@media (max-width: 480px) {
  .lp-hero-in { padding-top: 20px; padding-bottom: 24px; }
  .lp-hero-main .lp-new:not([hidden]), .lp-new[hidden] { min-height: 36px; height: 36px; margin: 0 0 10px; }
  .lp-hero h1 { font-size: 40px; margin-bottom: 10px; }
  .lp-hero .lead { font-size: 15px; line-height: 1.4; margin-bottom: 16px; }
  .lp-hero-main .lp-bricks { gap: 12px; }
  .bf button.lp-brick-play { min-height: 60px; font-size: 24px; }
  .lp-hero-main .lp-brick-claim { min-height: 44px; }
  .lp-hero-main .lp-cta-note { margin-top: 8px; font-size: 13px; }
  .lp-hero-main .lp-founder { margin: 14px 0 0; padding: 10px 12px; }
  .lp-founder .fd-count { margin: 0 0 8px; }
  .bf .lp-founder p:last-child { display: none; }
}
.recovery-bar[hidden] { display: none !important; }

@media (max-width: 640px) {
  .tour:not(.tour-inline):not(.tour-wide) .tour-studs,
  .tour:not(.tour-inline):not(.tour-wide) .tour-text,
  .tour:not(.tour-inline):not(.tour-wide) .tour-extra,
  .tour:not(.tour-inline):not(.tour-wide) .tour-morebtn { display: none; }
  .tour:not(.tour-inline):not(.tour-wide) .tour-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 8px; align-items: center; padding: 4px 10px 6px; max-height: none; overflow: visible; }
  .tour:not(.tour-inline):not(.tour-wide) .tour-head { grid-column: 1 / -1; min-height: 24px; }
  .tour:not(.tour-inline):not(.tour-wide) .tour-count { font-size: 12px; }
  .tour:not(.tour-inline):not(.tour-wide) .tour-x { width: 36px; min-width: 36px; height: 28px; min-height: 28px; margin: 0 -6px 0 0; }
  .tour:not(.tour-inline):not(.tour-wide) .tour-body > div[aria-live] { min-width: 0; }
  .tour:not(.tour-inline):not(.tour-wide) .tour-title { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tour:not(.tour-inline):not(.tour-wide) .tour-actions { margin: 0; max-width: 62vw; }
  .tour:not(.tour-inline):not(.tour-wide) .tour-actions .btn:first-child { max-width: 38vw; }
  .tour.tour-wide:not(.tour-inline) .tour-title, .tour.tour-wide:not(.tour-inline) .tour-text { cursor: pointer; }
}

html .headshot .disc.ph { background: var(--surface-3) !important; color: var(--muted); display: grid; place-items: center; }
.headshot .disc.ph > svg { display: block; opacity: .75; }
@media (max-width: 640px), (pointer: coarse) {
  label:has(+ input[type="checkbox"]), label:has(+ input[type="radio"]), input[type="checkbox"] + label, input[type="radio"] + label {
    display: inline-flex; align-items: center; min-height: 44px;
  }
  label:has(> input[type="checkbox"]), label:has(> input[type="radio"]) { padding-block: 4px; box-sizing: border-box; }
  .robot-box { min-height: 56px; }
  main :is(p, li, dd, td, small, span) > a:not(.btn):not(:has(*)) { padding-block: 13px; }
}
@media (max-width: 640px) {
  .tabs.tabs-wrap { flex-wrap: wrap; overflow: visible; padding-left: 0; padding-right: 0; -webkit-mask-image: none; mask-image: none; }
}
.pf-ward { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px 18px; }
.pf-ward-t { display: block; margin-bottom: 4px; font-size: 14px; }
.daily-card { margin: 16px 0 14px; padding: 16px 18px; display: grid; gap: 8px; }
.daily-card[hidden] { display: none; }
.daily-head { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 18px; }
.daily-today { font-weight: 800; margin: 0; }
.daily-streak, .daily-next, .daily-clock { margin: 0; color: var(--text-2); font-size: 14px; }
.daily-next { padding-left: 18px; }
.daily-claim { justify-self: start; }
.ng-card { margin-top: 16px; border-left: 4px solid var(--accent); display: block; }
.ng-prog-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ng-prog-head h2 { font-size: 20px; font-weight: 700; color: var(--text); margin: 0; }
.ng-bar { height: 10px; margin: 10px 0 12px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.ng-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .4s ease; }
.ng-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ng-step { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 4px 8px; border-radius: var(--radius-sm); color: var(--text); }
.ng-step-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--text-2); }
.ng-step-name { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 600; }
.ng-step.done .ng-step-icon { background: var(--ok-bg); color: var(--ok-text); }
.ng-step.done .ng-step-name { color: var(--text-2); font-weight: 500; }
.ng-step.current { background: var(--accent-soft); }
.ng-step.current .ng-step-icon { background: var(--accent); color: var(--accent-text); }
.ng-step.later { opacity: .62; }
.ng-current { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.ng-current-text { flex: 1 1 260px; min-width: 0; }
.ng-current-text h3 { font-size: 17px; font-weight: 700; color: var(--text); margin: 0; }
.ng-current-text p { font-size: 14px; color: var(--text-2); margin: 4px 0 0; max-width: 60ch; }
.ng-train-body { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.ng-train-body h2 { font-size: 26px; font-weight: 800; color: var(--text); margin: 0; }
.ng-train-time { font-size: 16px; color: var(--text-2); margin: 6px 0 0; }
.ng-train-reward { font-size: 16px; font-weight: 700; color: var(--text); margin: 8px 0 0; }
.ng-train-go { margin-top: 16px; min-width: 200px; min-height: 56px; font-size: 20px; justify-content: center; }
@media (max-width: 760px) {
  .ng-train-go { width: 100%; }
  .ng-current .btn { width: 100%; min-height: 48px; justify-content: center; }
}
.ng-more { margin-top: 20px; }
.ng-more > summary { cursor: pointer; display: flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); font-size: 16px; font-weight: 700; }
.ng-more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ng-more-body { margin-top: 12px; }
.ng-friendly { margin-top: 8px; }
.ng-friendly h2 { font-size: 20px; font-weight: 700; color: var(--text); margin: 0; }
.ng-friendly p { margin: 6px 0 0; }
.ng-friendly-go { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ng-friendly-go .btn { min-height: 44px; }
.ng-cel-back { position: fixed; inset: 0; z-index: 3500; display: grid; place-items: center; padding: 16px; background: rgba(10, 12, 20, .78); overflow: hidden; }
.ng-cel { position: relative; z-index: 1; width: min(420px, 100%); box-sizing: border-box; padding: 28px 22px; text-align: center; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); }
.ng-cel p { margin: 0; }
.ng-cel-kicker { font-size: 14px; font-weight: 700; color: var(--text-2); }
.ng-cel-line { margin-top: 8px !important; font-size: 24px; font-weight: 800; }
.ng-cel-zars { color: var(--accent-press); font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .ng-cel-zars { color: var(--accent); }
.ng-cel-case { display: grid; justify-items: center; gap: 6px; margin-top: 16px; }
.ng-cel-go { margin-top: 20px; width: 100%; min-height: 52px; justify-content: center; }
.ng-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.ng-bit { position: absolute; top: -14px; width: 9px; height: 14px; border-radius: 2px; opacity: 0; animation: ng-fall 2s ease-in forwards; }
@keyframes ng-fall { 0% { opacity: 1; transform: translate(0, 0) rotate(0deg); } 100% { opacity: 0; transform: translate(var(--ng-drift, 0px), 105vh) rotate(540deg); } }
@media (prefers-reduced-motion: reduce) {
  .ng-bar i { transition: none; }
  .ng-confetti { display: none; }
}

.bf-me-btn { position: relative; }
.lv-badge { position: absolute; left: 24px; bottom: 2px; min-width: 16px; height: 16px; padding: 0 3px; box-sizing: border-box; border-radius: 999px; background: var(--accent); color: var(--accent-text, #fff); font-size: 10px; font-weight: 800; line-height: 16px; text-align: center; border: 1px solid var(--ink-3, #1d1f26); pointer-events: none; }
.lv-bar { display: block; color: inherit; text-decoration: none; }
.lv-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; }
.lv-xp { color: var(--muted); font-size: 12px; font-weight: 600; }
.lv-track { display: block; height: 8px; margin-top: 4px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.lv-fill { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.lv-next { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }
.lv-bar:hover { text-decoration: none; }
.lv-compact { min-width: 190px; max-width: 280px; flex: 1 1 190px; padding: 6px 10px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.lv-tag { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--surface-3); color: var(--text); font-size: 13px; font-weight: 800; }
.pf-id .lv-bar { max-width: 320px; margin: 8px 0; }
.bf-menu a.lv-row { display: block; padding: 8px 10px 10px; margin-bottom: 4px; }
.bf-menu a.lv-row .lv-top { font-size: 13px; }
.rwd-prog .lv-bar { min-width: 180px; }

.home-hero .lv-compact { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .1); color: #fff !important; padding: 5px 12px; border-radius: 14px; }
.home-hero .lv-compact:hover { background: rgba(255, 255, 255, .14); }
.home-hero .lv-compact .lv-xp, .home-hero .lv-compact .lv-next { color: rgba(255, 255, 255, .72); }
.home-hero .lv-compact .lv-track { height: 5px; background: rgba(255, 255, 255, .18); }
:root[data-skin="thanksgiving"] .home-hero .lv-compact { background: rgba(46, 22, 0, .08); border-color: rgba(46, 22, 0, .16); color: #2e1600 !important; }
:root[data-skin="thanksgiving"] .home-hero .lv-compact .lv-xp, :root[data-skin="thanksgiving"] .home-hero .lv-compact .lv-next { color: rgba(46, 22, 0, .75); }
:root[data-skin="thanksgiving"] .home-hero .lv-compact .lv-track { background: rgba(46, 22, 0, .16); }
@media (prefers-reduced-motion: reduce) { .lv-fill { transition: none !important; } }

@media (min-width: 761px) {
  .toasts, body.has-side .toasts { left: auto; right: 20px; bottom: 20px; transform: none; align-items: flex-end; max-width: min(420px, calc(100vw - 40px)); }
  .toasts .toast { max-width: 100%; }
}
@media (max-width: 760px) {
  .toasts { bottom: calc(var(--tabbar-h, 0px) + 8px); }
  .toasts .toast { padding: 8px 12px; font-size: 13px; }
}
.lv-up-num { margin: 6px 0 2px !important; font-size: 64px; line-height: 1; font-weight: 900; color: var(--accent-press); font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .lv-up-num { color: var(--accent); }
.lv-up-line { font-size: 20px; }
.lv-up-next { margin-top: 14px !important; }
.lv-up-later { margin-top: 8px; width: 100%; min-height: 44px; justify-content: center; }
.set-nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text) !important; font-size: 14px; font-weight: 700; text-decoration: none; }
.set-nav a:hover { border-color: var(--border-strong); text-decoration: none; }
@media (max-width: 640px), (pointer: coarse) {
  .set-nav a { min-height: 44px; padding: 8px 16px; }
}

:is(.ench-cap-name, .tier-name) { color: color-mix(in srgb, var(--tc, var(--text)) 42%, #000); }
:root[data-theme="dark"] :is(.ench-cap-name, .tier-name) { color: var(--tc, var(--text)); }
:root[data-skin="thanksgiving"] :is(.ench-cap-name, .tier-name) { color: var(--text) !important; }
.cur.tix { color: #0b6b3a; }
:root[data-theme="dark"] .cur.tix { color: #5fe3a1; }
:root[data-skin="thanksgiving"] .cur.tix { color: #146b3e; }
.bf-nav .cur { color: #fff; }
.robot-tick { width: 44px; height: 44px; }
.robot-box { min-height: 60px; }
:is(main, .ssr-main, .legal) :is(p, li, td, dd, small, figcaption, .lead, .help, .muted, .small, .sub, .lp-sub, .empty, .hint, .meta, .note, .byline) a:not(.btn):not(.pill):not([class*="chip"]):not([class*="tab"]):not(:has(img, svg, div, h2, h3)),
:is(.notice, .subtitle, .bf-alert-inner) a:not(.btn):not(.pill):not([class*="chip"]):not(:has(img, svg, div)),
.relic-table a {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px;
}
.tabs a, .cat-nav a, .bf-side a, .bf-menu a, .bf-tabbar a, .bf-strip a { text-decoration-line: none; }
@media (max-width: 640px) and (min-height: 500px) and (orientation: portrait) {
  html:has(.bf-tabbar) .bf-page:has(.bf-footer) { padding-bottom: 0; }
  html:has(.bf-tabbar) .bf-footer { padding-bottom: calc(var(--tabbar-h) + 16px); box-sizing: border-box; }
}
@media (max-width: 640px), (pointer: coarse) {
  main :is(p, li, dd, td, small, span, .small, .muted, .center) a:not(.btn):not(.pill):not([class*="chip"]):not([class*="tab"]):not(.tour a):not(:has(*)) {
    padding-block: 13px; margin-block: -13px;
  }
}
@media (min-width: 481px) {
  .lp-hero-main { display: flex; flex-direction: column; align-items: flex-start; }
  .lp-hero-main .lp-new { order: 0; }
  .lp-hero-main h1 { order: 1; }
  .lp-hero-main .lead { order: 2; }
  .lp-hero-main .lp-bricks { order: 3; }
  .lp-hero-main .lp-cta-note { order: 4; }
  .lp-hero-main .lp-founder { order: 5; margin: 24px 0 0; width: 100%; }
  .lp-hero-main .lp-live { order: 6; }
}
@media (min-width: 1061px) {
  .lp-hero { min-height: 560px; }
  .lp-hero-in { padding-top: 56px; padding-bottom: 48px; }
  .lp-hero h1 { font-size: clamp(46px, 5.4vw, 72px); margin-bottom: 16px; }
  .lp-hero .lead { margin-bottom: 24px; }
  .lp-hero-main .lp-brick-play { min-height: 76px; }
  .bf .lp-cta-note { margin-top: 16px; }
}
.bf .lp-live:empty { display: flex; min-height: 21px; visibility: hidden; }
.start-here[hidden] { display: block; visibility: hidden; min-height: 330px; }
@media (min-width: 861px) {
  .lp-news-row { min-height: 340px; }
}
.jump-skel .jump-art { background: var(--surface-3); }
.jump-skel-btn { display: block; border: 0; background: var(--surface-3); min-height: 52px; }
.ench-skel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 440px); gap: 20px 36px; min-height: 560px; }
.ench-skel-list { display: grid; gap: 12px; align-content: start; }
.ench-skel-list i { display: block; height: 88px; border-radius: var(--radius); background: var(--surface-3); }
.ench-skel-stage { aspect-ratio: 1; border-radius: var(--radius); background: var(--surface-3); }
@media (max-width: 820px) {
  .ench-skel { grid-template-columns: minmax(0, 1fr); }
  .ench-skel-stage { display: none; }
}
.shot-open { position: absolute; inset: 0; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.shot-open:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; }
.xc-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.ng-bell-wrap { position: relative; display: inline-flex; }
.ng-bell-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 1600; width: min(360px, calc(100vw - 16px)); box-sizing: border-box; background: var(--surface); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lift); overflow: hidden; text-align: left; }
.ng-bell-panel[hidden] { display: none; }
.ng-bell-head { padding: 10px 14px; border-bottom: 1px solid var(--border); font-size: 15px; }
.ng-bell-list { list-style: none; margin: 0; padding: 0; max-height: 60vh; overflow-y: auto; }
.ng-bell-row { display: grid; gap: 2px; min-height: 44px; padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text) !important; text-decoration: none; }
.ng-bell-row:hover, .ng-bell-row:focus-visible { background: var(--surface-3); text-decoration: none; }
.ng-bell-row:focus-visible, .ng-bell-all:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ng-bell-subject { font-size: 14px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ng-bell-prev { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ng-bell-empty { margin: 0; padding: 16px 14px; font-size: 14px; }
.ng-bell-all { display: flex; align-items: center; justify-content: center; min-height: 44px; font-size: 14px; font-weight: 700; }
@media (max-width: 640px) {
  .ng-bell-wrap { position: static; }
  .ng-bell-panel { position: fixed; top: var(--nav-h); left: 0; right: 0; width: auto; border-radius: 0 0 var(--radius) var(--radius); }
  .ng-bell-list { max-height: calc(100vh - var(--nav-h) - 110px); }
}
.ng-cases-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin-top: 12px; padding: 0 14px; border-radius: 999px; background: var(--accent-soft); color: var(--text) !important; border: 1px solid var(--border); font-size: 14px; font-weight: 700; text-decoration: none; }
.ng-cases-chip:hover { text-decoration: none; border-color: var(--accent); }
.bf-top .count, .bf-strip .count { display: inline-block; margin-left: 6px; background: var(--accent); color: var(--accent-text); border-radius: 999px; padding: 0 7px; font-size: 12px; font-weight: 800; line-height: 18px; }
.bf-top .count.hidden, .bf-strip .count.hidden { display: none; }
.notice a:not(.btn):not(.pill) { color: inherit; font-weight: 700; }
.bf :is(main, .ssr-main) a:not(.btn):focus-visible { text-decoration: underline; text-underline-offset: 3px; }
