/* Tonight Solo — shared styles for the root page and every city page.
   Art direction: nightlife poster / transit map. One vivid accent per city via [data-city] variables. */
:root {
  --bg: #0b0b0d; --bg2: #141417; --bg3: #1d1d22; --ink: #f5f2ea; --mute: #a39f97; --line: #2b2b31;
  --acc: #ff4a1c; --hi: #ff7a4d; --acc2: #ffd23f; --on-acc: #140806;
  --mad: #ff4a1c; --bcn: #2f5bff; --lis: #2f7de1; --yel: #ffc61a;
  --disp: 'Big Shoulders Display', 'Oswald', 'Arial Narrow', sans-serif;
  --sans: 'Golos Text', system-ui, -apple-system, sans-serif;
  --r: 14px; --gut: clamp(16px, 4vw, 44px); --max: 1240px;
  color-scheme: dark;
}
body[data-city="madrid"] { --bg: #100a08; --bg2: #1a110e; --bg3: #251814; --line: #3a2620; --acc: #ff4a1c; --hi: #ff7a4d; --acc2: #e68a5c; --on-acc: #140806; }
body[data-city="barcelona"] { --bg: #070819; --bg2: #0f1130; --bg3: #181b45; --line: #262a60; --acc: #2f5bff; --hi: #ffd60a; --acc2: #ffd60a; --on-acc: #ffffff; }
body[data-city="lisbon"] { --bg: #061217; --bg2: #0b1d25; --bg3: #112a35; --line: #1d3d4b; --acc: #2f7de1; --hi: #ffbf1f; --acc2: #ffbf1f; --on-acc: #ffffff; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--sans); }
body { overflow-x: hidden; }
a { color: inherit; }
button { font: inherit; color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--acc2); outline-offset: 2px; }

/* ---------- top bar ---------- */
.top { max-width: var(--max); margin: 0 auto; padding: 16px var(--gut); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 900 22px/1 var(--disp); text-transform: uppercase; letter-spacing: .02em; }
.brand b { color: var(--hi); font-weight: 900; margin-left: 4px; }
.roundel { width: 30px; height: 30px; border-radius: 50%; border: 5px solid var(--acc); display: grid; place-items: center; position: relative; }
.roundel::after { content: ''; position: absolute; left: -9px; right: -9px; height: 7px; background: var(--ink); border-radius: 2px; top: 50%; transform: translateY(-50%); }
.lines { display: flex; gap: 6px; margin-left: auto; }
.lines a { text-decoration: none; font: 800 13px/1 var(--disp); letter-spacing: .06em; padding: 7px 9px 6px; border-radius: 6px; border: 2px solid var(--line); color: var(--mute); }
.lines a.on, .lines a:hover { color: #fff; border-color: transparent; background: var(--c); }
.lines a[data-c="madrid"] { --c: var(--mad); } .lines a[data-c="barcelona"] { --c: var(--bcn); } .lines a[data-c="lisbon"] { --c: var(--lis); }
.langs { display: flex; gap: 2px; border: 2px solid var(--line); border-radius: 8px; padding: 2px; }
.langs button { border: 0; background: none; color: var(--mute); font: 800 12px/1 var(--sans); padding: 6px 8px; border-radius: 5px; cursor: pointer; letter-spacing: .06em; }
.langs button.on { background: var(--ink); color: var(--bg); }
body[data-page="home"] .langs { margin-left: auto; }

/* ---------- city hero ---------- */
.hero { position: relative; isolation: isolate; max-width: var(--max); margin: 0 auto; padding: clamp(18px, 4vw, 40px) var(--gut) 18px; }
.hero::before { content: ''; position: absolute; top: -80px; bottom: -40px; left: 50%; width: 100vw; transform: translateX(-50%); z-index: -1; pointer-events: none; opacity: .5;
  -webkit-mask: linear-gradient(to bottom, #000 30%, transparent 95%); mask: linear-gradient(to bottom, #000 30%, transparent 95%); }
body[data-city="madrid"] .hero::before { background: repeating-conic-gradient(from 0deg at 88% 92%, rgba(255, 74, 28, .22) 0 4deg, transparent 4deg 12deg); }
body[data-city="barcelona"] .hero::before { background:
  radial-gradient(circle at 12px 12px, rgba(255, 214, 10, .32) 3px, transparent 4px) 0 0 / 34px 34px,
  radial-gradient(circle at 85% 30%, rgba(47, 91, 255, .45), transparent 55%); }
body[data-city="lisbon"] .hero::before { background:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='64' viewBox='0 0 64 64'%3E%3Cg fill='none' stroke='%232f7de1' stroke-width='1.5' opacity='.35'%3E%3Crect x='1' y='1' width='62' height='62'/%3E%3Ccircle cx='32' cy='32' r='12'/%3E%3Cpath d='M32 1c0 14-17 17-31 31M32 1c0 14 17 17 31 31M32 63c0-14-17-17-31-31M32 63c0-14 17-17 31-31'/%3E%3Ccircle cx='32' cy='32' r='3' fill='%23ffbf1f' stroke='none'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 64px 64px; }
.live { display: inline-flex; align-items: center; gap: 8px; font: 700 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--mute); background: var(--bg2); border: 1px solid var(--line); padding: 8px 12px; border-radius: 999px; }
.live b { color: var(--ink); font: 900 20px/1 var(--disp); letter-spacing: .04em; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 0 var(--acc); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--acc) 70%, transparent); } 80%, 100% { box-shadow: 0 0 0 10px transparent; } }
.hero h1 { margin: 14px 0 6px; font-family: var(--disp); text-transform: uppercase; line-height: .8; letter-spacing: -.01em; }
.h1-city { display: block; font-weight: 900; font-size: min(17vw, calc(140vw / var(--len, 6)), 230px); }
.h1-ton { display: inline-block; font-weight: 800; font-size: clamp(30px, 5.4vw, 74px); line-height: 1; color: var(--on-acc); background: var(--acc); padding: .08em .22em .02em; transform: rotate(-2deg); margin-top: 6px; }
body[data-city="barcelona"] .h1-ton { background: var(--acc); color: var(--acc2); transform: rotate(2deg); }
body[data-city="lisbon"] .h1-ton { background: var(--acc2); color: #0a0a0a; border-radius: 6px; }
body[data-city="lisbon"] .h1-city { text-shadow: 6px 6px 0 var(--acc); }
body[data-city="madrid"] .h1-city { text-shadow: 6px 6px 0 color-mix(in srgb, var(--acc) 55%, transparent); }
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 760px; margin: 0 0 14px; border: 2px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg2); }
.board:empty { display: none; }
.board div { padding: 10px 14px; border-right: 2px solid var(--line); }
.board div:last-child { border-right: 0; }
.board b { display: block; font: 900 44px/.9 var(--disp); color: var(--hi); }
.board span { font: 700 12px/1.2 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--mute); }
@media (min-width: 1100px) {
  .board { position: absolute; right: var(--gut); top: 120px; grid-template-columns: 1fr; width: 220px; transform: rotate(2deg); background: var(--bg2); box-shadow: 10px 10px 0 var(--acc); margin: 0; }
  .board div { border-right: 0; border-bottom: 2px solid var(--line); padding: 14px 18px; }
  .board div:last-child { border-bottom: 0; }
  .board b { font-size: 64px; }
}
.sub { font-size: clamp(16px, 1.8vw, 19px); max-width: 56ch; color: #d9d5cc; margin: 18px 0 18px; }
.next { display: flex; flex-wrap: wrap; align-items: stretch; gap: 0; max-width: 760px; border: 2px solid var(--ink); border-radius: var(--r); overflow: hidden; text-decoration: none; }
.next:empty { display: none; }
.next .nk { background: var(--ink); color: var(--bg); font: 900 15px/1 var(--disp); text-transform: uppercase; letter-spacing: .08em; padding: 12px 14px; display: flex; align-items: center; }
.next .nt { font: 900 30px/1 var(--disp); padding: 10px 14px; display: flex; align-items: center; color: var(--hi); }
.next .nn { flex: 1 1 220px; padding: 10px 14px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.next .nn b { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.next .nn small { color: var(--mute); }

/* ---------- day scrubber (a transit line with stations) ---------- */
.scrub { max-width: var(--max); margin: 0 auto; padding: 18px var(--gut) 8px; display: flex; gap: 0; overflow-x: auto; scrollbar-width: none; }
.scrub::-webkit-scrollbar { display: none; }
.scrub button { position: relative; flex: 1 0 96px; border: 0; background: none; cursor: pointer; text-align: left; padding: 30px 10px 6px 0; scroll-snap-align: start; color: var(--mute); }
.scrub button::before { content: ''; position: absolute; left: 0; right: 0; top: 10px; height: 6px; background: var(--line); }
.scrub button:first-child::before { border-radius: 3px 0 0 3px; }
.scrub button:last-child::before { border-radius: 0 3px 3px 0; }
.scrub button::after { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 4px solid var(--line); transition: transform .15s; }
.scrub button.past::before { background: color-mix(in srgb, var(--line) 50%, var(--bg)); }
.scrub button.on::before { background: var(--acc); }
.scrub button.on::after { border-color: var(--acc); background: var(--ink); transform: scale(1.25); }
.scrub button:hover::after { transform: scale(1.2); }
.scrub .wd { display: block; font: 800 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; }
.scrub .dn { display: block; font: 900 34px/1 var(--disp); color: var(--ink); margin-top: 4px; }
.scrub .ct { display: block; font-size: 12px; margin-top: 2px; }
.scrub button.on .wd { color: var(--hi); }

/* ---------- filters bar ---------- */
main { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut) 40px; }
.bar { position: sticky; top: 0; z-index: 600; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 2px solid var(--line); }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.chips::-webkit-scrollbar { display: none; }
.chips button { flex: 0 0 auto; border: 2px solid var(--line); background: var(--bg2); border-radius: 8px; padding: 6px 11px; font: 700 13px/1.2 var(--sans); color: #cfcbc3; cursor: pointer; }
.chips button.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.toggles { display: flex; align-items: center; gap: 8px; font: 700 13px var(--sans); }
.tg { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; border: 2px solid var(--line); border-radius: 8px; padding: 5px 10px; color: #cfcbc3; user-select: none; }
.tg input { position: absolute; opacity: 0; pointer-events: none; }
.tg i { width: 14px; height: 14px; border-radius: 3px; border: 2px solid var(--mute); }
.tg:has(input:checked) { border-color: var(--hi); color: var(--ink); }
.tg:has(input:checked) i { background: var(--hi); border-color: var(--hi); }
.mapbtn { border: 0; background: var(--acc); color: var(--on-acc); border-radius: 8px; padding: 8px 14px; font: 900 15px/1 var(--disp); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }
#map { height: 420px; border-radius: var(--r); margin-top: 16px; border: 2px solid var(--line); background: var(--bg2); }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: var(--bg3); color: var(--ink); }
.leaflet-container a.leaflet-popup-close-button { color: var(--mute); }

h2 { font: 900 clamp(36px, 5vw, 60px)/.95 var(--disp); text-transform: uppercase; margin: 44px 0 18px; letter-spacing: .01em; }
h2 small { font: 700 15px var(--sans); color: var(--mute); text-transform: none; letter-spacing: 0; vertical-align: middle; }
h2 .hl { color: var(--hi); }

/* ---------- picks: poster cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 16px; grid-auto-flow: dense; }
.pk { position: relative; display: flex; flex-direction: column; background: var(--bg2); border: 2px solid var(--line); border-radius: var(--r); overflow: hidden; transition: transform .15s, border-color .15s; }
.pk:hover { transform: translateY(-3px) rotate(-.3deg); border-color: var(--acc); }
.pk-img { position: relative; height: 140px; background: var(--acc); overflow: hidden; }
.pk-img img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.25) brightness(1.05); mix-blend-mode: multiply; }
body[data-city="barcelona"] .pk:nth-child(3n+2) .pk-img, body[data-city="lisbon"] .pk:nth-child(3n+2) .pk-img { background: var(--acc2); }
body[data-city="madrid"] .pk:nth-child(3n+2) .pk-img { background: var(--acc2); }
.pk-time { position: absolute; left: 12px; bottom: 10px; display: flex; align-items: flex-end; gap: 8px; }
.pk-time b { font: 900 46px/.85 var(--disp); color: #fff; text-shadow: 0 2px 0 rgba(0,0,0,.35); }
.pk-time b small { font-size: 18px; margin-left: 4px; text-transform: uppercase; }
.cd { display: inline-block; font: 800 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; padding: 5px 7px; border-radius: 5px; background: var(--ink); color: var(--bg); white-space: nowrap; }
.cd.now { background: var(--hi); color: #111; animation: blink 1.4s steps(2) infinite; }
.cd.done { background: rgba(0,0,0,.5); color: #ddd; }
@keyframes blink { 50% { opacity: .55; } }
.pk-body { padding: 14px 16px 14px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tag { align-self: flex-start; font: 800 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .12em; color: var(--hi); }
.pk h3 { font: 700 18px/1.25 var(--sans); margin: 0; }
.pk .orig { font-size: 12px; color: var(--mute); font-style: italic; margin-top: -4px; }
.pk .why { color: #cfcbc3; margin: 0; font-size: 14.5px; }
.pk .where { font-size: 13px; color: var(--mute); margin-top: auto; }
.pk-foot { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 13px; padding-top: 10px; border-top: 1px dashed var(--line); }
.solo { display: inline-flex; gap: 3px; align-items: center; }
.solo i { width: 7px; height: 14px; border-radius: 2px; background: var(--line); }
.solo i.on { background: var(--hi); }
.free { font: 800 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: #111; background: #7ee2a8; padding: 4px 6px; border-radius: 4px; }
.price { color: var(--mute); }
.pk-foot a { font-weight: 700; text-decoration: none; }
.pk-foot a.off { margin-left: auto; color: var(--ink); border-bottom: 2px solid var(--acc); }
.pk-foot a.who { flex-basis: 100%; color: var(--hi); font-size: 13px; }
.pk-foot a.who:hover, .pk-foot a.off:hover { opacity: .8; }
.empty { color: var(--mute); padding: 20px 0; grid-column: 1 / -1; }

/* ---------- app block ---------- */
.app { --pad: clamp(22px, 4vw, 44px); grid-column: 1 / -1; position: relative; overflow: hidden; border-radius: calc(var(--r) + 6px); background: var(--acc); color: var(--on-acc); padding: var(--pad); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); margin: 8px 0; }
body[data-page="home"] .app { background: var(--ink); color: var(--bg); }
.app-id { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.app-id img { width: 48px; height: 48px; border-radius: 12px; flex: none; box-shadow: 0 0 0 2px currentColor; }
.app-k { font: 800 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .16em; opacity: .75; margin: 0; }
.app h3 { font: 900 clamp(36px, 5vw, 64px)/.9 var(--disp); text-transform: uppercase; margin: 0 0 14px; }
.app p { margin: 0 0 18px; max-width: 54ch; font-size: 16px; }
.app ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; align-content: start; position: relative; z-index: 1; }
.app li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; font-weight: 600; font-size: 15px; }
.app li b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 3px solid currentColor; font: 900 17px/1 var(--disp); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; position: relative; z-index: 1; }
.store { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; text-decoration: none; border-radius: 10px; padding: 8px 16px 8px 12px; border: 1.5px solid #6b6b6b; min-width: 170px; transition: transform .12s; }
.store:hover { transform: translateY(-2px); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.05; }
.store small { font: 500 10.5px/1.1 var(--sans); letter-spacing: .02em; }
.store strong { font: 600 20px/1.1 -apple-system, 'Helvetica Neue', var(--sans); letter-spacing: -.01em; }
.rating { margin-top: 12px; font-size: 13px; font-weight: 700; opacity: .8; position: relative; z-index: 1; }
/* real App Store screenshots: two big poster-style cards bleeding off the bottom edge; swipe strip of five on phones */
.app-shots { display: flex; gap: 18px; align-items: flex-end; margin-bottom: calc(-1 * var(--pad)); min-width: 0; }
.shot { flex: 1 1 0; min-width: 0; margin: 0; border-radius: 24px 24px 0 0; overflow: hidden; background: #0a1626; border: 3px solid currentColor; border-bottom: 0; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }
.shot img { display: block; width: 100%; height: auto; }
.shot:nth-child(1), .shot:nth-child(4), .shot:nth-child(5) { display: none; }
.shot:nth-child(2) { margin-bottom: -24%; transform: rotate(-3deg); transform-origin: 100% 0; }
.shot:nth-child(3) { margin-bottom: -4%; }

/* ---------- timetable grouped by hour ---------- */
.timetable { display: grid; gap: 14px; }
.hr { display: grid; grid-template-columns: 110px 1fr; gap: 0; border: 2px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--bg2); }
.hr-t { background: var(--bg3); padding: 14px 12px; border-right: 2px solid var(--line); position: relative; }
.hr-t b { display: block; font: 900 56px/.85 var(--disp); }
.hr-t span { font: 800 13px/1 var(--sans); color: var(--mute); text-transform: uppercase; letter-spacing: .08em; }
.hr.nowh { border-color: var(--acc); }
.hr.nowh .hr-t { background: var(--acc); color: var(--on-acc); }
.hr.nowh .hr-t span { color: inherit; opacity: .8; }
.hr.pasth { opacity: .55; }
.hr ol { list-style: none; margin: 0; padding: 4px 0; position: relative; }
.hr ol::before { content: ''; position: absolute; left: 22px; top: 0; bottom: 0; width: 4px; background: var(--acc); opacity: .6; }
.stop { position: relative; display: grid; grid-template-columns: 52px 1fr auto; gap: 10px; padding: 10px 14px 10px 40px; align-items: baseline; }
.stop + .stop { border-top: 1px solid var(--line); }
.stop::before { content: ''; position: absolute; left: 16px; top: 15px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg2); border: 3px solid var(--ink); }
.stop.pk-stop::before { background: var(--hi); border-color: var(--hi); }
.stop .tm { font: 800 18px/1 var(--disp); color: var(--hi); }
.stop .nm { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.stop .nm small { display: block; font-weight: 400; color: var(--mute); font-size: 13px; }
.stop a { font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; border-bottom: 2px solid var(--acc); }
.stop.past { opacity: .5; }
.more-btn { justify-self: start; border: 2px solid var(--ink); background: none; border-radius: 8px; padding: 10px 16px; font: 900 16px/1 var(--disp); text-transform: uppercase; letter-spacing: .06em; cursor: pointer; }

/* ---------- footer & ecosystem ---------- */
.foot { max-width: var(--max); margin: 0 auto; padding: 28px var(--gut) 96px; color: var(--mute); font-size: 13px; border-top: 2px solid var(--line); }
.foot a { color: var(--ink); }
.eco { margin-top: 24px; }
.eco h4 { font: 900 24px/1 var(--disp); text-transform: uppercase; color: var(--ink); margin: 0 0 12px; letter-spacing: .02em; }
.eco ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 8px; }
.eco li a { display: block; height: 100%; text-decoration: none; border: 2px solid var(--line); border-radius: 10px; padding: 10px 12px; transition: border-color .15s; }
.eco li a:hover { border-color: var(--acc); }
.eco li b { display: block; color: var(--ink); font: 800 18px/1.1 var(--disp); letter-spacing: .02em; }
.eco li span { color: var(--mute); font-size: 13px; }
.eco li.me a { border-color: var(--acc); }
.made { margin-top: 18px; }

/* ---------- sticky app CTA ---------- */
.sticky { position: fixed; z-index: 900; right: 16px; bottom: 16px; display: flex; align-items: center; gap: 10px; background: var(--ink); color: var(--bg); border-radius: 12px; padding: 8px 8px 8px 14px; box-shadow: 0 12px 30px -8px rgba(0,0,0,.6); max-width: 420px; transform: translateY(140%); transition: transform .3s ease; }
.sticky.show { transform: none; }
.sticky p { margin: 0; font-size: 14px; font-weight: 600; line-height: 1.25; }
.sticky a { flex: none; background: var(--acc); color: var(--on-acc); text-decoration: none; font: 900 15px/1 var(--disp); text-transform: uppercase; letter-spacing: .06em; padding: 10px 12px; border-radius: 8px; }
body[data-page="home"] .sticky a { background: var(--mad); color: #fff; }
.sticky button { flex: none; border: 0; background: none; color: var(--bg); font-size: 22px; line-height: 1; padding: 4px 6px; cursor: pointer; opacity: .6; }

/* ---------- home page ---------- */
.home-hero { max-width: var(--max); margin: 0 auto; padding: clamp(20px, 5vw, 56px) var(--gut) 10px; position: relative; }
.home-hero h1 { font-family: var(--disp); text-transform: uppercase; margin: 0; line-height: .84; }
.home-hero h1 .a { display: block; font-weight: 900; font-size: clamp(56px, 10.5vw, 150px); }
.home-hero h1 .b { display: inline-block; font-weight: 800; font-size: clamp(30px, 5.6vw, 80px); line-height: 1; margin-top: 10px; padding: .08em .22em .02em; background: var(--yel); color: #0b0b0d; transform: rotate(-1.5deg); }
.home-hero .lead { font-size: clamp(16px, 1.8vw, 20px); color: #d9d5cc; max-width: 60ch; margin: 24px 0 0; }
.stripe { height: 14px; margin: 26px 0 0; border-radius: 7px; background: linear-gradient(90deg, var(--mad) 0 33.3%, var(--bcn) 33.3% 66.6%, var(--lis) 66.6%); position: relative; }
.stripe i { position: absolute; top: -5px; width: 24px; height: 24px; border-radius: 50%; background: var(--bg); border: 5px solid var(--ink); }
.sec { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.tickets { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.ticket { --c: var(--mad); position: relative; display: flex; flex-direction: column; text-decoration: none; background: var(--c); color: #fff; border-radius: 18px; min-height: 460px; overflow: hidden; transition: transform .18s; }
.ticket:hover { transform: translateY(-6px) rotate(-.6deg); }
.ticket[data-c="barcelona"] { --c: var(--bcn); } .ticket[data-c="lisbon"] { --c: var(--lis); }
.ticket .art { height: 190px; position: relative; overflow: hidden; background: var(--c); }
.ticket .art img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.3); mix-blend-mode: multiply; display: block; }
.ticket .code { position: absolute; left: 16px; top: 12px; font: 900 24px/1 var(--disp); letter-spacing: .1em; background: #0b0b0d; color: #fff; padding: 6px 9px 4px; border-radius: 6px; }
.ticket .clk { position: absolute; right: 14px; top: 12px; font: 900 22px/1 var(--disp); background: #fff; color: #0b0b0d; padding: 6px 9px 4px; border-radius: 6px; }
.ticket .clk small { font: 700 10px/1 var(--sans); text-transform: uppercase; letter-spacing: .1em; display: block; opacity: .7; }
.ticket .perf { height: 0; border-top: 3px dashed rgba(255,255,255,.55); margin: 0 18px; position: relative; }
.ticket .perf::before, .ticket .perf::after { content: ''; position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); }
.ticket .perf::before { left: -33px; } .ticket .perf::after { right: -33px; }
.ticket .tb { padding: 16px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.ticket h2 { margin: 0; font-size: clamp(56px, 6.4vw, 96px); line-height: .85; }
.ticket p { margin: 10px 0 18px; font-size: 15px; opacity: .95; }
.ticket .go { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font: 900 20px/1 var(--disp); text-transform: uppercase; letter-spacing: .04em; background: #0b0b0d; color: #fff; padding: 14px 16px; border-radius: 10px; }
.ticket[data-c="barcelona"] .go, .ticket[data-c="lisbon"] .go { color: var(--yel); }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; counter-reset: s; }
.how::before { content: ''; position: absolute; left: 24px; right: 24px; top: 22px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--mad), var(--bcn), var(--lis)); }
.how li { list-style: none; position: relative; padding: 64px 22px 0 0; }
.how li::before { counter-increment: s; content: counter(s); position: absolute; left: 0; top: 0; width: 52px; height: 52px; border-radius: 50%; background: var(--bg); border: 6px solid var(--ink); display: grid; place-items: center; font: 900 24px/1 var(--disp); }
.how h3 { font: 900 30px/1 var(--disp); text-transform: uppercase; margin: 0 0 8px; }
.how p { margin: 0; color: #cfcbc3; max-width: 34ch; }
.how { padding: 0; margin: 0; }
.home-app { margin-top: 48px; }
.faq { max-width: 860px; }
.faq details { border-bottom: 2px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 40px 16px 0; font: 800 22px/1.15 var(--disp); text-transform: uppercase; letter-spacing: .02em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font: 900 32px/1 var(--disp); color: var(--yel); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 16px; color: #cfcbc3; max-width: 70ch; }
.morecities { margin: 30px 0 0; padding: 18px 20px; border: 2px dashed var(--line); border-radius: var(--r); }
.morecities a { color: var(--yel); font-weight: 700; }

@media (max-width: 900px) {
  .tickets { grid-template-columns: 1fr; }
  .ticket { min-height: 0; }
  .ticket .art { height: 150px; }
  .how { grid-template-columns: 1fr; gap: 26px; }
  .how::before { left: 22px; right: auto; top: 20px; bottom: 20px; width: 8px; height: auto; background: linear-gradient(var(--mad), var(--bcn), var(--lis)); }
  .how li { padding: 4px 0 0 72px; }
  .app { grid-template-columns: 1fr; }
  .app-shots { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 calc(-1 * var(--pad)) calc(-1 * var(--pad)); padding: 6px var(--pad) var(--pad); align-items: flex-start; overscroll-behavior-x: contain; height: auto; }
  .app-shots::-webkit-scrollbar { display: none; }
  .shot, .shot:nth-child(n) { display: block; flex: 0 0 min(58vw, 240px); margin: 0; transform: none; scroll-snap-align: center; border-radius: 20px; border-bottom: 3px solid currentColor; }
}
@media (max-width: 640px) {
  .top { gap: 10px; padding-top: 12px; padding-bottom: 12px; }
  .lines { order: 3; margin-left: 0; width: 100%; }
  .lines a { flex: 1; text-align: center; }
  .langs { margin-left: auto; }
  .langs button { padding: 6px 7px; }
  .toggles { width: 100%; }
  .mapbtn { margin-left: auto; }
  .hr { grid-template-columns: 1fr; }
  .hr-t { border-right: 0; border-bottom: 2px solid var(--line); display: flex; align-items: baseline; gap: 8px; padding: 8px 14px; }
  .hr-t b { font-size: 40px; }
  .stop { grid-template-columns: 46px 1fr; }
  .stop a { grid-column: 2; justify-self: start; }
  .next .nt { font-size: 24px; }
  .sticky { left: 10px; right: 10px; bottom: 10px; max-width: none; }
  .store { min-width: 0; flex: 1 1 150px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
