/*
 * UDON SABER Hub — redesigned Web UI (Phase 45). Served only by /web/ui2/index.html,
 * never together with the legacy app.css, so nothing here needs to fight legacy selectors.
 * Values come from the adopted design boards; components read them through these tokens.
 */

:root {
  color-scheme: dark;

  /* surfaces */
  --ink0: #0B0D15;
  --ink1: #131623;
  --ink2: #1C2031;
  --ink-pop: #151826;
  --ink-drawer: #0F1220;
  --ink-field: #1A1E2E;
  --hover: #1F2334;
  --line: #232839;
  --line-pop: #262B3E;

  /* text */
  --tx: #F0F1F7;
  --tx-item: #D8DBE8;
  --tx-nav: #C9CDDA;
  --tx-soft: #B8BCCC;
  --tx-sub: #9EA3B8;
  --tx2: #A9ADC0;
  --tx3: #868BA2;
  --tx4: #5E6378;

  /* accents */
  --pink: #FF5FA8;
  --pink-hi: #FF8EC2;
  --on-pink: #1B0716;
  --acc-rgb: 240, 140, 192;
  --cyan: #7FD8FF;
  --cyan-hi: #B5E9FF;
  --ok: #4EDB82;
  --warn: #FFBF4D;
  --warn-tx: #FFD999;
  --bad: #FF6B7F;
  --bad-tx: #FF9AA8;
  --gold: #F2CF72;
  --discord: #5865F2;
  --discord-hi: #6B77F5;

  /* difficulty */
  --d-easy: #50BEFF;
  --d-normal: #4EDB82;
  --d-hard: #FFBF4D;
  --d-expert: #FF6882;
  --d-expertplus: #BE89FF;

  /* type */
  --font: "Geist", "Zen Kaku Gothic New", system-ui, sans-serif;
  --mono: ui-monospace, Menlo, Consolas, monospace;

  /* shape */
  --r-pill: 999px;
  --r-dialog: 26px;
  --r-card: 16px;
  --r-field: 14px;
  --r-item: 10px;
  --shadow-pop: 0 24px 50px rgba(0, 0, 0, .5);
  --shadow-dialog: 0 40px 90px rgba(0, 0, 0, .6);

  /* motion */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --t-fast: 120ms;
  --t-mid: 160ms;
  --t-dialog: 320ms;

  /* layout */
  --wrap: 1200px;
  --gutter: 32px;
  --header-h: 72px;
  --band-h: 300px;
}

@media (max-width: 959px) {
  :root { --header-h: 60px; }
}

@media (max-width: 599px) {
  :root { --gutter: 16px; }
}

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

/* The hidden attribute always wins over component display rules. */
[hidden] { display: none !important; }

/* Run 6: the page keeps its scrollbar's room, so a page switch never moves the layout sideways when
   a page (or its loading view) is shorter than the window (classic scrollbars on desktops). */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ink0);
  color: var(--tx);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

body.u2-locked { overflow: hidden; }

/* Korean breaks between words, not inside them; long tokens may still wrap. */
html:lang(ko) body { word-break: keep-all; overflow-wrap: anywhere; }

a { color: var(--cyan); }
a:hover { color: var(--cyan-hi); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}

img { max-width: 100%; }

.u2-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.u2-skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--pink);
  color: var(--on-pink);
  font-weight: 600;
  text-decoration: none;
}
.u2-skip:focus { top: 12px; color: var(--on-pink); }

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

/* ---------------------------------------------------------------- band */

.u2-band {
  position: absolute;
  inset: 0 0 auto 0;
  /* Run 6: a page whose hero grows past its band (core.bandFollow) has the painted band follow it. */
  height: max(var(--band-h), var(--band-paint-h, 0px));
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.u2-band-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 40%, rgba(255, 95, 168, .14), transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(127, 216, 255, .12), transparent 50%);
}
.u2-band-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--ink0));
}
/* Run 6: a new picture fades in over the one shown (core.setBand), which then fades out; the band
   is never left empty in between. A picture always hides the glow, whatever the page. */
.u2-band-photo,
.u2-band-mosaic { transition: opacity 240ms var(--ease-out, ease); }
.u2-band-photo.is-entering,
.u2-band-mosaic.is-entering,
.u2-band-photo.is-leaving,
.u2-band-mosaic.is-leaving { opacity: 0 !important; }
.u2-band-photo ~ .u2-band-glow { display: none; }

/* ---------------------------------------------------------------- header */

.u2-hd {
  position: relative;
  z-index: 20;
  color: var(--tx);
  white-space: nowrap;
}
.u2-hd-row {
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.u2-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.015em;
  text-decoration: none;
}
.u2-brand:hover { color: #fff; }
.u2-brand img {
  display: block;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.u2-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 36px;
}
.u2-nav > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--r-item);
  color: rgba(240, 241, 247, .72);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--t-fast);
}
.u2-nav > a:hover,
.u2-nav > a[aria-current="page"] { color: #fff; }
.u2-nav > a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 1px;
  background: rgb(var(--acc-rgb));
}

.u2-spacer { flex: 1 1 auto; }

.u2-ic {
  appearance: none;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(240, 241, 247, .8);
  cursor: pointer;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.u2-ic:hover,
.u2-ic[aria-expanded="true"] {
  background: rgba(255, 255, 255, .1);
  color: #fff;
}

.u2-auth {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 40px;
  min-height: 40px;
}

.u2-post {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex-shrink: 0;
  height: 38px;
  padding: 0 16px 0 13px;
  border-radius: var(--r-pill);
  background: var(--pink);
  color: var(--on-pink);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--t-fast);
}
.u2-post:hover { background: var(--pink-hi); color: var(--on-pink); }

.u2-login {
  appearance: none;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  height: 38px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: var(--r-pill);
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  transition: background-color var(--t-fast);
}
.u2-login:hover { background: rgba(255, 255, 255, .1); }

.u2-me {
  appearance: none;
  position: relative;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  padding: 2px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
}
.u2-me img { display: block; }
.u2-me img,
.u2-me .u2-avatar-fallback {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: box-shadow var(--t-fast);
}
.u2-me:hover img,
.u2-me[aria-expanded="true"] img,
.u2-me:hover .u2-avatar-fallback,
.u2-me[aria-expanded="true"] .u2-avatar-fallback {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .5);
}
.u2-dot {
  position: absolute;
  right: 1px;
  top: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 0 2px var(--ink0);
}

.u2-avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #3A2C5A, #233A5C);
  color: #fff;
  font-weight: 700;
}

/* popovers: "…" menu and my menu */
.u2-anchor { position: relative; }

.u2-pop {
  position: absolute;
  top: calc(100% + 10px);
  z-index: 30;
  padding: 6px;
  border: 1px solid var(--line-pop);
  border-radius: var(--r-card);
  background: var(--ink-pop);
  box-shadow: var(--shadow-pop);
  white-space: nowrap;
}
.u2-pop-more { left: 0; width: 220px; }
.u2-pop-me { right: 0; width: 232px; }

.u2-it {
  appearance: none;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-item);
  background: transparent;
  color: var(--tx-item);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.u2-it:hover,
