/* OLIMPRO APP — components. Uses tokens.css only. Mobile-first. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; min-height: 100dvh; }
img, video, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--olp-blue); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--s3); top: -60px; z-index: 100; background: var(--olp-blue); color: var(--olp-choco); padding: var(--s2) var(--s4); border-radius: var(--r-pill); }
.skip:focus { top: calc(var(--safe-t) + 8px); }

/* ── Type ── */
.display, h1, h2, h3 { font-stretch: var(--display-stretch); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: var(--lh-display); margin: 0; }
h1 { font-size: var(--fs-h1); } h2 { font-size: var(--fs-h2); } h3 { font-size: var(--fs-h3); line-height: 1; }
.kicker { font-stretch: var(--wide-stretch); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; font-size: var(--fs-xs); }
.narrow { font-stretch: var(--narrow-stretch); }
p { margin: 0 0 var(--s3); }
.muted { color: var(--ink-mute); }
.small { font-size: var(--fs-small); }
.xs { font-size: var(--fs-xs); }

/* ── Shell ── */
.app-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: var(--s2);
  padding: calc(var(--safe-t) + 8px) calc(var(--safe-r) + 12px) 8px calc(var(--safe-l) + 12px);
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: background var(--t-med) var(--ease); }
.app-header[data-theme="blue"] { background: color-mix(in srgb, var(--olp-blue) 94%, transparent); }
.app-header .logo { height: 30px; width: auto; margin-right: auto; }
.app-header .logo-link { margin-right: auto; display: flex; align-items: center; min-height: var(--tap); }
.icon-btn { position: relative; display: grid; place-items: center; width: var(--tap); height: var(--tap); border: 0; border-radius: var(--r-pill);
  background: transparent; color: inherit; transition: background var(--t-fast); }
.icon-btn:active { background: rgba(66,36,7,.08); }
.icon-btn svg { width: 24px; height: 24px; }
.badge { position: absolute; top: 6px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--olp-blue);
  color: var(--olp-choco); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; font-stretch: 100%; }
.badge[hidden] { display: none; }
main { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 24px); min-height: 70dvh; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 calc(var(--safe-r) + 16px) 0 calc(var(--safe-l) + 16px); }
.section { padding-top: var(--s6); padding-bottom: var(--s6); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s4); }
.section-head a { font-weight: 700; font-size: var(--fs-small); text-decoration: none; color: var(--accent-ink); white-space: nowrap; }

.tabbar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px calc(var(--safe-r) + 6px) calc(var(--safe-b) + 6px) calc(var(--safe-l) + 6px);
  background: var(--olp-cream); border-top: 1px solid var(--line); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 52px;
  text-decoration: none; color: var(--ink-mute); font-size: 10.5px; font-weight: 800; font-stretch: var(--narrow-stretch); text-transform: uppercase;
  letter-spacing: .02em; border-radius: var(--r-md); transition: color var(--t-fast); }
.tabbar a svg { width: 26px; height: 26px; }
.tabbar a[aria-current="page"] { color: var(--olp-choco); }
.tabbar a[aria-current="page"]::before { content: ""; position: absolute; top: 2px; width: 28px; height: 4px; border-radius: 2px; background: var(--olp-blue); }
.tabbar a.club { color: var(--accent-ink); }
.tabbar a.club .club-dot { width: 34px; height: 34px; border-radius: 50%; background: var(--olp-blue); display: grid; place-items: center; color: var(--olp-cream); margin-top: -6px; }
.tabbar a.club .club-dot svg { width: 22px; height: 22px; }
.tabbar .badge { top: 2px; right: calc(50% - 22px); }
body.kb-open .tabbar { transform: translateY(110%); }
@media (min-width: 900px) {
  .tabbar { left: 50%; right: auto; bottom: 16px; transform: translateX(-50%); width: 560px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px; }
}

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: var(--tap); padding: 0 var(--s5);
  border: 0; border-radius: var(--r-pill); font-weight: 900; font-stretch: var(--narrow-stretch); text-transform: uppercase; letter-spacing: .02em;
  text-decoration: none; font-size: 1rem; transition: transform var(--t-fast) var(--ease), background var(--t-fast), opacity var(--t-fast); }
