/* ============================================================
   Festa Major de Gràcia 2026 — Liquid Glass design system
   Glass surfaces float over a festival-paper aurora backdrop.
   ============================================================ */

:root {
  color-scheme: light;

  /* ink & surfaces */
  --ink: #1d1d1f;
  --ink-2: rgba(29, 29, 31, .62);
  --ink-3: rgba(29, 29, 31, .40);
  --bg: #f4f2f7;
  --card: rgba(255, 255, 255, .78);
  --card-solid: rgba(255, 255, 255, .84);
  --glass: rgba(255, 255, 255, .55);
  --glass-strong: rgba(255, 255, 255, .70);
  --edge: rgba(255, 255, 255, .65);
  --edge-soft: rgba(29, 29, 31, .07);
  --shadow: 0 12px 32px rgba(35, 20, 60, .10), 0 2px 8px rgba(35, 20, 60, .06);
  --shadow-big: 0 24px 70px rgba(35, 20, 60, .22), 0 4px 16px rgba(35, 20, 60, .10);
  --specular: rgba(255, 255, 255, .85);
  --blue: #007aff;
  --hairline: rgba(29, 29, 31, .10);

  /* festival hues (aurora + garland) */
  --f-pink: #ff2d75;
  --f-orange: #ff9500;
  --f-yellow: #ffd60a;
  --f-green: #30d158;
  --f-cyan: #32ade6;
  --f-violet: #af52de;

  --radius-xl: 28px;
  --radius-l: 22px;
  --radius-m: 16px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Inter", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", Menlo, Consolas, monospace;

  --topbar-h: 58px;
  --tabbar-h: 74px;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --ink: #f5f5f7;
    --ink-2: rgba(245, 245, 247, .64);
    --ink-3: rgba(245, 245, 247, .40);
    --bg: #0a0a10;
    --card: rgba(28, 28, 38, .58);
    --card-solid: rgba(30, 30, 42, .86);
    --glass: rgba(22, 22, 32, .52);
    --glass-strong: rgba(24, 24, 36, .68);
    --edge: rgba(255, 255, 255, .14);
    --edge-soft: rgba(255, 255, 255, .06);
    --shadow: 0 12px 32px rgba(0, 0, 0, .45), 0 2px 8px rgba(0, 0, 0, .30);
    --shadow-big: 0 24px 70px rgba(0, 0, 0, .60), 0 4px 16px rgba(0, 0, 0, .38);
    --specular: rgba(255, 255, 255, .28);
    --blue: #0a84ff;
    --hairline: rgba(255, 255, 255, .12);
}

/* ---------- base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 16px);
}
img { max-width: 100%; }
a { color: var(--blue); text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
::selection { background: color-mix(in srgb, var(--f-pink) 30%, transparent); }

/* ---------- aurora backdrop ---------- */
.aurora {
  position: fixed; inset: -20vh -20vw; z-index: -2; pointer-events: none;
  filter: blur(70px) saturate(120%);
  opacity: .34;
}
.aurora span { position: absolute; border-radius: 50%; }
.aurora .a1 { width: 55vw; height: 55vw; left: -12vw; top: -8vh; background: radial-gradient(circle, var(--f-pink), transparent 65%); }
.aurora .a2 { width: 48vw; height: 48vw; right: -10vw; top: 4vh; background: radial-gradient(circle, var(--f-orange), transparent 65%); }
.aurora .a3 { width: 52vw; height: 52vw; left: 18vw; top: 42vh; background: radial-gradient(circle, var(--f-cyan), transparent 65%); }
.aurora .a4 { width: 46vw; height: 46vw; right: 2vw; bottom: -14vh; background: radial-gradient(circle, var(--f-violet), transparent 65%); }
.aurora .a5 { width: 34vw; height: 34vw; left: -6vw; bottom: -6vh; background: radial-gradient(circle, var(--f-yellow), transparent 65%); }
.garland .flag path { opacity: 1; }
[data-theme="dark"] .garland .flag path { opacity: .92; }

/* ---------- glass primitives ---------- */
.glass, .glass-strong {
  position: relative;
  background: var(--glass);
  -webkit-backdrop-filter: blur(26px) saturate(180%);
  backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);
}
.glass-strong { background: var(--glass-strong); }
.glass::before, .glass-strong::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(165deg, var(--specular) 0%, transparent 24%);
  opacity: .55; mix-blend-mode: soft-light;
}

/* cheap translucent card (no backdrop-filter → smooth long lists) */
.card {
  background: var(--card);
  border: 1px solid var(--edge);
  border-radius: var(--radius-l);
  box-shadow: 0 6px 18px rgba(35, 20, 60, .07), 0 1px 3px rgba(35, 20, 60, .05);
}
[data-theme="dark"] .card { box-shadow: 0 6px 18px rgba(0, 0, 0, .35), 0 1px 3px rgba(0, 0, 0, .28); }

