@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@700;800&family=Inter:wght@400;500;700&display=swap');

:root {
  --bg: #121416;
  --surface-lowest: #0c0e10;
  --surface-low: #1a1c1e;
  --surface: #1e2022;
  --surface-high: #282a2c;
  --surface-highest: #333537;
  --border: #3f444d;
  --border-soft: rgba(63, 68, 77, 0.5);
  --text: #e2e2e5;
  --text-dim: #e4beb1;
  --green: #42e355;
  --green-bg: rgba(66, 227, 85, 0.1);
  --orange: #ffb59a;
  --orange-strong: #ff5c00;
  --on-orange-strong: #3a1200;
  --danger: #ffb4ab;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-card: 0 0 12px rgba(0, 0, 0, 0.25);
  --font-headline: 'Montserrat', ui-sans-serif, system-ui, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  overscroll-behavior-y: contain;
}

.hidden { display: none !important; }

/* ---------- Mobile-locked app frame ---------- */
/* On phones the app fills the whole viewport edge-to-edge. On wider screens
   it's presented as a centered phone mockup instead of a mobile layout
   stretched across the whole window. The transform gives #appFrame a new
   containing block, so any position:fixed descendant (modals) stays bounded
   to the frame instead of the real browser viewport. */
#appFrame {
  position: relative;
  height: 100vh;
  height: 100dvh;
  width: 100%;
  overflow: hidden;
  transform: translateZ(0);
}

@media (min-width: 768px) {
  body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 40px 20px;
    background:
      radial-gradient(circle at 15% 15%, rgba(255, 181, 154, 0.14), transparent 45%),
      radial-gradient(circle at 85% 85%, rgba(66, 227, 85, 0.12), transparent 45%),
      var(--surface-lowest);
  }
  #appFrame {
    width: 430px;
    max-width: 430px;
    height: min(900px, calc(100vh - 80px));
    border-radius: 32px;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
  }
}

.scroll-locked { overflow: hidden !important; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
button { font-family: inherit; }
input, textarea { font-family: inherit; }

/* ---------- Day select screen ---------- */
.day-screen {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(circle at 50% 15%, var(--surface-high) 0%, var(--bg) 65%);
  scrollbar-width: thin;
  scrollbar-color: var(--surface-highest) transparent;
}
.day-screen::-webkit-scrollbar { width: 8px; }
.day-screen::-webkit-scrollbar-track { background: transparent; }
.day-screen::-webkit-scrollbar-thumb { background: var(--surface-highest); border-radius: 999px; }
.day-screen-inner { text-align: center; max-width: 360px; width: 100%; }
.day-screen-logo { height: 180px; width: auto; object-fit: contain; margin-bottom: 4px; }
.day-screen-title {
  margin: 8px 0 4px;
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 2rem;
  letter-spacing: -0.02em;
  color: var(--orange-strong);
}
.day-screen-sub { color: var(--text-dim); margin: 0 0 28px; font-size: 1rem; }
.day-buttons { display: flex; flex-direction: column; gap: 12px; }
.day-btn {
  padding: 18px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface-high);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-card);
  min-height: 48px;
}
.day-btn:active { transform: scale(0.98); }
.day-btn[data-day="fri"] { border-color: var(--green); color: var(--green); }
.day-btn[data-day="sat"] { border-color: var(--orange-strong); color: var(--orange); }

/* ---------- App shell / topbar ---------- */
#appShell {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.topbar {
  flex-shrink: 0;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--bg);
}
.icon-btn {
  background: none;
  border: none;
  color: var(--orange);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  padding: 0;
}
.icon-btn svg { width: 24px; height: 24px; }
.brand { display: flex; align-items: center; height: 100%; }
.brand-logo { height: 72px; width: auto; object-fit: contain; }
.day-badge {
  border: none;
  background: none;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.day-badge:active { background: rgba(255,255,255,0.06); }

.container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 16px 16px 24px;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-highest) transparent;
}
.container::-webkit-scrollbar { width: 8px; }
.container::-webkit-scrollbar-track { background: transparent; }
.container::-webkit-scrollbar-thumb { background: var(--surface-highest); border-radius: 999px; }
.container::-webkit-scrollbar-thumb:hover { background: var(--border); }

