/* ── Design tokens: "Dark Label" system ───────────────────────────────────
   Near-black ground, warm bone ink, amber + Padel IQ's own fluo green as
   the two accents. Syne carries headings, Sora carries small type at wide
   tracking. Accents stay to type/dots/rules — never a filled area (except
   the deck cards, which alone are allowed a shadow). No bento grid, no glow. */

:root {
  --ground: #0A0C0E;
  --ground-2: #101317;
  --ink: #EDE7DC;
  --ink-2: #9EA5A8;
  --muted: #6C7378;
  --amber: #E8913C;
  --teal: #00F5A0; /* Padel IQ brand fluo green (kept the --teal name so every existing usage below just changes color) */
  --hairline: rgba(237, 231, 220, 0.13);
  --hairline-strong: rgba(237, 231, 220, 0.28);
  --danger: #c4664f;

  --font-display: 'Syne', -apple-system, sans-serif;
  --font-sans: 'Sora', -apple-system, sans-serif;

  --radius: 3px;
  --radius-pill: 999px;

  /* legacy aliases — keep every existing view (chat, forms, tabs...) resolving sensibly */
  --bg: var(--ground);
  --bg-card: var(--ground-2);
  --bg-elevated: #14181c;
  --bg-chip: var(--ground-2);
  --ring: var(--hairline);
  --ring-strong: var(--hairline-strong);
  --accent-blue: var(--teal);
  --accent: var(--teal);
  --success: var(--teal);
  --warning: var(--muted);
  --text-primary: var(--ink);
  --text-secondary: var(--ink-2);
  --text-muted: var(--muted);
  --radius-lg: var(--radius);
  --radius-square: 0px;
  --font-mono: var(--font-sans);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 15px;
  background:
    radial-gradient(circle at 15% 0%, rgba(0,245,160,0.06), transparent 32%),
    radial-gradient(circle at 100% 30%, rgba(232,145,60,0.04), transparent 30%),
    var(--ground);
  color: var(--ink);
}

a { color: inherit; }
::selection { background: var(--amber); color: var(--ground); }

.label {
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--ink-2);
}

/* ── Navigation ───────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 56px;
  background: rgba(10, 12, 14, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-mark { display: none; }
.brand::after { content: '.'; color: var(--amber); }

.nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav-link {
  padding: 8px 12px;
  font-family: var(--font-sans);
  text-transform: uppercase;
  font-size: 10.5px;
  letter-spacing: .12em;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink-2);
  transition: color .15s ease;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-link:hover { color: var(--amber); }
.nav-link.active { color: var(--ink); }
.nav-logout {
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  color: var(--ink);
  padding: 8px 16px;
}
.nav-logout:hover { color: var(--amber); border-color: var(--amber); }

.app-container { max-width: 900px; margin: 0 auto; padding: 0 0 100px; }

.loading { text-align: center; padding: 80px 20px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; }

/* ── Cards / inputs / buttons (shared across every screen) ──────────────── */
.card {
  background: var(--ground-2);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px;
  margin: 0 20px 18px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: rgba(0,245,160,0.35); box-shadow: 0 0 0 1px rgba(0,245,160,0.06), 0 8px 24px rgba(0,0,0,0.35); }

.app-container > h1.page-title,
.app-container > p.page-subtitle,
.app-container > .card,
.app-container > .chip-row,
.app-container > .empty-state {
  margin-left: 20px;
  margin-right: 20px;
}

h1.page-title { font-family: var(--font-display); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; margin: 32px 0 4px; }
p.page-subtitle { color: var(--ink-2); margin: 0 0 24px; font-size: 14px; }
h2.section-title {
  font-family: var(--font-sans);
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 32px 20px 14px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  display: flex;
  align-items: center;
  gap: 8px;
}
h2.section-title::before { content: ''; width: 10px; height: 2px; background: var(--teal); flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--ink);
  font-family: var(--font-sans);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: .1em;
  cursor: pointer;
  background: var(--ink);
  color: var(--ground);
  transition: opacity .18s ease, background .18s ease, color .18s ease, transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s ease, border-color .18s ease;
}
.btn:hover { opacity: 1; transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,245,160,0.16), 0 2px 6px rgba(0,0,0,0.3); border-color: var(--teal); }
.btn:active { transform: translateY(0) scale(0.97); box-shadow: none; }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-outline { background: transparent; border: 1px solid var(--hairline-strong); color: var(--ink); }
.btn-outline:hover { border-color: var(--teal); color: var(--teal); background: rgba(0,245,160,0.06); }
.btn-danger { background: transparent; border: 1px solid var(--danger); color: var(--danger); }
.btn-danger:hover { background: rgba(196,102,79,0.1); box-shadow: none; border-color: var(--danger); }
.btn-block { width: 100%; }
.btn-sm { padding: 9px 16px; font-size: 10px; }
.btn-arrow::after { content: '↗'; margin-left: 2px; display: inline-block; transition: transform .18s ease; }
.btn:hover .btn-arrow::after, .btn-arrow:hover::after { transform: translate(2px,-2px); }