.u2-it:focus-visible { background: var(--hover); color: #fff; }
.u2-it svg { flex-shrink: 0; color: var(--tx3); }
.u2-it:hover svg,
.u2-it:focus-visible svg { color: #fff; }
.u2-it-quiet { color: var(--tx2); }
.u2-it-strong { color: #fff; }
.u2-it-mark {
  width: 8px;
  height: 8px;
  margin: 0 4px;
  border-radius: 50%;
  background: var(--pink);
}
.u2-pop hr {
  margin: 6px 8px;
  border: 0;
  border-top: 1px solid var(--line);
}
.u2-me-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px 12px;
  font-weight: 600;
  overflow: hidden;
}
.u2-me-head img,
.u2-me-head .u2-avatar-fallback {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.u2-me-head span:last-child { overflow: hidden; text-overflow: ellipsis; }

.u2-lang { padding: 6px 8px 4px; }
.u2-lang-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 4px 8px;
  color: var(--tx3);
  font-size: 12px;
}
.u2-lang-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
}
.u2-lang-grid button {
  appearance: none;
  height: 34px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--tx-soft);
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.u2-lang-grid button:hover { background: var(--hover); color: #fff; }
.u2-lang-grid button[aria-checked="true"] {
  background: var(--line);
  color: #fff;
  font-weight: 600;
}

/* header search (desktop) */
.u2-search {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  min-width: 0;
}
.u2-q {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 44px;
  margin: 0 24px 0 36px;
  padding: 0 6px 0 16px;
  border: 1px solid rgba(var(--acc-rgb), .55);
  border-radius: var(--r-pill);
  background: rgba(11, 13, 21, .6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.u2-q > svg { flex-shrink: 0; color: rgba(240, 241, 247, .7); }
.u2-q input {
  flex: 1 1 auto;
  /* Firefox and WebKit add an input's natural width to the row's minimum; it fills through flex-grow. */
  width: 0;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 15px;
  outline: none;
}
.u2-q input::placeholder { color: var(--tx3); }
.u2-q input::-webkit-search-cancel-button { display: none; }
.u2-q .u2-ic { width: 32px; height: 32px; }

.u2-results {
  left: 36px;
  right: 24px;
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 8px;
}
.u2-results-group {
  padding: 8px 10px 4px;
  color: var(--tx3);
  font-size: 12px;
}
.u2-sr-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 48px;
  padding: 0 10px;
  border-radius: var(--r-item);
  color: var(--tx);
  text-decoration: none;
  overflow: hidden;
}
.u2-sr-row:hover,
.u2-sr-row[aria-selected="true"] { background: var(--hover); color: #fff; }
.u2-sr-row img,
.u2-sr-row .u2-avatar-fallback,
.u2-sr-row .u2-jacket-fallback {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}
.u2-sr-row.is-chart img,
.u2-sr-row .u2-jacket-fallback { border-radius: 7px; }
.u2-jacket-fallback {
  display: grid;
  place-items: center;
  background: var(--ink2);
  color: var(--tx3);
}
/* Phase 45.12: a jacket loaded through core.pacedImage over its quiet fallback (home, song list,
   search results, the search suggestions). The fallback shows until the jacket arrives and stays
   where it fails; the jacket fades in over it. */
.u2-paced { position: relative; overflow: hidden; }
.u2-paced > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: u2-paced-in var(--t-mid) var(--ease-out);
}
.u2-paced.is-loaded > :not(img) { visibility: hidden; }
@keyframes u2-paced-in { from { opacity: 0; } }
.u2-sr-name {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.u2-sr-row small {
  flex: 0 1 auto;
  min-width: 0;
  color: var(--tx3);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.u2-sr-diff {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding-left: 12px;
  color: var(--tx2);
  font-size: 12px;
}
.u2-sr-diff i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--tx3);
}
.u2-sr-note {
  padding: 14px 12px;
  color: var(--tx2);
}
.u2-sr-all {
  display: flex;
  align-items: center;
  height: 44px;
  margin-top: 4px;
  padding: 0 10px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 var(--r-item) var(--r-item);
  color: var(--tx2);
  text-decoration: none;
}
.u2-sr-all:hover,
.u2-sr-all[aria-selected="true"] { background: var(--hover); color: #fff; }

/* mobile header pieces */
.u2-up {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  height: 34px;
  margin: 0 2px;
  padding: 0 12px 0 10px;
  border-radius: var(--r-pill);
  background: var(--pink);
  color: var(--on-pink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}
.u2-up:hover { background: var(--pink-hi); color: var(--on-pink); }

@media (max-width: 959px) {
  .u2-hd .u2-wrap { width: 100%; padding: 0 8px 0 16px; }
  .u2-hd-row { gap: 4px; }
  .u2-brand { margin-right: auto; gap: 8px; font-size: 15px; }
  .u2-brand img { width: 30px; height: 30px; }
  .u2-ic { width: 44px; height: 44px; color: #fff; }
  .u2-auth { gap: 4px; }
  .u2-login { height: 36px; padding: 0 14px; }
  .u2-me { width: 44px; height: 44px; padding: 4px; }
}
/* Narrow phones (the 320 px class): the wordmark gives way to the icon; the link keeps its
   accessible name (aria-label) and every control keeps its 44 px target. */
@media (max-width: 359px) {
  .u2-brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .u2-login { padding: 0 12px; }
}

/* mobile drawer and search sheet */
.u2-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  background: var(--ink-drawer);
  color: var(--tx);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.u2-sheet-bar {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  height: 60px;
  padding: 0 8px 0 16px;
}
.u2-sheet-bar .u2-ic { width: 44px; height: 44px; color: #fff; }

/* Tablet (no board): the menu becomes a right-hand sheet over a dimmed page. */
@media (min-width: 600px) {
  .u2-sheet.u2-drawer {
    left: auto;
    width: 420px;
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow-dialog), 0 0 0 100vmax rgba(5, 6, 12, .7);
  }
}

.u2-drawer-me {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  min-height: 72px;
  padding: 0 24px;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}
.u2-drawer-me:hover { color: #fff; }
button.u2-drawer-me {
  appearance: none;
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.u2-drawer-me img,
.u2-drawer-me .u2-avatar-fallback {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}
.u2-drawer-me .u2-dot { position: static; flex-shrink: 0; box-shadow: none; width: 8px; height: 8px; }

.u2-drawer-main a {
  display: flex;
  align-items: center;
  height: 52px;
  padding: 0 24px;
  color: var(--tx-nav);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
}
.u2-drawer-main a:hover,
.u2-drawer-main a[aria-current="page"] { color: #fff; }
.u2-drawer-main a[aria-current="page"]::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-left: 10px;
  border-radius: 50%;
  background: rgb(var(--acc-rgb));
}
.u2-drawer-sub {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 12px;
  padding: 12px 12px 4px;
  border-top: 1px solid var(--line);
}
.u2-drawer-sub a {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  color: var(--tx-sub);
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.u2-drawer-sub a:hover,
.u2-drawer-sub a[aria-current="page"] { color: #fff; }
.u2-drawer-lang {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 10px 24px 4px;
  color: var(--tx3);
  font-size: 13px;
}
.u2-drawer-lang > span { display: inline-flex; align-items: center; gap: 10px; }
.u2-drawer-lang .u2-lang-row { display: flex; gap: 4px; margin-left: auto; }
.u2-drawer-lang button {
  appearance: none;
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--tx-sub);
  font: inherit;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
}
.u2-drawer-lang button[aria-pressed="true"] {
  background: var(--ink2);
  color: #fff;
  font-weight: 600;
}
.u2-drawer-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-top: auto;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--line);
}
.u2-drawer-foot a,
.u2-drawer-foot button {
  appearance: none;
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tx3);
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}
.u2-drawer-foot a:hover,
.u2-drawer-foot button:hover { color: #fff; }
.u2-drawer-foot .u2-push { margin-left: auto; }

.u2-msearch {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--ink-field);
}
.u2-msearch > svg { flex-shrink: 0; color: rgba(240, 241, 247, .7); }
.u2-msearch input {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 16px;
  outline: none;
}
.u2-msearch input::placeholder { color: var(--tx3); }
.u2-msearch input::-webkit-search-cancel-button { display: none; }
.u2-msheet .u2-sheet-bar { padding: 0 8px 0 12px; gap: 8px; }
.u2-msheet .u2-results-list { padding-top: 8px; }
.u2-msheet .u2-sr-row { height: 56px; padding: 0 20px; border-radius: 0; }
.u2-msheet .u2-sr-row img,
.u2-msheet .u2-sr-row .u2-avatar-fallback,
.u2-msheet .u2-sr-row .u2-jacket-fallback { width: 36px; height: 36px; }
.u2-msheet .u2-sr-row.is-chart img,
.u2-msheet .u2-sr-row .u2-jacket-fallback { border-radius: 8px; }
.u2-msheet .u2-results-group { padding: 12px 20px 4px; }
.u2-msheet .u2-sr-note { padding: 16px 20px; }
.u2-msheet .u2-sr-all { padding: 0 20px; border-radius: 0; height: 52px; }

/* ---------------------------------------------------------------- main */

.u2-main {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  outline: none;
}
/* Focus moves to <main> after in-app navigation for screen readers; no ring is drawn there. */
.u2-main:focus,
.u2-main:focus-visible { outline: none; }

.u2-hero {
  min-height: calc(var(--band-h) - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-bottom: 40px;
}
.u2-chip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .07);
  color: var(--tx2);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}
.u2-h1 {
  max-width: 22ch;
  margin: 16px 0 0;
  font-size: 48px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.035em;
  word-break: auto-phrase;
  text-wrap: balance;
}
.u2-lead {
  max-width: 46ch;
  margin: 12px 0 0;
  color: var(--tx2);
  font-size: 17px;
  line-height: 1.75;
  word-break: auto-phrase;
}
.u2-body { padding: 28px 0 140px; }
.u2-acts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.u2-det {
  margin: 28px 0 0;
  color: var(--tx3);
  font-size: 12px;
}
.u2-det code {
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--ink2);
  color: var(--tx2);
  font-family: var(--mono);
}

@media (max-width: 599px) {
  .u2-hero { min-height: calc(var(--band-h) - var(--header-h)); padding-bottom: 12px; }
  .u2-h1 { font-size: 30px; }
  .u2-lead { font-size: 15px; }
  .u2-body { padding: 20px 0 120px; }
  .u2-acts .u2-btn { flex: 1 1 auto; }
}

/* buttons */
.u2-btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--tx);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--t-fast), border-color var(--t-fast);
}
.u2-btn:hover { background: rgba(255, 255, 255, .1); color: var(--tx); }
.u2-btn-primary {
  border-color: var(--pink);
  background: var(--pink);
  color: var(--on-pink);
  font-weight: 600;
}
.u2-btn-primary:hover {
  border-color: var(--pink-hi);
  background: var(--pink-hi);
  color: var(--on-pink);
}
.u2-btn-danger {
  border-color: rgba(255, 107, 127, .5);
  color: var(--bad-tx);
}
.u2-btn-danger:hover { background: rgba(255, 107, 127, .1); color: var(--bad-tx); }
.u2-btn[aria-disabled="true"],
.u2-btn:disabled {
  border-color: transparent;
  background: rgba(255, 255, 255, .08);
  color: var(--tx3);
  cursor: not-allowed;
}
.u2-btn-sm { height: 36px; padding: 0 14px; font-size: 13px; }
.u2-btn-full { width: 100%; }

.u2-spin {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, .25);
  border-top-color: #fff;
  border-radius: 50%;
  animation: u2-spin .8s linear infinite;
}
@keyframes u2-spin { to { transform: rotate(360deg); } }

/* ---------------------------------------------------------------- states */

.u2-skel {
  border-radius: var(--r-item);
  background: linear-gradient(90deg, var(--ink1) 0%, var(--ink2) 40%, var(--ink1) 80%);
  background-size: 300% 100%;
  animation: u2-shimmer 1.4s ease-in-out infinite;
}
@keyframes u2-shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
.u2-skel-row {
  display: grid;
  grid-template-columns: 28px 44px minmax(0, 1fr) 120px 96px 80px;
  gap: 18px;
  align-items: center;
  padding: 12px 0;
}
@media (max-width: 599px) {
  .u2-skel-row { grid-template-columns: 44px minmax(0, 1fr) 70px; gap: 12px; }
  .u2-skel-row > :first-child,
  .u2-skel-row > :nth-child(5),
  .u2-skel-row > :nth-child(6) { display: none; }
}

.u2-inline-err {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid rgba(255, 191, 77, .3);
  border-radius: var(--r-card);
  background: rgba(255, 191, 77, .06);
}
.u2-inline-err > .u2-inline-ic {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(255, 191, 77, .14);
  color: var(--warn-tx);
}
.u2-inline-err b { display: block; font-size: 15px; font-weight: 600; }
.u2-inline-err span span { display: block; color: var(--tx2); font-size: 13px; }
.u2-inline-err > span:nth-child(2) { flex: 1 1 auto; min-width: 0; }
@media (max-width: 599px) {
  .u2-inline-err { flex-wrap: wrap; }
  .u2-inline-err .u2-btn { width: 100%; }
}

/* ---------------------------------------------------------------- footer */

