/* v2 components — base, chrome, world background, buttons, cards, ticket, forms, notice, action bar, footer. Colours: tokens only. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--v2-top-h) + 1rem); }
body { margin: 0; background: var(--v2-bg); color: var(--v2-ink); font: 400 var(--v2-fs-3)/1.7 var(--v2-sans); -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 0.1875rem solid var(--v2-accent-ink); outline-offset: 0.125rem; border-radius: 0.375rem; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
.v2-wrap { width: min(75rem, 100% - 3rem); margin-inline: auto; }
@media (max-width: 760px) { .v2-wrap { width: calc(100% - 2rem); } }
.v2-skip { position: absolute; left: 0.75rem; top: -3.75rem; z-index: 100; background: var(--v2-inv-bg); color: var(--v2-inv-ink); padding: 0.5rem 0.875rem; border-radius: 0.5rem; }
.v2-skip:focus { top: 0.75rem; }
.v2-muted { color: var(--v2-ink-2); }
.v2-s { font-size: var(--v2-fs-2); line-height: 1.6; }
.v2-num { font-family: var(--v2-num); font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.v2-center { text-align: center; }
.v2-ok { color: var(--v2-ok-ink); } .v2-warn { color: var(--v2-warn-ink); }
.v2-link { color: var(--v2-accent-ink); font-weight: 700; text-underline-offset: 0.1875rem; }

/* ---------- headings (6-step scale) ---------- */
.v2-h { display: flex; flex-direction: column; gap: 0.125rem; font-family: var(--v2-serif); font-weight: 700; font-size: var(--v2-fs-5); line-height: 1.25; letter-spacing: .02em; }
.v2-h small { font: 600 var(--v2-fs-1)/1.4 var(--v2-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--v2-ink-2); }
.v2-h.v2-h1 { font-size: clamp(2rem, 4vw, 2.75rem); }
.v2-h.v2-h-sm { font-size: var(--v2-fs-4); }
.v2-h2 { font-family: var(--v2-serif); font-size: var(--v2-fs-5); line-height: 1.25; }
.v2-sec h2.v2-h > span::after { content: ""; display: block; width: 2.25rem; height: 0.1875rem; margin: 0.5rem 0 0.125rem; border-radius: 0.125rem; background: var(--v2-gold-line); }
.v2-eyebrow { font-size: var(--v2-fs-1); font-weight: 700; letter-spacing: .14em; color: var(--v2-primary-deep-ink); text-transform: uppercase; }
.v2-sec-lead { color: var(--v2-ink-2); max-width: 46em; margin-top: 0.5rem; }

/* ---------- world (2.5D background) ---------- */
.v2-world { position: fixed; inset: 0; z-index: -1; overflow: hidden; overflow: clip; contain: layout paint; pointer-events: none; background: var(--v2-bg); --veil: .5; }
.v2-wl { position: absolute; inset: -6% -4% -22% -4%; will-change: transform; }
.v2-wl img { width: 100%; height: 100%; object-fit: cover; object-position: center bottom; }
.v2-wl-far img { object-position: center 70%; }
/* bg25d_v2 sets: one shared frame for all three layers (they are cut from one picture), horizontal overscan only */
.v2-world[data-motion="h"] .v2-wl { inset: 0 calc(-1 * var(--v2-overscan, 2vw)); }
.v2-world[data-motion="h"] .v2-wl img { object-position: center 62%; }
/* bg25d_v2: keep the picture vivid (light veil) and put a soft fog scrim only behind text instead */
.v2-world[data-motion="h"][data-mode="home"] .v2-veil { background:
  linear-gradient(90deg, rgba(var(--v2-veil-rgb), .5) 0%, rgba(var(--v2-veil-rgb), .28) 46%, rgba(var(--v2-veil-rgb), .1) 78%),
  linear-gradient(180deg, rgba(var(--v2-veil-rgb), .12) 0%, rgba(var(--v2-veil-rgb), 0) 38%, rgba(var(--v2-veil-rgb), .5) 100%); }
