/* Whipped Index — broadcast-graphics styling.
   One accent (red), gold reserved for the leader. Positive points read as
   "damage" (red), negative points as "redemption" (green). */

:root {
  --bg: #0b0b0d;
  --surface: #131316;
  --surface-2: #1a1a1e;
  --surface-3: #232328;
  --hair: rgba(255, 255, 255, 0.07);
  --hair-2: rgba(255, 255, 255, 0.13);
  --text: #f4f4f5;
  --text-2: #a1a1aa;
  --text-3: #6e6e78;
  --red: #ff3347;
  --red-soft: rgba(255, 51, 71, 0.14);
  --green: #3ee08f;
  --green-soft: rgba(62, 224, 143, 0.13);
  --gold: #ffc53d;
  --gold-soft: rgba(255, 197, 61, 0.14);
  --silver: #cfd3da;
  --bronze: #e0965a;
  --radius: 14px;
  --radius-sm: 9px;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.45; }
body { min-height: 100vh; min-height: 100dvh; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
img { display: block; }
.hidden { display: none !important; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; border-radius: 4px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  height: 60px; padding: 0 max(20px, env(safe-area-inset-left));
  background: rgba(11, 11, 13, 0.82);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hair);
}
.topbar::after { /* thin broadcast stripe */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
  background: linear-gradient(90deg, var(--red) 0 120px, transparent 120px);
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px;
  background: var(--red); color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 17px; letter-spacing: 0.02em;
  transform: skewX(-8deg);
}
.brand-mark span { transform: skewX(8deg); }
.brand-name { font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: 0.04em; text-transform: uppercase; }
.brand-tag {
  font-family: var(--display); font-weight: 600; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--text-2); padding: 2px 8px; border: 1px solid var(--hair-2); border-radius: 999px;
}
.live { display: inline-flex; align-items: center; gap: 6px; color: var(--red); border-color: rgba(255, 51, 71, 0.4); }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.25; } }
.nav { display: flex; gap: 6px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px; border: 0; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--red); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.06em; text-transform: uppercase;
  transition: transform 0.12s var(--ease), filter 0.15s, opacity 0.15s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: translateY(1px) scale(0.99); }
.btn:disabled { opacity: 0.55; cursor: progress; }
.btn.block { width: 100%; }
.btn-quiet {
  height: 34px; padding: 0 12px; border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  background: none; color: var(--text-2); font-size: 14px; font-weight: 500;
  transition: background 0.15s, color 0.15s;
}
.btn-quiet:hover { background: var(--surface-2); color: var(--text); }
.btn-small {
  height: 30px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--hair-2); cursor: pointer;
  background: transparent; color: var(--text-2); font-size: 13px; font-weight: 500;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn-small:hover { color: var(--text); border-color: var(--text-3); background: var(--surface-2); }
.btn-small.danger:hover { color: #fff; background: var(--red); border-color: var(--red); }
.btn-small.primary { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ---------- Ticker ---------- */
.ticker { display: flex; align-items: stretch; height: 38px; background: var(--surface); border-bottom: 1px solid var(--hair); overflow: hidden; }
.ticker-label {
  flex: none; display: flex; align-items: center; padding: 0 16px 0 max(20px, env(safe-area-inset-left)); z-index: 1;
  background: var(--red); color: #fff;
  font-family: var(--display); font-weight: 800; font-size: 14px; letter-spacing: 0.14em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 10px) 100%, 0 100%); padding-right: 24px;
}
.ticker-track {
  flex: 1; position: relative; overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.ticker-inner {
  position: absolute; inset: 0 auto 0 0; display: flex; align-items: center; white-space: nowrap;
  padding-left: 100%; animation: ticker var(--dur, 40s) linear infinite; font-size: 14px; color: var(--text-2);
}
.ticker-item { display: inline-flex; align-items: center; gap: 8px; }
.ticker-item + .ticker-item::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--text-3); margin: 0 22px; }
.ticker-item b { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.04em; color: var(--text); text-transform: uppercase; }
.ticker:hover .ticker-inner { animation-play-state: paused; }
@keyframes ticker { to { transform: translateX(-100%); } }

/* ---------- Layout ---------- */
main { max-width: 1120px; margin: 0 auto; padding: 28px 20px 72px; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: start; }
@media (min-width: 920px) { .grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 24px; } }
.stack { display: grid; gap: 20px; align-content: start; }
.card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 14px; }
.card-head h2 {
  margin: 0; display: flex; align-items: center; gap: 10px;
  font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase;
}
.card-head h2::before { content: ""; width: 4px; height: 18px; border-radius: 2px; background: var(--red); transform: skewX(-12deg); }
.card-head .meta { color: var(--text-3); font-size: 13px; }
.card-body { padding: 4px 20px 20px; }
.divider { height: 1px; background: var(--hair); margin: 0; border: 0; }