.u2-ft {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  color: var(--tx2);
  font-size: 13px;
}
.u2-ft-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 24px;
  padding: 28px 0 0;
}
.u2-ft-row + .u2-ft-row { padding-top: 14px; }
.u2-ft-row:last-child { padding-bottom: 28px; }
.u2-ft a { color: var(--tx2); }
.u2-ft a:hover { color: #fff; }
.u2-ft-lang {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-left: 32px;
}
.u2-ft-lang > span { display: inline-flex; color: var(--tx3); }
.u2-ft-lang button {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tx3);
  font: inherit;
  cursor: pointer;
}
.u2-ft-lang button:hover { color: #fff; }
.u2-ft-lang button[aria-pressed="true"] { color: #fff; font-weight: 600; }
.u2-ft-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
  margin-left: auto;
}
.u2-ft-quiet { color: var(--tx3); }
.u2-ft-quiet a { color: var(--tx3); }
.u2-ft-community {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
}
.u2-ft-community a { text-decoration: none; }
.u2-ft-preview {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.u2-ft-preview a { color: var(--cyan); }

@media (max-width: 959px) {
  .u2-ft-lang { margin-left: 0; }
  .u2-ft-links { margin-left: 0; width: 100%; order: -1; }
  .u2-ft-preview { margin-left: 0; }
}
@media (max-width: 599px) {
  .u2-ft-row { padding-top: 20px; gap: 4px 20px; }
  .u2-ft-row:last-child { padding-bottom: 32px; }
  .u2-ft a,
  .u2-ft-lang button { min-height: 32px; display: inline-flex; align-items: center; }
}

/* ---------------------------------------------------------------- toast */

.u2-toasts {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 80;
  width: max-content;
  max-width: calc(100% - 32px);
  transform: translateX(-50%);
  pointer-events: none;
}
.u2-toast {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 12px 12px 18px;
  border: 1px solid var(--line-pop);
  border-radius: var(--r-card);
  background: var(--ink-pop);
  box-shadow: var(--shadow-pop);
  color: var(--tx);
  font-size: 14px;
  line-height: 1.5;
  pointer-events: auto;
  animation: u2-toast-in var(--t-dialog) var(--ease-out) both;
}
.u2-toast[data-tone="ok"] { border-color: rgba(78, 219, 130, .35); }
.u2-toast[data-tone="warn"] { border-color: rgba(255, 191, 77, .35); }
.u2-toast[data-tone="bad"] { border-color: rgba(255, 107, 127, .4); }
.u2-toast-ic { flex-shrink: 0; display: grid; place-items: center; }
.u2-toast[data-tone="ok"] .u2-toast-ic { color: var(--ok); }
.u2-toast[data-tone="warn"] .u2-toast-ic { color: var(--warn-tx); }
.u2-toast[data-tone="bad"] .u2-toast-ic { color: var(--bad-tx); }
.u2-toast-msg { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }
.u2-toast .u2-btn-sm { flex-shrink: 0; }
.u2-toast .u2-ic { width: 32px; height: 32px; color: var(--tx3); }
@keyframes u2-toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---------------------------------------------------------------- dialog */

.u2-scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 96px 16px 32px;
  overflow-y: auto;
  background: rgba(5, 6, 12, .7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.u2-dlg {
  position: relative;
  width: 480px;
  max-width: 100%;
  padding: 32px 32px 24px;
  border: 1px solid var(--line-pop);
  border-radius: var(--r-dialog);
  background: var(--ink-pop);
  box-shadow: var(--shadow-dialog);
  animation: u2-dlg-in var(--t-dialog) var(--ease-out) both;
}
.u2-dlg-wide { width: 540px; }
@keyframes u2-dlg-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes u2-sheet-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.u2-dlg-x {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 38px;
  height: 38px;
  color: var(--tx3);
}
.u2-dlg-x:hover { background: var(--ink2); color: #fff; }
.u2-dlg-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.u2-dlg-brand img { display: block; width: 30px; height: 30px; border-radius: 50%; }
.u2-dlg-h {
  margin: 22px 0 0;
  padding-right: 32px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.03em;
  word-break: auto-phrase;
  text-wrap: balance;
}
.u2-dlg-brand + .u2-dlg-h { padding-right: 0; }
.u2-dlg-sub {
  margin: 8px 0 0;
  color: var(--tx2);
  font-size: 15px;
  line-height: 1.75;
  word-break: auto-phrase;
}
.u2-dlg-acts {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 26px;
}

.u2-prov {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: var(--r-field);
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.u2-prov-dc { background: var(--discord); color: #fff; }
.u2-prov-dc:hover { background: var(--discord-hi); color: #fff; }
.u2-prov-gg {
  border: 1px solid #DADCE0;
  background: #fff;
  color: #1F1F1F;
  font-weight: 500;
}
.u2-prov-gg:hover { background: #F6F7F9; color: #1F1F1F; }
.u2-pnote {
  margin: 8px 0 0;
  color: var(--tx3);
  font-size: 13px;
  text-align: center;
}
.u2-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 4px;
  color: var(--tx3);
  font-size: 12px;
}
.u2-or::before,
.u2-or::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--line);
}
.u2-fb {
  border-radius: var(--r-field);
  background: var(--ink1);
}
.u2-fb summary {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  color: var(--tx2);
  font-size: 14px;
  font-weight: 500;
  list-style: none;
  cursor: pointer;
}
.u2-fb summary::-webkit-details-marker { display: none; }
.u2-fb summary:hover { color: #fff; }
.u2-fb summary svg {
  margin-left: auto;
  color: var(--tx3);
  transition: transform var(--t-mid);
}
.u2-fb[open] summary svg { transform: rotate(180deg); }
.u2-fb-body {
  padding: 0 16px 16px;
  color: var(--tx2);
  font-size: 14px;
  line-height: 1.8;
}
.u2-fb-body code {
  padding: 1px 6px;
  border-radius: 6px;
  background: var(--ink2);
  color: #fff;
  font-family: var(--mono);
  font-size: .92em;
}
.u2-join {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid rgba(88, 101, 242, .4);
  border-radius: var(--r-field);
  background: rgba(88, 101, 242, .1);
}
.u2-join-copy {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 14px;
  line-height: 1.5;
}
.u2-join-copy b { display: block; font-weight: 600; }
.u2-join-copy span { display: block; color: var(--tx2); font-size: 13px; }
.u2-join a {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 16px;
  border-radius: var(--r-pill);
  background: var(--discord);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.u2-join a:hover { background: var(--discord-hi); color: #fff; }
.u2-legal {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 20px;
  font-size: 12px;
}
.u2-legal a { color: var(--tx3); text-decoration: none; }
.u2-legal a:hover { color: #fff; }

@media (max-width: 599px) {
  /* dialogs become bottom sheets (AuthMobile board) */
  .u2-scrim { padding: 0; align-items: flex-end; overflow: hidden; }
  .u2-dlg,
  .u2-dlg-wide {
    width: 100%;
    max-height: calc(100% - 60px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 26px 20px calc(20px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    border-bottom: 0;
    animation-name: u2-sheet-in;
  }
  .u2-dlg-x { top: 12px; right: 12px; }
  .u2-dlg-h { margin-top: 16px; font-size: 24px; }
  .u2-dlg-sub { font-size: 14px; }
  .u2-prov { height: 52px; font-size: 15px; }
  .u2-dlg-acts .u2-btn { flex: 1 1 auto; }
  .u2-join { flex-wrap: wrap; }
  .u2-join a { width: 100%; justify-content: center; }
}

/* ---------------------------------------------------------------- shared value effects */
/* Accuracy tiers: same boundaries as the legacy leaderboardAccuracyMarkup and the Leaderboard board. */

.u2-fx { position: relative; display: inline-block; }
/* Performance Phase 2 (2026-10-25): a figure with a gradient (g1 to g3, the shine) has its text in a box
   of its own inside (.u2-fx-txt, made by core.fxText; a figure without one stays one box). The gradient
   is clipped to that text; the sparkles and the glow stay on the outer box. Sparkles twinkling inside a
   text-clipped gradient made the browser repaint the whole page every frame (a phone spent most of its
   time on it); outside it they twinkle without that. The look is the same: the inner box is the outer
   one's size, and the glow (filter) still covers text and sparkles. */
.u2-fx-txt { display: inline-block; }
.u2-fx-tint { color: #E9CFE0; }
.u2-fx-g1 > .u2-fx-txt {
  background: linear-gradient(90deg, #FF9BCB, #DDB5FF 50%, #86E3FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.u2-fx-g2 { filter: drop-shadow(0 0 5px rgba(150, 220, 255, .35)); }
.u2-fx-g2 > .u2-fx-txt {
  background: linear-gradient(90deg, #FF9BCB, #E6BFFF 45%, #7FE9FF 80%, #B6FFE6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.u2-fx-g3 { filter: drop-shadow(0 0 6px rgba(255, 220, 240, .45)); }
.u2-fx-g3 > .u2-fx-txt {
  background: linear-gradient(95deg, #FFE7A8, #FFB3D9 28%, #DDB5FF 54%, #7FE9FF 78%, #B6FFE6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.u2-fx-shine { filter: drop-shadow(0 0 8px rgba(255, 230, 250, .55)); }
.u2-fx-shine > .u2-fx-txt {
  background:
    linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .95) 45%, transparent 58%) 0 0 / 250% 100%,
    linear-gradient(95deg, #FFF1B8, #FFB3D9 26%, #D6ADFF 52%, #6FE6FF 76%, #B6FFE6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: u2-shine 3.2s ease-in-out infinite;
}
.u2-fx-sp1::after {
  content: "✦";
  position: absolute;
  right: -11px;
  top: -6px;
  font-size: 8px;
  color: #FFF2B8;
}
.u2-fx-sp2::before {
  content: "✦";
  position: absolute;
  left: -12px;
  top: -6px;
  font-size: 9px;
  color: #FFF2B8;
  text-shadow: 0 0 8px #fff;
}
.u2-fx-sp2::after {
  content: "✧";
  position: absolute;
  right: -12px;
  bottom: -6px;
  font-size: 10px;
  color: #9FF2FF;
  text-shadow: 0 0 8px #7FE9FF;
}
.u2-fx-tw::before,
.u2-fx-tw::after { animation: u2-twinkle 1.6s ease-in-out infinite; }
.u2-fx-tw::after { animation-delay: .8s; }
/* Two legacy steps the board does not draw: a soft glow (accuracy 94, plays 201) and the
   maximum (plays 2000). Declared after the base steps so their filter wins. */
.u2-fx-glow { filter: drop-shadow(0 0 7px rgba(170, 225, 255, .55)); }
.u2-fx-max {
  filter: drop-shadow(0 0 8px rgba(255, 230, 250, .75)) drop-shadow(0 0 16px rgba(127, 216, 255, .5));
}
.u2-fx-max::before,
.u2-fx-max::after { font-size: 12px; }
/* Off the screen a moving effect rests (core.fxText marks it), as the decorations' stage does; it
   moves again as it comes back. */
.u2-fx[data-fx-rest] > .u2-fx-txt,
.u2-fx[data-fx-rest]::before,
.u2-fx[data-fx-rest]::after { animation-play-state: paused; }
@keyframes u2-shine {
  0% { background-position: 120% 0, 0 0; }
  60%, 100% { background-position: -120% 0, 0 0; }
}
@keyframes u2-twinkle {
  0%, 100% { opacity: .35; transform: scale(.8); }
  50% { opacity: 1; transform: scale(1.15); }
}

.u2-supporter { color: var(--gold); }
.u2-supporter-mark { margin-left: 5px; color: var(--gold); }

.u2-ellip {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------------------------------------------------------------- band variants */

.u2-band-photo {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.u2-band-photo img {
  position: absolute;
  left: 0;
  top: -30%;
  width: 100%;
  height: 160%;
  object-fit: cover;
  filter: blur(64px) saturate(1.45);
  opacity: .85;
}
body[data-band="home"] { --band-h: 560px; }
body[data-band="home"] .u2-band-glow { display: none; }
body[data-band="home"] .u2-band-veil {
  background: linear-gradient(180deg, rgba(11, 13, 21, .45) 0%, rgba(11, 13, 21, .25) 40%,
    rgba(11, 13, 21, .8) 82%, var(--ink0) 100%);
}

/* ---------------------------------------------------------------- home (Home / HomeMobile boards) */

.u2-home-hero {
  min-height: calc(var(--band-h) - var(--header-h));
  display: flex;
  align-items: flex-end;
  gap: 32px;
  padding-bottom: 48px;
}
.u2-home-mark {
  display: block;
  flex-shrink: 0;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.u2-home-text { min-width: 0; padding-bottom: 4px; }
.u2-home-title {
  margin: 0;
  font-size: 68px;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.04em;
  white-space: nowrap;
}
.u2-home-tagline {
  margin: 12px 0 0;
  color: rgba(240, 241, 247, .82);
  font-size: 17px;
}
.u2-cta-dc {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  margin-top: 22px;
  padding: 0 24px 0 20px;
  border-radius: var(--r-pill);
  background: var(--discord);
  box-shadow: 0 10px 30px rgba(88, 101, 242, .45);
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 140ms, transform 140ms;
}
.u2-cta-dc:hover { background: var(--discord-hi); color: #fff; transform: translateY(-1px); }

.u2-home-body { padding-bottom: 120px; }

.u2-home-stats {
  display: flex;
  align-items: flex-end;
  gap: 64px;
  margin-top: 8px;
}
.u2-stat-v {
  font-size: 34px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -.03em;
}
.u2-stat-l { color: var(--tx2); }
.u2-progress { flex-shrink: 0; width: 300px; margin-left: auto; }
.u2-progress-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.u2-progress-head > span:first-child { color: var(--tx2); }
.u2-progress-head b { font-size: 18px; font-weight: 600; }
.u2-progress-head small { color: var(--tx3); font-size: inherit; }
.u2-progress-bar {
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 3px;
  background: var(--ink2);
}
.u2-progress-bar > i {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #FF8EC7, #B9A6FF, #7FE6FF);
}

.u2-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 72px;
  align-items: start;
  margin-top: 88px;
}
.u2-home-side {
  display: flex;
  flex-direction: column;
  gap: 64px;
}
.u2-home-sec { margin-top: 88px; }
.u2-sh {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 22px;
}
.u2-sh h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
}
.u2-sh a {
  margin-left: auto;
  color: var(--tx2);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.u2-sh a:hover { color: var(--tx); }
.u2-list { margin: 0; padding: 0; list-style: none; }
.u2-empty { margin: 0; padding: 8px 0; color: var(--tx2); }

/* Recent plays: one row, two arrangements (PC columns / phone stack) via grid areas. */
.u2-prow {
  display: grid;
  grid-template-columns: 36px 150px 44px minmax(0, 1fr) 92px 64px;
  grid-template-areas:
    "av nm jk ti ac wh"
    "av nm jk df ac wh";
  column-gap: 16px;
  align-items: center;
  margin: 0 -12px;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--tx);
  text-decoration: none;
}
.u2-prow:hover { background: var(--ink1); color: var(--tx); }
.u2-prow-jk { grid-area: jk; }
.u2-prow-ti { grid-area: ti; align-self: end; font-weight: 500; }
.u2-prow-meta { display: contents; }
.u2-prow-av { grid-area: av; }
.u2-prow-nm { grid-area: nm; font-weight: 500; }
.u2-prow-df {
  grid-area: df;
  align-self: start;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--tx2);
  font-size: 12px;
}
.u2-prow-ac { grid-area: ac; text-align: right; }
.u2-prow-wh { grid-area: wh; color: var(--tx3); font-size: 13px; text-align: right; white-space: nowrap; }
.u2-prow-av img,
.u2-prow-jk img { display: block; }
.u2-prow-av img,
.u2-prow-av .u2-avatar-fallback { width: 36px; height: 36px; border-radius: 50%; }
.u2-prow-jk img,
.u2-prow-jk .u2-jacket-fallback { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.u2-diff-dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--tx3);
}
.u2-prow-mini-av { display: none; }

.u2-mini {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 0 -10px;
  padding: 8px 10px;
  border-radius: 12px;
  color: var(--tx);
  text-decoration: none;
}
.u2-mini:hover { background: var(--ink1); color: var(--tx); }
.u2-mini img { display: block; }
.u2-mini img,
.u2-mini .u2-avatar-fallback,
.u2-mini .u2-jacket-fallback { width: 44px; height: 44px; object-fit: cover; }
.u2-mini.is-player img,
.u2-mini.is-player .u2-avatar-fallback { border-radius: 50%; }
.u2-mini.is-chart img,
.u2-mini.is-chart .u2-jacket-fallback { border-radius: 8px; }
.u2-mini-name { font-weight: 500; }
.u2-mini-sub { color: var(--tx2); font-size: 12px; }
.u2-mini-side { color: var(--tx3); font-size: 13px; white-space: nowrap; }

.u2-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 28px;
}
.u2-card { display: block; min-width: 0; color: var(--tx); text-decoration: none; }
.u2-card:hover { color: var(--tx); }
.u2-art {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 14px;
  transition: transform 200ms cubic-bezier(.2, .7, .2, 1), box-shadow 200ms;
}
.u2-card:hover .u2-art {
  transform: translateY(-3px);
  box-shadow: 0 14px 34px rgba(var(--acc-rgb), .35);
}
.u2-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.u2-art-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, .07), transparent 58%),
    linear-gradient(150deg, var(--ink2), var(--ink1));
  color: var(--tx4);
}
.u2-card-title { margin-top: 12px; font-weight: 600; }
.u2-card-sub { color: var(--tx2); font-size: 13px; }
.u2-card-meta { margin-top: 2px; color: var(--tx3); font-size: 12px; }
.u2-chart-sub { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; }
.u2-chart-sub > span:last-child:not(.u2-diff-dot) { overflow: hidden; text-overflow: ellipsis; }
.u2-hs { display: none; }

.u2-dc-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  padding: 40px 44px;
  overflow: hidden;
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 0%, rgba(140, 150, 255, .55), transparent 55%),
    linear-gradient(120deg, #4752C4, #5865F2 55%, #7983F5);
  color: #fff;
  text-decoration: none;
}
.u2-dc-card:hover { color: #fff; }
.u2-dc-head { display: flex; align-items: center; gap: 14px; }
.u2-dc-title { font-size: 30px; font-weight: 700; letter-spacing: -.03em; }
.u2-dc-copy { display: block; margin-top: 10px; color: rgba(255, 255, 255, .85); font-size: 16px; }
.u2-dc-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  border-radius: var(--r-pill);
  background: #fff;
  color: #3A44B5;
  font-size: 17px;
  font-weight: 700;
  white-space: nowrap;
}
.u2-dc-card:hover .u2-dc-go { background: #EEF0FF; }
.u2-comm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.u2-comm {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  height: 88px;
  padding: 0 22px;
  border-radius: 18px;
  background: var(--ink1);
  color: var(--tx);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 140ms;
}
.u2-comm:hover { background: #1A1E2E; color: #fff; }
.u2-comm-ic {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #fff;
}
.u2-comm > svg:last-child { flex-shrink: 0; margin-left: auto; color: var(--tx3); }

/* Tablet (no board): the PC composition in one column, cards in three columns. */
@media (max-width: 1099px) {
  .u2-home-mark { width: 128px; height: 128px; }
  .u2-home-title { font-size: 52px; }
  .u2-home-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px 24px; }
  .u2-progress { grid-column: 1 / -1; width: auto; margin: 8px 0 0; }
  .u2-home-grid { grid-template-columns: minmax(0, 1fr); gap: 64px; margin-top: 72px; }
  .u2-home-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
  /* Run 6: the nine recent plays balance the two columns of the wide layout; in one column the
     list keeps its seven (the phone board keeps five, below). */
  .u2-plays > li:nth-child(n + 8) { display: none; }
  .u2-home-sec { margin-top: 72px; }
  .u2-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}
@media (max-width: 899px) {
  .u2-dc-card { grid-template-columns: minmax(0, 1fr); gap: 20px; padding: 32px; }
  .u2-dc-title { font-size: 26px; }
  .u2-dc-go { justify-self: start; }
  .u2-comm-grid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .u2-comm { height: 72px; }
}

/* Phone (HomeMobile board). */
@media (max-width: 599px) {
  body[data-band="home"] { --band-h: 540px; }
  .u2-band-photo img {
    left: -30%;
    top: -10%;
    width: 160%;
    height: 120%;
    filter: blur(50px) saturate(1.45);
  }
  body[data-band="home"] .u2-band-veil {
    background: linear-gradient(180deg, rgba(11, 13, 21, .45), rgba(11, 13, 21, .2) 35%,
      rgba(11, 13, 21, .8) 78%, var(--ink0));
  }
  /* Side padding only: the hero keeps its own bottom padding. */
  .u2-home .u2-wrap { width: auto; margin: 0; padding-left: 20px; padding-right: 20px; }
  .u2-home-hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0;
    padding-bottom: 28px;
  }
  .u2-home-mark { width: 112px; height: 112px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
  .u2-home-text { padding: 0; }
  /* Below about 345 px the title follows the screen (WebKit drew it wider than its box at 320 px). */
  .u2-home-title { margin-top: 18px; font-size: min(38px, 11vw); line-height: 1.05; }
  .u2-home-tagline { margin-top: 10px; font-size: 14px; }
  .u2-cta-dc { display: flex; justify-content: center; margin-top: 20px; padding: 0 20px; }
  .u2-home-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .u2-stat-v { font-size: 26px; }
  .u2-stat-l { font-size: 13px; }
  .u2-progress { margin-top: 2px; font-size: 13px; }
  .u2-progress-head b { font-size: inherit; }
  .u2-progress-bar { margin-top: 6px; }
  .u2-home-grid { gap: 56px; margin-top: 56px; }
  .u2-home-side { display: flex; gap: 56px; }
  .u2-home-sec { margin-top: 56px; }
  .u2-sh { margin-bottom: 12px; }
  .u2-sh h2 { font-size: 21px; }
  .u2-sh a { display: inline-flex; align-items: center; min-height: 44px; }
  .u2-prow {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    grid-template-areas:
      "jk ti ac"
      "jk mt wh";
    column-gap: 12px;
    min-height: 64px;
    margin: 0 -20px;
    padding: 6px 20px;
    border-radius: 0;
  }
  .u2-prow-jk img,
  .u2-prow-jk .u2-jacket-fallback { width: 40px; height: 40px; }
  .u2-prow-meta {
    grid-area: mt;
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    color: var(--tx2);
    font-size: 12px;
    white-space: nowrap;
  }
  .u2-prow-av { display: none; }
  .u2-prow-mini-av { display: block; flex-shrink: 0; }
  .u2-prow-mini-av img,
  .u2-prow-mini-av .u2-avatar-fallback { display: grid; width: 16px; height: 16px; border-radius: 50%; font-size: 9px; }
  .u2-prow-nm { font-weight: 400; }
  .u2-prow-df { color: inherit; flex-shrink: 0; }
  .u2-prow-ti { align-self: auto; }
  .u2-prow-ac { align-self: end; }
  .u2-prow-wh { align-self: start; font-size: 12px; }
  .u2-plays > li:nth-child(n + 6) { display: none; }
  .u2-mini {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 64px;
    margin: 0 -20px;
    padding: 6px 20px;
    border-radius: 0;
  }
  .u2-mini img,
  .u2-mini .u2-avatar-fallback,
  .u2-mini .u2-jacket-fallback { width: 40px; height: 40px; }
  .u2-home-added-list { display: none; }
  .u2-cards,
  .u2-hs {
    display: flex;
    gap: 14px;
    margin: 0 -20px;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .u2-cards::-webkit-scrollbar,
  .u2-hs::-webkit-scrollbar { display: none; }
  .u2-cards .u2-card,
  .u2-hs .u2-card { flex: 0 0 136px; }
  .u2-cards .u2-art,
  .u2-hs .u2-art { border-radius: 12px; }
  .u2-cards .u2-card-title,
  .u2-hs .u2-card-title { margin-top: 8px; }
  .u2-cards .u2-card-meta,
  .u2-hs .u2-card-meta { margin-top: 0; }
  .u2-dc-card { padding: 24px 22px; border-radius: 22px; }
  .u2-dc-title { font-size: 20px; letter-spacing: -.02em; }
  .u2-dc-copy { margin-top: 8px; font-size: 14px; }
  .u2-dc-go { justify-self: stretch; height: 48px; }
  .u2-comm-grid { gap: 0; margin-top: 12px; }
  .u2-comm {
    height: 60px;
    margin: 0 -20px;
    padding: 0 20px;
    border-radius: 0;
    background: transparent;
    font-weight: 500;
  }
  .u2-comm-ic { width: 40px; height: 40px; border-radius: 11px; }
}
@media (min-width: 600px) {
  .u2-home-added-scroll { display: none; }
}

/* ---------------------------------------------------------------- leaderboard (Leaderboard / LeaderboardMobile boards) */

.u2-band-mosaic {
  position: absolute;
  inset: -60px;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  filter: blur(56px) saturate(1.5);
  opacity: .7;
}
.u2-band-mosaic img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.u2-band-mosaic ~ .u2-band-glow { display: none; }
body[data-band="mosaic"] .u2-band-veil {
  background: linear-gradient(180deg, rgba(11, 13, 21, .5) 0%, rgba(11, 13, 21, .25) 45%,
    rgba(11, 13, 21, .8) 85%, var(--ink0) 100%);
}

.u2-lb-head {
  position: relative;
  min-height: calc(var(--band-h) - var(--header-h));
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 36px;
}
.u2-lb-modes {
  display: flex;
  align-items: baseline;
  gap: 30px;
  height: 62px;
}
.u2-lb-modes button {
  appearance: none;
  flex-shrink: 0;
  position: relative;
  padding: 0 0 14px;
  border: 0;
  background: transparent;
  color: rgba(240, 241, 247, .42);
  font-family: var(--font);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.05;
  white-space: nowrap;
  cursor: pointer;
  transition: font-size 220ms cubic-bezier(.2, .7, .2, 1), color var(--t-mid);
}
.u2-lb-modes button:hover { color: rgba(240, 241, 247, .78); }
.u2-lb-modes button[aria-selected="true"] {
  color: #fff;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -.03em;
  cursor: default;
}
.u2-lb-modes button::after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: rgb(var(--acc-rgb));
  transition: width 220ms cubic-bezier(.2, .7, .2, 1);
}
.u2-lb-modes button[aria-selected="true"]::after { width: 28px; }
.u2-lb-tools {
  display: flex;
  gap: 8px;
  margin-left: auto;
  padding-bottom: 4px;
}
.u2-lb-q {
  width: 220px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-pill);
  background: rgba(11, 13, 21, .45);
  color: var(--tx);
  font: inherit;
}
.u2-lb-q::placeholder { color: var(--tx3); }
.u2-lb-me,
.u2-lb-more {
  height: 40px;
  padding: 0 16px;
  font-size: 14px;
}
.u2-lb-me { border-color: rgba(255, 255, 255, .22); background: rgba(11, 13, 21, .45); }
.u2-lb-more { border-color: var(--line); }

.u2-lb-body { padding: 24px 0 120px; }
.u2-lb-count { margin: 0 0 8px; color: var(--tx3); font-size: 13px; }
.u2-lb-count:empty { display: none; }
.u2-lb-list { margin: 0; padding: 0; list-style: none; }
.u2-lb-row {
  display: grid;
  grid-template-columns: 40px 52px minmax(0, 1fr) 170px 120px 110px 140px;
  gap: 20px;
  align-items: center;
  margin: 0 -16px;
  padding: 12px 16px;
  border-radius: 14px;
  color: var(--tx);
  text-decoration: none;
  transition: background-color var(--t-fast) cubic-bezier(.2, .7, .2, 1), box-shadow 400ms ease;
}
.u2-lb-row:hover { background: rgba(var(--c), .14); color: var(--tx); }
.u2-lb-row.is-me { box-shadow: inset 0 0 0 1px rgba(var(--acc-rgb), .45); }
.u2-lb-row.is-flash { box-shadow: inset 0 0 0 2px rgba(var(--acc-rgb), .9), 0 0 0 4px rgba(var(--acc-rgb), .18); }
.u2-lb-rank { color: var(--tx3); font-size: 15px; text-align: right; }
.u2-lb-av img,
.u2-lb-av .u2-avatar-fallback {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}
.u2-lb-av img { display: block; background: var(--ink2); }
.u2-lb-av .u2-avatar-fallback { font-size: 18px; }
.u2-lb-who { min-width: 0; }
.u2-lb-name { font-size: 16px; font-weight: 500; }
.u2-lb-row.is-private .u2-lb-name { color: var(--tx2); }
.u2-lb-under { display: none; }
.u2-lb-v { color: var(--tx2); text-align: right; white-space: nowrap; }
.u2-lb-main { color: var(--tx); font-size: 21px; font-weight: 700; }
.u2-lb-dim { filter: saturate(.75) brightness(.9); }
.u2-lb-row.is-private .u2-lb-main { color: var(--tx2); font-size: 16px; font-weight: 500; }
.u2-lb-more-wrap { margin-top: 32px; }
.u2-lb-empty { padding: 24px 0; color: var(--tx2); }
.u2-lb-empty p { margin: 0 0 16px; }

/* Under 1100px the switch and the search no longer share a line: the search moves below the band. */
@media (max-width: 1099px) {
  .u2-lb-head { display: block; min-height: 0; padding-bottom: 0; }
  .u2-lb-modes-area {
    display: flex;
    align-items: flex-end;
    min-height: calc(var(--band-h) - var(--header-h));
    padding-bottom: 36px;
  }
  .u2-lb-tools { margin: 0; padding: 0 0 4px; }
  .u2-lb-q { flex: 0 1 360px; min-width: 0; }
}

/* Tablet: the phone row with all three other values under the name. */
@media (max-width: 959px) {
  .u2-lb-row {
    grid-template-columns: 32px 48px minmax(0, 1fr) auto;
    gap: 14px;
    min-height: 76px;
    padding: 10px 16px;
  }
  .u2-lb-av img,
  .u2-lb-av .u2-avatar-fallback { width: 48px; height: 48px; }
  .u2-lb-dim { display: none; }
  .u2-lb-under {
    display: flex;
    gap: 14px;
    color: var(--tx2);
    font-size: 12px;
    white-space: nowrap;
    opacity: .9;
  }
  .u2-lb-main { font-size: 18px; }
}

/* Phone (LeaderboardMobile board). */
@media (max-width: 599px) {
  body[data-band="mosaic"] { --band-h: 230px; }
  .u2-band-mosaic {
    inset: -40px;
    grid-template-columns: repeat(5, 1fr);
    filter: blur(44px) saturate(1.5);
  }
  .u2-lb .u2-wrap { width: auto; margin: 0; padding-left: 20px; padding-right: 0; }
  .u2-lb-modes-area { padding-bottom: 22px; }
  .u2-lb-modes {
    gap: 18px;
    height: 56px;
    overflow-x: auto;
    padding-right: 20px;
    scrollbar-width: none;
  }
  .u2-lb-modes::-webkit-scrollbar { display: none; }
  .u2-lb-modes button { padding: 10px 0 12px; font-size: 17px; letter-spacing: -.01em; }
  /* The strip scrolls, so it clips anything outside a tab: draw the focus ring inside. */
  .u2-lb-modes button:focus-visible { outline-offset: -2px; border-radius: 6px; }
  .u2-lb-modes button[aria-selected="true"] { font-size: 30px; }
  .u2-lb-modes button[aria-selected="true"]::after { width: 22px; }
  .u2-lb-tools { padding: 8px 20px 12px 0; }
  .u2-lb-q {
    flex: 1 1 auto;
    height: 44px;
    border-color: var(--line);
    background: var(--ink1);
  }
  .u2-lb-me { height: 44px; padding: 0 18px; border-color: var(--line); background: transparent; }
  .u2-lb-body { padding: 0 0 64px; }
  .u2-lb .u2-lb-body { padding-left: 0; }
  .u2-lb-count { padding: 0 20px; }
  .u2-lb-row {
    grid-template-columns: 26px 46px minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 72px;
    margin: 0;
    padding: 10px 20px;
    border-radius: 0;
  }
  .u2-lb-row.is-me { margin: 0 8px; padding: 10px 12px; border-radius: 14px; }
  .u2-lb-rank { font-size: 14px; }
  .u2-lb-av img,
  .u2-lb-av .u2-avatar-fallback { width: 46px; height: 46px; }
  .u2-lb-name { font-size: 15px; }
  .u2-lb-under > :nth-child(3) { display: none; }
  .u2-lb-more-wrap { margin: 24px 20px 0; }
  .u2-lb-more { width: 100%; height: 44px; }
  .u2-lb-empty { padding: 24px 20px; }
}

/* ---------------------------------------------------------------- song list (SongList / SongListMobile boards) */

.u2-band-mosaic.is-jackets {
  grid-template-columns: repeat(8, 1fr);
  filter: blur(52px) saturate(1.4);
  opacity: .75;
}

.u2-sl-head {
  position: relative;
  min-height: calc(var(--band-h) - var(--header-h));
  display: flex;
  align-items: flex-end;
  gap: 24px;
  padding-bottom: 36px;
}
.u2-sl-sorts {
  display: flex;
  align-items: baseline;
  gap: 30px;
  height: 62px;
}
.u2-sl-sort {
  appearance: none;
  flex-shrink: 0;
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 0 14px;
  border: 0;
  background: transparent;
  color: rgba(240, 241, 247, .42);
  font-family: var(--font);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.05;
  white-space: nowrap;
  cursor: pointer;
  transition: font-size 220ms cubic-bezier(.2, .7, .2, 1), color var(--t-mid);
}
.u2-sl-sort:hover { color: rgba(240, 241, 247, .78); }
.u2-sl-sort[aria-pressed="true"],
.u2-sl-more.is-on {
  color: #fff;
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -.03em;
}
.u2-sl-sort::after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: rgb(var(--acc-rgb));
  transition: width 220ms cubic-bezier(.2, .7, .2, 1);
}
.u2-sl-sort[aria-pressed="true"]::after,
.u2-sl-more.is-on::after { width: 28px; }
.u2-sl-arrow { width: .42em; height: .42em; opacity: .7; transition: transform 160ms; }
.u2-sl-arrow.is-up { transform: rotate(180deg); }
.u2-sl-menu { min-width: 200px; padding: 6px; border-radius: 14px; }
.u2-sl-mi { justify-content: space-between; height: 42px; padding: 0 14px; color: var(--tx2); font-size: 15px; }
.u2-sl-mi[aria-checked="true"] { color: #fff; }
.u2-sl-mi-hint { color: var(--tx3); font-size: 12px; }

.u2-sl-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-bottom: 6px;
}
.u2-sl-q-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 340px;
  min-width: 0;
  height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r-pill);
  background: rgba(11, 13, 21, .45);
  color: var(--tx3);
}
.u2-sl-q-wrap:focus-within { border-color: rgba(var(--acc-rgb), .6); }
.u2-sl-q {
  flex: 1 1 auto;
  width: 0;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--tx);
  font: inherit;
  font-size: 15px;
  outline: none;
}
.u2-sl-q::placeholder { color: var(--tx3); }
.u2-sl-q-wrap:has(.u2-sl-q:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }

.u2-sl-main { position: relative; z-index: 1; padding: 24px 0 120px; }
.u2-sl-bar { display: flex; align-items: center; gap: 40px; }
.u2-sl-diffs { display: flex; align-items: center; gap: 32px; }
.u2-sl-diff {
  appearance: none;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--tx2);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.u2-sl-diff:hover { color: var(--tx); }
.u2-sl-diff[aria-pressed="true"] { color: var(--tx); border-bottom-color: rgb(var(--acc-rgb)); }
.u2-sl-dot { width: 10px; height: 10px; border-radius: 3px; }
.u2-sl-ftoggle {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tx2);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.u2-sl-ftoggle:hover,
.u2-sl-ftoggle[aria-expanded="true"] { color: var(--tx); }
.u2-sl-ftoggle.is-text { margin-left: auto; }
.u2-sl-ftoggle.is-round { display: none; }
.u2-sl-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 11px;
  background: rgba(var(--acc-rgb), .22);
  color: #fff;
  font-size: 12px;
}
.u2-sl-frow { margin-top: 16px; padding: 12px; border-radius: 16px; background: var(--ink1); }
.u2-sl-fields { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.u2-sl-fi {
  height: 40px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--ink0);
  color: var(--tx);
  font: inherit;
  font-size: 14px;
}
.u2-sl-fi::placeholder { color: var(--tx3); }
.u2-sl-fi:focus { border-color: rgba(var(--acc-rgb), .6); outline: none; }
.u2-sl-fi:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
#u2-sl-artist,
#u2-sl-mapper { flex: 1 1 160px; min-width: 0; }
.u2-sl-range-f { display: inline-flex; align-items: center; gap: 8px; color: var(--tx3); }
.u2-sl-range-l { min-width: 1em; }
.u2-sl-num { width: 72px; }
.u2-sl-select-wrap { position: relative; display: inline-flex; align-items: center; }
.u2-sl-select { appearance: none; padding-right: 34px; cursor: pointer; }
.u2-sl-select-wrap svg { position: absolute; right: 12px; color: var(--tx3); pointer-events: none; }
.u2-sl-fclear {
  appearance: none;
  min-height: 40px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--tx2);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.u2-sl-fclear:hover { color: var(--tx); }
.u2-sl-ferr { margin: 0; color: var(--bad-tx); font-size: 13px; }
.u2-sl-ferr:empty { display: none; }
.u2-sl-frow.has-error .u2-sl-ferr { margin-top: 10px; }
.u2-sl-tokens { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 24px; margin-top: 10px; }
.u2-sl-token { display: inline-flex; align-items: center; gap: 4px; color: var(--tx2); font-size: 14px; }
.u2-sl-token button {
  appearance: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--tx3);
  cursor: pointer;
}
.u2-sl-token button:hover { background: var(--ink2); color: var(--tx); }
.u2-sl-count {
  margin: 20px 0 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  color: var(--tx3);
  text-align: right;
}
.u2-sl-count:empty { visibility: hidden; }
.u2-sl-empty { margin-top: 56px; color: var(--tx2); font-size: 16px; }
.u2-sl-empty p { margin: 0 0 16px; }

.u2-sl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.u2-sl-card {
  --p: var(--cover-theme-primary-rgb, 150, 120, 205);
  --s: var(--cover-theme-secondary-rgb, 127, 216, 255);
  --d: var(--cover-theme-dark-rgb, 24, 26, 44);
  position: relative;
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 24px;
  min-height: 188px;
  padding: 20px;
  border: 1px solid rgba(var(--p), .22);
  border-radius: 20px;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 16%, rgba(var(--p), .30), transparent 46%),
    radial-gradient(circle at 94% 86%, rgba(var(--s), .12), transparent 46%),
    linear-gradient(145deg, rgba(var(--d), .96), #0E111C);
  color: var(--tx);
  transition: border-color var(--t-mid), box-shadow 200ms, transform 200ms cubic-bezier(.2, .7, .2, 1);
}
.u2-sl-card:hover,
.u2-sl-card:focus-within {
  border-color: rgba(var(--p), .5);
  box-shadow: 0 14px 34px rgba(var(--d), .5);
}
.u2-sl-card:hover { transform: translateY(-2px); }
.u2-sl-card.is-skel { border-color: var(--line); background: var(--ink1); }
.u2-sl-cv {
  display: block;
  width: 148px;
  height: 148px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .3), 0 0 22px rgba(var(--p), .12);
}
.u2-sl-cv img { display: block; width: 100%; height: 100%; object-fit: cover; }
.u2-sl-cv-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--ink2), var(--ink1));
  color: var(--tx3);
}
.u2-sl-body { display: flex; flex-direction: column; min-width: 0; }
.u2-sl-title {
  color: var(--tx);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.3;
  text-decoration: none;
}
.u2-sl-title:hover { color: #fff; }
/* The title link covers the whole card; the difficulty links sit above it. */
.u2-sl-title::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: 20px; }
.u2-sl-title:focus-visible { outline: none; }
.u2-sl-title:focus-visible::after { outline: 2px solid var(--cyan); outline-offset: -2px; }
.u2-sl-sub { color: rgba(226, 234, 249, .76); font-size: 13px; }
.u2-sl-slash { margin: 0 6px; opacity: .6; }
.u2-sl-chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.u2-sl-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .06);
  color: #F0F1F7;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.u2-sl-chip:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.u2-sl-chip i { display: inline-block; width: 7px; height: 7px; border-radius: 2px; }
.u2-sl-chip-star { color: rgba(240, 241, 247, .6); }
.u2-sl-foot {
  display: flex;
  gap: 14px;
  margin-top: auto;
  padding-top: 12px;
  color: rgba(226, 234, 249, .6);
  font-size: 13px;
}
.u2-sl-gap { display: inline-block; width: 1em; }
.u2-sl-plays { margin-left: auto; white-space: nowrap; }
.u2-sl-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 48px;
}
.u2-sl-pg { height: 40px; padding: 0 16px; border-color: var(--line); font-size: 14px; }
.u2-sl-pg:disabled { border-color: transparent; }
.u2-sl-page { color: var(--tx2); font-size: 14px; }

