/* v2 ak — fluid scale + Arknights-style industrial layer (grid, chamfers, corner brackets, mono labels, HUD, hazard stripes) + motion.
   Loaded after pages.css. Colours: tokens only (red 年赤 / gold / ultramarine 群青 + 歲家 deco). Motion: transform / opacity only, all gated by html.v2-anim
   (set in <head> only when prefers-reduced-motion is off), so reduced-motion users get the final, static state. */

/* ================= fluid scale =================
   Every length in the v2 CSS is in rem; the root grows with the viewport from 1440 px up (16 px → 28 px cap), so 1920 / 2560 screens get a
   proportionally bigger page instead of a 1200 px island. ≤1440 keeps 16 px; phones keep 16 px. */
html { font-size: clamp(16px, calc(100vw / 90), 28px); }
@media (max-width: 760px) { html { font-size: 16px; } }
:root {
  --v2-mono: "Cascadia Mono", "Consolas", "SFMono-Regular", "Menlo", "DejaVu Sans Mono", ui-monospace, monospace;
  --v2-cut: .875rem;                       /* chamfer size */
  --v2-fs-5: clamp(1.75rem, 2.3vw, 3rem);
  --v2-fs-6: clamp(3.25rem, 5.4vw, 8.5rem);
}
.v2-wrap { width: min(82rem, 100% - 3rem); }
@media (max-width: 760px) { .v2-wrap { width: calc(100% - 2rem); } }

/* ================= type: mono labels ================= */
.v2-eyebrow { font-family: var(--v2-mono); letter-spacing: .12em; display: inline-flex; align-items: center; gap: .5em; }
.v2-eyebrow::before { content: ""; width: .5em; height: .5em; background: currentColor; flex: none; }
.v2-h small, .v2-slogan small { font-family: var(--v2-mono); letter-spacing: .18em; }
.v2-tag { border-radius: 0; font-family: var(--v2-mono); letter-spacing: .06em; }
.v2-num, .v2-tk-no, .v2-stn-no, .v2-route-stn b, .v2-stamp-no, .v2-rule-n, .v2-how-n { font-family: var(--v2-mono); }

/* ================= header ================= */
.v2-top { border-bottom-width: 1px; }
.v2-top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--v2-gold-line) 0 18%, transparent 18% 19%, var(--v2-gold-line) 19% 19.6%, transparent 19.6%); opacity: .9; }
.v2-brand { position: relative; padding-left: .875rem; }
.v2-brand::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 3px; background: var(--v2-primary); }
.v2-nav { counter-reset: nav; }
.v2-nav a { counter-increment: nav; position: relative; border-radius: 0; display: inline-flex; align-items: baseline; gap: .45em;
  clip-path: polygon(.5rem 0, 100% 0, 100% calc(100% - .5rem), calc(100% - .5rem) 100%, 0 100%, 0 .5rem); }
.v2-nav a::before { content: counter(nav, decimal-leading-zero); font: 700 .68em/1 var(--v2-mono); letter-spacing: .06em; opacity: .85; }
.v2-nav a::after { content: ""; position: absolute; left: 1rem; right: 1rem; bottom: .2rem; height: 2px; background: var(--v2-gold-line); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--v2-ease); }
.v2-nav a:hover::after { transform: scaleX(1); }
.v2-nav a.is-cur::after { display: none; }
.v2-lang, .v2-lang button { border-radius: 0; }
.v2-lang { clip-path: polygon(.4rem 0, 100% 0, 100% calc(100% - .4rem), calc(100% - .4rem) 100%, 0 100%, 0 .4rem); }
@media (max-width: 760px) { .v2-nav a { gap: .3em; padding: 6px 4px; } .v2-nav a::before { font-size: .62em; } }

/* ================= buttons: chamfer + sweep ================= */
.v2-btn-primary, .v2-btn-ghost { border-radius: 0; position: relative; overflow: hidden; isolation: isolate;
  clip-path: polygon(var(--v2-btn-cut, .625rem) 0, 100% 0, 100% calc(100% - var(--v2-btn-cut, .625rem)), calc(100% - var(--v2-btn-cut, .625rem)) 100%, 0 100%, 0 var(--v2-btn-cut, .625rem)); }
