/* ============================================================
   VerifyUGC — base.css · the SHARED component layer.
   ------------------------------------------------------------
   ONE source of truth for the chrome both page families render:
   design tokens, reset, nav + dropdowns, buttons, and the
   universal polish (selection · focus ring · scrollbar).

   Consumed via @import by BOTH:
     · site.css   — the cinematic homepage (and site-palette pages)
     · chrome.css — interior / SSR-rendered content pages

   @import is first in each file, so anything a page family has
   INTENTIONALLY drifted on (e.g. homepage nav-link spacing) stays
   as a tiny override in the consuming file and wins the cascade.
   Page-specific surfaces (homepage scenes, interior backdrop,
   footer, .glass) live in the consuming files, NOT here.
   ============================================================ */

/* Metric-matched Arial so font-display:swap does not reflow headings.
   Widths are the latin Space Grotesk / Arial pair. local() only: no extra download. */
@font-face {
  font-family: "Space Grotesk Fallback";
  src: local("Arial");
  size-adjust: 110.84%;
  ascent-override: 88.78%;
  descent-override: 26.34%;
  line-gap-override: 0%;
}

/* ---------------- tokens (shared accent ramp + base palette) ----------------
   site.css adds its own homepage-only tokens (--node/--shield/--label per
   theme, plus --bg2/--surface2/--line/--r/--r-lg) on top of these. */
