/* Spartans Gym — foglio di stile */

:root {
  --bg: #141517;
  --bg-2: #1b1d20;
  --panel: #212428;
  --panel-2: #2a2e33;
  --line: #34383e;
  --text: #ecebe6;
  --soft: #d4d2cc;
  --muted: #a9a79f;
  --gold: #f5cb40;
  --gold-2: #ffd95c;
  --ink: #16140c;
  /* colori dei dischi calibrati: 25 / 20 / 15 / 10 / 5 kg */
  --p25: #d7392b;
  --p20: #2c5fca;
  --p15: #f5cb40;
  --p10: #3c9a4c;
  --p5: #e7e7e3;
  --wrap: 1160px;
  --hh: 64px;
  --r: 14px;
  --display: 'Big Shoulders Display', 'Arial Narrow', 'Roboto Condensed', Impact, sans-serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--hh) + 8px);
  -webkit-text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 3px; }
address { font-style: normal; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
@media (min-width: 720px) { .wrap { width: min(100% - 64px, var(--wrap)); } }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  line-height: .95;
  letter-spacing: .005em;
  margin: 0;
  text-wrap: balance;
}

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 8px; z-index: 100; background: var(--gold); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; }

.muted { color: var(--muted); }

/* ---------- Testata e menù a tendina ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 21, 23, .86);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, background-color .2s;
}
.top.is-scrolled { border-bottom-color: var(--line); background: rgba(20, 21, 23, .95); }
.top__in { height: var(--hh); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }

.brand { display: flex; flex-direction: column; color: var(--text); text-decoration: none; line-height: 1; }
.brand__name { font-family: var(--display); font-weight: 800; font-size: 1.65rem; text-transform: uppercase; letter-spacing: .02em; }
.brand__name b, .foot__brand b { color: var(--gold); font-weight: 800; }
.brand__place { font-size: .66rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.menu-btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  height: 44px;
  padding: 0 1.05rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: 600 .95rem var(--sans);
  cursor: pointer;
}
.menu-btn:hover { border-color: #4a4f56; }
.top__actions { display: flex; align-items: center; gap: .4rem; }
.top-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  height: 44px;
  padding: 0 .8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  font: 600 .9rem var(--sans);
  text-decoration: none;
}
.top-link:hover { border-color: var(--gold); color: var(--gold); }
.top-link.top-link--wa svg { stroke: #25d366; }
.top-link.top-link--ig svg { stroke: #f06292; }
.brand__name { white-space: nowrap; }
.top-link svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 600px) {
  .menu-btn { width: 44px; padding: 0; justify-content: center; }
  .menu-btn__label { display: none; }
  .top-link { padding: 0 .65rem; font-size: .82rem; }
  .brand__name { font-size: 1.45rem; }
  .brand__place { font-size: .6rem; letter-spacing: .12em; }
  .top__in { gap: .5rem; }
}
@media (max-width: 480px) {
  .top-link { width: 44px; padding: 0; justify-content: center; }
  .top-link__label { display: none; }
}
.menu-btn__icon { position: relative; width: 18px; height: 12px; }
.menu-btn__icon::before,
.menu-btn__icon::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .2s, top .2s;
}
.menu-btn__icon::before { top: 1px; box-shadow: 0 4px 0 currentColor; }
.menu-btn__icon::after { top: 9px; }
.menu-btn[aria-expanded="true"] .menu-btn__icon::before { top: 5px; box-shadow: none; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn__icon::after { top: 5px; transform: rotate(-45deg); }

.menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: rgba(20, 21, 23, .98);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(0, 0, 0, .45);
  max-height: calc(100svh - var(--hh));
  overflow-y: auto;
}
.menu ul { list-style: none; margin: 0 auto; padding: .5rem 0 1rem; display: grid; gap: 2px; }
@media (min-width: 720px) { .menu ul { grid-template-columns: repeat(4, 1fr); gap: 4px 16px; padding: 1rem 0 1.25rem; } }
.menu a {
  display: flex;
  align-items: center;
  min-height: 50px;
  padding: 0 .75rem;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}
.menu a:hover { background: var(--panel); }
.menu a.is-active { color: var(--gold); }

/* ---------- Pulsanti ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  min-height: 48px;
  padding: 0 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font: 700 1rem/1.1 var(--sans);
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-2); }
.btn--line { border-color: rgba(236, 235, 230, .42); background: rgba(20, 21, 23, .3); color: var(--text); }
.btn--line:hover { border-color: var(--text); }
.btn--sm { min-height: 44px; padding: 0 1.1rem; font-size: .95rem; }

/* ---------- Dischi (motivo grafico) ---------- */
.plates { display: flex; height: 6px; }
.plates i { display: block; }
.plates i:nth-child(1) { flex: 25; background: var(--p25); }
.plates i:nth-child(2) { flex: 20; background: var(--p20); }
.plates i:nth-child(3) { flex: 15; background: var(--p15); }
.plates i:nth-child(4) { flex: 10; background: var(--p10); }
.plates i:nth-child(5) { flex: 5; background: var(--p5); }