.view-title {
  font-family: var(--font-headline);
  font-weight: 800;
  font-size: 1.75rem;
  line-height: 1.15;
  color: var(--text);
  margin: 0 0 4px;
}
.view-title.center { text-align: center; }
.view-subtitle { color: var(--text-dim); font-size: 0.9rem; margin: 0 0 20px; }
.view-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  margin-bottom: 12px;
}

/* ---------- Search bar ---------- */
.search-bar { position: relative; margin-bottom: 24px; }
.search-bar .search-icon {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--green);
  pointer-events: none;
  display: flex;
}
.search-bar .search-icon svg { width: 20px; height: 20px; }
.search-bar input {
  width: 100%;
  background: var(--surface-high);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 12px 14px 12px 40px;
  font-size: 0.95rem;
  outline: none;
  min-height: 48px;
}
.search-bar input::placeholder { color: var(--text-dim); opacity: 0.8; }
.search-bar input:focus { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }

/* ---------- Pills / chips ---------- */
.pill-row { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; min-width: 0; }
.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: normal;
  max-width: 100%;
  word-break: break-word;
}
.pill-neutral { background: var(--surface-highest); color: var(--text); border-radius: 4px; }
.pill-green { background: var(--green-bg); color: var(--green); border-radius: 4px; }
.pill-green-outline { background: var(--green-bg); color: var(--green); border: 1px solid rgba(66,227,85,0.3); }

.chip-row { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; padding-bottom: 4px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex-shrink: 0;
  background: var(--surface);
  color: var(--text);
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  padding: 9px 16px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
}
.chip.active {
  background: rgba(255, 92, 0, 0.15);
  color: var(--orange);
  border-color: rgba(255, 92, 0, 0.35);
}

/* ---------- Breweries: grid of brewery cards ---------- */
.brewery-cards { display: flex; flex-direction: column; gap: 16px; }

/* ---------- A-Ö quick scroll index ---------- */
.az-index {
  position: fixed;
  top: 96px;
  bottom: 84px;
  right: 2px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 4px 6px 4px 10px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.az-letter {
  width: 16px;
  font-size: 0.62rem;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  color: var(--text-dim);
  cursor: pointer;
}
.az-letter:active { color: var(--orange-strong); }
.brewery-card {
  background: var(--surface-high);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  box-shadow: var(--shadow-card);
  text-align: left;
}
.brewery-card:active { transform: scale(0.99); }
.brewery-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.brewery-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--surface-highest);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  overflow: hidden;
}
.brewery-avatar img { width: 100%; height: 100%; object-fit: cover; }

.detail-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--surface-highest);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  overflow: hidden;
  margin: 0 auto 12px;
}
.detail-avatar:empty { display: none; }
.detail-avatar img { width: 100%; height: 100%; object-fit: cover; }
.brewery-card-name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin: 0;
  flex: 1;
  min-width: 0;
}
.brewery-count-badge {
  flex-shrink: 0;
  background: var(--green-bg);
  color: var(--green);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.brewery-preview-list {
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.brewery-preview-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brewery-preview-name {
  font-weight: 700;
  color: var(--text);
  font-size: 0.92rem;
}
.brewery-preview-more { font-size: 0.76rem; color: var(--text-dim); padding-top: 2px; }

/* ---------- Beer detail card (brewery detail + search results) ---------- */
.beer-card-list { display: flex; flex-direction: column; gap: 16px; }
.beer-card {
  background: var(--surface-high);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
}
.beer-card-search-meta {
  font-size: 0.78rem;
  color: var(--text-dim);
  margin: -8px 0 10px;
}
.beer-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}
.beer-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 2px;
  line-height: 1.3;
}
.beer-card-actions { display: flex; gap: 4px; flex-shrink: 0; }
.icon-toggle-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  flex-shrink: 0;
  overflow: hidden;
  padding: 0;
}
.icon-toggle-btn svg { width: 22px; height: 22px; }
.icon-toggle-btn.active { color: var(--green); }

