:root {
  --bg: #101312;
  --surface: #151918;
  --surface-2: #1b211f;
  --surface-3: #232a28;
  --text: #f4f8f6;
  --muted: #a4afaa;
  --soft: #6f7a75;
  --accent: #00ff9d;
  --accent-soft: rgba(0, 255, 157, 0.16);
  --danger: #ff6174;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, sans-serif;
  letter-spacing: 0;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  max-width: 100%;
}

button,
a,
[role="button"] {
  touch-action: manipulation;
}

.app-splash {
  align-items: center;
  animation: splashFadeIn 0.24s ease-out both;
  background:
    radial-gradient(circle at 50% 46%, rgba(0, 255, 157, 0.18), transparent 42%),
    radial-gradient(circle at 50% 58%, rgba(18, 216, 255, 0.1), transparent 34%),
    #0f1312;
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  transition: opacity 0.38s ease, visibility 0.38s ease;
  z-index: 50;
}

.app-splash img {
  animation: splashLogoPulse 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 30px rgba(0, 255, 157, 0.26));
  height: min(92vh, 900px);
  max-height: none;
  max-width: none;
  object-fit: contain;
  transform: scale(1.08);
  width: min(108vw, 900px);
}

.is-app-ready .app-splash {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

@keyframes splashFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes splashLogoPulse {
  0%, 100% {
    opacity: 0.94;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.018);
  }
}