/* ---------- Apertura ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: calc(92svh - var(--hh));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: radial-gradient(120% 80% at 85% 0%, #2c2f34 0%, var(--bg) 62%);
}
.hero__media { position: absolute; inset: 0; z-index: -2; margin: 0; }
.hero__media picture { display: contents; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero:has(.hero__media img)::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(20, 21, 23, .25) 0%, rgba(20, 21, 23, .5) 40%, rgba(20, 21, 23, .94) 100%);
}
@media (min-width: 720px) {
  .hero:has(.hero__media img)::after {
    background:
      linear-gradient(90deg, rgba(20, 21, 23, .94) 0%, rgba(20, 21, 23, .78) 38%, rgba(20, 21, 23, .2) 75%, rgba(20, 21, 23, .1) 100%),
      linear-gradient(180deg, rgba(20, 21, 23, 0) 55%, rgba(20, 21, 23, .85) 100%);
  }
}
.hero__in { padding: 4rem 0 4.25rem; }
.kicker { margin: 0 0 1rem; font: 700 .78rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.hero__title { font-size: clamp(4.4rem, 21vw, 11.5rem); line-height: .8; letter-spacing: 0; }
.hero__title span { color: var(--gold); }
.hero__claim { margin: 1.2rem 0 1.75rem; font-family: var(--display); font-weight: 800; font-size: clamp(1.55rem, 5.4vw, 2.5rem); line-height: 1; text-transform: uppercase; }
.hero__text { margin: 0 0 1.75rem; max-width: 36rem; color: var(--soft); }
.hero__cta { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero > .plates { position: absolute; left: 0; right: 0; bottom: 0; }

/* ---------- In breve ---------- */
.facts { background: var(--bg-2); border-bottom: 1px solid var(--line); }
.facts__list { list-style: none; margin: 0 auto; padding: 1.6rem 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1rem; }
@media (min-width: 900px) { .facts__list { grid-template-columns: repeat(4, 1fr); padding: 2rem 0; } }
.facts strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.75rem; line-height: 1; text-transform: uppercase; }
.facts span { display: block; margin-top: .35rem; color: var(--muted); font-size: .9rem; line-height: 1.35; }

/* ---------- Sezioni ---------- */
.sec { padding: clamp(3.5rem, 9vw, 6.5rem) 0; }
.sec--alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin: 0 0 .9rem;
  font: 700 .78rem/1.3 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before {
  content: "";
  flex: 0 0 46px;
  height: 6px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--p25) 0 33.3%, var(--p20) 33.3% 60%, var(--p15) 60% 80%, var(--p10) 80% 93.3%, var(--p5) 93.3%);
}
.sec h2 { font-size: clamp(2.5rem, 9vw, 4.6rem); max-width: 15ch; }
.lead { margin: 1.1rem 0 0; max-width: 42rem; font-size: 1.15rem; color: var(--soft); }
.note { margin: 1rem 0 0; color: var(--muted); font-size: .92rem; }

/* ---------- Foto: anteprima sfocata finché arriva quella vera ---------- */
.ph { background-color: var(--panel); background-size: cover; background-position: center; background-repeat: no-repeat; }
.ph picture { display: block; width: 100%; height: 100%; }
.hero .hero__media { background-color: transparent; background-position: 50% 40%; }
.ph img.is-rotta { opacity: 0; }

/* ---------- Galleria della palestra ---------- */
.strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 78%;
  gap: 12px;
  margin: 2.25rem -16px 0;
  padding: 0 16px 6px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  scrollbar-width: none;
}
.strip::-webkit-scrollbar { display: none; }
.strip:focus-visible { outline-offset: -3px; border-radius: var(--r); }
.strip .ph { position: relative; scroll-snap-align: start; border-radius: var(--r); overflow: hidden; aspect-ratio: 3 / 4; }
.strip .ph img { width: 100%; height: 100%; object-fit: cover; }
.strip figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 3.5rem 1rem .95rem;
  background: linear-gradient(180deg, rgba(20, 21, 23, 0) 0%, rgba(20, 21, 23, .55) 45%, rgba(20, 21, 23, .9) 100%);
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .01em;
  color: var(--text);
}
@media (min-width: 720px) {
  .strip { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); margin: 2.5rem 0 0; padding: 0; overflow: visible; }
  .strip figcaption { padding: 3rem .9rem .85rem; font-size: clamp(1.25rem, 1.9vw, 1.65rem); }
}

