/* ==========================================================================
   SUNFADED // 篠澤 広 STEP3 — PRODUCER GIOP DIGITAL PRINT PLATE (V2 REFINED)
   Visual Contract: Shun Yamaguchi × sowiti × Frog96 × Sawai Shingo
   Strict Viewport: 100vw × 100dvh | Zero Scroll | Portrait -> 90deg Landscape
   Zero Boxed Buttons | Zero Translucent Panels | Naked Ink-on-Paper Typography
   ========================================================================== */

:root {
  /* Strictly opt out of OS / Mobile Browser / WebView Auto-Dark & Force-Dark inversion */
  color-scheme: only light;
  forced-color-adjust: none;

  --paper-bleached: #F2F1EC;
  --paper-warm: #E9E7DF;
  --ink-carbon: #141413;
  --ink-deep: #0B0B0A;
  --ink-muted: #4E4C46;
  --ink-subtle: rgba(20, 20, 19, 0.32);

  /* Chromatic accents strictly limited to MV artwork & snake-eye die pip */
  --hiro-crimson: #C43C4B;
  --hiro-cyan: #3BC0B2;

  /* Font Stacks — Zero Inter / Roboto / generic system UI defaults */
  --font-grotesque: 'Antonio', 'Barlow Condensed', 'Impact', sans-serif;
  --font-condensed: 'Barlow Condensed', 'Antonio', sans-serif;
  --font-jp-gothic: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-jp-mincho: 'Shippori Mincho', 'Yu Mincho', serif;
  --font-bitmap: 'Silkscreen', monospace;

  /* Landscape Stage Metrics (with vh fallback before dvh) */
  --stage-w: 100vw;
  --stage-h: 100vh;
  --sw: 1vw;
  --sh: 1vh;
  --u: min(1vw, 1.7778vh);
}

@supports (height: 100dvh) {
  :root {
    --stage-h: 100dvh;
    --sh: 1dvh;
    --u: min(1vw, 1.7778dvh);
  }
}

@media (orientation: portrait) {
  :root {
    --stage-w: 100vh;
    --stage-h: 100vw;
    --sw: 1vh;
    --sh: 1vw;
    --u: min(1vh, 1.7778vw);
  }

  @supports (height: 100dvh) {
    :root {
      --stage-w: 100dvh;
      --stage-h: 100vw;
      --sw: 1dvh;
      --sh: 1vw;
      --u: min(1dvh, 1.7778vw);
    }
  }
}

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

html,
body {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overflow: clip;
  color-scheme: only light;
  forced-color-adjust: none;
  -webkit-text-size-adjust: 100%;
  background-color: var(--paper-bleached);
  color: var(--ink-carbon);
  font-family: var(--font-condensed);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  user-select: none;
  overscroll-behavior: none;
}