.input, textarea, select {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--hairline);
  background: var(--ground);
  color: var(--ink);
  font-size: 14px;
  font-family: var(--font-sans);
  margin-bottom: 12px;
}
.input:focus, textarea:focus { outline: none; border-color: var(--teal); }
textarea { resize: vertical; min-height: 80px; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: transparent;
  border: 1px solid var(--hairline);
  cursor: pointer;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 500;
  color: var(--ink-2);
  white-space: nowrap;
  transition: all .15s ease;
}
.chip:hover { color: var(--ink); border-color: var(--hairline-strong); }
.chip.active { background: var(--teal); color: var(--ground); border-color: var(--teal); font-weight: 600; }
.chip-row { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 18px; }

.slots-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: 1px; margin-top: 12px; background: var(--hairline); border: 1px solid var(--hairline); }
.slot {
  padding: 12px 4px;
  text-align: center;
  background: var(--ground-2);
  color: var(--ink);
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
  transition: all .15s ease;
}
.slot:hover { background: var(--ground); color: var(--teal); }
.slot.booked { background: var(--ground); color: var(--muted); cursor: not-allowed; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--hairline);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--ink-2);
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.badge-confirmed::before { background: var(--teal); }
.badge-pending::before { background: var(--amber); }
.badge-rejected::before, .badge-cancelled::before { background: var(--danger); }

.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row-start { display: flex; align-items: center; gap: 10px; }
.muted { color: var(--ink-2); font-size: 13px; }
.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); border: 1px solid var(--hairline); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }

.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--teal); color: var(--ground);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px; flex-shrink: 0; overflow: hidden;
  font-family: var(--font-display);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.tabs { display: flex; gap: 0; margin: 0 20px 20px; border: 1px solid var(--hairline); }
.tab { flex: 1; text-align: center; padding: 12px; background: transparent; color: var(--ink-2); cursor: pointer; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 500; border-right: 1px solid var(--hairline); }
.tab:last-child { border-right: none; }
.tab.active { background: var(--ground-2); color: var(--ink); }

.chat-box { display: flex; flex-direction: column; height: 420px; padding: 0 20px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 10px 4px; display: flex; flex-direction: column; gap: 10px; }
.chat-msg { max-width: 75%; padding: 10px 14px; background: var(--ground-2); border: 1px solid var(--hairline); font-size: 13px; }
.chat-msg .who { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--teal); font-weight: 600; margin-bottom: 3px; }
.chat-msg.me { align-self: flex-end; border-color: var(--teal); }
.chat-input-row { display: flex; gap: 8px; margin-top: 10px; }
.chat-input-row .input { margin-bottom: 0; }

.level-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 20px 20px; }

.auth-card { max-width: 380px; margin: 0 auto; }
.auth-toggle { text-align: center; margin-top: 14px; font-size: 12px; color: var(--ink-2); }
.auth-toggle a { color: var(--amber); font-weight: 600; cursor: pointer; text-decoration: none; }
.error-text { color: var(--danger); font-size: 12px; margin: -4px 0 12px; }

.friend-item { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--hairline); }
.friend-item:last-child { border-bottom: none; }
.friend-item.selected { border-color: rgba(0,245,160,0.4); background: rgba(0,245,160,0.05); }
.fav-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  color: var(--ground);
  flex-shrink: 0;
}
.fav-check.active { background: var(--teal); border-color: var(--teal); }

/* ── Interactive calendar grid ────────────────────────────────────────── */
.cal-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.cal-cell.empty { cursor: default; }
.cal-cell:not(.empty):hover { background: rgba(255,255,255,0.05); color: var(--ink); }
.cal-cell.today { color: var(--amber); font-weight: 700; }
.cal-cell.selected { background: var(--teal); color: var(--ground); font-weight: 700; }
.cal-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); }
.cal-cell.selected .cal-dot { background: var(--ground); }

::-webkit-scrollbar { height: 6px; width: 6px; }
::-webkit-scrollbar-thumb { background: var(--hairline-strong); border-radius: 3px; }