/* Under 1100px the sort switch and the search no longer share a line: the search moves below the band. */
@media (max-width: 1099px) {
  .u2-sl-head { display: block; min-height: 0; padding-bottom: 0; }
  .u2-sl-sorts-area {
    display: flex;
    align-items: flex-end;
    min-height: calc(var(--band-h) - var(--header-h));
    padding-bottom: 36px;
  }
  .u2-sl-search { margin: 0; padding: 0 0 4px; }
  .u2-sl-q-wrap { width: min(420px, 100%); }
}

/* Tablet: one card per row (the PC card), difficulty tabs scroll sideways when needed. */
@media (max-width: 959px) {
  .u2-sl-grid { grid-template-columns: minmax(0, 1fr); }
  .u2-sl-bar { gap: 24px; }
  .u2-sl-diffs { flex: 1 1 auto; min-width: 0; gap: 24px; overflow-x: auto; scrollbar-width: none; }
  .u2-sl-diffs::-webkit-scrollbar { display: none; }
}

/* Phone (SongListMobile board). */
@media (max-width: 599px) {
  body[data-band="mosaic"][data-band-variant="jackets"] { --band-h: 250px; }
  .u2-band-mosaic.is-jackets {
    inset: -40px;
    grid-template-columns: repeat(5, 1fr);
    filter: blur(44px) saturate(1.4);
  }
  .u2-sl .u2-wrap { width: auto; margin: 0; padding-left: 0; padding-right: 0; }
  .u2-sl-sorts-area { padding: 0 0 20px 20px; }
  .u2-sl-sorts {
    gap: 18px;
    height: 56px;
    overflow-x: auto;
    padding-right: 20px;
    scrollbar-width: none;
  }
  .u2-sl-sorts::-webkit-scrollbar { display: none; }
  .u2-sl-sort { gap: 6px; padding: 10px 0 12px; font-size: 17px; letter-spacing: 0; }
  .u2-sl-sort[aria-pressed="true"],
  .u2-sl-more.is-on { font-size: 30px; }
  .u2-sl-sort[aria-pressed="true"]::after,
  .u2-sl-more.is-on::after { width: 22px; }
  .u2-sl-sort:focus-visible { outline-offset: -2px; border-radius: 6px; }
  .u2-sl-search { padding: 12px 20px 4px; }
  .u2-sl-q-wrap {
    flex: 1 1 auto;
    width: auto;
    height: 46px;
    padding: 0 16px;
    border-color: var(--line);
    background: var(--ink1);
  }
  .u2-sl-q { font-size: 16px; }
  .u2-sl-ftoggle.is-round {
    position: relative;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--ink1);
    color: var(--tx);
  }
  .u2-sl-ftoggle.is-round .u2-sl-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    background: rgb(var(--acc-rgb));
    color: var(--on-pink);
  }
  .u2-sl-ftoggle.is-text { display: none; }
  .u2-sl-main { padding: 0 0 64px; }
  .u2-sl-bar { display: block; }
  .u2-sl-diffs { gap: 22px; padding: 0 20px; }
  .u2-sl-diff { font-size: 15px; gap: 8px; }
  .u2-sl-dot { width: 9px; height: 9px; }
  .u2-sl-frow { margin: 8px 16px 0; }
  .u2-sl-fields > * { flex: 1 1 100%; }
  /* Number fields share the line; width 0 lets them shrink below the browser's default size. */
  .u2-sl-range-f { min-width: 0; }
  .u2-sl-range-f .u2-sl-num { flex: 1 1 0; width: 0; min-width: 0; }
  .u2-sl-select-wrap .u2-sl-select { width: 100%; }
  .u2-sl-fclear { flex: 0 0 auto; margin-left: auto; }
  .u2-sl-tokens { padding: 0 20px; }
  .u2-sl-count { margin: 0; padding: 8px 20px 0; border-bottom: 0; font-size: 13px; }
  .u2-sl-empty { margin: 32px 20px 0; }
  .u2-sl-grid { gap: 12px; margin: 8px 0 0; padding: 0 16px; }
  .u2-sl-card {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 16px;
    min-height: 162px;
    padding: 16px;
    border-radius: 18px;
  }
  .u2-sl-title::after { border-radius: 18px; }
  .u2-sl-cv { width: 96px; height: 96px; align-self: center; border-radius: 12px; }
  .u2-sl-title { font-size: 16px; letter-spacing: -.01em; }
  .u2-sl-sub { font-size: 12px; color: rgba(226, 234, 249, .72); }
  .u2-sl-chips { gap: 5px; margin-top: 8px; }
  .u2-sl-chip { gap: 5px; height: 26px; padding: 0 8px; border-radius: 7px; background: rgba(255, 255, 255, .07); }
  .u2-sl-foot { padding-top: 8px; font-size: 12px; color: rgba(226, 234, 249, .55); }
  .u2-sl-range { display: none; }
  .u2-sl-plays { margin-left: 0; }
  .u2-sl-pager { gap: 12px; margin: 24px 20px 0; }
  .u2-sl-pg { height: 44px; }
}