.eyebrow {
  color: var(--muted);
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.discover-shell {
  height: 100vh;
  overflow: hidden;
  position: relative;
}

.map-canvas {
  background:
    linear-gradient(135deg, rgba(0, 255, 157, 0.08), transparent 32%),
    linear-gradient(180deg, #151917, #0f1312);
  height: 100%;
  inset: 0;
  overflow: hidden;
  position: absolute;
}

.fan-map {
  inset: 0;
  position: absolute;
}

.map-fallback {
  background: rgba(16, 19, 18, 0.88);
  border: 1px solid var(--border);
  border-radius: 16px;
  color: var(--muted);
  left: 16px;
  max-width: 320px;
  padding: 14px;
  position: absolute;
  right: 16px;
  top: 190px;
  z-index: 2;
}

.map-fallback p {
  margin: 0;
}

.map-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  position: absolute;
  right: 16px;
  top: 172px;
  z-index: 3;
}

.map-control-btn {
  background: rgba(21, 25, 24, 0.92);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 10px;
  min-height: 38px;
}

.fan-toast-stack {
  display: grid;
  gap: 10px;
  left: 50%;
  max-width: min(420px, calc(100vw - 28px));
  pointer-events: none;
  position: fixed;
  top: 18px;
  transform: translateX(-50%);
  width: max-content;
  z-index: 80;
}

.fan-toast {
  animation: toastSlideIn 0.2s ease both;
  background: rgba(16, 19, 18, 0.96);
  border: 1px solid rgba(0, 255, 157, 0.28);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.36);
  color: var(--text);
  min-width: min(320px, calc(100vw - 28px));
  padding: 12px 14px;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.fan-toast.is-warn {
  border-left-color: #ffd166;
}

.fan-toast.is-error {
  border-left-color: var(--danger);
}

.fan-toast.is-hiding {
  opacity: 0;
  transform: translateY(-8px);
}

.fan-toast-title {
  font-size: 13px;
  font-weight: 800;
}

.fan-toast-message {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  margin-top: 3px;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.map-marker {
  align-items: center;
  background: #12d8ff;
  border: 2px solid rgba(217, 250, 255, 0.88);
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(18, 216, 255, 0.14), 0 0 16px rgba(18, 216, 255, 0.28), 0 8px 20px rgba(0, 0, 0, 0.28);
  color: #061317;
  cursor: pointer;
  display: flex;
  height: 22px;
  justify-content: center;
  opacity: 0.86;
  overflow: hidden;
  padding: 0;
  width: 22px;
  transition: box-shadow 180ms ease, opacity 180ms ease, transform 180ms cubic-bezier(0.22, 1, 0.36, 1);
}

.map-marker.is-fr {
  background: #101312;
  border: 2px solid rgba(0, 255, 157, 0.72);
  box-shadow: 0 0 0 6px rgba(0, 255, 157, 0.16), 0 12px 28px rgba(0, 0, 0, 0.42);
  color: #06110d;
  height: 46px;
  opacity: 1;
  width: 46px;
  z-index: 2;
}

.map-marker.is-google-place {
  background: #12d8ff;
  opacity: 0.82;
}

.map-marker.is-active {
  box-shadow: 0 0 0 11px rgba(0, 255, 157, 0.3), 0 16px 38px rgba(0, 0, 0, 0.48);
  transform: scale(1.06);
}

.map-marker span {
  font-size: 0;
  font-weight: 900;
}

.map-marker img {
  display: block;
  height: 100%;
  margin: 0;
  object-fit: cover;
  padding: 0;
  width: 100%;
}

.map-marker.is-fr img {
  height: 100%;
  transform: scale(1.62);
  width: 100%;
}

.user-location-marker {
  background: #4da6ff;
  border: 3px solid #ffffff;
  border-radius: 999px;
  box-shadow: 0 0 0 8px rgba(77, 166, 255, 0.22);
  height: 18px;
  width: 18px;
}

.map-texture {
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  inset: 0;
  opacity: 0.55;
  position: absolute;
}

.map-road {
  background: rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  height: 9px;
  position: absolute;
  width: 150%;
}

.road-a {
  left: -20%;
  top: 42%;
  transform: rotate(-18deg);
}

.road-b {
  left: -25%;
  top: 64%;
  transform: rotate(13deg);
}

.road-c {
  height: 7px;
  left: -35%;
  top: 26%;
  transform: rotate(31deg);
}

.map-pins {
  inset: 0;
  position: absolute;
}

.map-pin {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 0 8px var(--accent-soft), 0 10px 30px rgba(0, 0, 0, 0.35);
  color: #06110d;
  cursor: pointer;
  display: flex;
  height: 36px;
  justify-content: center;
  position: absolute;
  transform: translate(-50%, -50%);
  transition: transform 0.14s ease, box-shadow 0.14s ease;
  width: 36px;
}

.map-pin:active {
  transform: translate(-50%, -50%) scale(0.94);
}

.map-pin span {
  font-size: 13px;
  font-weight: 800;
}

.floating-header {
  left: 12px;
  position: absolute;
  right: 12px;
  top: 12px;
  z-index: 4;
}

.location-row,
.search-row,
.sheet-title-row,
.bar-header,
.card-footer,
.section-heading {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.location-row {
  margin-bottom: 10px;
}

.brand-heading {
  align-items: center;
  display: flex;
  gap: 10px;
  min-width: 0;
}

.header-logo {
  background: rgba(16, 19, 18, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  flex: 0 0 auto;
  height: 36px;
  object-fit: contain;
  padding: 5px;
  width: 36px;
}

.location-row h1,
.sheet-title-row h2,
.section-heading h2,
.hero-content h1,
.now-showing h2 {
  margin: 0;
}

.location-row h1 {
  font-size: 24px;
  line-height: 1.05;
}

.search-row {
  background: rgba(21, 25, 24, 0.92);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px;
}

.search-row input {
  background: transparent;
  border: 0;
  color: var(--text);
  min-width: 0;
  outline: 0;
  padding: 9px 6px;
  flex: 1 1 180px;
  width: auto;
}

.search-row input::placeholder {
  color: var(--soft);
}

.places-autocomplete-host {
  flex: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}

.places-autocomplete-host[hidden],
.places-fallback-hidden {
  display: none;
}

.places-autocomplete-host gmp-place-autocomplete,
.places-autocomplete {
  color-scheme: dark;
  width: 100%;
}

.places-autocomplete {
  --gmpx-color-surface: rgba(21, 25, 24, 0.96);
  --gmpx-color-on-surface: var(--text);
  --gmpx-color-on-surface-variant: var(--soft);
}

.pac-container {
  z-index: 40;
}

.icon-btn {
  background: rgba(21, 25, 24, 0.92);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  min-width: 58px;
  padding: 9px 12px;
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.icon-btn:active {
  transform: scale(0.97);
}

.header-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.auth-entry {
  min-width: 66px;
}

.filters {
  display: flex;
  gap: 12px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.filters button {
  background: rgba(21, 25, 24, 0.9);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  flex: 0 0 auto;
  padding: 8px 12px;
  transition: background 0.18s ease, color 0.18s ease, opacity 0.18s ease;
}

.filters button:hover {
  opacity: 0.85;
}

.filters .active {
  background: var(--accent);
  color: #06110d;
}

.bottom-sheet {
  background: rgba(16, 19, 18, 0.96);
  border: 1px solid var(--border);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  bottom: 0;
  box-shadow: var(--shadow);
  left: 0;
  max-height: 76vh;
  min-height: 42vh;
  overflow-y: auto;
  padding: 10px 14px 22px;
  position: absolute;
  right: 0;
  transform: translateY(0);
  transition: height 0.22s ease, min-height 0.22s ease, max-height 0.22s ease, transform 0.22s ease;
  z-index: 3;
}

.is-sheet-dragging .bottom-sheet {
  transition: none;
}

.app-tabbar {
  align-items: center;
  background: rgba(16, 19, 18, 0.94);
  border: 1px solid var(--border);
  border-radius: 16px;
  bottom: calc(10px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow);
  display: none;
  gap: 12px;
  left: 16px;
  padding: 5px;
  position: absolute;
  right: 16px;
  z-index: 5;
}

.tab-btn {
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  flex: 1;
  font-weight: 800;
  min-height: 40px;
}

.tab-btn.is-active {
  background: rgba(0, 255, 157, 0.14);
  color: var(--accent);
}

.primary-team-btn {
  background: var(--accent);
  color: #06110d;
}

.is-list-view .bottom-sheet {
  max-height: 88vh;
  min-height: 72vh;
}

.sheet-handle {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  cursor: grab;
  height: 4px;
  margin: 0 auto 12px;
  position: relative;
  width: 44px;
}

.sheet-handle::before {
  content: "";
  inset: -12px -120px;
  position: absolute;
}

.sheet-title-row {
  margin-bottom: 12px;
  padding-left: 2px;
  padding-right: 2px;
}

.result-count {
  color: var(--muted);
  font-size: 13px;
}

.live-meta {
  align-items: flex-end;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  font-size: 12px;
  gap: 3px;
  white-space: nowrap;
}

.live-dot {
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 0 rgba(0, 255, 157, 0.4);
  height: 8px;
  width: 8px;
  animation: pulseLive 1.6s infinite;
}

@keyframes pulseLive {
  0% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0.35); }
  70% { box-shadow: 0 0 0 8px rgba(0, 255, 157, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 255, 157, 0); }
}

.bar-list {
  padding-bottom: 10px;
}

.search-results-panel {
  background: rgba(21, 25, 24, 0.72);
  border: 1px solid var(--border);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 12px;
}

.search-result-group {
  display: grid;
  gap: 8px;
}

.search-result-heading {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.search-result-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.search-result-chip {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.065);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 2px;
  min-height: 44px;
  min-width: min(100%, 150px);
  padding: 9px 10px;
  text-align: left;
  text-decoration: none;
}

.search-result-chip span,
.search-result-chip small {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-chip span {
  font-size: 13px;
  font-weight: 900;
}

.search-result-chip small {
  color: var(--muted);
  font-size: 11px;
}

.bar-card-link {
  color: inherit;
  display: block;
  text-decoration: none;
}

.bar-card,
.game-card,
.now-showing,
.special-card,
.details-block,
.empty-state,
.loading-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
}

.bar-card {
  cursor: pointer;
  margin-bottom: 10px;
  padding: 15px;
  transition: transform 0.12s ease, opacity 0.12s ease, border-color 0.12s ease;
}

.bar-card:hover {
  border-color: rgba(0, 255, 157, 0.24);
}

.bar-card.is-top-match {
  border-color: rgba(0, 255, 157, 0.32);
  box-shadow: 0 0 22px rgba(0, 255, 157, 0.07), 0 14px 35px rgba(0, 0, 0, 0.25);
}

.fr-bar-card {
  position: relative;
}

.nearby-bar-card {
  background: linear-gradient(180deg, rgba(34, 38, 36, 0.94), rgba(24, 28, 27, 0.94));
  border-color: rgba(255, 255, 255, 0.1);
}

.bar-card:active {
  opacity: 0.9;
  transform: scale(0.98);
}

.bar-header h3 {
  font-size: 18px;
  margin: 0 0 4px;
}

.bar-header p,
.card-footer,
.details-block,
.game-card p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.status-pill {
  background: var(--accent-soft);
  border: 1px solid rgba(0, 255, 157, 0.24);
  border-radius: 999px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 6px 9px;
}

.nearby-pill {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  color: var(--muted);
}

.fr-badge {
  background: var(--accent);
  border-radius: 8px;
  color: #06110d;
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  margin: 10px 0 8px;
  padding: 5px 8px;
}

.nearby-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin-top: 12px;
}

.selected-location-panel {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
  margin-bottom: 0.9rem;
  border: 1px solid rgba(18, 216, 255, 0.3);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(18, 216, 255, 0.1), rgba(21, 25, 24, 0.96));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.selected-location-topline,
.selected-location-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.selected-location-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.85rem;
}

.selected-location-main h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}

.selected-location-primary,
.ghost-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.62rem 0.78rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.selected-location-primary {
  background: var(--accent);
  color: #101312;
}

.ghost-action {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.top-match-badge {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.2);
  border-radius: 999px;
  color: var(--accent);
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 8px;
  padding: 5px 8px;
}

.game {
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  margin: 10px 0;
}

.game-meta-line {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  gap: 12px;
  margin: -4px 0 10px;
}

.badges span {
  background: var(--accent-soft);
  border-radius: 999px;
  color: var(--accent);
  display: inline-block;
  font-size: 11px;
  margin-right: 6px;
  padding: 5px 8px;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 100%;
}

.badges span {
  margin-right: 0;
  overflow-wrap: anywhere;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tags span {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #dce5e1;
  font-size: 12px;
  padding: 5px 8px;
}

.card-footer {
  margin-top: 12px;
  flex-wrap: wrap;
}

.bar-card,
.game-card,
.now-showing,
.special-card,
.details-block {
  background: linear-gradient(180deg, rgba(28, 33, 31, 0.98), rgba(16, 19, 18, 0.98));
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.32);
}

.bar-card {
  padding: 12px;
}

.fr-bar-card {
  border-color: rgba(0, 255, 157, 0.28);
}

.bar-card.is-showing-favorite {
  border-color: rgba(18, 216, 255, 0.36);
  box-shadow: 0 0 0 1px rgba(18, 216, 255, 0.08), 0 16px 30px rgba(0, 0, 0, 0.34);
}

.bar-card.is-top-match {
  border-color: rgba(0, 255, 157, 0.42);
  box-shadow: 0 0 0 1px rgba(0, 255, 157, 0.08), 0 16px 30px rgba(0, 0, 0, 0.35);
}

.bar-card.is-selected {
  border-color: rgba(0, 255, 157, 0.62);
  box-shadow: 0 0 0 1px rgba(0, 255, 157, 0.18), 0 0 28px rgba(0, 255, 157, 0.11), 0 16px 30px rgba(0, 0, 0, 0.36);
  transform: translateY(-1px);
}

.venue-card-main {
  align-items: flex-start;
  display: grid;
  gap: 10px;
  grid-template-columns: 54px 1fr;
}

.venue-tile {
  align-items: center;
  background: #111615;
  border: 1px solid rgba(18, 216, 255, 0.34);
  border-radius: 10px;
  color: #12d8ff;
  display: flex;
  font-size: 15px;
  font-weight: 900;
  height: 54px;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  width: 54px;
}

.venue-tile.is-fr {
  border-color: rgba(0, 255, 157, 0.42);
  color: var(--accent);
}

.venue-tile img {
  display: block;
  height: 100%;
  margin: 0;
  object-fit: cover;
  padding: 0;
  transform: scale(1.24);
  width: 100%;
}

.venue-card-body {
  min-width: 0;
}

.venue-card-body h3 {
  color: var(--text);
  font-size: 19px;
  line-height: 1.08;
  margin: 6px 0;
}

.venue-card-topline,
.venue-card-badges,
.meta-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.meta-row {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.meta-row span:not(:last-child)::after {
  color: rgba(255, 255, 255, 0.26);
  content: "/";
  margin-left: 6px;
}

.venue-feature {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: grid;
  gap: 3px;
  margin: 11px 0 8px;
  padding: 9px 10px;
}

.venue-feature span,
.venue-card-note {
  color: var(--muted);
  font-size: 12px;
}

.venue-feature strong {
  color: var(--text);
  font-size: 14px;
}

.venue-card-note {
  line-height: 1.35;
  margin-top: 10px;
}

.status-pill,
.badges span,
.top-match-badge {
  border-radius: 8px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  padding: 5px 7px;
  text-transform: uppercase;
}

.fr-pill {
  background: rgba(0, 255, 157, 0.13);
  border-color: rgba(0, 255, 157, 0.34);
  color: var(--accent);
}

.positive-pill {
  background: rgba(0, 255, 157, 0.13);
  border: 1px solid rgba(0, 255, 157, 0.32);
  color: var(--accent);
}

.your-team-pill {
  background: rgba(18, 216, 255, 0.13);
  border: 1px solid rgba(18, 216, 255, 0.42);
  color: #12d8ff;
}

.urgent-pill {
  background: rgba(255, 208, 102, 0.13);
  border: 1px solid rgba(255, 208, 102, 0.34);
  color: #ffd066;
}

.neutral-pill {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: var(--muted);
}

.blue-pill {
  background: rgba(18, 216, 255, 0.1);
  border: 1px solid rgba(18, 216, 255, 0.28);
  color: #12d8ff;
}

.detail-shell {
  background:
    linear-gradient(180deg, rgba(0, 255, 157, 0.10), transparent 220px),
    var(--bg);
  min-height: 100vh;
}

.detail-hero {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  padding: 14px 14px 8px;
  position: relative;
}

.detail-hero::before {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(16, 19, 18, 0.2)),
    linear-gradient(135deg, rgba(0, 255, 157, 0.14), rgba(255, 255, 255, 0.04));
  border-radius: 0 0 18px 18px;
  content: "";
  inset: 0;
  position: absolute;
}

.back-link,
.hero-content {
  position: relative;
  z-index: 1;
}

.detail-top-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.detail-top-actions .icon-btn {
  flex: 0 0 auto;
}

.back-link {
  background: rgba(21, 25, 24, 0.78);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text);
  display: inline-block;
  padding: 9px 13px;
  text-decoration: none;
}