:root, [data-theme="brand"] { --a1:#a855f7; --a2:#3b82f6; --a3:#22d3ee; --t1:#bd6cff; --t2:#4d8dff; --t3:#21e8ff; }
[data-theme="roblox"]    { --a1:#1f6bff; --a2:#4f9cff; --a3:#cfe3ff; --t1:#2f7bff; --t2:#5cb2ff; --t3:#8fd2ff; }
[data-theme="uefn"]      { --a1:#8b5cf6; --a2:#4c51f7; --a3:#5fceea; --t1:#a578ff; --t2:#5d63ff; --t3:#4fdcff; }
[data-theme="minecraft"] { --a1:#4ade80; --a2:#2dd4bf; --a3:#22d3ee; --t1:#54f08c; --t2:#2ee8c4; --t3:#1fe1ff; }
:root {
  --bg:#070710; --surface:#13131f;
  --border:rgba(255,255,255,.08); --border2:rgba(255,255,255,.14);
  --text:#edecf7; --dim:#9b9bbd; --faint:#8b8ba8; --head:#f5f4ff;
  --success:#34d399; --danger:#f87171; --warning:#fbbf24;
  --grad:linear-gradient(120deg,var(--a1),var(--a2) 55%,var(--a3));
  /* Primary-CTA gradient: a tighter, 2-stop cut of the brand ramp for solid
     buttons. Drops --grad's loud third (cyan) stop so a compact button reads as
     one cohesive sweep instead of a purple→blue→cyan rainbow, and stays in-hue
     under every theme (roblox/uefn/minecraft redefine --a1/--a2 above). */
  --grad-btn:linear-gradient(135deg,var(--a1),color-mix(in srgb,var(--a1) 40%,var(--a2)));
  --acc-glow:color-mix(in srgb,var(--a1) 42%,transparent);
  --maxw:1180px;
  /* Height of the fixed .nav. Single source of truth so content offsets stay
     in sync if the bar height changes (see .nav below; used by SSR pages that
     must clear the out-of-flow fixed nav). */
  --nav-h:70px;
  --sans:"Inter","Inter Fallback",system-ui,sans-serif;
  --display:"Space Grotesk","Space Grotesk Fallback","Inter","Inter Fallback",sans-serif;
  --mono:"JetBrains Mono",ui-monospace,monospace;
}

/* ---------------- reset + base typography ----------------
   site.css adds `overflow-x:clip` to body and `display:block` to media;
   chrome.css adds `html,body{height:100%}`. Those stay in their files. */
* { box-sizing:border-box; margin:0; padding:0; }
/* The `hidden` attribute must ALWAYS win. The UA rule is only `[hidden]{display:none}`
   (specificity 0,1,0), so any author rule that gives an element a `display` — e.g. a
   results grid styled `.dgrid{display:grid}` or a toolbar's `.dpager{display:flex}` —
   silently overrides it and the element stays visible after `el.hidden = true`. That
   exact trap has bitten the directory, webhooks (#606), and profile repeatedly, each
   patched one-off with a `.foo[hidden]{display:none}` re-assertion. This single rule
   ends the recurrence for every surface that loads base.css: hidden means hidden. */
[hidden] { display:none !important; }
body { background:var(--bg); color:var(--text); font-family:var(--sans); line-height:1.6; -webkit-font-smoothing:antialiased; }
h1,h2,h3,h4,.dsp { font-family:var(--display); line-height:1.06; letter-spacing:-.025em; font-weight:700; color:var(--head); }
a { color:inherit; text-decoration:none; }
img,svg,canvas { max-width:100%; }

/* ---------------- helpers ---------------- */
.wrap { max-width:var(--maxw); margin:0 auto; padding:0 24px; }
.gt { background:linear-gradient(120deg,var(--t1),var(--t2) 55%,var(--t3)); -webkit-background-clip:text; background-clip:text; color:transparent;
  filter:saturate(1.12) drop-shadow(0 0 16px color-mix(in srgb,var(--t2) 30%,transparent)); }
.kicker { display:inline-flex; align-items:center; gap:9px; font-family:var(--mono); text-transform:uppercase; letter-spacing:.22em; font-size:.75rem; font-weight:600; color:var(--t3); }
.kicker::before { content:""; width:22px; height:1px; background:var(--t3); opacity:.6; }

/* ---------------- nav ----------------
   chrome.css adds `-webkit-backdrop-filter` to .nav.solid and `display:block`
   to .brand .mark svg; site.css overrides .nav-links/.nav-cta gaps. */
.nav { position:fixed; top:0; left:0; right:0; z-index:55; height:var(--nav-h); display:flex; align-items:center; justify-content:space-between;
  padding:0 clamp(20px,4vw,40px); transition:background .3s, border-color .3s, backdrop-filter .3s; border-bottom:1px solid transparent; }
.nav.solid { background:rgba(7,7,16,.72); backdrop-filter:blur(16px); border-bottom:1px solid var(--border); }
.brand { display:flex; align-items:center; gap:11px; font-family:var(--display); font-weight:700; font-size:1.16rem; color:var(--head); }
.brand .mark { width:30px; height:34px; filter:drop-shadow(0 0 14px var(--acc-glow)); }
.brand .mark svg { width:100%; height:100%; }
.brand .tag { color:var(--a2); }
.nav-links { display:flex; gap:26px; align-items:center; }
.nav-cta { display:flex; gap:14px; align-items:center; }
/* Header auth affordance. Shared by the homepage (site.css) and interior pages
   (chrome.css) so the top-right renders one canonical treatment everywhere.
   Signed out: the "Login with Discord" button (.nav-login). Signed in: nav.js
   swaps it into the account chip (.nav-acct) once /auth/me confirms a session. */
.nav-signin { display:inline-flex; align-items:center; gap:8px; color:var(--dim); font-weight:500; font-size:.93rem; transition:color .2s; }
.nav-signin:hover { color:var(--text); }
/* "Login with Discord" starts the real Discord OAuth flow straight from the
   header (href = /auth/social/discord/start). Discord blurple pill, matching the
   server-rendered login button on profile pages so the look is identical site-wide. */
.nav-login { padding:9px 15px; border-radius:11px; background:#5865f2; color:#fff; font-weight:600; font-size:.9rem; white-space:nowrap; transition:background .15s, transform .15s; }
.nav-login:hover { background:#4752c4; color:#fff; transform:translateY(-1px); }
.nav-login svg { flex:0 0 auto; }
/* Mobile: collapse the login button to its Discord glyph so it can't crowd the
   burger, mirroring the avatar-only chip (.nav-acct .h) at the same breakpoint. */
@media (max-width:920px) {
  .nav-login { padding:9px 11px; }
  .nav-login span { display:none; }
}
/* Signed-in account chip: avatar left, handle right, side-by-side in a rounded
   pill, mirroring the dashboard header's account chip. */
.nav-acct { display:inline-flex; align-items:center; gap:9px; padding:5px 12px 5px 6px; border:1px solid var(--border); border-radius:999px;
  font-weight:500; font-size:.88rem; color:var(--text); background:rgba(255,255,255,.03); transition:border-color .2s; }
.nav-acct:hover { border-color:var(--a2); }
.nav-acct .av { width:24px; height:24px; border-radius:50%; background:var(--grad); box-shadow:0 0 8px var(--acc-glow); object-fit:cover; flex:0 0 auto; }
.nav-acct .h { font-family:var(--mono); font-size:.78rem; white-space:nowrap; }
.nav-burger { display:none; background:none; border:0; color:var(--text); font-size:1.4rem; cursor:pointer; }

/* nav dropdowns (.nd) */
.nd { position:relative; }
.nd-btn { display:inline-flex; align-items:center; gap:7px; background:none; border:0; cursor:pointer;
  color:var(--dim); font-family:var(--sans); font-weight:500; font-size:.93rem; padding:24px 0; transition:color .2s; white-space:nowrap; }
.nd:hover .nd-btn, .nd.open .nd-btn { color:var(--text); }
.caret { width:7px; height:7px; border-right:1.6px solid currentColor; border-bottom:1.6px solid currentColor;
  transform:rotate(45deg) translateY(-2px); transition:transform .2s; }
.nd.open .caret { transform:rotate(225deg) translateY(-1px); }
.nd-panel { position:absolute; top:calc(100% - 12px); left:50%; transform:translateX(-50%) translateY(6px); min-width:300px;
  background:rgba(12,12,24,.92); backdrop-filter:blur(20px); -webkit-backdrop-filter:blur(20px);
  border:1px solid var(--border); border-radius:14px; padding:10px;
  opacity:0; pointer-events:none; transition:opacity .18s, transform .18s; overflow:clip;
  box-shadow:0 24px 60px -18px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.05); }
.nd-panel::before { content:""; position:absolute; top:0; left:0; right:0; height:2px; background:var(--grad); opacity:.6; }
.nd.open .nd-panel { opacity:1; pointer-events:auto; transform:translateX(-50%) translateY(0); }
.nd-grid { display:grid; grid-template-columns:repeat(var(--cols,1),minmax(220px,1fr)); gap:2px; }
.nd-item { display:flex; flex-direction:column; gap:1px; padding:10px 12px; border-radius:9px; transition:background .15s; }
.nd-item:hover { background:rgba(255,255,255,.045); }
.nd-item b { font-weight:600; font-size:.9rem; color:var(--text); }
.nd-item span { font-size:.78rem; color:var(--faint); line-height:1.4; }
.nd-all { display:flex; align-items:center; gap:7px; margin-top:8px; padding:10px 12px 6px; border-top:1px solid var(--border);
  font-family:var(--mono); font-size:.75rem; letter-spacing:.14em; text-transform:uppercase; color:var(--t3); }
.nd-all .arr { transition:transform .2s; }
.nd-all:hover .arr { transform:translateX(4px); }
.btn-nav { padding:10px 18px; font-size:.9rem; }
.nav-bot-m { display:none; }  /* drawer-only "Add the bot" link; shown on mobile via nav.js + the mobile media query */

/* ---------------- buttons ---------------- */
.btn { display:inline-flex; align-items:center; justify-content:center; gap:9px; padding:12px 22px; border-radius:12px; font-weight:600; font-size:.95rem;
  font-family:var(--sans); cursor:pointer; border:1px solid transparent; transition:transform .15s, box-shadow .25s, border-color .2s, background .2s; white-space:nowrap; }
.btn .arr { transition:transform .2s; }
.btn:hover .arr { transform:translateX(4px); }
.btn-primary { position:relative; color:#fff;
  /* soft top sheen over a cohesive 2-stop brand gradient (see --grad-btn) */
  background:linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,0) 46%),var(--grad-btn);
  border-color:rgba(255,255,255,.16);
  box-shadow:0 10px 30px -10px var(--acc-glow), 0 1px 2px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.28); }
.btn-primary:hover { transform:translateY(-2px);
  box-shadow:0 16px 42px -12px var(--acc-glow), 0 2px 4px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.34); }
.btn-ghost { border-color:var(--border2); color:var(--text); background:rgba(255,255,255,.02); }
.btn-ghost:hover { border-color:var(--a1); color:#fff; }

/* ---------------- copy-to-clipboard button (canonical) ----------------
   ONE inline copy affordance for every copyable value across the site, wired by
   the delegated /assets/clipboard.js on [data-copy]/[data-copy-target]. Mirrors
   the dashboard's tokens.css .copybtn so app + marketing + SSR share one look;
   var() fallbacks keep it correct on the few surfaces with their own scoped CSS. */
.copybtn { display:inline-flex; align-items:center; justify-content:center; gap:6px; vertical-align:middle; cursor:pointer;
  border:1px solid var(--border2,rgba(255,255,255,.14)); background:var(--bg2,#0c0c18); color:var(--dim,#9b9bbd);
  font-family:inherit; font-size:.8rem; font-weight:600; line-height:1; padding:7px 11px; border-radius:var(--r-sm,9px);
  transition:color .15s, border-color .15s, background .15s; }
.copybtn:hover { color:var(--text,#edecf7); border-color:var(--a1,#a855f7); }
.copybtn.copied { color:var(--success,#34d399); border-color:color-mix(in srgb,var(--success,#34d399) 50%,transparent);
  background:color-mix(in srgb,var(--success,#34d399) 12%,transparent); }
.copybtn.copyfail { color:var(--warning,#fbbf24); border-color:color-mix(in srgb,var(--warning,#fbbf24) 50%,transparent); }
.copybtn:focus-visible { outline:2px solid var(--a1,#a855f7); outline-offset:2px; }
.copybtn svg { width:15px; height:15px; flex:0 0 auto; }

/* ---------------- platform / connection glyphs (canonical) ----------------
   ONE set of provider marks for every surface: the public profile, the marketing
   site, and the dashboard's Linked accounts list. The official brand SVGs ship as
   flat single-colour files, so they render as a currentColor mask — a status tint
   (flagged red, dimmed) then comes free, and one file serves light and dark.
   Lives in base.css because both site.css and chrome.css @import it; it used to be
   site.css-only, which is why the dashboard fell back to letter initials. */
.pic { display:inline-block; background-color:currentColor;
  -webkit-mask:var(--ic) no-repeat center / contain; mask:var(--ic) no-repeat center / contain; }
.ic-rb   { --ic:url("/assets/icons/roblox.svg"); }
.ic-fn   { --ic:url("/assets/icons/fortnite.svg"); }
.ic-mc   { --ic:url("/assets/icons/minecraft.svg"); }
.ic-x    { --ic:url("/assets/icons/x.svg"); }
.ic-bsky { --ic:url("/assets/icons/bluesky.svg"); }
.ic-sp   { --ic:url("/assets/icons/spotify.svg"); }
.ic-ds   { --ic:url("/assets/icons/discord.svg"); }
.ic-yt   { --ic:url("/assets/icons/youtube.svg"); }
.ic-tw   { --ic:url("/assets/icons/twitch.svg"); }
.ic-gh   { --ic:url("/assets/icons/github.svg"); }
.ic-ig   { --ic:url("/assets/icons/instagram.svg"); }
.ic-ps   { --ic:url("/assets/icons/playstation.svg"); }
.ic-rd   { --ic:url("/assets/icons/reddit.svg"); }
.ic-tt   { --ic:url("/assets/icons/tiktok.svg"); }
.ic-xb   { --ic:url("/assets/icons/xbox.svg"); }
.ic-pp   { --ic:url("/assets/icons/paypal.svg"); }
.ic-rt   { --ic:url("/assets/icons/riot.svg"); }
.ic-web  { --ic:url("/assets/icons/website.svg"); }
.ic-fb   { --ic:url("/assets/icons/facebook.svg"); }
.ic-lol  { --ic:url("/assets/icons/league.svg"); }

/* ---------------- universal polish — branded selection, focus ring, scrollbar ----------------
   Shared so every page family gets the same on-brand treatment instead of OS
   defaults. Additive + theme-aware. (Per-page mobile rules add their own,
   more-specific table scrollbars on top of these.) */
::selection { background:color-mix(in srgb,var(--a1) 35%,transparent); color:#fff; text-shadow:none; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, summary:focus-visible, [tabindex]:focus-visible {
  outline:2px solid var(--a1); outline-offset:2px;
}
html { scrollbar-width:thin; scrollbar-color:#2a2a3d transparent; }
::-webkit-scrollbar { width:10px; height:10px; }
::-webkit-scrollbar-track { background:transparent; }
::-webkit-scrollbar-thumb { background:#2a2a3d; border-radius:8px; border:2px solid transparent; background-clip:padding-box; }
::-webkit-scrollbar-thumb:hover { background:#3a3a52; }

/* drawer body-scroll lock (mobile.js / nav.js toggles body.nav-open) */
body.nav-open { overflow:hidden; touch-action:none; }

/* ---------------- skip-to-content (WCAG 2.4.1) ----------------
   nav.js injects the .skip-link on every page with a <main>, but the rule that
   hides it until focus lived only in tokens.css / site.css / dash-chrome.css, so
   chrome.css pages (auth, appeal, bot, press, ...) rendered it as a bare in-flow
   line. Declared once here so every page family gets it. */
.skip-link { position:fixed; top:8px; left:8px; z-index:1000; transform:translateY(-150%);
  background:var(--surface); color:var(--text); border:1px solid var(--a1); border-radius:9px; padding:10px 16px;
  font-family:var(--sans); font-weight:600; font-size:.9rem; text-decoration:none; box-shadow:0 10px 30px rgba(0,0,0,.5);
  transition:transform .15s ease; }
.skip-link:focus, .skip-link:focus-visible { transform:translateY(0); outline:2px solid var(--a1); outline-offset:2px; }
@media (prefers-reduced-motion:reduce) { .skip-link { transition:none; } }

/* ---------------- "?" help marker (tooltips.js trigger) ----------------
   A 15px ring drawn by ::before inside a larger, invisible hit area: 24px on
   desktop, 44px on touch layouts. Negative margins give the extra area back, so
   the marker still takes 15px in the line next to the term it explains. */
.vu-help { position:relative; display:inline-grid; place-items:center; width:24px; height:24px; margin:-4.5px -4.5px -4.5px .5px;
  color:var(--dim,#9b9bbd); font-family:Inter,system-ui,sans-serif; font-size:.75rem; font-weight:700; line-height:1;
  cursor:help; vertical-align:middle; border-radius:50%; -webkit-user-select:none; user-select:none; }
.vu-help::before { content:""; position:absolute; inset:4.5px; border-radius:50%; border:1px solid var(--border2,rgba(255,255,255,.3)); }
.vu-help:hover, .vu-help:focus-visible { color:var(--text,#edecf7); }
.vu-help:hover::before, .vu-help:focus-visible::before { border-color:var(--a1,#a855f7); }
@media (max-width:1024px), (pointer:coarse) {
  .vu-help { width:44px; height:44px; margin:-14.5px -14.5px -14.5px -9.5px; }
  .vu-help::before { inset:14.5px; }
}

/* Toolbar search inputs fill their bordered box, so the whole box takes the tap. */
.dl-search input, .rf-search input, .rp-search input, .sv-search input, .tw-search input, .vc-search input, .wm-search input { align-self:stretch; }

/* ---------------- touch-target floor (WCAG 2.5.5) ----------------
   Header and shared controls keep a 44px hit area wherever the layout is a touch
   layout (tablet width and below, or any coarse pointer). Locked in by
   test/e2e/responsive.spec.ts at 360 / 768 / 1280px. */
.brand { min-height:44px; min-width:44px; }
.nav-burger, .nav-cta > * { flex:0 0 auto; }
@media (max-width:1024px), (pointer:coarse) {
  .nav-burger { min-width:44px; min-height:44px; }
  .nav-signin, .navsignin, .nav-acct { min-height:44px; min-width:44px; justify-content:center; }
  .copybtn { min-height:44px; min-width:44px; }
  /* Search / filter toolbars (dashboard sections, standalone dashboard pages,
     /directory). Each page sheet pins its toolbar at 36px with its own
     specificity, so the floor uses min-* sizes, which win over a fixed height
     whatever the selector weight. */
  .seg button, .tpill, .vbtn, .fopt { min-height:44px; }
  .seg button { min-width:44px; justify-content:center; }
  .seg { min-height:52px; }
  .fbtn { min-width:44px; min-height:44px; }
  .dl-search, .rf-search, .rp-search, .sv-search, .tw-search, .vc-search, .wm-search { min-height:46px; }
  .dl-search input, .rf-search input, .rp-search input, .sv-search input, .tw-search input, .vc-search input, .wm-search input { min-height:44px; }
}