.beer-card-rating { margin-top: 4px; }
.rating-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.rating-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.rating-value { font-size: 1rem; font-weight: 700; color: var(--green); }

.untappd-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  padding: 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  min-height: 40px;
}
.untappd-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.untappd-link:active { background: var(--surface-highest); }

.slider-track { position: relative; width: 100%; height: 8px; background: var(--surface-highest); border-radius: var(--radius-pill); }
.slider-fill { position: absolute; top: 0; left: 0; height: 100%; background: var(--orange-strong); border-radius: var(--radius-pill); pointer-events: none; }
input[type="range"].slider-input {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  transform: translateY(-50%);
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  height: 32px;
  cursor: pointer;
}
input[type="range"].slider-input::-webkit-slider-runnable-track { background: transparent; height: 8px; }
input[type="range"].slider-input::-moz-range-track { background: transparent; height: 8px; }
input[type="range"].slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px; height: 22px;
  margin-top: -7px;
  background: #ffffff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}
input[type="range"].slider-input::-moz-range-thumb {
  width: 22px; height: 22px;
  background: #ffffff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* ---------- My Ratings ---------- */
.sort-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface-high);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}
.sort-btn svg { width: 16px; height: 16px; }
.sort-menu {
  position: absolute;
  right: 16px;
  margin-top: 4px;
  background: var(--surface-high);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  z-index: 30;
  box-shadow: var(--shadow-card);
}
.sort-menu button {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  padding: 12px 16px;
  font-size: 0.85rem;
  cursor: pointer;
  min-width: 160px;
}
.sort-menu button:hover, .sort-menu button.active { background: var(--surface-highest); color: var(--orange); }

.ratings-cards { display: flex; flex-direction: column; gap: 16px; }
.rating-card {
  background: var(--surface-low);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  text-align: left;
}
.rating-card:active { transform: scale(0.99); }
.rating-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.rating-card-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar-circle {
  width: 48px; height: 48px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--surface-high);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.avatar-circle img { width: 100%; height: 100%; object-fit: cover; }
.rating-card-name {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1rem;
  color: var(--text);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rating-card-brewery { color: var(--text-dim); font-size: 0.85rem; margin: 2px 0 0; }
.rating-card-score {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--orange-strong);
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.rating-card-score svg { width: 18px; height: 18px; }

/* ---------- To Drink ---------- */
.todrink-cards { display: flex; flex-direction: column; gap: 16px; }
.todrink-card {
  background: rgba(37, 40, 43, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
}
.todrink-card.is-tasted { opacity: 0.6; }
.todrink-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.todrink-style-label { color: var(--green); font-size: 0.72rem; font-weight: 700; margin-bottom: 3px; }
.todrink-name { font-family: var(--font-headline); font-weight: 700; font-size: 1.05rem; color: var(--text); margin: 0; }
.todrink-name.strike { text-decoration: line-through; }
.todrink-brewery { color: var(--text-dim); font-size: 0.85rem; margin: 2px 0 0; }
.tasted-flag { display: flex; align-items: center; gap: 4px; color: var(--green); font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.tasted-flag svg { width: 16px; height: 16px; }
.todrink-remove-btn { background: none; border: none; color: var(--text-dim); cursor: pointer; padding: 4px; }
.todrink-remove-btn svg { width: 20px; height: 20px; }
.todrink-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.todrink-tasted-btn {
  background: var(--orange-strong);
  color: var(--on-orange-strong);
  border: none;
  border-radius: 50%;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 92, 0, 0.3);
  flex-shrink: 0;
}
.todrink-tasted-btn svg { width: 22px; height: 22px; }
.todrink-rate-link {
  background: none;
  border: none;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
.todrink-rating-chip { color: var(--orange-strong); font-weight: 700; font-size: 0.95rem; display: flex; align-items: center; gap: 4px; }
.todrink-rating-chip svg { width: 16px; height: 16px; }

/* ---------- Empty state ---------- */
.empty-state { text-align: center; padding: 56px 16px; color: var(--text-dim); }
.empty-state svg { width: 48px; height: 48px; margin-bottom: 12px; opacity: 0.6; }
.empty-state p { margin: 0; font-size: 0.95rem; }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  flex-shrink: 0;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 6px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--surface);
  border-top: 1px solid var(--border-soft);
  box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
}
.nav-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  min-width: 60px;
}
.nav-btn svg { width: 22px; height: 22px; }
.nav-btn span { font-size: 0.68rem; font-weight: 700; }
.nav-btn.active { background: var(--orange-strong); color: var(--on-orange-strong); }

