/* ===========================================================================
   GreenCity Padel — page-level styles
   =========================================================================== */

/* =========================================================================
   LOGIN
   ========================================================================= */
#page-login { max-width: 560px; padding-top: var(--s-8); }

.login-hero { text-align: center; margin-bottom: var(--s-8); }
.login-mark {
  display: grid;
  place-items: center;
  width: 76px; height: 76px;
  margin: 0 auto var(--s-4);
  border-radius: 24px;
  background: var(--brand-grad);
  font-size: 40px;
  box-shadow: var(--sh-brand);
  animation: float 5s ease-in-out infinite;
}
.login-title {
  font-family: var(--font-display);
  font-size: var(--fs-3xl);
  font-weight: 800;
  letter-spacing: -0.04em;
}
.login-sub { color: var(--text-2); font-size: var(--fs-sm); margin-top: 6px; }

.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.player-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: var(--s-4) var(--s-2);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: all var(--dur-2) var(--ease-out);
}
.player-tile:hover {
  transform: translateY(-3px);
  border-color: var(--brand-a30);
  background: var(--brand-a08);
}
.player-tile:active { transform: translateY(0) scale(0.97); }
.player-tile .name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  text-align: center;
  max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.player-tile .meta { font-size: 11px; color: var(--text-3); }

/* --- PIN pad -------------------------------------------------------------- */
.pin-wrap { text-align: center; }
.pin-dots { display: flex; justify-content: center; gap: 13px; margin: var(--s-6) 0 var(--s-4); }
.pin-dot {
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 2px solid var(--line-2);
  transition: all var(--dur-2) var(--ease-spring);
}
.pin-dot.filled { background: var(--brand); border-color: var(--brand); transform: scale(1.18); }
.pin-msg { min-height: 22px; font-size: var(--fs-sm); color: var(--text-2); margin-bottom: var(--s-4); }
.pin-msg.error { color: var(--danger); font-weight: 600; }

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-3);
  max-width: 300px;
  margin: 0 auto;
}
.pin-key {
  aspect-ratio: 1.35;
  display: grid;
  place-items: center;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  transition: all var(--dur-1) var(--ease);
}
.pin-key:hover { background: var(--surface-2); }
.pin-key:active { transform: scale(0.94); background: var(--brand-a15); border-color: var(--brand); }
.pin-key.util { font-size: 1.1rem; color: var(--text-2); }

/* =========================================================================
   DASHBOARD
   ========================================================================= */
.hero {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  margin-bottom: var(--s-5);
}
.hero-greeting { font-size: var(--fs-sm); color: var(--text-2); }
.hero-name {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.hero-meta { display: flex; align-items: center; gap: var(--s-2); margin-top: 6px; flex-wrap: wrap; }

.level-bar { margin-top: var(--s-2); max-width: 260px; }
.level-bar .row-between { font-size: var(--fs-xs); color: var(--text-3); margin-bottom: 5px; }

.dash-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 1000px) {
  .dash-grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; }
}

/* --- next session card ---------------------------------------------------- */
.next-session {
  position: relative;
  overflow: hidden;
  padding: var(--s-5);
}
.next-session::after {
  content: '🎾';
  position: absolute;
  right: -18px; bottom: -26px;
  font-size: 130px;
  opacity: 0.05;
  transform: rotate(-14deg);
  pointer-events: none;
}
.ns-when {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ns-count {
  display: flex;
  gap: var(--s-2);
  margin: var(--s-4) 0;
  flex-wrap: wrap;
}
.ns-unit {
  min-width: 58px;
  padding: 9px 11px;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line);
  text-align: center;
}
.ns-unit b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.ns-unit span { font-size: 10px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; }

