@import url('../fonts/fonts.css');

/* ============================================================
   Court Craft — Huish Tigers
   Black + orange, taken from the club logo and match flyers.
   Body: Maven Pro 500. Headings: Anton. Accents: Bangers brush.
   ============================================================ */

:root {
  --black: #08080a;
  --panel: #131317;
  --panel-2: #1b1b21;
  --panel-3: #232329;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --white: #ffffff;
  --muted: #9b9ba5;
  --muted-2: #6f6f79;

  --orange: #f5883a;
  --flame: #f26522;
  --orange-soft: rgba(245, 136, 58, 0.14);

  --bronze: #cd7f45;
  --silver: #c8cdd4;
  --gold: #f3b739;
  --platinum: #93e9f2;

  --font-body: 'Maven Pro', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Anton', 'Arial Narrow', sans-serif;
  --font-brush: 'Bangers', var(--font-display);

  --radius: 16px;
  --radius-sm: 10px;
  --shell: 620px;
  --tap: 48px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--black);
  color: var(--white);
}

body {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  /* Faint court glow, echoing the flame wash at the foot of the flyers. */
  background-image: radial-gradient(120% 60% at 50% 100%, rgba(242, 101, 34, 0.13), transparent 70%);
  background-attachment: fixed;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 0.98;
  margin: 0;
}

