/* ============================================================
   iqplay — Design System
   Aesthetic: Court & Heat (sport-editorial, kinetic, warm)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Manrope:wght@400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

:root {
  /* ---- Colours ---- */
  --court-orange: #FF6B35;
  --court-amber:  #F7931E;
  --court-sun:    #FFC857;
  --court-clay:   #C75B3F;
  --court-green:  #1F4030;
  --court-line:   #FFFFFF;
  --court-tint:   #FFE5D6; /* warm orange wash for «ты»/highlight rows */

  --bg-cream:     #FAF6EE;
  --bg-paper:     #FFFFFF;
  --bg-soft:      #F5EFE5;
  --bg-edge:      #EFE7D8;

  --ink:          #1A1410;
  --ink-muted:    #6B5D52;
  --ink-faint:    #B5A99A;

  --success:      #2D8B5F;
  --success-soft: #DFF1E7;
  --danger:       #C73E3A;
  --danger-soft:  #F7DEDE;
  --warn:         #E7A23E;
  --warn-soft:    #FCEFD8;

  /* ---- Gradients ---- */
  --grad-heat:    linear-gradient(160deg, #FF6B35 0%, #F7931E 55%, #FFC857 100%);
  --grad-dusk:    linear-gradient(180deg, #FF6B35 0%, #C75B3F 100%);
  --grad-court:   linear-gradient(180deg, #2D5C3E 0%, #1F4030 100%);

  /* ---- Type ---- */
  --font-display: 'Anton', 'Impact', sans-serif;
  --font-body:    'Manrope', system-ui, -apple-system, sans-serif;
  --font-mono:    'DM Mono', 'Menlo', monospace;

  /* ---- Radius ---- */
  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   14px;
  --r-lg:   20px;
  --r-xl:   28px;
  --r-full: 999px;

  /* ---- Shadow ---- */
  --shadow-card:  0 6px 20px -8px rgba(26,20,16,0.18);
  --shadow-hi:    0 18px 48px -16px rgba(26,20,16,0.28);
  --shadow-pop:   0 24px 60px -12px rgba(255,107,53,0.45);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: var(--bg-cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* =============================================================
   SCREEN FRAME — каждый экран-мокап = .screen, 420px max-width
   ============================================================= */

.screen {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--bg-paper);
  position: relative;
  overflow-x: hidden;
  padding-bottom: 96px; /* room for tab bar */
  box-shadow: 0 0 60px -20px rgba(26,20,16,0.12);
}

.screen.no-nav { padding-bottom: 24px; }

/* Status bar (mock iOS time) */
.status-bar {
  height: 44px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.2px;
  z-index: 2;
  position: relative;
}
.status-bar .right { display: flex; gap: 5px; align-items: center; opacity: 0.85; }

.hero-area .status-bar,
.dark-area .status-bar { color: var(--court-line); }

/* App header (logo + nav) */
.app-header {
  padding: 6px 22px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-header .logo {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
}
.app-header .logo .dot { color: var(--court-orange); }
.app-header .actions { display: flex; gap: 10px; align-items: center; }
.app-header .icon-btn {
  width: 36px; height: 36px;
  border-radius: var(--r-full);
  background: var(--bg-soft);
  display: grid; place-items: center;
  border: none;
  position: relative;
}
.app-header .icon-btn .badge {
  position: absolute;
  top: 4px; right: 4px;
  width: 8px; height: 8px;
  background: var(--court-orange);
  border-radius: 50%;
  border: 2px solid var(--bg-paper);
}

.hero-area .app-header .icon-btn { background: rgba(255,255,255,0.18); color: white; }
.hero-area .app-header .icon-btn .badge { border-color: var(--court-orange); }

/* Section heading */
.section { padding: 20px 22px 0; }
.section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 18px 22px 10px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}
.section-head .link {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--court-orange);
}

/* =============================================================
   HERO — оранжевый градиент с court-line текстурой
   ============================================================= */

.hero {
  background: var(--grad-heat);
  color: white;
  padding: 0 22px 28px;
  border-bottom-left-radius: 32px;
  border-bottom-right-radius: 32px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(38deg, transparent 0, transparent 42px,
      rgba(255,255,255,0.08) 42px, rgba(255,255,255,0.08) 43px);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  right: -60px; bottom: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  pointer-events: none;
}

.hero-court::before {
  background-image:
    linear-gradient(rgba(255,255,255,0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.22) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center;
  opacity: 0.18;
}

/* =============================================================
   BUTTONS
   ============================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--r-md);
  padding: 15px 22px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.1s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--grad-heat);
  color: white;
  box-shadow: var(--shadow-pop);
}
.btn-dark { background: var(--ink); color: white; }
.btn-inverse {
  background: white;
  color: var(--ink);
}
.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-ghost-light {
  background: rgba(255,255,255,0.16);
  color: white;
  border: 1px solid rgba(255,255,255,0.35);
}
.btn-soft {
  background: var(--bg-soft);
  color: var(--ink);
}
.btn-full { width: 100%; }
.btn-sm { padding: 10px 14px; font-size: 11px; }
.btn-lg { padding: 18px 24px; font-size: 14px; }

/* =============================================================
   BOTTOM TAB BAR
   ============================================================= */

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%; transform: translateX(-50%);
  width: 100%;
  max-width: 420px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid var(--bg-edge);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 10px 8px 26px;
  z-index: 50;
}
.tab-bar .tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 9px;
  font-weight: 800;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  background: none;
  border: none;
  padding: 6px 0;
}
.tab-bar .tab svg { width: 22px; height: 22px; }
.tab-bar .tab.active { color: var(--court-orange); }
.tab-bar .tab.active .tab-dot {
  position: absolute;
  bottom: 24px;
  width: 4px; height: 4px;
  background: var(--court-orange);
  border-radius: 50%;
}

/* =============================================================
   CARD
   ============================================================= */

.card {
  background: var(--bg-paper);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow-card);
}
.card-flat {
  background: var(--bg-soft);
  border-radius: var(--r-lg);
  padding: 16px;
}
.card-outline {
  background: var(--bg-paper);
  border: 1px solid var(--bg-edge);
  border-radius: var(--r-lg);
  padding: 16px;
}

/* =============================================================
   AVATAR (initial-style)
   ============================================================= */

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-soft);
  font-family: var(--font-body);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.5px;
  flex-shrink: 0;
  position: relative;
}
.avatar.sz-xs { width: 28px; height: 28px; font-size: 11px; }
.avatar.sz-sm { width: 36px; height: 36px; font-size: 13px; }
.avatar.sz-md { width: 44px; height: 44px; font-size: 15px; }
.avatar.sz-lg { width: 72px; height: 72px; font-size: 24px; }
.avatar.sz-xl { width: 96px; height: 96px; font-size: 32px; }

