/* ==========================================================================
   Tennis Club — mobile-first, single-screen app
   Header → content → drill-down screens + bottom sheets.
   ========================================================================== */

:root {
  /* Palette: dark slate + vibrant lime (tennis ball) */
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-alt: #f1f3f7;
  --border: #e5e8ef;
  --border-strong: #d4d9e2;
  --ink: #0f172a;
  --ink-2: #334155;
  --ink-muted: #64748b;
  --ink-soft: #94a3b8;

  --brand: #0f172a;
  --brand-2: #1e293b;

  --accent: #a3e635;       /* tennis ball lime */
  --accent-ink: #1a2e05;
  --accent-glow: rgba(163, 230, 53, 0.55);

  --success: #16a34a;
  --warn: #f59e0b;
  --danger: #ef4444;
  --info: #3b82f6;

  --radius-lg: 22px;
  --radius: 16px;
  --radius-sm: 12px;
  --radius-xs: 8px;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 1px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 6px 20px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 48px rgba(15, 23, 42, 0.14);

  --topbar-h: 56px;
  --bottom-nav-h: 60px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Apple SD Gothic Neo", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

body {
  min-height: 100vh;
  min-height: 100svh;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button { cursor: pointer; }

#app {
  max-width: 560px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  position: relative;
}

/* ==========================================================================
   Topbar
   ========================================================================== */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  gap: 4px;
  height: calc(var(--topbar-h) + var(--safe-top));
  padding: var(--safe-top) 8px 0 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.topbar__btn {
  position: relative;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  color: var(--ink);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}

.topbar__btn:active { background: var(--surface-alt); }

.topbar__title {
  grid-column: 2;
  min-width: 0;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
  letter-spacing: -0.01em;
}

.topbar__dot {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
}

/* ==========================================================================
   View container
   ========================================================================== */

.view {
  flex: 1;
  padding: 20px 18px calc(var(--bottom-nav-h) + 100px + var(--safe-bottom)) 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.view--flush { padding-top: 16px; }

.section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.section__title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0 4px;
}

.section--panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius, 14px);
  padding: 16px;
}

.section__title h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.section__title .count {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 600;
}

.section__title--toggle {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.section__chevron {
  display: inline-flex;
  align-items: center;
  transform: rotate(90deg);
  transition: transform 0.2s ease;
  color: var(--ink-soft);
  margin-left: 4px;
}
.section__chevron--open {
  transform: rotate(270deg);
}

.loading,
.empty {
  padding: 36px 18px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
}

.empty__big {
  font-size: 48px;
  margin-bottom: 10px;
  opacity: 0.35;
}

/* ==========================================================================
   Hero card (current / empty / featured)
   ========================================================================== */

.hero {
  position: relative;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 24px 22px 22px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 260px at 110% -20%, rgba(163, 230, 53, 0.25), transparent 60%),
    radial-gradient(400px 200px at -10% 110%, rgba(59, 130, 246, 0.18), transparent 60%);
  z-index: -1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.hero--empty {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.hero--empty .hero__title { font-size: 16px; }
.hero--empty .hero__meta { color: var(--ink-muted); }

.hero--empty::before,
.hero--empty::after {
  display: none;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 10px;
  border-radius: 999px;
  box-shadow: 0 0 0 6px var(--accent-glow);
  animation: pulse 2.2s ease-in-out infinite;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-ink);
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 0 8px rgba(163, 230, 53, 0); }
}