/* ---------- layout ---------- */
.wrap { width: min(1060px, 100% - 32px); margin-inline: auto; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%);
  width: min(1060px, 100% - 20px);
  height: var(--topbar-h);
  border-radius: 999px;
  display: flex; align-items: center; gap: 10px;
  padding: 0 10px 0 18px;
  z-index: 60;
}
.brand { display: flex; align-items: baseline; gap: 8px; user-select: none; white-space: nowrap; }
.brand b { font-size: 16px; letter-spacing: -.02em; font-weight: 800; }
.brand .yr {
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .06em;
  background: linear-gradient(90deg, var(--f-pink), var(--f-orange)); color: #fff;
  padding: 2px 7px; border-radius: 7px;
}
/* nav items are real <a href> (crawlable routes) — same look as the old buttons */
.topnav { display: flex; gap: 2px; margin-left: auto; }
.topnav button, .topnav a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink-2);
  cursor: pointer; transition: background .2s, color .2s;
}
.topnav button:hover, .topnav a:hover { color: var(--ink); }
.topnav button[aria-current="true"], .topnav a[aria-current="true"] { background: var(--ink); color: var(--bg); }

/* top-right controls: theme toggle + language dropdown */
.top-controls { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.topnav + .top-controls { margin-left: 8px; }
.icon-btn {
  width: 37px; height: 37px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; color: var(--ink-2);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
  transition: color .2s, transform .15s;
}
.icon-btn:hover { color: var(--ink); }
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 18px; height: 18px; }
.lang-dd { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 6px; height: 37px; padding: 0 12px; border-radius: 999px;
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink);
  background: color-mix(in srgb, var(--ink) 8%, transparent);
}
.lang-btn svg { width: 15px; height: 15px; color: var(--ink-2); }
.lang-btn .chev-d { width: 11px; height: 11px; transition: transform .2s; }
.lang-btn[aria-expanded="true"] .chev-d { transform: rotate(180deg); }
.lang-menu {
  position: absolute; top: calc(100% + 9px); right: 0; min-width: 158px;
  border-radius: 16px; padding: 5px; display: none; flex-direction: column; gap: 1px; z-index: 75;
}
.lang-menu.open { display: flex; animation: rise .18s cubic-bezier(.2, .8, .2, 1); }
.lang-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 9px 12px; border-radius: 11px; font-size: 14px; font-weight: 600; color: var(--ink); text-align: left;
}
.lang-menu button:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.lang-menu button .check { color: var(--blue); font-weight: 800; }

/* ---------- bottom tab bar (mobile) ---------- */
.tabbar {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  width: min(480px, 100% - 24px);
  height: var(--tabbar-h);
  border-radius: 30px;
  display: none;
  z-index: 60;
}
.tabbar nav { display: grid; grid-template-columns: repeat(5, 1fr); height: 100%; }
.tabbar button, .tabbar a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--ink-3); font-size: 10.5px; font-weight: 600; letter-spacing: .01em;
  border-radius: 24px; transition: color .2s, transform .15s;
}
.tabbar button:active, .tabbar a:active { transform: scale(.94); }
.tabbar button svg, .tabbar a svg { width: 25px; height: 25px; }
.tabbar button[aria-current="true"], .tabbar a[aria-current="true"] { color: var(--blue); }

@media (max-width: 860px) {
  .topnav { display: none; }
  .tabbar { display: block; }
}
@media (min-width: 861px) {
  body { padding-bottom: 40px; }
}

/* ---------- hero ---------- */
.hero { padding: calc(var(--topbar-h) + 42px) 0 8px; position: relative; }
.hero .garland { display: block; width: 100%; height: 110px; overflow: visible; margin-bottom: -6px; }
.garland .flag { transform-origin: top center; }
.hero-inner { text-align: center; padding: 4px 0 22px; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-2);
}
.hero h1 {
  font-size: clamp(38px, 7vw, 64px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02;
  margin: 10px 0 8px;
  background: linear-gradient(92deg, #ef1868 4%, #ee7a00 38%, #8f2fd0 78%, #0b87d8 105%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 4px;
}
[data-theme="dark"] .hero h1 {
  background-image: linear-gradient(92deg, var(--f-pink) 4%, var(--f-orange) 38%, var(--f-violet) 78%, var(--f-cyan) 105%);
}
.hero .dates {
  display: inline-block; font-family: var(--mono); font-size: 13.5px; font-weight: 700;
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--edge);
  background: var(--card); box-shadow: 0 2px 8px rgba(35,20,60,.06);
}
.hero .tagline { max-width: 560px; margin: 16px auto 0; font-size: 16.5px; line-height: 1.5; color: var(--ink-2); }
.hero-stats { display: flex; justify-content: center; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.stat {
  display: flex; align-items: baseline; gap: 7px; padding: 9px 15px; border-radius: 999px;
}
.stat b { font-family: var(--mono); font-size: 17px; font-weight: 800; }
.stat span { font-size: 12.5px; color: var(--ink-2); font-weight: 500; }

/* ---------- sections ---------- */
.section { display: none; animation: rise .34s cubic-bezier(.2, .8, .2, 1); }
.section.active { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.section-head { padding: calc(var(--topbar-h) + 40px) 0 18px; }
.section-head h2 { font-size: clamp(28px, 4.5vw, 38px); font-weight: 800; letter-spacing: -.03em; }
.section-head p { margin-top: 8px; max-width: 640px; color: var(--ink-2); line-height: 1.5; font-size: 15.5px; }

/* ---------- filter deck ---------- */
.deck {
  position: sticky; top: calc(var(--topbar-h) + 18px); z-index: 40;
  transition: transform .32s cubic-bezier(.2, .8, .2, 1), opacity .28s ease;
  border-radius: var(--radius-xl);
  padding: 12px;
  display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 22px;
}
.search { position: relative; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--ink-3); }
.search input {
  width: 100%; height: 42px; border-radius: 14px; border: 1px solid var(--edge-soft);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  padding: 0 38px 0 38px; font: inherit; font-size: 15px; color: var(--ink);
}
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--blue) 22%, transparent); }
.search .clear-x { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; color: var(--ink-3); display: none; align-items: center; justify-content: center; }
.search.has-value .clear-x { display: flex; }