.avatar-o  { background: #FFE5D6; color: #C75B3F; }
.avatar-g  { background: #DFF1E7; color: #1F6B3B; }
.avatar-c  { background: #FCEFD8; color: #936B17; }
.avatar-p  { background: #ECE3F5; color: #4D2A8A; }
.avatar-b  { background: #DEEAF6; color: #2A6E9E; }
.avatar-r  { background: #F7DEDE; color: #883232; }
.avatar-k  { background: #1A1410; color: var(--court-sun); }
.avatar-orange { background: var(--court-orange); color: white; }
.avatar-cream  { background: var(--bg-paper); color: var(--ink); border: 2px solid rgba(255,255,255,0.6); }

.avatar.bordered {
  box-shadow: 0 0 0 3px white, 0 0 0 5px var(--court-orange);
}
.avatar.avatar-stack {
  margin-left: -14px;
  border: 2px solid var(--bg-paper);
}

/* =============================================================
   NTRP RATING DISPLAY
   ============================================================= */

.rating-block {
  display: flex; align-items: baseline; gap: 10px;
}
.rating-block .num {
  font-family: var(--font-display);
  font-size: 80px;
  line-height: 0.82;
  letter-spacing: -1.5px;
}
.rating-block .label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.rating-block .meta {
  font-size: 12px;
  opacity: 0.85;
}

.rating-card {
  background: white;
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.rating-card .num {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -1px;
  color: var(--ink);
}
.rating-card .right {
  text-align: right;
}
.rating-card .label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--court-orange);
}
.rating-card .trend {
  font-size: 12px;
  font-weight: 700;
  margin-top: 2px;
  color: var(--success);
}
.rating-card .trend.down { color: var(--danger); }

.rating-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: var(--court-sun);
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.6px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  text-transform: uppercase;
}
.rating-pill.nq {
  background: var(--bg-soft);
  color: var(--ink-muted);
}
.rating-pill .dot { width: 6px; height: 6px; background: var(--court-orange); border-radius: 50%; }

/* NTRP scale visual */
.ntrp-scale {
  display: flex; gap: 2px; margin-top: 8px;
}
.ntrp-scale .seg {
  flex: 1; height: 6px; border-radius: 3px;
  background: rgba(255,255,255,0.25);
}
.ntrp-scale .seg.on {
  background: var(--court-sun);
}
.ntrp-scale.dark .seg { background: var(--bg-soft); }
.ntrp-scale.dark .seg.on { background: var(--court-orange); }

/* =============================================================
   STATS GRID (компактные показатели)
   ============================================================= */

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.stats .stat {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.24);
  border-radius: var(--r-md);
  padding: 12px 10px;
  text-align: center;
}
.stats.light .stat {
  background: var(--bg-soft);
  border: none;
}
.stat .v {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1;
  letter-spacing: -0.5px;
}
.stat .l {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 6px;
  opacity: 0.85;
}

/* =============================================================
   SCORE — tennis sets, табло
   ============================================================= */

.score {
  font-family: var(--font-mono);
  display: inline-flex;
  gap: 6px;
  font-feature-settings: 'tnum';
}
.score .set {
  font-size: 18px;
  font-weight: 500;
  min-width: 18px;
  text-align: center;
  position: relative;
}
.score .set.lost { opacity: 0.4; font-weight: 400; }
.score .set sup {
  font-size: 9px;
  vertical-align: super;
  margin-left: 1px;
}

/* =============================================================
   MATCH CARD
   ============================================================= */

.match {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px;
  background: var(--bg-paper);
  border: 1px solid var(--bg-edge);
  border-radius: var(--r-lg);
}
.match .players { display: flex; flex-direction: column; gap: 8px; }
.match .row {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600;
}
.match .row.winner { font-weight: 800; }
.match .row.winner::after {
  content: '';
  margin-left: 4px;
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--court-orange);
  border-radius: 50%;
}
.match .row .name { flex: 1; }
.rating-mini {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--ink-muted);
}
.match .scores {
  display: flex; flex-direction: column; gap: 6px;
  align-items: flex-end;
}
.match .meta {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--bg-edge);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 600;
}
.match .meta .tag {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg-soft);
  padding: 3px 8px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.match .meta .tag.tournament { background: #FCEFD8; color: #936B17; }
.match .meta .tag.pending { background: var(--warn-soft); color: var(--warn); }
.match .meta .tag.disputed { background: var(--danger-soft); color: var(--danger); }

/* =============================================================
   TABS (pill)
   ============================================================= */

.tabs {
  display: flex; gap: 4px;
  padding: 4px;
  background: var(--bg-soft);
  border-radius: var(--r-full);
  margin: 0 22px;
}
.tab-pill {
  flex: 1;
  text-align: center;
  padding: 10px;
  border-radius: var(--r-full);
  font-size: 12px;
  font-weight: 800;
  color: var(--ink-muted);
  letter-spacing: 0.4px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: inherit;
}
.tab-pill.active {
  background: var(--ink);
  color: var(--court-sun);
}

/* =============================================================
   FORM
   ============================================================= */

.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.input {
  width: 100%;
  border: none;
  border-bottom: 1.5px solid var(--bg-edge);
  background: transparent;
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  outline: none;
}
.input:focus { border-bottom-color: var(--court-orange); }
.input::placeholder { color: var(--ink-faint); }

.input-box {
  width: 100%;
  border: 1.5px solid var(--bg-edge);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  background: var(--bg-paper);
  outline: none;
}
.input-box:focus { border-color: var(--court-orange); }

.toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--bg-edge);
}
.toggle {
  width: 48px; height: 28px;
  background: var(--bg-soft);
  border-radius: var(--r-full);
  position: relative;
  cursor: pointer;
}
.toggle::after {
  content: ''; position: absolute;
  top: 3px; left: 3px;
  width: 22px; height: 22px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
  transition: left 0.2s;
}
.toggle.on { background: var(--court-orange); }
.toggle.on::after { left: 23px; }

.photo-strip { display: flex; gap: 10px; }
.photo-thumb { width: 76px; height: 76px; border-radius: var(--r-md); position: relative; box-shadow: var(--shadow-card); }
.photo-thumb .x { position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; background: var(--ink); color: white; border-radius: 50%; display: grid; place-items: center; font-size: 12px; }
.photo-add { width: 76px; height: 76px; border-radius: var(--r-md); border: 2px dashed var(--bg-edge); background: var(--bg-soft); color: var(--ink-muted); font-size: 24px; }

/* =============================================================
   LIST ITEM
   ============================================================= */

.list { display: flex; flex-direction: column; gap: 8px; }
.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px;
  background: var(--bg-paper);
  border-radius: var(--r-md);
  border: 1px solid var(--bg-edge);
}
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 700; font-size: 14px; }
.list-item .sub { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }

/* =============================================================
   CHIP / BADGE / TAG
   ============================================================= */

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: var(--bg-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink);
}
.chip-orange { background: var(--court-orange); color: white; }
.chip-outline { background: transparent; border: 1.5px solid var(--ink); }
.chip-light { background: rgba(255,255,255,0.22); color: white; }
.chip-success { background: var(--success-soft); color: var(--success); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-danger { background: var(--danger-soft); color: var(--danger); }

/* =============================================================
   LEADERBOARD TABLE
   ============================================================= */

.leaderboard { display: flex; flex-direction: column; gap: 6px; padding: 0 14px; }
.lb-row {
  display: grid;
  grid-template-columns: 32px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-paper);
  border: 1px solid var(--bg-edge);
  border-radius: var(--r-md);
}
.lb-row.me {
  background: linear-gradient(120deg, #FFE5D6 0%, #FFFFFF 80%);
  border-color: var(--court-orange);
}
.lb-row .pos {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--ink-faint);
  text-align: center;
  line-height: 1;
}
.lb-row.top-3 .pos { color: var(--court-orange); }
.lb-row .who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lb-row .who .nm { font-weight: 700; font-size: 14px; }
.lb-row .who .sub { font-size: 11px; color: var(--ink-muted); }
.lb-row .wl { font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }
.lb-row .rt {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.5px;
  line-height: 1;
}