.v2-btn-primary::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 48%, transparent 66%); transform: translateX(-110%); }
.v2-btn-primary:hover::before, .v2-btn-primary:focus-visible::before { transform: translateX(110%); transition: transform .6s var(--v2-ease); }
.v2-btn-primary::after { content: ""; position: absolute; right: .35rem; bottom: .35rem; width: .5rem; height: .5rem; border-right: 2px solid rgba(255, 255, 255, .7); border-bottom: 2px solid rgba(255, 255, 255, .7); pointer-events: none; transition: transform .25s var(--v2-ease); }
.v2-btn-primary:hover::after { transform: translate(2px, 2px); }
.v2-btn-ghost { box-shadow: inset 0 0 0 1.5px var(--v2-accent-ink); border-color: transparent; }
.v2-btn-lg { --v2-btn-cut: .75rem; }
.v2-btn-xl { --v2-btn-cut: .875rem; }
.v2-btn-sm { --v2-btn-cut: .4rem; }
.v2-btn-primary.is-disabled, .v2-btn-primary[disabled] { box-shadow: none; }

/* ================= cards: chamfer, corner brackets, sweep ================= */
.v2-card, .v2-cal { border-radius: 0; clip-path: polygon(0 0, calc(100% - var(--v2-cut)) 0, 100% var(--v2-cut), 100% 100%, var(--v2-cut) 100%, 0 calc(100% - var(--v2-cut))); }
.v2-card:not(.v2-daycard), .v2-cal { position: relative; }
.v2-card::after, .v2-cal::after { content: ""; position: absolute; inset: .375rem; pointer-events: none; --c: var(--v2-gold-line);
  background:
    linear-gradient(var(--c), var(--c)) left top / .875rem 2px no-repeat, linear-gradient(var(--c), var(--c)) left top / 2px .875rem no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / .875rem 2px no-repeat, linear-gradient(var(--c), var(--c)) right bottom / 2px .875rem no-repeat,
    linear-gradient(135deg, transparent calc(50% - 1px), var(--v2-line) calc(50% - 1px), var(--v2-line) 50%, transparent 50%) right top / calc(var(--v2-cut) + 2px) calc(var(--v2-cut) + 2px) no-repeat;
  transition: transform .3s var(--v2-ease), opacity .3s; opacity: .9; }
.v2-card:hover::after { transform: scale(1.012); opacity: 1; }
.v2-card > * { position: relative; z-index: 1; }
.v2-daycard { clip-path: none; }
.v2-ticket { border-radius: 0; }
.v2-ticket::before { border-radius: 0; }
.v2-merch-pic, .v2-qr, .v2-stamp, .v2-cal-d, .v2-qty div, .v2-cd-i, .v2-steps li, .v2-steps span, .v2-chips a, .v2-fold, .v2-field input, .v2-field select, .v2-lockup, .v2-stn-no, .v2-route-stn b, .v2-route-end span, .v2-switch, .v2-switch i, .v2-switch i::after { border-radius: 0; }
.v2-stamp, .v2-cd-i, .v2-chips a, .v2-steps li { clip-path: polygon(0 0, calc(100% - .5rem) 0, 100% .5rem, 100% 100%, .5rem 100%, 0 calc(100% - .5rem)); }
.v2-cal-d { clip-path: polygon(0 0, calc(100% - .375rem) 0, 100% .375rem, 100% 100%, 0 100%); }
.v2-how-n { border-radius: 0; clip-path: polygon(0 0, calc(100% - .5rem) 0, 100% .5rem, 100% 100%, .5rem 100%, 0 calc(100% - .5rem)); }
.v2-seal { border-radius: 50%; }

/* ================= section heads: index label + rule that extends ================= */
main { counter-reset: sec; }
.v2-sec:not(.v2-end) { counter-increment: sec; }
.v2-sec > .v2-wrap > .v2-h { position: relative; padding-top: 1.75rem; }
.v2-sec > .v2-wrap > .v2-h::before { content: "SEC." counter(sec, decimal-leading-zero) " // OP-50"; position: absolute; left: 0; top: 0; font: 700 .75rem/1 var(--v2-mono); letter-spacing: .2em; color: var(--v2-accent-ink); }
.v2-sec > .v2-wrap > .v2-h::after { content: ""; position: absolute; left: 11.5rem; right: 0; top: .35rem; height: 1px; background: linear-gradient(90deg, var(--v2-line), transparent); transform-origin: left; }
.v2-page-h { position: relative; }
.v2-crumb { width: 100%; display: flex; align-items: center; gap: .75rem; font: 700 .75rem/1 var(--v2-mono); letter-spacing: .18em; color: var(--v2-accent-ink); text-transform: uppercase; margin-bottom: -.25rem; }
.v2-crumb::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--v2-line), transparent); transform-origin: left; }
.v2-crumb b { color: var(--v2-primary-ink); }