.chip-row { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; padding: 2px; margin: -2px; }
.chip-row::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  border: 1px solid var(--edge-soft); color: var(--ink-2);
  background: color-mix(in srgb, var(--ink) 5%, transparent);
  transition: all .18s; white-space: nowrap;
}
.chip:hover { color: var(--ink); }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip.day-chip { flex-direction: column; gap: 0; padding: 6px 13px; line-height: 1.15; }
.chip.day-chip small { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .65; }
.chip.day-chip b { font-family: var(--mono); font-size: 15px; }

.results-line { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .05em; color: var(--ink-3); padding: 0 4px; }

/* ---------- event list ---------- */
.daygroup { margin: 26px 0 14px; display: flex; align-items: baseline; gap: 10px; }
.daygroup h3 { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.daygroup .rule { flex: 1; height: 1px; background: var(--hairline); }

.ongoing-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ongoing-pill {
  display: flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  background: var(--card); border: 1px solid var(--edge);
}
.ongoing-pill .dot { width: 8px; height: 8px; border-radius: 50%; }
.ongoing-pill:hover { box-shadow: var(--shadow); }

.evlist { display: flex; flex-direction: column; gap: 10px; }
.ev {
  display: grid; grid-template-columns: 74px 1fr; gap: 4px 14px; align-items: start;
  padding: 15px 16px; cursor: pointer; text-align: left; width: 100%;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s;
}
.ev:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ev:active { transform: scale(.985); }
.ev .time { font-family: var(--mono); font-size: 15px; font-weight: 700; padding-top: 1px; }
.ev .time small { display: block; font-size: 10px; font-weight: 600; color: var(--ink-3); letter-spacing: .05em; }
.ev .body { min-width: 0; }
.ev h4 { font-size: 16px; font-weight: 700; letter-spacing: -.015em; line-height: 1.3; }
.ev .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 5px; font-size: 13px; color: var(--ink-2); }
.ev .meta .venue { display: inline-flex; align-items: center; gap: 4px; }
.ev .meta svg { width: 12px; height: 12px; opacity: .7; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .02em;
}
.badge .dot { width: 7px; height: 7px; border-radius: 50%; }
.badge.cat { background: color-mix(in srgb, var(--badge-c) 14%, transparent); color: color-mix(in srgb, var(--badge-c) 80%, var(--ink) 20%); }
.badge.acc { background: color-mix(in srgb, var(--blue) 13%, transparent); color: var(--blue); font-family: var(--mono); }
.badge.free { background: color-mix(in srgb, var(--f-green) 16%, transparent); color: color-mix(in srgb, var(--f-green) 60%, var(--ink) 40%); }