/* --- recent match rows ---------------------------------------------------- */
.match-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-2);
  transition: all var(--dur-1) var(--ease);
}
.match-row + .match-row { margin-top: var(--s-2); }
.match-row.won  { border-left-color: var(--brand); }
.match-row.lost { border-left-color: var(--danger); }
.match-row:hover { background: var(--surface-2); }
.match-row .teams { min-width: 0; flex: 1; }
.match-row .when { font-size: var(--fs-xs); color: var(--text-3); }
.match-row .vs-line {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 3px;
  font-size: var(--fs-sm);
  flex-wrap: wrap;
}
.match-row .vs-line .side { display: flex; align-items: center; gap: 5px; }
.match-row .vs-line .x { color: var(--text-3); font-size: var(--fs-xs); font-weight: 700; }
.match-row .score {
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* =========================================================================
   SATURDAY SESSION
   ========================================================================= */
.session-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
  padding: var(--s-5);
  margin-bottom: var(--s-5);
}
.session-date {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.session-status { display: flex; align-items: center; gap: var(--s-2); margin-top: 6px; flex-wrap: wrap; }

.rsvp-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }
.rsvp-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: var(--s-3) var(--s-2);
  border-radius: var(--r);
  background: var(--surface);
  border: 1.5px solid var(--line);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-2);
  transition: all var(--dur-2) var(--ease-out);
}
.rsvp-btn .rsvp-icon { font-size: 21px; }
.rsvp-btn:hover { background: var(--surface-2); }
.rsvp-btn.on.in    { border-color: var(--brand);  background: var(--brand-a15);  color: var(--brand); }
.rsvp-btn.on.maybe { border-color: var(--warn);   background: var(--warn-a15);   color: var(--warn); }
.rsvp-btn.on.out   { border-color: var(--danger); background: var(--danger-a15); color: var(--danger); }

.attend-group + .attend-group { margin-top: var(--s-4); }
.attend-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: var(--s-2);
}
.attend-chips { display: flex; flex-wrap: wrap; gap: var(--s-2); }

/* --- time proposals ------------------------------------------------------- */
.proposal {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
}
.proposal + .proposal { margin-top: var(--s-2); }
.proposal .fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--brand-a08);
  transition: width var(--dur-3) var(--ease-out);
  pointer-events: none;
}
.proposal > * { position: relative; }
.proposal.leading { border-color: var(--brand-a30); }
.proposal .time { font-family: var(--font-display); font-weight: 700; }
.proposal .by { font-size: var(--fs-xs); color: var(--text-3); }

/* --- round cards ---------------------------------------------------------- */
.round-card {
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: all var(--dur-2) var(--ease);
}
.round-card + .round-card { margin-top: var(--s-3); }
.round-card.live { border-color: var(--danger); box-shadow: 0 0 26px rgba(255, 90, 110, 0.14); }
.round-card.done { opacity: 0.82; }
.round-card.next { border-color: var(--brand-a30); background: linear-gradient(160deg, var(--brand-a08), var(--surface) 55%); }

.round-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.round-n {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.matchup {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-3);
}
.matchup .side { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.matchup .side.right { align-items: flex-end; }
.matchup .side.right .player-line { flex-direction: row-reverse; }
.matchup .player-line {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  font-size: var(--fs-sm);
  font-weight: 600;
}
.matchup .player-line .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.matchup .vs {
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-3);
}
.matchup .side.winner .player-line { color: var(--brand); }

.round-score {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
}
.sit-out {
  margin-top: var(--s-3);
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
  font-size: var(--fs-xs);
  color: var(--text-3);
}

/* --- shuffle reveal ------------------------------------------------------- */
.shuffle-stage {
  display: grid;
  place-items: center;
  gap: var(--s-4);
  min-height: 220px;
  text-align: center;
}
.shuffle-reel {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  justify-content: center;
}
.shuffle-slot {
  display: grid;
  place-items: center;
  width: 62px; height: 62px;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-size: 30px;
  transition: transform var(--dur-1) var(--ease);
}
.shuffle-slot.rolling { animation: shuffle-roll 110ms linear infinite; }
.shuffle-slot.locked {
  border-color: var(--brand);
  background: var(--brand-a15);
  animation: pop var(--dur-2) var(--ease-spring);
}
@keyframes shuffle-roll {
  0%   { transform: translateY(0) }
  50%  { transform: translateY(-7px) }
  100% { transform: translateY(0) }
}