/* =============================================================
   BRACKET (tournament)
   ============================================================= */

.bracket {
  display: flex;
  gap: 20px;
  padding: 16px;
  overflow-x: auto;
}
.bracket .col {
  display: flex; flex-direction: column;
  justify-content: space-around;
  min-width: 150px;
  gap: 10px;
}
.bracket .col-head {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  margin-bottom: 4px;
}
.bracket .node {
  background: var(--bg-paper);
  border: 1px solid var(--bg-edge);
  border-radius: 10px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  min-height: 64px;
  position: relative;
}
.bracket .node .player {
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 12px;
}
.bracket .node .player.winner { background: var(--court-orange); color: white; font-weight: 700; }
.bracket .node .player.tbd { color: var(--ink-faint); font-style: italic; }
.bracket .node .player .pscore { font-family: var(--font-mono); font-size: 11px; }
.bracket .node.final { border: 2px solid var(--court-orange); }

/* connectors */
.bracket .col .node + .node { margin-top: 0; }
.bracket .col[data-round="2"] { justify-content: space-around; }
.bracket .col[data-round="3"] { justify-content: center; }
.bracket .col[data-round="4"] { justify-content: center; }

/* =============================================================
   TIMELINE / GROUPS
   ============================================================= */

.group-table {
  background: var(--bg-paper);
  border: 1px solid var(--bg-edge);
  border-radius: var(--r-md);
  overflow: hidden;
}
.group-table h3 {
  margin: 0;
  padding: 12px 16px;
  background: var(--bg-soft);
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.group-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.group-table td, .group-table th {
  padding: 10px 12px;
  text-align: center;
  border-bottom: 1px solid var(--bg-edge);
  font-family: var(--font-mono);
  font-size: 12px;
}
.group-table th {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ink-muted);
  background: var(--bg-cream);
}
.group-table tr:last-child td { border-bottom: none; }
.group-table .nm { text-align: left; font-family: var(--font-body); font-weight: 700; }
.group-table tr.qualifies td { background: rgba(255,107,53,0.06); }
.group-table tr.qualifies .pos { color: var(--court-orange); font-weight: 800; }

/* =============================================================
   FORMAT SELECTOR (tournament create)
   ============================================================= */

.format-card {
  display: flex;
  align-items: stretch;
  gap: 14px;
  padding: 14px;
  background: var(--bg-paper);
  border: 1.5px solid var(--bg-edge);
  border-radius: var(--r-lg);
  cursor: pointer;
  position: relative;
  transition: border 0.15s;
}
.format-card.selected {
  border-color: var(--court-orange);
  box-shadow: 0 0 0 3px rgba(255,107,53,0.12);
}
.format-card .icon-wrap {
  width: 64px;
  height: 64px;
  background: var(--bg-soft);
  border-radius: var(--r-md);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.format-card.selected .icon-wrap { background: #FFE5D6; }
.format-card .body { flex: 1; }
.format-card h3 {
  margin: 0 0 4px;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.format-card p { margin: 0; font-size: 12px; color: var(--ink-muted); line-height: 1.4; }
.format-card .meta-row {
  margin-top: 8px;
  display: flex; gap: 10px;
  font-size: 10px;
  color: var(--ink-faint);
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* =============================================================
   WIZARD STEP INDICATOR (tournament create)
   ============================================================= */

.wiz { display: flex; align-items: center; gap: 6px; padding: 16px 22px 4px; }
.wiz .dot { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-size: 12px; background: var(--bg-soft); color: var(--ink-muted); flex: none; }
.wiz .dot.on { background: var(--court-orange); color: #fff; }
.wiz .dot.done { background: var(--success); color: #fff; }
.wiz .bar { flex: 1; height: 2px; background: var(--bg-edge); }
.wiz .bar.on { background: var(--court-orange); }

/* =============================================================
   COMMUNITY CARD
   ============================================================= */

.community-card {
  background: var(--bg-paper);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
}
.community-card .banner {
  height: 100px;
  background: var(--grad-heat);
  position: relative;
  overflow: hidden;
}
.community-card .banner.cv2 { background: var(--grad-court); }
.community-card .banner.cv3 { background: linear-gradient(135deg, #4D2A8A 0%, #C75B3F 100%); }
.community-card .banner::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.2) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.4;
}
.community-card .meta-pill {
  position: absolute;
  top: 12px; right: 12px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(6px);
  color: white;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-full);
}
.community-card .body { padding: 16px; }
.community-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 1px;
  text-transform: uppercase;
  line-height: 1;
}
.community-card .sub {
  font-size: 12px;
  color: var(--ink-muted);
  margin-top: 4px;
}
.community-card .row {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--bg-edge);
}
.community-card .row .stat-mini { font-size: 11px; color: var(--ink-muted); font-weight: 700; }
.community-card .row .stat-mini b {
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--ink);
  font-weight: 400;
  letter-spacing: 0;
  display: block;
  line-height: 1;
}

/* =============================================================
   FEED TOURNAMENT CARD
   ============================================================= */

.feed-tournament {
  position: relative;
  display: block;
  background: var(--bg-paper);
  border-radius: var(--r-lg);
  padding: 16px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}
.feed-tournament::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 4px;
  background: var(--grad-heat);
}
.feed-tournament .head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  margin-top: 4px;
}
.feed-tournament h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.05;
  margin: 0;
}
.feed-tournament .meta {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 600;
  margin-top: 8px;
}
.feed-tournament .btn { margin-top: 14px; }

/* =============================================================
   NEWS / BLOG FEED CARD (админ-блог + реклама)
   ============================================================= */

.news-card {
  position: relative;
  display: flex;
  gap: 14px;
  background: var(--bg-paper);
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
}
.news-card .thumb {
  flex: 0 0 64px;
  width: 64px; height: 64px;
  border-radius: var(--r-md);
  background: var(--grad-dusk);
  display: grid; place-items: center;
  font-size: 28px;
  overflow: hidden;
}
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card .body { flex: 1; min-width: 0; padding-right: 12px; }
.news-card .kicker {
  font-size: 9px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--court-orange);
}
.news-card h3 {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 800; line-height: 1.25;
  margin: 3px 0 0;
}
.news-card p {
  font-size: 12px; color: var(--ink-muted); line-height: 1.45;
  margin: 4px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.news-card .news-meta {
  display: flex; align-items: center; gap: 8px;
  font-size: 11px; color: var(--ink-faint); font-weight: 700;
  margin-top: 8px;
}
/* Рекламный пост (внешняя ссылка) */
.news-card.ad .kicker { color: var(--court-clay); }
.news-card.ad .thumb { background: var(--grad-court); }
.news-card.ad::after {
  content: '↗';
  position: absolute; top: 12px; right: 14px;
  font-size: 13px; color: var(--ink-faint);
}

/* =============================================================
   NOTIFICATION BANNER
   ============================================================= */

.notif {
  margin: 12px 22px;
  padding: 14px 16px;
  background: var(--ink);
  color: white;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  overflow: hidden;
}
.notif::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--court-orange);
}
.notif .body { flex: 1; font-size: 13px; }
.notif .body strong { display: block; margin-bottom: 2px; font-size: 12px; }