.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-2); }
.empty-state .big { font-size: 42px; margin-bottom: 12px; }
.empty-state p { margin-bottom: 4px; font-weight: 600; color: var(--ink); }
.empty-state small { display: block; margin-bottom: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 20px; border-radius: 999px; font-size: 15px; font-weight: 700;
  background: var(--blue); color: #fff; transition: transform .15s, filter .2s;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.96); }
.btn.ghost { background: color-mix(in srgb, var(--ink) 7%, transparent); color: var(--ink); }
.btn svg { width: 16px; height: 16px; }
.btn.ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b 55%, #6228d7); color: #fff; }

/* ---------- sheet (modal) ---------- */
.sheet-veil {
  position: fixed; inset: 0; z-index: 80; background: rgba(10, 8, 18, .34);
  opacity: 0; pointer-events: none; transition: opacity .28s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.sheet-veil.open { opacity: 1; pointer-events: auto; }
.sheet {
  position: fixed; z-index: 81; left: 50%;
  bottom: 0; transform: translate(-50%, 105%);
  width: min(640px, 100%);
  max-height: min(86dvh, 780px);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  transition: transform .38s cubic-bezier(.32, .72, .24, 1);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-big);
}
.sheet.open { transform: translate(-50%, 0); }
@media (min-width: 861px) {
  .sheet { bottom: auto; top: 50%; transform: translate(-50%, -42%) scale(.96); opacity: 0; border-radius: var(--radius-xl); transition: transform .3s cubic-bezier(.2,.9,.3,1.1), opacity .25s; }
  .sheet.open { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.sheet .grabber { width: 40px; height: 5px; border-radius: 3px; background: var(--ink-3); opacity: .4; margin: 9px auto 0; flex: 0 0 auto; }
@media (min-width: 861px) { .sheet .grabber { display: none; } }
.sheet .sh-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 9%, transparent); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center; z-index: 2;
}
.sheet .sh-scroll { overflow-y: auto; padding: 20px 24px calc(24px + env(safe-area-inset-bottom, 0px)); overscroll-behavior: contain; }
.sheet h3 { font-size: 22px; font-weight: 800; letter-spacing: -.02em; line-height: 1.25; padding-right: 34px; }
.sheet .when { font-family: var(--mono); font-size: 14px; font-weight: 700; margin: 10px 0 2px; }
.sheet .desc { margin-top: 12px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.sheet .facts { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.fact { display: grid; grid-template-columns: 108px 1fr; gap: 12px; font-size: 14px; padding-top: 9px; border-top: 1px solid var(--hairline); }
.fact dt { color: var(--ink-3); font-weight: 600; }
.fact dd { color: var(--ink); line-height: 1.45; }
.fact dd .slotpill { display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700; background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: 7px; padding: 2px 7px; margin: 0 4px 4px 0; }
.sheet .sh-actions { display: flex; gap: 9px; margin-top: 20px; flex-wrap: wrap; }
.sheet .sh-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* ---------- map ---------- */
.map-shell { position: relative; margin-top: 6px; }
#map {
  height: calc(100dvh - var(--topbar-h) - var(--tabbar-h) - 130px);
  min-height: 420px; max-height: 760px;
  border-radius: var(--radius-xl); z-index: 1;
  border: 1px solid var(--edge);
  box-shadow: var(--shadow);
  background: var(--bg);
}
.map-legend {
  position: absolute; top: 14px; right: 14px; z-index: 30;
  border-radius: var(--radius-m); padding: 12px 14px; max-width: 210px;
  font-size: 12.5px;
}
.map-legend h4 { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.map-legend .lg { display: flex; align-items: center; gap: 8px; padding: 3px 0; color: var(--ink-2); font-weight: 500; }
.map-legend .lg .pin { width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); flex: 0 0 auto; }
.map-legend .lg .line { width: 16px; height: 0; border-top: 3px dashed var(--f-green); flex: 0 0 auto; }
.map-legend .lg .area { width: 14px; height: 14px; border-radius: 4px; background: color-mix(in srgb, var(--f-orange) 24%, transparent); border: 1.5px dashed var(--f-orange); flex: 0 0 auto; }
@media (max-width: 640px) { .map-legend { max-width: 168px; padding: 10px 12px; font-size: 11.5px; } }

.fg-pin { background: none; border: none; }
.fg-pin .p {
  width: 100%; height: 100%; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .35), 0 0 0 1px rgba(0,0,0,.06);
  transition: transform .15s;
}
.fg-pin:hover .p { transform: scale(1.2); }
.fg-pin.main .p { box-shadow: 0 2px 8px rgba(0,0,0,.35), 0 0 0 5px color-mix(in srgb, var(--f-pink) 30%, transparent); }

.leaflet-popup-content-wrapper {
  background: var(--glass-strong) !important;
  -webkit-backdrop-filter: blur(22px) saturate(180%); backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid var(--edge); border-radius: 18px !important;
  box-shadow: var(--shadow-big) !important; color: var(--ink) !important;
}
.leaflet-popup-content { margin: 14px 16px !important; font-family: var(--font) !important; min-width: 200px; }
.leaflet-popup-tip { background: var(--glass-strong) !important; border: 1px solid var(--edge); }
.leaflet-popup-close-button { color: var(--ink-3) !important; font-size: 18px !important; padding: 6px 8px 0 0 !important; }
.pop h5 { font-size: 15px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 3px; }
.pop .tp { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 6px; }
.pop .ct { font-size: 12.5px; color: var(--ink-2); margin-bottom: 10px; }
.pop a.plink {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  min-height: 42px; padding: 10px 13px; margin-top: 2px;
  border-radius: 12px; font-size: 14px; font-weight: 700;
  background: color-mix(in srgb, var(--blue) 14%, transparent);
}
.pop a.plink:active { transform: scale(.97); }
.pop a.plink svg { width: 14px; height: 14px; flex: 0 0 auto; }
.leaflet-container { font-family: var(--font) !important; }
.leaflet-control-attribution { background: color-mix(in srgb, var(--bg) 70%, transparent) !important; color: var(--ink-3) !important; font-size: 9.5px !important; }
.leaflet-control-attribution a { color: var(--ink-2) !important; }
.leaflet-bar { border: 1px solid var(--edge) !important; box-shadow: var(--shadow) !important; border-radius: 12px !important; overflow: hidden; }
.leaflet-bar a { background: var(--card-solid) !important; color: var(--ink) !important; border-bottom-color: var(--hairline) !important; }

.info-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 20px; }
.info-card { border-radius: var(--radius-l); padding: 4px 18px 8px; }
.info-card details { border: 0; }
.info-card summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px;
  padding: 13px 0; font-weight: 700; font-size: 15px; letter-spacing: -.01em;
}
.info-card summary::-webkit-details-marker { display: none; }
.info-card summary .ic { width: 30px; height: 30px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; flex: 0 0 auto; }
.info-card summary .ic svg { width: 16px; height: 16px; }
.info-card summary .chev { margin-left: auto; transition: transform .25s; color: var(--ink-3); }
.info-card details[open] summary .chev { transform: rotate(90deg); }
.info-card ul { padding: 0 0 12px 40px; display: flex; flex-direction: column; gap: 8px; }
.info-card li { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); list-style: none; position: relative; }
.info-card li::before { content: ""; position: absolute; left: -14px; top: 8px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-3); }
.hours-grid { display: grid; grid-template-columns: auto 1fr; gap: 3px 12px; font-family: var(--mono); font-size: 12px; padding: 2px 0 6px; }
.hours-grid b { color: var(--ink-2); font-weight: 700; }