/* --- standings ------------------------------------------------------------ */
.standing-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: 11px var(--s-3);
  border-radius: var(--r-sm);
  transition: background var(--dur-1) var(--ease);
}
.standing-row + .standing-row { border-top: 1px solid var(--line); }
.standing-row.is-me { background: var(--brand-a08); }
.standing-row .pos {
  width: 26px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}
.standing-row.p1 .pos { color: var(--gold); }
.standing-row.p2 .pos { color: var(--silver); }
.standing-row.p3 .pos { color: var(--bronze); }
.standing-row .nm { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.standing-row .pts {
  font-family: var(--font-display);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* =========================================================================
   LIVE SCOREBOARD
   ========================================================================= */
.scoreboard {
  position: fixed;
  inset: 0;
  z-index: 800;
  display: none;
  flex-direction: column;
  background: var(--bg);
  padding-top: var(--safe-t);
  padding-bottom: var(--safe-b);
}
.scoreboard.open { display: flex; animation: fade-in var(--dur-2) var(--ease) both; }

.sb-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: 10px var(--s-4);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.sb-meta { font-size: var(--fs-xs); color: var(--text-3); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }

/* Set-by-set strip */
.sb-sets { display: flex; align-items: center; gap: var(--s-2); }
.sb-set {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 26px;
  padding: 3px 6px;
  border-radius: 7px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: var(--fs-sm);
  font-weight: 700;
  line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.sb-set.current { border-color: var(--brand-a30); background: var(--brand-a08); }
.sb-set .hi { color: var(--brand); }
.sb-set .lo { color: var(--text-3); }

.sb-body { flex: 1; display: flex; flex-direction: column; min-height: 0; }

.sb-team {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: var(--s-4);
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background var(--dur-1) var(--ease);
  overflow: hidden;
}
.sb-team:active { background: var(--brand-a08); }
.sb-team.t1 { border-bottom: 1px solid var(--line); }
.sb-team.serving::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--brand-grad);
}

.sb-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 700;
  text-align: center;
}
.sb-names .who { display: inline-flex; align-items: center; gap: 6px; }
.sb-names .who.server::after {
  content: '🎾';
  font-size: 12px;
  animation: breathe 1.6s ease-in-out infinite;
}

.sb-point {
  font-family: var(--font-display);
  font-size: clamp(4.5rem, 22vw, 9rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
  animation: count-flip var(--dur-2) var(--ease-spring);
}
.sb-team.leading .sb-point { color: var(--brand); }

.sb-games {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--fs-sm);
  color: var(--text-2);
}
.sb-games b {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.sb-flag {
  position: absolute;
  top: var(--s-3);
  left: 50%;
  transform: translateX(-50%);
}

.sb-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-top: 1px solid var(--line);
  flex-shrink: 0;
}
.sb-hint { font-size: var(--fs-xs); color: var(--text-3); text-align: center; flex: 1; }

/* Landscape / wide: put the teams side by side, which is how a phone actually
   sits on the bench between points. */
@media (orientation: landscape) and (max-height: 560px), (min-width: 900px) {
  .sb-body { flex-direction: row; }
  .sb-team.t1 { border-bottom: none; border-right: 1px solid var(--line); }
}

/* Read-only spectator view */
.scoreboard.spectate .sb-team { cursor: default; }
.scoreboard.spectate .sb-team:active { background: transparent; }

/* =========================================================================
   LEADERBOARD
   ========================================================================= */
.podium {
  display: grid;
  grid-template-columns: 1fr 1.22fr 1fr;
  align-items: end;
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-4) var(--s-2);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: none;
  text-align: center;
  min-width: 0;
}
.podium-slot.p1 {
  padding-top: var(--s-6);
  border-color: rgba(255, 201, 77, 0.35);
  background: linear-gradient(180deg, rgba(255, 201, 77, 0.12), var(--surface) 65%);
}
.podium-slot.p2 { border-color: rgba(203, 213, 225, 0.24); }
.podium-slot.p3 { border-color: rgba(224, 138, 75, 0.24); }
.podium-rank {
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: var(--fs-sm);
  font-weight: 800;
  color: var(--bg);
}
.podium-slot.p1 .podium-rank { background: var(--gold); }
.podium-slot.p2 .podium-rank { background: var(--silver); }
.podium-slot.p3 .podium-rank { background: var(--bronze); }
.podium-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-sm);
  max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.podium-score { font-size: var(--fs-xs); color: var(--text-2); }