.btn:active { transform: scale(.97); }
.btn svg { width: 22px; height: 22px; flex: none; }
.inline-ico svg { width: 100%; height: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
/* A11y: cream on brand blue is ~1.9:1 (fails WCAG). Choco text on blue = 6.2:1 and Choco is the brand text colour. See docs/DESIGN_SYSTEM.md §Contraste. */
.btn-primary { background: var(--olp-blue); color: var(--olp-choco); }
/* Brandbook: Choco solo texto → el botón "ink" es crema con texto choco sobre fondos azules/fotos, y blanco sobre crema */
.btn-ink { background: var(--white); color: var(--olp-choco); }
.btn-cream { background: var(--olp-cream); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 var(--s4); font-size: .875rem; }
.link-btn { background: none; border: 0; padding: var(--s2) 0; font-weight: 700; color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; min-height: 40px; }
.chip { text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 var(--s4); border-radius: var(--r-pill); border: 2px solid var(--line);
  background: transparent; font-weight: 800; font-size: var(--fs-small); white-space: nowrap; font-stretch: var(--narrow-stretch); text-transform: uppercase; }
.chip[aria-pressed="true"] { background: var(--olp-blue); border-color: var(--olp-blue); color: var(--olp-choco); }
.chips { display: flex; gap: var(--s2); overflow-x: auto; scrollbar-width: none; padding: 2px 0 var(--s2); }
.chips::-webkit-scrollbar { display: none; }

/* ── Hero (azul a saco) ── */
.hero { position: relative; overflow: hidden; background: var(--olp-blue); color: var(--olp-cream); padding: var(--s6) 0 0; margin-top: -1px; }
.hero .kicker { opacity: .9; }
.hero h1 { font-size: var(--fs-hero); margin: var(--s3) 0 var(--s4); max-width: 10ch; position: relative; z-index: 2; }
.hero p { max-width: 34ch; font-size: 1.05rem; position: relative; z-index: 2; }
.hero .btn { position: relative; z-index: 2; }
.hero-tub { position: relative; width: min(78%, 420px); margin: -12% -6% 0 auto; z-index: 1; aspect-ratio: 0.82; object-fit: contain;
  animation: float 6s var(--ease) infinite alternate; }
@keyframes float { from { transform: translateY(0) rotate(-2deg); } to { transform: translateY(-10px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .hero-tub { animation: none; } }
@media (min-width: 900px) { .hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; } .hero-tub { margin: 0; width: 100%; } .hero { padding: var(--s7) 0 var(--s5); } }

/* ── Product cards ── */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 46%); gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory;
  scrollbar-width: none; padding: 0 calc(var(--safe-r) + 16px) var(--s2) calc(var(--safe-l) + 16px); margin: 0 calc(-1 * (var(--safe-r) + 16px)) 0 calc(-1 * (var(--safe-l) + 16px)); }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
@media (min-width: 700px) { .rail { grid-auto-columns: minmax(200px, 23%); } }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s3); }
@media (min-width: 700px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); text-decoration: none; color: var(--ink);
  transition: transform var(--t-med) var(--ease); isolation: isolate; }