/* ---------- Schede dei punti forti ---------- */
.cards { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative;
  padding: 1.5rem 1.4rem 1.55rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--gold); }
.card:nth-child(5n+1)::before { background: var(--p25); }
.card:nth-child(5n+2)::before { background: var(--p20); }
.card:nth-child(5n+3)::before { background: var(--p15); }
.card:nth-child(5n+4)::before { background: var(--p10); }
.card:nth-child(5n+5)::before { background: var(--p5); }
.card h3 { font-size: 1.75rem; margin-bottom: .55rem; }
.card p { margin: 0; color: var(--muted); }

/* ---------- Righe foto + testo (agonismo, staff) ---------- */
.rows { display: grid; gap: clamp(2.5rem, 7vw, 4.5rem); margin-top: 2.75rem; }
.row { display: grid; gap: 1.4rem; align-items: center; }
.ph { margin: 0; }
.row .ph { border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; }
.row .ph img { width: 100%; height: 100%; object-fit: cover; }
.row .ph--portrait { aspect-ratio: 1 / 1; max-width: 520px; }
.row .ph--top img { object-position: 50% 12%; }
.row h3 { font-size: clamp(2.1rem, 7vw, 3.1rem); margin-bottom: .75rem; }
.row p { margin: 0 0 .85rem; color: var(--soft); }
.row p:last-child { margin-bottom: 0; }
.row--feature h2 { margin-bottom: 0; }
.row .person__role { margin: -.3rem 0 1.1rem; font: 700 .78rem/1.3 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.row .ticks + .chips { margin-top: 1.25rem; }
@media (min-width: 860px) {
  .row:has(.ph) { grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 5vw, 4.5rem); }
  .row--rev .ph { order: 2; }
  .row--rev .ph--portrait { justify-self: end; }
}
/* senza foto (bozza): le righe diventano riquadri di testo */
.row:not(:has(.ph)) { padding: 1.5rem 1.4rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.sec--alt .row:not(:has(.ph)) { background: var(--panel-2); }
.rows:not(:has(.ph)) { gap: 12px; }
@media (min-width: 860px) { .rows:not(:has(.ph)) { grid-template-columns: 1fr 1fr; } }
.row--feature:not(:has(.ph)) { padding: 0; background: none; border: 0; }

.chips { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips li { padding: .4rem .85rem; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .9rem; color: var(--text); background: var(--panel); }

/* ---------- Riquadri ---------- */
.cols { display: grid; gap: 12px; margin-top: 2.5rem; }
@media (min-width: 860px) { .cols { grid-template-columns: 1fr 1fr; } }
.box { padding: 1.5rem 1.4rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
.sec--alt .box { background: var(--panel-2); }
.box h3 { font-size: 1.9rem; margin-bottom: 1rem; }
.box p { margin: 0 0 1rem; }
.box p:last-child { margin-bottom: 0; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.ticks li { position: relative; padding-left: 1.7rem; color: var(--soft); }
.ticks li strong { color: var(--text); }
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: .85rem;
  height: .85rem;
  border-radius: 50%;
  border: 3px solid var(--gold);
}

/* segnaposto della bozza */
.todo {
  display: inline-block;
  padding: .45rem .8rem;
  border: 1px dashed #6f6a58;
  border-radius: 10px;
  color: #d8cfa9;
  font-size: .92rem;
}
.todo--block { display: block; margin-top: 1.25rem; max-width: 42rem; }

/* ---------- Listino ---------- */
.price-grid { display: grid; gap: 12px; margin-top: 2rem; align-items: start; }
@media (min-width: 900px) { .price-grid { grid-template-columns: 1.3fr 1fr; } }
.price-side { display: grid; gap: 12px; }
.prices { width: 100%; border-collapse: collapse; }
.prices caption {
  caption-side: top;
  text-align: left;
  padding-bottom: .6rem;
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 1;
  text-transform: uppercase;
}
.prices th, .prices td { padding: .75rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.prices tr:last-child th, .prices tr:last-child td { border-bottom: 0; }
.prices thead th { padding-top: .2rem; font: 700 .7rem/1.25 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prices tbody th { font-weight: 600; padding-right: .75rem; }
.prices small { display: block; color: var(--muted); font-weight: 400; font-size: .85rem; line-height: 1.3; }
.prices .num { text-align: right; white-space: nowrap; padding-left: .75rem; }
.price { font-family: var(--display); font-weight: 800; font-size: 1.6rem; line-height: 1; font-variant-numeric: tabular-nums; }
.prices td:nth-child(2) .price { color: var(--gold); }

/* ---------- Orari e dove siamo ---------- */
.where { display: grid; gap: 12px; margin-top: 2.5rem; }
@media (min-width: 900px) { .where { grid-template-columns: 1fr 1.35fr; } }
.where__info { display: grid; gap: 12px; align-content: start; }
.where address { font-size: 1.15rem; line-height: 1.45; margin-bottom: .6rem; }
.mail { font-size: 1.15rem; font-weight: 600; word-break: break-all; }
.box .btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.foot .foot__mail { margin-top: .6rem; }
.foot__mail a { color: var(--gold); text-decoration: none; }
.legal ul { padding-left: 1.2rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hours .price { font-size: 1.45rem; color: var(--text) !important; }
.hours tr.is-today th, .hours tr.is-today .price { color: var(--gold) !important; }
.map {
  position: relative;
  min-height: 340px;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
}
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; transition: opacity .3s; }
.map__ph {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--muted);
  background-color: var(--panel);
  background-image:
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(255, 255, 255, .035) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(255, 255, 255, .035) 39px 40px);
}
.map__ph p { margin: 0; max-width: 22rem; }

/* ---------- Piè di pagina ---------- */
.foot { position: relative; background: #0f1012; padding: 3rem 0 calc(2rem + env(safe-area-inset-bottom)); }
.foot > .plates--top { position: absolute; left: 0; right: 0; top: 0; }
.foot__grid { display: grid; gap: 1.75rem; }
@media (min-width: 860px) { .foot__grid { grid-template-columns: 2fr 1fr; } }
.foot p { margin: 0; color: var(--muted); font-size: .95rem; }
.foot .foot__brand { font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1; text-transform: uppercase; color: var(--text); margin-bottom: .6rem; }
.foot__links { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.foot__links a { display: inline-flex; min-height: 40px; align-items: center; color: var(--text); text-decoration: none; }
.foot__links a:hover { color: var(--gold); }
.foot .foot__legal { margin: 2rem auto 0; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: .82rem; color: #8d8b83; }

/* ---------- Pagine interne (privacy) ---------- */
.legal { padding: clamp(2.5rem, 6vw, 4.5rem) 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2.4rem, 8vw, 3.6rem); }
.legal h2 { font-size: 1.6rem; margin: 2rem 0 .5rem; }
.legal p, .legal li { color: var(--soft); }

/* ---------- Foto ingrandite ---------- */
.ph[data-zoom] { position: relative; }
.ph__zoom {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: none;
  cursor: zoom-in;
  -webkit-tap-highlight-color: transparent;
}
.ph__zoom i {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(20, 21, 23, .62);
  color: #fff;
}
.ph__zoom svg, .zoom__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ph__zoom:focus-visible { outline: 3px solid var(--gold); outline-offset: -3px; }
html.zoom-open { overflow: hidden; }
.zoom {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0b0c0d;
  color: var(--text);
  overflow: hidden;
}
.zoom::backdrop { background: #0b0c0d; }
.zoom[open] { display: flex; flex-direction: column; animation: zoom-in .2s ease-out; }
@keyframes zoom-in { from { opacity: 0; } }
.zoom__stage { flex: 1; min-height: 0; display: grid; place-items: center; padding: 60px 12px 8px; }
.zoom__frame {
  position: relative;
  aspect-ratio: var(--zr, .5625);
  width: min(100%, calc((100vh - 150px) * var(--zr, .5625)));
  width: min(100%, calc((100svh - 150px - env(safe-area-inset-bottom)) * var(--zr, .5625)));
}
.zoom__frame img { position: absolute; left: 0; width: 100%; max-width: none; }
.zoom__low { object-fit: cover; }
.zoom__low[hidden] { display: none; }
.zoom__pic img { top: 0; height: 100%; object-fit: contain; }
.zoom__pic img.is-rotta { opacity: 0; }
.zoom__frame.is-loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 3px solid rgba(255, 255, 255, .25);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: zoom-spin .8s linear infinite;
}
@keyframes zoom-spin { to { transform: rotate(360deg); } }
.zoom__bar { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 640px; margin: 0 auto; padding: 6px 12px calc(14px + env(safe-area-inset-bottom)); }
.zoom__cap { flex: 1; margin: 0; text-align: center; }
.zoom__cap strong { display: block; font-family: var(--display); font-weight: 800; font-size: 1.55rem; line-height: 1; text-transform: uppercase; }
.zoom__cap span { display: block; margin-top: .3rem; font-size: .85rem; color: var(--muted); }
.zoom__cap span:empty { display: none; }
.zoom__btn {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}
.zoom__btn:hover { border-color: var(--gold); color: var(--gold); }
.zoom__btn[hidden] { display: inline-grid; visibility: hidden; }
.zoom__close { position: absolute; top: calc(8px + env(safe-area-inset-top)); right: 12px; }
.zoom__pre { display: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .zoom[open] { animation: none; }
  .zoom__frame.is-loading::after { animation-duration: 2.4s; }
}