.podium-empty { opacity: 0.4; }

/* =========================================================================
   PROFILE
   ========================================================================= */
.profile-head {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  flex-wrap: wrap;
  margin-bottom: var(--s-5);
}
.profile-title { font-family: var(--font-display); font-size: var(--fs-2xl); font-weight: 800; letter-spacing: -0.03em; }

.spark {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 84px;
}
.spark-bar {
  flex: 1;
  min-width: 8px;
  border-radius: 5px 5px 2px 2px;
  background: var(--brand-a30);
  transition: height var(--dur-3) var(--ease-out);
  position: relative;
}
.spark-bar.w { background: var(--brand-grad); }
.spark-bar.l { background: linear-gradient(180deg, var(--danger), rgba(255, 90, 110, 0.35)); }

.relation {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
}
.relation .rel-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.relation .rel-name { font-family: var(--font-display); font-weight: 700; }
.relation .rel-meta { font-size: var(--fs-xs); color: var(--text-2); }

.grid-2 { display: grid; grid-template-columns: 1fr; gap: var(--s-3); }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.grid-auto {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s-3);
}

/* --- rivalry -------------------------------------------------------------- */
.rivalry {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-4);
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
}
.rivalry-bar {
  display: flex;
  height: 30px;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.3);
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 800;
}
.rivalry-bar > div {
  display: grid;
  place-items: center;
  transition: width var(--dur-3) var(--ease-out);
  min-width: 0;
}
.rivalry-bar .me   { background: var(--brand-a30); color: var(--brand); }
.rivalry-bar .them { background: var(--danger-a15); color: var(--danger); }

/* =========================================================================
   ACHIEVEMENTS
   ========================================================================= */
.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: var(--s-3);
}
.badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: var(--s-5) var(--s-3);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: center;
  transition: all var(--dur-2) var(--ease-out);
}
.badge .badge-icon { font-size: 38px; line-height: 1; }
.badge .badge-name { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); }
.badge .badge-desc { font-size: var(--fs-xs); color: var(--text-3); line-height: 1.35; }
.badge.locked { opacity: 0.42; }
.badge.locked .badge-icon { filter: grayscale(1); }
.badge.unlocked {
  border-color: var(--brand-a30);
  background: linear-gradient(170deg, var(--brand-a08), var(--surface) 60%);
}
.badge.unlocked:hover { transform: translateY(-3px); box-shadow: var(--sh-brand); }
.badge-progress { width: 100%; margin-top: 2px; }

.badge-shelf { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.badge-mini {
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border-radius: var(--r-sm);
  background: var(--brand-a08);
  border: 1px solid var(--brand-a30);
  font-size: 23px;
  cursor: default;
}

/* =========================================================================
   TEAM WALL
   ========================================================================= */
.compose { display: flex; flex-direction: column; gap: var(--s-3); }
.post {
  padding: var(--s-4);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.post + .post { margin-top: var(--s-3); }
.post.pinned { border-color: var(--brand-a30); background: linear-gradient(170deg, var(--brand-a08), var(--surface) 55%); }
.post-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); }
.post-author { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-sm); }
.post-time { font-size: var(--fs-xs); color: var(--text-3); }
.post-body {
  margin: var(--s-3) 0;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.post-reactions { display: flex; gap: 6px; flex-wrap: wrap; }
.react {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: var(--r-full);
  background: var(--surface-2);
  border: 1px solid transparent;
  font-size: var(--fs-sm);
  transition: all var(--dur-1) var(--ease);
}
.react:hover { background: var(--surface-3); transform: translateY(-1px); }
.react.on { background: var(--brand-a15); border-color: var(--brand-a30); color: var(--brand); }
.react .n { font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums; }

/* =========================================================================
   PHOTOS
   ========================================================================= */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: var(--s-2);
}
.photo-tile {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform var(--dur-2) var(--ease-out);
}
.photo-tile:hover { transform: scale(1.03); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile .cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 16px 9px 7px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
  font-size: 11px;
  font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.photo-album + .photo-album { margin-top: var(--s-6); }
.photo-viewer img {
  width: 100%;
  border-radius: var(--r);
  background: var(--bg-2);
}
.photo-drop {
  display: grid;
  place-items: center;
  gap: var(--s-2);
  padding: var(--s-8) var(--s-4);
  border: 1.5px dashed var(--line-2);
  border-radius: var(--r-lg);
  text-align: center;
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--dur-2) var(--ease);
}
.photo-drop:hover, .photo-drop.over { border-color: var(--brand); background: var(--brand-a08); color: var(--text); }