.hero-content {
  margin-top: auto;
  max-width: 720px;
  padding-bottom: 22px;
}

.hero-content h1 {
  font-size: 34px;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.hero-meta {
  color: var(--muted);
  margin: 8px 0 0;
}

.detail-content {
  display: grid;
  gap: 18px;
  margin: 0 auto;
  max-width: 720px;
  padding: 12px 14px 34px;
  position: relative;
  z-index: 2;
}

.page-container {
  margin-left: auto;
  margin-right: auto;
  max-width: 720px;
  padding-left: 20px;
  padding-right: 20px;
}

.bar-profile {
  align-items: start;
  background: linear-gradient(180deg, rgba(28, 33, 31, 0.98), rgba(16, 19, 18, 0.98));
  border: 1px solid rgba(0, 255, 157, 0.2);
  border-radius: 12px;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.34);
  display: grid;
  gap: 14px;
  grid-template-columns: 76px minmax(0, 1fr);
  margin-bottom: 0;
  padding: 16px;
}

.bar-avatar {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(0, 255, 157, 0.22), rgba(255, 255, 255, 0.06)),
    var(--surface-2);
  border: 1px solid rgba(0, 255, 157, 0.18);
  border-radius: 8px;
  color: var(--accent);
  display: flex;
  flex: 0 0 auto;
  font-size: 20px;
  font-weight: 800;
  height: 76px;
  justify-content: center;
  object-fit: cover;
  overflow: hidden;
  text-align: center;
  width: 76px;
}

.bar-avatar img {
  display: block;
  height: 100%;
  margin: 0;
  object-fit: cover;
  padding: 0;
  width: 100%;
}

.bar-avatar span {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  line-height: 1;
  width: 100%;
}