.card:active { transform: scale(.985); }
.card-media { position: relative; aspect-ratio: 1 / 1.08; background: var(--card-bg, var(--olp-blue)); display: grid; place-items: center; overflow: hidden; }
.card-media img.tub { width: 86%; height: 86%; object-fit: contain; transition: transform var(--t-slow) var(--ease); }
.card:hover .card-media img.tub { transform: scale(1.04) rotate(-1.5deg); }
.card-media img.sticker { position: absolute; left: 8px; bottom: 8px; width: 38%; max-width: 92px; height: auto; transform: rotate(-8deg); }
.card-body { padding: var(--s3) var(--s3) var(--s4); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.card-title { font-weight: 900; font-stretch: var(--display-stretch); text-transform: uppercase; font-size: 1.35rem; line-height: .95; letter-spacing: -.005em; }
.card-meta { font-size: var(--fs-xs); color: var(--ink-mute); }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); margin-top: auto; padding-top: var(--s2); }
.price { font-weight: 900; font-stretch: var(--narrow-stretch); font-size: 1.1rem; }
.price s { color: var(--ink-mute); font-weight: 600; font-size: .85em; margin-left: 4px; }
.add-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--olp-blue); color: var(--olp-choco); display: grid; place-items: center;
  transition: transform var(--t-fast) var(--ease), background var(--t-fast); flex: none; }
.add-btn svg { width: 22px; height: 22px; }
.add-btn:active { transform: scale(.9); }
.add-btn.done { background: var(--olp-cream); box-shadow: inset 0 0 0 3px var(--olp-blue); }
.add-btn[disabled] { background: var(--line); color: var(--ink-mute); }
.fav-btn { position: absolute; top: 8px; right: 8px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center;
  background: rgba(239,236,220,.92); color: var(--olp-choco); }
.fav-btn svg { width: 22px; height: 22px; }
.fav-btn[aria-pressed="true"] svg { fill: var(--olp-choco); }
.fav-btn.pop svg { animation: pop .38s var(--ease); }
@keyframes pop { 40% { transform: scale(1.35); } }
.tag { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 4px 10px; border-radius: var(--r-pill); background: var(--olp-cream); color: var(--olp-choco);
  font-size: 11px; font-weight: 900; text-transform: uppercase; font-stretch: var(--narrow-stretch); }
.tag.soldout { background: var(--white); color: var(--olp-choco); }
.card.is-soldout .card-media img.tub { opacity: .55; filter: saturate(.6); }

/* ── Skeletons ── */
.sk { background: linear-gradient(100deg, rgba(66,36,7,.06) 30%, rgba(66,36,7,.12) 50%, rgba(66,36,7,.06) 70%); background-size: 300% 100%;
  animation: sk 1.3s linear infinite; border-radius: var(--r-md); }
@keyframes sk { from { background-position: 100% 0; } to { background-position: 0 0; } }
.sk-card { aspect-ratio: .74; border-radius: var(--r-lg); }
.sk-line { height: 14px; margin: 8px 0; }

/* ── Club teaser / blocks ── */
.block-club { background: var(--olp-cream); }
.club-teaser { position: relative; border: var(--dash); border-radius: var(--r-lg); padding: var(--s6) var(--s5); text-align: center; }
.club-teaser h2 { color: var(--olp-blue); font-size: clamp(2.5rem, 12vw, 4.5rem); }
.club-teaser p { max-width: 30ch; margin: var(--s3) auto var(--s4); font-weight: 600; }
.editorial { display: grid; gap: var(--s4); }
.editorial figure { margin: 0; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/5; background: var(--surface); }
.editorial figure img { width: 100%; height: 100%; object-fit: cover; }
.editorial h2 { margin-top: calc(-1 * var(--s7)); position: relative; z-index: 2; padding: 0 var(--s2); color: var(--olp-blue); font-size: clamp(2.6rem, 12vw, 5rem); }
@media (min-width: 800px) { .editorial { grid-template-columns: 1fr 1fr; align-items: center; } .editorial h2 { margin: 0 0 var(--s3) calc(-1 * var(--s8)); } }
.info-grid { display: grid; gap: var(--s3); }
@media (min-width: 700px) { .info-grid { grid-template-columns: repeat(3, 1fr); } }
.info-item { padding: var(--s4); border-radius: var(--r-md); background: var(--surface); }
.info-item strong { display: block; font-stretch: var(--narrow-stretch); font-weight: 900; text-transform: uppercase; font-size: 1.15rem; }
.panel { padding: var(--s5); border-radius: var(--r-lg); background: var(--surface); }
.panel-blue { background: var(--olp-blue); color: var(--olp-cream); }