/* =========================================================================
   GIVEAWAYS
   ========================================================================= */
.giveaway {
  position: relative;
  overflow: hidden;
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
}
.giveaway::after {
  content: '🎁';
  position: absolute;
  right: -14px; bottom: -20px;
  font-size: 108px;
  opacity: 0.055;
  transform: rotate(-12deg);
  pointer-events: none;
}
.giveaway.active { border-color: var(--brand-a30); background: linear-gradient(160deg, var(--brand-a08), var(--surface) 58%); }
.giveaway.ended { opacity: 0.65; }
.giveaway-prize {
  font-family: var(--font-display);
  font-size: var(--fs-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.giveaway-entries { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-3); }

.winner-spot {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r);
  background: rgba(255, 201, 77, 0.1);
  border: 1px solid rgba(255, 201, 77, 0.3);
}

/* =========================================================================
   RECAP CARD (shareable)
   ========================================================================= */
.recap {
  position: relative;
  overflow: hidden;
  padding: var(--s-6);
  border-radius: var(--r-xl);
  background:
    radial-gradient(600px 300px at 80% -10%, rgba(23, 224, 126, 0.2), transparent 60%),
    linear-gradient(165deg, var(--bg-3), var(--bg));
  border: 1px solid var(--brand-a30);
}
.recap-head { text-align: center; margin-bottom: var(--s-5); }
.recap-title {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.recap-mvp {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-5);
  border-radius: var(--r-lg);
  background: rgba(255, 201, 77, 0.08);
  border: 1px solid rgba(255, 201, 77, 0.28);
  text-align: center;
  margin-bottom: var(--s-4);
}
.recap-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-2); }

/* =========================================================================
   PREDICTIONS
   ========================================================================= */
.predict-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-2); }
.predict-btn {
  padding: var(--s-3);
  border-radius: var(--r);
  background: var(--surface);
  border: 1.5px solid var(--line);
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: all var(--dur-2) var(--ease-out);
}
.predict-btn:hover { background: var(--surface-2); }
.predict-btn.on { border-color: var(--brand); background: var(--brand-a15); color: var(--brand); }
.predict-btn.correct { border-color: var(--brand); background: var(--brand-a15); }
.predict-btn.wrong { border-color: var(--danger); background: var(--danger-a15); opacity: 0.7; }

/* =========================================================================
   RECORD MATCH (manual entry)
   ========================================================================= */
.teams-picker {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--s-3);
}
@media (max-width: 620px) {
  .teams-picker { grid-template-columns: 1fr; }
  .teams-picker .vs-chip { justify-self: center; }
}
.team-box {
  padding: var(--s-4);
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
}
.team-box h4 {
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 800;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: var(--s-3);
}
.vs-chip {
  display: grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-sm);
  color: var(--text-3);
}

.set-row {
  display: grid;
  grid-template-columns: 62px 1fr 18px 1fr;
  align-items: center;
  gap: var(--s-3);
}
.set-row + .set-row { margin-top: var(--s-2); }
.set-label { font-size: var(--fs-xs); font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.07em; }
.score-input { text-align: center; font-family: var(--font-display); font-size: var(--fs-md); font-weight: 700; }
.set-row .dash { text-align: center; color: var(--text-3); }

/* --- filter bar ----------------------------------------------------------- */
.filter-bar {
  display: flex;
  gap: var(--s-2);
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: var(--s-4);
}
.filter-bar .select { width: auto; min-width: 132px; }