/* ================= hero ================= */
@media (min-width: 961px) {
  .v2-hero-in { grid-template-columns: minmax(0, .86fr) minmax(0, 1.3fr); gap: 1.5rem; }
  .v2-hero-txt { max-width: 40rem; gap: 1rem; }
}
/* short desktop screens (1366×768, 1280×720…): keep the whole first screen above the fold */
@media (min-width: 961px) and (max-height: 860px) {
  .v2-hero { padding: 1rem 0 1.25rem; }
  .v2-hero-txt { gap: .7rem; }
  .v2-lockup { padding: .375rem .75rem; } .v2-lockup img { height: 1.875rem; } .v2-lockup img + i + img { height: 1.375rem; }
  .v2-lead { font-size: 1rem; line-height: 1.6; }
  .v2-cta-row .v2-btn-lg { min-height: 3.25rem; }
  .v2-cd { margin-top: 0; } .v2-cd-i { padding: .375rem .875rem; } .v2-cd-i b { font-size: 1.3rem; }
  :root { --v2-fs-6: clamp(3rem, min(5.4vw, 9.4vh), 8.5rem); }
}
.v2-tw { display: inline-block; white-space: nowrap; }
.v2-display { font-size: var(--v2-fs-6); line-height: 1.02; letter-spacing: .03em; text-wrap: wrap; }
.v2-lead { font-size: 1.0625rem; }
.v2-hero-meta b { font-family: var(--v2-mono); font-size: 1.5rem; }
.v2-cta-row { gap: 1rem; }
.v2-cta-row .v2-btn-lg { min-height: 3.6rem; padding: 0 2.25rem; font-size: 1.1875rem; letter-spacing: .06em; }
.v2-cd-i b { font-family: var(--v2-mono); font-size: 1.5rem; }
.v2-hero-hud { display: flex; flex-wrap: wrap; gap: .25rem .75rem; align-items: center; font: 700 .75rem/1.2 var(--v2-mono); letter-spacing: .16em; color: var(--v2-ink-2); text-transform: uppercase; }
.v2-hero-hud span + span::before { content: "/"; margin-right: .75rem; color: var(--v2-line); }
.v2-hero-hud b { color: var(--v2-primary-ink); }
.v2-hero-hud i { display: inline-block; width: .5rem; height: .5rem; margin-right: .4rem; background: var(--v2-primary-ink); vertical-align: middle; }
.v2-title-rule { display: flex; align-items: center; gap: .75rem; width: 100%; max-width: 30rem; margin-top: -.25rem; }
.v2-title-rule::before { content: ""; flex: 1; height: 2px; background: linear-gradient(90deg, var(--v2-primary-ink) 0 3rem, var(--v2-line) 3rem); transform-origin: left; }
.v2-title-rule span { font: 700 .6875rem/1 var(--v2-mono); letter-spacing: .2em; color: var(--v2-ink-2); }
.v2-hero-art { margin-right: -1rem; }
.v2-hud { position: absolute; inset: -1.5rem 0 -.5rem 0; pointer-events: none; z-index: 2; }
.v2-hud-c { position: absolute; width: 1.75rem; height: 1.75rem; border: 0 solid var(--v2-gold-line); }
.v2-hud-c.tl { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; }
.v2-hud-c.br { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; }
.v2-hud-t { position: absolute; font: 700 .6875rem/1 var(--v2-mono); letter-spacing: .16em; color: var(--v2-ink-2); background: rgba(var(--v2-glass-rgb), .78); padding: .3rem .5rem; text-transform: uppercase; white-space: nowrap; }
.v2-hud-t { left: 2.25rem; top: -.6rem; }
@media (max-width: 960px) { .v2-hud { inset: -.75rem 0 0 0; } .v2-hero-art { margin-right: auto; } }
@media (max-width: 760px) { .v2-display { font-size: 2.75rem; } .v2-cta-row .v2-btn-lg { min-height: 3.125rem; padding: 0 1rem; font-size: 1.0625rem; } .v2-hero-meta b, .v2-cd-i b { font-size: 1.25rem; } .v2-hero-hud { font-size: .6875rem; letter-spacing: .1em; } }

/* ================= side rails (wide screens only, in the page margin, glass backed) ================= */
.v2-rail { position: fixed; z-index: 20; top: calc(var(--v2-top-h) + 11rem); bottom: 5rem; width: 1.9rem; display: none; flex-direction: column; align-items: center; gap: .75rem; pointer-events: none;
  font: 700 .6875rem/1 var(--v2-mono); letter-spacing: .22em; color: var(--v2-ink-2); text-transform: uppercase; }