/* ── PDP ── */
.pdp-media { position: relative; background: var(--card-bg, var(--olp-blue)); padding: var(--s5) 0 var(--s6); overflow: hidden; }
.pdp-gallery { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.pdp-gallery::-webkit-scrollbar { display: none; }
.pdp-gallery img { scroll-snap-align: center; width: 100%; height: min(62vh, 520px); object-fit: contain; }
.pdp-dots { display: flex; gap: 6px; justify-content: center; margin-top: var(--s2); }
.pdp-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(239,236,220,.45); }
.pdp-dots span.on { background: var(--olp-cream); width: 20px; border-radius: 4px; transition: width var(--t-med) var(--ease); }
.pdp-sticker { position: absolute; left: 16px; bottom: 18px; width: 110px; transform: rotate(-8deg); }
.pdp-head { padding-top: var(--s5); }
.pdp-head h1 { font-size: clamp(2.6rem, 12vw, 4.5rem); }
.pdp-price { display: flex; align-items: baseline; gap: var(--s2); margin: var(--s3) 0; font-size: 1.6rem; font-weight: 900; font-stretch: var(--narrow-stretch); }
.highlights { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s3) 0; }
/* Flavour highlights are NOT attribute stickers (those are yellow + white text on pack, too low-contrast for UI text). */
.highlights span { padding: 6px 12px; border-radius: var(--r-pill); background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); font-weight: 900; font-size: var(--fs-xs);
  text-transform: uppercase; font-stretch: var(--narrow-stretch); }
.buybar { position: sticky; bottom: calc(var(--nav-h) + var(--safe-b) + 8px); z-index: 20; display: flex; gap: var(--s2); align-items: center;
  padding: var(--s2); margin: var(--s4) 0; border-radius: var(--r-pill); background: var(--olp-blue); color: var(--olp-choco); }
.qty { display: inline-flex; align-items: center; border-radius: var(--r-pill); background: rgba(255,255,255,.35); }
.qty button { width: 44px; height: 44px; border: 0; background: transparent; color: inherit; font-size: 1.4rem; font-weight: 700; border-radius: 50%; }
.qty output { min-width: 28px; text-align: center; font-weight: 900; }
.qty.light { background: rgba(66,36,7,.07); }
.buybar .btn { flex: 1; }
details.acc { border-top: 1px solid var(--line); }
details.acc:last-of-type { border-bottom: 1px solid var(--line); }
details.acc summary { list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 60px; cursor: pointer;
  font-weight: 900; font-stretch: var(--narrow-stretch); text-transform: uppercase; font-size: 1.1rem; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "+"; font-size: 1.6rem; font-weight: 400; transition: transform var(--t-med) var(--ease); }
