/*
 * futba.net — Halı Saha Rehberi. The web mirrors the app's design system
 * (mobileAppUI AppColors + the venue list / detail widgets): the same dark
 * surfaces, #22C55E primary with dark text on filled buttons, green-outlined
 * secondary buttons, Material icons. The generator hashes this file into
 * /sahalar/assets/sahalar.<hash>.css — edit THIS source, never the output.
 * Icon masks: Material Design icons, Apache License 2.0.
 */
:root {
  color-scheme: dark;
  /* AppColors */
  --bg: #05080F;          /* backgroundDark */
  --bg-alt: #0A0F1C;      /* backgroundAlt */
  --surface: #121826;     /* surfaceDark */
  --surface-hi: #1A2236;  /* surfaceHighlight */
  --border: rgba(255, 255, 255, .10);   /* borderSubtle */
  --border-2: rgba(255, 255, 255, .18); /* borderMedium */
  --text: #F5F5DC;        /* cream */
  --muted: #94A3B8;       /* creamMuted */
  --dim: #6B7897;         /* textDim */
  --primary: #22C55E;
  --primary-dark: #16A34A;
  --gold: #FFC83D;        /* premiumGold */
  --primary-12: rgba(34, 197, 94, .12);
  --primary-16: rgba(34, 197, 94, .16);
  --primary-50: rgba(34, 197, 94, .5);
  --topbar: 60px;
  /* Motion: one decelerate curve for entries, short durations. */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease: cubic-bezier(.4, 0, .2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --m-stadium: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7,5L3,7V3L7,5z M18,3v4l4-2L18,3z M11,2v4l4-2L11,2z M13,18h-2l0,4c-5.05-0.15-9-1.44-9-3v-9c0-1.66,4.48-3,10-3 s10,1.34,10,3v9c0,1.56-3.95,2.85-9,3L13,18z M5,10.04C6.38,10.53,8.77,11,12,11s5.62-0.47,7-0.96C19,9.86,16.22,9,12,9 S5,9.86,5,10.04z M20,11.8c-1.82,0.73-4.73,1.2-8,1.2s-6.18-0.47-8-1.2v6.78c0.61,0.41,2.36,1.01,5,1.28V16h6v3.86 c2.64-0.27,4.39-0.87,5-1.28V11.8z'/%3E%3C/svg%3E");
  --m-place: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm6-1.8C18 6.57 15.35 4 12 4s-6 2.57-6 6.2c0 2.34 1.95 5.44 6 9.14 4.05-3.7 6-6.8 6-9.14zM12 2c4.2 0 8 3.22 8 8.2 0 3.32-2.67 7.25-8 11.8-5.33-4.55-8-8.48-8-11.8C4 5.22 7.8 2 12 2z'/%3E%3C/svg%3E");
  --m-near: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.27 6.73l-4.24 10.13-1.32-3.42-.32-.83-.82-.32-3.43-1.33 10.13-4.23M21 3L3 10.53v.98l6.84 2.65L12.48 21h.98L21 3z'/%3E%3C/svg%3E");
  --m-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.29 6.71c-.39.39-.39 1.02 0 1.41L13.17 12l-3.88 3.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0l4.59-4.59c.39-.39.39-1.02 0-1.41L10.7 6.7c-.38-.38-1.02-.38-1.41.01z'/%3E%3C/svg%3E");
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--topbar) + 72px); }
body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
}
a { color: inherit; }
img, svg { display: block; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
[hidden] { display: none !important; }

.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 780px; }
@media (max-width: 360px) { .wrap { padding: 0 14px; } }