/* =============================================================
   EMPTY STATE
   ============================================================= */

.empty {
  text-align: center;
  padding: 60px 24px;
}
.empty .icon { font-size: 48px; opacity: 0.4; margin-bottom: 12px; }
.empty h3 { font-family: var(--font-display); font-size: 22px; margin: 0 0 6px; text-transform: uppercase; letter-spacing: 1px; }
.empty p { color: var(--ink-muted); font-size: 13px; margin: 0 0 18px; }

/* =============================================================
   GALLERY (index.html)
   ============================================================= */

.gallery-page {
  background: var(--bg-cream);
  padding: 60px 24px 80px;
  min-height: 100vh;
}
.gallery-page::before {
  content: '';
  position: fixed; inset: 0;
  background-image: repeating-linear-gradient(
    45deg, transparent 0, transparent 80px,
    rgba(255,107,53,0.025) 80px, rgba(255,107,53,0.025) 81px);
  pointer-events: none;
}
.gallery-head {
  max-width: 1200px; margin: 0 auto 40px;
  position: relative;
}
.gallery-head h1 {
  font-family: var(--font-display);
  font-size: clamp(64px, 12vw, 160px);
  line-height: 0.85;
  letter-spacing: -1px;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.gallery-head h1 .accent { color: var(--court-orange); }
.gallery-head h1 .ball {
  display: inline-block;
  width: 0.7em; height: 0.7em;
  background: var(--court-sun);
  border-radius: 50%;
  margin-left: 8px;
  vertical-align: -0.05em;
  position: relative;
}
.gallery-head h1 .ball::before,
.gallery-head h1 .ball::after {
  content: ''; position: absolute;
  border: 1.5px solid white;
  border-radius: 50%;
  inset: 0;
}
.gallery-head h1 .ball::before { clip-path: polygon(0 0, 100% 100%, 0 100%); }
.gallery-head h1 .ball::after { clip-path: polygon(100% 0, 100% 100%, 0 0); }
.gallery-head .sub {
  font-size: 16px;
  color: var(--ink-muted);
  max-width: 600px;
  line-height: 1.5;
}
.gallery-head .stats-row {
  display: flex; gap: 36px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--bg-edge);
}
.gallery-head .stats-row .stat-big .v {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 1;
  letter-spacing: -1px;
}
.gallery-head .stats-row .stat-big .l {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-top: 6px;
}

.gallery-section {
  max-width: 1200px;
  margin: 0 auto 50px;
  position: relative;
}
.gallery-section h2 {
  font-family: var(--font-display);
  font-size: 36px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 8px;
  display: flex; align-items: center; gap: 18px;
}
.gallery-section h2::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ink);
}
.gallery-section .section-sub {
  font-size: 13px;
  color: var(--ink-muted);
  margin: 0 0 24px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}
.gallery-card {
  display: block;
  background: white;
  border-radius: var(--r-lg);
  padding: 14px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hi);
}
.gallery-card .frame {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--bg-cream);
  aspect-ratio: 9/19;
  position: relative;
  margin-bottom: 12px;
}
.gallery-card iframe {
  position: absolute;
  top: 0; left: 0;
  width: 250%;
  height: 250%;
  transform: scale(0.4);
  transform-origin: 0 0;
  border: 0;
  pointer-events: none;
}
.gallery-card .frame::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: var(--r-md);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.04);
  pointer-events: none;
}
.gallery-card .num {
  position: absolute;
  top: 22px; left: 22px;
  font-family: var(--font-display);
  font-size: 14px;
  color: white;
  background: var(--ink);
  padding: 4px 10px;
  border-radius: var(--r-full);
  letter-spacing: 0.6px;
  z-index: 2;
}
.gallery-card .label-block { padding: 0 4px; }
.gallery-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.gallery-card .desc {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 4px;
  font-weight: 600;
}
.gallery-card .open-tag {
  position: absolute;
  bottom: 22px; right: 22px;
  background: var(--court-orange);
  color: white;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: var(--r-full);
  z-index: 2;
  opacity: 0;
  transition: opacity 0.2s;
}
.gallery-card:hover .open-tag { opacity: 1; }

/* =============================================================
   UTILS
   ============================================================= */

.stack { display: flex; flex-direction: column; }
.stack-2 > * + * { margin-top: 8px; }
.stack-3 > * + * { margin-top: 12px; }
.stack-4 > * + * { margin-top: 16px; }
.stack-5 > * + * { margin-top: 24px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.center { justify-content: center; }
.grow { flex: 1; }
.muted { color: var(--ink-muted); }
.tiny { font-size: 11px; }
.center-text { text-align: center; }
.upper { text-transform: uppercase; letter-spacing: 1px; font-weight: 800; font-size: 10px; }

.divider { height: 1px; background: var(--bg-edge); margin: 16px 0; }

/* Animations */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.rise { animation: rise 0.5s ease both; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.20s; }
.rise-4 { animation-delay: 0.30s; }

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,107,53,0.5); }
  50% { box-shadow: 0 0 0 12px rgba(255,107,53,0); }
}
.pulse-orange { animation: pulse 2s infinite; }

/* =============================================================
   CALENDAR / EVENTS
   ============================================================= */

/* Mini month grid */
.cal-month {
  margin: 0 22px;
  background: var(--bg-paper);
  border: 1px solid var(--bg-edge);
  border-radius: var(--r-lg);
  padding: 14px 12px;
}
.cal-month-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 6px 10px;
}
.cal-month-head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.cal-month-head .nav { display: flex; gap: 6px; }
.cal-month-head .nav button {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--bg-soft);
  border: none;
  display: grid; place-items: center;
  cursor: pointer;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}