/* ---------- streets ---------- */
.street-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.street-card { padding: 16px 17px; cursor: pointer; text-align: left; transition: transform .18s cubic-bezier(.2,.8,.2,1), box-shadow .18s; display: flex; flex-direction: column; gap: 8px; }
.street-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.street-card:active { transform: scale(.98); }
.street-card .tp { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.street-card .tp .dot { width: 8px; height: 8px; border-radius: 50%; }
.street-card h4 { font-size: 16.5px; font-weight: 750; letter-spacing: -.015em; line-height: 1.25; }
.street-card .cnt { margin-top: auto; font-size: 12.5px; color: var(--ink-3); font-weight: 500; }
.street-card .gz { font-size: 11px; font-weight: 700; color: var(--f-pink); display: inline-flex; align-items: center; gap: 5px; }
.street-card .card-ig { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: #e1306c; width: fit-content; }
.street-card .card-ig:hover { text-decoration: underline; }
.street-card .card-ig svg { width: 13px; height: 13px; }

.street-detail-head { display: flex; flex-direction: column; gap: 8px; }
.street-detail-head .backlink { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--blue); }
.story {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 15px 17px; margin: 14px 0 0; border-radius: var(--radius-m);
  background: color-mix(in srgb, var(--f-cyan) 10%, var(--card));
  border-color: color-mix(in srgb, var(--f-cyan) 32%, transparent);
}
.story .story-ic { font-size: 19px; line-height: 1.25; flex: 0 0 auto; }
.story p { font-size: 14px; line-height: 1.55; color: var(--ink-2); }

.note {
  border-radius: var(--radius-m); padding: 13px 16px; font-size: 13.5px; line-height: 1.5; color: var(--ink-2);
  background: color-mix(in srgb, var(--f-yellow) 13%, var(--card));
  border: 1px solid color-mix(in srgb, var(--f-yellow) 35%, transparent);
  margin: 14px 0;
}

/* ---------- about ---------- */
.about-grid { display: grid; gap: 14px; }
.about-hero { border-radius: var(--radius-xl); padding: 30px 28px; overflow: hidden; position: relative; }
.about-hero .k { font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.about-hero h3 { font-size: clamp(22px, 3.4vw, 30px); font-weight: 800; letter-spacing: -.025em; margin: 10px 0 10px; max-width: 560px; }
.about-hero p { max-width: 600px; color: var(--ink-2); line-height: 1.55; font-size: 15.5px; }
.about-hero .clutch { font-weight: 800; color: var(--ink); }
.svc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; margin: 20px 0 22px; }
.svc { border-radius: var(--radius-m); padding: 15px 16px; background: color-mix(in srgb, var(--ink) 5%, transparent); border: 1px solid var(--edge-soft); }
.svc .ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: 10px; }
.svc .ic svg { width: 18px; height: 18px; }
.svc b { display: block; font-size: 14.5px; letter-spacing: -.01em; margin-bottom: 3px; }
.svc span { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.about-apps { border-radius: var(--radius-xl); padding: 24px 26px; }
.about-apps h4 { font-size: 17px; font-weight: 800; letter-spacing: -.015em; margin-bottom: 16px; }
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.app-row {
  display: grid; grid-template-columns: 56px 1fr; gap: 13px; align-items: start;
  padding: 15px; border-radius: var(--radius-m);
  background: color-mix(in srgb, var(--ink) 5%, transparent); border: 1px solid var(--edge-soft);
}
.app-row img { width: 56px; height: 56px; border-radius: 13px; box-shadow: 0 4px 12px rgba(0, 0, 0, .22); }
.app-row b { font-size: 14.5px; display: block; margin-bottom: 3px; letter-spacing: -.01em; }
.app-row p { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; margin-bottom: 10px; }
.store-row { display: flex; gap: 7px; flex-wrap: wrap; }
.store-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 9px;
  background: #000; color: #fff; font-size: 11.5px; font-weight: 700;
  border: 1px solid rgba(255, 255, 255, .22); transition: filter .2s;
}
.store-pill:hover { filter: brightness(1.35); }
.store-pill svg { width: 13px; height: 13px; }