/* ---------------------------------------------------------------- song detail (SongDetail / SongDetailMobile boards) */

body[data-band="photo"] { --band-h: 460px; }
body[data-band="photo"] .u2-band-photo img {
  left: 0;
  top: -40%;
  width: 100%;
  height: 180%;
  filter: blur(70px) saturate(1.4);
  opacity: .8;
}
body[data-band="photo"] .u2-band-photo ~ .u2-band-glow { display: none; }
body[data-band="photo"] .u2-band-veil {
  background: linear-gradient(180deg, rgba(11, 13, 21, .45) 0%, rgba(11, 13, 21, .3) 40%,
    rgba(11, 13, 21, .85) 82%, var(--ink0) 100%);
}
/* Run 6 (field report: the blurred jacket ended in a straight line in the middle of the page): the
   song page's band follows the hero's real bottom (a long title, a narrow screen) and goes on below
   it for a soft tail (core.bandFollow sets --band-paint-h and this class). The blurred picture
   fades out on its own (a mask) instead of being cut at the band's edge, and the veil keeps the
   hero as dark as before, then thins out as the picture fades, so the page continues into the band
   without an edge. The picture is not stretched: it keeps its size and is only allowed to fade. */
body.u2-band-tail[data-band="photo"] .u2-band-photo {
  -webkit-mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 240px), rgba(0, 0, 0, .72) calc(100% - 170px),
    rgba(0, 0, 0, .38) calc(100% - 100px), rgba(0, 0, 0, .12) calc(100% - 40px), transparent 100%);
  mask-image: linear-gradient(180deg, #000 0, #000 calc(100% - 240px), rgba(0, 0, 0, .72) calc(100% - 170px),
    rgba(0, 0, 0, .38) calc(100% - 100px), rgba(0, 0, 0, .12) calc(100% - 40px), transparent 100%);
}
/* The picture keeps its designed place and size (measured on --band-h, not on the taller painted band);
   it only reaches further down when the band paints past its lower edge (object-fit: cover keeps
   its proportions). */
