:root {
  --bg: #14110e;
  --text: #f4efe6;
  --muted: #a3988c;
  --line: rgba(244, 239, 230, 0.14);
  --surface: #1c1814;
  --gold: #e7c27a;
  --blood: #e23d2b;
  --serif: Fraunces, "Iowan Old Style", Palatino, Georgia, serif;
  --sans: Outfit, "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.45;
  background:
    radial-gradient(1000px 480px at 0% -10%, rgba(226, 61, 43, 0.18), transparent 55%),
    radial-gradient(800px 420px at 100% 0%, rgba(231, 194, 122, 0.09), transparent 50%),
    var(--bg);
}

button, input { font: inherit; color: inherit; }

button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection { background: var(--blood); color: white; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page {
  width: min(1120px, calc(100% - 1.5rem));
  margin: 0 auto;
  padding: 1.1rem 0 4.5rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.brand {
  background: none;
  border: 0;
  padding: 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}

.top nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.35rem 0.8rem;
}

.login { position: relative; }

.admin-link {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 6;
}

.login-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.45rem);
  z-index: 5;
  display: grid;
  gap: 0.45rem;
  width: 220px;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.login-panel input {
  width: 100%;
  background: #221e19;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 0.85rem;
}

.login-panel.is-change { width: 250px; }

.login-panel .quiet { margin: 0; font-size: 0.82rem; }

.login-panel .primary { width: 100%; }

.login-panel .textbtn { justify-self: center; }

.login-panel .error { margin: 0; font-size: 0.82rem; }

.admin-lock {
  display: grid;
  gap: 0.45rem;
  width: min(100%, 220px);
  margin-top: 1.2rem;
}

.admin-lock input {
  width: 100%;
  background: #221e19;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.6rem 0.85rem;
}

.admin-lock .primary { width: 100%; }

.admin-lock .error { margin: 0; font-size: 0.82rem; }

.admin h1 { font-size: clamp(2.1rem, 4vw, 3.1rem); }