.about-foot { border-radius: var(--radius-l); padding: 20px 22px; }
.about-foot h4 { font-size: 15px; font-weight: 800; margin-bottom: 8px; }
.about-foot p { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.src-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.src-list a {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px; background: color-mix(in srgb, var(--ink) 6%, transparent);
  border: 1px solid var(--edge-soft); color: var(--ink);
}
.src-list a:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- footer ---------- */
.footer { margin-top: 46px; padding: 22px 0 8px; text-align: center; color: var(--ink-3); font-size: 13px; }
.footer a { font-weight: 700; }
.footer .h { color: var(--f-pink); }

/* ---------- garland ---------- */
@keyframes sway { 0%, 100% { transform: rotate(-2.6deg); } 50% { transform: rotate(2.6deg); } }
.garland .flag { transform-box: fill-box; transform-origin: center top; }

/* ---------- hero art: gegants parade + correfoc ---------- */
.gegants-strip {
  display: flex; justify-content: center; align-items: flex-end; gap: 26px;
  height: 104px; margin: -34px 0 4px;
  animation: stroll 17s ease-in-out infinite alternate;
  pointer-events: none;
}
.geg { transform-box: view-box; transform-origin: 50% 100%; filter: drop-shadow(0 6px 10px rgba(20, 10, 40, .25)); }
.geg.pau { height: 100px; animation: gegrock 3.9s ease-in-out infinite; }
.geg.llib { height: 94px; animation: gegrock 4.5s ease-in-out -2.2s infinite; }
.geg.torradet { height: 86px; animation: gegrock 4.1s ease-in-out -0.9s infinite; }
.geg.gresca { height: 81px; animation: gegrock 4.9s ease-in-out -3.1s infinite; }
.geg.pepitu { height: 80px; animation: gegrock 5.4s ease-in-out -1.2s infinite; }
@keyframes gegrock { 0%, 100% { transform: rotate(-4.5deg); } 50% { transform: rotate(4.5deg); } }
@keyframes stroll { from { transform: translateX(-30px); } to { transform: translateX(30px); } }

.hero-foc {
  position: absolute; right: max(8px, 4%); top: 118px; width: 150px;
  pointer-events: none; z-index: -1;
}
.hero-foc-left {
  position: absolute; left: max(8px, 4%); top: 104px; width: 134px;
  pointer-events: none; z-index: -1;
}
.carret-wheel {
  transform-box: fill-box; transform-origin: center; animation: carretspin 1.15s linear infinite;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, .95)) drop-shadow(0 0 7px rgba(255, 210, 120, .8));
}
.carret-wheel-b { transform-box: fill-box; transform-origin: center; animation: carretspin .85s linear infinite reverse; filter: drop-shadow(0 0 3px rgba(255, 255, 255, .9)); }
@keyframes carretspin { to { transform: rotate(360deg); } }
.fall-layer { filter: drop-shadow(0 0 2.5px rgba(255, 255, 255, .85)); }
.hero-foc-left .fall { animation: sparkfall 1.6s linear infinite; }
@keyframes sparkfall {
  0% { transform: translateY(0); opacity: 1; }
  70% { opacity: .95; }
  100% { transform: translateY(50px); opacity: 0; }
}
.foc-burst { transform-box: fill-box; transform-origin: 50% 55%; animation: focflick 1.7s ease-in-out infinite; }
.foc-burst.b2 { animation-duration: 1.25s; animation-delay: -.55s; }
@keyframes focflick {
  0%, 100% { opacity: .5; transform: scale(.95) rotate(-2.5deg); }
  50% { opacity: 1; transform: scale(1.06) rotate(2.5deg); }
}
@media (max-width: 860px) {
  .geg.pau { height: 74px; } .geg.llib { height: 69px; } .geg.torradet { height: 63px; }
  .geg.gresca { height: 59px; } .geg.pepitu { height: 58px; }
  .gegants-strip { height: 80px; gap: 12px; margin-top: -20px; }
  .hero-foc { width: 96px; top: 92px; right: 4px; opacity: .85; }
  .hero-foc-left { width: 86px; top: 84px; left: 2px; opacity: .85; }
}

/* ---------- hero unofficial subtitle ---------- */
.hero .unofficial {
  font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .2em;
  text-transform: uppercase; color: var(--ink-3); margin: 2px 0 12px;
}