/* ── Top bar ─────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(5, 8, 15, .88);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
/* List pages keep their search/sort bar pinned instead of the brand bar. */
body[data-page="il"] .topbar, body[data-page="ilce"] .topbar { position: relative; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--topbar); }
.brand img { height: 24px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a:not(.btn) { font-size: 14px; color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
@media (max-width: 560px) { .nav .nav-hide-sm { display: none; } }
@media (max-width: 360px) { .nav a:not(.btn) { padding: 8px 6px; } }

/* ── Buttons (app: ElevatedButton primary / OutlinedButton) ──────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 12px 18px; border-radius: 14px;
  font-size: 16px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
}
.btn svg { width: 20px; height: 20px; fill: currentColor; flex: 0 0 auto; }
.btn-primary { background: var(--primary); color: var(--bg); }
.btn-primary:hover { background: #1FB855; }
.btn-primary:active { background: var(--primary-dark); }
.btn-outline { color: var(--primary); border-color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary-12); }
.btn-sm { min-height: 40px; padding: 8px 14px; border-radius: 12px; font-size: 14px; gap: 6px; }
.btn-sm svg { width: 18px; height: 18px; }
.btn-block { width: 100%; }
/* Top bar download button: a compact size of the app button. */
.nav .btn-sm { min-height: 34px; padding: 6px 12px; border-radius: 10px; font-size: 13px; gap: 5px; }
.nav .btn-sm svg { width: 16px; height: 16px; }
@media (max-width: 360px) { .nav .btn-sm { padding: 6px 9px; } }

/* FUTBA PUANI pill — app parity (venue_detail_screen › _buildRatingBlock). */
.fp-pill {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; line-height: 1.3; white-space: nowrap;
  color: var(--primary-dark); background: rgba(22, 163, 74, .14);
  border: 1px solid rgba(22, 163, 74, .45); border-radius: 6px; padding: 2px 7px;
}

/* ── Breadcrumb + page head ──────────────────────────────────────────── */
.crumbs { padding: 16px 0 4px; font-size: 13px; color: var(--muted); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; }
.crumbs li { display: flex; align-items: center; gap: 6px; min-width: 0; min-height: 24px; }
.crumbs li + li::before { content: "›"; color: var(--muted); }
.crumbs a { display: inline-flex; align-items: center; min-height: 24px; color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }
/* The venue name is the h1 right below — don't repeat it on a phone. */
@media (max-width: 560px) { body[data-page="venue"] .crumbs li:last-child { display: none; } }

.phead { padding: 8px 0 14px; }
.phead h1 { font-size: 28px; line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.phead .lede { color: var(--muted); font-size: 15px; margin-top: 6px; max-width: 640px; }
.phead-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 14px; }
@media (max-width: 560px) {
  .phead h1 { font-size: 24px; }
  .phead .lede { font-size: 14px; }
}

/* Stat capsule: "2.798 Saha | 81 İl" */
.stats { display: inline-flex; align-items: stretch; max-width: 100%; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; background: var(--surface); }
.stat { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 15px 8px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat b { font-size: 18px; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.link-chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 12px;
  font-size: 14px; font-weight: 600; color: var(--primary); text-decoration: none;
  border: 1px solid var(--border); background: var(--surface);
}
.link-chip:hover { border-color: var(--primary-50); }

/* ── List toolbar (app: search + "Sırala", then Yakınımda · Şehir · İlçe) ── */
.controls {
  position: sticky; top: 0; z-index: 20;
  display: grid; gap: 8px; padding: 10px 0 12px;
  background: var(--bg);
  border-bottom: 1px solid transparent;
}
.ctl-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.field { position: relative; display: block; flex: 1 1 0; min-width: 0; }
.field svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; fill: var(--dim); pointer-events: none; }
.field input {
  width: 100%; height: 44px; padding: 0 12px 0 40px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  font-size: 16px; /* < 16px makes iOS Safari zoom on focus */
  outline: none; -webkit-appearance: none; appearance: none;
}
.field input::placeholder { color: var(--muted); }
.field input:focus { border-color: var(--primary); }
.hero-search .field input { height: 52px; border-radius: 14px; }

.dd { position: relative; flex: 0 0 auto; }
.dd-grow { flex: 1 1 0; min-width: 0; }
.sort-btn {
  display: flex; align-items: center; gap: 6px; width: 132px; height: 44px; padding: 0 10px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--text); text-align: left;
}
.sort-btn > svg { width: 16px; height: 16px; flex: 0 0 auto; fill: var(--primary); }
.sort-btn > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sort-btn > svg.chev { fill: var(--muted); }
.sort-btn[aria-expanded="true"], .sort-btn:hover { border-color: var(--border-2); }

/* Filter chips — app _TinyFilterChip / _DistanceToggle sizing. */
.fchip {
  display: flex; align-items: center; justify-content: center; gap: 5px; width: 100%; min-width: 0;
  height: 34px; padding: 0 10px; border-radius: 20px; cursor: pointer; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 13px; font-weight: 500; color: var(--text); text-decoration: none;
}
.fchip > svg { width: 14px; height: 14px; flex: 0 0 auto; fill: var(--muted); }
.fchip > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.fchip:hover { border-color: var(--border-2); }
.fchip.is-active, .fchip[aria-pressed="true"] { background: var(--primary-12); border-color: var(--primary-50); color: var(--primary); font-weight: 600; }
.fchip.is-active > svg, .fchip[aria-pressed="true"] > svg { fill: var(--primary); }
.fchip-geo { width: auto; flex: 0 0 auto; }
.geo-msg { font-size: 13px; color: var(--muted); padding: 0 2px 10px; }

/* Dropdown menu — app PopupMenu: surfaceHighlight, radius 12, 44px rows, check on the selection. */
.menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 40;
  min-width: 100%; width: max-content; max-width: min(300px, calc(100vw - 28px));
  max-height: min(60vh, 420px); overflow-y: auto; overscroll-behavior: contain;
  padding: 6px 0; border-radius: 12px; background: var(--surface-hi);
  border: 1px solid var(--border); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7);
}
.menu-end { left: auto; right: 0; }
/* Phones: a menu opens as a full-width panel under its row — never past the screen edge. */
@media (max-width: 759px) {
  .ctl-row { position: relative; }
  .dd { position: static; }
  .menu, .menu-end { left: 0; right: 0; width: auto; min-width: 0; max-width: none; }
}
@media (min-width: 760px) {
  .dd-grow { flex: 0 1 220px; }
}
.menu-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 14px;
  font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none; text-align: left; cursor: pointer;
}
.menu-item > svg { width: 16px; height: 16px; flex: 0 0 auto; fill: var(--muted); }
.menu-item > span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-item small { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.menu-item .check { width: 16px; height: 16px; fill: var(--primary); visibility: hidden; }
.menu-item:hover, .menu-item:focus-visible { background: rgba(255, 255, 255, .05); outline: none; }
.menu-item[aria-checked="true"], .menu-item[aria-current="page"] { color: var(--primary); font-weight: 600; }
.menu-item[aria-checked="true"] > svg:first-child, .menu-item[aria-current="page"] > svg:first-child { fill: var(--primary); }
.menu-item[aria-checked="true"] .check, .menu-item[aria-current="page"] .check { visibility: visible; }
.menu-sep { height: 1px; margin: 6px 0; background: var(--border); }

/* ── Chip lists (other districts) ────────────────────────────────────── */
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 2px 0 14px; }
.chip {
  font-size: 13px; color: var(--text); text-decoration: none; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 6px 12px;
}
.chip span { color: var(--muted); margin-left: 5px; font-variant-numeric: tabular-nums; }
/* Province tag on a nearby district from another province. */
.chip i { font-style: normal; color: var(--muted); margin-left: 4px; font-size: 12px; }
.chip:hover { border-color: var(--border-2); }