.v2-rail-l { left: max(.5rem, calc((100vw - 82rem) / 2 - 3rem)); }
.v2-rail-r { right: max(.5rem, calc((100vw - 82rem) / 2 - 3rem)); }
.v2-rail span { writing-mode: vertical-rl; background: rgba(var(--v2-glass-rgb), .78); padding: .5rem .3rem; white-space: nowrap; }
.v2-rail i { flex: 1; width: 1px; background: linear-gradient(var(--v2-line), transparent); }
.v2-rail b { color: var(--v2-primary-ink); }
@media (min-width: 1500px) { .v2-rail { display: flex; } }
body[data-page="book"] .v2-rail { bottom: calc(var(--v2-bar-h) + 2rem); }

/* ================= footer ================= */
.v2-foot { position: relative; }
.v2-foot-code { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; font: 700 .6875rem/1.2 var(--v2-mono); letter-spacing: .18em; color: var(--v2-on-dark-2); text-transform: uppercase; }
.v2-seg button, .v2-foot-logos img { border-radius: 0; }

/* ================= boot sequence (PRTS-style, ≤ 1.4 s, first visit only, skippable) ================= */
.v2-boot { position: fixed; inset: 0; z-index: 300; background: #070A14; color: #DCE3EC; display: grid; place-items: center; cursor: pointer; }
.v2-noboot .v2-boot { display: none; }
.v2-boot::before { content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background: linear-gradient(rgba(220, 227, 236, .06) 1px, transparent 1px) 0 0 / 100% 2.5rem, linear-gradient(90deg, rgba(220, 227, 236, .06) 1px, transparent 1px) 0 0 / 2.5rem 100%; }
.v2-boot-in { position: relative; width: min(34rem, 86vw); display: grid; gap: .6rem; font: 700 .8125rem/1.4 var(--v2-mono); letter-spacing: .16em; text-transform: uppercase; }
.v2-boot-k { font-size: 1.125rem; color: #FFFFFF; display: flex; align-items: center; gap: .75rem; }
.v2-boot-k::before { content: ""; width: .75rem; height: .75rem; background: #C9473A; }
.v2-boot-l { color: #AEB9CC; }
.v2-boot-l b { color: #E9BF6E; }
.v2-boot-bar { height: 3px; background: rgba(220, 227, 236, .15); margin-top: .5rem; overflow: hidden; }
.v2-boot-bar i { display: block; height: 100%; background: linear-gradient(90deg, #C9473A, #E9BF6E); transform-origin: left; transform: scaleX(0); }
.v2-boot-p { display: flex; justify-content: space-between; color: #AEB9CC; }
.v2-boot-p b { color: #FFFFFF; }
.v2-boot-hz { height: .5rem; background: repeating-linear-gradient(-45deg, #9F824E 0 .5rem, transparent .5rem 1rem); opacity: .7; }
.v2-booting body { overflow: hidden; }
.v2-anim .v2-boot-in > * { opacity: 0; animation: v2-bootl .18s linear forwards; }
.v2-anim .v2-boot-in > :nth-child(1) { animation-delay: .05s; } .v2-anim .v2-boot-in > :nth-child(2) { animation-delay: .2s; }
.v2-anim .v2-boot-in > :nth-child(3) { animation-delay: .36s; } .v2-anim .v2-boot-in > :nth-child(4) { animation-delay: .52s; }
.v2-anim .v2-boot-in > :nth-child(5) { animation-delay: .1s; } .v2-anim .v2-boot-in > :nth-child(6) { animation-delay: .1s; } .v2-anim .v2-boot-in > :nth-child(7) { animation-delay: .05s; }
.v2-anim .v2-boot-bar i { animation: v2-grow 1.05s cubic-bezier(.6, .1, .3, 1) .12s forwards; }
.v2-boot.is-out { transform: translateY(-102%); transition: transform .42s cubic-bezier(.7, 0, .25, 1); }
@keyframes v2-bootl { from { opacity: 0; transform: translateX(-.5rem); } to { opacity: 1; transform: none; } }
@keyframes v2-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ================= route transition: slanted dark wipe ================= */
.v2-xf { position: fixed; top: -10vh; bottom: -10vh; left: -25vw; width: 150vw; z-index: 250; pointer-events: none; background: #070A14; transform: translateX(-110%) skewX(-14deg); visibility: hidden; }
.v2-xf::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: .375rem; background: linear-gradient(#C9473A, #E9BF6E); }
.v2-xf b { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) skewX(14deg); font: 700 .875rem/1 var(--v2-mono); letter-spacing: .3em; color: #DCE3EC; white-space: nowrap; }
.v2-xf.is-cover { visibility: visible; transform: translateX(0) skewX(-14deg); transition: transform .2s cubic-bezier(.7, 0, .3, 1); }
.v2-xf.is-out { visibility: visible; transform: translateX(110%) skewX(-14deg); transition: transform .34s cubic-bezier(.6, 0, .3, 1); }

/* ================= hero entrance (fx.js adds .is-go; title is split into chars) ================= */
.v2-anim .v2-hero:not(.is-go) [data-e], .v2-anim .v2-hero:not(.is-go) .v2-ch { opacity: 0; }
.v2-anim .v2-hero.is-go [data-e] { animation: v2-up .6s var(--v2-ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
.v2-anim .v2-hero.is-go .v2-ch { display: inline-block; animation: v2-type .32s var(--v2-ease) both; animation-delay: calc(var(--d, 0) * 1ms); }
.v2-anim .v2-hero.is-go .v2-title-rule::before { animation: v2-grow .8s cubic-bezier(.6, .1, .3, 1) both; animation-delay: .55s; transform-origin: left; }
.v2-anim .v2-hero.is-go .v2-hud-c { animation: v2-pop .5s var(--v2-ease) both; animation-delay: .35s; }
.v2-anim .v2-hero.is-go .v2-hero-f { animation: v2-rise .8s var(--v2-ease) both; animation-delay: calc(250ms + var(--i, 0) * 90ms); }
.v2-anim .v2-hero-hud i { animation: v2-blink 1.6s steps(2, jump-none) infinite; }
@keyframes v2-up { from { opacity: 0; transform: translateY(1.25rem); } to { opacity: 1; transform: none; } }
@keyframes v2-type { from { opacity: 0; transform: translateY(.35em) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes v2-pop { from { opacity: 0; transform: scale(1.35); } to { opacity: 1; transform: none; } }
@keyframes v2-rise { from { opacity: 0; translate: 0 2.5rem; } to { opacity: 1; translate: 0 0; } }
@keyframes v2-blink { 0% { opacity: 1; } 100% { opacity: .2; } }
/* idle: friends float + breathe (on the img, so it composes with the li's static offset) */
.v2-anim .v2-hero-f .v2-fig { animation: v2-float 5.2s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -1.1s); transform-origin: 50% 90%; }
.v2-anim .v2-friend-art .v2-fig, .v2-anim .v2-cur-art .v2-fig { animation: v2-breathe 4.6s ease-in-out infinite alternate; transform-origin: 50% 95%; }
@keyframes v2-float { from { transform: translateY(0) scale(1); } to { transform: translateY(-.6rem) scale(1.012); } }
@keyframes v2-breathe { from { transform: scale(1); } to { transform: scale(1.018); } }

/* ================= scroll reveal ================= */
.v2-anim [data-rv]:not(.is-in) { opacity: 0; translate: 0 1.75rem; }
.v2-anim [data-rv].is-in { transition: opacity .6s var(--v2-ease), translate .7s var(--v2-ease); transition-delay: calc(var(--rd, 0) * 1ms); }
.v2-anim .v2-sec > .v2-wrap > .v2-h[data-rv]:not(.is-in)::after, .v2-anim .v2-crumb:not(.is-in)::after { transform: scaleX(0); }
.v2-anim .v2-sec > .v2-wrap > .v2-h[data-rv].is-in::after, .v2-anim .v2-crumb.is-in::after { transform: scaleX(1); transition: transform .9s var(--v2-ease) .15s; }
/* hover lift on interactive cards */
.v2-anim .v2-friend, .v2-anim .v2-merch, .v2-anim .v2-how-i, .v2-anim .v2-rule { transition: transform .3s var(--v2-ease); }
.v2-anim .v2-friend:hover, .v2-anim .v2-merch:hover, .v2-anim .v2-how-i:hover, .v2-anim .v2-rule:hover { transform: translateY(-.25rem); }
.v2-anim .v2-stamp:hover { transform: translateY(-.15rem); }

@media (prefers-reduced-motion: reduce) {
  .v2-boot, .v2-xf { display: none !important; }
  [data-rv], .v2-ch, [data-e] { opacity: 1 !important; translate: none !important; }
}
.v2-hero { overflow-x: clip; }
/* hero text sits straight on a picture: muted text uses the strong muted tone in every scheme (day: #353E46, night: #E2E7ED) */
.v2-hero-txt { --v2-ink-2: var(--v2-ink-2-strong); }
.v2-hero-hud b { color: var(--v2-primary-deep-ink); }
/* the hover sweep moves a pseudo past the card edge: clip-path hides it, overflow: clip keeps it out of the page's scroll width */
.v2-card, .v2-cal { overflow: clip; }