body.u2-band-tail[data-band="photo"] .u2-band-photo img {
  top: calc(var(--band-h) * -.4);
  height: max(calc(var(--band-h) * 1.8), calc(100% + var(--band-h) * .4));
}
body.u2-band-tail[data-band="photo"] .u2-band-veil {
  background: linear-gradient(180deg, rgba(11, 13, 21, .45) 0, rgba(11, 13, 21, .3) calc(var(--band-h) * .4),
    rgba(11, 13, 21, .74) calc(var(--band-h) * .82), rgba(11, 13, 21, .82) calc(100% - 140px), rgba(11, 13, 21, .9) 100%);
}

.u2-sd-page { --c: var(--cover-theme-primary-rgb, 200, 90, 160); --c-ui: var(--c); }
/* The legacy "back" (decision A-6): a quiet link on the band's empty top edge. The hero below
   gives up the same height, so it still ends on the band's bottom edge. */
.u2-sd-backbar { height: 52px; display: flex; align-items: flex-end; }
.u2-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  min-height: 40px;
  margin-left: -10px;
  padding: 0 12px 0 8px;
  border-radius: 10px;
  color: var(--tx2);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.u2-back svg { flex-shrink: 0; transform: rotate(90deg); }
.u2-back-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u2-back:hover { color: var(--tx); background: rgba(255, 255, 255, .06); }
.u2-sd-head {
  min-height: calc(var(--band-h) - var(--header-h));
  display: flex;
  align-items: flex-end;
  gap: 36px;
  padding-bottom: 36px;
}
.u2-sd-backbar + .u2-sd-head { min-height: calc(var(--band-h) - var(--header-h) - 52px); }
.u2-sd-jk {
  position: relative;
  flex-shrink: 0;
  display: block;
  width: 208px;
  height: 208px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .5);
}
.u2-sd-jk img { display: block; width: 100%; height: 100%; object-fit: cover; }
.u2-sd-jk-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, var(--ink2), var(--ink1));
  color: var(--tx3);
}
/* SongTools board: the image request sits on the jacket and shows on hover or focus. */
.u2-sd-jkb {
  appearance: none;
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: rgba(11, 13, 21, .78);
  backdrop-filter: blur(8px);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  transition: opacity 140ms;
}
.u2-sd-jk:hover .u2-sd-jkb,
.u2-sd-jkb:focus-visible { opacity: 1; }
@media (hover: none) { .u2-sd-jkb { opacity: 1; } }
.u2-sd-info { flex: 1 1 auto; min-width: 0; padding-bottom: 2px; }
.u2-sd-h1 {
  margin: 0;
  font-size: 64px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.u2-sd-sub { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-top: 10px; color: rgba(240, 241, 247, .82); }
/* Run 6: five difficulties never run past the screen: the row wraps (they all stay on screen and
   pressable) instead of being cut or scrolled sideways. */
.u2-sd-diffs { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 26px; min-height: 42px; margin-top: 22px; }
.u2-sd-diff {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 0 0 12px;
  color: rgba(240, 241, 247, .45);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: font-size 220ms cubic-bezier(.2, .7, .2, 1), color var(--t-mid);
}
.u2-sd-diff:hover,
.u2-sd-diff.is-pending { color: rgba(240, 241, 247, .8); }
.u2-sd-diff[aria-current="page"] {
  color: #fff;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  cursor: default;
}
.u2-sd-diff::after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 0;
  width: 0;
  height: 3px;
  border-radius: 2px;
  background: var(--dc);
  transition: width 220ms cubic-bezier(.2, .7, .2, 1);
}
.u2-sd-diff[aria-current="page"]::after { width: 24px; }
.u2-sd-dot { display: inline-block; flex-shrink: 0; width: 9px; height: 9px; border-radius: 2px; align-self: center; background: var(--dc); }
.u2-sd-diff-star { color: rgba(240, 241, 247, .7); font-size: .62em; font-weight: 500; }