.login-wrap { max-width: 480px; margin: 60px auto 0; padding: 0 20px; }
.login-wrap .card { margin: 0; }

/* Full-bleed escape hatch for the immersive sections — .app-container caps
   at 900px, but the portal/fold/releases/close sections read edge-to-edge. */
.portal-section, .fold-section, .releases-section, .close-section {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

/* ── Portal hero ──────────────────────────────────────────────────────── */
.portal-section {
  height: 250vh;
  margin-bottom: 0;
}
.portal-section.compact { height: 100vh; }

.portal-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  isolation: isolate;
}

.portal-image {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.12);
  will-change: transform;
}

.portal-duotone {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--amber), var(--teal));
  mix-blend-mode: overlay;
  opacity: 0;
  will-change: opacity;
}

.portal-veil {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 30%, rgba(10,12,14,0.85) 100%);
}

.portal-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 52%;
  background: var(--ground);
  z-index: 3;
  will-change: transform;
}
.portal-panel.left { left: 0; }
.portal-panel.right { right: 0; }

.portal-dot {
  position: absolute;
  top: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  z-index: 4;
  box-shadow: 0 0 12px currentColor;
  will-change: transform, opacity;
}
.portal-dot.amber { left: 50%; color: var(--amber); background: var(--amber); }
.portal-dot.teal { left: 50%; color: var(--teal); background: var(--teal); }

.portal-word {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: flex;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 8vw, 96px);
  letter-spacing: -0.02em;
  color: var(--ink);
  will-change: transform;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.portal-word span { display: block; will-change: transform, letter-spacing; }
.portal-word .amber-dot { color: var(--amber); }

.portal-meta {
  position: absolute;
  z-index: 4;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--ink-2);
}
.portal-meta.top-left { top: 78px; left: 56px; }
.portal-meta.top-right { top: 78px; right: 56px; text-align: right; }
.portal-meta.bottom-left { bottom: 40px; left: 56px; }
.portal-meta.bottom-right { bottom: 40px; right: 56px; text-align: right; }

.portal-cta {
  position: absolute;
  z-index: 5;
  bottom: 100px;
  left: 56px;
  opacity: 0;
  transition: opacity .5s ease;
}
.js-ready .portal-cta { opacity: 1; }

/* ── Statement fold ───────────────────────────────────────────────────── */
.fold-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 80px 56px;
  overflow: hidden;
}

.fold-index {
  font-family: var(--font-display);
  font-size: clamp(120px, 22vw, 280px);
  font-weight: 800;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px var(--hairline-strong);
  position: absolute;
  top: 40px;
  left: 40px;
  z-index: 0;
  user-select: none;
}

.fold-content { position: relative; z-index: 1; max-width: 640px; }

.fold-statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(24px, 3.6vw, 52px);
  letter-spacing: -0.02em;
  line-height: 1.2;
  max-width: 22ch;
  margin: 20px 0 0;
}
.fold-statement .amber { color: var(--amber); }

.fold-orb {
  position: absolute;
  right: -8%;
  top: 50%;
  width: min(38vw, 380px);
  height: min(38vw, 380px);
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  z-index: 0;
  will-change: transform;
}

/* ── Releases / deck section ──────────────────────────────────────────── */
.releases-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 90px 56px;
  border-top: 1px solid var(--hairline);
  align-items: center;
}

.releases-copy .label { margin-bottom: 18px; display: block; }
.releases-headline { font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 3vw, 40px); letter-spacing: -0.02em; margin: 0 0 14px; }
.releases-lede { color: var(--ink-2); font-size: 14px; line-height: 1.6; margin: 0 0 28px; max-width: 42ch; }
.releases-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.deck-wrap { display: flex; flex-direction: column; align-items: center; }
.deck {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  touch-action: pan-y;
  outline: none;
}
.deck-card {
  position: absolute;
  inset: 0;
  background: var(--ground-2);
  border: 1px solid var(--hairline-strong);
  box-shadow: 0 20px 50px rgba(0,0,0,0.45);
  cursor: grab;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
  background-size: cover;
  background-position: center;
}
.deck-card:active { cursor: grabbing; }
.deck-card.dragging { transition: none; }
.deck-card .deck-scrim { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10,12,14,0.9), rgba(10,12,14,0.1) 60%); }
.deck-card .deck-city { position: relative; font-size: 10.5px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-2); }
.deck-card .deck-name { position: relative; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; margin-top: 4px; }
.deck-card .deck-courts { position: relative; font-size: 11px; color: var(--ink-2); margin-top: 6px; }
.deck-fav {
  position: absolute;
  top: 14px; right: 14px;
  z-index: 2;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid var(--hairline-strong);
  background: rgba(10,12,14,0.6);
  color: var(--ink-2);
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.deck-fav.active { color: var(--amber); border-color: var(--amber); }

.deck-hint { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 20px; }
.deck-dots { display: flex; gap: 6px; margin-top: 10px; }
.deck-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--hairline-strong); }
.deck-dot.active { background: var(--amber); }