@media (prefers-color-scheme: dark) {
  :root,
  html,
  body,
  .stage-shell,
  canvas,
  svg,
  img {
    color-scheme: only light;
    forced-color-adjust: none;
  }
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* ==========================================================================
   STAGE SHELL (16:9+ Landscape Frame + 90deg Portrait Rotation)
   ========================================================================== */

.stage-shell {
  position: fixed;
  top: 50%;
  left: 50%;
  width: var(--stage-w);
  height: var(--stage-h);
  transform: translate(-50%, -50%);
  transform-origin: center center;
  background-color: var(--paper-bleached);
  overflow: hidden;
  overflow: clip;
  isolation: isolate;
}

@media (orientation: portrait) {
  .stage-shell {
    transform: translate(-50%, -50%) rotate(90deg);
  }
}

/* Frog96 f36881 1-Bit Xerox Threshold Overdrive */
.stage-shell[data-fx="threshold"] .editorial-sheet,
.stage-shell[data-fx="threshold"] .left-bleed-spine {
  filter: url(#xerox-threshold);
}

.stage-shell[data-fx="threshold"] .hiro-art-frame {
  filter: contrast(1.85) saturate(0.22) brightness(1.06);
}

/* ==========================================================================
   LAYER 0: SUNFADED SILVER-GELATIN / CRUMPLED XEROX PAPER SUBSTRATE
   ========================================================================== */

.paper-substrate {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  overflow: clip;
  pointer-events: none;
  background:
    radial-gradient(ellipse 68% 82% at 76% 42%, rgba(255, 255, 253, 0.9) 0%, rgba(242, 241, 236, 0.25) 60%, rgba(223, 219, 209, 0.58) 100%),
    linear-gradient(108deg, #EBE9E0 0%, #F3F2EE 44%, #F6F5F1 78%, #E9E6DD 100%);
}

.paper-crease {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.paper-crease-a {
  background: linear-gradient(
    162deg,
    transparent 38.5%,
    rgba(20, 20, 19, 0.026) 39.0%,
    rgba(255, 255, 255, 0.56) 39.25%,
    transparent 40.0%
  );
}

.paper-crease-b {
  background: linear-gradient(
    73deg,
    transparent 53.2%,
    rgba(20, 20, 19, 0.02) 53.55%,
    rgba(255, 255, 255, 0.46) 53.8%,
    transparent 54.4%
  );
}

/* Soft airbrushed photogram smudge behind display type (f47611 motif) */
.photogram-halo {
  position: absolute;
  left: calc(29 * var(--sw));
  top: calc(17 * var(--sh));
  width: calc(15 * var(--u));
  height: calc(20 * var(--u));
  background: radial-gradient(
    ellipse at 48% 52%,
    rgba(20, 20, 19, 0.12) 0%,
    rgba(20, 20, 19, 0.06) 44%,
    rgba(20, 20, 19, 0) 72%
  );
  transform: rotate(-16deg);
  mix-blend-mode: multiply;
}

/* ==========================================================================
   LAYER 1: RIGHT-SIDE HIRO SHINOSAWA STEP3 STAGE (MV 2:36)
   ========================================================================== */

.hiro-stage {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 63%;
  z-index: 2;
  pointer-events: none;
}

.hiro-plate-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  overflow: clip;
}

/* Unified height-locked 4:3 multiplane stage (matches Boot Cel 1:1 on 16:9 & 21:9 phones, single clean left mask) */
.hiro-art-frame {
  position: absolute;
  top: -2.5%;
  right: calc(-2.2 * var(--sh));
  height: 105%;
  width: auto;
  aspect-ratio: 4 / 3;
  max-width: none;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, rgba(0, 0, 0, 0.24) 20%, rgba(0, 0, 0, 0.88) 31%, #000 42%);
  mask-image: linear-gradient(90deg, transparent 10%, rgba(0, 0, 0, 0.24) 20%, rgba(0, 0, 0, 0.88) 31%, #000 42%);
}

.hiro-mp-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

#hiro-mp-bg       { z-index: 1; transform-origin: 50.0% 50.0%; }
#hiro-mp-bow      { z-index: 2; transform-origin: 38.5% 42.0%; }
#hiro-mp-braid    { z-index: 3; transform-origin: 78.5% 24.2%; }
#hiro-mp-backcurl { z-index: 4; transform-origin: 83.8% 43.5%; }
#hiro-mp-arm      { z-index: 5; transform-origin: 84.5% 31.0%; }
#hiro-mp-body     { z-index: 6; transform-origin: 75.0% 35.0%; }
#hiro-mp-hair     { z-index: 7; transform-origin: 66.5% 21.5%; }

/* MV 2:36–2:49 Optical Foreground & Sun-Bloom Layer */
.hiro-mv-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 8;
}

/* Manga Speech Bubble (f33101 'ほらね' / f15911 '（いつ）') */
.fukidashi-bubble {
  position: absolute;
  top: calc(10.8 * var(--sh));
  left: 33.5%;
  width: calc(5.0 * var(--u));
  height: calc(11.8 * var(--u));
  border-radius: 50%;
  border: 1.35px solid var(--ink-carbon);
  background: rgba(242, 241, 236, 0.9);
  color: var(--ink-carbon);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
  z-index: 6;
}

.fukidashi-bubble:hover {
  background: var(--ink-carbon);
  color: var(--paper-bleached);
  transform: translate(-1.5px, -1.5px);
}

.fukidashi-bubble:hover .fukidashi-tail path {
  fill: var(--ink-carbon);
}

.fukidashi-text {
  writing-mode: vertical-rl;
  text-orientation: upright;
  font-family: var(--font-jp-mincho);
  font-weight: 700;
  font-size: calc(1.3 * var(--u));
  letter-spacing: 0.14em;
  line-height: 1.15;
}

.fukidashi-tail {
  position: absolute;
  right: calc(-1.02 * var(--u));
  top: 56%;
  width: calc(1.2 * var(--u));
  height: calc(0.92 * var(--u));
  pointer-events: none;
}

/* Far-right vertical lyric hairline */
.right-lyric-margin {
  position: absolute;
  top: calc(5.5 * var(--sh));
  right: calc(1.35 * var(--sw));
  writing-mode: vertical-rl;
  font-family: var(--font-jp-gothic);
  font-weight: 700;
  font-size: calc(1.0 * var(--u));
  line-height: 1.55;
  letter-spacing: 0.16em;
  color: var(--ink-carbon);
  opacity: 0.78;
  display: flex;
  gap: calc(0.42 * var(--u));
  max-height: calc(88 * var(--sh));
}

/* ==========================================================================
   LAYER 2: CONTINUOUS 24FPS AMBIENT CANVAS
   ========================================================================== */

.ambient-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

/* ==========================================================================
   LAYER 3: LEFT BLEED 90° ORTHOGONAL SPINE (Exact f47611 Cropped Bleed)
   ========================================================================== */

.left-bleed-spine {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: calc(6.6 * var(--sw));
  z-index: 4;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.spine-rotated-word {
  writing-mode: vertical-rl;
  transform: rotate(180deg) translateX(22%);
  font-family: var(--font-grotesque);
  font-weight: 700;
  font-size: calc(13.6 * var(--u));
  line-height: 0.76;
  letter-spacing: -0.03em;
  color: var(--ink-carbon);
  white-space: nowrap;
  filter: url(#ink-bleed);
}

/* ==========================================================================
   LAYER 4: SAWAI SHINGO NAKED PRINT COMPOSITION (STAGGERED & BORDERLESS)
   ========================================================================== */

.editorial-sheet {
  position: absolute;
  top: calc(4.6 * var(--sh));
  bottom: calc(4.4 * var(--sh));
  left: calc(7.8 * var(--sw));
  width: calc(48.5 * var(--sw));
  z-index: 5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* --- Zone A: Open Epigraph & Parenthetical Cut Mark (Zero Rule Line) --- */
.sheet-top-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  width: 92%;
}

.epigraph-poem {
  display: flex;
  flex-direction: column;
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: calc(1.18 * var(--u));
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: var(--ink-carbon);
}

.top-cut-meta {
  display: flex;
  align-items: baseline;
  gap: calc(0.85 * var(--u));
}

.school-caps {
  font-family: var(--font-grotesque);
  font-weight: 700;
  font-size: calc(2.1 * var(--u));
  line-height: 0.9;
  letter-spacing: 0.015em;
}

/* Authentic f33101 parenthetical cut mark: condensed grotesque, not arcade pixel box */
.cut-counter {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: calc(1.38 * var(--u));
  letter-spacing: 0.04em;
  color: var(--ink-carbon);
}

/* --- Zone B: Monumental 'GIOP' × 'サンフェーデッド' Lockup --- */
.identity-lockup-zone {
  display: flex;
  align-items: flex-end;
  gap: calc(2.2 * var(--u));
  margin-left: calc(0.4 * var(--sw));
}

.katakana-lockup {
  display: flex;
  align-items: stretch;
  gap: calc(0.65 * var(--u));
  flex-shrink: 0;
  margin-bottom: calc(0.25 * var(--u));
}

.kata-stack {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--font-jp-gothic);
  font-weight: 900;
  font-size: calc(4.05 * var(--u));
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--ink-carbon);
  filter: url(#ink-bleed);
}

.kata-side-meta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(0.1 * var(--u)) 0;
}

.kata-en {
  font-family: var(--font-grotesque);
  font-weight: 700;
  font-size: calc(1.26 * var(--u));
  line-height: 0.92;
  letter-spacing: 0.02em;
}

.kata-idol {
  font-family: var(--font-jp-gothic);
  font-weight: 900;
  font-size: calc(1.75 * var(--u));
  line-height: 1;
  letter-spacing: 0.03em;
}

.kata-step {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: calc(0.98 * var(--u));
  letter-spacing: 0.03em;
  color: var(--ink-muted);
}

/* Monumental 'GIO' + Decoupled Producer 'P' Stamp */
.giop-hero-mark {
  display: flex;
  align-items: flex-end;
  gap: calc(0.9 * var(--u));
  position: relative;
}

.gio-name-wrap {
  position: relative;
  display: inline-flex;
  align-items: baseline;
}

.gio-letters {
  font-family: var(--font-grotesque);
  font-weight: 700;
  font-size: calc(16.8 * var(--u));
  line-height: 0.76;
  letter-spacing: -0.045em;
  color: var(--ink-carbon);
  filter: url(#ink-bleed);
}

.giop-hero-mark:hover .gio-letters {
  text-shadow: 3px -2px 0 rgba(20, 20, 19, 0.22), -2px 2px 0 rgba(59, 192, 178, 0.25);
}

/* ONLY f22661 punch-out stem labels use 1-bit Silkscreen bitmap font */
.punch-chip {
  position: absolute;
  font-family: var(--font-bitmap);
  font-size: calc(0.82 * var(--u));
  line-height: 1;
  padding: calc(0.12 * var(--u)) calc(0.28 * var(--u));
  background: var(--paper-bleached);
  color: var(--ink-carbon);
  letter-spacing: 0.04em;
  pointer-events: none;
}

.chip-hiro {
  top: 24%;
  left: 5%;
}

.chip-step {
  bottom: 15%;
  right: -3%;
  background: var(--ink-carbon);
  color: var(--paper-bleached);
}

/* Differentiated 'P' (Producer) Stamp */
.p-producer-stamp {
  position: relative;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  align-items: stretch;
  gap: calc(0.26 * var(--u)) calc(0.36 * var(--u));
  margin-bottom: calc(0.18 * var(--u));
  cursor: pointer;
}

.p-ghost-frame {
  position: absolute;
  top: calc(-0.35 * var(--u));
  left: calc(0.35 * var(--u));
  width: calc(6.5 * var(--u));
  height: calc(9.5 * var(--u));
  border: 1.15px solid var(--ink-carbon);
  pointer-events: none;
}

.p-producer-stamp:hover .p-ghost-frame {
  transform: translate(3px, -3px);
}

.p-core-box {
  width: calc(6.5 * var(--u));
  height: calc(9.5 * var(--u));
  background: var(--ink-carbon);
  color: var(--paper-bleached);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: calc(0.45 * var(--u)) calc(0.35 * var(--u)) calc(0.32 * var(--u));
  position: relative;
  z-index: 1;
}

.p-producer-stamp.is-inverted .p-core-box {
  background: var(--paper-bleached);
  color: var(--ink-carbon);
  border: 1.8px solid var(--ink-carbon);
}

.p-letter {
  font-family: var(--font-grotesque);
  font-weight: 700;
  font-size: calc(7.6 * var(--u));
  line-height: 0.82;
  letter-spacing: -0.03em;
}

.p-dither-strip {
  width: 100%;
  height: calc(0.68 * var(--u));
  background-image:
    linear-gradient(45deg, var(--paper-bleached) 25%, transparent 25%),
    linear-gradient(-45deg, var(--paper-bleached) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, var(--paper-bleached) 75%),
    linear-gradient(-45deg, transparent 75%, var(--paper-bleached) 75%);
  background-size: 4px 4px;
  background-position: 0 0, 0 2px, 2px -2px, -2px 0;
  opacity: 0.85;
}

.p-vertical-role {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-grotesque);
  font-weight: 700;
  font-size: calc(1.45 * var(--u));
  letter-spacing: 0.13em;
  color: var(--ink-carbon);
  justify-self: start;
  align-self: end;
  line-height: 1;
}

.p-jp-role {
  grid-column: 1 / -1;
  font-family: var(--font-jp-gothic);
  font-weight: 900;
  font-size: calc(0.95 * var(--u));
  letter-spacing: 0.08em;
  color: var(--ink-carbon);
  white-space: nowrap;
}

/* --- Zone C: Staggered Naked-Ink Personal Coordinates (PID / X / QQ) --- */
.coordinates-specimen {
  display: flex;
  flex-direction: column;
  gap: calc(1.15 * var(--u));
}

/* Staggered indent aligns PID optically with 'GIO' display axis instead of uniform box stack */
.pid-naked-row {
  display: flex;
  align-items: stretch;
  gap: calc(0.8 * var(--u));
  margin-left: calc(3.6 * var(--sw));
}

.ortho-micro-label {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: calc(1.02 * var(--u));
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  padding-left: calc(0.35 * var(--u));
  border-left: 1.4px solid var(--ink-carbon);
}

.pid-main-btn {
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: var(--ink-carbon);
  display: flex;
  align-items: baseline;
  gap: calc(1.15 * var(--u));
}

.pid-value-huge {
  font-family: var(--font-grotesque);
  font-weight: 700;
  font-size: calc(5.8 * var(--u));
  line-height: 0.84;
  letter-spacing: 0.04em;
  color: var(--ink-carbon);
  filter: url(#ink-bleed);
}

.pid-main-btn:hover .pid-value-huge {
  transform: translateX(2px);
  text-shadow: -3px 0 0 rgba(20, 20, 19, 0.22);
}

.naked-meta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: calc(0.22 * var(--u));
}

.naked-meta-jp {
  font-family: var(--font-jp-gothic);
  font-weight: 700;
  font-size: calc(0.94 * var(--u));
  letter-spacing: 0.05em;
  color: var(--ink-muted);
}

.print-stamp-tag {
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: calc(0.95 * var(--u));
  letter-spacing: 0.1em;
  color: var(--ink-carbon);
  border-bottom: 1.2px solid var(--ink-carbon);
  line-height: 1.05;
  padding: 0 calc(0.12 * var(--u));
}

.pid-main-btn:hover .print-stamp-tag,
.naked-action:hover .print-stamp-tag,
.specimen-trigger.is-copied .print-stamp-tag {
  background: var(--ink-carbon);
  color: var(--paper-bleached);
  border-bottom-color: transparent;
  padding: calc(0.06 * var(--u)) calc(0.32 * var(--u));
}

/* Asymmetric Studio-Credit Columns (Exact f47611 / comp3 f0024 credit rhythm) */
.studio-credits-cluster {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: end;
  gap: calc(2.2 * var(--u));
  width: 95%;
}

.credits-col-primary {
  display: flex;
  flex-direction: column;
  gap: calc(0.75 * var(--u));
}

.naked-credit-item {
  display: flex;
  flex-direction: column;
  gap: calc(0.32 * var(--u));
}

.naked-credit-head {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: calc(0.65 * var(--u));
}

.credit-role {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: calc(1.06 * var(--u));
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}

.naked-action {
  position: relative;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  padding: calc(0.14 * var(--u)) calc(0.18 * var(--u));
  cursor: pointer;
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: calc(0.98 * var(--u));
  letter-spacing: 0.08em;
  color: var(--ink-carbon);
  text-decoration: none;
  border-bottom: 1.1px solid var(--ink-subtle);
  line-height: 1.1;
}

.naked-action > span,
.pid-main-btn > span,
.credit-val-btn > span {
  pointer-events: none;
}

.naked-action:hover {
  background: var(--ink-carbon);
  color: var(--paper-bleached);
  border-bottom-color: transparent;
  padding: calc(0.14 * var(--u)) calc(0.32 * var(--u));
}

.credit-val-btn {
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  color: var(--ink-carbon);
  font-family: var(--font-grotesque);
  font-weight: 700;
  font-size: calc(3.08 * var(--u));
  line-height: 0.96;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.credit-val-btn:hover {
  transform: translateX(2px);
  text-shadow: -2.5px 0 0 rgba(20, 20, 19, 0.22);
}

.at-prefix {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.82em;
  margin-right: 0.03em;
  opacity: 0.68;
}

/* Fine-Print Staff Column + Hatsuboshi Seal & Die */
.credits-col-staff {
  display: flex;
  flex-direction: column;
  gap: calc(0.65 * var(--u));
}

.staff-lines {
  display: flex;
  flex-direction: column;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: calc(0.98 * var(--u));
  line-height: 1.16;
  letter-spacing: 0.02em;
  color: var(--ink-carbon);
  opacity: 0.84;
}

.editorial-marks-row {
  display: flex;
  align-items: center;
  gap: calc(0.95 * var(--u));
}

.hatsuboshi-seal {
  width: calc(3.3 * var(--u));
  height: calc(3.3 * var(--u));
  flex-shrink: 0;
}

.dice-btn {
  display: inline-flex;
  align-items: center;
  gap: calc(0.42 * var(--u));
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  color: var(--ink-carbon);
}

.dice-btn:hover .dice-readout {
  background: var(--ink-carbon);
  color: var(--paper-bleached);
  padding: 0 calc(0.28 * var(--u));
}

.dice-svg {
  width: calc(3.1 * var(--u));
  height: calc(3.1 * var(--u));
}

.dice-readout {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: calc(1.12 * var(--u));
  letter-spacing: 0.04em;
}

/* --- Zone D: Borderless High-Density Stipple Sun-Wave Plate (Exact f00141 look) --- */
.sheet-bottom-zone {
  display: grid;
  grid-template-columns: 1.52fr 1fr;
  align-items: end;
  gap: calc(1.5 * var(--u));
  width: 96%;
}

/* Raw stipple block directly on paper — zero CSS box border, zero caption bar! */
.sunwave-frame {
  position: relative;
  cursor: crosshair;
  overflow: hidden;
}

#sunwave-canvas {
  width: 100%;
  height: calc(8.4 * var(--u));
  display: block;
}

.bottom-editorial-col {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: calc(0.55 * var(--u));
}

.naked-mode-links {
  display: flex;
  align-items: center;
  gap: calc(1.1 * var(--u));
}

.naked-ctrl-btn {
  background: none;
  border: none;
  border-bottom: 1.3px solid var(--ink-carbon);
  padding: calc(0.08 * var(--u)) 0;
  color: var(--ink-carbon);
  font-family: var(--font-jp-gothic);
  font-weight: 900;
  font-size: calc(0.98 * var(--u));
  letter-spacing: 0.05em;
  cursor: pointer;
  white-space: nowrap;
}

.naked-ctrl-btn:hover,
.naked-ctrl-btn[aria-pressed="true"] {
  background: var(--ink-carbon);
  color: var(--paper-bleached);
  padding: calc(0.08 * var(--u)) calc(0.38 * var(--u));
  border-bottom-color: transparent;
}

.editorial-colophon {
  font-family: var(--font-condensed);
  font-weight: 700;
  font-size: calc(1.06 * var(--u));
  letter-spacing: 0.03em;
  color: var(--ink-muted);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.editorial-colophon.is-flash {
  color: var(--paper-bleached);
  background: var(--ink-carbon);
  padding: calc(0.12 * var(--u)) calc(0.4 * var(--u));
  align-self: flex-start;
}

button:focus-visible,
a:focus-visible {
  outline: 1.5px solid var(--ink-carbon);
  outline-offset: 2px;
}

/* ==========================================================================
   LAYER 5: STRICT 24FPS HARD-CUT BOOT OVERLAY -> ZERO-ZOOM INSTANT LOCK-IN
   (Exact Shun Yamaguchi comp3.mp4 24.00fps Cut Rate | Zero Scale/Zoom Settle)
   ========================================================================== */

.boot-overlay {
  position: absolute;
  inset: 0;
  z-index: 30;
  background: var(--paper-bleached);
  pointer-events: auto;
  overflow: hidden;
  overflow: clip;
}

.boot-overlay.is-hidden {
  display: none;
  pointer-events: none;
}

.boot-cel-stage {
  position: absolute;
  inset: 0;
  display: none;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  background: var(--paper-bleached);
}

.boot-cel-stage.is-active {
  display: block;
}

/* Soft paper-toned ambient wing extension for 20:9 / 21:9 ultrawide mobile screens */
.boot-cel-bg {
  position: absolute;
  inset: -6%;
  width: 112%;
  height: 112%;
  object-fit: cover;
  filter: blur(24px) saturate(0.75) brightness(1.08);
  opacity: 0.52;
}

/* Height-locked 4:3 character/cut plate: never stretches to 100vw on 20:9 phones,
   matching Final Card Hiro's head-to-body pixel scale 1:1! */
.boot-cel-img {
  position: absolute;
  top: 0;
  height: 100%;
  width: auto;
  aspect-ratio: 4 / 3;
  max-width: none;
  object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 10%, #000 90%, transparent 100%);
}

.boot-cel-img.is-flush-left {
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 90%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 0%, #000 90%, transparent 100%);
}

.boot-cel-img.is-flush-right {
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 100%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 11%, #000 100%);
}

.boot-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 3;
  pointer-events: none;
}

.boot-skip-btn {
  position: absolute;
  bottom: calc(3.2 * var(--sh));
  right: calc(2.8 * var(--sw));
  z-index: 10;
  background: rgba(242, 241, 236, 0.86);
  color: var(--ink-carbon);
  border: none;
  border-bottom: 1.4px solid var(--ink-carbon);
  font-family: var(--font-condensed);
  font-weight: 800;
  font-size: calc(1.15 * var(--u));
  padding: calc(0.14 * var(--u)) calc(0.4 * var(--u));
  cursor: pointer;
  letter-spacing: 0.08em;
}

.boot-skip-btn:hover {
  background: var(--ink-carbon);
  color: var(--paper-bleached);
}