.u2-sd-radar { flex-shrink: 0; display: flex; flex-direction: column; align-items: center; }
.u2-sd-radar-stage { position: relative; width: 248px; height: 204px; }
.u2-sd-rl { position: absolute; color: rgba(240, 241, 247, .75); font-size: 12px; white-space: nowrap; }
.u2-sd-rl b { margin-left: 4px; color: #fff; font-size: 15px; font-weight: 700; }
.u2-sd-rl.is-tech { left: 0; top: 0; }
.u2-sd-rl.is-acc { right: 0; top: 0; }
.u2-sd-rl.is-pass { left: 50%; bottom: -14px; transform: translateX(-50%); }
.u2-sd-base {
  position: absolute;
  left: 50%;
  top: 44%;
  z-index: 3;
  transform: translate(-50%, -50%) rotate(-8deg);
  color: #F5EB36;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.03em;
  text-shadow: 0 0 10px rgba(0, 0, 0, .5);
  white-space: nowrap;
}
.u2-sd-tri { position: absolute; left: 30px; top: 30px; width: 188px; height: 166px; overflow: visible; }
.u2-sd-tri-outer {
  fill: none;
  stroke: rgba(246, 250, 255, .88);
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 5.5 6.5;
}
.u2-sd-tri-radial { stroke: rgba(246, 250, 255, .13); stroke-width: 1.1; }
.u2-sd-tri-glow { fill: rgba(106, 255, 181, .08); stroke: rgba(121, 236, 181, .34); stroke-width: 7; stroke-linejoin: round; }
.u2-sd-tri-fill { fill: rgba(112, 224, 165, .2); stroke: rgba(178, 116, 255, .9); stroke-width: 2.25; stroke-linejoin: round; }
.u2-sd-rq {
  appearance: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  margin-top: 22px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: rgba(11, 13, 21, .55);
  color: rgba(240, 241, 247, .8);
  font: inherit;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
}
.u2-sd-rq:hover { background: rgba(11, 13, 21, .8); color: #fff; }

.u2-sd-stats-row { display: flex; align-items: center; gap: 56px; padding-top: 8px; }
.u2-sd-stats { display: flex; align-items: center; gap: 56px; margin: 0; }
.u2-sd-stat { display: flex; flex-direction: column-reverse; }
.u2-sd-stat dt { color: var(--tx2); }
.u2-sd-stat dd { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; white-space: nowrap; }
.u2-sd-stats-row .u2-sd-radar { display: none; }
.u2-sd-actions { display: flex; gap: 8px; margin-left: auto; }
.u2-sd-actions .u2-btn { height: 40px; padding: 0 16px; font-size: 14px; }
.u2-sd-icbtn { width: 40px; padding: 0 !important; }
.u2-sd-fav[aria-pressed="true"] { color: var(--pink); }

.u2-sd-tabbar {
  position: sticky;
  top: 0;
  z-index: 5;
  margin-top: 56px;
  background: rgba(11, 13, 21, .86);
  backdrop-filter: blur(14px);
}
.u2-sd-tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); }
.u2-sd-tabs [role="tab"] {
  appearance: none;
  flex-shrink: 0;
  padding: 18px 18px 16px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--tx2);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
}
.u2-sd-tabs [role="tab"]:hover { color: var(--tx); }
/* Run 6 (field report: on a dark jacket the chosen tab could not be seen): the chosen tab keeps the
   jacket's colour, made light enough to read on the page (song.js sets --c-ui, 3:1 at least), with
   a thicker mark, a faint wash of the same colour and white text (same weight: no tab moves). */
.u2-sd-tabs [role="tab"][aria-selected="true"] {
  color: #fff;
  border-bottom-color: rgb(var(--c-ui));
  box-shadow: inset 0 -1px 0 rgb(var(--c-ui));
  background: linear-gradient(0deg, rgba(var(--c-ui), .16), rgba(var(--c-ui), 0) 75%);
}
.u2-sd-tabs [role="tab"]:focus-visible { outline-offset: -2px; }
.u2-sd-tab-short { display: none; }
.u2-sd-panel { padding: 56px 0 120px; }
.u2-sd-sec { margin-top: 96px; }
.u2-sd-sh { display: flex; align-items: baseline; gap: 16px; margin-bottom: 24px; }
.u2-sd-sh h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.u2-sd-link {
  appearance: none;
  margin-left: auto;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tx2);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}
.u2-sd-link:hover { color: var(--tx); }
.u2-sd-empty { margin: 0; color: var(--tx2); }