details.acc[open] summary::after { transform: rotate(45deg); }
details.acc .acc-body { padding: 0 0 var(--s4); }
table.nutri { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
table.nutri caption { text-align: left; font-size: var(--fs-small); color: var(--ink-mute); padding-bottom: var(--s2); caption-side: top; }
table.nutri th, table.nutri td { padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
table.nutri td { text-align: right; font-weight: 800; }
table.nutri tr.sub th { padding-left: var(--s4); font-weight: 400; color: var(--ink-soft); }
.notice { display: flex; gap: var(--s3); padding: var(--s4); border-radius: var(--r-md); background: rgba(46,185,220,.12); font-size: var(--fs-small); }
.notice.warn { background: rgba(226,193,79,.22); }
.notice.err { background: rgba(179,38,30,.1); color: var(--danger); }
.notice svg { flex: none; width: 20px; height: 20px; margin-top: 2px; }

/* ── Cart ── */
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: var(--s3); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.line-img { width: 84px; height: 84px; border-radius: var(--r-md); background: var(--surface); object-fit: contain; padding: 4px; }
.line-title { font-weight: 900; font-stretch: var(--narrow-stretch); text-transform: uppercase; line-height: 1.05; }
.line .remove { background: none; border: 0; color: var(--ink-mute); font-size: var(--fs-xs); text-decoration: underline; padding: 6px 0; min-height: 32px; }
.totals { display: grid; gap: var(--s2); padding: var(--s4) 0; }
.totals div { display: flex; justify-content: space-between; }
.totals .grand { font-weight: 900; font-size: 1.3rem; font-stretch: var(--narrow-stretch); text-transform: uppercase; }
.input { width: 100%; min-height: var(--tap); padding: 0 var(--s4); border-radius: var(--r-pill); border: 2px solid var(--line); background: var(--white); }
.input:focus { border-color: var(--olp-blue); outline: none; }
.field { display: grid; gap: 6px; margin-bottom: var(--s3); }
.field label { font-weight: 800; font-size: var(--fs-small); }
.row { display: flex; gap: var(--s2); align-items: center; }
.row > .grow { flex: 1; }

/* ── Empty / error states ── */
.empty { text-align: center; padding: var(--s7) var(--s4); }
.empty .dash-box { width: min(260px, 70vw); aspect-ratio: 1; margin: 0 auto var(--s5); border: var(--dash); border-radius: var(--r-lg); display: grid; place-items: center;
  color: var(--olp-blue); font-weight: 900; font-stretch: var(--display-stretch); font-size: 2rem; line-height: .9; text-transform: none; padding: var(--s4); }
.empty h2 { font-stretch: var(--display-stretch); }

/* ── Sheets, toasts, banners ── */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(30, 16, 3, .44); opacity: 0; transition: opacity var(--t-med); }
.scrim.on { opacity: 1; }
.sheet { position: fixed; z-index: 61; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow: auto; background: var(--olp-cream); border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: var(--s3) calc(var(--safe-r) + 20px) calc(var(--safe-b) + 24px) calc(var(--safe-l) + 20px); transform: translateY(100%); transition: transform var(--t-med) var(--ease); }
.sheet.on { transform: translateY(0); }
.sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto var(--s4); }
@media (min-width: 700px) { .sheet { left: 50%; right: auto; width: 520px; bottom: 50%; border-radius: var(--r-lg); transform: translate(-50%, 60%); opacity: 0; }
  .sheet.on { transform: translate(-50%, 50%); opacity: 1; } }
.sheet-blue { background: var(--olp-blue); color: var(--olp-cream); }
.toasts { position: fixed; z-index: 70; left: 0; right: 0; bottom: calc(var(--nav-h) + var(--safe-b) + 14px); display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: var(--s3); max-width: 480px; padding: 12px 16px; border-radius: var(--r-pill); background: var(--olp-blue);
  color: var(--olp-choco); font-weight: 700; font-size: var(--fs-small); animation: toast-in var(--t-med) var(--ease); }