/* ── Roster / dates ───────────────────────────────────────────────────── */
.roster-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 56px;
  border-bottom: 1px solid var(--hairline);
}
.roster-row .label { min-width: 90px; }
.roster-name { font-family: var(--font-display); font-weight: 700; font-size: 18px; flex: 1; margin: 0 16px; }
.roster-count { color: var(--ink-2); font-size: 13px; }

.dates-table { width: 100%; border-collapse: collapse; margin: 0; }
.dates-table th {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  font-weight: 500;
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
}
.dates-table td {
  padding: 16px;
  border-bottom: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-2);
}
.dates-table td:first-child { font-family: var(--font-display); font-weight: 600; color: var(--ink); }

/* ── Close section ────────────────────────────────────────────────────── */
.close-section { padding: 90px 56px 0; border-top: 1px solid var(--hairline); }
.close-headline { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 3vw, 36px); letter-spacing: -0.02em; margin: 0 0 8px; }
.close-fine { color: var(--muted); font-size: 12.5px; margin: 0 0 28px; }
.close-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 60px; }
.close-footer { border-top: 1px solid var(--hairline); padding: 20px 0; display: flex; justify-content: space-between; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.close-wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(64px, 16vw, 220px);
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--ink);
  margin: 0;
  transform: translateY(28%);
  overflow: hidden;
  white-space: nowrap;
}
.close-wordmark::after { content: '.'; color: var(--amber); }

/* ── Scroll reveal (fires once — never un-reveals) ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
}
.js-ready .reveal { transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ── Photo gallery strip (still used as a lighter alternative) ──────────── */
.gallery-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0 20px 28px; background: var(--hairline); border: 1px solid var(--hairline); }
.gallery-item { position: relative; overflow: hidden; aspect-ratio: 4 / 3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); background: linear-gradient(0deg, rgba(0,0,0,0.85), transparent); }

/* ── Page transition (route fade) ────────────────────────────────────── */
#app { transition: opacity .22s ease; }
#app.page-leaving { opacity: 0; }

/* ── Toasts ───────────────────────────────────────────────────────────── */
.toast-stack {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  align-items: center;
  pointer-events: none;
}
.toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--ground-2);
  border: 1px solid var(--hairline-strong);
  font-size: 13px;
  color: var(--ink);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
  cursor: pointer;
  pointer-events: auto;
  white-space: nowrap;
}
.toast.in { opacity: 1; transform: none; }
.toast-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); flex-shrink: 0; }
.toast-success .toast-dot { background: var(--teal); }
.toast-error .toast-dot { background: var(--danger); }
.toast-info .toast-dot { background: var(--amber); }

/* ── Confirm dialog (replaces window.confirm) ────────────────────────── */
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 12, 14, 0.7);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .2s ease;
  padding: 20px;
}
.confirm-overlay.in { opacity: 1; }
.confirm-box {
  background: var(--ground-2);
  border: 1px solid var(--hairline-strong);
  padding: 26px;
  max-width: 380px;
  width: 100%;
  transform: scale(0.96);
  transition: transform .2s ease;
}
.confirm-overlay.in .confirm-box { transform: scale(1); }
.confirm-msg { margin: 0 0 20px; font-size: 14px; line-height: 1.5; color: var(--ink); }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  #app { transition: none; }
}

@media (max-width: 900px) {
  .topbar { padding: 0 20px; }
  .fold-section, .releases-section, .roster-row, .close-section { padding-left: 20px; padding-right: 20px; }
  .releases-section { grid-template-columns: 1fr; gap: 40px; }
  .fold-orb { display: none; }
  .portal-meta.top-right, .portal-meta.bottom-right { display: none; }
  .dates-table { display: block; overflow-x: auto; }
}

@media (max-width: 640px) {
  .topbar { padding: 0 16px; }
  .nav { display: none; }
  h2.section-title { margin-left: 16px; margin-right: 16px; }
  .card, .app-container > .chip-row, .app-container > .empty-state,
  .app-container > h1.page-title, .app-container > p.page-subtitle { margin-left: 16px; margin-right: 16px; }
  .fold-index { font-size: 90px; }
  .roster-row { padding: 16px 20px; }
}