.hero__title {
  margin: 14px 0 6px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.hero__meta {
  margin: 0;
  font-size: 14px;
  opacity: 0.75;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.hero__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding: 12px 18px;
  background: var(--accent);
  color: var(--accent-ink);
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  box-shadow: 0 8px 20px rgba(163, 230, 53, 0.35);
  transition: transform 0.1s ease;
}
.hero__cta:active { transform: scale(0.97); }

.hero--empty .hero__title {
  font-size: 18px;
  color: var(--ink);
}

.hero--empty .hero__meta {
  color: var(--ink-muted);
  opacity: 1;
  display: block;
  text-align: center;
}

.hero--empty .hero__emoji {
  font-size: 44px;
  margin-bottom: 4px;
  display: block;
}

/* ==========================================================================
   Event row cards
   ========================================================================== */

.card {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.08s ease, box-shadow 0.15s ease;
}

.card--tap {
  cursor: pointer;
  user-select: none;
}

.card--tap:active {
  transform: scale(0.985);
  background: var(--surface-soft);
}

.card + .card { margin-top: 10px; }

.event-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.event-row__date {
  flex-shrink: 0;
  width: 48px;
  text-align: center;
  background: var(--surface-alt);
  border-radius: 12px;
  padding: 8px 0;
  line-height: 1;
}

.event-row__date .month {
  font-size: 10px;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-row__date .day {
  display: block;
  margin-top: 3px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.event-row__date--today {
  background: var(--brand);
}
.event-row__date--today .month {
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  line-height: 3.1;
}

.event-row__date--sat {
  background: #e0f2fe;
}
.event-row__date--sat .month,
.event-row__date--sat .day {
  color: #0369a1;
}

.event-row__date--sun {
  background: #fee2e2;
}
.event-row__date--sun .month,
.event-row__date--sun .day {
  color: #b91c1c;
}

.event-row__main {
  flex: 1;
  min-width: 0;
}

.event-row__title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.event-row__meta {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  gap: 8px;
  align-items: center;
}

.event-row__chev {
  color: var(--ink-soft);
  flex-shrink: 0;
}

.event-row__kebab {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -6px -4px -6px 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.event-row__kebab:active {
  background: var(--surface-soft);
  color: var(--ink);
}

/* Status chip */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.01em;
  background: var(--surface-alt);
  color: var(--ink-muted);
}
.chip--live {
  background: #ecfccb;
  color: #3f6212;
  position: relative;
}
.chip--live::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #65a30d;
  box-shadow: 0 0 0 0 #65a30d66;
  animation: pulse-dot 1.8s infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 #65a30d66; }
  50% { box-shadow: 0 0 0 4px #65a30d00; }
}
.chip--draft { background: #fef3c7; color: #92400e; }
.chip--ready { background: #dbeafe; color: #1e40af; }
.chip--done { background: #e2e8f0; color: #475569; }

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  font-size: 15px;
  font-weight: 700;
  border-radius: 14px;
  border: 1px solid transparent;
  background: var(--surface);
  color: var(--ink);
  min-height: 48px;
  letter-spacing: -0.01em;
  transition: transform 0.08s ease, background 0.12s ease;
}

.btn:active { transform: scale(0.98); }

.btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}
.btn--busy {
  pointer-events: none;
}
.btn__spinner {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  display: inline-block;
  animation: btn-spin 0.7s linear infinite;
  vertical-align: -2px;
}
@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

.btn--primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
}
.btn--primary:active { background: var(--brand-2); }

.btn--accent {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 8px 20px rgba(163, 230, 53, 0.4);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--ink);
}

.btn--danger {
  background: var(--surface);
  border-color: #fecaca;
  color: var(--danger);
}

.danger-zone {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed #fecaca;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.danger-zone .field__hint { color: var(--danger); opacity: .8; }

.btn--block { width: 100%; }

.btn--sm {
  padding: 9px 14px;
  font-size: 13px;
  min-height: 38px;
  border-radius: 10px;
}

.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.btn-row .btn { flex: 1 1 calc(50% - 5px); white-space: nowrap; min-width: 0; }
.btn-row .btn--icon { flex: 0 0 auto; padding: 0; width: 44px; min-width: 44px; }
.btn--icon {
  background: var(--surface);
  border: 1px solid var(--border-strong);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  min-height: 40px;
}
.btn-row--secondary {
  margin-top: 8px;
  justify-content: flex-end;
}
.btn-row--secondary .btn { flex: 0 0 auto; }

/* Floating CTA at the bottom of the viewport (above bottom nav) */
.cta-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--bottom-nav-h) + var(--safe-bottom));
  padding: 10px 18px 14px 18px;
  pointer-events: none;
  z-index: 15;
  background: linear-gradient(180deg, rgba(245, 246, 248, 0) 0%, var(--bg) 55%);
}

.cta-dock__inner {
  max-width: 524px;
  margin: 0 auto;
  pointer-events: auto;
}

.cta-dock .btn {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
}

/* ==========================================================================
   Detail hero (event detail header)
   ========================================================================== */

.detail-hero {
  position: relative;
  background: linear-gradient(160deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 22px 20px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  isolation: isolate;
}

.detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(500px 220px at 100% 0%, rgba(163, 230, 53, 0.18), transparent 60%);
  z-index: -1;
}

.detail-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(8px);
}

.detail-hero__chip--live {
  background: var(--accent);
  color: var(--accent-ink);
}
.detail-hero__edit {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.detail-hero__edit:active { background: rgba(255, 255, 255, 0.22); }

.detail-hero__title {
  margin: 12px 0 4px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.detail-hero__meta {
  margin: 0;
  font-size: 14px;
  opacity: 0.8;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

/* ==========================================================================
   List (participants, matches, members)
   ========================================================================== */

.list {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.list__item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: transparent;
  border: none;
  width: 100%;
  text-align: left;
  transition: background 0.12s ease;
}

.list__item + .list__item { border-top: 1px solid var(--border); }
.list__item:active { background: var(--surface-soft); }

.list__avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--ink-muted);
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
}

.list__main { flex: 1; min-width: 0; }
.list__title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.list__meta {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--ink-muted);
}

.list__trail {
  color: var(--ink-soft);
  flex-shrink: 0;
}

.list__item--selected { background: #ecfccb; }
.list__item--selected .list__avatar { background: var(--accent); color: var(--accent-ink); }

.list--compact .list__item { padding: 9px 16px; gap: 10px; }
.list--compact .list__avatar { width: 30px; height: 30px; font-size: 12px; }
.list--compact .list__title { font-size: 14px; }
.list--compact .list__meta { font-size: 11px; margin-top: 1px; }

.list__item--disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.list__item--participant {
  background: #f1f5f9;
}

.list__item--removing {
  background: #fee2e2;
  text-decoration: line-through;
  color: var(--ink-soft);
}
.list__item--removing .list__avatar { opacity: 0.5; }

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 2px 10px;
}
.toolbar__info {
  font-size: 13px;
  color: var(--ink-soft);
}