/* ---------- Avatars ---------- */
.avatar {
  flex: none; width: 44px; height: 44px; border-radius: 11px; object-fit: cover;
  display: inline-grid; place-items: center; background: var(--surface-3); color: var(--text-2);
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.02em;
  box-shadow: inset 0 0 0 1px var(--hair-2);
}
img.avatar { box-shadow: 0 0 0 1px var(--hair-2); }
.avatar.sm { width: 34px; height: 34px; border-radius: 9px; font-size: 13px; }
.avatar.xs { width: 26px; height: 26px; border-radius: 7px; font-size: 11px; }
.avatar.xl { width: 120px; height: 120px; border-radius: 20px; font-size: 44px; }

/* ---------- Hero (leader) ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 28px;
  padding: 28px; border-radius: 18px;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255, 197, 61, 0.16), transparent 55%),
    linear-gradient(180deg, #17150f, #121214);
  border: 1px solid rgba(255, 197, 61, 0.22);
}
.hero::before { /* diagonal broadcast stripes */
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background: repeating-linear-gradient(-55deg, transparent 0 22px, rgba(255, 255, 255, 0.018) 22px 44px);
}
.hero .avatar.xl { box-shadow: 0 0 0 3px var(--gold), 0 18px 40px -12px rgba(255, 197, 61, 0.35); }
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px; color: var(--gold);
  font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase;
}
.hero-name {
  margin: 2px 0 10px; font-family: var(--display); font-weight: 800; font-size: clamp(38px, 6vw, 60px);
  line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase; overflow-wrap: anywhere;
}
.hero-stats { display: flex; flex-wrap: wrap; gap: 0; }
.hero-stat { padding: 0 20px; border-left: 1px solid var(--hair-2); }
.hero-stat:first-child { padding-left: 0; border-left: 0; }
.hero-stat .v { font-family: var(--display); font-weight: 700; font-size: 28px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-stat .k { color: var(--text-2); font-size: 13px; }
.hero-rank {
  align-self: stretch; display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
  font-family: var(--display); font-weight: 800; font-size: 120px; line-height: 0.8; color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 197, 61, 0.35);
}