.toast a { color: var(--olp-choco); font-weight: 900; }
@keyframes toast-in { from { transform: translateY(20px); opacity: 0; } }
.topbanner { padding: 8px calc(var(--safe-r) + 16px) 8px calc(var(--safe-l) + 16px); font-size: var(--fs-xs); font-weight: 700; text-align: center; }
.topbanner.dev { background: repeating-linear-gradient(-45deg, #E2C14F 0 12px, #e9cd68 12px 24px); color: var(--olp-choco); }
.topbanner.offline { background: var(--olp-orange); color: var(--olp-choco); }   /* paleta secundaria: situación concreta */
.topbanner.update { background: var(--olp-blue); color: var(--olp-choco); }
.topbanner button { margin-left: 8px; background: transparent; border: 2px solid currentColor; border-radius: var(--r-pill); padding: 2px 10px; font-weight: 900; color: inherit; }

/* ── Install guide ── */
.steps { counter-reset: s; display: grid; gap: var(--s3); padding: 0; margin: var(--s4) 0; list-style: none; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: var(--s3); align-items: center; }
.steps li::before { content: counter(s); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 900;
  background: var(--olp-cream); color: var(--olp-blue); }
.sheet:not(.sheet-blue) .steps li::before { background: var(--olp-blue); color: var(--olp-cream); }
.inline-ico { display: inline-block; width: 20px; height: 20px; vertical-align: -4px; }

/* ── OLIMBROS CLUB ── */
.club-hero { background: var(--olp-blue); color: var(--olp-cream); padding: var(--s6) 0 var(--s7); position: relative; overflow: hidden; }
.club-hero h1 { font-size: clamp(3.2rem, 16vw, 7rem); line-height: .82; }
.club-hero .ticket-edge { position: absolute; left: 0; right: 0; bottom: -1px; height: 22px;
  background: radial-gradient(circle at 11px 22px, var(--bg) 10px, transparent 11px) 0 0 / 22px 22px repeat-x; }
.member-card { position: relative; margin-top: calc(-1 * var(--s7)); border-radius: var(--r-lg); padding: var(--s5); background: var(--olp-cream);
  border: var(--dash); z-index: 2; }
.member-card .who { display: flex; justify-content: space-between; align-items: start; gap: var(--s3); }
.member-card .count { font-stretch: var(--display-stretch); font-weight: 900; font-size: 5rem; line-height: .8; color: var(--olp-blue); }
.member-card .count small { display: block; font-size: var(--fs-small); font-stretch: var(--narrow-stretch); color: var(--ink); letter-spacing: .02em; line-height: 1.2; margin-top: 6px; text-transform: uppercase; }
.progress { position: relative; height: 18px; border-radius: 9px; background: rgba(46,185,220,.18); overflow: hidden; margin: var(--s4) 0 var(--s2); }
.progress > span { position: absolute; inset: 0 auto 0 0; width: var(--p, 0%); background: var(--olp-blue); border-radius: 9px; transition: width 900ms var(--ease); }
.progress > span::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(-45deg, rgba(255,255,255,.18) 0 8px, transparent 8px 16px); }
.timeline { position: relative; display: grid; gap: var(--s4); padding-left: 0; list-style: none; margin: 0; }
.ms { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: var(--s4); align-items: start; }
.ms::before { content: ""; position: absolute; left: 31px; top: 64px; bottom: calc(-1 * var(--s4)); width: 2px; background: repeating-linear-gradient(var(--olp-blue) 0 6px, transparent 6px 12px); }
.ms:last-child::before { display: none; }
.ms-num { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-stretch: var(--display-stretch); font-size: 1.9rem;
  border: var(--dash); color: var(--olp-blue); background: var(--olp-cream); }
.ms.done .ms-num, .ms.unlocked .ms-num { background: var(--olp-blue); color: var(--olp-cream); border-style: solid; border-color: var(--olp-blue); }
.ms.unlocked .ms-num { animation: glow 2.4s var(--ease) infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 8px rgba(46,185,220,.25); } }
.ms-card { border-radius: var(--r-md); padding: var(--s4); background: var(--surface); }
.ms.locked .ms-card { background: transparent; border: var(--dash); }
.ms-card h3 { font-size: 1.5rem; }
.reward { display: grid; grid-template-columns: 76px 1fr; gap: var(--s3); align-items: center; margin-top: var(--s3); }
.reward-img { width: 76px; height: 76px; border-radius: var(--r-md); background: var(--olp-blue); display: grid; place-items: center; overflow: hidden; }
.reward-img img { width: 90%; height: 90%; object-fit: contain; }
.ms.locked .reward-img { background: transparent; border: var(--dash); color: var(--olp-blue); }
.ms.locked .reward-img img { filter: grayscale(1) opacity(.35); }
.stamp { display: inline-block; padding: 4px 10px; border: 2px solid currentColor; border-radius: 6px; font-weight: 900; font-size: 11px; text-transform: uppercase;
  transform: rotate(-4deg); font-stretch: var(--narrow-stretch); letter-spacing: .04em; }