.badge {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
}
.badge--muted {
  background: #e2e8f0;
  color: var(--ink-soft);
}
.badge--admin-only {
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  text-transform: none;
  letter-spacing: 0;
}
.badge--private {
  background: #dbeafe;
  color: #1e40af;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  text-transform: none;
  letter-spacing: 0;
}
.badge--host {
  background: #fef3c7;
  color: #92400e;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  text-transform: none;
  letter-spacing: 0;
}

.detail-hero__host {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.list__delete {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease, color 0.12s ease;
}
.list__delete:active {
  background: #fee2e2;
  color: var(--danger);
}

/* ==========================================================================
   Stepper (NTRP etc.)
   ========================================================================== */

.stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface-soft);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 6px;
  gap: 10px;
}
.stepper--sm {
  padding: 3px;
  gap: 4px;
  border-radius: 10px;
}
.stepper__btn--sm {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.stepper__btn {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: none;
  background: var(--surface);
  border-radius: 10px;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.08s ease, background 0.12s ease;
}
.stepper__btn:active {
  transform: scale(0.95);
  background: var(--surface-alt);
}

.stepper__value {
  flex: 1;
  min-width: 3ch;
  text-align: center;
  font-size: 24px;
  font-weight: 800;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.stepper__input {
  flex: 1;
  min-width: 3ch;
  max-width: 5ch;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  border: none;
  background: transparent;
  outline: none;
  -moz-appearance: textfield;
}
.stepper__input::-webkit-outer-spin-button,
.stepper__input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.preset-btn--compact {
  flex-shrink: 0;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  white-space: nowrap;
}
.preset-btn--compact:active {
  background: var(--surface-alt);
}

.availability-summary {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0 0;
}

.field-row--dense { gap: 8px; }
.field-row--dense .field__label { white-space: nowrap; }
.field-row--dense .stepper {
  padding: 3px;
  gap: 4px;
  border-radius: 10px;
}
.field-row--dense .stepper__btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.field-row--dense .stepper__value {
  font-size: 16px;
  min-width: 3ch;
  white-space: nowrap;
}

/* ==========================================================================
   Match card
   ========================================================================== */

.team-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 8px;
}
.team-card__header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
}
.team-card__name {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}
.team-card__meta {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 600;
}
.team-card__group {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.6;
  display: flex;
  gap: 8px;
}
.team-card__group + .team-card__group {
  margin-top: 4px;
}
.team-card__gender {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  background: var(--surface-alt);
  border-radius: 4px;
  padding: 2px 6px;
  align-self: flex-start;
  margin-top: 2px;
}

.team-card__members {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-member-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 4px 10px;
}