.cal-grid .wd {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
  padding: 4px 0 8px;
}
.cal-day {
  position: relative;
  aspect-ratio: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border-radius: 8px;
  cursor: pointer;
}
.cal-day:hover { background: var(--bg-soft); }
.cal-day.muted { color: var(--ink-faint); }
.cal-day.today {
  background: var(--court-orange);
  color: white;
  font-weight: 800;
}
.cal-day.has-event::after {
  content: '';
  position: absolute;
  bottom: 5px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--court-orange);
}
.cal-day.today.has-event::after { background: white; }
.cal-day.has-event.multi::after {
  width: 12px;
  background: linear-gradient(90deg, var(--court-orange) 50%, var(--court-clay) 50%);
}
.cal-day.has-tournament::after { background: #936B17; }
.cal-day.has-challenge::after { background: var(--court-clay); }
.cal-day.selected {
  background: var(--ink);
  color: white;
}

/* Agenda */
.agenda-day {
  position: sticky;
  top: 0;
  background: var(--bg-paper);
  z-index: 5;
  padding: 14px 22px 8px;
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--bg-edge);
}
.agenda-day h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1;
}
.agenda-day .date {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.agenda-day.today h3 { color: var(--court-orange); }

.agenda-event {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 14px 22px;
  align-items: center;
  border-bottom: 1px solid var(--bg-edge);
  background: var(--bg-paper);
}
.agenda-event .when {
  display: flex; flex-direction: column;
  align-items: center;
  text-align: center;
}
.agenda-event .when .hh {
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.agenda-event .when .ampm {
  font-size: 9px;
  font-weight: 800;
  color: var(--ink-faint);
  letter-spacing: 0.5px;
  margin-top: 2px;
  text-transform: uppercase;
}
.agenda-event .what {
  min-width: 0;
}
.agenda-event .what .title {
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; gap: 8px;
}
.agenda-event .what .meta {
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 4px;
  display: flex; gap: 10px;
  flex-wrap: wrap;
}
.agenda-event .what .meta span { display: inline-flex; align-items: center; gap: 4px; }

.agenda-event.pending {
  background: linear-gradient(90deg, #FFE5D6 0%, var(--bg-paper) 60%);
  border-left: 3px solid var(--court-orange);
}
.agenda-event.tournament .what .title::before {
  content: '';
  width: 4px; height: 4px;
  background: #936B17;
  border-radius: 50%;
  display: inline-block;
}
.agenda-event.friendly .what .title::before {
  content: '';
  width: 4px; height: 4px;
  background: var(--court-orange);
  border-radius: 50%;
  display: inline-block;
}
.agenda-event.milestone {
  background: var(--bg-cream);
}
.agenda-event.milestone .what .title::before {
  content: '🏆';
  font-size: 14px;
}
.agenda-event.live {
  border-left: 3px solid var(--danger);
  background: var(--danger-soft);
}
.agenda-event.live .when .hh { color: var(--danger); }

/* Mini action buttons next to event */
.agenda-event .actions { display: flex; gap: 6px; }

/* Add-to-calendar button */
.btn-cal {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--court-sun);
  border: none;
  display: inline-grid; place-items: center;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
}
.btn-cal:hover { background: var(--court-orange); color: white; }
.btn-cal svg { width: 16px; height: 16px; }
.btn-cal-outline {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
}
.btn-cal-light {
  background: rgba(255,255,255,0.95);
  color: var(--ink);
}

/* Inline accept / propose buttons inside pending event */
.btn-accept {
  background: var(--ink);
  color: var(--court-sun);
  border: none;
  border-radius: var(--r-md);
  padding: 8px 12px;
  font-family: inherit;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
}
.btn-propose {
  background: white;
  color: var(--ink);
  border: 1.5px solid var(--bg-edge);
  border-radius: var(--r-md);
  padding: 8px 12px;
  font-family: inherit;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  cursor: pointer;
}

/* Court tag */
.court-tag {
  display: inline-flex; align-items: center;
  background: var(--ink);
  color: var(--court-sun);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.5px;
  padding: 3px 9px;
  border-radius: 4px;
  text-transform: uppercase;
}
.court-tag.t2 { background: var(--court-clay); color: white; }
.court-tag.t3 { background: var(--court-green); color: white; }

/* Live indicator */
.live-dot {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--danger);
}
.live-dot::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--danger);
  border-radius: 50%;
  animation: pulse-live 1.5s infinite;
}
@keyframes pulse-live {
  0%, 100% { box-shadow: 0 0 0 0 rgba(199,62,58,0.6); }
  50% { box-shadow: 0 0 0 5px rgba(199,62,58,0); }
}

/* Time / date picker (challenge propose drawer) */
.day-picker {
  display: flex; gap: 6px;
  overflow-x: auto;
  padding-bottom: 4px;
}
.day-picker .day {
  flex: 0 0 56px;
  background: white;
  border: 1.5px solid var(--bg-edge);
  border-radius: var(--r-md);
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
}
.day-picker .day .wd {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.day-picker .day .dd {
  font-family: var(--font-display);
  font-size: 20px;
  margin-top: 2px;
  line-height: 1;
}
.day-picker .day.on {
  background: var(--ink);
  color: white;
}
.day-picker .day.on .wd { color: var(--court-sun); }

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.time-grid .slot {
  background: white;
  border: 1.5px solid var(--bg-edge);
  border-radius: var(--r-md);
  padding: 10px 4px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.time-grid .slot.on {
  background: var(--court-orange);
  color: white;
  border-color: var(--court-orange);
  font-weight: 700;
}
.time-grid .slot.unavail {
  opacity: 0.35;
  text-decoration: line-through;
  cursor: not-allowed;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: white;
  padding: 12px 18px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-hi);
  display: inline-flex; align-items: center; gap: 8px;
  z-index: 80;
}
.toast .ico { color: var(--court-sun); }

/* =============================================================
   EVENTS · "GAME DAY" редизайн
   Tickets, scorecards, order-of-play
   ============================================================= */

/* HERO — date moment */
.event-hero {
  position: relative;
  padding: 0 22px 90px;
  color: white;
  background: var(--grad-heat);
  overflow: hidden;
}
.event-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.18) 1px, transparent 1px);
  background-size: 36px 36px;
  background-position: center;
  opacity: 0.22;
  pointer-events: none;
}
.event-hero::after {
  content: '';
  position: absolute;
  right: -70px; top: 30px;
  width: 260px; height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.22);
  pointer-events: none;
}
.event-hero .row-top {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 8px;
}
.event-hero .row-top .month {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.event-hero .row-top .month .dot {
  width: 5px; height: 5px;
  background: var(--court-sun);
  border-radius: 50%;
}
.event-hero .row-top .ctrl {
  display: flex; gap: 6px;
}
.event-hero .row-top .ctrl button {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.28);
  color: white;
  display: grid; place-items: center;
  cursor: pointer;
}

.event-hero .editorial {
  margin-top: 16px;
  display: flex; align-items: end; gap: 14px;
}
.event-hero .editorial .mega {
  font-family: var(--font-display);
  font-size: 168px;
  line-height: 0.78;
  letter-spacing: -5px;
  position: relative;
}
.event-hero .editorial .mega .underline {
  position: absolute;
  bottom: 12px; left: 8px; right: 8px;
  height: 6px;
  background: var(--court-sun);
  z-index: -1;
}
.event-hero .editorial .side {
  padding-bottom: 22px;
}
.event-hero .editorial .side .day-name {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 0.9;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.event-hero .editorial .side .relative {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: 6px;
}

.event-hero .pulse-strip {
  margin-top: 12px;
  display: flex; align-items: center; gap: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.event-hero .pulse-strip .ev {
  display: flex; align-items: center; gap: 6px;
}
.event-hero .pulse-strip .ev .d {
  width: 7px; height: 7px;
  background: var(--court-sun);
  border-radius: 50%;
}
.event-hero .pulse-strip .ev .d.warn { background: white; animation: pulse-now 1.8s infinite; }
@keyframes pulse-now {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.7); }
  50% { box-shadow: 0 0 0 6px rgba(255,255,255,0); }
}