/* ---------- subtabs (Carrers / Aplaudiments) ---------- */
.subtabs {
  display: flex; gap: 3px; padding: 3px; border-radius: 999px; margin-bottom: 16px;
  background: color-mix(in srgb, var(--ink) 7%, transparent); width: fit-content;
}
.subtab {
  padding: 8px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  color: var(--ink-2); transition: all .2s;
}
.subtab[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

/* ---------- leaderboard ---------- */
.lb-expl { padding: 16px 18px; margin-bottom: 14px; }
.lb-expl b { display: block; font-size: 14px; margin-bottom: 8px; }
.lb-expl ul { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.lb-expl li { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.lb-auth { border-radius: var(--radius-l); padding: 18px 20px; margin-bottom: 16px; }
.lb-auth h4 { font-size: 15.5px; font-weight: 800; margin-bottom: 12px; letter-spacing: -.01em; }
.lb-sub { font-size: 13.5px; color: var(--ink-2); margin-bottom: 12px; line-height: 1.45; }
.lb-form { display: flex; gap: 8px; flex-wrap: wrap; }
.lb-form input {
  flex: 1 1 200px; height: 44px; border-radius: 13px; border: 1px solid var(--edge-soft);
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  padding: 0 14px; font: inherit; font-size: 15px; color: var(--ink);
}
.lb-form input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3.5px color-mix(in srgb, var(--blue) 22%, transparent); }
#lb-code { font-family: var(--mono); letter-spacing: .3em; font-weight: 700; }
.lb-legal { margin-top: 12px; font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.lb-legal a { color: var(--ink-2); text-decoration: underline; }
.lb-oauth { margin-top: 2px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lb-gis { min-height: 44px; }
.apple-btn { background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .25); padding: 10px 22px; }
.apple-btn svg { width: 16px; height: 16px; }
[data-theme="light"] .apple-btn { border-color: #000; }
.lb-or { font-size: 12px; color: var(--ink-3); font-weight: 600; margin: 12px 0 8px; }
.oauth-chip { font-size: 12.5px; color: var(--ink-3); font-weight: 600; }
.oauth-chip em { font-style: normal; opacity: .7; }
.lb-link { font-size: 13px; font-weight: 700; color: var(--blue); margin-top: 10px; }
.lb-err {
  margin-top: 10px; font-size: 13px; font-weight: 600; color: #ff453a;
  background: color-mix(in srgb, #ff453a 12%, transparent); border-radius: 10px; padding: 9px 12px;
}
.lb-me { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; font-size: 14px; }
.lb-me .lb-left { font-family: var(--mono); font-size: 12px; font-weight: 700; color: var(--blue); }
.lb-me .lb-link { margin: 0 0 0 auto; }
.lb-list { display: flex; flex-direction: column; gap: 9px; }
.lb-row {
  display: grid; grid-template-columns: 40px 1fr auto auto; gap: 12px; align-items: center;
  padding: 13px 16px;
}
.lb-row.mine { border-color: color-mix(in srgb, #ffb800 55%, transparent); }
.lb-row .rank { font-family: var(--mono); font-size: 17px; font-weight: 800; text-align: center; color: var(--ink-2); }
.lb-name { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lb-name b { font-size: 14.5px; letter-spacing: -.01em; line-height: 1.25; }
.lb-count { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.lb-count b { font-family: var(--mono); font-size: 15px; color: var(--ink); }
.clap-btn {
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap;
  border: 1.5px solid color-mix(in srgb, #ffb800 50%, transparent);
  color: color-mix(in srgb, #ffb800 70%, var(--ink) 30%);
  transition: all .18s;
}
.clap-btn:hover:not(:disabled) { background: color-mix(in srgb, #ffb800 14%, transparent); }
.clap-btn:active:not(:disabled) { transform: scale(.94); }
.clap-btn.on { background: #ffb800; border-color: #ffb800; color: #221a00; }
.clap-btn:disabled { opacity: .4; cursor: default; }
@media (max-width: 560px) {
  .lb-row { grid-template-columns: 30px 1fr auto; }
  .lb-row .clap-btn { grid-column: 2 / -1; justify-self: end; }
  .lb-row .rank { font-size: 15px; }
}

/* ---------- contact float (Qui som) ---------- */
.contact-float {
  position: fixed; z-index: 70; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 18px);
  color: inherit; text-decoration: none; cursor: pointer;
  display: flex; align-items: center; gap: 12px;
  padding: 12px 13px 12px 16px; border-radius: 24px;
  animation: rise .45s cubic-bezier(.2, .8, .2, 1), cfglow 3.2s ease-in-out infinite;
  max-width: min(94vw, 430px);
}
.contact-float::after {
  content: ""; position: absolute; inset: -2px; border-radius: 26px; padding: 2px; z-index: -1;
  background: linear-gradient(120deg, var(--f-pink), var(--f-orange), var(--f-cyan), var(--f-violet), var(--f-pink));
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  animation: cfring 6s linear infinite;
}
@keyframes cfring { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
@keyframes cfglow {
  0%, 100% { box-shadow: 0 12px 42px color-mix(in srgb, var(--f-pink) 34%, transparent), var(--shadow); }
  50% { box-shadow: 0 12px 46px color-mix(in srgb, var(--f-cyan) 38%, transparent), var(--shadow); }
}
.contact-float .cf-ic {
  width: 38px; height: 38px; border-radius: 12px; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center; color: #fff;
  background: linear-gradient(135deg, var(--f-pink), var(--f-violet));
}
.contact-float .cf-ic svg { width: 20px; height: 20px; }
.cf-txt { display: flex; flex-direction: column; min-width: 0; }
.cf-txt b { font-size: 14px; letter-spacing: -.01em; }
.cf-txt span { font-size: 12px; color: var(--ink-2); }
.cf-btn { padding: 9px 15px; font-size: 13.5px; flex: 0 0 auto; }
.cf-go { display: none; }
@media (max-width: 860px) {
  .contact-float { gap: 11px; padding: 11px 14px 11px 13px; }
  .cf-btn { display: none; }
  .cf-go { display: flex; align-items: center; flex: 0 0 auto; color: var(--ink-3); }
  .cf-go svg { width: 15px; height: 15px; }
  .cf-txt b, .cf-txt span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cf-txt b { font-size: 13.5px; }
  .cf-txt span { font-size: 11.5px; }
}
@media (min-width: 861px) { .contact-float { left: auto; right: 28px; transform: none; bottom: 28px; } }

/* ---------- cookie banner ---------- */
.cookie-banner {
  position: fixed; z-index: 95; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 16px);
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px;
  max-width: min(94vw, 680px); border-radius: 28px; padding: 12px 16px;
  animation: rise .35s cubic-bezier(.2, .8, .2, 1);
}
.cookie-banner .ck-txt { font-size: 13px; line-height: 1.45; color: var(--ink-2); font-weight: 600; flex: 1 1 250px; }
.cookie-banner a { font-weight: 700; }
.cookie-actions { display: flex; gap: 7px; margin-left: auto; }
.cookie-actions .btn { padding: 8px 14px; font-size: 13px; white-space: nowrap; }
.cookie-link { font-size: 13px; font-weight: 700; color: var(--ink-3); text-decoration: underline; }
.cookie-link:hover { color: var(--ink); }
@media (min-width: 861px) { .cookie-banner { bottom: 22px; } }
body.cookie-open .contact-float { bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 140px); }
@media (min-width: 861px) { body.cookie-open .contact-float { bottom: 150px; } }

/* ---------- countdown toast ---------- */
.toast {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px) + 24px);
  z-index: 90; border-radius: 999px; padding: 11px 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 600; white-space: nowrap;
  animation: toast-rise .3s cubic-bezier(.2, .8, .2, 1);
}
@keyframes toast-rise {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
.toast svg { width: 17px; height: 17px; color: var(--blue); flex: 0 0 auto; }
.toast .tchev { display: flex; align-items: center; }
.toast .tchev svg { width: 13px; height: 13px; color: var(--ink-3); }
.toast .tclose {
  width: 24px; height: 24px; border-radius: 50%; margin-left: 2px;
  display: grid; place-items: center; flex: 0 0 auto;
  background: color-mix(in srgb, var(--ink) 10%, transparent);
  color: var(--ink-3); font-size: 11px; font-weight: 700;
}
.toast .tclose:hover { color: var(--ink); }
.toast:hover { box-shadow: var(--shadow-big); }
.toast:active { transform: translateX(-50%) scale(.96); }
@media (min-width: 861px) { .toast { bottom: 26px; } }

/* ---------- motion & a11y ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- locate me ---------- */
.locate-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  color: var(--ink); border: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .18);
  margin: 0 6px 14px 0 !important;
}
.locate-btn svg { width: 19px; height: 19px; transform: translate(-1px, 1px); }
.locate-btn.on { color: #0a84ff; }
.locate-btn.locating svg { animation: locpulse 1s ease-in-out infinite; }
@keyframes locpulse { 50% { opacity: .3; } }
.me-wrap { pointer-events: none; }
.me-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: #0a84ff; border: 3px solid #fff;
  animation: mepulse 2.2s ease-out infinite;
}
@keyframes mepulse {
  0%   { box-shadow: 0 0 0 4px rgba(10, 132, 255, .35), 0 0 0 4px rgba(10, 132, 255, .35), 0 1px 6px rgba(0, 0, 0, .35); }
  70%  { box-shadow: 0 0 0 4px rgba(10, 132, 255, .35), 0 0 0 16px rgba(10, 132, 255, 0), 0 1px 6px rgba(0, 0, 0, .35); }
  100% { box-shadow: 0 0 0 4px rgba(10, 132, 255, .35), 0 0 0 4px rgba(10, 132, 255, 0), 0 1px 6px rgba(0, 0, 0, .35); }
}

.deck.deck-hide {
  transform: translateY(calc(-100% - var(--topbar-h) - 30px));
  opacity: 0; pointer-events: none;
}

/* ---------- narrow phones (<=355px): let cards shrink, compact topbar ---------- */
.about-grid > * { min-width: 0; }
.about-hero .btn { white-space: normal; text-align: center; }
@media (max-width: 355px) {
  .about-hero { padding: 24px 18px; }
  .brand .yr { display: none; }
  .brand b { font-size: 14px; }
  .topbar { padding: 0 8px 0 14px; gap: 6px; }
  .top-controls { gap: 4px; }
}