.u2-sd-rows { margin: 0; padding: 0; list-style: none; }
.u2-sd-more-wrap { margin-top: 32px; }
.u2-sd-more { height: 40px; padding: 0 16px; border-color: var(--line); font-size: 14px; }
.u2-sd-rw { position: relative; }
.u2-sd-row {
  display: grid;
  grid-template-columns: 28px 44px minmax(0, 1fr) 120px 96px 80px 72px;
  gap: 18px;
  align-items: center;
  margin: 0 -12px;
  padding: 10px 56px 10px 12px;
  border-radius: 12px;
  color: var(--tx);
  text-decoration: none;
}
.u2-sd-rw:hover .u2-sd-row,
.u2-sd-row:focus-visible { background: rgba(var(--c), .12); color: var(--tx); }
.u2-sd-rk { color: var(--tx3); text-align: right; }
.u2-sd-av img,
.u2-sd-av .u2-avatar-fallback { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.u2-sd-av img { display: block; }
.u2-sd-who { min-width: 0; }
.u2-sd-name-line { display: flex; align-items: center; gap: 8px; min-width: 0; }
.u2-sd-name { font-weight: 500; }
.u2-sd-tags { display: inline-flex; flex-shrink: 0; gap: 4px; }
.u2-sd-tag {
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(var(--acc-rgb), .16);
  color: #F7C9DE;
  font-size: 11px;
  font-weight: 600;
}
.u2-sd-meta { display: block; margin-top: 2px; color: var(--tx3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.u2-sd-msub { display: none; }
.u2-sd-v { text-align: right; white-space: nowrap; }
.u2-sd-nums { display: contents; }
.u2-sd-pp { color: var(--tx3); font-size: 13px; }
.u2-sd-wh { color: var(--tx2); font-size: 13px; }
.u2-sd-row.is-private .u2-sd-name,
.u2-sd-row.is-private .u2-sd-sc { color: var(--tx2); }
.u2-sd-hb {
  position: absolute;
  right: -4px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: var(--tx3);
  opacity: .45;
  transform: translateY(-50%);
  transition: opacity var(--t-fast), background-color var(--t-fast), color var(--t-fast);
}
.u2-sd-rw:hover .u2-sd-hb,
.u2-sd-hb:focus-visible { opacity: 1; }
.u2-sd-hb:hover { background: rgba(255, 255, 255, .1); color: #fff; }

.u2-sd-related { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px; }
.u2-sd-card { display: block; min-width: 0; color: var(--tx); text-decoration: none; }
.u2-sd-card:hover { color: var(--tx); }
.u2-sd-art {
  display: block;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 200ms cubic-bezier(.2, .7, .2, 1);
}
.u2-sd-card:hover .u2-sd-art { transform: translateY(-3px); }
.u2-sd-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.u2-sd-card-title { margin-top: 12px; font-weight: 600; }
.u2-sd-card-sub { color: var(--tx2); font-size: 13px; }
.u2-sd-card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 4px; color: var(--tx3); font-size: 12px; }
.u2-sd-card-meta .u2-sd-dot { width: 7px; height: 7px; }

.u2-sd-shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.u2-sd-shot {
  appearance: none;
  display: block;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tx);
  font: inherit;
  text-align: left;
  cursor: zoom-in;
}
.u2-sd-shot-im {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: var(--ink1);
  transition: transform 200ms cubic-bezier(.2, .7, .2, 1);
}
.u2-sd-shot:hover .u2-sd-shot-im { transform: translateY(-3px); }
.u2-sd-shot-im img { display: block; width: 100%; height: 100%; object-fit: cover; }
.u2-sd-shot-missing { padding: 12px; color: var(--tx3); font-size: 13px; text-align: center; }
.u2-sd-shot-name { margin-top: 12px; font-weight: 500; }
.u2-sd-shot-meta { display: block; color: var(--tx2); font-size: 13px; }

.u2-sd-figures { display: flex; flex-wrap: wrap; gap: 24px 56px; margin: 0 0 40px; }
.u2-sd-figures div { display: flex; flex-direction: column-reverse; }
.u2-sd-figures dt { color: var(--tx2); }
.u2-sd-figures dd { margin: 0; font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -.02em; }
.u2-sd-dists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.u2-sd-dist { padding: 24px 26px; border-radius: 18px; background: var(--ink1); }
.u2-sd-dist h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; }
.u2-sd-bar { display: grid; grid-template-columns: 76px minmax(0, 1fr) 28px; gap: 14px; align-items: center; margin-top: 10px; font-size: 13px; }
.u2-sd-bar-l { color: var(--tx2); }
.u2-sd-bar-t { height: 10px; border-radius: 5px; background: var(--ink2); overflow: hidden; }
.u2-sd-bar-t i { display: block; height: 100%; border-radius: 5px; background: rgba(240, 140, 192, .9); }
.u2-sd-bar-n { text-align: right; }

.u2-sd-lightbox { width: min(1040px, 100%); }
.u2-sd-lb-fig { margin: 0; }
.u2-sd-lb-fig img {
  display: block;
  width: 100%;
  max-height: 68vh;
  border-radius: 12px;
  background: #000;
  object-fit: contain;
}
.u2-sd-lb-fig figcaption { margin-top: 10px; color: var(--tx2); font-size: 13px; }
.u2-sd-lb-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.u2-sd-lb-prev svg { transform: rotate(90deg); }
.u2-sd-lb-next svg { transform: rotate(-90deg); }
.u2-sd-lb-count { color: var(--tx2); font-size: 13px; }
.u2-sd-loading .u2-sd-jk { box-shadow: none; }

@media (max-width: 1099px) {
  .u2-sd-h1 { font-size: 48px; }
  .u2-sd-related { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .u2-sd-stats { gap: 36px; }
  .u2-sd-stats-row { gap: 32px; }
}

/* Tablet: the triangle joins the figures under the band; rows use the stacked phone form. */
@media (max-width: 959px) {
  .u2-sd-head { gap: 28px; }
  /* Run 6 (field report: on a phone the difficulty switch moved under the finger): on touch-sized
     screens the chosen difficulty keeps the others' size (choosing one moves nothing; it is white,
     with its bar), each is a 44 px target, and the row wraps (every difficulty stays on screen)
     instead of scrolling sideways. */
  .u2-sd-diffs { gap: 0 22px; touch-action: manipulation; }
  .u2-sd-diff { align-items: center; min-height: 44px; padding: 0 0 10px; }
  .u2-sd-diff[aria-current="page"] { font-size: 17px; font-weight: 600; letter-spacing: normal; }
  .u2-sd-head .u2-sd-radar { display: none; }
  .u2-sd-jk { width: 160px; height: 160px; }
  .u2-sd-h1 { font-size: 40px; }
  .u2-sd-stats-row {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    gap: 18px 24px;
    align-items: center;
  }
  .u2-sd-stats-row .u2-sd-radar { display: flex; grid-row: span 2; }
  .u2-sd-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 16px; }
  .u2-sd-stat dd { font-size: 20px; }
  .u2-sd-actions { margin-left: 0; }
  .u2-sd-row {
    grid-template-columns: 22px 40px minmax(0, 1fr) auto;
    gap: 12px;
    min-height: 64px;
    padding: 6px 52px 6px 12px;
  }
  .u2-sd-row.is-recent { grid-template-columns: 0 40px minmax(0, 1fr) auto; }
  .u2-sd-av img,
  .u2-sd-av .u2-avatar-fallback { width: 40px; height: 40px; }
  .u2-sd-sc,
  .u2-sd-wh,
  .u2-sd-meta { display: none; }
  .u2-sd-msub { display: block; color: var(--tx2); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .u2-sd-nums { display: flex; flex-direction: column; align-items: flex-end; }
  .u2-sd-pp { font-size: 12px; }
  .u2-sd-row.is-recent .u2-sd-pp { display: none; }
  .u2-sd-hb { right: 4px; opacity: .75; }
  .u2-sd-related { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .u2-sd-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
}

/* Phone (SongDetailMobile board). */
@media (max-width: 599px) {
  .u2-sd-more-wrap { margin-top: 24px; }
  .u2-sd-more { width: 100%; height: 44px; }
  body[data-band="photo"] { --band-h: 470px; }
  body[data-band="photo"] .u2-band-photo img {
    left: -30%;
    top: -20%;
    width: 160%;
    height: 140%;
    filter: blur(54px) saturate(1.4);
    opacity: .85;
  }
  body[data-band="photo"] .u2-band-veil {
    background: linear-gradient(180deg, rgba(11, 13, 21, .45), rgba(11, 13, 21, .25) 35%,
      rgba(11, 13, 21, .85) 80%, var(--ink0));
  }
  .u2-sd .u2-wrap { width: auto; margin: 0; padding-left: 20px; padding-right: 20px; }
  .u2-sd-head { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: 0; padding-bottom: 20px; }
  .u2-sd-jk { width: 132px; height: 132px; border-radius: 14px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); }
  .u2-sd-jkb { left: 6px; right: 6px; bottom: 6px; height: 32px; font-size: 11px; gap: 5px; }
  /* Column layout: the title block keeps its own height so the hero sits on the band's bottom edge. */
  .u2-sd-info { flex: 0 0 auto; width: 100%; }
  .u2-sd-h1 { margin-top: 16px; font-size: 34px; line-height: 1.08; }
  .u2-sd-sub { gap: 2px 14px; margin-top: 6px; font-size: 13px; }
  .u2-sd-diffs { gap: 0 18px; margin: 10px 0 0; }
  .u2-sd-diff { gap: 6px; padding: 0 0 8px; font-size: 15px; }
  .u2-sd-diff[aria-current="page"] { font-size: 15px; }
  .u2-sd-diff[aria-current="page"]::after { width: 20px; }
  body.u2-band-tail[data-band="photo"] .u2-band-photo img {
    top: calc(var(--band-h) * -.2);
    height: max(calc(var(--band-h) * 1.4), calc(100% + var(--band-h) * .2));
  }
  .u2-sd-diff:focus-visible { outline-offset: -2px; border-radius: 6px; }
  .u2-sd-dot { width: 8px; height: 8px; }
  .u2-sd-diff-star { font-size: .7em; }
  .u2-sd-stats-row {
    grid-template-columns: 186px minmax(0, 1fr);
    gap: 4px;
    padding: 6px 20px 0 12px;
  }
  .u2-sd-stats-row .u2-sd-radar-stage { width: 186px; height: 158px; }
  .u2-sd-stats-row .u2-sd-tri { left: 21px; top: 24px; width: 144px; height: 127px; }
  .u2-sd-stats-row .u2-sd-rl b { margin-left: 3px; font-size: 13px; }
  .u2-sd-stats-row .u2-sd-rl.is-pass { bottom: -10px; }
  .u2-sd-stats-row .u2-sd-base { font-size: 13px; }
  .u2-sd-stats-row .u2-sd-radar { grid-row: auto; }
  .u2-sd-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; }
  .u2-sd-stat dd { font-size: 18px; }
  .u2-sd-stat dt { font-size: 12px; }
  .u2-sd-actions { grid-column: 1 / -1; padding: 12px 8px 0; }
  .u2-sd-actions .u2-btn { height: 44px; }
  .u2-sd-playlist { flex: 1 1 auto; }
  .u2-sd-icbtn,
  .u2-sd-share { width: 44px; padding: 0 !important; }
  .u2-sd-share-l { display: none; }
  .u2-sd-tabbar { margin-top: 32px; border-bottom: 1px solid var(--line); }
  .u2-sd-tabs { gap: 4px; padding: 0 12px !important; border-bottom: 0; overflow-x: auto; scrollbar-width: none; }
  .u2-sd-tabs::-webkit-scrollbar { display: none; }
  .u2-sd-tabs [role="tab"] { height: 52px; padding: 0 12px; }
  .u2-sd-tab-long { display: none; }
  .u2-sd-tab-short { display: inline; }
  .u2-sd-panel { padding: 32px 0 80px !important; }
  .u2-sd-sh { margin-bottom: 10px; padding: 0 20px; }
  .u2-sd-sh h2 { font-size: 21px; }
  .u2-sd-sec { margin-top: 56px; }
  .u2-sd-row { margin: 0; padding: 6px 52px 6px 20px; border-radius: 0; }
  .u2-sd-empty { padding: 0 20px; }
  .u2-sd-related {
    display: flex;
    gap: 14px;
    padding: 0 20px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .u2-sd-related::-webkit-scrollbar { display: none; }
  .u2-sd-card { flex: 0 0 136px; }
  .u2-sd-card-title { margin-top: 8px; }
  .u2-sd-shots { grid-template-columns: minmax(0, 1fr); padding: 0 20px; }
  .u2-sd-figures { gap: 16px 32px; padding: 0 20px; }
  .u2-sd-figures dd { font-size: 20px; }
  .u2-sd-dists { grid-template-columns: minmax(0, 1fr); padding: 0 20px; }
  .u2-sd-dist { padding: 20px; }
}

/* ---------------------------------------------------------------- motion */

/* Run 6: what a page showed stays (inert) while a move inside the same page reads its new answer;
   only an answer slower than 300 ms dims it, so a quick one never flickers. */
.u2-prev { animation: u2-prev-wait 200ms ease 300ms both; }
@keyframes u2-prev-wait { from { opacity: 1; } to { opacity: .55; } }

@media (prefers-reduced-motion: reduce) {
  .u2-band-photo,
  .u2-band-mosaic { transition: none; }
  .u2-prev { animation: none; }
  .u2-sd-diff,
  .u2-sd-diff::after,
  .u2-sd-art,
  .u2-sd-shot-im,
  .u2-sd-jkb,
  .u2-sd-hb { transition: none; }
  .u2-sd-card:hover .u2-sd-art,
  .u2-sd-shot:hover .u2-sd-shot-im { transform: none; }
  .u2-sl-sort,
  .u2-sl-sort::after,
  .u2-sl-arrow,
  .u2-sl-card { transition: none; }
  .u2-sl-card:hover { transform: none; }
  .u2-lb-modes button,
  .u2-lb-modes button::after,
  .u2-lb-row { transition: none; }
  .u2-nav > a,
  .u2-ic,
  .u2-me img,
  .u2-me .u2-avatar-fallback,
  .u2-post,
  .u2-login,
  .u2-btn,
  .u2-fb summary svg { transition: none; }
  .u2-dlg,
  .u2-toast { animation: none; }
  .u2-fx-shine > .u2-fx-txt,
  .u2-fx-tw::before,
  .u2-fx-tw::after { animation: none; }
  .u2-art,
  .u2-cta-dc,
  .u2-comm { transition: none; }
  .u2-spin,
  .u2-skel,
  .u2-paced > img { animation: none; }
}

/* ---------------------------------------------------------------- moments (Phase 3 R4) */
/* core.timeTag: the exact moment is the title; a short text that is not exact shows it on a press. */

.u2-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.u2-time.is-press { cursor: help; text-decoration: underline dotted rgba(255, 255, 255, .28); text-underline-offset: 3px; }
.u2-time.is-press:hover,
.u2-time.is-exact { text-decoration-color: currentColor; }
.u2-time.is-exact { white-space: normal; }

/* ---------------------------------------------------------------- layout switches */
/* Last in the file and !important on purpose: these utilities must beat component display rules. */

@media (min-width: 960px) {
  .u2-mb-only { display: none !important; }
}
@media (max-width: 959px) {
  .u2-dt-only { display: none !important; }
}