a { color: var(--orange); text-decoration: none; }
button, input, select { font-family: inherit; font-weight: inherit; font-size: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* ---------------------------------------------------------------- shell */

.shell { max-width: var(--shell); margin: 0 auto; padding: 0 18px 108px; }
.shell--wide { max-width: 1180px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 18px;
  background: rgba(8, 8, 10, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar__logo { width: 114px; height: 114px; border-radius: 24px; display: block; }
.topbar__title { font-family: var(--font-display); font-size: 29px; letter-spacing: 0.02em; }
.topbar__title span { color: var(--orange); }
.topbar__spacer { flex: 1; }

.tag {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding: 5px 9px 4px;
  border-radius: 6px;
  background: var(--orange-soft);
  color: var(--orange);
  border: 1px solid rgba(245, 136, 58, 0.3);
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 17px;
  color: var(--black);
  background: linear-gradient(150deg, var(--orange), var(--flame));
  border: none;
  cursor: pointer;
}

/* ---------------------------------------------------------------- hero */

.hero { position: relative; padding: 26px 0 18px; overflow: hidden; }
.hero__eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.hero__name {
  font-family: var(--font-brush);
  font-size: clamp(44px, 14vw, 68px);
  line-height: 0.86;
  color: var(--flame);
  transform: skewX(-7deg);
  transform-origin: left bottom;
  letter-spacing: 0.01em;
  margin: 4px 0 2px;
}
.hero__sub { color: var(--muted); font-size: 14px; }
.hero__claw {
  position: absolute;
  top: -18px;
  right: -34px;
  width: 200px;
  opacity: 0.34;
  pointer-events: none;
}

.identity {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0 4px;
}
.identity span {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  padding: 4px 8px 3px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.identity span:nth-child(-n + 4):hover { color: var(--orange); }

/* ---------------------------------------------------------------- cards */

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
}

.section-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 26px 0 12px;
}
.section-title h2 { font-size: 20px; }
.section-title small { color: var(--muted-2); font-size: 12px; letter-spacing: 0.04em; }

.grid { display: grid; gap: 12px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Medal strip -------------------------------------------------- */

.medals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.medal {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 6px 10px;
  text-align: center;
}
.medal__count { font-family: var(--font-display); font-size: 26px; line-height: 1; }
.medal__label {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--muted-2);
  margin-top: 4px;
}
.medal--bronze .medal__count { color: var(--bronze); }
.medal--silver .medal__count { color: var(--silver); }
.medal--gold .medal__count { color: var(--gold); }
.medal--platinum .medal__count { color: var(--platinum); }
.medal--empty .medal__count { color: var(--muted-2); }

/* Category card ------------------------------------------------ */

.cat {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  color: var(--white);
  cursor: pointer;
  transition: border-color 0.18s, transform 0.18s;
}
.cat:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.cat__body { flex: 1; min-width: 0; }
.cat__name { font-family: var(--font-display); font-size: 19px; }
.cat__blurb {
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cat__chev { color: var(--muted-2); font-size: 20px; }

.ring { width: 54px; height: 54px; flex: none; position: relative; }
.ring svg { transform: rotate(-90deg); display: block; }
.ring__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 13px;
}

/* Drill row ---------------------------------------------------- */

.drill {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  color: var(--white);
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.drill:hover { border-color: var(--line-strong); background: var(--panel-2); }
.drill__station {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--muted-2);
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 34px;
  padding: 5px 6px 4px;
  text-align: center;
  flex: none;
}
.drill__body { flex: 1; min-width: 0; }
.drill__name { font-family: var(--font-display); font-size: 16px; letter-spacing: 0.01em; }
.drill__meta { font-size: 12px; color: var(--muted-2); margin-top: 2px; }

/* Tier badge --------------------------------------------------- */

.badge {
  font-family: var(--font-brush);
  font-size: 15px;
  letter-spacing: 0.03em;
  padding: 4px 10px 2px;
  border-radius: 999px;
  color: var(--black);
  white-space: nowrap;
}
.badge--bronze { background: var(--bronze); color: #1a0f06; }
.badge--silver { background: var(--silver); }
.badge--gold { background: var(--gold); }
.badge--platinum { background: var(--platinum); }
.badge--none {
  background: transparent;
  border: 1px dashed var(--line-strong);
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 5px 9px 4px;
}

/* ---------------------------------------------------------------- drill detail */

.player-frame {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel-2);
  aspect-ratio: 16 / 9;
}
.player-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.player-frame--empty {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  color: var(--muted-2);
  gap: 8px;
}
.player-frame--empty strong {
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.cue {
  border-left: 3px solid var(--orange);
  padding: 2px 0 2px 12px;
  margin: 16px 0;
  color: var(--white);
  font-size: 15px;
}

/* Tier ladder -------------------------------------------------- */

.ladder { display: grid; gap: 8px; }
.ladder__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid var(--line);
}
.ladder__row[data-earned='true'] { border-color: currentColor; background: var(--panel-2); }
.ladder__dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }
.ladder__name {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.08em;
  flex: 1;
  color: var(--white);
}
.ladder__target { font-size: 13px; color: var(--muted); }
.ladder__tick { font-size: 13px; color: currentColor; }
.ladder__row--bronze { color: var(--bronze); }
.ladder__row--silver { color: var(--silver); }
.ladder__row--gold { color: var(--gold); }
.ladder__row--platinum { color: var(--platinum); }

/* Timer -------------------------------------------------------- */

.timer { text-align: center; padding: 6px 0 2px; }
.timer__dial { position: relative; width: 200px; height: 200px; margin: 0 auto; }
.timer__dial svg { transform: rotate(-90deg); display: block; }
.timer__read {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
}
.timer__value {
  font-family: var(--font-display);
  font-size: 52px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.timer__hint {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted-2);
}
.timer__actions { display: flex; gap: 10px; justify-content: center; margin-top: 16px; }

.btn {
  min-height: var(--tap);
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.14s, background 0.18s, border-color 0.18s;
}
.btn:active { transform: scale(0.97); }
.btn--primary {
  background: linear-gradient(150deg, var(--orange), var(--flame));
  border-color: transparent;
  color: #1a0d04;
}
.btn--ghost { color: var(--muted); }
.btn--danger { color: #ff8f7a; border-color: rgba(255, 143, 122, 0.4); }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* Log form ----------------------------------------------------- */

.field { display: block; margin-bottom: 12px; }
.field__label {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}
.field input {
  width: 100%;
  min-height: var(--tap);
  padding: 0 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--white);
}
.field input::placeholder { color: var(--muted-2); }
.field--inline { display: flex; gap: 10px; align-items: flex-end; }
.field--inline > * { flex: 1; }

.history { display: grid; gap: 6px; }
.history__row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 9px 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.history__value { font-family: var(--font-display); font-size: 16px; min-width: 62px; }
.history__when { color: var(--muted-2); font-size: 12px; flex: 1; }
.history__del {
  background: none;
  border: none;
  color: var(--muted-2);
  cursor: pointer;
  font-size: 16px;
  padding: 4px 6px;
  border-radius: 6px;
}
.history__del:hover { color: #ff8f7a; }

/* ---------------------------------------------------------------- gate */

.gate { min-height: 100vh; display: grid; place-items: center; padding: 28px 18px; }
.gate__inner { width: 100%; max-width: 400px; }
.gate__logo { width: 92px; height: 92px; border-radius: 20px; display: block; margin: 0 auto 18px; }
.gate__title {
  font-family: var(--font-brush);
  font-size: 58px;
  line-height: 0.84;
  text-align: center;
  color: var(--flame);
  transform: skewX(-7deg);
  margin-bottom: 6px;
}
.gate__sub { text-align: center; color: var(--muted); font-size: 14px; margin-bottom: 24px; }

.tabs { display: flex; gap: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 18px; }
.tabs button {
  flex: 1;
  min-height: 40px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}
.tabs button[aria-selected='true'] { background: var(--panel-3); color: var(--white); }

.note { font-size: 12.5px; color: var(--muted-2); line-height: 1.45; }
.note--pad { margin-top: 14px; }

.alert {
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  font-size: 14px;
  margin-bottom: 14px;
  border: 1px solid;
}
.alert--error { background: rgba(255, 92, 66, 0.1); border-color: rgba(255, 92, 66, 0.35); color: #ffb3a3; }
.alert--ok { background: rgba(245, 136, 58, 0.1); border-color: rgba(245, 136, 58, 0.35); color: var(--orange); }

/* ---------------------------------------------------------------- bottom nav */

.tabbar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  display: flex;
  background: rgba(11, 11, 13, 0.96);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
}
.tabbar a {
  flex: 1;
  min-height: 60px;
  display: grid;
  place-items: center;
  gap: 4px;
  color: var(--muted-2);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.09em;
  border-radius: 12px;
}
.tabbar a[aria-current='page'] { color: var(--orange); }
.tabbar svg { width: 28px; height: 28px; }

/* ---------------------------------------------------------------- pulse + stats */

.pulse {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(120deg, rgba(242, 101, 34, 0.16), rgba(245, 136, 58, 0.04));
  border: 1px solid rgba(245, 136, 58, 0.28);
  border-radius: var(--radius);
  padding: 15px 16px;
}
.pulse__num { font-family: var(--font-brush); font-size: 40px; line-height: 0.9; color: var(--orange); }
.pulse__text { font-size: 13.5px; color: var(--white); }
.pulse__text span { color: var(--muted); display: block; font-size: 12.5px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px; text-align: center; }
.stat__num { font-family: var(--font-display); font-size: 24px; }
.stat__label { font-family: var(--font-display); font-size: 10px; letter-spacing: 0.1em; color: var(--muted-2); margin-top: 3px; }

/* ---------------------------------------------------------------- coach */

.coach-nav { display: flex; gap: 8px; margin: 18px 0 6px; flex-wrap: wrap; }
.chip {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.chip[aria-selected='true'] { background: var(--panel-3); color: var(--white); border-color: transparent; }
.chip__count {
  background: var(--flame);
  color: #1a0d04;
  border-radius: 999px;
  padding: 1px 7px 0;
  font-size: 11px;
}

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }

/* Sideways-scrolling squad board -------------------------------- */

.board-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 8px;
}
.board-bar__hint { font-size: 12.5px; color: var(--muted-2); }
.board-bar__arrows { display: flex; gap: 8px; flex: none; }

.board-nav {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
  padding-bottom: 4px;
  cursor: pointer;
  transition: background 0.18s, opacity 0.18s, border-color 0.18s;
}
.board-nav:hover { background: var(--panel-3); border-color: var(--orange); }
.board-nav[disabled] { opacity: 0.28; cursor: default; }
.board-nav[disabled]:hover { background: var(--panel-2); border-color: var(--line-strong); }

.board-scroll { position: relative; }
.board-scroll__viewport {
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  /* Keep the scrollbar on screen: macOS would otherwise hide it until you scroll. */
  scrollbar-color: var(--orange) var(--panel-3);
  scrollbar-width: auto;
}
.board-scroll__viewport::-webkit-scrollbar { height: 14px; }
.board-scroll__viewport::-webkit-scrollbar-track {
  background: var(--panel-3);
  border-radius: 999px;
  margin: 0 10px 3px;
}
.board-scroll__viewport::-webkit-scrollbar-thumb {
  background: var(--orange);
  border-radius: 999px;
  border: 4px solid var(--panel-3);
  min-width: 44px;
}
.board-scroll__viewport::-webkit-scrollbar-thumb:hover { background: var(--flame); }

/* Fades that tell you there is more table in that direction. */
.board-scroll::before,
.board-scroll::after {
  content: '';
  position: absolute;
  top: 1px;
  bottom: 16px;
  width: 44px;
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.2s;
}
.board-scroll::before {
  left: 1px;
  border-radius: var(--radius) 0 0 0;
  background: linear-gradient(to right, var(--panel), rgba(19, 19, 23, 0));
}
.board-scroll::after {
  right: 1px;
  border-radius: 0 var(--radius) 0 0;
  background: linear-gradient(to left, var(--panel), rgba(19, 19, 23, 0));
}
.board-scroll[data-at-start='true']::before { opacity: 0; }
.board-scroll[data-at-end='true']::after { opacity: 0; }
table.board { border-collapse: collapse; width: 100%; font-size: 13px; }
table.board th, table.board td { padding: 9px 10px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--line); }
table.board thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--panel-2);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.07em;
  color: var(--muted);
  font-weight: 400;
}
table.board thead th:first-child {
  left: 0;
  z-index: 3;
}
table.board tbody th {
  position: sticky;
  left: 0;
  background: var(--panel);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.02em;
  z-index: 1;
  box-shadow: 1px 0 0 var(--line);
}
table.board td { text-align: center; color: var(--muted-2); }
table.board tr:hover td, table.board tr:hover th { background: var(--panel-2); }
.board-station {
  display: block;
  color: var(--orange);
  font-size: 12px;
  letter-spacing: 0.04em;
}
.cell { display: inline-grid; place-items: center; gap: 1px; }
.cell__dot { width: 9px; height: 9px; border-radius: 50%; }
.cell__val { font-size: 11px; font-variant-numeric: tabular-nums; }
.cell--bronze { color: var(--bronze); }
.cell--silver { color: var(--silver); }
.cell--gold { color: var(--gold); }
.cell--platinum { color: var(--platinum); }
.cell--none { color: var(--muted-2); }