/* Black scorecard month panel that overlaps hero */
.scorecard {
  background: var(--ink);
  color: white;
  padding: 18px 16px 16px;
  margin: -76px 16px 0;
  border-radius: 18px;
  box-shadow: 0 24px 48px -16px rgba(26,20,16,0.45);
  position: relative;
  z-index: 3;
}
.scorecard .sc-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 12px;
  padding: 0 4px;
}
.scorecard .sc-head .nm {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 8px;
}
.scorecard .sc-head .nm .dot { width: 5px; height: 5px; background: var(--court-orange); border-radius: 50%; }
.scorecard .sc-head .legend {
  display: flex; gap: 10px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.6px;
}
.scorecard .sc-head .legend span { display: inline-flex; align-items: center; gap: 4px; }
.scorecard .sc-head .legend .d { width: 4px; height: 4px; border-radius: 50%; }
.scorecard .sc-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
}
.scorecard .sc-wd {
  font-family: var(--font-mono);
  font-size: 9px;
  color: rgba(255,255,255,0.4);
  text-align: center;
  padding: 6px 0 8px;
  letter-spacing: 0.5px;
}
.scorecard .sc-d {
  aspect-ratio: 1;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  border-radius: 6px;
  position: relative;
  cursor: pointer;
}
.scorecard .sc-d:hover { background: rgba(255,255,255,0.05); }
.scorecard .sc-d.muted { color: rgba(255,255,255,0.18); }
.scorecard .sc-d.today {
  background: var(--court-orange);
  color: white;
  font-weight: 700;
}
.scorecard .sc-d .dots {
  position: absolute; bottom: 4px;
  display: flex; gap: 2px;
}
.scorecard .sc-d .dots span {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--court-sun);
}
.scorecard .sc-d .dots span.t { background: var(--court-orange); }
.scorecard .sc-d .dots span.g { background: #C9F73B; }
.scorecard .sc-d.today .dots span { background: white; }

/* Editorial day header */
.day-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: end;
  padding: 28px 22px 10px;
  position: sticky;
  top: 0;
  background: var(--bg-paper);
  z-index: 5;
}
.day-head .num {
  font-family: var(--font-display);
  font-size: 56px;
  line-height: 0.8;
  letter-spacing: -1.5px;
  color: var(--ink);
}
.day-head .meta { padding-bottom: 4px; min-width: 0; }
.day-head .meta .nm {
  font-family: var(--font-display);
  font-size: 18px;
  line-height: 1;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.day-head .meta .sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 6px;
}
.day-head .count {
  padding-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-faint);
}
.day-head.today .num { color: var(--court-orange); }
.day-head.today .meta .nm { color: var(--court-orange); }
.day-head .bar {
  grid-column: 1 / -1;
  height: 1px;
  background: var(--ink);
  margin-top: 8px;
}
.day-head.today .bar { background: var(--court-orange); }

/* TICKET — event card */
.ticket {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  align-items: stretch;
  background: var(--bg-paper);
  border: 1px solid var(--bg-edge);
  border-radius: 12px;
  margin: 0 22px 10px;
  position: relative;
  overflow: hidden;
  transition: transform 0.12s, box-shadow 0.12s;
}
.ticket:hover { transform: translateY(-1px); box-shadow: var(--shadow-card); }
.ticket .tk-time {
  background: var(--bg-soft);
  padding: 14px 0 14px 16px;
  display: flex; flex-direction: column; justify-content: center;
  position: relative;
}
.ticket .tk-time .hh {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.5px;
}
.ticket .tk-time .ampm {
  font-size: 9px;
  font-weight: 800;
  color: var(--ink-muted);
  letter-spacing: 1.4px;
  margin-top: 6px;
  text-transform: uppercase;
}
.ticket .tk-body {
  padding: 14px 12px 14px 22px;
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0;
  position: relative;
}
.ticket .tk-body .title {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  letter-spacing: -0.1px;
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.ticket .tk-body .meta {
  display: flex; flex-wrap: wrap; gap: 4px 10px;
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 6px;
  align-items: center;
  font-weight: 600;
}
.ticket .tk-body .meta .stamp {
  background: var(--ink);
  color: var(--court-sun);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  padding: 2px 6px;
  border-radius: 3px;
  text-transform: uppercase;
  font-weight: 600;
}
.ticket .tk-body .meta .stamp.gold { background: #936B17; color: white; }
.ticket .tk-body .meta .stamp.red { background: var(--court-clay); color: white; }
.ticket .tk-body .meta .stamp.green { background: var(--court-green); color: var(--court-sun); }
.ticket .tk-action {
  display: flex; align-items: center;
  padding: 12px 14px 12px 6px;
}
/* Perforated divider */
.ticket::before {
  content: '';
  position: absolute;
  left: 91px; top: 8px; bottom: 8px;
  width: 1px;
  background-image: linear-gradient(180deg, var(--bg-edge) 50%, transparent 50%);
  background-size: 1px 6px;
  z-index: 1;
}
.ticket::after {
  content: '';
  position: absolute;
  left: 86px; top: 50%; transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  background: var(--bg-cream);
  border-radius: 50%;
  z-index: 2;
}

/* Pending challenge ticket */
.ticket.pending {
  border-color: var(--court-orange);
  background: linear-gradient(90deg, #FFE5D6 0%, var(--bg-paper) 55%);
}
.ticket.pending .tk-time {
  background: var(--court-orange);
  color: white;
}
.ticket.pending .tk-time .ampm { color: rgba(255,255,255,0.85); }
.ticket.pending::before {
  background-image: linear-gradient(180deg, rgba(255,107,53,0.35) 50%, transparent 50%);
}

/* Tournament ticket */
.ticket.tournament .tk-time { background: #FCEFD8; }
.ticket.tournament .tk-time .ampm { color: #936B17; }

/* Friendly */
.ticket.friendly { background: var(--bg-paper); }

/* Live */
.ticket.live { border-color: var(--danger); }
.ticket.live .tk-time { background: var(--danger); color: white; }
.ticket.live .tk-time .ampm { color: rgba(255,255,255,0.85); }
.ticket.live::before {
  background-image: linear-gradient(180deg, rgba(199,62,58,0.4) 50%, transparent 50%);
}
.ticket.live .live-marker {
  position: absolute;
  top: 8px; right: 12px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.2px;
  color: var(--danger);
  font-weight: 700;
  display: flex; align-items: center; gap: 4px;
}
.ticket.live .live-marker::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--danger);
  border-radius: 50%;
  animation: live-pulse 1.4s infinite;
}
@keyframes live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(199,62,58,0.7); }
  50% { box-shadow: 0 0 0 6px rgba(199,62,58,0); }
}

/* Milestone — landscape banner */
.ticket.milestone {
  grid-template-columns: 1fr;
  background: var(--bg-cream);
  border-style: dashed;
  border-color: var(--ink);
  padding: 14px 18px;
}
.ticket.milestone::before,
.ticket.milestone::after { display: none; }
.ticket.milestone .tk-time { display: none; }
.ticket.milestone .tk-body {
  padding: 0;
  flex-direction: row;
  align-items: center;
  gap: 14px;
}
.ticket.milestone .tk-body .when-inline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink);
  background: white;
  padding: 4px 10px;
  border-radius: var(--r-full);
  letter-spacing: 0.5px;
  font-weight: 700;
}
.ticket.milestone .tk-action { display: none; }