.directory {
  margin-top: 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.directory-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.directory-kicker {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.directory-add {
  display: flex;
  gap: 0.5rem;
  flex: 1;
  justify-content: flex-end;
  max-width: 26rem;
}

.directory-add input,
.field input {
  width: 100%;
  min-width: 0;
  background: #221e19;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 0.9rem;
}

.directory-add .primary {
  padding: 0.55rem 1rem;
  white-space: nowrap;
}

.directory-error {
  margin: 0;
  padding: 0.7rem 1.1rem 0;
  color: #ffb4a8;
  font-size: 0.88rem;
}

.directory-head,
.user-row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 7.5rem minmax(15.5rem, auto);
  gap: 0.75rem;
  align-items: center;
  padding: 0.72rem 1.1rem;
}

.directory-head {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.directory-head span:last-child { text-align: right; }

.user-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.user-row { border-top: 1px solid var(--line); }

.user-person {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.user-mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: rgba(231, 194, 122, 0.12);
  color: var(--gold);
  font-family: var(--serif);
  font-size: 0.95rem;
}

.user-id {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.user-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-row.is-suspended .user-name,
.user-row.is-suspended .user-mark { opacity: 0.55; }

.user-badge.is-paused {
  color: #ffd0c8;
  border-color: rgba(226, 61, 43, 0.4);
  background: rgba(226, 61, 43, 0.1);
}

.user-badge {
  justify-self: start;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.user-badge.is-custom {
  color: var(--gold);
  border-color: rgba(231, 194, 122, 0.45);
  background: rgba(231, 194, 122, 0.08);
}

.user-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.user-btn {
  padding: 0.42rem 0.75rem;
  font-size: 0.82rem;
}

.user-btn.is-danger {
  color: #ffd0c8;
  border-color: rgba(226, 61, 43, 0.45);
  background: rgba(226, 61, 43, 0.14);
}

.user-row.is-confirm {
  grid-template-columns: minmax(0, 1fr) minmax(12rem, 1.3fr) auto;
}

.user-row.is-editing { grid-template-columns: 1fr; }

.user-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.user-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.75rem 1rem;
  align-items: end;
}

.user-edit .user-person { grid-column: 1 / -1; }

.user-edit .error { grid-column: 1 / -1; margin: 0; }

.field {
  display: grid;
  gap: 0.28rem;
  min-width: 0;
}

.field span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.directory .empty { padding: 1rem 1.1rem 1.15rem; }

.admin-block { margin-top: 2.4rem; }

.admin-block h2 { margin-bottom: 0.2rem; }

@media (max-width: 860px) {
  .directory-bar { flex-direction: column; align-items: stretch; }
  .directory-add { max-width: none; }
  .directory-head { display: none; }
  .user-row,
  .user-row.is-confirm,
  .user-edit { grid-template-columns: 1fr; }
  .user-actions { justify-content: flex-start; }
}

.quiet { color: var(--muted); }

.eyebrow {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

h1, h2, p { margin: 0; }

h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.4rem, 6vw, 4.7rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.lede {
  max-width: 38rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.home-intro {
  margin-top: 1.6rem;
}

.error {
  color: #ffb4a8;
  margin: 0.45rem 0 0;
  font-size: 0.9rem;
}

.primary, .ghost {
  border: 0;
  border-radius: 999px;
  padding: 0.9rem 1.15rem;
  font-weight: 600;
}

.primary {
  background: var(--text);
  color: #14110e;
}

.primary:hover { background: #fffaf2; }

.primary:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}

.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.ghost.user-btn,
.primary.user-btn {
  padding: 0.42rem 0.75rem;
  font-size: 0.82rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.4rem;
}

.textbtn {
  background: none;
  border: 0;
  color: var(--muted);
  padding: 0.45rem 0.15rem;
  font-weight: 500;
}

.textbtn.is-on, .textbtn:hover { color: var(--text); }

.textbtn.danger { color: #e7a090; }

.iconbtn {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 1.15rem;
}

.iconbtn:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.pool { margin-top: 2.4rem; }

.bracket-board { margin-top: 2.4rem; }

.bracket {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 168px;
  grid-template-rows: auto auto minmax(0, 1fr);
  column-gap: 0.7rem;
  align-items: start;
  overflow-x: auto;
  padding: 0.15rem 0 1rem;
}

.bracket-col,
.bracket-col.is-pool,
.bracket-col.is-end {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 3;
  min-width: 0;
}

.col-title {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 0.4rem;
}

.col-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.round-wait-slot:not(:empty) {
  margin-bottom: 0.55rem;
}

.bracket-col .quiet {
  margin: 0;
  font-size: 0.82rem;
}

.bracket-matches {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 0.5rem;
  flex: 1;
}

.bracket-matches.is-pool {
  justify-content: flex-start;
  gap: 0;
}

.bracket-matches.is-pool > .pool-row {
  height: 42px;
  min-height: 42px;
}

.bracket-matches.is-pool > .pool-row .pool-art {
  height: 100%;
}

.bracket-matches.is-pool > .pool-row:first-child {
  margin-top: 4px;
}

.bracket-matches.is-pool > .pool-row:nth-child(even) {
  height: 46px;
  padding-bottom: 4px;
  margin-top: 2px;
  margin-bottom: calc(1.35rem + 4px);
}

.bracket-matches.is-pool > .pool-row:last-child {
  margin-bottom: 0;
}

.bracket-matches.is-pairs {
  justify-content: flex-start;
  gap: 1.35rem;
}

.bracket .pair-tile {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

.bracket .rail-card {
  min-height: 0;
  min-width: 0;
  width: 100%;
  border-radius: 10px;
}

.bracket .rail-card .art {
  aspect-ratio: 16 / 10;
  min-width: 0;
  overflow: hidden;
}

.bracket .rail-card svg,
.pool-art svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bracket .pair-tile .rail-card { min-height: 0; }

.bracket .rail-card.is-placeholder { min-height: 0; }

.bracket .pair-oder { font-size: 0.62rem; }

.pool-row {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 0.4rem;
  min-height: 42px;
  background: var(--card);
  color: var(--ink);
  border-radius: 8px;
  overflow: hidden;
}

.pool-row.is-watched { opacity: 0.42; }

.pool-art {
  height: 42px;
  background: rgba(0, 0, 0, 0.18);
}

.pool-art svg { width: 100%; height: 100%; display: block; }

.pool-row span:last-child {
  font-size: 0.68rem;
  line-height: 1.15;
  padding-right: 0.35rem;
}

.pool-row em {
  display: block;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.55rem;
  opacity: 0.75;
}

.round-action {
  position: relative;
  padding-bottom: 18px;
}

.round-action .primary {
  position: relative;
  width: 100%;
  padding: 0.72rem 0.35rem 0.58rem;
  border-radius: 12px;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #fff6f2;
  background:
    radial-gradient(90% 140% at 50% -30%, rgba(255, 196, 180, 0.5), transparent 52%),
    linear-gradient(180deg, #e23d2b 0%, #9a1810 70%, #640e0b 100%);
  box-shadow:
    0 8px 16px rgba(90, 8, 6, 0.5),
    inset 0 1px 0 rgba(255, 214, 204, 0.45);
  text-shadow: 0 1px 1px rgba(60, 0, 0, 0.45);
}

.round-action .primary:hover {
  background:
    radial-gradient(90% 140% at 50% -30%, rgba(255, 214, 200, 0.6), transparent 52%),
    linear-gradient(180deg, #ff5340 0%, #b41c12 70%, #7a100c 100%);
}

.round-action .drip {
  position: absolute;
  top: calc(100% - 1px);
  display: block;
  width: 6px;
  background: linear-gradient(#c42818, #6e0d0a);
  border-radius: 0 0 8px 8px;
  pointer-events: none;
}

.round-action .drip:nth-child(1) { left: 22%; height: 14px; }
.round-action .drip:nth-child(2) { left: 48%; width: 4px; height: 8px; }
.round-action .drip:nth-child(3) { left: 68%; width: 5px; height: 12px; }

@media (prefers-reduced-motion: no-preference) {
  .round-action .drip {
    transform-origin: top center;
    animation: bleed 2.6s ease-in-out infinite;
  }
  .round-action .drip:nth-child(2) { animation-delay: 0.7s; }
  .round-action .drip:nth-child(3) { animation-delay: 1.3s; }
}

@keyframes bleed {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(1.45); }
}

.round-wait {
  margin-bottom: 0.15rem;
}

.round-wait p {
  margin: 0 0 0.2rem;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.round-wait ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.round-wait li {
  font-size: 0.88rem;
  line-height: 1.35;
}

.pair-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--blood);
  border-radius: 11px;
}

.pool-row.is-open {
  height: 42px;
  min-height: 42px;
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--line);
}

.bracket-matches.is-pool > .pool-row,
.bracket-matches.is-pool > li > .pool-row {
  border: 1px solid var(--blood);
  border-radius: 11px;
}

.pool-row.is-open.is-bye {
  color: var(--gold);
  border-style: solid;
  border-color: rgba(231, 194, 122, 0.45);
}

.pool-row.is-open.is-bye span:last-child {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pool-row.is-open .pool-art {
  height: 100%;
  background:
    linear-gradient(rgba(244, 239, 230, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.07) 1px, transparent 1px);
  background-size: 8px 8px;
}

.rail-wrap { position: relative; }

.rail-wrap::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2.2rem;
  background: linear-gradient(90deg, transparent, var(--bg));
  pointer-events: none;
}

.rail {
  list-style: none;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 108px;
  gap: 0.65rem;
  overflow-x: auto;
  padding: 0.2rem 0 0.8rem;
  margin: 0.7rem 0 0;
  scroll-snap-type: x mandatory;
}

.rail-item { scroll-snap-align: start; }

.pair-rail { grid-auto-columns: 232px; }

.pair-tile {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.28rem;
  align-items: stretch;
}

.pair-tile .rail-card { min-height: 148px; }

.pair-tile .rail-card p { font-size: 0.62rem; }

.pair-oder {
  align-self: center;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.72rem;
  color: var(--muted);
}

.champion-rail { grid-auto-columns: 108px; }

.rail-card.is-placeholder {
  background: transparent;
  color: var(--muted);
  border: 1px dashed var(--line);
  min-height: 148px;
}

.rail-card.is-placeholder .art {
  flex: none;
  aspect-ratio: 4 / 4.2;
  background:
    linear-gradient(rgba(244, 239, 230, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 230, 0.06) 1px, transparent 1px);
  background-size: 14px 14px;
}

.rail-card.is-placeholder p {
  background: transparent;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.6rem;
}

.rail-item.is-watched { opacity: 0.42; }

.rail-card p span {
  display: block;
  margin-top: 0.18rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.6rem;
  color: var(--gold);
}

.rail-card {
  background: var(--card);
  color: var(--ink);
  border-radius: 12px;
  overflow: hidden;
  min-height: 168px;
  display: flex;
  flex-direction: column;
}

.rail-card .art { aspect-ratio: 4 / 4.2; }

.rail-card p {
  margin: 0;
  padding: 0.4rem 0.45rem 0.55rem;
  background: rgba(0, 0, 0, 0.5);
  color: #f6f1e8;
  font-size: 0.68rem;
  line-height: 1.15;
}

.ask { margin-bottom: 1rem; }

.ask h1 { font-size: clamp(2rem, 4.5vw, 3.5rem); max-width: 14ch; }

.arena {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.7rem;
  align-items: stretch;
}

.vs {
  align-self: center;
  width: 2.4rem;
  text-align: center;
  font-family: var(--serif);
  font-style: italic;
  color: var(--muted);
}

.card {
  --card: #222;
  --ink: #fff;
  --accent: var(--gold);
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 18px;
  overflow: hidden;
  text-align: left;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  transition: transform 0.25s ease, opacity 0.25s ease, filter 0.25s ease, box-shadow 0.25s ease;
}

button.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.38);
}

.card.is-chosen {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 26px 46px rgba(0, 0, 0, 0.45);
}

.card.is-out {
  opacity: 0.38;
  filter: grayscale(0.5);
  transform: scale(0.98);
}

.art {
  position: relative;
  aspect-ratio: 4 / 4.3;
  background: var(--card);
}

.art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.catalog {
  position: absolute;
  top: 0.65rem;
  left: 0.75rem;
  z-index: 1;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.25);
}

.caption {
  flex: 1 0 auto;
  padding: 0.85rem 0.95rem 1rem;
  background: rgba(0, 0, 0, 0.5);
  color: #f6f1e8;
}

.caption .year {
  display: block;
  margin-bottom: 0.28rem;
  color: var(--gold);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
}

.caption strong {
  display: block;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.05rem, 13cqi, 2.05rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.card.is-long .caption strong { font-size: clamp(0.98rem, 11cqi, 1.55rem); }

.card.is-compact .art { aspect-ratio: 4 / 5; }

.duel-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.8rem;
}

.keys { margin-top: 0.2rem; font-size: 0.85rem; }

.handoff, .pause {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 40rem;
}

.handoff h1, .pause h1 { margin-bottom: 0.8rem; }

.handoff p, .pause p { color: var(--muted); font-size: 1.05rem; max-width: 34rem; }

.handoff .primary, .pause .actions { margin-top: 1.3rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(140px, 220px) 1fr;
  gap: 1.2rem;
  align-items: center;
  padding: 0.9rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
}

.hero .card { max-width: 220px; box-shadow: none; }

.kicker {
  color: var(--gold);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
}

.hero h2 { font-size: clamp(2rem, 4vw, 3.2rem); }

.blurb { margin-top: 0.55rem; color: var(--muted); max-width: 36rem; }

.section { margin-top: 2rem; }

.pair-list, .fav-list, .rank-list {
  list-style: none;
  padding: 0;
  margin: 0.8rem 0 0;
}

.pair, .fav, .rank-row {
  display: grid;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--line);
}

.pair { grid-template-columns: 1fr; }
.fav { grid-template-columns: 1fr auto; }

.rank-row { grid-template-columns: 1.6rem 44px 1fr auto; }

.place {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
}

.swatch {
  width: 44px;
  height: 58px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.rank-title, .fav strong, .pair strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.28rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.sub { color: var(--muted); font-size: 0.88rem; margin-top: 0.2rem; }

.bar {
  margin-top: 0.45rem;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  max-width: 16rem;
}

.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blood);
}

.rank-meta {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: right;
  white-space: nowrap;
}

.notice { margin-top: 0.7rem; color: var(--gold); }

.export {
  margin-top: 0.8rem;
  padding: 0.9rem 1rem;
  background: #221e19;
  border-radius: 12px;
  white-space: pre-wrap;
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text);
}

.empty {
  padding: 1rem 0 0.2rem;
  color: var(--muted);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.2rem;
  align-items: center;
  margin-top: 1.6rem;
}

.admin-list {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0 0;
}

.admin-row {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--line);
}

.admin-row.is-out .rank-title { color: var(--muted); }

.admin-row .primary,
.admin-row .ghost {
  padding: 0.65rem 0.95rem;
  font-size: 0.92rem;
}

@media (max-width: 800px) {
  .hero { grid-template-columns: 148px 1fr; padding: 0.7rem; }
  .rank-title { font-size: 1.12rem; }
  .ask h1 { max-width: none; }
}

@media (max-width: 560px) {
  .hero { grid-template-columns: 1fr; }
  .hero .card { max-width: 180px; }
  .fav { grid-template-columns: 1fr; }
  .admin-row { grid-template-columns: 44px 1fr; }
  .admin-row .primary,
  .admin-row .ghost { grid-column: 2; justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
