/* Phoenix2_HD visual language: neon green frames, gold bevel plates, HUD red
   and arrow blue over a near-black stage. Fonts are the theme's freely
   licensed ones (Oswald OFL, Anton OFL, Roboto Apache 2.0). */
@font-face {
  font-family: "StepPrime Score";
  src: url("/static/Oswald-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "StepPrime Display";
  src: url("/static/Anton-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "StepPrime UI";
  src: url("/static/Roboto-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #040805;
  --ink-soft: #09110b;
  --surface: #0d1510;
  --surface-raised: #121d16;
  --surface-bright: #1a2a1f;
  --panel-rgb: 10, 16, 12;
  --line: rgba(120, 255, 110, .15);
  --line-strong: rgba(120, 255, 110, .34);
  --text: #f2fbef;
  --muted: #b8cabb;
  --quiet: #8ea493;
  --neon: #46ff3c;
  --neon-rgb: 70, 255, 60;
  --neon-hi: #c4ffaf;
  --neon-deep: #11981a;
  --lime: #a6ff3c;
  --gold: #f4dc16;
  --gold-rgb: 244, 220, 22;
  --gold-hi: #fff8a8;
  --gold-deep: #c7a300;
  --gold-dark: #3a2c00;
  --hud-red: #e0181e;
  --red-rgb: 224, 24, 30;
  --blue: #3fb7ff;
  --blue-rgb: 63, 183, 255;
  --j-perfect: #4cc8ff;
  --j-great: #5dff3a;
  --j-good: #ffc21a;
  --j-bad: #cf5cff;
  --j-miss: #ff4040;
  --signal: var(--neon);
  --signal-deep: var(--neon-deep);
  --action: var(--gold);
  --action-deep: var(--gold-deep);
  --success: var(--neon);
  --danger: #ff6f6f;
  --neon-frame: 0 0 0 1px rgba(0, 0, 0, .7), 0 0 14px rgba(var(--neon-rgb), .45), inset 0 0 14px rgba(var(--neon-rgb), .18);
  --shadow: 0 24px 60px rgba(0, 0, 0, .55);
  --radius: 8px;
  --max-width: 1280px;
  --font-display: "StepPrime Display", Impact, "Arial Narrow", sans-serif;
  --font-ui: "StepPrime UI", "Segoe UI", system-ui, sans-serif;
  font-family: "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-synthesis: none;
  background: var(--ink);
  color: var(--text);
}

* { box-sizing: border-box; }

html { min-width: 320px; scroll-behavior: smooth; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(ellipse 90% 34rem at 50% -8rem, rgba(var(--neon-rgb), .17), transparent 70%),
    radial-gradient(ellipse 80% 30rem at 50% calc(100% + 6rem), rgba(30, 170, 160, .14), transparent 70%),
    var(--ink);
  color: var(--text);
}

/* Faint mosaic floor, as behind the song wheel. */
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .5;
  background:
    linear-gradient(var(--ink) 3px, transparent 3px) 0 0 / 30px 30px,
    linear-gradient(90deg, var(--ink) 3px, transparent 3px) 0 0 / 30px 30px,
    linear-gradient(180deg, rgba(40, 170, 160, .1), rgba(var(--neon-rgb), .05));
  content: "";
  mask-image: linear-gradient(to bottom, #000 0%, transparent 34%, transparent 66%, #000 100%);
}

a { color: var(--signal); text-underline-offset: .22em; }
a:hover { color: #fff; }

button, input, select, textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(var(--panel-rgb), .62);
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
}

button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .55; }

input::placeholder, textarea::placeholder { color: var(--quiet); }
input:focus, select:focus, textarea:focus { border-color: var(--signal); outline: 3px solid rgba(var(--neon-rgb), .16); outline-offset: 2px; }

:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; }

.skip-link {
  position: absolute;
  top: -5rem;
  left: 1rem;
  z-index: 20;
  padding: .75rem 1rem;
  border-radius: 8px;
  background: var(--signal);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus { top: 1rem; }

.site-header {
  position: relative;
  z-index: 3;
  border-bottom: 1px solid var(--line);
  background: rgba(var(--panel-rgb), .78);
  backdrop-filter: blur(18px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max-width);
  min-height: 76px;
  margin: 0 auto;
  padding: 0 24px;
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 9px;
  color: var(--text);
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .14em;
  text-decoration: none;
}

.wordmark-mark {
  display: inline-grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border: 1px solid var(--signal);
  border-radius: 50%;
  color: var(--signal);
  font-size: 14px;
  letter-spacing: 0;
  box-shadow: 0 0 20px rgba(var(--neon-rgb), .18);
}

.wordmark small {
  color: var(--signal);
  font-family: var(--font-ui);
  font-size: 10px;
  letter-spacing: .18em;
}

.site-nav { display: flex; align-items: center; gap: 10px; }
.site-nav a { padding: 9px 12px; color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.site-nav a:hover { color: var(--text); }
.site-nav .nav-cta { border: 1px solid var(--action); border-radius: 999px; color: #ffd6c8; }
.site-nav .nav-cta:hover { background: var(--action); color: var(--ink); }

.site-main {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 22px 24px 34px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font-family: var(--font-ui);
  font-size: 11px;
  letter-spacing: .04em;
}

.site-footer p { margin: 0; }

.eyebrow, .section-kicker, .micro-label {
  margin: 0 0 16px;
  color: var(--signal);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.landing-shell { max-width: 1280px; }

.action-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 26px; }

.button, button.button {
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .01em;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}

.button::after { content: "↗"; font-size: 15px; line-height: 1; }
.button-primary { background: var(--action); color: var(--ink); box-shadow: 0 12px 28px rgba(var(--gold-rgb), .16); }
.button-primary:hover { background: var(--gold-hi); color: var(--ink); transform: translateY(-2px); }
.button-quiet { border-color: var(--line-strong); background: rgba(var(--panel-rgb), .6); color: var(--text); }
.button-quiet:hover { border-color: var(--signal); background: rgba(var(--neon-rgb), .08); color: var(--text); transform: translateY(-2px); }

.hero-note { display: flex; align-items: center; gap: 9px; margin: 0; color: var(--quiet); font-family: var(--font-ui); font-size: 11px; }
.signal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 5px rgba(var(--neon-rgb), .08), 0 0 16px rgba(var(--neon-rgb), .5); }

.beatline { display: flex; align-items: center; gap: 8px; }
.beatline span { display: block; width: 100%; height: 4px; border-radius: 10px; background: var(--signal); }
.beatline span:nth-child(2n) { height: 18px; background: var(--action); }
.beatline span:nth-child(3n) { height: 9px; background: var(--success); }
.beatline span:nth-child(4n) { opacity: .35; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.feature-card { min-height: 190px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(var(--panel-rgb), .72); }
.feature-card:hover { border-color: var(--line-strong); background: var(--surface-raised); }
.feature-index { display: block; margin-bottom: 34px; color: var(--action); font-family: var(--font-ui); font-size: 11px; }
.feature-card h3 { margin: 0 0 10px; font-size: 18px; letter-spacing: -.025em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }

.auth-shell { max-width: 1050px; padding-top: 70px; }
.auth-layout { display: grid; grid-template-columns: .8fr 1.05fr; align-items: stretch; gap: 72px; }
.auth-aside { display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
.auth-aside h1 { max-width: 7ch; margin: 0; font-size: clamp(3.5rem, 7vw, 6.5rem); letter-spacing: -.08em; line-height: .88; }
.auth-aside h1 span { color: var(--signal); }
.auth-aside p { max-width: 29rem; margin: 28px 0 0; color: var(--muted); line-height: 1.65; }
.auth-aside .beatline { max-width: 280px; margin-top: 48px; }
.auth-panel { padding: clamp(24px, 5vw, 50px); border: 1px solid var(--line-strong); border-radius: 22px; background: rgba(var(--panel-rgb), .86); box-shadow: var(--shadow); }
.auth-panel h2 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.06em; }
.auth-panel > p { margin: 12px 0 30px; color: var(--muted); line-height: 1.55; }
.account-form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field > span, .field > label { color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .02em; }
.field input, .field select, .field textarea { margin: 0; }
.account-form .button { width: 100%; margin-top: 4px; }
.form-alert { margin: 0 0 18px; padding: 12px 14px; border: 1px solid rgba(255, 111, 111, .44); border-radius: 10px; background: rgba(255, 111, 111, .08); color: var(--danger); font-size: 13px; line-height: 1.5; }
.check-row { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.check-row input { width: 19px; min-width: 19px; height: 19px; min-height: 19px; margin: 1px 0 0; accent-color: var(--signal); }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 4px; color: var(--muted); font-size: 13px; }
.form-footer a { font-weight: 800; }
.form-meta { display: flex; align-items: center; gap: 8px; margin-top: 22px; padding-top: 17px; border-top: 1px solid var(--line); color: var(--quiet); font-family: var(--font-ui); font-size: 10px; line-height: 1.5; }

@media (max-width: 900px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-aside { padding: 0; }
  .auth-aside h1 { max-width: 10ch; }
  .auth-aside .beatline { margin-top: 28px; }
}

@media (max-width: 620px) {
  .site-header-inner { min-height: 68px; gap: 10px; padding: 0 12px; }
  .wordmark { gap: 5px; font-size: 12px; letter-spacing: .1em; }
  .wordmark-mark { width: 23px; height: 23px; font-size: 12px; }
  .wordmark small { display: none; }
  .site-nav { gap: 2px; }
  .site-nav a { padding: 7px 5px; font-size: 11px; }
  .site-nav .nav-cta { padding-inline: 8px; }
  .site-nav .nav-cta { font-size: 0; }
  .site-nav .nav-cta::before { content: "Join"; font-size: 11px; }
  .site-main { padding: 42px 16px 72px; }
  .site-footer { display: block; padding-inline: 16px; }
  .site-footer p + p { margin-top: 8px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .auth-shell { padding-top: 38px; }
  .auth-layout { gap: 34px; }
  .auth-aside h1 { font-size: clamp(3.4rem, 16vw, 5rem); }
  .auth-panel { padding: 24px 18px; border-radius: 16px; }
  .form-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}

/* ---- Phoenix2 shell: HUD bar, gold plates and neon frames ------------------ */
a { color: var(--neon-hi); }
a:hover { color: #fff; }
::selection { background: var(--neon); color: var(--ink); }
:focus-visible { outline-color: var(--gold); }
input:focus, select:focus, textarea:focus { border-color: var(--neon); outline: 3px solid rgba(var(--neon-rgb), .18); }

.site-header { border-bottom: 2px solid var(--neon); background: linear-gradient(180deg, #000 0%, rgba(3, 9, 4, .94) 100%); backdrop-filter: blur(10px); box-shadow: 0 0 18px rgba(var(--neon-rgb), .5), 0 10px 40px rgba(var(--neon-rgb), .12); }
.site-header-inner { min-height: 76px; gap: 20px; padding-inline: 32px; }
.wordmark { align-items: center; gap: 12px; flex: 0 0 auto; color: #fff; font-size: 16px; letter-spacing: 0; white-space: nowrap; }
.wordmark-mark { width: 42px; height: 46px; border: 0; border-radius: 0; background: linear-gradient(160deg, var(--neon-hi), var(--neon) 45%, var(--neon-deep)); color: #031004; font-family: var(--font-display); font-size: 19px; clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); box-shadow: none; filter: drop-shadow(0 0 8px rgba(var(--neon-rgb), .6)); }
.wordmark-name { display: grid; gap: 1px; line-height: 1; }
.wordmark-name strong { background: linear-gradient(180deg, #fff 0%, var(--gold-hi) 35%, var(--gold) 60%, var(--gold-deep) 100%); background-clip: text; -webkit-background-clip: text; color: transparent; font-family: var(--font-display); font-size: 25px; font-weight: 400; letter-spacing: .03em; text-transform: uppercase; }
.wordmark small { color: var(--neon); font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; }
.site-nav { gap: 6px; }
.site-nav a { position: relative; padding: 10px 10px; color: var(--muted); font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.site-nav a:hover { color: #fff; }
.site-nav a[aria-current="page"] { color: var(--gold); }
.site-nav a[aria-current="page"]::after { position: absolute; right: 10px; bottom: 2px; left: 10px; height: 2px; background: var(--gold); box-shadow: 0 0 8px rgba(var(--gold-rgb), .8); content: ""; }
.site-actions { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.site-actions a { font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.nav-login { padding: 10px 12px; color: var(--muted); }
.nav-login:hover { color: #fff; }
.site-actions .nav-cta { padding: 9px 14px; border: 2px solid var(--gold-dark); border-radius: 6px; background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 45%, var(--gold-deep) 100%); color: #1d1600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 12px rgba(var(--gold-rgb), .35); }
.site-actions .nav-cta:hover { color: #000; filter: brightness(1.08); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 20px rgba(var(--gold-rgb), .6); }
.site-actions .nav-cta span { margin-left: 6px; }
.mobile-nav { display: none; }
.site-main { padding-top: 48px; }
.site-footer { border-top: 1px solid rgba(var(--neon-rgb), .35); color: var(--quiet); font-family: var(--font-ui); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow, .section-kicker, .micro-label { color: var(--gold); font-family: var(--font-ui); font-weight: 700; letter-spacing: .16em; }
.skip-link { background: var(--gold); color: #000; }

.button, button.button { border-width: 2px; border-radius: 6px; font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; transition: transform .15s ease, filter .15s ease, box-shadow .15s ease, background-color .15s ease; }
.button::after { display: none; }
.button-primary { border-color: var(--gold-dark); background: linear-gradient(180deg, var(--gold-hi) 0%, var(--gold) 42%, var(--gold-deep) 62%, #e2c300 100%); color: #1d1600; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -2px 0 rgba(0, 0, 0, .2), 0 0 0 1px rgba(var(--gold-rgb), .45), 0 0 18px rgba(var(--gold-rgb), .3); }
.button-primary:hover { background: linear-gradient(180deg, #fffbd0 0%, var(--gold-hi) 30%, var(--gold) 60%, #e2c300 100%); color: #000; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 0 1px rgba(var(--gold-rgb), .6), 0 0 28px rgba(var(--gold-rgb), .55); transform: translateY(-2px); }
.button-quiet, button.button-quiet { border-color: var(--neon); background: rgba(0, 0, 0, .55); color: #fff; box-shadow: var(--neon-frame); }
.button-quiet:hover, button.button-quiet:hover { border-color: var(--neon-hi); background: rgba(var(--neon-rgb), .14); color: #fff; transform: translateY(-2px); }
button, input, select, textarea { border-radius: 6px; background: rgba(0, 0, 0, .55); }
.surface, .auth-panel { border-color: rgba(var(--neon-rgb), .3); background: linear-gradient(180deg, rgba(16, 26, 19, .94), rgba(6, 11, 8, .94)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 18px 40px rgba(0, 0, 0, .45); }
.auth-panel { border: 2px solid var(--neon); border-radius: var(--radius); box-shadow: var(--neon-frame), var(--shadow); }
.auth-aside h1 { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; line-height: .95; text-transform: uppercase; }
.auth-aside h1 span { background: linear-gradient(180deg, #fff 0%, var(--gold-hi) 30%, var(--gold) 60%, var(--gold-deep) 100%); background-clip: text; -webkit-background-clip: text; color: transparent; }
.auth-panel h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; text-transform: uppercase; }
.beatline span { background: var(--neon); box-shadow: 0 0 8px rgba(var(--neon-rgb), .6); }
.beatline span:nth-child(2n) { background: var(--gold); box-shadow: 0 0 8px rgba(var(--gold-rgb), .6); }
.beatline span:nth-child(3n) { background: var(--blue); box-shadow: 0 0 8px rgba(var(--blue-rgb), .6); }
.signal-dot { background: var(--neon); box-shadow: 0 0 0 5px rgba(var(--neon-rgb), .08), 0 0 16px rgba(var(--neon-rgb), .6); }
.feature-card { position: relative; border: 2px solid rgba(var(--neon-rgb), .35); border-radius: var(--radius); background: linear-gradient(180deg, rgba(16, 26, 19, .92), rgba(5, 10, 7, .92)); transition: border-color .2s, box-shadow .2s, transform .2s; }
.feature-card:hover { border-color: var(--neon); background: linear-gradient(180deg, rgba(16, 26, 19, .92), rgba(5, 10, 7, .92)); box-shadow: var(--neon-frame); transform: translateY(-3px); }
.status-pill.is-live { border-color: rgba(var(--neon-rgb), .45); }

/* Page titles: condensed display face, as the theme's banner captions. */
.display-title { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; text-transform: uppercase; }

.landing-shell { max-width: 1280px; padding-top: 22px; }
.prime-hero { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: 48px; min-height: 610px; }
.prime-hero-copy { position: relative; z-index: 1; min-width: 0; padding: 12px 0 46px; container-type: inline-size; }
.prime-pill { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 28px; padding: 8px 14px; border: 1px solid rgba(var(--neon-rgb), .5); border-radius: 4px; background: rgba(var(--neon-rgb), .08); color: var(--neon-hi); font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; box-shadow: 0 0 12px rgba(var(--neon-rgb), .18); }
.prime-pill .signal-dot { flex: 0 0 7px; }
.prime-hero h1 { max-width: calc(100% - .3em); margin: 0; color: #fff; font-family: var(--font-display); font-size: clamp(3.4rem, 15cqi, 6.6rem); font-weight: 400; letter-spacing: .005em; line-height: .94; text-transform: uppercase; transform: skewX(-7deg); transform-origin: left bottom; text-shadow: 0 4px 0 #000, 0 0 24px rgba(var(--neon-rgb), .35); white-space: nowrap; }
.prime-hero h1 span { background: linear-gradient(180deg, #fff 0%, var(--gold-hi) 28%, var(--gold) 58%, var(--gold-deep) 82%, #8a6c00 100%); background-clip: text; -webkit-background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 4px 0 #1c1400) drop-shadow(0 0 18px rgba(var(--gold-rgb), .35)); }
.prime-lede { max-width: 560px; margin: 28px 0 0; color: var(--muted); font-size: 18px; line-height: 1.7; }
.prime-hero .action-row { margin: 33px 0 48px; }
.prime-hero .button { min-height: 52px; padding: 13px 22px; font-size: 14px; }
.prime-hero-foot { max-width: 410px; margin: 0; padding-top: 18px; border-top: 1px solid rgba(var(--neon-rgb), .3); color: var(--quiet); font-size: 12px; line-height: 1.6; }
.prime-features { padding: 55px 0 95px; scroll-margin-top: 96px; }
.prime-section-heading { position: relative; display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 27px; padding-bottom: 14px; }
.prime-section-heading::after { position: absolute; right: 0; bottom: 0; left: 0; height: 2px; background: linear-gradient(90deg, var(--neon), rgba(var(--neon-rgb), .35) 45%, transparent); box-shadow: 0 0 10px rgba(var(--neon-rgb), .5); content: ""; }
.prime-section-heading h2 { margin: 0; color: #fff; font-family: var(--font-display); font-size: clamp(2.4rem, 4.4vw, 4.2rem); font-weight: 400; letter-spacing: .005em; line-height: 1; text-transform: uppercase; text-shadow: 0 3px 0 #000; }
.prime-section-heading > p { max-width: 390px; margin: 0; color: var(--muted); line-height: 1.65; }
.prime-features .feature-card { display: flex; min-height: 235px; flex-direction: column; padding: 25px; }
.prime-features .feature-index { margin-bottom: 30px; color: var(--gold); font-family: var(--font-ui); font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.prime-features .feature-card h3 { color: #fff; font-family: var(--font-display); font-size: 26px; font-weight: 400; letter-spacing: .01em; text-transform: uppercase; }
.prime-features .feature-card p { margin-bottom: 23px; }
.prime-features .feature-card a { margin-top: auto; font-family: var(--font-ui); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.prime-features .feature-card a span { margin-left: 5px; }
/* Callout: the green energy band of the evaluation title. */
.prime-callout { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 28px; margin-bottom: 40px; padding: 38px 40px; border-block: 2px solid var(--neon); background: linear-gradient(90deg, rgba(var(--neon-rgb), .04), rgba(var(--neon-rgb), .2) 22%, rgba(var(--neon-rgb), .2) 78%, rgba(var(--neon-rgb), .04)), rgba(0, 0, 0, .55); box-shadow: 0 0 22px rgba(var(--neon-rgb), .35), inset 0 0 30px rgba(var(--neon-rgb), .18); }
.prime-callout h2 { margin: 0; color: #fff; font-family: var(--font-display); font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 400; letter-spacing: .01em; text-transform: uppercase; text-shadow: 0 3px 0 #000; }
.prime-callout p:last-child { margin: 8px 0 0; color: var(--text); }
.prime-callout .button { flex: 0 0 auto; }

@media (max-width: 1120px) {
  .site-header-inner { padding-inline: 24px; }
  .site-nav { gap: 2px; }
  .site-nav a { padding-inline: 7px; font-size: 12px; }
  .site-nav a[aria-current="page"]::after { right: 7px; left: 7px; }
  .wordmark-name strong { font-size: 22px; }
}
@media (max-width: 900px) {
  .site-nav, .site-actions { display: none; }
  .mobile-nav { position: relative; display: block; margin-left: auto; }
  .mobile-nav summary { display: grid; width: 44px; height: 44px; place-items: center; border: 2px solid var(--neon); border-radius: 6px; color: #fff; cursor: pointer; font-size: 20px; list-style: none; box-shadow: var(--neon-frame); }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav nav { position: absolute; top: 54px; right: 0; z-index: 10; display: grid; min-width: 220px; padding: 10px; border: 2px solid var(--neon); border-radius: var(--radius); background: #050b06; box-shadow: var(--neon-frame), var(--shadow); }
  .mobile-nav nav a { padding: 12px 13px; border-radius: 4px; color: var(--text); font-family: var(--font-ui); font-size: 14px; font-weight: 700; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
  .mobile-nav nav a:hover { background: rgba(var(--neon-rgb), .15); color: #fff; }
  .prime-hero { grid-template-columns: 1fr; min-height: 0; }
  .prime-hero-copy { padding-bottom: 0; }
}
@media (max-width: 620px) {
  .site-header-inner { min-height: 66px; padding-inline: 16px; }
  .wordmark { gap: 9px; }
  .wordmark-mark { width: 34px; height: 38px; font-size: 16px; }
  .wordmark-name strong { font-size: 21px; }
  .landing-shell { padding-top: 24px; }
  .prime-pill { margin-bottom: 24px; font-size: 10px; }
  .prime-hero h1 { font-size: clamp(3rem, 17cqi, 4.8rem); white-space: normal; }
  .prime-lede { font-size: 16px; }
  .prime-hero .action-row { margin-bottom: 31px; }
  .prime-features { padding: 55px 0 65px; }
  .prime-section-heading { display: block; }
  .prime-section-heading > p { margin-top: 12px; }
  .prime-callout { display: block; padding: 26px 20px; }
  .prime-callout .button { margin-top: 24px; }
}
@media (max-width: 380px) {
  .wordmark small { display: none; }
  .site-header-inner { gap: 8px; }
}

/* ==========================================================================
   Player area: account, player, chart, match, leaderboard and ranking pages.
   Shared components keep every image in a fixed frame so rows line up no
   matter the size or aspect ratio of the source file.
   ========================================================================== */

:root {
  --warn: var(--j-good);
  --score-font: "StepPrime Score", "Segoe UI", sans-serif;
  --panel: rgba(0, 0, 0, .42);
  --silver: #d9def0;
  --bronze: #e8a071;
}

/* ---- Page frame ---------------------------------------------------------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.page-shell { padding: 40px 32px 96px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 22px; color: var(--quiet); font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb > span::before { margin-right: 8px; color: var(--line-strong); content: "/"; }

.page-topline, .profile-head, .song-hero { padding-bottom: 28px; border-bottom: 2px solid transparent; border-image: linear-gradient(90deg, var(--neon), rgba(var(--neon-rgb), .3) 45%, transparent) 1; }
.page-topline { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.page-topline h1, .profile-head h1, .song-hero h1 {
  margin: 0;
  color: #fff;
  font-family: var(--font-ui);
  font-size: clamp(2.1rem, 3.6vw, 3.3rem);
  font-weight: 700;
  letter-spacing: -.01em;
  line-height: 1.08;
  text-shadow: 0 3px 0 #000, 0 0 22px rgba(var(--neon-rgb), .25);
  overflow-wrap: anywhere;
  text-wrap: balance;
}
.page-topline h1 { font-family: var(--font-display); font-size: clamp(2.4rem, 4.4vw, 3.8rem); font-weight: 400; letter-spacing: .01em; line-height: 1; text-transform: uppercase; }
.page-topline p { max-width: 38rem; margin: 12px 0 0; color: var(--muted); line-height: 1.6; }
.page-topline .eyebrow, .profile-head .eyebrow, .song-hero .eyebrow { margin-bottom: 10px; }
.page-topline .button { flex: 0 0 auto; margin: 0; }

.content-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 400px); align-items: start; gap: 20px; margin-top: 24px; }
.content-grid > .surface, .content-stack { min-width: 0; }
.rival-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.rival-identity > div { min-width: 0; overflow-wrap: anywhere; }
.rival-identity .avatar { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 6px; font-size: 20px; }
.content-stack { display: grid; gap: 20px; }
.page-topline + .surface, .song-hero + .surface { margin-top: 24px; }

/* ---- Surfaces -------------------------------------------------------------- */
.surface { container: surface / inline-size; border: 1px solid var(--line); border-top: 2px solid rgba(var(--neon-rgb), .7); border-radius: var(--radius); background: rgba(var(--panel-rgb), .62); }
.surface-pad { padding: clamp(18px, 2.4vw, 28px); }
.surface h2 { margin: 0; color: #fff; font-family: var(--font-display); font-size: 24px; font-weight: 400; letter-spacing: .015em; line-height: 1.15; text-transform: uppercase; }
.surface h3 { margin: 0; font-size: 15px; }
.surface-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.surface-header > div { min-width: 0; }
.surface-header p { margin: 0 0 4px; color: var(--gold); font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.surface-header .status-pill, .surface-header .micro-label { flex: 0 0 auto; margin: 2px 0 0; }
.surface-foot { margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line); }
.micro-label { color: var(--quiet); font-size: 10px; letter-spacing: .1em; }
.prose { margin: 0 0 16px; color: var(--muted); font-size: 14px; line-height: 1.6; }
.prose p { margin: 0 0 14px; }
.prose p:last-child { margin-bottom: 0; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .2s ease; }
.link-arrow:hover::after { transform: translateX(3px); }
.note-card { background: linear-gradient(135deg, rgba(var(--neon-rgb), .1), rgba(var(--blue-rgb), .05)); }
.note-card .section-kicker { margin-bottom: 8px; }
.note-card p:last-child { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.empty-state { padding: 26px 18px; border: 1px dashed var(--line-strong); border-radius: 6px; color: var(--muted); font-size: 14px; line-height: 1.6; list-style: none; text-align: center; }
.empty-state p { margin: 0; }
.empty-state a { display: inline-block; margin-top: 10px; font-weight: 800; }

/* ---- Status pills and chips -------------------------------------------- */
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 3px; color: var(--muted); font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: .08em; line-height: 1.5; text-transform: uppercase; white-space: nowrap; }
.status-pill::before { width: 6px; height: 6px; flex: 0 0 6px; border-radius: 50%; background: currentColor; content: ""; }
.status-pill.is-live { border-color: rgba(var(--neon-rgb), .4); color: var(--signal); }
.status-pill.is-muted { color: var(--quiet); }
.status-pill.is-warn { border-color: rgba(var(--gold-rgb), .38); color: var(--warn); }
.status-pill.is-danger { border-color: rgba(255, 111, 111, .4); color: var(--danger); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.chip { padding: 5px 11px; border: 1px solid var(--line-strong); border-radius: 4px; background: rgba(255, 255, 255, .04); color: var(--text); font-size: 12px; font-weight: 700; line-height: 1.4; }
.chip-mode.is-single { border-color: rgba(var(--red-rgb), .7); background: rgba(var(--red-rgb), .14); color: #ff8a8a; }
.chip-mode.is-double { border-color: rgba(var(--neon-rgb), .6); background: rgba(var(--neon-rgb), .1); color: var(--neon-hi); }
.title-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 4px; border: 1px solid rgba(var(--gold-rgb), .45); border-radius: 4px; background: rgba(var(--gold-rgb), .08); color: var(--gold-hi); font-size: 12px; font-weight: 800; letter-spacing: .02em; line-height: 1.4; }
.title-chip .pumbility-tier-icon { width: 24px; height: 24px; flex-basis: 24px; }
.title-chip.is-empty { padding-left: 11px; border-color: var(--line); background: transparent; color: var(--quiet); font-weight: 650; }

/* ---- Profile header (account + public player) --------------------------- */
.profile-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.profile-head-copy { min-width: 0; }
.profile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.profile-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.profile-actions .button, .profile-actions .inline-form .button { width: auto; min-height: 44px; padding: 10px 16px; font-size: 13px; }
.avatar { display: grid; width: 62px; height: 62px; flex: 0 0 auto; place-items: center; overflow: hidden; border: 2px solid var(--gold); border-radius: 8px; background: linear-gradient(160deg, #1f2a22, #070b08); box-shadow: 0 0 0 2px #000, 0 0 14px rgba(var(--gold-rgb), .25); color: #fff; font-size: 24px; font-weight: 850; }
.avatar-lg { width: 96px; height: 96px; border-width: 3px; border-radius: 10px; font-size: 40px; box-shadow: 0 0 0 2px #000, 0 0 26px rgba(var(--gold-rgb), .3); }
.avatar-fallback { position: relative; display: grid; width: 100%; height: 100%; place-items: center; }
.avatar-fallback img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.player-initial { position: relative; overflow: hidden; }
.player-inline { display: inline-flex; align-items: center; gap: 8px; }
.player-inline .avatar-fallback { width: 28px; height: 28px; flex: 0 0 auto; border-radius: 4px; overflow: hidden; background: rgba(var(--neon-rgb), .14); font-size: 13px; font-weight: 850; }
.avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---- Song artwork -------------------------------------------------------- */
.song-art { display: inline-grid; width: 72px; height: 40px; flex: 0 0 72px; place-items: center; overflow: hidden; border: 1px solid rgba(var(--neon-rgb), .35); border-radius: 4px; background: linear-gradient(140deg, rgba(var(--neon-rgb), .14), rgba(var(--blue-rgb), .08)), var(--ink-soft); color: var(--quiet); vertical-align: middle; }
.song-art img, .song-art .song-thumbnail { display: block; width: 100%; height: 100%; border: 0; border-radius: 0; object-fit: cover; }
.song-thumbnail { display: inline-block; width: 72px; height: 40px; flex: 0 0 72px; border-radius: 4px; background: var(--ink-soft); object-fit: cover; vertical-align: middle; }
.song-name { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; vertical-align: middle; }
.song-name-text { min-width: 0; overflow-wrap: anywhere; }

.song-hero { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); align-items: center; gap: 32px; }
.song-hero-copy { min-width: 0; }
.song-hero .eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.song-hero .eyebrow .status-pill { letter-spacing: .06em; }
.song-artist { margin: 10px 0 0; color: var(--gold); font-size: 16px; line-height: 1.5; }
.song-artist a { color: var(--gold-hi); font-weight: 700; }
.song-hero .action-row { margin: 22px 0 0; }
.song-hero .action-row .button { min-height: 46px; }
.banner-frame { position: relative; display: grid; width: 100%; aspect-ratio: 16 / 9; margin: 0; place-items: center; overflow: hidden; border: 3px solid var(--neon); border-radius: var(--radius); background: var(--ink-soft); box-shadow: var(--neon-frame), var(--shadow); isolation: isolate; }
.banner-backdrop { position: absolute; inset: -12%; z-index: -1; width: 124%; height: 124%; object-fit: cover; filter: blur(22px) saturate(1.3) brightness(.5); }
.banner-frame .song-banner { display: block; width: 100%; height: 100%; object-fit: contain; }
.banner-frame.is-empty { background: linear-gradient(140deg, rgba(var(--neon-rgb), .28), var(--ink-soft) 55%, rgba(var(--blue-rgb), .22)); color: rgba(255, 255, 255, .5); }
.song-hero.is-compact { grid-template-columns: auto minmax(0, 1fr) auto; }
.song-hero-thumb .song-art { width: 144px; height: 80px; flex-basis: 144px; border: 2px solid var(--neon); border-radius: 6px; box-shadow: var(--neon-frame); }
.song-hero-thumb .song-art svg { width: 28px; height: 28px; }
.song-hero.is-compact .button { align-self: center; }

/* ---- Score rows ------------------------------------------------------------ */
.score-list { margin: 0; padding: 0; list-style: none; }
.score-row { padding: 16px 0; border-top: 1px solid var(--line); }
.score-row:first-child { padding-top: 4px; border-top: 0; }
.score-row:last-child { padding-bottom: 0; }
.score-row-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "lead copy result"; align-items: center; gap: 12px 14px; }
.score-row.is-ranked .score-row-main { grid-template-columns: 34px auto minmax(0, 1fr) auto; grid-template-areas: "rank lead copy result"; }
.score-rank { display: grid; grid-area: rank; width: 34px; height: 34px; place-items: center; border-radius: 50%; color: var(--quiet); font-family: var(--score-font); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.is-podium .score-rank { border: 1px solid currentColor; background: rgba(255, 255, 255, .04); }
.is-rank-1 .score-rank { color: var(--gold); box-shadow: 0 0 18px rgba(var(--gold-rgb), .25); }
.is-rank-2 .score-rank { color: var(--silver); }
.is-rank-3 .score-rank { color: var(--bronze); }
.score-row-lead { display: flex; grid-area: lead; }
.score-row-copy { grid-area: copy; min-width: 0; }
.score-row-main > .score-result, .score-row-main > .pumbility-ranking-result { grid-area: result; }
.player-initial { display: grid; width: 40px; height: 40px; place-items: center; border: 2px solid var(--gold); border-radius: 6px; background: linear-gradient(160deg, #1f2a22, #070b08); color: var(--gold-hi); font-size: 16px; font-weight: 850; }
.item-title { margin: 0; color: var(--text); font-size: 16px; font-weight: 750; line-height: 1.3; overflow-wrap: anywhere; }
.item-title a { color: inherit; text-decoration: none; }
.item-title a:hover { color: var(--signal); text-decoration: underline; }
.item-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 5px 0 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.item-meta .status-pill { padding: 1px 8px; font-size: 9px; }

.score-result { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.score-value { color: #fff; font-family: var(--score-font); font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .01em; line-height: 1; white-space: nowrap; }
.result-badges { display: inline-flex; flex-wrap: nowrap; align-items: center; gap: 4px; padding: 3px 6px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.score-grade, .score-plate { display: block; flex: 0 0 auto; max-width: none; object-fit: contain; }
.score-grade { width: 68px; height: 20px; }
.score-grade.is-failed { filter: grayscale(1); }
.score-failed { color: #bcbcbc; font-size: 11px; font-weight: 700; white-space: nowrap; }
.score-plate { width: 56px; height: 25px; }
.score-grade-text, .score-plate-text { padding: 0 4px; color: var(--text); font-family: var(--font-ui); font-size: 11px; font-weight: 700; white-space: nowrap; }
.score-result.is-hero { align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.score-result.is-hero .score-value { font-size: 52px; }
.score-result.is-hero .score-grade { width: 88px; height: 26px; }
.score-result.is-hero .score-plate { width: 72px; height: 32px; }

/* Judgment statistics, aligned under the row's title. */
.attempt-statistics { margin-top: 8px; }
.score-row.by-song > .attempt-statistics { margin-left: 86px; }
.score-row.by-player > .attempt-statistics { margin-left: 54px; }
.score-row.by-player.is-ranked > .attempt-statistics { margin-left: 102px; }
.attempt-statistics summary { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; color: var(--signal); cursor: pointer; font-size: 12px; font-weight: 750; list-style: none; }
.attempt-statistics summary::-webkit-details-marker { display: none; }
.attempt-statistics summary:hover { color: #fff; }
.details-chevron { flex: 0 0 auto; transition: transform .2s ease; }
details[open] > summary .details-chevron { transform: rotate(90deg); }
.judgment-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; max-width: 600px; margin: 8px 0 0; }
.judgment-stats > div { min-width: 0; padding: 7px 10px; border: 1px solid var(--line); border-radius: 4px; background: var(--panel); }
.judgment-stats dt { overflow: hidden; color: var(--quiet); font-size: 11px; line-height: 1.4; text-overflow: ellipsis; white-space: nowrap; }
.judgment-stats dd { margin: 2px 0 0; color: var(--text); font-family: var(--score-font); font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.judgment-stats dt { font-family: var(--font-ui); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.judgment-stats > div:nth-child(1) dt { color: var(--j-perfect); }
.judgment-stats > div:nth-child(2) dt { color: var(--j-great); }
.judgment-stats > div:nth-child(3) dt { color: var(--j-good); }
.judgment-stats > div:nth-child(4) dt { color: var(--j-bad); }
.judgment-stats > div:nth-child(5) dt { color: var(--j-miss); }
.judgment-stats .is-miss dd { color: var(--danger); }
.judgment-stats .is-combo dd { color: var(--signal); }

/* Narrow containers (sidebars, phones): result drops under the title. */
@container surface (max-width: 560px) {
  .score-row-main { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "lead copy" "lead result"; align-items: start; row-gap: 8px; }
  .score-row.is-ranked .score-row-main { grid-template-columns: 30px auto minmax(0, 1fr); grid-template-areas: "rank lead copy" "rank lead result"; }
  .score-rank { width: 30px; height: 30px; font-size: 12px; }
  .score-row-main > .score-result, .score-row-main > .pumbility-ranking-result { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 12px; }
  .score-value { font-size: 24px; }
  .pumbility-ranking-result .score-value { order: -1; min-width: 0; text-align: left; }
  .judgment-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .score-row.by-song > .attempt-statistics, .score-row.by-player > .attempt-statistics, .score-row.by-player.is-ranked > .attempt-statistics { margin-left: 0; }
}

/* ---- Lists (credentials, matches, console) ------------------------------- */
.list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.list-item:first-child { border-top: 0; }
.list-item > div { min-width: 0; }
.list-item p { margin: 0; }
.list-item.is-revoked .item-title { color: var(--quiet); text-decoration: line-through; text-decoration-color: rgba(255, 255, 255, .25); }
.item-value { flex: 0 0 auto; text-align: right; }
.attempt-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.attempt-item > .attempt-statistics { grid-column: 1 / -1; }
.credential-list { margin-top: 12px; }
.match-list .list-item { padding: 0; }
.match-link { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; padding: 14px 0; text-decoration: none; }
.match-link .item-title { display: block; }
.match-link .item-meta { margin: 0; }
.match-link:hover .item-title { color: var(--signal); }
.detail-list { margin: 0; padding: 0; list-style: none; }
.detail-list > div, .detail-list > li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.detail-list > div:first-child, .detail-list > li:first-child { padding-top: 0; border-top: 0; }
.detail-list dt, .detail-list li > strong { color: var(--muted); font-size: 14px; font-weight: 650; }
.detail-list dd, .detail-list li > span { margin: 0; color: var(--text); font-size: 14px; font-weight: 750; overflow-wrap: anywhere; text-align: right; }

/* ---- Forms inside the player area ---------------------------------------- */
.inline-form { display: inline; }
.inline-form button:not(.button) { width: auto; min-height: 34px; padding: 6px 12px; border-color: var(--line-strong); border-radius: 8px; background: transparent; color: var(--muted); font-size: 12px; font-weight: 700; }
.inline-form button:not(.button):hover { border-color: var(--danger); color: var(--danger); }
.form-row { display: flex; align-items: flex-end; gap: 12px; }
.form-row .field { min-width: 0; flex: 1; }
.form-row .button { flex: 0 0 auto; min-height: 48px; }
aside .form-row, .avatar-form { flex-direction: column; align-items: stretch; }
aside .form-row .button, .avatar-form .button { width: 100%; }
.avatar-form { display: flex; gap: 12px; }
.field-hint { margin: 10px 0 0; color: var(--quiet); font-size: 12px; line-height: 1.5; }
input[type="file"] { padding: 7px; color: var(--muted); font-size: 13px; cursor: pointer; }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 1px solid rgba(var(--neon-rgb), .45); border-radius: 4px; background: rgba(var(--neon-rgb), .16); color: var(--neon-hi); cursor: pointer; font: inherit; font-weight: 750; }
input[type="file"]::file-selector-button:hover { background: rgba(var(--neon-rgb), .28); }
select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-repeat: no-repeat; background-size: 5px 5px; }
select:disabled { opacity: .6; }

/* ---- PUMBILITY ------------------------------------------------------------- */
.pumbility-totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; }
.pumbility-total { display: flex; min-width: 0; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.pumbility-total.is-total { border: 2px solid var(--gold); background: linear-gradient(160deg, rgba(var(--gold-rgb), .16), rgba(0, 0, 0, .5) 70%); box-shadow: 0 0 0 1px #000, 0 0 18px rgba(var(--gold-rgb), .2); }
.pumbility-total > span { color: var(--quiet); font-family: var(--font-ui); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.pumbility-total > strong { margin-top: -6px; color: var(--gold); font-family: var(--score-font); font-size: clamp(30px, 3vw, 40px); font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; white-space: nowrap; }
.pumbility-tier-icon { display: inline-block; width: 32px; height: 32px; flex: 0 0 32px; object-fit: contain; vertical-align: middle; }
.pumbility-tier-icon.is-empty { border: 1px dashed var(--line-strong); border-radius: 50%; }
.pumbility-tier-badge { display: inline-flex; min-width: 0; align-items: center; gap: 10px; text-align: left; }
.pumbility-tier-badge .pumbility-tier-icon { width: 44px; height: 44px; flex-basis: 44px; }
.pumbility-tier-copy { display: flex; min-width: 0; flex-direction: column; gap: 2px; }
.pumbility-tier-label { display: block; width: 96px; height: 30px; object-fit: contain; object-position: left center; }
.pumbility-tier-name { color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .03em; line-height: 1.35; overflow-wrap: anywhere; }
.pumbility-tier-badge.is-unranked .pumbility-tier-name { color: var(--quiet); font-family: var(--font-ui); letter-spacing: .1em; }
.tier-progress { display: grid; gap: 6px; margin-top: auto; }
.tier-progress small { color: var(--quiet); font-size: 12px; line-height: 1.45; }
.tier-progress small b { color: var(--text); font-weight: 750; }
.tier-progress progress { width: 100%; height: 6px; overflow: hidden; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .08); appearance: none; }
.tier-progress progress::-webkit-progress-bar { border-radius: 999px; background: rgba(255, 255, 255, .08); }
.tier-progress progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, var(--neon-deep), var(--neon)); }
.tier-progress progress::-moz-progress-bar { border-radius: 999px; background: linear-gradient(90deg, var(--neon-deep), var(--neon)); }
@container surface (max-width: 640px) {
  .pumbility-totals { grid-template-columns: minmax(0, 1fr); }
  .pumbility-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; }
  .pumbility-total > span { grid-column: 1 / -1; }
  .pumbility-total > strong { margin: 0; }
  .pumbility-total .tier-progress { grid-column: 1 / -1; }
}

.equip-row { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.equip-current { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--muted); font-size: 14px; }
.equip-current strong { color: #fff; }
.equip-current .pumbility-tier-icon { width: 26px; height: 26px; flex-basis: 26px; }

.pumbility-title-catalog { margin-top: 22px; }
.pumbility-title-catalog h3 { margin: 0 0 10px; color: var(--gold); font-family: var(--font-ui); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.title-catalog-group { margin-top: 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.title-catalog-group > summary { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 10px 14px; cursor: pointer; list-style: none; }
.title-catalog-group > summary::-webkit-details-marker { display: none; }
.title-catalog-group > summary:hover .catalog-scope { color: var(--signal); }
.catalog-scope { color: var(--text); font-size: 14px; font-weight: 750; white-space: nowrap; }
.catalog-current { display: inline-flex; min-width: 0; align-items: center; gap: 8px; margin-left: auto; color: var(--muted); font-size: 12px; font-weight: 700; text-align: right; }
.catalog-current .pumbility-tier-icon { width: 26px; height: 26px; flex-basis: 26px; }
.catalog-current > span { min-width: 0; }
.catalog-body { padding: 0 14px 14px; }
.catalog-note { margin: 0 0 10px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.catalog-note strong { color: var(--text); font-weight: 700; }
.title-catalog-list { max-height: 360px; margin: 0; padding: 0 4px 0 0; overflow-y: auto; list-style: none; scrollbar-color: var(--line-strong) transparent; scrollbar-width: thin; }
.title-catalog-list li { display: flex; align-items: center; justify-content: space-between; gap: 6px 14px; padding: 5px 8px; border-radius: 8px; color: var(--quiet); font-size: 13px; }
.title-catalog-list li.is-reached { color: var(--muted); }
.title-catalog-list li.is-current { background: rgba(var(--neon-rgb), .1); box-shadow: inset 0 0 0 1px rgba(var(--neon-rgb), .3); color: var(--signal); }
.pumbility-tier-title { display: inline-flex; min-width: 0; align-items: center; gap: 10px; font-weight: 650; }
.pumbility-tier-title .pumbility-tier-icon { width: 26px; height: 26px; flex-basis: 26px; }
.title-catalog-list li:not(.is-current):not(.is-reached) .pumbility-tier-icon { filter: grayscale(.7); opacity: .55; }
.catalog-range { flex: 0 0 auto; font-family: var(--font-ui); font-size: 12px; font-variant-numeric: tabular-nums; }

@container surface (max-width: 640px) {
  .title-catalog-group > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "scope chevron" "current current"; gap: 6px 12px; padding-block: 12px; }
  .catalog-scope { grid-area: scope; }
  .title-catalog-group > summary .details-chevron { grid-area: chevron; }
  .catalog-current { grid-area: current; margin-left: 0; text-align: left; }
}

/* Top 50 */
.top50-panel { container: top50 / inline-size; }
.top50-group { border-top: 1px solid var(--line); }
.top50-group:first-child { border-top: 0; }
.top50-group > summary { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 0; color: var(--text); cursor: pointer; font-size: 15px; font-weight: 750; list-style: none; }
.top50-group > summary::-webkit-details-marker { display: none; }
.top50-group > summary:hover { color: var(--signal); }
.top50-count { margin-left: auto; color: var(--quiet); font-size: 12px; font-weight: 600; }
.pumbility-top50-list { margin: 0; padding: 0 0 12px; list-style: none; }
.top50-entry { display: grid; grid-template-columns: 30px 72px minmax(0, 1fr) auto 92px; grid-template-areas: "rank art copy score pumb"; align-items: center; gap: 8px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.top50-entry:first-child { border-top: 0; }
.pumbility-rank { grid-area: rank; color: var(--quiet); font-family: var(--score-font); font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: center; }
.top50-entry:nth-child(-n + 3) .pumbility-rank { color: var(--gold); }
.top50-art { display: flex; grid-area: art; }
.top50-chart-copy { grid-area: copy; min-width: 0; }
.top50-song { display: block; color: var(--text); font-size: 15px; font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.top50-song a { color: inherit; text-decoration: none; }
.top50-song a:hover { color: var(--signal); text-decoration: underline; }
.chart-meta { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.top50-score { display: flex; grid-area: score; flex-direction: column; align-items: flex-end; gap: 5px; }
.top50-score .score-value { color: var(--text); font-size: 22px; }
.score-line .score-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.score-label { color: var(--quiet); font-size: 10px; font-weight: 700; letter-spacing: .08em; }
.top50-pumbility { display: flex; grid-area: pumb; flex-direction: column; align-items: flex-end; gap: 2px; }
.top50-pumbility strong { color: var(--gold); font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.2; white-space: nowrap; }
.next-in { margin: 4px 0 16px; padding: 12px 14px; border: 1px dashed rgba(var(--gold-rgb), .45); border-radius: 6px; }
.next-in-label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 12px; margin: 0 0 10px; }
.next-in-label strong { color: var(--text); font-size: 13px; }
.next-in-label span { color: var(--quiet); font-size: 12px; }
.next-in-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto 92px; grid-template-areas: "art copy badges pumb"; align-items: center; gap: 8px 14px; }
.next-in-row .result-badges { grid-area: badges; }
@container top50 (max-width: 560px) {
  .top50-entry { grid-template-columns: 22px 56px minmax(0, 1fr) auto; grid-template-areas: "rank art copy copy" "rank art score pumb"; align-items: start; column-gap: 10px; }
  .top50-entry .song-art, .next-in-row .song-art { width: 56px; height: 34px; flex-basis: 56px; }
  .pumbility-rank { padding-top: 8px; }
  .top50-score { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6px 10px; }
  .top50-score .score-value { font-size: 20px; }
  .top50-pumbility strong { font-size: 16px; }
  .next-in-row { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: "art copy copy" "art badges pumb"; align-items: start; column-gap: 10px; }
  .next-in-row .result-badges { justify-self: start; }
}

/* Public PUMBILITY ranking */
.pumbility-ranking-result { display: flex; align-items: center; gap: 18px; }
.pumbility-ranking-result .score-value { min-width: 7ch; color: var(--gold); font-size: 30px; text-align: right; }

/* ---- Responsive ------------------------------------------------------------ */
@media (max-width: 1080px) {
  .content-grid { grid-template-columns: minmax(0, 1fr); }
  .song-hero { grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 720px) {
  .page-shell { padding: 28px 16px 72px; }
  .page-topline { display: block; }
  .page-topline .button { margin-top: 18px; }
  .profile-head { grid-template-columns: auto minmax(0, 1fr); gap: 16px 18px; }
  .profile-actions { grid-column: 1 / -1; justify-content: flex-start; }
  .avatar-lg { width: 68px; height: 68px; border-radius: 8px; font-size: 28px; }
  .song-hero, .song-hero.is-compact { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .song-hero.is-compact { grid-template-columns: auto minmax(0, 1fr); }
  .song-hero.is-compact > .button { grid-column: 1 / -1; justify-self: start; }
  .song-hero-thumb .song-art { width: 96px; height: 54px; flex-basis: 96px; }
  .page-topline h1, .profile-head h1, .song-hero h1 { font-size: clamp(1.75rem, 7.4vw, 2.4rem); }
  .form-row { flex-direction: column; align-items: stretch; }
  .form-row .button { width: 100%; }
  .score-result.is-hero .score-value { font-size: 44px; }
}

@media (max-width: 420px) {
  .profile-actions .button, .profile-actions .inline-form, .profile-actions .inline-form .button { flex: 1 1 auto; }
}

/* Quiet buttons keep their outline even when the element is a <button>. */
button.button-quiet { border-color: var(--neon); }
button.button-quiet:hover { border-color: var(--neon-hi); }