.team-member-chip--editable {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.team-member-chip--editable:active {
  background: var(--accent-soft, #dbeafe);
  border-color: var(--accent, #2563eb);
}

.team-member-chip--tappable {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.team-member-chip--tappable:active {
  background: var(--accent-soft, #dbeafe);
  border-color: var(--accent, #2563eb);
}

.team-member-chip__arrow {
  font-size: 10px;
  color: var(--ink-muted);
}

.list__item--tap { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.list__item--tap:active { background: var(--surface-soft); }

.schedule-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}
.schedule-row:last-child { border-bottom: none; }
.schedule-row--rest { opacity: 0.5; }
.schedule-row__round {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
  min-width: 28px;
}
.schedule-row__time {
  font-size: 11px;
  color: var(--ink-muted);
  min-width: 70px;
}
.schedule-row__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}
.schedule-row__type {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
}
.schedule-row__court {
  font-size: 12px;
  color: var(--ink-2);
}
.schedule-row__detail {
  font-size: 12px;
  color: var(--ink-muted);
}
.schedule-row__result {
  font-size: 11px;
  font-weight: 700;
  color: #1e40af;
}

.stale-notice {
  background: #fef3c7;
  color: #92400e;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: 10px;
  margin-bottom: 8px;
  text-align: center;
}

.round-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 12px 4px 4px;
}
.round-label__time {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: 0;
  text-transform: none;
}

.round-rest {
  font-size: 12px;
  color: var(--ink-soft);
  padding: 6px 6px 2px;
  line-height: 1.5;
}

.gender-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 4px 2px;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 4px 2px 8px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
  cursor: default;
  transition: background 0.1s, border-color 0.1s;
}
.chip--tap {
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.chip--tap:active {
  transform: scale(0.97);
  border-color: var(--border-strong);
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip-row .chip {
  cursor: pointer;
}
.chip--selected {
  background: var(--primary, #0f172a);
  color: #fff;
  border-color: var(--primary, #0f172a);
}
.chip__name {
  font-weight: 600;
}
.chip__meta {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 500;
}
.chip--windowed {
  border-color: #f59e0b;
  background: #fffbeb;
}
.chip__badge {
  font-size: 12px;
  margin-right: 2px;
}

button.chip {
  cursor: pointer;
}
.chip--active {
  background: var(--primary, #0f172a);
  color: #fff;
  border-color: var(--primary, #0f172a);
}
.chip--side-a {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
}
.chip--side-b {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}
.chip--placeholder {
  border-style: dashed;
  color: var(--ink-muted);
  font-weight: 400;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}
.preset-btn {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line, #e2e8f0);
  background: #fff;
  color: var(--ink, #0f172a);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.preset-btn:hover {
  background: #f8fafc;
}
.preset-btn--active {
  background: var(--primary, #0f172a);
  color: #fff;
  border-color: var(--primary, #0f172a);
}
.availability-summary {
  font-size: 13px;
  color: var(--ink-muted, #475569);
  margin: 8px 0 0;
}

/* ---------- Brand / About ---------- */
.about-version {
  text-align: center;
  font-size: 11px;
  color: var(--ink-muted, #94a3b8);
  margin: 10px 0 0;
}
.brand-hint {
  text-align: center;
  font-size: 11px;
  color: var(--ink-muted, #94a3b8);
  margin: 14px 0 0;
  opacity: 0.7;
}
.menu__item--link {
  text-decoration: none;
  color: inherit;
  display: flex;
}

/* Stacked menu item: label + hint as two lines in a column */
.menu__item--stack .menu__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.menu__item--stack .menu__label { white-space: normal; }
.menu__item--stack .menu__hint { font-size: 12px; }

/* Template picker (new-event sheet) */
.template-picker__list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.template-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
}
.template-chip:active { background: var(--surface-alt); }
.template-chip--active {
  border-color: var(--accent, #16a34a);
  background: rgba(22, 163, 74, 0.08);
}
.template-chip__name { font-weight: 600; font-size: 13px; }
.template-chip__meta { color: var(--ink-muted, #94a3b8); font-size: 11px; }

.court-inputs {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.court-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.court-row--segment {
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
}
.court-row__top {
  display: flex;
  gap: 6px;
  align-items: center;
}
.court-row__top .input:not(.surface-select) { flex: 1; min-width: 0; }
.court-row .input:not(.surface-select) {
  flex: 1;
  min-width: 0;
}
.court-row__top .surface-select {
  flex: 0 0 auto;
  width: 64px;
  min-width: 0;
  padding: 8px 6px;
  font-size: 12px;
  text-align: center;
  text-align-last: center;
}
.court-row__clock {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
}
.court-row__clock:active { background: var(--surface-alt); }
.court-row__window {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0 4px 2px;
}
.court-row__window-label {
  font-size: 11px;
  color: var(--ink-muted);
  flex-shrink: 0;
}
.court-row__window-sep {
  font-size: 12px;
  color: var(--ink-soft);
}
.time-picker--mini { gap: 2px; }
.time-picker--mini .input--mini {
  font-size: 12px;
  padding: 4px 6px;
  min-width: 0;
  width: auto;
}
.court-row__remove {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--ink-soft);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.court-row__remove:active { background: var(--surface-alt); }

.match {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.08s ease;
}
.match--tap:active { transform: scale(0.985); background: var(--surface-soft); }

.match__head {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--ink-muted);
}
.match__head-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 6px;
}

.match__num {
  font-weight: 700;
  color: var(--ink-2);
}

.match__court {
  font-weight: 700;
  font-size: 13px;
  color: var(--ink);
}

.match__type-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--surface-alt);
  color: var(--ink-muted);
}

.match__type-badge--exc {
  background: #fef3c7;
  color: #92400e;
}

.match__note {
  font-size: 11px;
  color: #92400e;
  padding: 2px 0 4px;
  line-height: 1.3;
}

.match__wl {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  vertical-align: middle;
}

.match__wl--win {
  color: #1e40af;
  background: #dbeafe;
}

.match__wl--lose {
  color: var(--ink-muted);
  background: var(--surface-alt);
}

.match__wl--draw {
  color: #92400e;
  background: #fef3c7;
}

.match__side--winner .match__names {
  color: var(--ink);
}

.badge--result {
  font-size: 10px;
  background: var(--surface-alt);
  color: var(--ink-muted);
}
.badge--win { background: #dcfce7; color: #166534; }
.badge--loss { background: #fee2e2; color: #991b1b; }
.badge--draw { background: #f3f4f6; color: #6b7280; }

.match__body {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
}

.match__side {
  min-width: 0;
}

.match__side--right { text-align: right; }

.match__names {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match__score {
  font-size: 22px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  letter-spacing: -0.02em;
  padding: 2px 10px;
  background: var(--surface-alt);
  border-radius: 10px;
  min-width: 36px;
  text-align: center;
}

.match__score--winner { background: #dbeafe; color: #1e40af; }
.match__score--empty { color: var(--ink-soft); background: transparent; border: 1px dashed var(--border-strong); }

.match__vs {
  font-size: 11px;
  color: var(--ink-soft);
  font-weight: 700;
}

/* ==========================================================================
   Form elements
   ========================================================================== */

.form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  cursor: pointer;
}
.toggle-row__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.toggle {
  appearance: none;
  width: 44px;
  height: 26px;
  background: #d1d5db;
  border-radius: 13px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}
.toggle:checked { background: var(--brand); }
.toggle::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.toggle:checked::after { transform: translateX(18px); }

.field-row {
  display: flex;
  gap: 12px;
}
.field--half {
  flex: 1;
  min-width: 0;
}

.field__label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding-left: 2px;
}

.field__hint {
  font-size: 12px;
  color: var(--ink-soft);
  padding-left: 2px;
}

.overnight-badge {
  color: var(--accent, #16a34a);
  font-size: 11px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  margin-left: 4px;
}

.schedule-summary {
  font-size: 13px;
  color: var(--ink-soft);
  padding: 8px 12px;
  background: var(--surface-alt, #f8fafc);
  border-radius: 10px;
  line-height: 1.45;
}
.schedule-summary--warn {
  color: #b45309;
  background: #fef3c7;
}
.schedule-summary--error {
  color: var(--danger, #dc2626);
  background: #fee2e2;
}

.input,
input.input,
textarea.input,
select.input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  outline: none;
  transition: border 0.15s ease, background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.input:focus {
  border-color: var(--ink);
  background: var(--surface);
}

.input--select {
  padding: 12px 12px;
  font-size: 14px;
  cursor: pointer;
}

.time-picker {
  display: flex;
  gap: 8px;
}
.time-picker select {
  flex: 1;
  min-width: 0;
}

.input--compact {
  padding: 10px 12px;
  font-size: 14px;
}

.guest-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0 12px;
}
.guest-input-row .input--compact {
  flex: 1;
  min-width: 0;
}
.guest-toggle {
  flex-shrink: 0;
  min-width: 36px;
  padding: 8px 10px;
  font-weight: 700;
}
.guest-ntrp-val {
  font-size: 13px;
  font-weight: 700;
  min-width: 28px;
  text-align: center;
}

textarea.input { resize: vertical; min-height: 80px; }

.input--readonly {
  background: var(--surface-alt, #f6f7f9);
  color: var(--ink-soft, #666);
  cursor: not-allowed;
  user-select: text;
  display: flex;
  align-items: center;
}

/* Kebab dropdown (event row more-menu) */
.kebab-menu {
  position: fixed;
  z-index: 200;
  min-width: 140px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
  padding: 4px;
  display: flex;
  flex-direction: column;
}
.kebab-menu__item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: none;
  background: transparent;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.kebab-menu__item:active { background: var(--surface-soft); }
.kebab-menu__item--danger { color: var(--danger); }

/* Match type picker (schedule generation sheet) */
.match-type-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.match-type-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.match-type-item:has(.match-type__check:checked) {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.15);
}
.match-type__check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--accent);
}
.match-type__text { flex: 1; min-width: 0; }
.match-type__label { font-size: 15px; font-weight: 700; color: var(--ink); }
.match-type__hint { font-size: 12px; color: var(--ink-muted); margin-top: 2px; }

/* Segment control */
.segment {
  display: flex;
  background: var(--surface-alt);
  border-radius: 12px;
  padding: 4px;
  gap: 4px;
}

.segment__btn {
  flex: 1;
  padding: 10px 6px;
  border: none;
  background: transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  transition: all 0.15s ease;
}

.segment__btn--active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   Menu (settings sheet)
   ========================================================================== */

.menu {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  color: var(--ink);
  transition: background 0.12s ease;
}

.menu__item + .menu__item { border-top: 1px solid var(--border); }
.menu__item:active { background: var(--surface-soft); }

.menu__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-alt);
  color: var(--ink-2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu__label {
  flex: 1;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.menu__hint {
  font-size: 13px;
  color: var(--ink-soft);
}

.menu__item--danger .menu__label { color: var(--danger); }
.menu__item--danger .menu__icon { background: #fee2e2; color: var(--danger); }

.menu__item--accent .menu__icon { background: #ecfccb; color: #3f6212; }

/* Invite share block */
.invite-copy {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.invite-copy .input {
  flex: 1;
  font-size: 13px;
  background: #f8fafc;
  color: var(--ink);
}
.invite-copy .btn {
  white-space: nowrap;
}

.card__eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand, #2563eb);
  letter-spacing: 0.02em;
  margin: 0 0 6px;
  text-transform: none;
}
.card__lead {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 4px;
}
.card__sub {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}
.card__head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.card__head-row .card__lead {
  margin: 0;
  flex: 1;
  min-width: 0;
}

.profile-completion {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.profile-completion__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.profile-completion__label {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
}
.profile-completion__value {
  font-size: 12px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.profile-completion__track {
  height: 6px;
  background: var(--border, #e5e7eb);
  border-radius: 999px;
  overflow: hidden;
}
.profile-completion__fill {
  height: 100%;
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.surface-stats {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.surface-stats__row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 12px;
}
.surface-stats__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.surface-stats__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.surface-stats__badge--hard {
  background: #dbeafe;
  color: #1d4ed8;
}
.surface-stats__badge--clay {
  background: #fde4cf;
  color: #c2410c;
}
.surface-stats__badge--turf {
  background: #dcfce7;
  color: #15803d;
}
.surface-stats__count {
  font-size: 12px;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}
.surface-stats__meta {
  font-size: 13px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.logo-row__actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.logo-preview {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  border: 1px solid var(--border, #e5e7eb);
  background: var(--surface-soft, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 auto;
}
.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.logo-preview__placeholder {
  font-size: 11px;
  color: var(--ink-muted);
}

.club-intro-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 16px;
  margin-bottom: 16px;
}
.club-intro-card__logo {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  flex: 0 0 auto;
}
.club-intro-card__logo--empty {
  background: var(--surface-soft, #f1f5f9);
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
}
.club-intro-card__body {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.club-intro-card__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.club-intro-card__region {
  font-size: 12px;
  color: var(--ink-muted);
  margin: 0;
}
.club-intro-card__desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.role-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--accent, #16a34a);
  border-radius: 999px;
  vertical-align: middle;
  letter-spacing: 0.2px;
}

.role-badge--president {
  background: #b45309;
}

/* ==========================================================================
   Sheet (bottom modal)
   ========================================================================== */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  z-index: 40;
  animation: fade-in 0.12s ease;
}

.sheet {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92vh;
  background: var(--surface);
  border-radius: 26px 26px 0 0;
  box-shadow: 0 -16px 50px rgba(15, 23, 42, 0.22);
  z-index: 50;
  display: flex;
  flex-direction: column;
  padding-bottom: calc(18px + var(--safe-bottom));
  animation: slide-up 0.18s cubic-bezier(0.25, 0.9, 0.25, 1);
}

@media (min-width: 560px) {
  .sheet {
    left: 50%;
    right: auto;
    width: 560px;
    transform: translateX(-50%);
  }
  @keyframes slide-up {
    from { transform: translate(-50%, 100%); }
    to { transform: translate(-50%, 0); }
  }
}

.sheet__handle {
  width: 44px;
  height: 5px;
  background: var(--border-strong);
  border-radius: 3px;
  margin: 10px auto 4px;
}

.sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 8px;
}

.sheet__title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.sheet__close {
  width: 36px;
  height: 36px;
  border: none;
  background: var(--surface-alt);
  border-radius: 12px;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sheet__close:active { background: var(--border); }

.sheet__body {
  overflow-y: auto;
  padding: 12px 20px 20px;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 auto;
  min-height: 0;
}

.sheet__footer {
  padding: 12px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 14px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-shrink: 0;
}

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slide-up {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ==========================================================================
   Toast
   ========================================================================== */

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(100px + var(--safe-bottom));
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  z-index: 100;
  box-shadow: var(--shadow-lg);
  animation: toast-in 0.25s ease-out;
  max-width: calc(100% - 40px);
  text-align: center;
  white-space: pre-line;
  line-height: 1.4;
}

@keyframes toast-in {
  from { transform: translate(-50%, 12px); opacity: 0; }
  to { transform: translate(-50%, 0); opacity: 1; }
}

/* ==========================================================================
   Misc
   ========================================================================== */

.stack { display: flex; flex-direction: column; gap: 10px; }

.swap-section {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
  padding: 6px 2px 0;
}

.match__player {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-decoration-color: var(--ink-soft);
  text-underline-offset: 2px;
  cursor: pointer;
}

.match__edited-badge {
  font-size: 11px;
  font-weight: 600;
  color: #92400e;
  background: #fef3c7;
  border-radius: 4px;
  padding: 2px 6px;
}
.row-gap { display: flex; gap: 10px; align-items: center; }
.muted { color: var(--ink-muted); font-size: 13px; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 14px; }
.mt-4 { margin-top: 20px; }

.error-card {
  padding: 20px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: var(--radius);
  color: #991b1b;
  font-size: 14px;
}

/* ==========================================================================
   Bottom navigation
   ========================================================================== */
.bottom-nav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: calc(var(--bottom-nav-h) + var(--safe-bottom));
  padding-bottom: var(--safe-bottom);
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  z-index: 20;
}
.bottom-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}
.bottom-nav__icon {
  display: flex;
  align-items: center;
  justify-content: center;
}
.bottom-nav__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.bottom-nav__item--active {
  color: var(--ink);
}
.bottom-nav__item--active .bottom-nav__label {
  font-weight: 700;
}

/* ==========================================================================
   Dashboard (home tab)
   ========================================================================== */
.greeting { display: flex; flex-direction: column; gap: 2px; }
.greeting__hello { margin: 0; font-size: 20px; font-weight: 800; color: var(--ink); }
.greeting__sub { margin: 0; font-size: 13px; color: var(--ink-muted); }

.dash-empty {
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.dash-empty__title { margin: 0; font-size: 15px; font-weight: 700; color: var(--ink); }
.dash-empty__sub { margin: 0; font-size: 13px; color: var(--ink-muted); }

.hero__badge-dot--upcoming { background: #f59e0b; }

.upcoming-next {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
}
.upcoming-next__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.upcoming-next__label { font-size: 12px; color: var(--ink-muted); font-weight: 600; }
.upcoming-next__arrow { color: var(--ink-muted); }
.upcoming-next__title { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.upcoming-next__meta { margin: 2px 0 0; font-size: 12px; color: var(--ink-muted); }

.dash-todo {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
}
.dash-todo:active { background: var(--surface-soft); }
.dash-todo__msg {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  color: var(--warn);
  background: #fef3c7;
  padding: 3px 8px;
  border-radius: 999px;
}
.dash-todo__title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-todo__chev { color: var(--ink-muted); display: flex; }

/* --- Home mini widgets (내 기록 / 클럽 하이라이트) --- */
.mini-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.mini-card:active { background: var(--surface-soft); }
.mini-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-muted);
}
.mini-card__label { font-weight: 700; letter-spacing: 0.02em; }
.mini-card__more { display: inline-flex; align-items: center; gap: 2px; }
.mini-card__body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mini-card__stat { display: flex; flex-direction: column; gap: 2px; }
.mini-card__stat-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.mini-card__stat-label { font-size: 12px; color: var(--ink-muted); }
.mini-card__sub { font-size: 12px; color: var(--ink-muted); }
.mini-card__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}
.mini-card__meta { margin: 0; font-size: 12px; color: var(--ink-muted); }
.mini-card--highlight {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}
.mini-card--skeleton {
  cursor: default;
  pointer-events: none;
}
.mini-card--skeleton:active { background: var(--surface); }
.skeleton-line {
  display: inline-block;
  width: 100%;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-alt) 0%, var(--surface-soft) 50%, var(--surface-alt) 100%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.2s ease-in-out infinite;
}
.skeleton-line--sm { width: 48px; height: 10px; }
.skeleton-line--lg { height: 28px; border-radius: 8px; }
@keyframes skeleton-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.streak-dots { display: inline-flex; gap: 6px; }
.streak-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: inline-block;
}
.streak-dot--win { background: #16a34a; }
.streak-dot--loss { background: #e2e8f0; border: 1px solid #cbd5e1; }
.streak-dot--draw { background: #f59e0b; }

.filter-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 4px;
  scrollbar-width: none;
}
.filter-chips::-webkit-scrollbar { display: none; }
.filter-chip {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--ink-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.filter-chip--active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.month-label {
  margin: 12px 0 6px;
  padding: 0 2px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Stats grid
   ========================================================================== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stat-card__value {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.stat-card__label {
  font-size: 12px;
  color: var(--ink-muted);
  font-weight: 600;
}

.leaderboard {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.leader-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
}
.leader-row + .leader-row {
  border-top: 1px solid var(--border);
}
.leader-row__rank {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-alt);
  color: var(--ink-muted);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}
.leader-row__rank--top1 { background: #fef3c7; color: #92400e; }
.leader-row__rank--top2 { background: #e5e7eb; color: #374151; }
.leader-row__rank--top3 { background: #fed7aa; color: #9a3412; }
.leader-row__main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.leader-row__name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.leader-row__sub {
  font-size: 11px;
  color: var(--ink-muted);
}
.leader-row__record {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}
.leader-row__wl {
  font-size: 12px;
  font-weight: 600;
}
.leader-row__wins { color: #16a34a; }
.leader-row__losses { color: #64748b; }
.mvp-card {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: var(--radius);
  padding: 14px 16px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mvp-card__headline {
  font-size: 17px;
  font-weight: 800;
  color: #7c2d12;
}
.mvp-card__sub {
  font-size: 12px;
  color: #92400e;
}
.leader-row__rate {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink);
}
.guest-link__url {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12px;
  word-break: break-all;
  color: #0f172a;
}
.guest-banner {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  margin-bottom: 12px;
}
.guest-banner__logo {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.guest-footer {
  margin-top: 24px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}
.guest-powered {
  margin-top: 32px;
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  padding-bottom: 16px;
}
.guest-powered__cta {
  margin-top: 10px;
  font-size: 11px;
  color: #94a3b8;
  border: none;
  background: transparent;
  padding: 4px 6px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.guest-powered__contact {
  margin: 8px 0 0;
  font-size: 11px;
  color: #94a3b8;
}

/* ==========================================================================
   Stats (통계) — sparkline, type-bar, player-stat-list, stat-split
   ========================================================================== */
.small { font-size: 12px; }
.stat-block__label {
  margin: 18px 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-muted);
  letter-spacing: 0.02em;
}

.sparkline {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 8px;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  align-items: end;
}
.sparkline__cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.sparkline__bar {
  width: 100%;
  height: 64px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: var(--surface-alt);
  border-radius: 4px;
  overflow: hidden;
}
.sparkline__bar-fill {
  width: 70%;
  background: var(--brand);
  border-radius: 4px 4px 0 0;
  min-height: 3px;
  transition: height 0.2s ease;
}
.sparkline__val {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}
.sparkline__mon {
  font-size: 11px;
  color: var(--ink-muted);
}

.type-bar {
  display: flex;
  width: 100%;
  height: 14px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface-alt);
  margin-bottom: 8px;
}
.type-bar__seg {
  height: 100%;
}
.type-bar__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-muted);
}
.type-bar__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.type-bar__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.hbar-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.hbar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}
.hbar-row__label {
  flex: 0 0 72px;
  color: var(--ink);
}
.hbar-row__track {
  flex: 1;
  height: 10px;
  background: var(--surface-alt);
  border-radius: 5px;
  overflow: hidden;
}
.hbar-row__fill {
  height: 100%;
  background: var(--brand);
  border-radius: 5px;
}
.hbar-row__val {
  flex: 0 0 44px;
  text-align: right;
  color: var(--ink-muted);
  font-variant-numeric: tabular-nums;
}

.player-stat-list {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.player-stat-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
}
.player-stat-row + .player-stat-row {
  border-top: 1px solid var(--border);
}
.player-stat-row__rank {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--surface-alt);
  color: var(--ink-muted);
  font-size: 11px;
  font-weight: 800;
}
.player-stat-row__trophy {
  flex-shrink: 0;
  font-size: 16px;
}
.player-stat-row__name {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--ink);
}
.player-stat-row__tag {
  font-size: 11px;
  color: var(--ink-muted);
  font-weight: 400;
  margin-left: 6px;
}
.player-stat-row__meta {
  flex: 1;
  min-width: 0;
  font-size: 12px;
  color: var(--ink-muted);
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.player-stat-row--clickable {
  cursor: pointer;
}
.player-stat-row--clickable:active {
  background: var(--surface-soft);
}

.stat-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.stat-split__col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.stat-split__title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}
@media (max-width: 420px) {
  .stat-split {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Result share card (모임 결과 이미지)
   ========================================================================== */
.share-preview {
  display: flex;
  justify-content: center;
  padding: 8px 0 16px;
  overflow: auto;
}
.share-card-frame {
  background: #0f172a;
  padding: 56px 14px 14px;
  border-radius: 12px;
  box-sizing: border-box;
}
.share-card {
  width: 360px;
  background: #1e3a8a;
  background-image: linear-gradient(160deg, #0f172a 0%, #1e3a8a 55%, #16a34a 100%);
  color: #f8fafc;
  padding: 22px 22px 18px;
  font-family: Pretendard, system-ui, -apple-system, sans-serif;
  box-sizing: border-box;
  word-break: keep-all;
  overflow-wrap: break-word;
  letter-spacing: 0;
}
.share-card * {
  letter-spacing: 0;
}
.share-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.share-card__logo {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.12);
}
.share-card__club {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.share-card__club-name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  color: #f8fafc;
  line-height: 20px;
}
.share-card__eyebrow {
  margin: 0;
  font-size: 11px;
  color: rgba(248, 250, 252, 0.65);
  font-weight: 600;
  letter-spacing: 0.1em;
}
.share-card__title-block {
  margin-bottom: 18px;
}
.share-card__title {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
  line-height: 28px;
  color: #fff;
  display: block;
}
.share-card__meta {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: rgba(248, 250, 252, 0.75);
  display: block;
}
.share-card__body {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}
.share-card__winner {
  text-align: center;
  margin-bottom: 14px;
}
.share-card__winner-label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: rgba(248, 250, 252, 0.7);
  font-weight: 700;
}
.share-card__winner-name {
  margin: 4px 0 2px;
  font-size: 24px;
  font-weight: 800;
  color: #fef3c7;
}
.share-card__winner-sub {
  margin: 0;
  font-size: 12px;
  color: rgba(248, 250, 252, 0.75);
}
.share-card__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.share-card__stat {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  padding: 10px 12px;
  text-align: center;
}
.share-card__stat-label {
  margin: 0;
  font-size: 11px;
  color: rgba(248, 250, 252, 0.7);
  font-weight: 600;
}
.share-card__stat-value {
  margin: 3px 0 0;
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.share-card__stat-sub {
  margin: 2px 0 0;
  font-size: 11px;
  color: rgba(248, 250, 252, 0.65);
}
.share-card__section-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.75);
  letter-spacing: 0.04em;
}
.share-card__rank-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.share-card__rank-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
}
.share-card__rank-badge {
  font-size: 18px;
  width: 24px;
  text-align: center;
}
.share-card__rank-name {
  flex: 1;
  font-size: 15px;
  font-weight: 700;
  color: #fff;
}
.share-card__rank-meta {
  font-size: 12px;
  color: rgba(248, 250, 252, 0.75);
}
.share-card__stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.share-card__stat-cell {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 8px;
  text-align: center;
}
.share-card__stat-num {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.share-card__stat-lbl {
  margin: 4px 0 0;
  font-size: 11px;
  color: rgba(248, 250, 252, 0.7);
  font-weight: 600;
}
.share-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 4px;
}
.share-card__brand {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
}
.share-card__brand-sub {
  font-size: 10px;
  color: rgba(248, 250, 252, 0.55);
  letter-spacing: 0.04em;
}
.share-card__match-list {
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 14px;
}
.share-card__round-label {
  margin: 10px 0 6px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(248, 250, 252, 0.65);
  letter-spacing: 0.04em;
}
.share-card__round-label:first-of-type {
  margin-top: 6px;
}
.share-card__match {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  align-items: stretch;
}
.share-card__match-court {
  flex-shrink: 0;
  width: 44px;
  font-size: 10px;
  color: rgba(248, 250, 252, 0.55);
  padding-top: 4px;
}
.share-card__match-sides {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.share-card__match-side {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: rgba(248, 250, 252, 0.8);
}
.share-card__match-side--win {
  color: #fef3c7;
  font-weight: 700;
}
.share-card__match-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.share-card__match-score {
  flex-shrink: 0;
  font-weight: 700;
}
.share-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface-alt);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  user-select: none;
}
.share-toggle input {
  width: 16px;
  height: 16px;
  accent-color: var(--brand);
}

.badge--skipped { background: #f3f4f6; color: #6b7280; }

.match--skipped {
  opacity: 0.55;
}
.match--skipped .match__names {
  text-decoration: line-through;
}

/* Pull-to-refresh indicator */
.pull-indicator {
  text-align: center;
  padding: 12px 0;
  font-size: 13px;
  color: var(--ink-muted);
  transition: opacity 0.15s;
}