.stamp.ok { color: var(--success); } .stamp.blue { color: var(--accent-ink); } .stamp.yellow { color: var(--olp-choco); background: var(--olp-attr); border-color: var(--olp-attr); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 80; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: fall 1.8s var(--ease) forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); opacity: .9; } }
@media (prefers-reduced-motion: reduce) { .confetti { display: none; } }

/* ── Lists (orders, inbox) ── */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-bottom: 1px solid var(--line); }
.list-item { display: flex; gap: var(--s3); align-items: center; padding: var(--s4) 0; text-decoration: none; color: inherit; width: 100%; background: none; border: 0; text-align: left; min-height: 64px; }
.list-item .grow { flex: 1; min-width: 0; }
.list-item .title { font-weight: 800; }
.unread-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--olp-blue); flex: none; }
.status { display: inline-block; padding: 3px 10px; border-radius: var(--r-pill); font-size: 11px; font-weight: 900; text-transform: uppercase; background: var(--surface); }
.status.ok { background: rgba(30,107,58,.12); color: var(--success); } .status.warn { background: rgba(226,193,79,.25); color: var(--warning); }
.status.err { background: rgba(179,38,30,.1); color: var(--danger); } .status.blue { background: rgba(46,185,220,.16); color: var(--accent-ink); }
.track { list-style: none; padding: 0; margin: var(--s4) 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.track li { text-align: center; font-size: 11px; font-weight: 800; color: var(--ink-mute); }
.track li::before { content: ""; display: block; height: 6px; border-radius: 3px; background: var(--line); margin-bottom: 6px; }
.track li.on { color: var(--ink); } .track li.on::before { background: var(--olp-blue); }

/* ── Finder ── */
.finder-q { min-height: 60dvh; display: flex; flex-direction: column; justify-content: center; }
.opt-grid { display: grid; gap: var(--s3); margin-top: var(--s5); }
.opt { min-height: 72px; padding: var(--s4); border-radius: var(--r-md); border: 3px solid transparent; background: var(--surface); text-align: left; font-weight: 900;
  font-stretch: var(--narrow-stretch); text-transform: uppercase; font-size: 1.2rem; transition: transform var(--t-fast); }
.opt:active { transform: scale(.98); }
.opt[aria-pressed="true"] { border-color: var(--olp-blue); background: rgba(46,185,220,.12); }
.dots { display: flex; gap: 6px; } .dots i { width: 28px; height: 5px; border-radius: 3px; background: var(--line); } .dots i.on { background: var(--olp-blue); }

/* ── Compare ── */
.cmp { overflow-x: auto; }
.cmp table { border-collapse: collapse; min-width: 100%; font-variant-numeric: tabular-nums; }
.cmp th, .cmp td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.cmp th:first-child, .cmp td:first-child { text-align: left; position: sticky; left: 0; background: var(--bg); }
.cmp thead th { font-stretch: var(--narrow-stretch); text-transform: uppercase; }

/* ── Search ── */
.searchbar { position: sticky; top: calc(var(--safe-t) + 64px); z-index: 10; padding: var(--s2) 0; background: var(--bg); }
.searchbar .input { padding-left: 48px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23422407' stroke-width='2.2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat 16px center / 20px; }

/* ── View transitions ── */
.view { animation: view-in var(--t-med) var(--ease); }
@keyframes view-in { from { opacity: .6; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .view { animation: none; } }
.page-title { padding: var(--s5) 0 var(--s3); }
.page-title h1 { font-size: clamp(2.6rem, 12vw, 4.2rem); }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; font-weight: 800; text-decoration: none; font-size: var(--fs-small); }
.foot { padding: var(--s6) 0 var(--s4); font-size: var(--fs-xs); color: var(--ink-mute); }
.foot a { color: inherit; }
.foot nav { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); margin-bottom: var(--s3); }