@media (max-width: 760px) { .v2-world[data-motion="h"][data-mode="home"] .v2-veil { background: linear-gradient(180deg, rgba(var(--v2-veil-rgb), .3) 0%, rgba(var(--v2-veil-rgb), .2) 50%, rgba(var(--v2-veil-rgb), .45) 100%); } }
/* below the hero the picture fogs over (driven by --v2-fade from world.js) so section text sits on a calm wash */
.v2-world[data-motion="h"] .v2-veil::after { content: ""; position: absolute; inset: 0; background: rgba(var(--v2-veil-rgb), .8); opacity: var(--v2-fade, 0); }
.v2-world[data-motion="h"][data-mode="inner"] .v2-veil::after { opacity: 1; background: rgba(var(--v2-veil-rgb), .5); }
html[data-v2-motion="h"] .v2-scrim { position: relative; isolation: isolate; }
html[data-v2-motion="h"] .v2-h > small, html[data-v2-motion="h"] .v2-sec-lead { color: var(--v2-ink-2-strong); }
/* night + v3 cut (brighter lit houses in fg-left behind section heads at 1920): EN subtitles use the full ink, 4.35 → ~4.9:1 */
html[data-v2-night][data-v2-motion="h"] .v2-h > small { color: var(--v2-ink); }
html[data-v2-motion="h"] .v2-scrim::before { content: ""; position: absolute; inset: -3.75rem -6.875rem -3.75rem -5.625rem; z-index: -1; background: rgba(var(--v2-veil-rgb), var(--v2-scrim, .84)); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5.625rem, #000 calc(100% - 6.875rem), transparent 100%), linear-gradient(180deg, transparent 0, #000 3.75rem, #000 calc(100% - 3.75rem), transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 5.625rem, #000 calc(100% - 6.875rem), transparent 100%), linear-gradient(180deg, transparent 0, #000 3.75rem, #000 calc(100% - 3.75rem), transparent 100%); -webkit-mask-composite: source-in; mask-composite: intersect; pointer-events: none; }
@media (max-width: 760px) { html[data-v2-motion="h"] .v2-scrim::before { inset: -2.5rem -1rem; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 2.5rem, #000 calc(100% - 2.5rem), transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 2.5rem, #000 calc(100% - 2.5rem), transparent 100%); -webkit-mask-composite: source-over; mask-composite: add; } }
.v2-veil { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(var(--v2-veil-rgb), calc(var(--veil) + .12)) 0%, rgba(var(--v2-veil-rgb), var(--veil)) 45%, rgba(var(--v2-veil-rgb), calc(var(--veil) + .2)) 100%);
  transition: background .6s var(--v2-ease); }
.v2-world[data-mode="home"] .v2-veil { background:
  linear-gradient(90deg, rgba(var(--v2-veil-rgb), .82) 0%, rgba(var(--v2-veil-rgb), .55) 42%, rgba(var(--v2-veil-rgb), var(--veil)) 70%),
  linear-gradient(180deg, rgba(var(--v2-veil-rgb), .2) 0%, rgba(var(--v2-veil-rgb), 0) 40%, rgba(var(--v2-veil-rgb), .55) 100%); }
@media (max-width: 760px) { .v2-world[data-mode="home"] .v2-veil { background: linear-gradient(180deg, rgba(var(--v2-veil-rgb), .78) 0%, rgba(var(--v2-veil-rgb), .62) 55%, rgba(var(--v2-veil-rgb), .7) 100%); } }
/* B night: the fog is kept LIGHT so the blue hour + ferris wheel show through; a small dark scrim sits only behind the hero text */
html[data-v2-night] .v2-world[data-mode="home"] .v2-veil { background:
  linear-gradient(90deg, rgba(var(--v2-veil-rgb), .3) 0%, rgba(var(--v2-veil-rgb), .14) 38%, rgba(var(--v2-veil-rgb), 0) 62%),
  linear-gradient(180deg, rgba(var(--v2-veil-rgb), .16) 0%, rgba(var(--v2-veil-rgb), 0) 28%, rgba(var(--v2-veil-rgb), 0) 62%, rgba(var(--v2-veil-rgb), .28) 100%); }
@media (max-width: 760px) { html[data-v2-night] .v2-world[data-mode="home"] .v2-veil { background: linear-gradient(180deg, rgba(var(--v2-veil-rgb), .14) 0%, rgba(var(--v2-veil-rgb), .06) 45%, rgba(var(--v2-veil-rgb), .26) 100%); } }
html[data-v2-night] .v2-world[data-motion="h"] .v2-veil::after { background: rgba(var(--v2-veil-rgb), .5); }
html[data-v2-night] .v2-world[data-motion="h"][data-mode="inner"] .v2-veil::after { background: rgba(var(--v2-veil-rgb), .4); }
html[data-v2-night] .v2-scrim::before { inset: -2.5rem -6.25rem -2.5rem -4.5rem; background: rgba(var(--v2-veil-rgb), var(--v2-scrim-n, .56));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 4.5rem, #000 calc(100% - 8.125rem), transparent 100%), linear-gradient(180deg, transparent 0, #000 2.5rem, #000 calc(100% - 2.5rem), transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 4.5rem, #000 calc(100% - 8.125rem), transparent 100%), linear-gradient(180deg, transparent 0, #000 2.5rem, #000 calc(100% - 2.5rem), transparent 100%); }
@media (max-width: 760px) { html[data-v2-night] .v2-scrim::before { inset: -1.75rem -1rem; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 1.75rem, #000 calc(100% - 1.75rem), transparent 100%); mask-image: linear-gradient(180deg, transparent 0, #000 1.75rem, #000 calc(100% - 1.75rem), transparent 100%); } }
html[data-v2-night] .v2-scrim { text-shadow: 0 0.0625rem 0.125rem rgba(0, 0, 0, .35); }
html[data-v2-night] .v2-scrim .v2-btn, html[data-v2-night] .v2-scrim .v2-lockup { text-shadow: none; }
html[data-v2-night] .v2-cal-d.lv-full.is-sel { background: var(--v2-ink-2); color: var(--v2-plate-ink-strong); }
html[data-v2-night] .v2-hero-f .v2-fig { filter: drop-shadow(0 0.875rem 1rem rgba(0, 0, 0, .35)); }
/* festive (年味): every piece has a mount or a job. Lanterns hang from the header's gold rail in the page margin (wide screens only, never over content); cloud = hero stage; red packets = the hidden gift. Shown at ≤ native resolution. */
.v2-top-lans { position: absolute; right: max(0.5rem, calc((100% - 75rem) / 2 - 6.25rem)); top: 100%; display: flex; gap: 0.875rem; align-items: flex-start; pointer-events: none; }
.v2-top-lans::before { content: ""; position: absolute; left: -0.625rem; right: -0.625rem; top: -0.125rem; height: 0.1875rem; border-radius: 0.125rem; background: linear-gradient(90deg, var(--v2-deco-gold-2), var(--v2-deco-gold), var(--v2-deco-gold-2)); }
.v2-lan { display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; }
.v2-lan-hook { width: 0.5rem; height: 0.375rem; border: 0.125rem solid var(--v2-deco-gold-2); border-top: 0; border-radius: 0 0 0.375rem 0.375rem; margin-top: -0.0625rem; }
.v2-lan-cord { width: 0.0625rem; height: 0.5rem; background: var(--v2-deco-gold); }
.v2-lan img { display: block; width: 100%; height: auto; }
.v2-lan-1 { width: 2.5rem; } .v2-lan-2 { width: 1.875rem; } .v2-lan-2 .v2-lan-cord { height: 1.375rem; }
.v2-live .v2-lan { animation: v2-sway 6s ease-in-out infinite alternate; }
.v2-live .v2-lan-2 { animation-duration: 7.5s; animation-delay: -2s; }
/* < 1400: smaller pair at the right end of the rail; phones: smallest pair. Scaled down only (source 201 px wide). */
@media (max-width: 1399px) {
  .v2-top-lans { right: 0.625rem; gap: 0.5rem; }
  .v2-lan-1 { width: 1.5rem; } .v2-lan-2 { width: 1.125rem; } .v2-lan-2 .v2-lan-cord { height: 0.875rem; }
  .v2-lan-cord { height: 0.3125rem; }
}
@media (max-width: 760px) {
  .v2-top-lans { right: 0.375rem; gap: 0.375rem; }
  .v2-top-lans::before { left: -0.375rem; right: -0.25rem; }
  .v2-lan-hook { width: 0.375rem; height: 0.25rem; border-width: 0.09375rem; }
  .v2-lan-1 { width: 1rem; } .v2-lan-2 { width: 0.75rem; } .v2-lan-2 .v2-lan-cord { height: 0.5625rem; }
  .v2-lan-cord { height: 0.1875rem; }
}
@keyframes v2-sway { from { transform: rotate(-2.2deg); } to { transform: rotate(2.2deg); } }

/* ---------- top bar ---------- */
.v2-top { position: sticky; top: 0; z-index: 40; background: rgba(var(--v2-glass-rgb), .86); backdrop-filter: saturate(1.2) blur(0.75rem); -webkit-backdrop-filter: saturate(1.2) blur(0.75rem); border-bottom: 0.125rem solid var(--v2-gold-line); }
.v2-top-in { height: var(--v2-top-h); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1.5rem; }
.v2-brand { display: flex; flex-direction: column; text-decoration: none; line-height: 1.2; }
.v2-brand b { font-family: var(--v2-serif); font-size: var(--v2-fs-4); letter-spacing: .04em; }
.v2-brand small { font-size: var(--v2-fs-1); color: var(--v2-ink-2); letter-spacing: .04em; }
.v2-nav { display: flex; justify-content: center; gap: 0.25rem; }
.v2-nav a { text-decoration: none; padding: 0.5rem 1rem; border-radius: 62.4375rem; font-weight: 700; font-size: var(--v2-fs-2); color: var(--v2-ink-2); transition: background .2s, color .2s; white-space: nowrap; }
.v2-nav a:hover { background: var(--v2-accent-soft); color: var(--v2-ink); }
.v2-nav a.is-cur { background: var(--v2-accent); color: var(--v2-on-dark); }
.v2-lang { display: inline-flex; border: 0.0625rem solid var(--v2-line); border-radius: 62.4375rem; padding: 0.125rem; background: var(--v2-surface); }
.v2-lang button { border: 0; background: none; padding: 0.25rem 0.75rem; border-radius: 62.4375rem; font-size: var(--v2-fs-1); font-weight: 700; cursor: pointer; color: var(--v2-ink-2); }
.v2-lang button.is-on { background: var(--v2-inv-bg); color: var(--v2-inv-ink); }
@media (max-width: 760px) {
  .v2-top-in { grid-template-columns: 1fr auto; grid-template-rows: 3.5rem 2.75rem; gap: 0 0.75rem; height: var(--v2-top-h); }
  .v2-brand b { font-size: 1.0625rem; }
  .v2-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: 0.125rem; }
  .v2-nav a { padding: 0.375rem 0.625rem; font-size: 0.8125rem; flex: 1; text-align: center; }
}

/* ---------- buttons ---------- */
.v2-btn { --b: var(--v2-ink); display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; min-height: 2.75rem; padding: 0 1.25rem; border-radius: 62.4375rem; border: 0.09375rem solid transparent; font-weight: 700; font-size: var(--v2-fs-3); text-decoration: none; cursor: pointer; transition: transform .15s var(--v2-ease), background .2s, box-shadow .2s; white-space: nowrap; }
.v2-btn:active { transform: translateY(0.0625rem) scale(.99); }
.v2-btn-primary { background: var(--v2-primary); color: var(--v2-white); box-shadow: 0 0.5rem 1.25rem -0.625rem rgba(158, 55, 41, .7), inset 0 -0.125rem 0 rgba(0, 0, 0, .15); }
.v2-btn-primary:hover { background: var(--v2-primary-deep); }
.v2-btn-primary[disabled], .v2-btn-primary.is-disabled { background: var(--v2-surface-2); color: var(--v2-ink-2); box-shadow: none; cursor: not-allowed; }
.v2-btn-ghost { background: var(--v2-surface); border-color: var(--v2-accent-ink); color: var(--v2-accent-ink); }
.v2-btn-ghost:hover { background: var(--v2-accent-soft); }
.v2-btn-text { background: none; color: var(--v2-ink-2); text-decoration: underline; text-underline-offset: 0.1875rem; font-size: var(--v2-fs-2); min-height: 2.5rem; }
.v2-btn-sm { min-height: 2.125rem; padding: 0 0.875rem; font-size: var(--v2-fs-2); }
.v2-btn-lg { min-height: 3.25rem; padding: 0 1.75rem; font-size: 1.0625rem; }
.v2-btn-xl { min-height: 3.75rem; padding: 0 2.25rem; font-size: var(--v2-fs-4); width: 100%; max-width: 22.5rem; }

/* ---------- cards + tags ---------- */
.v2-card { background: var(--v2-card); border: 0.0625rem solid var(--v2-card-edge); border-radius: var(--v2-radius); box-shadow: var(--v2-shadow); padding: 1.5rem; backdrop-filter: blur(0.375rem); -webkit-backdrop-filter: blur(0.375rem); }
.v2-tag { display: inline-flex; align-items: center; gap: 0.25rem; font-size: var(--v2-fs-1); font-weight: 700; line-height: 1; padding: 0.3125rem 0.5rem; border-radius: 0.375rem; background: var(--v2-accent-soft); color: var(--v2-accent-ink); white-space: nowrap; }
.v2-tag-sample { background: var(--v2-card); border: 0.0625rem dashed var(--v2-gold); color: var(--v2-gold); }

/* ---------- ticket (the one motif): main + perforated stub ---------- */
.v2-ticket { --notch: 0.875rem; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; background: var(--v2-surface); border-radius: var(--v2-radius); box-shadow: var(--v2-shadow);
  -webkit-mask: radial-gradient(circle var(--notch) at var(--tear, calc(100% - 16.25rem)) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at var(--tear, calc(100% - 16.25rem)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat;
          mask: radial-gradient(circle var(--notch) at var(--tear, calc(100% - 16.25rem)) 0, #0000 98%, #000) top / 100% 51% no-repeat, radial-gradient(circle var(--notch) at var(--tear, calc(100% - 16.25rem)) 100%, #0000 98%, #000) bottom / 100% 51% no-repeat; }
.v2-ticket::before { content: ""; position: absolute; inset: 0.375rem; border: 0.0625rem solid var(--v2-gold-line); border-radius: calc(var(--v2-radius) - 0.375rem); opacity: .55; pointer-events: none; }
.v2-tk-main { padding: 1.75rem 2rem; min-width: 0; }
.v2-tk-stub { width: 16.25rem; padding: 1.75rem 1.5rem; border-left: 0.125rem dashed var(--v2-line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.625rem; text-align: center; }
.v2-tk-band { display: flex; justify-content: space-between; gap: 0.75rem; font-size: var(--v2-fs-1); font-weight: 700; letter-spacing: .12em; color: var(--v2-primary-deep-ink); border-bottom: 0.0625rem solid var(--v2-line); padding-bottom: 0.625rem; margin-bottom: 1rem; }
.v2-tk-no { font: 700 clamp(1.625rem, 3.4vw, 2.25rem)/1.15 var(--v2-num); letter-spacing: .04em; color: var(--v2-primary-ink); margin: 0.125rem 0 1.125rem; word-break: break-all; }
@media (max-width: 760px) {
  .v2-ticket { grid-template-columns: 1fr; --tear: 100%; -webkit-mask: none; mask: none; }
  .v2-tk-main { padding: 1.375rem 1.25rem; } .v2-tk-stub { width: auto; border-left: 0; border-top: 0.125rem dashed var(--v2-line); padding: 1.25rem; }
}
.v2-qr { position: relative; width: 11.875rem; background: var(--v2-plate); padding: 0.5rem; border-radius: 0.625rem; border: 0.0625rem solid var(--v2-line); }
.v2-qr canvas { display: block; width: 100%; height: auto; }
.v2-qr .v2-tag { position: absolute; top: -0.625rem; right: -0.625rem; background: var(--v2-primary); color: var(--v2-white); }

/* ---------- forms ---------- */
.v2-field { display: flex; flex-direction: column; gap: 0.375rem; font-size: var(--v2-fs-2); font-weight: 700; min-width: 0; }
.v2-field > span, .v2-field > label { color: var(--v2-ink); }
.v2-field input, .v2-field select { width: 100%; min-height: 3rem; padding: 0.625rem 0.875rem; border-radius: var(--v2-radius-s); border: 0.09375rem solid var(--v2-line); background: var(--v2-surface); font-weight: 400; font-size: var(--v2-fs-3); }
.v2-field input:focus, .v2-field select:focus { border-color: var(--v2-accent-ink); outline: none; box-shadow: 0 0 0 0.1875rem var(--v2-accent-soft); }
.v2-field [aria-invalid="true"] { border-color: var(--v2-warn-ink); background: var(--v2-err-bg); }
.v2-inline { display: flex; gap: 0.625rem; } .v2-inline input { flex: 1; min-width: 0; }
.v2-err { color: var(--v2-warn-ink); font-size: var(--v2-fs-2); font-weight: 700; }
.v2-err::before { content: "! "; }
.v2-check { display: flex; gap: 0.75rem; align-items: flex-start; cursor: pointer; font-size: var(--v2-fs-2); line-height: 1.6; }
.v2-check input { width: 1.375rem; height: 1.375rem; margin: 0.0625rem 0 0; accent-color: var(--v2-primary); flex: none; }
.v2-fold { border: 0.0625rem solid var(--v2-line); border-radius: var(--v2-radius-s); padding: 0 1rem; background: rgba(var(--v2-glass-rgb), .6); }
.v2-fold > summary { cursor: pointer; padding: 0.875rem 0; font-weight: 700; font-size: var(--v2-fs-2); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.v2-fold > summary::-webkit-details-marker { display: none; }
.v2-fold > summary::after { content: "+"; font-size: 1.25rem; line-height: 1; color: var(--v2-ink-2); }
.v2-fold[open] > summary::after { content: "–"; }
.v2-fold[open] { padding-bottom: 1rem; display: grid; gap: 0.75rem; }

/* ---------- notice (top, under the header; never covers the bottom action bar) ---------- */
.v2-notice { position: fixed; z-index: 45; top: calc(var(--v2-top-h) + 0.625rem); left: 50%; transform: translate(-50%, -0.75rem); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s var(--v2-ease);
  display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0.625rem 1.25rem; border-radius: 0.75rem; background: var(--v2-inv-bg); color: var(--v2-inv-ink); box-shadow: 0 0.75rem 1.875rem -0.75rem rgba(0, 0, 0, .5); max-width: calc(100% - 2rem); font-size: var(--v2-fs-2); }
.v2-notice small { font-size: var(--v2-fs-1); opacity: .8; }
.v2-notice.is-on { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) { .v2-notice { top: calc(var(--v2-top-h) + 0.375rem); width: calc(100% - 5.75rem); padding: 0.5rem 0.875rem; font-size: 0.8125rem; } .v2-notice small { display: none; } }
.v2-notice.is-bad { background: var(--v2-warn); }
.v2-notice.is-ok b::before { content: "✓ "; }

/* ---------- bottom action bar (one primary button) ---------- */
.v2-actbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: rgba(var(--v2-glass-rgb), .94); backdrop-filter: blur(0.75rem); -webkit-backdrop-filter: blur(0.75rem); border-top: 0.0625rem solid var(--v2-line-soft); padding-bottom: env(safe-area-inset-bottom); }
.v2-actbar-in { min-height: var(--v2-bar-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.v2-actbar-sum { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.v2-actbar-sum small { font-size: var(--v2-fs-1); color: var(--v2-ink-2); font-weight: 700; }
.v2-actbar-sum b { font-size: var(--v2-fs-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 760px) { .v2-actbar .v2-btn-lg { min-height: 3rem; padding: 0 1.25rem; font-size: var(--v2-fs-3); } }
.has-bar { padding-bottom: calc(var(--v2-bar-h) + 2.5rem); }

/* ---------- footer ---------- */
.v2-foot { background: rgba(20, 24, 28, .94); color: var(--v2-on-dark); margin-top: 2.5rem; border-top: 0.1875rem solid var(--v2-gold-line); }
.v2-foot .v2-muted { color: var(--v2-on-dark-2); }
.v2-foot-in { padding: 2.25rem 0 2.75rem; display: grid; gap: 0.75rem; }
.v2-foot-logos { display: flex; gap: 0.75rem; align-items: center; }
.v2-foot-logos img { height: 2.5rem; width: auto; background: var(--v2-plate); padding: 0.375rem 0.625rem; border-radius: 0.5rem; }
.v2-foot-credit { font-weight: 700; }
.v2-foot-ctl { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.v2-foot .v2-btn-text, .v2-foot .v2-link { color: var(--v2-on-dark-3); }
.v2-seg { display: inline-flex; align-items: center; gap: 0.25rem; font-size: var(--v2-fs-2); }
.v2-seg span { margin-right: 0.375rem; color: var(--v2-on-dark-2); }
.v2-seg button { border: 0.0625rem solid var(--v2-dark-line); background: transparent; color: var(--v2-on-dark); border-radius: 62.4375rem; padding: 0.25rem 0.75rem; font-size: var(--v2-fs-1); font-weight: 700; cursor: pointer; }
.v2-seg button[aria-pressed="true"] { background: var(--v2-on-dark); color: var(--v2-plate-ink-strong); }
.v2-foot-more { border-color: var(--v2-dark-line-2); background: transparent; }
.v2-foot-more > summary { color: var(--v2-on-dark-3); }
.v2-foot-more ul { display: grid; gap: 0.375rem; }
body[data-page="book"] .v2-foot { padding-bottom: var(--v2-bar-h); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