/* ---------- Menu panel ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.modal-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.6); }
.modal-sheet {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--surface-high);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.5);
  padding: 20px;
  animation: slideUp 0.2s ease-out;
}
@media (min-width: 640px) {
  .modal { align-items: center; }
  .modal-sheet { border-radius: 20px; margin: 16px; }
}
@keyframes slideUp {
  from { transform: translateY(24px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
.menu-title { font-family: var(--font-headline); font-weight: 800; font-size: 1.3rem; color: var(--orange-strong); margin: 0 0 4px; display: flex; align-items: center; gap: 8px; }
.menu-about { color: var(--text-dim); font-size: 0.88rem; line-height: 1.5; margin: 8px 0 20px; }

/* ---------- Fullscreen hamburger menu ---------- */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(12, 14, 16, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  animation: menuFade 0.22s ease both;
}
@keyframes menuFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
.menu-topbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 20px;
  height: 80px;
}
.menu-close-btn {
  width: 44px; height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.menu-close-btn svg { width: 22px; height: 22px; }
.menu-close-btn:active { background: rgba(255, 255, 255, 0.16); }

.menu-nav {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 24px 60px;
}
.menu-nav-logo { height: 64px; width: auto; object-fit: contain; margin-bottom: 8px; }

.menu-nav-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}
.menu-nav-item svg { width: 24px; height: 24px; opacity: 0.6; flex-shrink: 0; }
.menu-nav-item span {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -0.01em;
}
.menu-nav-item.danger { color: var(--danger); }
.menu-nav-item.danger svg { opacity: 0.85; }

.menu-divider { width: 64px; height: 1px; background: var(--border); margin: 4px 0; }

.lang-switcher {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.lang-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: var(--radius-pill);
  padding: 8px 18px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  min-height: 40px;
}
.lang-btn.active {
  background: rgba(255, 92, 0, 0.15);
  color: var(--orange);
  border-color: rgba(255, 92, 0, 0.35);
}

.menu-footer {
  flex-shrink: 0;
  padding: 0 0 20px;
  text-align: center;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  opacity: 0.4;
  pointer-events: none;
}

/* ---------- Festivalkarta (helskärm) ---------- */
.map-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: #000;
  animation: menuFade 0.18s ease both;
}
.map-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.map-close-btn {
  position: absolute;
  top: calc(16px + env(safe-area-inset-top, 0px));
  left: 16px;
  z-index: 2;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.map-close-btn svg { width: 22px; height: 22px; }
.map-fallback-link {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  z-index: 2;
  text-align: center;
  margin: 0 auto;
  width: fit-content;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.menu-close {
  display: block;
  width: 100%;
  text-align: center;
  background: none;
  border: none;
  color: var(--text-dim);
  padding: 12px;
  font-size: 0.9rem;
  cursor: pointer;
  margin-top: 4px;
}

.about-sheet { max-height: 85vh; overflow-y: auto; }
.about-hero {
  display: block;
  width: calc(100% + 40px);
  margin: -20px -20px 16px;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
  border-radius: 20px 20px 0 0;
}
.about-disclaimer {
  background: rgba(255, 180, 171, 0.08);
  border: 1px solid rgba(255, 180, 171, 0.3);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 4px 0 20px;
}
.about-disclaimer strong { color: var(--danger); }
.about-section-title {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--orange);
  margin: 18px 0 6px;
}
.about-text { color: var(--text-dim); font-size: 0.85rem; line-height: 1.55; margin: 0; }

/* ---------- Back link ---------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  padding: 8px 0;
  margin-bottom: 8px;
}
.back-link svg { width: 18px; height: 18px; }