/* Pending inline actions */
.ticket.pending .tk-action {
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
}
.ticket.pending .tk-action .accept-btn {
  background: var(--ink);
  color: var(--court-sun);
  border: none;
  padding: 8px 14px;
  border-radius: var(--r-md);
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
}

/* ORDER OF PLAY rows */
.op-card {
  margin: 0 22px;
  background: var(--bg-paper);
  border: 1px solid var(--bg-edge);
  border-radius: 14px;
  overflow: hidden;
}
.op-card .op-day-head {
  display: flex; align-items: end; justify-content: space-between;
  padding: 16px 18px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--bg-edge);
}
.op-card .op-day-head .num {
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 0.8;
  letter-spacing: -1px;
}
.op-card .op-day-head .meta {
  text-align: right;
  padding-bottom: 4px;
}
.op-card .op-day-head .meta .nm {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.op-card .op-day-head .meta .sub {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}
.op-card .op-day-head.today { background: var(--ink); color: white; }
.op-card .op-day-head.today .meta .sub { color: var(--court-sun); }
.op-card .op-day-head.today .num { color: var(--court-sun); }

.op-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 14px;
  padding: 14px 18px;
  align-items: center;
  border-bottom: 1px solid var(--bg-edge);
  background: var(--bg-paper);
  position: relative;
}
.op-row:last-child { border-bottom: none; }
.op-row .op-num {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  color: var(--ink-faint);
  letter-spacing: -0.5px;
  text-align: center;
}
.op-row .op-body { min-width: 0; }
.op-row .op-time {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.op-row .op-time .stamp { font-size: 9px; }
.op-row .op-players {
  font-weight: 800;
  font-size: 14px;
  margin-top: 4px;
  display: flex; align-items: center; gap: 4px;
  flex-wrap: wrap;
}
.op-row .op-players .vs {
  font-family: var(--font-mono);
  color: var(--ink-faint);
  font-size: 11px;
  font-weight: 500;
  margin: 0 2px;
}
.op-row.live {
  background: linear-gradient(90deg, rgba(199,62,58,0.06), transparent 80%);
}
.op-row.live::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--danger);
}
.op-row.live .op-num { color: var(--danger); }
.op-row.live .op-time { color: var(--danger); }
.op-row.tbd .op-players { color: var(--ink-faint); font-style: italic; font-weight: 600; }
.op-row.final { background: linear-gradient(135deg, #FFE5D6, transparent 90%); }
.op-row.final .op-num { color: var(--court-orange); }

/* ВЫЗОВ — challenge hero */
.challenge-hero {
  background: var(--ink);
  color: white;
  padding: 56px 22px 30px;
  position: relative;
  overflow: hidden;
}
.challenge-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(38deg, transparent 0, transparent 60px,
      rgba(255,107,53,0.08) 60px, rgba(255,107,53,0.08) 61px);
  pointer-events: none;
}
.challenge-hero::after {
  content: '';
  position: absolute;
  right: -100px; top: -100px;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid rgba(255,107,53,0.25);
}
.challenge-hero .small-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--court-sun);
}
.challenge-hero .massive {
  font-family: var(--font-display);
  font-size: 128px;
  line-height: 0.78;
  letter-spacing: -3px;
  margin-top: 6px;
  position: relative;
  color: white;
}
.challenge-hero .massive .accent {
  color: var(--court-orange);
}
.challenge-hero .opp {
  margin-top: 24px;
  display: flex; align-items: center; gap: 16px;
}
.challenge-hero .opp .nm-block .pre {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  opacity: 0.7;
}
.challenge-hero .opp .nm-block .nm {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}
.challenge-hero .opp .nm-block .chips {
  display: flex; gap: 6px; margin-top: 10px;
}
.challenge-hero .opp .nm-block .chips .c {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 3px 8px;
  border-radius: var(--r-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Big TICKET for proposed time (full-bleed style) */
.big-ticket {
  margin: 22px 22px 0;
  background: var(--bg-paper);
  border: 1px solid var(--bg-edge);
  border-radius: 18px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 18px 36px -16px rgba(26,20,16,0.18);
  position: relative;
}
.big-ticket::before {
  content: '';
  position: absolute;
  top: 88px; left: -6px; right: -6px;
  height: 12px;
  background-image: radial-gradient(circle, var(--bg-cream) 5px, transparent 6px);
  background-size: 16px 12px;
  background-repeat: repeat-x;
}
.big-ticket .stub {
  background: var(--ink);
  color: white;
  padding: 22px 22px 30px;
  position: relative;
  overflow: hidden;
}
.big-ticket .stub::before {
  content: '';
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(38deg, transparent 0, transparent 40px, rgba(255,107,53,0.06) 40px, rgba(255,107,53,0.06) 41px);
  pointer-events: none;
}
.big-ticket .stub .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--court-sun);
  position: relative;
}
.big-ticket .stub .time {
  font-family: var(--font-display);
  font-size: 76px;
  line-height: 0.8;
  letter-spacing: -2.5px;
  margin-top: 6px;
  position: relative;
}
.big-ticket .stub .date {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 6px;
  position: relative;
}
.big-ticket .stub .countdown {
  position: absolute;
  top: 22px; right: 22px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.6);
  text-align: right;
}
.big-ticket .body {
  padding: 26px 22px 22px;
  display: flex; flex-direction: column; gap: 12px;
}
.big-ticket .body .field {
  display: grid; grid-template-columns: 20px 1fr; gap: 12px;
  align-items: start;
  margin: 0;
}
.big-ticket .body .field .ico {
  font-size: 16px;
  padding-top: 1px;
}
.big-ticket .body .field .v {
  font-size: 13px;
}
.big-ticket .body .field .v b {
  display: block;
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 2px;
}
.big-ticket .body .field .v small {
  color: var(--ink-muted);
  font-size: 11px;
}
.big-ticket .body .quote {
  background: var(--bg-cream);
  border-left: 3px solid var(--court-orange);
  padding: 12px 14px;
  font-size: 13px;
  font-style: italic;
  color: var(--ink-muted);
  line-height: 1.5;
  border-radius: 0 8px 8px 0;
}

/* H2H tally */
.h2h-tally {
  margin: 18px 22px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: var(--bg-paper);
  border: 1px solid var(--bg-edge);
  border-radius: 14px;
}
.h2h-tally .label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.h2h-tally .score {
  font-family: var(--font-display);
  font-size: 22px;
  margin-top: 4px;
  letter-spacing: 0.5px;
  line-height: 1;
}
.h2h-tally .score .you { color: var(--court-orange); }
.h2h-tally .score .him { color: var(--ink-muted); }
.h2h-tally .marks {
  display: flex; gap: 4px;
}
.h2h-tally .marks .mk {
  width: 10px; height: 30px;
  background: var(--bg-soft);
  border-radius: 2px;
}
.h2h-tally .marks .mk.win { background: var(--court-orange); }
.h2h-tally .marks .mk.loss { background: var(--court-clay); opacity: 0.4; }