/* ---------- Standings ---------- */
.standings-head, .standing {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 64px 72px; align-items: center; gap: 14px; padding: 0 20px;
}
.standings-head {
  height: 34px; color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
}
.standings-head > :nth-child(n+3), .standing > :nth-child(n+3) { text-align: right; }
.standing { position: relative; min-height: 76px; border-bottom: 1px solid var(--hair); transition: background 0.15s; }
.standing:last-child { border-bottom: 0; }
.standing:hover { background: rgba(255, 255, 255, 0.018); }
.standing.lead::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.rank { font-family: var(--display); font-weight: 800; font-size: 26px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.r1 .rank { color: var(--gold); }
.r2 .rank { color: var(--silver); }
.r3 .rank { color: var(--bronze); }
.player { display: flex; align-items: center; gap: 14px; min-width: 0; padding: 14px 0; }
.player-info { flex: 1; min-width: 0; }
.player-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.player-name {
  font-family: var(--display); font-weight: 700; font-size: 21px; letter-spacing: 0.02em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chip {
  flex: none; display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border-radius: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  background: var(--surface-3); color: var(--text-2);
}
.chip.t-free { background: var(--green-soft); color: var(--green); }
.chip.t-hot { background: var(--red-soft); color: #ff7d8b; }
.chip.t-max { background: var(--red); color: #fff; }
.chip.gold { background: var(--gold-soft); color: var(--gold); }
.bar { height: 5px; margin-top: 9px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #b3182b, var(--red)); transform-origin: left; animation: grow 0.8s var(--ease) both; }
.r1 .bar > i { background: linear-gradient(90deg, #c98a10, var(--gold)); }
@keyframes grow { from { transform: scaleX(0); } }
.delta { font-family: var(--display); font-weight: 600; font-size: 16px; font-variant-numeric: tabular-nums; color: var(--text-3); white-space: nowrap; }
.delta.pos { color: var(--red); }
.delta.neg { color: var(--green); }
.pts { font-family: var(--display); font-weight: 800; font-size: 30px; font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.pts small { display: block; margin-top: -4px; font-family: var(--body); font-weight: 500; font-size: 11px; color: var(--text-3); letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- Feed ---------- */
.feed { list-style: none; margin: 0; padding: 0 0 6px; }
.feed-item { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--hair); }
.feed-meta { display: flex; align-items: baseline; gap: 8px; }
.feed-who { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.03em; text-transform: uppercase; }
.feed-time { color: var(--text-3); font-size: 12px; white-space: nowrap; }
.feed-label { font-size: 15px; color: var(--text); line-height: 1.35; }
.feed-note { margin-top: 6px; padding-left: 10px; border-left: 2px solid var(--hair-2); color: var(--text-2); font-size: 14px; font-style: italic; overflow-wrap: anywhere; }
.pill {
  align-self: start; display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 26px; padding: 0 8px;
  border-radius: 7px; font-family: var(--display); font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums;
}
.pill.pos { background: var(--red-soft); color: #ff6d7d; }
.pill.neg { background: var(--green-soft); color: var(--green); }
.pill.zero { background: var(--surface-3); color: var(--text-2); }

/* ---------- Tier ladder ---------- */
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 640px) { .ladder { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tier {
  position: relative; padding: 12px 12px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--hair);
  min-height: 96px; display: flex; flex-direction: column;
}
.tier-step { color: var(--text-3); font-size: 12px; font-variant-numeric: tabular-nums; }
.tier-name { font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: 0.03em; text-transform: uppercase; line-height: 1.1; margin: 2px 0 10px; }
.tier-who { margin-top: auto; display: flex; flex-wrap: wrap; gap: 4px; }
.tier.occupied { border-color: var(--hair-2); background: var(--surface-3); }
.tier.top { border-color: rgba(255, 51, 71, 0.35); }
.tier-heat { position: absolute; left: 12px; right: 12px; top: 0; height: 2px; border-radius: 0 0 2px 2px; background: var(--red); }

/* ---------- Empty / loading ---------- */
.empty { padding: 36px 20px; text-align: center; color: var(--text-2); font-size: 15px; }
.empty b { display: block; margin-bottom: 4px; font-family: var(--display); font-size: 20px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text); }
.skeleton { height: 76px; border-bottom: 1px solid var(--hair); background: linear-gradient(90deg, transparent, rgba(255,255,255,.03), transparent) 0 0 / 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.label { display: block; margin-bottom: 7px; color: var(--text-2); font-size: 13px; font-weight: 600; }
.label .opt { color: var(--text-3); font-weight: 400; }
.input, .select {
  width: 100%; height: 46px; padding: 0 14px; border-radius: var(--radius-sm);
  background: var(--bg); border: 1px solid var(--hair-2); font-size: 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: var(--text-3); }
.input:hover, .select:hover { border-color: rgba(255, 255, 255, 0.2); }
.input:focus, .select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23a1a1aa' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) 104px; gap: 12px; }
.hint { margin-top: 6px; color: var(--text-3); font-size: 12px; }
.error { min-height: 20px; margin-top: 12px; color: #ff7d8b; font-size: 14px; }

/* Player picker (radio chips) */
.picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.pick { position: relative; cursor: pointer; }
.pick input { position: absolute; opacity: 0; pointer-events: none; }
.pick-card {
  display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 12px 6px 10px; border-radius: 11px;
  background: var(--bg); border: 1px solid var(--hair-2); text-align: center;
  transition: border-color 0.15s, background 0.15s, transform 0.12s var(--ease);
}
.pick-card span:last-child {
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.03em; text-transform: uppercase;
}
.pick:hover .pick-card { border-color: rgba(255, 255, 255, 0.22); }
.pick input:checked + .pick-card { border-color: var(--red); background: var(--red-soft); box-shadow: 0 0 0 1px var(--red); }
.pick input:focus-visible + .pick-card { outline: 2px solid var(--red); outline-offset: 2px; }
.pick:active .pick-card { transform: scale(0.97); }

/* Photo drop */
.photo-field { display: flex; align-items: center; gap: 16px; }
.photo-drop {
  position: relative; flex: none; width: 72px; height: 72px; border-radius: 16px; cursor: pointer; overflow: hidden;
  display: grid; place-items: center; background: var(--bg); border: 1.5px dashed rgba(255, 255, 255, 0.22); color: var(--text-2);
  transition: border-color 0.15s, color 0.15s;
}
.photo-drop:hover { border-color: var(--red); color: var(--text); }
.photo-drop img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.photo-drop input { position: absolute; opacity: 0; pointer-events: none; }
.photo-drop svg { width: 24px; height: 24px; }
.photo-drop.sm { width: 44px; height: 44px; border-radius: 11px; }
.photo-drop.sm svg { width: 18px; height: 18px; }

/* ---------- Admin lists ---------- */
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--hair); }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list-item .sub { color: var(--text-3); font-size: 13px; }
.list-item .text { font-size: 15px; overflow-wrap: anywhere; }
.actions { flex: none; display: flex; gap: 6px; opacity: 0.85; }
.list-item:hover .actions { opacity: 1; }
.edit-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; width: 100%; }
.edit-row .input { height: 38px; flex: 1; min-width: 140px; font-size: 15px; }
.edit-row .input.pts-in { flex: none; width: 84px; }
.check { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; cursor: pointer; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 100;
  display: flex; align-items: center; gap: 10px; padding: 12px 16px 12px 14px; border-radius: 12px;
  background: var(--surface-3); border: 1px solid var(--hair-2); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.7);
  font-size: 14px; font-weight: 500; animation: toast-in 0.25s var(--ease) both; transform: translateX(-50%);
}
.toast::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }
.toast.err::before { background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ---------- Login ---------- */
.gate {
  min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(80% 60% at 50% -10%, rgba(255, 51, 71, 0.18), transparent 70%),
    repeating-linear-gradient(-55deg, transparent 0 26px, rgba(255, 255, 255, 0.012) 26px 52px),
    var(--bg);
}
.gate-card { width: 100%; max-width: 400px; }
.gate-card .brand { margin-bottom: 28px; }
.gate-card h1 { margin: 0 0 6px; font-family: var(--display); font-weight: 800; font-size: 46px; line-height: 0.95; letter-spacing: 0.01em; text-transform: uppercase; }
.gate-card p { margin: 0 0 28px; color: var(--text-2); }
/* The gate is a <main>; undo the page container so its background covers the whole screen. */
main.gate { max-width: none; width: 100%; margin: 0; }

/* ---------- Relationships / multipliers ---------- */
.feed-for { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; min-width: 0; }
.feed-for b { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.feed-meta { flex-wrap: wrap; row-gap: 2px; }
.mult {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; height: 22px; padding: 0 8px; border-radius: 6px;
  background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 500;
}
.mult b { color: var(--gold); font-family: var(--display); font-weight: 700; font-size: 14px; }
.x { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }

.hero-for { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: -2px 0 14px; color: var(--text-2); font-size: 14px; }
.hero-for span { display: inline-flex; align-items: center; gap: 7px; }
.hero-for b { color: var(--text); font-weight: 600; }

.whipped-for { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.wf-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--hair); }
.wf-top { display: flex; gap: 12px; align-items: center; min-width: 0; }
.wf-top .avatar { width: 56px; height: 56px; border-radius: 14px; font-size: 20px; }
.wf-name { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.05; overflow-wrap: anywhere; }
.wf-damage { margin-top: 3px; color: var(--text-2); font-size: 13px; }
.wf-damage b { color: #ff6d7d; font-family: var(--display); font-size: 16px; font-weight: 700; }
.wf-desc { color: var(--text-2); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.wf-rels { display: grid; gap: 6px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--hair); }
.wf-rel { display: flex; align-items: center; gap: 8px; font-size: 14px; min-width: 0; }
.wf-rel .who { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wf-rel .type { margin-left: auto; flex: none; color: var(--text-2); font-size: 13px; }
.wf-rel .type .x { color: var(--gold); margin-left: 4px; }

/* Off-limits multiplier */
.danger-tag { color: #ff7d8b; }
.danger-tag b, .x.danger { color: #ff6d7d !important; }
.mult .sep { color: var(--text-3); }
.mult { flex-wrap: wrap; height: auto; min-height: 22px; padding: 2px 8px; }
.wf-danger {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 10px; border-radius: 8px;
  background: var(--red-soft); border: 1px solid rgba(255, 51, 71, 0.3); font-size: 13px; color: #ffb3bc;
}
.wf-danger b { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.05em; text-transform: uppercase; color: #ff6d7d; }
.danger-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Relationship rows in admin */
.rel-row { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.rel-row .arrow { color: var(--text-3); }
.rel-row .nm { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: 0.03em; text-transform: uppercase; }
.field-row-3 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.calc { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: -4px 0 16px; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--bg); border: 1px dashed var(--hair-2); color: var(--text-2); font-size: 14px; }
.calc .total { font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--text); font-variant-numeric: tabular-nums; }
.calc .total.pos { color: #ff6d7d; }
.calc .total.neg { color: var(--green); }

/* Toggle switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; color: var(--text-2); font-size: 14px; user-select: none; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch .track { position: relative; flex: none; width: 38px; height: 22px; border-radius: 99px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--hair-2); transition: background 0.15s; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: transform 0.18s var(--ease), background 0.15s; }
.switch input:checked + .track { background: var(--red); box-shadow: none; }
.switch input:checked + .track::after { transform: translateX(16px); background: #fff; }
.switch input:focus-visible + .track { outline: 2px solid var(--red); outline-offset: 2px; }
.badge { display: inline-flex; align-items: center; height: 18px; padding: 0 6px; border-radius: 4px; font-size: 10px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; background: var(--surface-3); color: var(--text-3); vertical-align: middle; }
.badge.on { background: var(--red-soft); color: #ff7d8b; }

/* ---------- Photo framer ---------- */
body.no-scroll { overflow: hidden; }
.cropper {
  position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px;
  background: rgba(5, 5, 7, 0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade-in 0.18s ease both;
}
@keyframes fade-in { from { opacity: 0; } }
.cropper-dialog {
  width: 100%; max-width: 440px; overflow: hidden; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--hair-2); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  animation: pop-in 0.22s var(--ease) both;
}
@keyframes pop-in { from { opacity: 0; transform: translateY(10px) scale(0.98); } }
.cropper-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 20px 14px; }
.cropper-head h3 { margin: 0; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: 0.04em; text-transform: uppercase; }
.cropper-head span { color: var(--text-3); font-size: 13px; }
/* The viewport shows the image spilling past the frame, dimmed; the frame itself is the stage. */
.cropper-viewport {
  position: relative; display: grid; place-items: center; padding: 36px 0; overflow: hidden;
  background: #050506; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; outline: none;
}
.cropper.dragging .cropper-viewport { cursor: grabbing; }
.cropper-stage { position: relative; width: min(72vw, 320px); aspect-ratio: 1; }
.cropper-img { position: absolute; top: 0; left: 0; transform-origin: 0 0; will-change: transform; pointer-events: none; }
.cropper-mask {
  position: absolute; inset: 0; pointer-events: none; border-radius: 24%;
  box-shadow: 0 0 0 999px rgba(5, 5, 6, 0.72);
  outline: 2px solid rgba(255, 255, 255, 0.9); outline-offset: -1px;
}
.cropper-mask::after { /* rule-of-thirds grid while dragging */
  content: ""; position: absolute; inset: 0; border-radius: inherit; opacity: 0; transition: opacity 0.2s;
  background:
    linear-gradient(90deg, transparent calc(33.33% - 0.5px), rgba(255,255,255,.35) 33.33%, transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255,255,255,.35) 66.66%, transparent calc(66.66% + 0.5px)),
    linear-gradient(180deg, transparent calc(33.33% - 0.5px), rgba(255,255,255,.35) 33.33%, transparent calc(33.33% + 0.5px), transparent calc(66.66% - 0.5px), rgba(255,255,255,.35) 66.66%, transparent calc(66.66% + 0.5px));
}
.cropper.dragging .cropper-mask::after { opacity: 1; }
.cropper-zoom { display: flex; align-items: center; gap: 12px; padding: 16px 20px 6px; }
.cropper-zoom input[type=range] { flex: 1; accent-color: var(--red); height: 28px; cursor: pointer; }
.cropper-icon {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--hair-2); color: var(--text-2);
}
.cropper-icon:hover { color: var(--text); border-color: var(--text-3); }
.cropper svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cropper-actions { display: flex; align-items: center; gap: 8px; padding: 14px 20px 20px; }
.cropper-actions .spacer { flex: 1; }
.cropper-actions .btn-small { display: inline-flex; align-items: center; gap: 6px; height: 34px; }
.cropper-actions .btn { height: 42px; }
@media (max-width: 420px) {
  .cropper { padding: 0; align-items: end; }
  .cropper-dialog { border-radius: 18px 18px 0 0; max-width: none; }
  .cropper-head span { display: none; }
}

/* ---------- Weekend ---------- */
.weekend {
  position: relative; overflow: hidden; isolation: isolate; border-radius: 18px;
  background: linear-gradient(180deg, #141418, #111114); border: 1px solid var(--hair-2);
}
.weekend.is-live {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(255, 51, 71, 0.22), transparent 55%),
    linear-gradient(180deg, #1a1012, #121214);
  border-color: rgba(255, 51, 71, 0.35);
}
.weekend::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.6;
  background: repeating-linear-gradient(-55deg, transparent 0 22px, rgba(255, 255, 255, 0.016) 22px 44px);
}
.wk-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 24px 20px; }
.wk-kicker { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
.weekend.is-live .wk-kicker { color: var(--red); }
.wk-kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px var(--red-soft); animation: pulse 1.6s ease-in-out infinite; }
.wk-title { margin: 2px 0 6px; font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5vw, 48px); line-height: 0.95; text-transform: uppercase; letter-spacing: 0.01em; }
.wk-sub { color: var(--text-2); font-size: 14px; }
.wk-sub b { color: var(--gold); font-family: var(--display); font-size: 16px; }
.wk-clock { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.wk-clock > span { color: var(--text-3); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.countdown { display: flex; gap: 6px; }
.countdown div {
  display: flex; flex-direction: column; align-items: center; min-width: 58px; padding: 8px 6px 6px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--hair-2);
}
.countdown b { font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { margin-top: 3px; color: var(--text-3); font-size: 10px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.weekend.is-live .countdown b { color: #fff; }
.wk-board { border-top: 1px solid var(--hair); }
.wk-row { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 64px; align-items: center; gap: 12px; padding: 10px 24px; border-bottom: 1px solid var(--hair); }
.wk-row:last-child { border-bottom: 0; }
.wk-row.lead::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.wk-row .rank { font-size: 22px; }
.wk-row.lead .rank { color: var(--gold); }
.wk-row .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wk-row .sub { color: var(--text-3); font-size: 13px; }
.wk-row .pts { font-size: 26px; text-align: right; }
.nm { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: 0.03em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-empty { padding: 0 24px 24px; color: var(--text-3); font-size: 14px; }
.muted { color: var(--text-3) !important; }

.recap { margin: 0 16px 16px; padding: 18px; border-radius: 14px; background: rgba(0, 0, 0, 0.28); border: 1px solid var(--hair); }
.recap-title { margin-bottom: 14px; color: var(--text-2); font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.12em; text-transform: uppercase; }
.recap-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 820px) { .recap-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); align-items: center; } }
.recap-champ { display: flex; align-items: center; gap: 18px; min-width: 0; }
.recap-champ .avatar.xl { width: 96px; height: 96px; border-radius: 18px; font-size: 36px; box-shadow: 0 0 0 3px var(--gold); }
.recap-name { margin: 2px 0 4px; font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; text-transform: uppercase; overflow-wrap: anywhere; }
.recap-pts { color: var(--text-2); font-family: var(--display); font-weight: 600; font-size: 18px; }
.recap-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.recap-tile { padding: 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--hair); min-width: 0; }
.recap-tile .k { color: var(--text-3); font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 6px; }
.recap-tile .v { display: flex; align-items: center; gap: 8px; min-width: 0; }
.recap-tile .v .pill { margin-left: auto; }
.recap-tile .v.big { font-family: var(--display); font-weight: 800; font-size: 26px; color: #ff6d7d; }
.recap-tile .s { margin-top: 4px; color: var(--text-2); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recap-standings { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: r; }
.recap-standings li { counter-increment: r; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 8px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--hair); }
.recap-standings li::before { content: counter(r); color: var(--text-3); font-family: var(--display); font-weight: 800; font-size: 15px; }
.recap-standings .nm { font-size: 15px; }
.pts-sm { font-family: var(--display); font-weight: 700; color: #ff6d7d; }

/* ---------- Trophies ---------- */
.shelf { display: inline-flex; align-items: center; gap: 2px; flex: none; }
.trophy { position: relative; display: inline-grid; place-items: center; width: 22px; height: 22px; font-size: 15px; line-height: 1; cursor: default; }
.trophy small { position: absolute; right: -5px; bottom: -3px; min-width: 14px; height: 14px; padding: 0 3px; border-radius: 7px; background: var(--gold); color: #000; font-family: var(--display); font-weight: 800; font-size: 10px; display: grid; place-items: center; }
.awards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.award { display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--hair); }
.award.custom { background: linear-gradient(180deg, rgba(255, 197, 61, 0.1), var(--surface-2) 60%); border-color: rgba(255, 197, 61, 0.3); }
.award-emoji { font-size: 30px; line-height: 1; margin-bottom: 6px; }
.award-name { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: 0.02em; text-transform: uppercase; line-height: 1.05; }
.award.custom .award-name { color: var(--gold); }
.award-desc { color: var(--text-3); font-size: 13px; }
.award-winners { display: grid; gap: 6px; margin-top: auto; padding-top: 12px; }
.award-winner { display: flex; align-items: center; gap: 8px; min-width: 0; }
.award-winner .nm { font-size: 15px; }
.award-winner .stat { margin-left: auto; color: var(--text-2); font-size: 12px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%; }
.hall-date { flex: none; width: 110px; color: var(--text-2); font-family: var(--display); font-weight: 600; font-size: 15px; }

.weekend-tag { color: var(--gold); }
.when-row { display: flex; gap: 8px; }
.when-row .input { flex: 1; color-scheme: dark; }
.when-row .btn-small { height: 46px; padding: 0 14px; }
.emoji-picks { display: flex; flex-wrap: wrap; gap: 4px; margin: -6px 0 16px; }
.emoji-picks button { width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--hair-2); background: var(--bg); font-size: 18px; cursor: pointer; }
.emoji-picks button:hover { border-color: var(--text-3); background: var(--surface-2); }
.calc .wk { color: var(--gold); }
.feed-date { margin-top: 2px; }

/* ---------- Hazard queue ---------- */
.hazard-card {
  background:
    repeating-linear-gradient(-45deg, rgba(255, 197, 61, 0.07) 0 14px, transparent 14px 28px) top / 100% 8px no-repeat,
    radial-gradient(80% 120% at 0% 0%, rgba(255, 197, 61, 0.1), transparent 60%),
    var(--surface);
  border-color: rgba(255, 197, 61, 0.28);
}
.hazard-head { display: flex; align-items: center; gap: 18px; padding: 26px 20px 18px; }
.hazard-head .avatar.xl { width: 84px; height: 84px; border-radius: 16px; font-size: 30px; box-shadow: 0 0 0 3px var(--gold); }
.hazard-kicker { color: var(--gold); font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; }
.hazard-title { margin: 2px 0 6px; font-family: var(--display); font-weight: 800; font-size: clamp(26px, 4vw, 36px); line-height: 1; text-transform: uppercase; }
.hazard-sub { color: var(--text-2); font-size: 14px; }
.queue { list-style: none; margin: 0; padding: 0; }
.queue-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--hair); }
.queue-row .qpos { width: 28px; flex: none; font-family: var(--display); font-weight: 800; font-size: 24px; color: var(--text-3); }
.queue-row.next { background: linear-gradient(90deg, rgba(255, 51, 71, 0.12), transparent 70%); }
.queue-row.next .qpos { color: var(--red); }
.queue-row.taken { opacity: 0.55; }
.queue-row .qpts { margin-left: auto; color: var(--text-2); font-family: var(--display); font-weight: 700; font-size: 17px; white-space: nowrap; }
.single-row { display: flex; align-items: center; gap: 10px; }

/* ---------- Page rhythm & navigation ---------- */
html { scroll-behavior: smooth; }
.page { display: flex; flex-direction: column; gap: 24px; }
.section-anchor { display: flex; flex-direction: column; gap: 24px; }
/* Land below the sticky top bar + section nav when jumping to a section. */
.page > section, .section-anchor, #feed-card { scroll-margin-top: 124px; }

.subnav {
  position: sticky; top: 60px; z-index: 15;
  background: rgba(11, 11, 13, 0.86); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hair);
}
.subnav-inner {
  display: flex; gap: 4px; max-width: 1120px; margin: 0 auto; padding: 8px 20px; overflow-x: auto; scrollbar-width: none;
}
.subnav-inner::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px;
  color: var(--text-2); font-size: 14px; font-weight: 500; white-space: nowrap; transition: background 0.15s, color 0.15s;
}
.subnav a:hover { color: var(--text); background: var(--surface-2); }
.subnav a.active { color: var(--text); background: var(--surface-3); box-shadow: inset 0 -2px 0 var(--red); }

.tab {
  flex: none; height: 34px; padding: 0 14px; border-radius: 8px; border: 0; cursor: pointer;
  background: none; color: var(--text-2); font-size: 14px; font-weight: 600; white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab.active { color: var(--text); background: var(--surface-3); box-shadow: inset 0 -2px 0 var(--red); }
.tab-panel[hidden] { display: none; }
.entry-side { flex: none; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.more-btn {
  display: block; width: calc(100% - 40px); margin: 4px 20px 18px; height: 40px; border-radius: var(--radius-sm); cursor: pointer;
  background: var(--surface-2); border: 1px solid var(--hair-2); color: var(--text-2); font-size: 14px; font-weight: 600;
}
.more-btn:hover { color: var(--text); border-color: var(--text-3); }

.footer {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 8px 4px 0; color: var(--text-3); font-size: 13px;
}
.footer .footer-game {
  margin-left: auto; display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px;
  background: var(--red); color: #fff; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: 0.06em; text-transform: uppercase;
}
.footer .footer-game:hover { filter: brightness(1.1); }
.footer .footer-top { color: var(--text-2); }
.footer .footer-top:hover { color: var(--text); }
.brand-mark.sm { width: 24px; height: 24px; border-radius: 6px; font-size: 12px; }

/* On phones, card collections become swipeable rows instead of tall stacks. */
@media (max-width: 720px) {
  .rail {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(78%, 1fr); grid-template-columns: none;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -14px; padding: 0 14px 4px; scroll-padding: 0 14px;
  }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }
}

/* ---------- Gauntlets ---------- */
.gauntlets { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.gauntlet-tile {
  position: relative; padding: 0; border: 1px solid var(--hair-2); border-radius: 14px; overflow: hidden; cursor: pointer;
  background: #1a0b2e; transition: transform 0.15s var(--ease), border-color 0.15s;
}
.gauntlet-tile:hover { transform: translateY(-2px); border-color: rgba(247, 201, 72, 0.5); }
.gauntlet-tile canvas { display: block; width: 100%; height: auto; aspect-ratio: 1080 / 1350; }
.gauntlet-cta {
  position: absolute; right: 8px; bottom: 8px; padding: 3px 8px; border-radius: 6px; background: rgba(11, 11, 13, 0.7);
  color: var(--text-2); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
}
.modal {
  position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px;
  background: rgba(5, 5, 7, 0.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fade-in 0.18s ease both;
}
.modal-card { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 12px; animation: pop-in 0.22s var(--ease) both; }
.modal-card img { width: 100%; aspect-ratio: 1080 / 1350; border-radius: 16px; background: #1a0b2e; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.8); }
.modal-actions { display: flex; gap: 8px; align-items: center; }
.modal-actions .btn { flex: 1; text-decoration: none; }
.modal-actions .secondary-btn { background: var(--surface-3); border: 1px solid var(--hair-2); }
/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .hero { grid-template-columns: auto 1fr; gap: 18px; padding: 20px; }
  .hero-rank { display: none; }
  .avatar.xl { width: 84px; height: 84px; border-radius: 16px; font-size: 32px; }
  .hero-stat { padding: 0 14px; }
  .hero-stat .v { font-size: 22px; }
}
@media (max-width: 560px) {
  main { padding: 20px 14px 56px; }
  .page, .section-anchor { gap: 16px; }
  .subnav-inner { padding: 8px 14px; }
  .topbar { padding: 0 14px; }
  .brand-name { display: none; }
  .standings-head, .standing { grid-template-columns: 26px minmax(0, 1fr) 46px 52px; gap: 10px; padding: 0 14px; }
  .standing { min-height: 70px; }
  .rank { font-size: 22px; }
  .player { gap: 10px; }
  .player .avatar { width: 38px; height: 38px; border-radius: 10px; }
  .player-name { font-size: 18px; }
  .player-line { flex-wrap: wrap; row-gap: 3px; }
  .pts { font-size: 24px; }
  .delta { font-size: 14px; }
  .card-head { padding: 16px 14px 12px; }
  .card-body { padding: 4px 14px 16px; }
  .feed-item, .list-item { padding-left: 14px; padding-right: 14px; }
  .hero { grid-template-columns: 1fr; text-align: left; }
  .gate-card h1 { font-size: 40px; }
  .field-row-3 { grid-template-columns: 1fr; gap: 0; }
  .wk-head { padding: 20px 16px 16px; }
  .wk-clock { align-items: flex-start; }
  .countdown div { min-width: 52px; }
  .countdown b { font-size: 26px; }
  .wk-row { grid-template-columns: 26px minmax(0, 1fr) 52px; padding: 10px 14px; }
  .wk-row .sub { display: none; }
  .recap { margin: 0 10px 10px; padding: 14px; }
  .recap-name { font-size: 28px; }
  .hall-date { width: 84px; font-size: 14px; }
}
@media (max-width: 480px) {
  .recap-tiles { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition: none !important; }
  .ticker-inner { position: static; padding-left: 16px; transform: none; }
}