.feed { display: grid; gap: 8px; }
.feed__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.feed__row[data-new='true'] { border-color: rgba(245, 136, 58, 0.4); background: rgba(245, 136, 58, 0.06); }
.feed__who { font-family: var(--font-display); font-size: 15px; min-width: 74px; }
.feed__what { flex: 1; min-width: 0; font-size: 13.5px; }
.feed__what span { color: var(--muted-2); display: block; font-size: 12px; }

.codes { display: grid; gap: 6px; }
.code-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.code-row__name { font-family: var(--font-display); font-size: 15px; flex: 1; }
.code-row__code {
  font-family: var(--font-display);
  letter-spacing: 0.14em;
  color: var(--orange);
  background: var(--orange-soft);
  padding: 4px 10px 3px;
  border-radius: 6px;
}
.code-row__done { font-size: 12px; color: var(--muted-2); font-family: var(--font-display); letter-spacing: 0.08em; }

/* Drill manager -------------------------------------------------- */

.manage-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 13px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
}
.manage-row[data-retired='true'] { opacity: 0.55; }
.manage-row__body { flex: 1; min-width: 0; }
.manage-row__meta { font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.manage-row__targets { display: flex; gap: 6px; flex: none; }

.target-chip {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.04em;
  border: 1px solid currentColor;
  border-radius: 6px;
  padding: 3px 6px 2px;
  opacity: 0.85;
}

.manage-grid { display: grid; grid-template-columns: 90px 1fr; gap: 10px; }
.manage-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.manage-grid .field { margin-bottom: 0; }

select {
  width: 100%;
  min-height: var(--tap);
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--panel-2);
  color: var(--white);
}
select + input:not([hidden]) { margin-top: 8px; }

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