/* CTA hierarchy stack for challenge */
.cta-stack {
  padding: 18px 22px 30px;
  display: flex; flex-direction: column; gap: 10px;
}
.cta-stack .cta-prim {
  background: var(--grad-heat);
  color: white;
  border: none;
  padding: 18px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: var(--shadow-pop);
  cursor: pointer;
}
.cta-stack .cta-prim svg { width: 16px; height: 16px; }
.cta-stack .cta-sec {
  background: white;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 16px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer;
}
.cta-stack .cta-decline {
  background: transparent;
  color: var(--ink-muted);
  border: none;
  padding: 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 4px;
}
.cta-stack .cta-decline:hover { color: var(--danger); }

/* Tournament calendar header strip */
.tcal-strip {
  display: flex; gap: 8px;
  padding: 18px 22px 0;
  overflow-x: auto;
}
.tcal-strip .day-pill {
  flex: 0 0 auto;
  background: var(--bg-paper);
  border: 1.5px solid var(--bg-edge);
  border-radius: 12px;
  padding: 8px 12px;
  text-align: center;
  cursor: pointer;
  min-width: 64px;
}
.tcal-strip .day-pill .wd {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-muted);
  letter-spacing: 0.8px;
  text-transform: uppercase;
}
.tcal-strip .day-pill .dd {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1;
  margin-top: 4px;
  letter-spacing: -0.5px;
}
.tcal-strip .day-pill .ec {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--ink-faint);
  margin-top: 4px;
  letter-spacing: 0.5px;
}
.tcal-strip .day-pill.on {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}
.tcal-strip .day-pill.on .wd { color: var(--court-sun); }
.tcal-strip .day-pill.on .ec { color: rgba(255,255,255,0.6); }
.tcal-strip .day-pill.has-live {
  border-color: var(--danger);
}
.tcal-strip .day-pill .live-dot {
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--danger);
  border-radius: 50%;
  margin-left: 3px;
  vertical-align: 1px;
  animation: live-pulse 1.4s infinite;
}

/* Section header for sport-editorial pages */
.sec-band {
  display: flex; align-items: end; justify-content: space-between;
  padding: 22px 22px 10px;
  gap: 12px;
}
.sec-band .label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--ink-muted);
  letter-spacing: 1.6px;
  text-transform: uppercase;
}
.sec-band h2 {
  font-family: var(--font-display);
  font-size: 32px;
  letter-spacing: -0.5px;
  margin: 4px 0 0;
  text-transform: uppercase;
  line-height: 0.95;
}
.sec-band .link {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--court-orange);
  padding-bottom: 4px;
}

/* =============================================================
   LOCATION / CITY FEATURES
   ============================================================= */

/* Inline city block on profile hero */
.geo-line {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.22);
  padding: 4px 10px;
  border-radius: var(--r-full);
}
.geo-line .city { font-weight: 700; }
.geo-line .sep { opacity: 0.55; }
.geo-line .district { opacity: 0.85; }
.geo-line .edit {
  margin-left: 4px;
  opacity: 0.55;
  display: inline-grid; place-items: center;
}
.geo-line.dark {
  background: var(--bg-soft);
  color: var(--ink);
  border-color: var(--bg-edge);
}
.geo-line.dark .edit { color: var(--ink-muted); }

/* Discover-in-area card */
.discover-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  margin: 0 22px;
  padding: 16px 18px;
  background: var(--bg-paper);
  border: 1.5px dashed var(--ink);
  border-radius: 16px;
  position: relative;
  overflow: hidden;
}
.discover-card .pin {
  width: 44px; height: 44px;
  background: var(--ink);
  color: var(--court-sun);
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.discover-card .pin svg { width: 20px; height: 20px; }
.discover-card .info { min-width: 0; }
.discover-card .info .label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.4px;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.discover-card .info .title {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: 0.2px;
  margin-top: 4px;
  text-transform: uppercase;
  line-height: 0.9;
}
.discover-card .info .title em {
  font-style: normal;
  color: var(--court-orange);
}
.discover-card .info .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
  margin-top: 6px;
  letter-spacing: 0.5px;
}
.discover-card .arrow {
  width: 36px; height: 36px;
  background: var(--court-orange);
  color: white;
  border-radius: 50%;
  display: grid; place-items: center;
}
.discover-card .arrow svg { width: 14px; height: 14px; }

/* Opponent picker block */
.opp-pick {
  margin: -34px 22px 0;
  background: var(--bg-paper);
  border-radius: 18px;
  box-shadow: var(--shadow-hi);
  overflow: hidden;
  position: relative;
  z-index: 4;
}
.opp-pick .head {
  background: var(--ink);
  color: white;
  padding: 14px 18px;
  display: flex; justify-content: space-between; align-items: center;
}
.opp-pick .head .lbl {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--court-sun);
  text-transform: uppercase;
}
.opp-pick .head .nm {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-top: 2px;
}
.opp-pick .body {
  padding: 18px;
  display: flex; align-items: center; gap: 16px;
}
.opp-pick .body .info { flex: 1; min-width: 0; }
.opp-pick .body .info .name {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 0.95;
}
.opp-pick .body .info .meta {
  display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap;
}
.opp-pick .body .info .meta .c {
  background: var(--bg-soft);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-full);
  letter-spacing: 0.5px;
}
.opp-pick .change {
  background: var(--bg-soft);
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
}

/* Step number badge */
.step-num {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px;
  font-family: var(--font-display);
  font-size: 13px;
  background: var(--ink);
  color: var(--court-sun);
  border-radius: 50%;
  margin-right: 8px;
  letter-spacing: 0;
  vertical-align: -3px;
}

/* Place suggestion strip */
.place-suggest {
  display: flex; gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.place-suggest .p {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--bg-soft);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: var(--r-full);
  cursor: pointer;
}
.place-suggest .p.on { background: var(--ink); color: white; }
.place-suggest .p svg { width: 10px; height: 10px; }

/* Bottom-sheet (reusable overlay: registration gate, etc.)
   Toggled via [data-sheet-open] / [data-sheet-close] (см. app.js). Скрыт по умолчанию. */
.scrim {
  position: absolute; inset: 0;
  background: rgba(26,20,16,0.55);
  z-index: 70;
  display: none;
}
.sheet {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-paper);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  z-index: 80;
  padding: 8px 22px 30px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-pop);
  display: none;
}
.sheet-open .scrim,
.sheet-open .sheet { display: block; }
.sheet .grip {
  width: 36px; height: 4px;
  background: var(--bg-edge);
  border-radius: 2px;
  margin: 4px auto 18px;
}
.sheet .sheet-lbl {
  font-family: var(--font-mono);
  font-size: 10px; color: var(--court-orange);
  letter-spacing: 2px; text-transform: uppercase;
}
.sheet h2 {
  font-family: var(--font-display);
  font-size: 32px; margin: 4px 0 6px;
  letter-spacing: -0.5px; text-transform: uppercase; line-height: 0.95;
}
.sheet .sheet-sub {
  font-size: 13px; color: var(--ink-muted);
  margin: 0 0 20px; line-height: 1.5;
}