.bar-info h1 {
  font-size: 28px;
  line-height: 1.08;
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

.bar-info p {
  color: #aaa;
  line-height: 1.35;
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.bar-info {
  min-width: 0;
}

.profile-vibe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.profile-vibe-tags span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  color: #dce5e1;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  padding: 6px 8px;
}

.updated-text {
  color: var(--soft);
  font-size: 12px;
  margin-top: 8px !important;
}

.bar-specials-panel {
  background: linear-gradient(180deg, rgba(28, 33, 31, 0.98), rgba(16, 19, 18, 0.98));
  border: 1px solid rgba(0, 255, 157, 0.16);
  border-radius: 12px;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
  display: grid;
  gap: 12px;
  padding: 15px;
}

.bar-specials-panel h2 {
  color: var(--text);
  font-size: 22px;
  line-height: 1.1;
  margin: 0;
}

.specials-list {
  display: grid;
  gap: 8px;
}

.specials-list p {
  background: rgba(0, 255, 157, 0.07);
  border: 1px solid rgba(0, 255, 157, 0.13);
  border-radius: 8px;
  color: #dce5e1;
  line-height: 1.35;
  margin: 0;
  padding: 10px 11px;
}

.specials-list .empty-inline {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.now-showing {
  align-items: flex-start;
  border-color: rgba(0, 255, 157, 0.2);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 0;
  padding: 15px;
}

.primary-game {
  border: 1px solid rgba(0, 255, 157, 0.15);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.05);
}

.now-showing h2 {
  color: var(--text);
  font-size: 24px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.bar-primary-cta {
  background: var(--accent);
  border-radius: 16px;
  color: #06110d;
  cursor: pointer;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 0;
  padding: 14px 16px;
  transition: opacity 0.15s ease, transform 0.15s ease;
  width: 100%;
}

button.primary.full {
  border-radius: 12px;
  font-size: 16px;
  font-weight: bold;
  padding: 14px;
}

.bar-primary-cta:active {
  transform: scale(0.99);
}

.section {
  margin-bottom: 0;
}

.section-heading {
  margin-bottom: 10px;
}

.section-heading h2 {
  font-size: 20px;
}

.lineup-list {
  display: grid;
  gap: 10px;
}

.schedule-note {
  background: rgba(18, 216, 255, 0.07);
  border: 1px solid rgba(18, 216, 255, 0.14);
  border-radius: 8px;
  color: #c7f6ff;
  font-size: 13px;
  line-height: 1.4;
  margin-bottom: 12px;
  padding: 10px;
}

.schedule-group {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.schedule-group-title {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.game-card {
  padding: 14px;
}

.event-card {
  display: grid;
  gap: 11px;
}

.event-card-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.game-interest-star {
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 18px;
  height: 34px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 34px;
}

.game-interest-star.is-active {
  background: rgba(255, 208, 102, 0.16);
  border-color: rgba(255, 208, 102, 0.44);
  color: #ffd066;
}

.event-league {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.event-matchup {
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  display: grid;
  gap: 6px;
  padding: 10px;
}

.event-team-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.event-team-row span {
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
  line-height: 1.08;
}

.event-team-row strong,
.event-versus {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
}

.event-versus {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 6px;
}

.game-card h3 {
  color: var(--accent);
  font-size: 17px;
  margin: 0 0 6px;
}

.game-actions,
.fan-selection {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
}

.fan-rsvp-flow {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin: 12px 0;
  padding: 10px;
  transition: border-color 160ms ease, background 160ms ease;
}

.fan-rsvp-flow.is-choosing-team {
  background: rgba(0, 255, 157, 0.065);
  border-color: rgba(0, 255, 157, 0.2);
}

.fan-rsvp-flow .fan-selection {
  margin: 8px 0 0;
}

.fan-response-saved {
  color: var(--accent);
  font-weight: 800;
}

.action-btn,
.team-btn {
  background: var(--surface-3);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  padding: 8px 12px;
  transition: transform 0.12s ease, opacity 0.12s ease, background 0.12s ease;
}

.action-btn:hover,
.team-btn:hover {
  opacity: 0.9;
}

.action-btn:active,
.team-btn:active {
  transform: scale(0.98);
}

.action-btn.is-active,
.team-btn.is-active {
  background: var(--accent-soft);
  color: var(--accent);
  outline: 1px solid var(--accent);
}

.action-btn.primary {
  background: var(--accent);
  color: #06110d;
}

.crowd-pie-wrap {
  align-items: center;
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.crowd-pie {
  --away: 0;
  --home: 0;
  --neutral: 0;
  aspect-ratio: 1;
  background: conic-gradient(
    var(--accent) 0 calc(var(--away) * 1%),
    #4da6ff calc(var(--away) * 1%) calc((var(--away) + var(--home)) * 1%),
    #888 calc((var(--away) + var(--home)) * 1%) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  box-shadow: inset 0 0 0 10px rgba(6, 17, 13, 0.62);
  flex: 0 0 54px;
  width: 54px;
}

.crowd-pie.is-empty {
  background: rgba(255, 255, 255, 0.09);
}

.crowd-pie-legend {
  color: var(--muted);
  display: grid;
  flex: 1;
  font-size: 12px;
  gap: 4px;
  min-width: 0;
}

.crowd-pie-legend span {
  align-items: center;
  display: flex;
  gap: 6px;
  overflow-wrap: anywhere;
}

.crowd-pie-legend i {
  border-radius: 50%;
  display: inline-block;
  flex: 0 0 8px;
  height: 8px;
  width: 8px;
}

.crowd-away-dot {
  background: var(--accent);
}

.crowd-home-dot {
  background: #4da6ff;
}

.crowd-neutral-dot {
  background: #888;
}

.crowd-split {
  color: var(--muted);
  font-size: 13px;
  margin-top: 6px;
}

.split-section {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.special-card,
.details-block {
  padding: 14px;
}

.details-block p + p {
  margin-top: 8px;
}

.details-block p {
  align-items: flex-start;
  display: grid;
  gap: 4px;
  grid-template-columns: 78px 1fr;
}

.details-block strong {
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
}

.details-block span {
  color: var(--muted);
}

.is-disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.premium-lock {
  border: 1px solid rgba(0, 255, 157, 0.16);
  border-radius: 14px;
  margin: 10px 0;
  overflow: hidden;
  position: relative;
}

.lock-blur {
  background:
    linear-gradient(90deg, rgba(0, 255, 157, 0.18), rgba(77, 166, 255, 0.14)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.06) 0 18px, rgba(255,255,255,0.02) 18px 36px);
  height: 74px;
  opacity: 0.72;
}

.lock-content {
  background: rgba(16, 19, 18, 0.9);
  inset: 0;
  padding: 10px 12px;
  position: absolute;
}

.lock-content p {
  color: var(--text);
  font-size: 13px;
  margin: 4px 0 8px;
}

.lock-pill,
.lock-cta {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.lock-pill {
  color: var(--accent);
}

.lock-cta {
  background: var(--accent);
  color: #06110d;
  cursor: pointer;
  display: inline-block;
  padding: 5px 8px;
}

.locked-game-card {
  position: relative;
}

.premium-home-panel {
  background: linear-gradient(180deg, rgba(27, 33, 31, 0.96), rgba(21, 25, 24, 0.96));
  border: 1px solid rgba(0, 255, 157, 0.14);
  border-radius: 16px;
  margin-bottom: 12px;
  padding: 14px;
}

.premium-home-panel h3 {
  margin: 0 0 6px;
}

.premium-home-panel p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.premium-home-panel.is-unlocked {
  border-color: rgba(0, 255, 157, 0.26);
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.06);
}

.event-search-hero {
  background:
    linear-gradient(145deg, rgba(0, 255, 157, 0.14), rgba(16, 19, 18, 0.96) 44%),
    rgba(16, 19, 18, 0.96);
  border: 1px solid rgba(0, 255, 157, 0.28);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22), 0 0 24px rgba(0, 255, 157, 0.07);
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  padding: 16px;
}

.event-search-topline {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 12px;
  font-weight: 800;
  gap: 8px;
}

.event-search-hero h3 {
  color: var(--text);
  font-size: clamp(20px, 5vw, 28px);
  line-height: 1.05;
  margin: 0;
}

.event-search-hero p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  margin: 0;
}

.event-watch-section {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.event-game-list-section {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.event-game-list {
  display: grid;
  gap: 8px;
}

.event-game-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(0, 255, 157, 0.12);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px;
  text-align: left;
  width: 100%;
}

.event-game-row > div {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.event-game-row strong {
  color: var(--text);
  font-size: 14px;
  line-height: 1.2;
}

.event-game-row small {
  color: var(--muted);
  font-size: 11px;
}

.event-game-row > span:last-child {
  color: var(--fr-green);
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
}

.event-watch-section.is-secondary {
  margin-top: 18px;
  opacity: 0.92;
}

.event-watch-heading {
  display: grid;
  gap: 2px;
  padding: 0 2px;
}

.event-watch-heading h3 {
  color: var(--text);
  font-size: 17px;
  line-height: 1.18;
  margin: 0;
}

.event-watch-list {
  display: grid;
  gap: 10px;
}

.venue-feature.is-event-result {
  background: rgba(0, 255, 157, 0.07);
  border-color: rgba(0, 255, 157, 0.14);
}

.locked-game-preview {
  filter: blur(1.5px);
  opacity: 0.55;
  pointer-events: none;
}

.auth-modal {
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 0.24s ease, visibility 0.24s ease;
  visibility: hidden;
  z-index: 20;
}

.auth-modal.is-open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.auth-backdrop {
  background: rgba(0, 0, 0, 0.62);
  inset: 0;
  position: absolute;
}

.auth-panel {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 22px 22px 0 0;
  bottom: 0;
  box-shadow: var(--shadow);
  left: 0;
  padding: 18px;
  position: absolute;
  right: 0;
  transform: translateY(24px);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.auth-modal.is-open .auth-panel {
  transform: translateY(0);
}

.auth-panel h2 {
  margin: 0 0 8px;
}

.auth-panel p {
  color: var(--muted);
  margin: 0 0 14px;
}

.auth-close {
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  position: absolute;
  right: 14px;
  top: 14px;
}

.auth-tabs {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 12px;
  padding: 4px;
}

.auth-tabs button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  min-height: 38px;
}

.auth-tabs button.is-active {
  background: var(--accent);
  color: #06110d;
  font-weight: 800;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label {
  display: grid;
  gap: 6px;
}

.auth-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.auth-form input {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  min-height: 44px;
  padding: 10px;
}

.auth-form button,
.auth-link {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  padding: 12px;
  text-align: left;
}

.auth-form button {
  background: var(--accent);
  color: #06110d;
  font-weight: 800;
  text-align: center;
}

.auth-link {
  background: transparent;
  color: var(--muted);
  margin-top: 10px;
  width: 100%;
}

.profile-screen {
  background:
    linear-gradient(180deg, rgba(16, 19, 18, 0.96), var(--bg)),
    radial-gradient(circle at 20% 0%, rgba(0, 255, 157, 0.12), transparent 34%);
  inset: 0;
  opacity: 0;
  overflow-y: auto;
  padding: calc(12px + env(safe-area-inset-top)) 12px calc(24px + env(safe-area-inset-bottom));
  pointer-events: none;
  position: fixed;
  transform: translateY(20px);
  transition: opacity 0.24s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.24s ease;
  visibility: hidden;
  z-index: 18;
}

.profile-screen.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.bar-detail-screen {
  background: var(--bg);
  inset: 0;
  opacity: 0;
  overflow-y: auto;
  pointer-events: none;
  position: fixed;
  transform: translateY(14px);
  transition: opacity 0.16s ease, transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.16s ease;
  visibility: hidden;
  z-index: 19;
  -webkit-overflow-scrolling: touch;
}

.bar-detail-screen.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.is-bar-detail-open {
  overflow: hidden;
}

.profile-topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto 14px;
  max-width: 720px;
  position: sticky;
  top: 0;
  z-index: 2;
}

.profile-content {
  display: grid;
  gap: 12px;
  margin: 0 auto;
  max-width: 720px;
}

.profile-hero,
.profile-card {
  background: rgba(21, 25, 24, 0.94);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px;
}

.profile-hero {
  align-items: center;
  display: flex;
  gap: 14px;
}

.profile-hero h1,
.profile-card h2 {
  margin: 0;
}

.profile-hero p,
.profile-card p {
  color: var(--muted);
  margin: 4px 0 0;
}

.profile-avatar {
  align-items: center;
  background: var(--surface-3);
  border: 1px solid rgba(0, 255, 157, 0.22);
  border-radius: 16px;
  display: flex;
  flex: 0 0 72px;
  height: 72px;
  justify-content: center;
  overflow: hidden;
  width: 72px;
}

.profile-avatar img {
  height: 100%;
  object-fit: contain;
  padding: 8px;
  width: 100%;
}

.profile-avatar span {
  color: var(--accent);
  font-weight: 900;
}

.profile-form {
  display: grid;
  gap: 10px;
}

.profile-form label {
  display: grid;
  gap: 6px;
}

.profile-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.profile-form input {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  min-height: 42px;
  outline: 0;
  padding: 9px 10px;
}

.profile-section-title {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.profile-section-title > span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.favorite-team-selected {
  background: rgba(0, 255, 157, 0.06);
  border: 1px solid rgba(0, 255, 157, 0.18);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  padding: 10px;
}

.favorite-team-selected-head,
.favorite-team-chip {
  align-items: center;
  display: flex;
  gap: 10px;
}

.favorite-team-selected-head {
  justify-content: space-between;
}

.favorite-team-chip-list {
  display: grid;
  gap: 8px;
}

.favorite-team-chip {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
}

.favorite-team-chip.is-primary {
  background: rgba(18, 216, 255, 0.09);
  border-color: rgba(18, 216, 255, 0.3);
}

.favorite-team-chip img,
.favorite-team-row img {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  height: 42px;
  object-fit: contain;
  padding: 4px;
  width: 42px;
}

.favorite-team-chip div {
  display: grid;
  flex: 1;
  gap: 2px;
  min-width: 0;
}

.favorite-team-chip strong,
.favorite-team-row span {
  color: var(--text);
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.favorite-team-selected-head small,
.favorite-team-chip small,
.favorite-team-row small,
.team-search-field span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.favorite-team-chip button {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  min-height: 38px;
  padding: 8px 10px;
  white-space: nowrap;
}

.team-search-field {
  display: grid;
  gap: 7px;
}

.team-search-field input {
  background: var(--surface-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  min-height: 44px;
  outline: 0;
  padding: 10px 11px;
  width: 100%;
}

.favorite-team-results {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  max-height: 360px;
  overflow-y: auto;
  padding-right: 2px;
}

.favorite-team-row {
  align-items: center;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: 42px 1fr auto;
  min-height: 58px;
  padding: 8px;
  text-align: left;
}

.favorite-team-row.is-selected {
  background: rgba(0, 255, 157, 0.12);
  border-color: rgba(0, 255, 157, 0.5);
  color: var(--accent);
}

.team-search-empty {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted);
  font-size: 13px;
  padding: 12px;
}

.logout-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  min-height: 44px;
}

.loading-card,
.empty-state {
  padding: 18px;
}

.empty-state {
  color: var(--muted);
  text-align: center;
}

.skeleton {
  background: linear-gradient(90deg, #171c1a 25%, #242b29 50%, #171c1a 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.skeleton-card {
  height: 120px;
  border-radius: 16px;
  margin-bottom: 10px;
}

@media (max-width: 759px) {
  :root {
    --mobile-sheet-collapsed-height: clamp(172px, 24dvh, 224px);
    --mobile-sheet-mid-height: min(58dvh, 520px);
    --mobile-sheet-full-height: calc(100dvh - 8px - env(safe-area-inset-top));
    --sheet-current-height: var(--mobile-sheet-collapsed-height);
    --mobile-tabbar-height: 58px;
  }

  .discover-shell {
    height: 100dvh;
    min-height: 100svh;
  }

  .floating-header {
    left: 16px;
    pointer-events: none;
    right: 16px;
    top: calc(6px + env(safe-area-inset-top));
  }

  .is-places-searching .floating-header {
    z-index: 30;
  }

  .floating-header > * {
    pointer-events: auto;
  }

  .location-row {
    align-items: center;
    gap: 12px;
    margin-bottom: 5px;
  }

  .brand-heading {
    gap: 7px;
  }

  .header-logo {
    height: 30px;
    padding: 4px;
    width: 30px;
  }

  .location-row h1 {
    font-size: 16px;
    line-height: 1.1;
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .location-row .eyebrow {
    display: none;
  }

  .header-actions {
    flex: 0 0 auto;
    gap: 12px;
  }

  .icon-btn,
  .map-control-btn,
  .filter-btn,
  .bar-primary-cta,
  .team-btn,
  .action-btn,
  .back-link {
    min-height: 38px;
    padding: 8px 10px;
  }

  .icon-btn {
    font-size: 12px;
    min-width: 48px;
  }

  .auth-entry {
    min-width: 56px;
  }

  .search-row {
    backdrop-filter: blur(14px);
    border-radius: 12px;
    gap: 12px;
    padding: 5px 6px;
  }

  .search-row input {
    font-size: 15px;
    min-height: 34px;
    padding: 6px 4px;
  }

  .places-autocomplete-host gmp-place-autocomplete,
  .places-autocomplete {
    min-height: 34px;
  }

  .is-places-searching .map-controls {
    opacity: 0;
    pointer-events: none;
  }

  .filters {
    gap: 12px;
    margin-top: 5px;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  .filters button {
    font-size: 12px;
    min-height: 34px;
    padding: 7px 10px;
  }

  .app-tabbar {
    display: flex;
  }

  .map-controls {
    bottom: calc(var(--sheet-current-height, var(--mobile-sheet-collapsed-height)) + var(--mobile-tabbar-height) + 14px + env(safe-area-inset-bottom));
    gap: 12px;
    left: 16px;
    right: 16px;
    top: auto;
  }

  .map-control-btn {
    background: rgba(16, 19, 18, 0.82);
    font-size: 12px;
  }

  .map-fallback {
    left: 16px;
    right: 16px;
    top: 138px;
  }

  .bottom-sheet {
    backdrop-filter: blur(18px);
    border-radius: 18px 18px 0 0;
    bottom: calc(var(--mobile-tabbar-height) + 8px + env(safe-area-inset-bottom));
    height: var(--sheet-current-height, var(--mobile-sheet-collapsed-height));
    max-height: var(--mobile-sheet-full-height);
    min-height: var(--mobile-sheet-collapsed-height);
    overscroll-behavior: contain;
    padding: 7px 16px calc(12px + env(safe-area-inset-bottom));
    scroll-padding-top: 48px;
    touch-action: pan-y;
    will-change: height, bottom;
  }

  .is-places-searching .bottom-sheet {
    transform: translateY(calc(var(--sheet-current-height, var(--mobile-sheet-collapsed-height)) - 42px));
  }

  .is-sheet-mid .bottom-sheet {
    height: var(--sheet-current-height, var(--mobile-sheet-mid-height));
  }

  .is-sheet-full .bottom-sheet {
    border-radius: 16px 16px 0 0;
    bottom: 0;
    height: var(--sheet-current-height, var(--mobile-sheet-full-height));
    max-height: var(--mobile-sheet-full-height);
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 7;
  }

  .is-sheet-full .app-tabbar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px);
  }

  .is-sheet-full .map-controls {
    opacity: 0;
    pointer-events: none;
  }

  .map-canvas,
  .floating-header,
  .map-controls,
  .app-tabbar {
    transition:
      opacity 220ms ease,
      transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
      filter 220ms ease;
  }

  .is-sheet-covering-map .floating-header {
    opacity: 0;
    pointer-events: none;
    transform: translateY(-18px);
  }

  .is-sheet-covering-map .map-controls,
  .is-sheet-covering-map .app-tabbar {
    opacity: 0;
    pointer-events: none;
    transform: translateY(14px);
  }

  .is-sheet-covering-map .map-canvas {
    filter: blur(1px);
    opacity: 0.28;
    transform: scale(0.985);
  }

  .is-sheet-mostly-covering-map .map-canvas,
  .is-sheet-full .map-canvas {
    opacity: 0;
  }

  .sheet-handle {
    cursor: grab;
    height: 5px;
    margin-bottom: 9px;
    width: 44px;
    touch-action: none;
  }

  .is-sheet-dragging .sheet-handle {
    cursor: grabbing;
  }

  .sheet-title-row,
  .bar-header,
  .card-footer,
  .now-showing {
    align-items: flex-start;
    flex-direction: column;
  }

  .sheet-title-row {
    background: linear-gradient(180deg, rgba(16, 19, 18, 0.98), rgba(16, 19, 18, 0.9));
    cursor: grab;
    gap: 4px;
    margin: -1px -2px 7px;
    padding: 0 2px 7px;
    position: sticky;
    top: -7px;
    touch-action: none;
    z-index: 2;
  }

  .sheet-title-row .eyebrow {
    font-size: 10px;
    margin-bottom: 2px;
  }

  .sheet-title-row h2 {
    font-size: 17px;
    line-height: 1.15;
  }

  .live-meta {
    align-items: flex-start;
    flex-direction: row;
    flex-wrap: wrap;
    font-size: 11px;
    gap: 5px;
    white-space: normal;
  }

  .is-map-view #premiumHomePanel {
    display: none;
  }

  .bar-list {
    padding-bottom: 4px;
  }

  .bar-card,
  .game-card,
  .now-showing,
  .bar-specials-panel,
  .premium-home-panel,
  .special-card,
  .details-block {
    border-radius: 12px;
    padding: 10px;
  }

  .bar-card {
    margin-bottom: 8px;
  }

  .bar-header h3 {
    font-size: 16px;
    line-height: 1.2;
    margin-bottom: 2px;
  }

  .bar-header p,
  .card-footer,
  .details-block,
  .game-card p,
  .nearby-note {
    font-size: 12px;
  }

  .game,
  .now-showing h2,
  .bar-specials-panel h2 {
    font-size: 15px;
    line-height: 1.2;
  }

  .game {
    margin: 7px 0;
  }

  .game-meta-line {
    gap: 5px;
    margin: -2px 0 7px;
  }

  .badges,
  .tags {
    gap: 5px;
  }

  .status-pill,
  .top-match-badge,
  .badges span,
  .tags span {
    border-radius: 8px;
    font-size: 11px;
    padding: 5px 7px;
  }

  .fr-badge {
    margin: 7px 0 6px;
    padding: 4px 7px;
  }

  .nearby-note {
    line-height: 1.35;
    margin-top: 8px;
  }

  .detail-hero {
    min-height: 0;
    padding: 12px 12px 8px;
  }

  .hero-content h1 {
    font-size: 30px;
    line-height: 1.05;
  }

  .detail-content,
  .page-container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .bar-profile {
    align-items: flex-start;
    gap: 12px;
    grid-template-columns: 58px minmax(0, 1fr);
    margin-bottom: 0;
    padding: 13px;
  }

  .bar-avatar {
    height: 58px;
    width: 58px;
  }

  .bar-info h1 {
    font-size: 22px;
    line-height: 1.15;
  }

  .bar-primary-cta {
    border-radius: 12px;
    font-size: 15px;
    margin-bottom: 0;
  }

  .section {
    margin-bottom: 0;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .section-heading h2 {
    font-size: 19px;
  }

  .schedule-note {
    font-size: 13px;
  }

  .schedule-group {
    gap: 9px;
    margin-bottom: 16px;
  }

  .schedule-group-title {
    font-size: 12px;
  }

  .game-card h3 {
    font-size: 18px;
    line-height: 1.2;
  }

  .fan-selection {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .team-btn {
    width: 100%;
  }

  .auth-panel {
    border-radius: 18px 18px 0 0;
    padding: 18px;
  }

  .auth-form button,
  .auth-link {
    min-height: 44px;
  }

  .profile-screen {
    padding-left: 16px;
    padding-right: 16px;
  }

  .profile-topbar {
    backdrop-filter: blur(16px);
    background: rgba(16, 19, 18, 0.78);
    border-radius: 12px;
    padding: 4px;
  }

  .favorite-team-chip,
  .favorite-team-row {
    grid-template-columns: 40px 1fr;
  }

  .favorite-team-chip {
    align-items: stretch;
    display: grid;
  }

  .favorite-team-chip button,
  .favorite-team-row small {
    grid-column: 2;
  }

  .favorite-team-results {
    max-height: 300px;
  }
}

@media (min-width: 760px) {
  .map-controls {
    right: 24px;
    top: 24px;
  }

  .auth-panel {
    border-radius: 22px;
    bottom: 40px;
    left: 50%;
    max-width: 390px;
    right: auto;
    transform: translateX(-50%);
    width: calc(100% - 32px);
  }

  .floating-header {
    left: 24px;
    max-width: 520px;
    right: auto;
    width: 520px;
  }

  .bottom-sheet {
    border-radius: 28px;
    bottom: 24px;
    left: 24px;
    max-height: 70vh;
    min-height: 48vh;
    right: auto;
    width: 460px;
  }

  .is-list-view .bottom-sheet {
    min-height: 78vh;
  }

  .split-section {
    grid-template-columns: 1fr 1fr;
  }
}

/* Mobile UX cleanup layer: phone-only refinements for iPhone Safari. */
.mobile-search-overlay {
  display: none;
}

@media (max-width: 759px) {
  :root {
    --mobile-sheet-collapsed-height: clamp(172px, 26dvh, 230px);
    --mobile-sheet-mid-height: min(58dvh, 560px);
    --mobile-sheet-full-height: 90dvh;
    --mobile-tabbar-height: 52px;
  }

  * {
    -webkit-tap-highlight-color: transparent;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .floating-header {
    left: 12px;
    right: 12px;
    top: calc(6px + env(safe-area-inset-top));
  }

  .location-row {
    background: rgba(10, 13, 12, 0.58);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    gap: 8px;
    margin-bottom: 7px;
    padding: 6px;
  }

  .brand-heading {
    flex: 1 1 auto;
    min-width: 0;
  }

  .header-logo {
    height: 32px;
    object-fit: cover;
    padding: 0;
    width: 32px;
  }

  .location-row h1 {
    font-size: clamp(14px, 4vw, 16px);
    max-width: 145px;
  }

  .header-actions {
    gap: 6px;
  }

  .icon-btn {
    font-size: 12px;
    min-width: 44px;
    padding: 8px 10px;
  }

  .auth-entry {
    min-width: 52px;
  }

  .search-row {
    border-color: rgba(0, 255, 157, 0.18);
    border-radius: 14px;
    gap: 8px;
    padding: 7px 8px;
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  }

  .search-row::before {
    color: var(--accent);
    content: "Search";
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 900;
  }

  .search-row input {
    caret-color: transparent;
    cursor: pointer;
    font-size: 15px;
    min-height: 38px;
  }

  .search-row input::placeholder {
    font-size: 13px;
  }

  .search-row [data-search-clear] {
    display: none;
  }

  .places-autocomplete-host,
  .places-autocomplete-host * {
    cursor: pointer;
  }

  .filters {
    gap: 8px;
    margin-top: 7px;
  }

  .filters button {
    font-size: 12px;
    min-height: 36px;
    padding: 7px 12px;
  }

  .filters .active {
    box-shadow: 0 0 0 1px rgba(0, 255, 157, 0.22), 0 8px 18px rgba(0, 255, 157, 0.12);
  }

  .app-tabbar {
    backdrop-filter: blur(16px);
    border-radius: 14px;
    bottom: calc(8px + env(safe-area-inset-bottom));
    gap: 6px;
    left: 18px;
    padding: 4px;
    right: 18px;
  }

  .tab-btn {
    border-radius: 10px;
    font-size: 12px;
    min-height: 36px;
  }

  .bottom-sheet {
    border-radius: 20px 20px 0 0;
    bottom: calc(var(--mobile-tabbar-height) + 6px + env(safe-area-inset-bottom));
    max-height: var(--mobile-sheet-full-height);
    padding: 8px 12px calc(12px + env(safe-area-inset-bottom));
    transition:
      height 280ms cubic-bezier(0.22, 1, 0.36, 1),
      bottom 280ms cubic-bezier(0.22, 1, 0.36, 1),
      border-radius 220ms ease,
      transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
  }

  .is-sheet-full .bottom-sheet {
    border-radius: 18px 18px 0 0;
    bottom: calc(4px + env(safe-area-inset-bottom));
    max-height: var(--mobile-sheet-full-height);
  }

  .is-sheet-mid .bottom-sheet,
  .is-sheet-covering-map .bottom-sheet {
    bottom: calc(4px + env(safe-area-inset-bottom));
  }

  .sheet-title-row {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .sheet-title-row h2 {
    font-size: 16px;
  }

  .bar-card,
  .game-card,
  .now-showing,
  .bar-specials-panel,
  .premium-home-panel,
  .special-card,
  .details-block {
    padding: 10px;
  }

  .venue-card-main {
    gap: 9px;
    grid-template-columns: 48px 1fr;
  }

  .venue-tile {
    border-radius: 10px;
    height: 48px;
    width: 48px;
  }

  .venue-tile img,
  .map-pin.fr-pin img,
  .fr-marker img,
  .bar-avatar img,
  .profile-avatar img {
    height: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
    padding: 0;
    width: 100%;
  }

  .venue-card-body h3 {
    font-size: 16px;
    line-height: 1.12;
    margin: 4px 0;
  }

  .venue-card-topline,
  .venue-card-badges,
  .meta-row {
    gap: 6px;
  }

  .meta-row {
    font-size: 11px;
  }

  .venue-feature {
    gap: 2px;
    margin: 8px 0 7px;
    padding: 8px;
  }

  .venue-feature strong {
    font-size: 13px;
    line-height: 1.25;
  }

  .venue-feature small {
    color: var(--muted);
    font-size: 11px;
  }

  .status-pill,
  .top-match-badge,
  .badges span,
  .tags span {
    font-size: 10px;
    padding: 4px 6px;
  }

  .tags {
    display: none;
  }

  .premium-home-panel {
    gap: 8px;
  }

  .premium-home-panel h3 {
    font-size: 15px;
    line-height: 1.2;
    margin-bottom: 2px;
  }

  .premium-home-panel p {
    font-size: 12px;
    line-height: 1.35;
  }

  .event-search-hero {
    border-radius: 14px;
    gap: 8px;
    margin-bottom: 10px;
    padding: 12px;
  }

  .event-search-hero h3 {
    font-size: 21px;
    line-height: 1.08;
  }

  .event-search-hero p {
    font-size: 12px;
  }

  .event-search-hero .bar-primary-cta {
    justify-content: center;
    min-height: 40px;
    width: 100%;
  }

  .event-watch-section {
    gap: 8px;
    margin-top: 10px;
  }

  .event-game-list-section {
    gap: 8px;
    margin-top: 10px;
  }

  .event-game-row {
    border-radius: 10px;
    padding: 9px;
  }

  .event-game-row strong {
    font-size: 13px;
  }

  .event-watch-heading h3 {
    font-size: 15px;
  }

  .event-watch-list {
    gap: 8px;
  }

  .venue-feature.is-event-result strong {
    font-size: 13px;
  }

  .detail-hero {
    min-height: 0;
    padding: 10px 10px 7px;
  }

  .hero-content h1 {
    font-size: 26px;
  }

  .bar-profile {
    gap: 10px;
    grid-template-columns: 50px minmax(0, 1fr);
    padding: 12px;
  }

  .bar-avatar {
    align-items: center;
    display: flex;
    justify-content: center;
    overflow: hidden;
    height: 50px;
    width: 50px;
  }

  .bar-primary-cta {
    border-radius: 12px;
    font-size: 15px;
    min-height: 46px;
    width: 100%;
  }

  .bar-primary-cta.compact {
    margin: 8px 0 0;
    min-height: 38px;
  }

  .now-showing {
    gap: 10px;
  }

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

  .mobile-search-overlay {
    display: block;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    visibility: hidden;
    z-index: 60;
  }

  .mobile-search-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .mobile-search-backdrop {
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.56);
    inset: 0;
    position: absolute;
  }

  .mobile-search-panel {
    background: linear-gradient(180deg, rgba(16, 19, 18, 0.98), rgba(8, 10, 9, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0 0 20px 20px;
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.55);
    display: grid;
    gap: 10px;
    left: 0;
    max-height: 86dvh;
    overflow: hidden;
    padding: calc(10px + env(safe-area-inset-top)) 14px 14px;
    position: absolute;
    right: 0;
    top: 0;
    transform: translateY(-10px);
    transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .mobile-search-overlay.is-open .mobile-search-panel {
    transform: translateY(0);
  }

  .mobile-search-topbar {
    align-items: center;
    display: grid;
    gap: 8px;
    grid-template-columns: 36px 1fr auto;
  }

  .mobile-search-close,
  .mobile-search-clear {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    min-height: 40px;
  }

  .mobile-search-close {
    font-size: 24px;
    line-height: 1;
  }

  .mobile-search-clear {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    padding: 0 10px;
  }

  .mobile-search-field {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(0, 255, 157, 0.24);
    border-radius: 12px;
    display: grid;
    gap: 2px;
    padding: 7px 10px;
  }

  .mobile-search-field span {
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
  }

  .mobile-search-field input {
    background: transparent;
    border: 0;
    color: var(--text);
    font-size: 17px;
    min-height: 28px;
    outline: 0;
    padding: 0;
    width: 100%;
  }

  .mobile-search-tabs {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    padding-bottom: 1px;
  }

  .mobile-search-tabs button {
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 900;
    min-height: 34px;
    padding: 7px 12px;
  }

  .mobile-search-tabs button.active {
    background: var(--accent);
    color: #06110d;
  }

  .mobile-search-results {
    max-height: calc(86dvh - 150px - env(safe-area-inset-top));
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 8px;
  }

  .mobile-search-results .search-results-panel {
    background: transparent;
    border: 0;
    gap: 14px;
    margin: 0;
    padding: 0;
  }

  .mobile-search-results .search-result-row {
    display: grid;
    gap: 8px;
  }

  .mobile-search-results .search-result-chip {
    border-radius: 12px;
    min-width: 0;
    padding: 11px 12px;
  }

  .is-mobile-search-open {
    overflow: hidden;
  }

  .is-auth-open,
  .is-profile-open {
    overflow: hidden;
  }
}

/* Mobile map/sheet smoothness overrides. Keep the sheet at full height and
   slide it with transform so iPhone Safari is not animating layout while
   touch scrolling is active. */
@media (max-width: 759px) {
  :root {
    --mobile-sheet-collapsed-height: clamp(168px, 26dvh, 228px);
    --mobile-sheet-mid-height: min(58dvh, 560px);
    --mobile-sheet-full-height: calc(100dvh - env(safe-area-inset-top));
    --sheet-translate-y: calc(var(--mobile-sheet-full-height) - var(--mobile-sheet-collapsed-height));
    --sheet-hide-offset: 0px;
  }

  .bottom-sheet {
    bottom: 0;
    height: var(--mobile-sheet-full-height);
    max-height: var(--mobile-sheet-full-height);
    min-height: 0;
    overflow: hidden;
    transform: translate3d(0, calc(var(--sheet-translate-y) + var(--sheet-hide-offset)), 0);
    transition:
      transform 260ms cubic-bezier(0.22, 1, 0.36, 1),
      opacity 160ms ease,
      border-radius 200ms ease;
    touch-action: none;
    will-change: transform;
    -webkit-overflow-scrolling: touch;
  }

  .is-sheet-dragging .bottom-sheet {
    transition: none;
  }

  .is-sheet-mid .bottom-sheet,
  .is-sheet-covering-map .bottom-sheet,
  .is-sheet-full .bottom-sheet {
    bottom: 0;
    height: var(--mobile-sheet-full-height);
    max-height: var(--mobile-sheet-full-height);
  }

  .is-sheet-full .bottom-sheet {
    bottom: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
    transform: translate3d(0, 0, 0);
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
  }

  .is-sheet-collapsed .bottom-sheet {
    overflow: hidden;
  }

  .is-sheet-mid .bottom-sheet {
    overflow-y: auto;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }

  .sheet-title-row {
    touch-action: none;
  }

  .sheet-handle {
    touch-action: none;
  }

  .bar-card,
  .bar-card-link,
  .map-marker {
    touch-action: manipulation;
  }

  #premiumHomePanel,
  #searchResultsPanel,
  #barList {
    transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }

  .is-sheet-dragging #premiumHomePanel,
  .is-sheet-dragging #searchResultsPanel,
  .is-sheet-dragging #barList {
    pointer-events: none;
  }

  .map-controls {
    bottom: calc(var(--sheet-current-height, var(--mobile-sheet-collapsed-height)) + var(--mobile-tabbar-height) + 12px + env(safe-area-inset-bottom));
  }

  .is-map-interacting .floating-header,
  .is-map-interacting .map-controls,
  .is-map-interacting .app-tabbar {
    opacity: 0;
    pointer-events: none;
  }

  .is-map-interacting .floating-header {
    transform: translateY(-18px);
  }

  .is-map-interacting .map-controls,
  .is-map-interacting .app-tabbar {
    transform: translateY(18px);
  }

  .is-map-interacting .bottom-sheet {
    --sheet-hide-offset: calc(var(--mobile-sheet-collapsed-height) + 36px);
    opacity: 0;
    pointer-events: none;
  }

  .is-map-interacting .map-canvas {
    filter: none;
    opacity: 1;
    transform: none;
  }
}