.toast {
  position: fixed;
  left: 50%;
  bottom: 84px;
  transform: translateX(-50%) translateY(14px);
  z-index: 60;
  background: var(--panel-3);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 11px 20px;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s;
  max-width: min(92vw, 420px);
  text-align: center;
}
.toast[data-show='true'] { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast strong { font-family: var(--font-brush); font-size: 17px; letter-spacing: 0.03em; }

/* Tier celebration ------------------------------------------- */

.reveal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  background: rgba(4, 4, 6, 0.86);
  backdrop-filter: blur(4px);
  padding: 24px;
  text-align: center;
}
.reveal__tier {
  font-family: var(--font-brush);
  font-size: clamp(56px, 18vw, 104px);
  line-height: 0.86;
  transform: skewX(-7deg);
  animation: pop 0.5s cubic-bezier(0.2, 1.5, 0.4, 1);
}
.reveal__label { font-family: var(--font-display); font-size: 14px; letter-spacing: 0.18em; color: var(--muted); }
.reveal__value { font-family: var(--font-display); font-size: 22px; margin-top: 6px; }
@keyframes pop {
  from { transform: skewX(-7deg) scale(0.4); opacity: 0; }
  to { transform: skewX(-7deg) scale(1); opacity: 1; }
}

.empty { text-align: center; color: var(--muted-2); padding: 30px 12px; font-size: 14px; }

.back {
  background: none;
  border: none;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 14px 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.back:hover { color: var(--white); }

.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mt { margin-top: 16px; }
.mt-lg { margin-top: 26px; }

@media (min-width: 720px) {
  .hero__name { font-size: 66px; }
  .medals { gap: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
