/* H1Z1 Crosshair DB, "closing zone" direction.
   The battle-royale world as material: toxic gas green for focus and live states, H1Z1 red for actions,
   airdrop hazard stripes for warnings, a faint film grain. Industrial condensed display type,
   stencil for the brand word. Layout: sticky header, hero copy beside the podium,
   rounded cards on a dark ground. The hero shows the top 3 most liked crosshairs as a podium.
   Single dark look by choice. */
/* Self-hosted fonts (SIL Open Font License, latin subset: English + French). Served from this site so no
   third-party request blocks the first paint; relative URLs keep them under the versioned /v/<deploy>/ path.
   The display fonts are preloaded and use font-display: optional, so a late font can't resize the header
   mid-load (the fallback stays for that visit; the font is cached for the next ones). */
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 800 900; font-display: optional; src: url("../fonts/big-shoulders-display.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: "Saira Stencil One"; font-style: normal; font-weight: 400; font-display: optional; src: url("../fonts/saira-stencil-one.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: "Barlow"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/barlow-400.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: "Barlow"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/barlow-600.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: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/jetbrains-mono-500.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 {
  --bg: #0c0d0b;
  --surface: #161713;
  --surface-2: #1f201b;
  --surface-3: #2a2b25;
  --line: rgba(236, 234, 226, .09);
  --line-strong: rgba(236, 234, 226, .2);
  --fg: #eceae2;
  --muted: #9b9a8e;
  --red: #e1262c;
  --red-deep: #a9161b;
  --gas: #b9f23e;
  --gas-soft: rgba(185, 242, 62, .14);
  --hazard: #f2c230;
  --danger: #ff6b5e;
  --radius: 14px;
  --radius-sm: 10px;
  --font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
  --font-stencil: "Saira Stencil One", "Big Shoulders Display", sans-serif;
  --font-body: "Barlow", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
  /* names kept for admin.css */
  --panel: var(--surface);
  --panel-2: var(--surface-2);
  --panel-3: var(--surface-3);
  --red-hi: var(--red);
  --bar: var(--hazard);
  --bar-fg: #111;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0; color: var(--fg); font-family: var(--font-body); font-size: 15px; line-height: 1.55;
  padding-inline: 16px; padding-block: 0 56px; min-height: 100vh;
  background:
    radial-gradient(900px 600px at 85% -10%, rgba(185, 242, 62, .07), transparent 60%),
    radial-gradient(700px 500px at -10% 40%, rgba(225, 38, 44, .06), transparent 60%),
    var(--bg);
}
/* film grain: a plain low-opacity layer (no blend mode, which would make every scroll frame expensive) */
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; opacity: .035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
.wrap { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 36px; }
:focus-visible { outline: 2px solid var(--gas); outline-offset: 2px; border-radius: 6px; }

/* ---------- Header ---------- */
header.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  margin-inline: -16px; padding: 12px 16px;
  background: rgba(12, 13, 11, .96); /* near-opaque instead of a backdrop blur, which costs on every scroll */
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img { border-radius: 10px; }
.brand-name { display: block; font-family: var(--font-display); font-weight: 900; font-size: 26px; letter-spacing: .02em; line-height: 1; text-transform: uppercase; }
.brand-name em { font-style: normal; font-family: var(--font-stencil); font-weight: 400; color: var(--red); letter-spacing: .01em; }
.brand-sub { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.top-nav { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.top-nav > a:not(.btn) { text-decoration: none; font-family: var(--font-display); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; font-size: 15px; padding: 8px 12px; border-radius: 999px; color: var(--muted); }
.top-nav > a:not(.btn):hover { color: var(--fg); background: var(--surface-2); }
.top-nav small { color: var(--gas); font-size: 10px; margin-left: 4px; letter-spacing: .1em; }

/* ---------- Buttons, tabs, fields ---------- */
.btn, .tab {
  font-family: var(--font-display); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: 15px; line-height: 1.2;
  background: var(--surface-2); color: var(--fg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 8px 16px; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:hover, .tab:hover { border-color: rgba(236, 234, 226, .38); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: linear-gradient(180deg, #ee3a40, var(--red) 55%, var(--red-deep)); border-color: transparent; color: #fff; box-shadow: 0 6px 20px -8px rgba(225, 38, 44, .7), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { color: var(--fg); background: var(--surface-2); }
.btn.big { font-size: 18px; padding: 12px 22px; }
.btn.small { font-size: 13px; padding: 5px 12px; }
.btn.danger { color: var(--danger); }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn[aria-pressed="true"] { color: #fff; background: var(--red); border-color: transparent; }
a.btn { text-decoration: none; display: inline-block; }
.btn.steam { background: #1b2838; border-color: #2a475e; color: #c7d5e0; }
.btn.steam:hover { background: #2a475e; border-color: #66c0f4; color: #fff; }
.lang-switch { min-width: 46px; text-align: center; border: 1px solid var(--line-strong) !important; }

/* Pills: segmented filters */
.seg { display: flex; gap: 4px; flex-wrap: wrap; align-items: center; }
.tab { border-radius: 999px; padding: 6px 14px; font-size: 14px; background: transparent; border-color: var(--line); color: var(--muted); }
.tab:hover { color: var(--fg); }
.tab[aria-pressed="true"] { background: var(--fg); color: #111; border-color: var(--fg); }
.toolbar .seg:first-child .tab[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }

input[type=text], input[type=search], select, textarea {
  font-family: var(--font-body); font-size: 15px; background: var(--surface); color: var(--fg);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 9px 12px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gas); box-shadow: 0 0 0 3px var(--gas-soft); }
input.bad { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 107, 94, .15); }
select { cursor: pointer; }

/* ---------- Banners ---------- */
/* Floating at the bottom: it appears after load, so it must not push the page down (layout shift). */
.lang-suggest {
  position: fixed; z-index: 25; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); translate: -50% 0;
  width: max-content; max-width: calc(100vw - 32px); margin: 0; padding: 10px 44px 10px 14px;
  background: var(--surface-2); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .8);
  display: flex; align-items: center; gap: 4px 10px; flex-wrap: wrap; font-size: 14px;
}
.lang-suggest a { color: var(--gas); font-weight: 600; }
.lang-suggest .linkish { position: absolute; right: 12px; top: 50%; translate: 0 -50%; text-decoration: none; font-size: 18px; color: var(--muted); }
.demo-banner {
  margin: 0; padding: 10px 14px 10px 22px; color: var(--fg); background: var(--surface); font-size: 14px;
  border: 1px solid var(--line); border-radius: var(--radius-sm); position: relative; overflow: hidden;
}
.demo-banner::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: repeating-linear-gradient(-45deg, var(--hazard) 0 6px, #111 6px 12px); }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; padding-top: 8px; }
.hero-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.eyebrow {
  margin: 0; align-self: flex-start; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 13px;
  color: var(--gas); background: var(--gas-soft); border: 1px solid rgba(185, 242, 62, .25); padding: 5px 12px; border-radius: 999px;
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gas); box-shadow: 0 0 0 0 rgba(185, 242, 62, .6); animation: pulse 2s infinite; }
.hero h1 {
  font-family: var(--font-display); font-weight: 900; font-size: clamp(42px, 6.4vw, 84px); line-height: .92;
  text-transform: uppercase; letter-spacing: -.005em; margin: 0; text-wrap: balance;
}
.hero-text { margin: 0; color: var(--muted); max-width: 58ch; font-size: 16px; }
.hero-text b { color: var(--fg); font-weight: 600; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* Podium: top 3 most liked. #1 spans the width, #2 and #3 share the row below. */
.podium { --gold: #f0b232; --silver: #c9ccd1; --bronze: #c8794a; display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); }
.podium-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.podium-head h2 { margin: 0; font-family: var(--font-stencil); font-weight: 400; font-size: 34px; line-height: 1; text-transform: uppercase; }
.podium-sub { color: var(--muted); font-size: 14px; }
.podium-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.podium-item { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.podium-item.rank-1 { grid-column: 1 / -1; border-color: rgba(240, 178, 50, .45); }
.podium-thumb { display: block; width: 100%; max-width: 100%; aspect-ratio: 16 / 10; padding: 0; border: 0; background: #000; cursor: pointer; }
.rank-1 .podium-thumb { aspect-ratio: 16 / 7; }
.podium-thumb canvas { width: 100%; height: 100%; display: block; }
.rank {
  position: absolute; top: 10px; left: 10px; padding: 3px 9px; border-radius: 8px;
  font-family: var(--font-stencil); font-size: 18px; line-height: 1.1; color: #111; background: var(--gold); box-shadow: 0 4px 14px -4px rgba(0, 0, 0, .7);
}
.rank-2 .rank { background: var(--silver); }
.rank-3 .rank { background: var(--bronze); }
.podium-info { display: flex; flex-direction: column; gap: 5px; padding: 10px 12px 12px; min-width: 0; }
/* Fixed one-line rows: the tile keeps the same height from placeholder to final content. */
.podium-name { display: block; font-family: var(--font-display); font-weight: 900; font-size: 20px; line-height: 1.1; height: 1.1em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-1 .podium-name { font-size: 28px; }
.podium-info .by { font-size: 13px; color: var(--muted); display: flex; align-items: center; flex-wrap: nowrap; gap: 0 4px; height: 22px; white-space: nowrap; overflow: hidden; }
.podium-item.is-loading { background: linear-gradient(100deg, var(--surface-2) 30%, var(--surface-3) 50%, var(--surface-2) 70%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.podium-item.is-loading .podium-thumb { background: transparent; cursor: default; }
.podium-item.is-loading .podium-info * { visibility: hidden; }
.podium-info .by .avatar.xs { margin-right: 2px; }
.podium-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 2px; }
.podium-likes { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.podium-free { border-style: dashed; background: transparent; }
.podium-free .podium-thumb { display: flex; align-items: center; justify-content: center; padding: 34px 14px 10px; background: transparent; cursor: default; border-bottom: 1px dashed var(--line-strong); }
.podium-free-text { color: var(--muted); font-size: 13px; text-align: center; max-width: 30ch; }
.podium-free .podium-name { color: var(--muted); }
.podium-free .rank { opacity: .55; }

/* ---------- Database ---------- */
.db { display: flex; flex-direction: column; gap: 14px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar-right { display: flex; gap: 8px; flex-wrap: wrap; }
.search { width: 240px; max-width: 100%; padding-left: 34px !important; background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239b9a8e' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") no-repeat 12px 50%; }
.shapes-filter .tab { font-size: 13px; padding: 5px 13px; }
.player-filter { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--muted); }
.player-filter b { color: var(--fg); }

.result-count { margin: 0; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; min-height: 1.55em; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 16px; }
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; min-width: 0; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:not(.skeleton):hover { transform: translateY(-4px); border-color: rgba(185, 242, 62, .35); box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .9), 0 0 0 1px rgba(185, 242, 62, .08); }
.card .thumb { position: relative; aspect-ratio: 4 / 3; max-width: 100%; width: 100%; background: #000; border: 0; padding: 0; display: block; cursor: pointer; }
.card .thumb canvas { width: 100%; height: 100%; display: block; }
.card .thumb::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(22, 23, 19, .9)); pointer-events: none; }
.card .body { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.card .name { font-family: var(--font-display); font-weight: 900; font-size: 22px; letter-spacing: .01em; text-transform: uppercase; line-height: 1.02; overflow-wrap: anywhere; }
.card .by { font-size: 13px; color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; gap: 0 4px; }
.card .by .avatar.xs { margin-right: 2px; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.chip { background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px; text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; font-weight: 700; color: var(--fg); }
.card code { font-family: var(--font-mono); font-size: 12px; color: var(--muted); overflow-wrap: anywhere; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 4px 8px; }
.stats { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; display: flex; gap: 14px; }
.card .actions { display: flex; gap: 6px; margin-top: auto; padding-top: 4px; }
.card .actions .btn { flex: 1; font-size: 14px; padding: 7px 8px; }
.grid.loading > .card:not(.skeleton) { opacity: .5; pointer-events: none; transition: opacity .15s ease .1s; }
.card.skeleton { min-height: 320px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
.card.skeleton .thumb { background: transparent; }
.empty { color: var(--muted); padding: 36px 20px; border: 1px dashed var(--line-strong); border-radius: var(--radius); text-align: center; grid-column: 1 / -1; }
.more { display: flex; justify-content: center; }

/* Verified badges */
.vbadges { display: inline-flex; gap: 2px; vertical-align: -2px; margin-left: 5px; }
.vbadge { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 5px; vertical-align: -2px; flex: none; }
.vbadges .vbadge { margin-left: 0; vertical-align: 0; }
.vbadge svg { width: 16px; height: 16px; display: block; }
.vbadge.streamer { color: #a970ff; }
.vbadge.pro { color: #f0b232; }

/* Avatars */
.avatar { border-radius: 50%; overflow: hidden; width: 32px; height: 32px; background: var(--surface-3) center / cover no-repeat; display: inline-grid; place-items: center; font-family: var(--font-display); font-weight: 800; flex: none; box-shadow: 0 0 0 1px var(--line-strong); }
.avatar.xs { width: 20px; height: 20px; font-size: 11px; vertical-align: middle; margin-right: 6px; }
.avatar.sm { width: 22px; height: 22px; font-size: 13px; vertical-align: middle; margin: 0 6px; }
.user { display: flex; align-items: center; gap: 8px; padding: 3px 4px 3px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.user-name { font-weight: 600; max-width: 16ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user .btn { border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.linkish { background: none; border: 0; padding: 0; color: var(--fg); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.linkish:hover { text-decoration-color: var(--gas); }

/* ---------- Coming soon (airdrop) ---------- */
.soon {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 24px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 32px 24px 24px; overflow: hidden;
}
.soon::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px; background: repeating-linear-gradient(-45deg, var(--hazard) 0 12px, #111 12px 24px); }
.soon-copy { display: flex; flex-direction: column; gap: 10px; }
.soon-copy h2 { font-family: var(--font-display); font-weight: 900; font-size: 40px; text-transform: uppercase; margin: 0; line-height: .95; }
.soon-copy p { margin: 0; color: var(--muted); max-width: 52ch; }
.badge { align-self: flex-start; background: var(--hazard); color: #111; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; padding: 3px 10px; border-radius: 6px; }
.soon-mock { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 14px; opacity: .6; filter: grayscale(.3); }
.soon-mock canvas { width: 100%; aspect-ratio: 16 / 10; max-width: 100%; display: block; background: #000; border-radius: 12px; }
.soon-sliders { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 12px; align-items: center; font-size: 13px; color: var(--muted); }
.soon-sliders i { --v: .5; display: block; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--gas) calc(var(--v) * 100%), var(--surface-3) 0); }
/* slider fill of the mock editor (kept in CSS: the CSP forbids inline style attributes) */
.soon-sliders i:nth-of-type(1) { --v: .25; }
.soon-sliders i:nth-of-type(2) { --v: .15; }
.soon-sliders i:nth-of-type(3) { --v: .2; }
.soon-sliders i:nth-of-type(4) { --v: .35; }
.soon-sliders i:nth-of-type(5) { --v: 1; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); padding-top: 20px; color: var(--muted); font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.foot p { margin: 0; }
.foot code { font-family: var(--font-mono); color: var(--fg); overflow-wrap: anywhere; }

/* ---------- Dialogs ---------- */
.modal { background: var(--surface); color: var(--fg); border: 1px solid var(--line-strong); border-radius: 20px; padding: 0; width: min(780px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; box-shadow: 0 40px 100px -30px #000; }
.modal::backdrop { background: rgba(5, 6, 4, .66); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal.small { width: min(540px, calc(100vw - 32px)); }
.modal-close { position: absolute; right: 12px; top: 12px; margin: 0; z-index: 2; }
.modal-close button { background: rgba(12, 13, 11, .7); color: var(--fg); border: 1px solid var(--line-strong); font-size: 22px; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; line-height: 1; }
.modal-close button:hover { border-color: var(--fg); }
.detail-stage { position: relative; }
.detail-stage canvas { width: 100%; aspect-ratio: 16 / 8; max-width: 100%; display: block; background: #000; }
.detail-tools { display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; padding: 12px 18px 0; }
.detail-tools .tab { font-size: 12px; padding: 4px 11px; }
.detail-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.detail-body h2 { font-family: var(--font-display); font-weight: 900; font-size: 36px; text-transform: uppercase; margin: 0; line-height: .98; overflow-wrap: anywhere; }
.detail-meta { margin: 0; color: var(--muted); font-size: 14px; }
.code-row { display: flex; gap: 8px; }
.code-row input { flex: 1; min-width: 0; font-family: var(--font-mono); }
.detail-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.msg { margin: 0; min-height: 1.4em; font-size: 14px; color: var(--muted); }
.msg.err { color: var(--danger); }

.login-body { padding: 28px 24px 24px; display: flex; flex-direction: column; gap: 12px; }
.login-body h2 { font-family: var(--font-display); font-weight: 900; font-size: 34px; text-transform: uppercase; margin: 0; line-height: 1; }
.login-body p { margin: 0; max-width: 60ch; }
.login-body .btn.big { align-self: flex-start; }
.muted { color: var(--muted); font-size: 14px; }

.verify-form { display: flex; flex-direction: column; gap: 10px; }
.verify-form p { margin: 0; }
.verify-form label { font-weight: 600; font-size: 14px; }
.verify-form label small { color: var(--muted); font-weight: 400; }
.verify-form input[type=text], .verify-form textarea { width: 100%; }
.verify-form textarea { resize: vertical; }
.verify-types { border: 0; padding: 0; margin: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.verify-types legend { font-weight: 600; padding: 0; margin-bottom: 6px; }
.verify-types legend small { color: var(--muted); font-weight: 400; }
.verify-types label { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; }
.verify-types label:has(input:checked) { border-color: var(--gas); background: var(--gas-soft); }
.verify-types input { accent-color: var(--gas); }
.verify-status { margin: 0; padding: 12px 14px; background: var(--surface-2); border-radius: var(--radius-sm); border-left: 3px solid var(--gas); }
.contact-admin { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 14px; }
.contact-admin p { margin: 0; }
.btn.discord-handle { align-self: flex-start; background: #5865f2; border-color: transparent; color: #fff; font-family: var(--font-mono); text-transform: none; letter-spacing: 0; font-weight: 500; }
.btn.discord-handle:hover { background: #4752c4; }

.submit-form { padding: 26px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.submit-form h2 { font-family: var(--font-display); font-weight: 900; font-size: 34px; text-transform: uppercase; margin: 0; line-height: 1; }
.as-user { margin: 0; color: var(--muted); display: flex; align-items: center; flex-wrap: wrap; }
.as-user b { color: var(--fg); }
.quota { margin: 0; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.quota.full { color: var(--danger); }
.submit-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.submit-preview canvas { width: 100%; aspect-ratio: 1; max-width: 100%; display: block; background: #000; border-radius: 14px; }
.fields { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.fields label { font-weight: 600; font-size: 14px; margin-top: 8px; }
.fields label:first-child { margin-top: 0; }
.fields small { color: var(--muted); font-weight: 400; }
.fields input, .fields select { width: 100%; }
#f-code { font-family: var(--font-mono); }
.submit-actions { display: flex; justify-content: flex-end; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 30;
  background: var(--fg); color: #111; font-family: var(--font-display); font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
  padding: 10px 20px; border-radius: 999px; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .8); animation: rise .25s ease;
}

/* ---------- Motion ---------- */
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(185, 242, 62, .55); } 70% { box-shadow: 0 0 0 8px rgba(185, 242, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(185, 242, 62, 0); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .podium { padding: 14px; }
}
@media (max-width: 760px) {
  .soon, .soon-mock, .submit-grid { grid-template-columns: minmax(0, 1fr); }
  .submit-preview canvas { aspect-ratio: 16 / 9; }
  .search { width: 100%; }
  .toolbar-right { width: 100%; }
  .toolbar-right select { flex: 1; }
  header.top { position: static; gap: 10px; }
  .top-nav > a:not(.btn) { display: none; }
  .top-nav .btn { font-size: 13px; padding: 7px 12px; }
  .brand-name { font-size: 22px; }
  .hero-cta .btn { flex: 1; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