/* ── Venue rows (app: VenueListCard) ─────────────────────────────────── */
.list-count { font-size: 13px; color: var(--muted); margin: 2px 2px 10px; }
.vgroup { margin-bottom: 24px; content-visibility: auto; contain-intrinsic-size: auto 560px; }
.vgroup-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 4px 2px 10px; }
.vgroup-head h2 { font-size: 17px; font-weight: 700; }
.vgroup-head h2 span { color: var(--muted); font-weight: 500; font-size: 14px; margin-left: 6px; }
.vgroup-head a { display: inline-flex; align-items: center; min-height: 24px; font-size: 13px; font-weight: 600; color: var(--primary); text-decoration: none; white-space: nowrap; }
.vgroup:not(.open) .vrow.more { display: none; }
.vgroup.open .more-link { display: none; }
.more-link {
  display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 10px;
  border-radius: 14px; border: 1px solid var(--border); background: var(--surface);
  color: var(--primary); font-size: 14px; font-weight: 600; text-decoration: none;
}
.more-link:hover { border-color: var(--primary-50); }
.vrows { list-style: none; display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 900px) {
  [data-list] .vrows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.vrow > a {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: center; column-gap: 12px;
  padding: 12px; border-radius: 16px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border);
}
.vrow > a:hover { border-color: var(--border-2); }
.glyph {
  position: relative; width: 52px; height: 52px; border-radius: 15px; flex: 0 0 auto;
  background: var(--surface-hi); border: 1px solid var(--border);
}
.glyph::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 50%; height: 50%;
  background: var(--primary);
  -webkit-mask: var(--m-stadium) center / contain no-repeat; mask: var(--m-stadium) center / contain no-repeat;
}
.vbody { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.vname {
  font-size: 16px; font-weight: 600; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
.vmeta {
  position: relative; padding-left: 16px; font-size: 13px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vmeta::before, .vloc::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 13px; height: 13px; transform: translateY(-50%);
  background: var(--dim);
  -webkit-mask: var(--m-place) center / contain no-repeat; mask: var(--m-place) center / contain no-repeat;
}
.vrate { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; margin-top: 6px; font-size: 13px; line-height: 1.2; }
.vrate .stars svg { width: 15px; height: 15px; }
.vrate b { font-weight: 700; color: var(--text); }
.vcount { font-size: 12px; color: var(--muted); }
.vrate.none { color: var(--muted); }
.vside { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 8px; }
.vside::after {
  content: ""; width: 22px; height: 22px; background: var(--dim);
  -webkit-mask: var(--m-chevron) center / contain no-repeat; mask: var(--m-chevron) center / contain no-repeat;
}
.vdist { position: relative; padding-left: 15px; font-size: 13px; font-weight: 600; color: var(--primary); white-space: nowrap; }
.vdist::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; transform: translateY(-50%);
  background: var(--primary);
  -webkit-mask: var(--m-near) center / contain no-repeat; mask: var(--m-near) center / contain no-repeat;
}

/* ── Stars (app StarRating: gold, empty = textDim) ───────────────────── */
.stars { display: inline-flex; gap: 0; vertical-align: middle; }
.stars svg { width: 16px; height: 16px; }
.stars .on { fill: var(--gold); }
.stars .off { fill: var(--dim); }

/* ── Hub ─────────────────────────────────────────────────────────────── */
.hero { padding: 44px 0 8px; text-align: center; }
.hero h1 { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--primary); }
.hero .lede { color: var(--muted); font-size: 16px; margin: 12px auto 0; max-width: 560px; }
.hero .stats { margin-top: 18px; }
.hero-search { max-width: 640px; margin: 24px auto 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.hero-search .btn { min-height: 52px; }
.hero .geo-msg { margin-top: 10px; }
.results { max-width: 640px; margin: 10px auto 0; text-align: left; }
.results .empty-state { margin-top: 4px; }
@media (max-width: 560px) {
  .hero { padding-top: 32px; }
  .hero h1 { font-size: 30px; }
  .hero .lede { font-size: 15px; }
  .hero-search { grid-template-columns: minmax(0, 1fr); }
}
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 40px 0 14px; }
.section-title h2 { font-size: 20px; font-weight: 700; }
.section-title p { font-size: 13px; color: var(--muted); white-space: nowrap; }
.provinces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.prov {
  display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 48px;
  padding: 12px 14px; border-radius: 14px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border);
}
.prov:hover { border-color: var(--border-2); }
.prov b { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prov span { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .provinces { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .provinces { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.explain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.explain div { padding: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.explain b { display: block; font-size: 15px; margin-bottom: 4px; }
.explain p { font-size: 14px; color: var(--muted); }
.explain .num {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; margin-bottom: 10px;
  font-size: 13px; font-weight: 700; color: var(--primary); background: var(--primary-12); border: 1px solid var(--primary-50);
}
@media (max-width: 760px) { .explain { grid-template-columns: 1fr; } }

/* ── Venue detail ────────────────────────────────────────────────────── */
.vhero { display: flex; align-items: flex-start; gap: 14px; padding: 8px 0 16px; }
.vhero .glyph { width: 60px; height: 60px; border-radius: 17px; }
.vhero h1 { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -.01em; overflow-wrap: anywhere; }
.vloc { position: relative; padding-left: 18px; margin-top: 6px; font-size: 14px; color: var(--muted); }
.vloc::before { width: 14px; height: 14px; }
.vaddr { margin-top: 4px; font-size: 13px; color: var(--muted); }
.vphone { margin-top: 6px; font-size: 14px; font-weight: 600; }
.vphone a { color: var(--primary); }
.vsummary { margin-top: 14px; font-size: 14px; line-height: 1.65; color: var(--muted); }
@media (max-width: 560px) {
  .vhero .glyph { width: 52px; height: 52px; border-radius: 15px; }
  .vhero h1 { font-size: 22px; }
}

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

/* FUTBA PUANI — score ring: a green arc for the score out of 5, the app's pill beside it. */
.fp { display: grid; gap: 14px; padding-bottom: 16px; overflow: hidden; border-color: rgba(34, 197, 94, .22); }
/* Score panel on a pitch: centre circle + halfway line behind the ring. */
.fp-top {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: 16px; padding: 18px 16px;
  background:
    radial-gradient(130% 120% at 0% 0%, rgba(34, 197, 94, .18) 0%, rgba(34, 197, 94, 0) 60%),
    linear-gradient(155deg, #0F1D14 0%, #0B1318 60%, #0A0F17 100%);
  border-bottom: 1px solid var(--border);
}
.fp-top::before, .fp-top::after { content: ""; position: absolute; z-index: -1; pointer-events: none; }
.fp-top::before { top: 0; bottom: 0; right: 44px; width: 2px; background: rgba(34, 197, 94, .10); }
.fp-top::after {
  top: 50%; right: -48px; width: 184px; height: 184px; transform: translateY(-50%);
  border: 2px solid rgba(34, 197, 94, .12); border-radius: 50%;
}
.fp > .btn { margin: 0 16px; width: auto; }
.fp-ring {
  --size: 96px; --stroke: 7px;
  position: relative; flex: 0 0 auto; width: var(--size); height: var(--size); border-radius: 50%;
  display: grid; place-content: center; text-align: center;
}
.fp-ring::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(var(--primary) calc(var(--pct, 0) * 1%), rgba(255, 255, 255, .08) 0);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--stroke)), #000 calc(100% - var(--stroke) + 1px));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--stroke)), #000 calc(100% - var(--stroke) + 1px));
}
.fp-ring b { position: relative; font-size: 30px; font-weight: 700; line-height: 1; color: var(--text); letter-spacing: -.02em; }
.fp-ring small { position: relative; display: block; margin-top: 3px; font-size: 12px; font-weight: 500; color: var(--muted); }
.fp-ring.empty b { color: var(--muted); font-weight: 600; }
.fp-info { display: grid; justify-items: start; gap: 8px; min-width: 0; }
.fp-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 13px; color: var(--muted); }
.fp-meta .stars svg { width: 18px; height: 18px; }
.fp-note { font-size: 14px; color: var(--muted); }
.fp .btn { min-height: 46px; font-size: 15px; }

.actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.act {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 68px; padding: 12px 8px; border-radius: 12px; cursor: pointer; text-decoration: none;
  background: var(--surface); border: 1px solid var(--border); font-size: 13px; color: var(--text); text-align: center;
}
.act:hover { border-color: var(--border-2); }
.act svg { width: 20px; height: 20px; fill: var(--primary); }
.act.disabled { pointer-events: none; color: var(--dim); }
.act.disabled svg { fill: var(--dim); }

.block-title { display: flex; align-items: baseline; gap: 8px; margin: 30px 0 12px; }
.block-title h2 { font-size: 20px; font-weight: 700; }
.block-title span { font-size: 16px; color: var(--muted); }

.review { padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); content-visibility: auto; contain-intrinsic-size: auto 140px; }
.review + .review { margin-top: 10px; }
.rv-head { display: flex; align-items: center; gap: 12px; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; font-weight: 700; font-size: 15px; }
.tone-0 { background: rgba(34, 197, 94, .15); color: #4ADE80; }
.tone-1 { background: rgba(96, 165, 250, .15); color: #93C5FD; }
.tone-2 { background: rgba(245, 158, 11, .15); color: #FCD34D; }
.tone-3 { background: rgba(45, 212, 191, .15); color: #5EEAD4; }
.tone-4 { background: rgba(167, 139, 250, .15); color: #C4B5FD; }
.tone-5 { background: rgba(251, 113, 133, .15); color: #FDA4AF; }
.rv-who { min-width: 0; flex: 1; }
.rv-name { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 15px; font-weight: 600; }
.played {
  display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: var(--primary);
  background: rgba(34, 197, 94, .15); border-radius: 999px; padding: 2px 8px;
}
.played svg { width: 11px; height: 11px; fill: var(--primary); }
.rv-sub { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 3px; font-size: 13px; color: var(--muted); }
.rv-sub .stars svg { width: 14px; height: 14px; }
.rv-sub b { color: var(--text); font-weight: 700; }
.rv-text { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.empty-state { padding: 22px; text-align: center; border-radius: 14px; border: 1px dashed var(--border-2); color: var(--muted); font-size: 14px; }
.empty-state b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.more-note { margin-top: 10px; font-size: 13px; color: var(--muted); text-align: center; }

.cta {
  margin: 32px 0 10px; padding: 24px 20px; text-align: center; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--border);
}
.cta h2 { font-size: 20px; font-weight: 700; }
.cta p { font-size: 15px; color: var(--muted); max-width: 480px; margin: 8px auto 18px; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 16px;
  border-radius: 12px; text-decoration: none; color: var(--text);
  background: var(--surface-hi); border: 1px solid var(--border);
}
.store:hover { border-color: var(--border-2); }
.store svg { width: 22px; height: 22px; flex: 0 0 auto; }
.store small { display: block; font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); line-height: 1.2; }
.store strong { display: block; font-size: 15px; line-height: 1.2; }
.owner-note { margin: 18px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
.owner-note a { color: var(--muted); }

/* ── Footer ──────────────────────────────────────────────────────────── */
.foot { margin-top: 64px; padding: 28px 0 40px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot img { height: 20px; width: auto; opacity: .85; }
/* The footer wordmark is a 20px image; the link around it still needs 24px. */
.foot-in > a { display: inline-flex; align-items: center; min-height: 24px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 12px; }
/* A footer menu is not a sentence: each link needs its own 24px touch target. */
.foot nav a { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 4px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot small { display: block; margin-top: 16px; font-size: 12px; }

/* ── Motion ──────────────────────────────────────────────────────────
   Professional, not decorative: 120–220 ms, one decelerate curve, nothing
   animates on page load except the navigation crossfade — which lives inline
   in every page head (layout.ts › PAGE_TRANSITION_STYLE), not here. */

/* Press and hover states on everything tappable. */
.btn, .act, .fchip, .sort-btn, .vrow > a, .prov, .chip, .more-link, .store, .link-chip, .menu-item, .nav a {
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease), box-shadow 160ms var(--ease);
}
.btn:active, .act:active, .fchip:active, .sort-btn:active, .store:active, .link-chip:active, .more-link:active { transform: scale(.97); }
.vrow > a:active, .prov:active { transform: scale(.985); }
@media (hover: hover) {
  .vrow > a:hover, .prov:hover, .act:hover, .fchip:hover, .sort-btn:hover, .more-link:hover, .chip:hover { background-color: #161E2E; }
}

/* Ink ripple — the app's InkWell. */
.btn, .act, .fchip, .sort-btn, .menu-item, .vrow > a, .prov, .chip, .more-link, .store, .link-chip {
  position: relative; overflow: hidden; isolation: isolate;
}
.ink {
  position: absolute; z-index: -1; border-radius: 50%; pointer-events: none;
  background: currentColor; opacity: .16; transform: scale(0);
  animation: ink 560ms var(--ease-out) forwards;
}
.btn-primary .ink { opacity: .22; }
@keyframes ink { to { transform: scale(1); opacity: 0; } }

/* Menus open with a short fade + lift from their button; close faster. */
.menu {
  opacity: 0; transform: translateY(-6px) scale(.98); transform-origin: top center; pointer-events: none;
  transition: opacity 120ms cubic-bezier(.4, 0, 1, 1), transform 120ms cubic-bezier(.4, 0, 1, 1);
}
.menu.is-open {
  opacity: 1; transform: none; pointer-events: auto;
  transition: opacity 160ms var(--ease-out), transform 200ms var(--ease-out);
}
@media (min-width: 760px) { .menu-end { transform-origin: top right; } }
.sort-btn > svg.chev { transition: transform 200ms var(--ease); }
.sort-btn[aria-expanded="true"] > svg.chev { transform: rotate(180deg); }
.fchip[aria-expanded="true"] { border-color: var(--border-2); }

/* Waiting for location: the icon breathes, the control stays in place. */
.is-busy { cursor: progress; }
.is-busy > svg { animation: busy 900ms var(--ease) infinite; }
@keyframes busy { 50% { opacity: .35; transform: scale(.8); } }

/* Bars lift off the content once it scrolls underneath. */
.topbar { transition: box-shadow 200ms var(--ease); }
.topbar.is-scrolled { box-shadow: 0 10px 28px -20px rgba(0, 0, 0, .95); }
.controls { transition: box-shadow 200ms var(--ease), border-color 200ms var(--ease); }
.controls.is-stuck { border-bottom-color: var(--border); box-shadow: 0 14px 28px -24px rgba(0, 0, 0, .95); }

/* Toast — the app's SnackBar. */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 12px;
  background: var(--surface-hi); border: 1px solid var(--border); color: var(--text);
  font-size: 14px; font-weight: 500; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .8);
  opacity: 0; transform: translate(-50%, 12px); pointer-events: none;
  transition: opacity 200ms var(--ease), transform 220ms var(--ease-out);
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .ink { display: none; }
  .menu { opacity: 1; transform: none; pointer-events: auto; }
}
