/* The Working-Class Buddha
   A woodblock print at midnight: sumi ink, Prussian blue, gold leaf, washi paper, one vermilion seal. */
:root {
  --sumi: #0d0c0b;
  --sumi-2: #161410;
  --sumi-3: #1f1c17;
  --indigo: #14213d;
  --prussian: #1c2f55;
  --gold: #c9a24a;
  --gold-2: #e6c77f;
  --gold-dim: rgba(201, 162, 74, 0.28);
  --vermilion: #d8432b;
  --vermilion-2: #f0644a;
  --washi: #f1e8d6;
  --washi-2: #e6dbc3;
  --ink: #1b1813;
  --ink-soft: #5a5244;
  --mist: #a9a291;
  --teal: #4fb6a6;
  --line: rgba(201, 162, 74, 0.22);
  --line-ink: rgba(27, 24, 19, 0.16);

  --mincho: "Shippori Mincho", "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
  --gothic: "Zen Kaku Gothic New", "Hiragino Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --till: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  --s-1: clamp(0.82rem, 0.79rem + 0.12vw, 0.9rem);
  --s0: clamp(0.98rem, 0.95rem + 0.15vw, 1.06rem);
  --s1: clamp(1.15rem, 1.06rem + 0.4vw, 1.35rem);
  --s2: clamp(1.45rem, 1.25rem + 0.9vw, 1.95rem);
  --s3: clamp(1.9rem, 1.5rem + 1.8vw, 2.9rem);
  --s4: clamp(2.3rem, 1.6rem + 3vw, 4.2rem);
  --s5: clamp(2.7rem, 1.6rem + 4.6vw, 5.6rem);

  --wrap: min(100% - 2.5rem, 1120px);
  --r: 4px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--sumi); color: var(--washi); font: 400 var(--s0)/1.75 var(--gothic); letter-spacing: 0.01em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body::after { /* washi grain */
  content: ""; position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3, h4 { font-family: var(--mincho); font-weight: 600; line-height: 1.18; letter-spacing: 0.005em; text-wrap: balance; }
p, li { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 0.25em; text-decoration-thickness: 1px; text-decoration-color: var(--gold); }
a:hover { color: var(--gold-2); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.paper :focus-visible, .on-paper :focus-visible { outline-color: var(--vermilion); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--gold); color: var(--sumi); padding: 0.6rem 1rem; }
.skip:focus { top: 1rem; }
.mono, .kick { font: 400 0.74rem/1.5 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.small { font-size: var(--s-1); opacity: 0.75; }
.stack > * + * { margin-top: 1.2rem; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(1.8rem, 4vw, 4rem); align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); align-items: start; }
@media (max-width: 880px) { .split, .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* --------------------------------------------------------------- BAR */
.bar { position: sticky; top: 0; z-index: 50; background: rgba(13, 12, 11, 0.82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar .wrap { display: flex; align-items: center; gap: 0.9rem; min-height: 4rem; }
.mark { margin-right: auto; display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; font: 600 1.02rem/1 var(--mincho); letter-spacing: 0.04em; color: var(--washi); }
.mark-dot { flex: none; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; background: var(--vermilion); color: var(--washi); border-radius: 3px; font: 700 0.95rem/1 var(--mincho); box-shadow: inset 0 0 0 2px rgba(241,232,214,0.25); }
.mark-dot::before { content: ""; width: 0.95rem; height: 0.95rem; border-radius: 50%; border: 2px solid var(--washi); border-right-color: transparent; transform: rotate(-35deg); }
.nav { display: flex; align-items: center; gap: clamp(0.6rem, 1.6vw, 1.6rem); }
.nav a { font: 400 0.74rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--mist); padding: 0.7rem 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--washi); border-bottom-color: var(--gold); }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 999px; padding: 0.45rem 0.95rem; font: 400 0.74rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--washi); }
.cur select { appearance: none; -webkit-appearance: none; cursor: pointer; background: transparent; color: var(--mist); border: 1px solid var(--line); border-radius: 999px; padding: 0.38rem 0.85rem; font: 400 0.74rem var(--mono); letter-spacing: 0.08em; }
.cur select:hover { color: var(--washi); border-color: var(--gold); }
.cur select option { color: var(--ink); }
@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .nav { position: absolute; inset: 4rem 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--sumi); border-bottom: 1px solid var(--line); padding: 0.5rem 1.25rem 1rem; }
  .nav a { padding: 1rem 0; font-size: 0.82rem; border-bottom: 1px solid var(--line); }
  .bar:not(.open) .nav { display: none; }
}
@media (max-width: 520px) { .mark { font-size: 0.9rem; gap: 0.5rem; } .cur select { padding: 0.32rem 0.6rem; } }

/* --------------------------------------------------------------- BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3rem; padding: 0.7rem 1.4rem; border-radius: 999px; border: 1px solid transparent; font: 500 0.8rem/1 var(--mono); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; transition: background 0.2s, color 0.2s, transform 0.15s; }
.btn:active { transform: scale(0.98); }
.btn-sodium, .btn-gold { background: var(--gold); color: var(--sumi); }
.btn-sodium:hover, .btn-gold:hover { background: var(--gold-2); color: var(--sumi); }
.btn-ghost { border-color: var(--gold-dim); background: transparent; color: inherit; }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-ink { background: var(--ink); color: var(--washi); }
.btn-ink:hover { background: #000; color: var(--washi); }
.btn-green, .btn-red { background: var(--vermilion); color: var(--washi); }
.btn-green:hover, .btn-red:hover { background: var(--vermilion-2); color: #fff; }
.btn-small { min-height: 2.5rem; padding: 0.5rem 1rem; font-size: 0.72rem; }
.chip { display: inline-flex; align-items: center; min-height: 2.4rem; padding: 0.35rem 0.95rem; border-radius: 999px; border: 1px solid var(--gold-dim); background: transparent; font: 400 0.74rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: inherit; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--vermilion); border-color: var(--vermilion); color: var(--washi); }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 0.25em; cursor: pointer; }

/* --------------------------------------------------------------- FORMS */
.field { display: grid; gap: 0.4rem; align-content: start; }
.field label, .field .lab { font: 400 0.72rem/1.4 var(--mono); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.8; }
.field .hint { font-size: 0.8rem; opacity: 0.65; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0.9rem; }
.input { width: 100%; min-height: 3rem; padding: 0.55rem 0.9rem; border-radius: var(--r); border: 1px solid var(--gold-dim); background: rgba(241,232,214,0.04); color: inherit; font: 500 1.1rem var(--mincho); font-variant-numeric: tabular-nums; }
.input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,162,74,0.18); }
.on-paper .input, .paper .input { border-color: var(--line-ink); background: rgba(255,255,255,0.55); }
.on-paper .input:focus, .paper .input:focus { border-color: var(--vermilion); box-shadow: 0 0 0 3px rgba(216,67,43,0.15); }
.prefix { position: relative; }
.prefix .input { padding-left: 1.9rem; }
.prefix::before { content: attr(data-prefix); position: absolute; left: 0.85rem; top: 50%; transform: translateY(-50%); font: 400 1rem system-ui, sans-serif; opacity: 0.55; pointer-events: none; }
.presets { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-block: 1rem; }

/* --------------------------------------------------------------- SCENE */
#scene { position: fixed; inset: 0; width: 100vw; height: 100vh; z-index: -2; }
.scene-veil { position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 120% 80% at 50% 50%, transparent 55%, rgba(5,4,3,0.45)); }

/* --------------------------------------------------------------- HERO */
.hero { position: relative; min-height: calc(100svh - 4rem); display: flex; flex-direction: column; justify-content: space-between; padding-block: clamp(2rem, 9vh, 7rem) clamp(1rem, 4vh, 2.2rem); color: var(--washi); }
.hero-main { max-width: 44rem; }
.hero-time { font: 400 0.76rem/1.6 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); margin-bottom: 1.6rem; }
.hero h1 { font-size: var(--s5); font-weight: 500; line-height: 1.08; letter-spacing: 0.01em; text-shadow: 0 2px 40px rgba(0,0,0,0.35); }
.hero h1 .line { display: block; }
.hero h1 .line:nth-child(2) { color: var(--gold-2); }
.hero-lede { margin-top: 1.4rem; max-width: 30rem; font: 400 var(--s1)/1.6 var(--mincho); color: rgba(241,232,214,0.86); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2.2rem; }
.sky-chip { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.8rem; font: 400 0.74rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: rgba(241,232,214,0.8); }
.sky-chip b { color: var(--washi); font-weight: 500; }
.sky-dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--vermilion); box-shadow: 0 0 0 4px rgba(216,67,43,0.25); }
.sky-weather { margin-top: 0.6rem; font-size: 0.85rem; color: rgba(241,232,214,0.75); max-width: 30rem; }
/* ink brush reveal, once */
.brush { display: inline-block; clip-path: inset(0 100% 0 0); animation: brush 1.3s var(--ease) forwards; }
.brush.d2 { animation-delay: 0.35s; }
@keyframes brush { to { clip-path: inset(0 -2% 0 0); } }

/* seal route strip */
.route-strip { margin-top: 2.5rem; }
.route-strip ol { list-style: none; padding: 0 0 0.3rem; margin: 0; display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; }
.route-strip ol::-webkit-scrollbar { display: none; }
.route-strip li { flex: 1 0 4.6rem; }
.route-strip a { display: grid; justify-items: center; gap: 0.4rem; text-decoration: none; padding: 0.5rem 0.2rem; border-radius: var(--r); }
.route-strip a:hover { background: rgba(241,232,214,0.06); }
.rs-dot { width: 2.1rem; height: 2.1rem; border-radius: 3px; border: 1px dashed rgba(241,232,214,0.45); display: grid; place-items: center; font: 700 0.95rem/1 var(--mincho); color: rgba(241,232,214,0.5); transition: all 0.4s var(--ease); }
.rs-t { font: 400 0.7rem var(--mono); letter-spacing: 0.08em; color: var(--washi); }
.rs-n { font: 400 0.66rem/1.2 var(--gothic); color: var(--mist); text-align: center; max-width: 6rem; }
.route-strip li.p .rs-dot { background: var(--vermilion); border: 0; color: var(--washi); transform: rotate(-4deg); box-shadow: inset 0 0 0 2px rgba(241,232,214,0.25); }
@media (max-width: 760px) { .rs-n { display: none; } .route-strip li { flex-basis: 3.4rem; } }

/* --------------------------------------------------------------- RAIL + CLOCK */
.rail { position: fixed; left: max(0.8rem, calc((100vw - 1340px) / 2)); top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; opacity: 0; pointer-events: none; transition: opacity 0.4s; color: var(--washi) !important; }
.rail.show { opacity: 1; pointer-events: auto; }
.rail a { display: flex; align-items: center; gap: 0.6rem; padding: 0.38rem 0; font: 400 0.68rem/1 var(--mono); letter-spacing: 0.08em; text-decoration: none; color: var(--mist); }
.rail a::before { content: ""; width: 0.55rem; height: 0.55rem; border: 1px solid var(--gold-dim); border-radius: 1px; transform: rotate(45deg); }
.rail a.on { color: var(--washi); }
.rail a.on::before { background: var(--gold); border-color: var(--gold); }
.rail a span { opacity: 0; transform: translateX(-4px); transition: opacity 0.2s, transform 0.2s; white-space: nowrap; }
.rail:hover a span { opacity: 1; transform: none; }
@media (max-width: 1240px) { .rail { display: none; } }
.route-clock { position: fixed; right: 1rem; top: 4.8rem; z-index: 45; display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0.75rem; border-radius: 999px; background: rgba(13,12,11,0.7); border: 1px solid var(--line); font: 400 0.76rem var(--mono); letter-spacing: 0.08em; color: var(--washi); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.route-clock.show { opacity: 1; }
.route-bar { width: 3.5rem; height: 2px; background: rgba(241,232,214,0.15); }
.route-bar i { display: block; height: 100%; width: 0; background: var(--gold); }

/* --------------------------------------------------------------- STOPS */
.stop, .close { position: relative; padding-block: clamp(4rem, 14vh, 9rem); }
.panel, .stop > .wrap, .close > .wrap {
  position: relative; width: min(100% - 2rem, 1060px); margin-inline: auto;
  background: rgba(13, 12, 11, 0.9); color: var(--washi); border: 1px solid var(--line); border-radius: 2px;
  padding: clamp(1.5rem, 4.5vw, 3.6rem); box-shadow: 0 40px 100px -40px rgba(0,0,0,0.8);
}
.stop > .wrap::before, .stop > .wrap::after, .close > .wrap::before, .close > .wrap::after {
  content: ""; position: absolute; width: 22px; height: 22px; border-color: var(--gold); border-style: solid; opacity: 0.7; pointer-events: none;
}
.stop > .wrap::before, .close > .wrap::before { top: 12px; left: 12px; border-width: 1px 0 0 1px; }
.stop > .wrap::after, .close > .wrap::after { bottom: 12px; right: 12px; border-width: 0 1px 1px 0; }
.stop[data-tone="light"] > .wrap { background: rgba(241, 232, 214, 0.97); color: var(--ink); border-color: rgba(27,24,19,0.12); }
.stop[data-tone="light"] > .wrap::before, .stop[data-tone="light"] > .wrap::after { border-color: var(--vermilion); opacity: 0.6; }
.stop-head { display: grid; grid-template-columns: auto 1fr; gap: 0.4rem 1.4rem; align-items: start; margin-bottom: clamp(1.8rem, 3.5vw, 2.8rem); }
.seal { grid-row: span 3; width: clamp(3.4rem, 6vw, 4.6rem); aspect-ratio: 1; display: grid; place-items: center; border: 1.5px solid var(--vermilion); color: var(--vermilion); border-radius: 4px; font: 700 clamp(1.5rem, 2.8vw, 2.1rem)/1 var(--mincho); transition: all 0.5s var(--ease); position: relative; }
.seal.two { font-size: clamp(1.05rem, 2vw, 1.45rem); letter-spacing: 0.05em; writing-mode: vertical-rl; }
.stop.done .seal { background: var(--vermilion); color: var(--washi); transform: rotate(-4deg); box-shadow: inset 0 0 0 3px rgba(241,232,214,0.22); }
.stop.done .seal.stamp { animation: stamp 0.5s cubic-bezier(.3,1.6,.5,1); }
@keyframes stamp { 0% { transform: scale(1.7) rotate(-12deg); opacity: 0; } 100% { transform: rotate(-4deg); opacity: 1; } }
.clock { font: 400 0.74rem/1.4 var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); display: flex; gap: 0.8rem; flex-wrap: wrap; align-items: baseline; }
.clock small { font-size: inherit; color: var(--mist); letter-spacing: 0.1em; }
.stop[data-tone="light"] .clock { color: var(--vermilion); }
.stop[data-tone="light"] .clock small { color: var(--ink-soft); }
.stop h2 { font-size: var(--s4); font-weight: 500; line-height: 1.12; }
.stop[data-tone="light"] h2 { color: var(--ink); }
.lede { font: 400 var(--s1)/1.6 var(--mincho); max-width: 38rem; color: rgba(241,232,214,0.8); }
.stop[data-tone="light"] .lede { color: var(--ink-soft); }
.more { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.6rem; font: 400 0.74rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--gold); }
.more::after { content: "→"; transition: transform 0.2s; }
.more:hover::after { transform: translateX(4px); }
.stop[data-tone="light"] .more { color: var(--vermilion); }
.quote { font: 400 italic var(--s2)/1.4 var(--mincho); max-width: 36rem; padding-left: 1.2rem; border-left: 1px solid var(--gold); }
.quote cite { display: block; margin-top: 0.7rem; font: 400 0.72rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; font-style: normal; opacity: 0.7; }
.inkline { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease); }
.inkline.inked { clip-path: inset(0 -2% 0 0); }
@media (prefers-reduced-motion: reduce) { .inkline, .brush { clip-path: none !important; animation: none !important; } }

/* --------------------------------------------------------------- RECEIPT */
.shelf-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: 0.45rem; margin-top: 0.7rem; }
.shelf-items button { text-align: left; padding: 0.7rem 0.8rem; min-height: 3.6rem; border-radius: var(--r); border: 1px solid var(--gold-dim); background: rgba(241,232,214,0.03); font: 500 0.95rem/1.2 var(--mincho); transition: border-color 0.15s, transform 0.12s; }
.shelf-items button small { display: block; margin-top: 0.25rem; font: 400 0.76rem var(--mono); color: var(--gold); }
.shelf-items button:hover { border-color: var(--gold); }
.shelf-items button:active { transform: scale(0.97); }
.shelf-items button.added { animation: added 0.5s ease; }
@keyframes added { 30% { background: rgba(216,67,43,0.3); border-color: var(--vermilion); } }
.own-item { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 0.55rem; align-items: end; margin-top: 1rem; }
@media (max-width: 520px) { .own-item { grid-template-columns: 1fr 1fr; } .own-item .btn { grid-column: 1 / -1; } }
.receipt-col { display: grid; gap: 1rem; align-content: start; position: sticky; top: 6rem; }
@media (max-width: 880px) { .receipt-col { position: static; } }
.receipt {
  --zig: 9px; position: relative; color: #1d1d1b; background: #fbf6ea; font: 500 0.92rem/1.5 var(--till);
  padding: 1.8rem clamp(1.1rem, 3vw, 1.8rem) 2.2rem; max-width: 29rem; width: 100%; margin-inline: auto; transform: rotate(0.6deg);
  box-shadow: 0 30px 60px -25px rgba(0,0,0,0.7);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zig) * 2) var(--zig) repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - var(--zig) + 1px) no-repeat;
          mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zig) * 2) var(--zig) repeat-x, linear-gradient(#000 0 0) top / 100% calc(100% - var(--zig) + 1px) no-repeat;
}
.receipt::after { content: "PAID IN TIME"; position: absolute; right: 1.2rem; top: 5.2rem; width: 5.4rem; height: 5.4rem; display: grid; place-items: center; text-align: center; padding: 0.6rem; border: 2px solid rgba(216,67,43,0.75); border-radius: 50%; color: rgba(216,67,43,0.75); font: 700 0.62rem/1.25 var(--mincho); letter-spacing: 0.06em; transform: rotate(-14deg); pointer-events: none; }
.receipt-head { text-align: center; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.receipt-head small { display: block; font-weight: 400; letter-spacing: 0.04em; text-transform: none; opacity: 0.6; margin-top: 0.2rem; }
.receipt-meta { display: flex; justify-content: space-between; font-size: 0.78rem; opacity: 0.6; margin-top: 0.6rem; }
.receipt hr { border: 0; border-top: 1.5px dashed rgba(29,29,27,0.45); margin: 0.9rem 0; }
.receipt .row { display: flex; justify-content: space-between; gap: 1rem; }
.receipt .row span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.receipt .total { margin-top: 0.5rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.receipt .big { display: block; text-align: center; font: 700 clamp(2.3rem, 6.5vw, 3.3rem)/1 var(--mincho); margin: 0.6rem 0 0.2rem; font-variant-numeric: tabular-nums; }
.receipt .big-sub { display: block; text-align: center; font-size: 0.86rem; }
.receipt .small { font-size: 0.78rem; }
.receipt-lines { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.1rem; max-height: 15rem; overflow-y: auto; }
.receipt-lines li { display: grid; grid-template-columns: 1fr auto auto auto; gap: 0.6rem; align-items: baseline; }
.receipt-lines .p { opacity: 0.55; font-variant-numeric: tabular-nums; }
.receipt-lines .t { font-weight: 700; font-variant-numeric: tabular-nums; min-width: 5rem; text-align: right; }
.receipt-lines button { border: 0; background: none; padding: 0 0.15rem; font: 700 1rem var(--till); opacity: 0.35; color: inherit; }
.receipt-lines button:hover { opacity: 1; }
.receipt-lines li.new { animation: lineIn 0.35s ease; }
@keyframes lineIn { from { opacity: 0; transform: translateY(-6px); background: #f5dccd; } }
.receipt-empty { text-align: center; opacity: 0.55; padding: 0.5rem 0; }
.receipt-foot { text-align: center; font-size: 0.8rem; opacity: 0.7; margin-top: 0.8rem; }
.receipt-barcode { height: 30px; margin: 1rem auto 0; width: 66%; background: repeating-linear-gradient(90deg, #1d1d1b 0 2px, transparent 2px 4px, #1d1d1b 4px 5px, transparent 5px 8px, #1d1d1b 8px 11px, transparent 11px 12px); opacity: 0.8; }
.shifts { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 0.9rem 0 0.4rem; }
.shifts i { height: 16px; border: 1.5px solid #1d1d1b; position: relative; overflow: hidden; }
.shifts i::after { content: ""; position: absolute; inset: 0; width: var(--fill, 0%); background: var(--vermilion); transition: width 0.4s; }
.receipt-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }

/* --------------------------------------------------------------- CALLOUTS */
.callout { align-self: start; padding: 1.5rem 1.6rem; border-radius: var(--r); background: rgba(241,232,214,0.05); border: 1px solid var(--line); }
.stop[data-tone="light"] .callout { background: var(--ink); color: var(--washi); border: 0; }
.callout .num { font: 600 var(--s3)/1.05 var(--mincho); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.callout .row { display: flex; justify-content: space-between; gap: 1rem; padding-top: 0.5rem; }
.big-stat { font: 600 var(--s4)/1.02 var(--mincho); color: var(--gold-2); font-variant-numeric: tabular-nums; }
.stop[data-tone="light"] .big-stat { color: var(--vermilion); }
.big-stat-sub { font: 400 var(--s1)/1.5 var(--mincho); margin-top: 0.4rem; }
.help-links { margin-top: 1.2rem; font-size: 0.88rem; opacity: 0.85; }
.help-links a { margin-right: 0.8rem; }

/* --------------------------------------------------------------- DECODER */
.decoder { display: grid; gap: 1.1rem; }
.ad-card { position: relative; min-height: 11rem; display: grid; place-items: center; text-align: center; padding: 2rem 1.5rem; border-radius: var(--r); background: #08070a; border: 1px solid rgba(79,182,166,0.35); box-shadow: 0 0 60px -20px rgba(79,182,166,0.35) inset; overflow: hidden; }
.ad-card::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0 1px, transparent 1px 3px); }
.ad-count { position: absolute; top: 0.8rem; left: 1rem; font: 400 0.7rem var(--mono); letter-spacing: 0.12em; opacity: 0.6; }
.ad-text { position: relative; font: 600 var(--s2)/1.3 var(--mincho); max-width: 22ch; }
.verdicts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; }
.verdicts button { min-height: 3.6rem; border-radius: var(--r); border: 1px solid var(--gold-dim); background: transparent; text-align: left; padding: 0.6rem 0.8rem; font: 600 1rem/1.15 var(--mincho); }
.verdicts button small { display: block; font: 400 0.7rem/1.3 var(--gothic); opacity: 0.65; margin-top: 0.2rem; }
.verdicts button:hover { border-color: var(--gold); }
.verdicts button.right { background: var(--gold); color: var(--sumi); border-color: var(--gold); }
.verdicts button.wrong { border-color: var(--vermilion); opacity: 0.55; }
.verdict-note { min-height: 2.8rem; font-size: 0.95rem; }
.score { font: 400 0.74rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 520px) { .verdicts { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- CAGE */
.cage .bars { display: none; }
.no-form { display: flex; flex-wrap: wrap; gap: 0.55rem; max-width: 44rem; }
.no-form .input { flex: 1 1 16rem; }
.steps-4 { counter-reset: s; list-style: none; padding: 0; margin-top: 2rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.8rem; }
.steps-4 li { counter-increment: s; padding: 1.1rem; border: 1px solid var(--line); border-radius: var(--r); }
.steps-4 li::before { content: counter(s); display: block; font: 700 1.4rem/1 var(--mincho); color: var(--vermilion); margin-bottom: 0.6rem; }
.steps-4 h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.steps-4 p { font-size: 0.9rem; opacity: 0.8; }
@media (max-width: 880px) { .steps-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .steps-4 { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- MORNING */
.protocol { list-style: none; padding: 0; border-top: 1px solid var(--line-ink); }
.protocol li { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line-ink); align-items: baseline; }
.protocol b { font: 400 0.82rem var(--mono); color: var(--vermilion); }
.protocol strong { font: 600 1.05rem var(--mincho); margin-right: 0.5rem; }
.breath-wrap { display: grid; justify-items: center; gap: 1.2rem; }
.orb { width: min(14rem, 60vw); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; text-align: center; font: 500 1.1rem/1.2 var(--mincho); color: var(--ink);
  background: radial-gradient(circle, rgba(216,67,43,0.95) 0 58%, rgba(216,67,43,0.2) 59% 62%, transparent 63%); color: var(--washi); transform: scale(0.74); }
.orb.go { animation: breathe 10s ease-in-out infinite; }
@keyframes breathe { 0% { transform: scale(0.74); } 40% { transform: scale(1); } 100% { transform: scale(0.74); } }

/* --------------------------------------------------------------- WORK / LUNCH / FREEDOM */
.rules { list-style: none; padding: 0; }
.rules li { display: grid; grid-template-columns: 2rem 1fr; gap: 0.6rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line-ink); }
.rules b { font: 700 1.1rem/1.3 var(--mincho); color: var(--vermilion); }
.rules strong { font: 600 1.05rem var(--mincho); display: block; }
.plates { display: grid; align-content: start; }
.plate-row { display: grid; grid-template-columns: 4.5rem 1fr 6rem; gap: 0.8rem; align-items: center; padding: 0.55rem 0; }
.plate-label { font: 400 0.74rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.plate-bar { height: 14px; background: rgba(27,24,19,0.08); }
.plate-bar i { display: block; height: 100%; width: 0; background: var(--ink); transition: width 0.4s; }
.plate-row:first-child .plate-bar i { background: var(--vermilion); }
.plate-row b { font: 600 1.05rem var(--mincho); text-align: right; font-variant-numeric: tabular-nums; }
.try { margin-top: 1.4rem; padding: 1rem 1.1rem; border-left: 2px solid var(--vermilion); background: rgba(216,67,43,0.06); font-size: 0.95rem; }
.try strong { display: block; font: 400 0.7rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--vermilion); margin-bottom: 0.2rem; }
.calendar { display: grid; grid-template-columns: repeat(auto-fill, minmax(11px, 1fr)); gap: 3px; margin-top: 1.2rem; }
.calendar i { aspect-ratio: 1; background: rgba(27,24,19,0.1); }
.calendar i.f { background: var(--vermilion); }

/* --------------------------------------------------------------- TOGETHER */
.together { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.together article { padding: 1.4rem 1.4rem 1.6rem 0; border-bottom: 1px solid var(--line); }
.together article:nth-child(odd) { padding-right: 1.8rem; border-right: 1px solid var(--line); }
.together article:nth-child(even) { padding-left: 1.8rem; }
.together h3 { font-size: var(--s2); color: var(--gold-2); margin-bottom: 0.5rem; }
.together p { font-size: 0.95rem; opacity: 0.85; }
.together a { font: 400 0.74rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
@media (max-width: 760px) { .together { grid-template-columns: 1fr; } .together article:nth-child(n) { padding: 1.2rem 0; border-right: 0; } }

/* --------------------------------------------------------------- CLOSE */
.close { text-align: center; }
.close h2 { font-size: var(--s5); font-weight: 500; line-height: 1.08; }
.close h2 + p { max-width: 32rem; margin: 1.2rem auto 0; font: 400 var(--s1)/1.6 var(--mincho); opacity: 0.85; }
.cup { width: 5rem; height: 5rem; margin: 0 auto 1.2rem; overflow: visible; }
.steam path { animation: steam 3.2s ease-in-out infinite; }
.steam path:nth-child(2) { animation-delay: 0.6s; } .steam path:nth-child(3) { animation-delay: 1.2s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(10px); } 40% { opacity: 0.8; } 100% { opacity: 0; transform: translateY(-14px); } }
.stub { max-width: 40rem; margin: 3rem auto 0; text-align: left; }
.stub-card { position: relative; background: var(--washi); color: var(--ink); padding: clamp(1.4rem, 4vw, 2.2rem); border-radius: 2px; box-shadow: 0 30px 70px -30px rgba(0,0,0,0.8); }
.stub-card::after { content: ""; box-shadow: inset 0 0 0 9px var(--vermilion), inset 0 0 0 11px var(--washi); position: absolute; right: 1.4rem; top: 1.4rem; width: 3rem; height: 3rem; display: grid; place-items: center; background: var(--vermilion); color: var(--washi); font: 700 1.4rem/1 var(--mincho); border-radius: 3px; transform: rotate(-6deg); }
.stub-head { padding-bottom: 1rem; border-bottom: 1px solid var(--line-ink); margin-bottom: 1.2rem; }
.stub-kick { font: 400 0.7rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--vermilion); }
.stub-head h3 { font-size: var(--s3); margin-top: 0.3rem; }
.stub-date { font: 400 0.8rem var(--mono); opacity: 0.6; margin-top: 0.3rem; }
.stub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 1rem 1.4rem; }
.stub-grid dt { font: 400 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.65; }
.stub-grid dd { font: 600 var(--s2)/1.1 var(--mincho); margin-top: 0.15rem; font-variant-numeric: tabular-nums; }
.stub-grid dd small { display: block; font: 400 0.78rem var(--gothic); opacity: 0.6; margin-top: 0.15rem; }
.stub-empty { grid-column: 1 / -1; }
.stub-no { margin-top: 1.2rem; padding: 0.9rem 1rem; border-left: 2px solid var(--vermilion); background: rgba(216,67,43,0.06); }
.stub-next { margin-top: 1.4rem; padding-top: 1.1rem; border-top: 1px solid var(--line-ink); }
.stub-sub { font: 400 0.7rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.6rem; }
.stub-next ol { margin: 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; }
.stub-next li a { font: 600 1.05rem var(--mincho); color: var(--ink); text-decoration-color: var(--vermilion); }
.stub-next li span { display: block; font-size: 0.88rem; opacity: 0.7; }
.stub-foot { margin-top: 1.2rem; font: 400 0.72rem var(--mono); opacity: 0.55; }
.stub-actions, .share-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-top: 1.4rem; }
.share-line { flex-direction: column; align-items: center; margin-top: 2.6rem; }
.door-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 0.6rem; margin-top: 3rem; text-align: left; }
.door-links a { display: block; padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color 0.2s, background 0.2s; }
.door-links a:hover { border-color: var(--gold); background: rgba(201,162,74,0.06); color: var(--washi); }
.door-links strong { display: block; font: 600 1.15rem var(--mincho); margin-bottom: 0.2rem; }
.door-links span { font-size: 0.85rem; opacity: 0.65; }

/* --------------------------------------------------------------- PROGRESS SEALS (ticket) */
.ticket { position: fixed; left: 1rem; bottom: 1rem; z-index: 46; opacity: 0; transform: translateY(10px); transition: opacity 0.3s, transform 0.3s; pointer-events: none; }
.ticket.show { opacity: 1; transform: none; pointer-events: auto; }
.ticket-btn { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0.8rem; border: 1px solid var(--line); border-radius: 999px; background: rgba(13,12,11,0.85); color: var(--washi); font: 400 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.ticket-holes { display: flex; gap: 3px; }
.ticket-holes i { width: 9px; height: 9px; border: 1px dashed rgba(241,232,214,0.45); border-radius: 1px; }
.ticket-holes i.p { background: var(--vermilion); border: 0; }
.ticket-holes i.bang { animation: stamp 0.5s cubic-bezier(.3,1.6,.5,1); }
.ticket.done .ticket-btn { border-color: var(--vermilion); }
.ticket-panel { position: absolute; left: 0; bottom: calc(100% + 0.6rem); width: min(18rem, calc(100vw - 2rem)); padding: 1rem 1.1rem; background: var(--washi); color: var(--ink); border-radius: 2px; box-shadow: 0 20px 50px -15px rgba(0,0,0,0.7); }
.ticket-title { font: 600 1.05rem var(--mincho); margin-bottom: 0.4rem; }
.ticket-panel ol { list-style: none; padding: 0; margin: 0; }
.ticket-panel li a { display: flex; gap: 0.6rem; padding: 0.3rem 0; text-decoration: none; font-size: 0.9rem; }
.ticket-panel li a b { font: 400 0.75rem var(--mono); min-width: 2.8rem; padding-top: 0.15rem; color: var(--ink-soft); }
.ticket-panel li.p a::after { content: "✓"; margin-left: auto; color: var(--vermilion); font: 700 0.9rem var(--mincho); }
.ticket-reset { margin-top: 0.5rem; background: none; border: 0; padding: 0.3rem 0; font: 400 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); text-decoration: underline; }
@media (max-width: 620px) { .ticket-name { display: none; } }
.toast { position: fixed; left: 50%; bottom: 1.2rem; transform: translateX(-50%); z-index: 47; width: max-content; max-width: calc(100vw - 2rem); padding: 0.75rem 1.1rem; border-radius: 999px; background: var(--washi); color: var(--ink); font-size: 0.9rem; box-shadow: 0 16px 40px -12px rgba(0,0,0,0.7); }
.toast strong { color: var(--vermilion); font-weight: 700; }
.toast a { color: var(--ink); font-weight: 700; text-decoration-color: var(--vermilion); }
.toast.in { animation: toastIn 0.45s var(--ease); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 12px); } }
@media (max-width: 620px) { .toast { bottom: 4.4rem; border-radius: 10px; } }

/* --------------------------------------------------------------- CURSOR */
.ink-cursor { position: fixed; left: 0; top: 0; z-index: 90; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--vermilion); pointer-events: none; transition: width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease), background 0.25s, opacity 0.3s; mix-blend-mode: normal; opacity: 0; }
.ink-cursor.on { opacity: 1; }
.ink-cursor.big { width: 40px; height: 40px; margin: -20px 0 0 -20px; background: rgba(216,67,43,0.18); border: 1px solid var(--vermilion); }

/* --------------------------------------------------------------- WISDOM + FOOTER */
.wisdom-band { padding-block: clamp(2.8rem, 7vw, 4.5rem); background: var(--sumi); border-top: 1px solid var(--line); }
.wisdom-label { font: 400 0.7rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.9rem; }
.wisdom-btn { display: block; width: 100%; max-width: 50rem; text-align: left; background: none; border: 0; padding: 0; color: var(--washi); }
.wisdom-q { font: 400 var(--s2)/1.45 var(--mincho); }
.wisdom-btn cite { display: block; margin-top: 0.8rem; font: 400 0.72rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; font-style: normal; color: var(--mist); }
.wisdom-btn small { display: inline-block; margin-top: 0.5rem; font: 400 0.68rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--mist); opacity: 0.6; }
.wisdom-btn:hover small { opacity: 1; color: var(--gold); }
.foot { padding-block: 2.4rem 3rem; background: var(--sumi); color: var(--mist); border-top: 1px solid var(--line); font-size: 0.85rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1.4rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font: 400 0.7rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--washi); }
.foot-extras { width: 100%; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.boss-hint, .egg-btn { background: none; border: 1px dashed var(--line); border-radius: 999px; padding: 0.4rem 0.9rem; font: 400 0.68rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); }
.boss-hint:hover, .egg-btn:hover { color: var(--washi); border-color: var(--gold); }
.egg-wrap { position: relative; }
.egg-panel { position: absolute; right: 0; bottom: calc(100% + 0.6rem); width: min(20rem, calc(100vw - 2rem)); padding: 1rem 1.1rem; background: var(--washi); color: var(--ink); border-radius: 2px; box-shadow: 0 20px 50px -15px rgba(0,0,0,0.7); z-index: 5; }
.egg-title { font: 600 1rem var(--mincho); margin-bottom: 0.4rem; }
.egg-panel ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.5rem; }
.egg-panel li { display: grid; font-size: 0.85rem; }
.egg-panel li strong { font: 600 0.95rem var(--mincho); }
.egg-panel li.got strong { color: var(--vermilion); }
.egg-panel li.got strong::after { content: " ✓"; }
.egg-toast { position: fixed; left: 50%; top: 5rem; transform: translate(-50%, -16px); opacity: 0; pointer-events: none; z-index: 90; width: max-content; max-width: calc(100vw - 2rem); padding: 0.85rem 1.2rem; background: var(--washi); color: var(--ink); font-size: 0.92rem; border-radius: 2px; box-shadow: 0 20px 50px -15px rgba(0,0,0,0.7); transition: opacity 0.3s, transform 0.3s; }
.egg-toast.in { opacity: 1; transform: translate(-50%, 0); }
.egg-toast strong { font-family: var(--mincho); color: var(--vermilion); }
.egg-count { display: block; font: 400 0.68rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.6; margin-top: 0.2rem; }

/* --------------------------------------------------------------- EGGS */
.boss { position: fixed; inset: 0; z-index: 200; background: #fff; color: #222; font: 13px/1.3 Calibri, "Segoe UI", Arial, sans-serif; display: grid; grid-template-rows: auto auto auto 1fr; cursor: default; }
.boss-bar { display: flex; justify-content: space-between; padding: 6px 12px; background: #217346; color: #fff; font-size: 12px; }
.boss-ribbon { padding: 8px 12px; background: #f3f3f3; border-bottom: 1px solid #ddd; color: #444; white-space: pre; overflow: hidden; }
.boss-fx { padding: 4px 12px; border-bottom: 1px solid #ddd; white-space: nowrap; overflow: hidden; }
.boss-fx b { color: #888; margin-right: 8px; font-style: italic; }
.boss-sheet { overflow: auto; }
.boss table { border-collapse: collapse; min-width: 100%; }
.boss th, .boss td { border: 1px solid #e1e1e1; padding: 3px 8px; text-align: right; white-space: nowrap; }
.boss thead th, .boss tbody th { background: #f3f3f3; color: #666; font-weight: 400; text-align: center; }
.boss tbody tr:first-child td { font-weight: 700; text-align: left; }
.strike { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 1rem; background: repeating-linear-gradient(-45deg, var(--vermilion) 0 34px, var(--sumi) 34px 68px); animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; } }
.placard { max-width: 32rem; padding: clamp(1.4rem, 4vw, 2.4rem); background: var(--washi); color: var(--ink); border-radius: 2px; box-shadow: 0 30px 80px rgba(0,0,0,0.6); transform: rotate(-1.5deg); }
.strike-kick { font: 400 0.72rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--vermilion); }
.placard h2 { font-size: var(--s4); line-height: 1.05; margin: 0.4rem 0 1rem; }
.placard ul { margin: 0 0 1.4rem; padding-left: 1.2rem; font: 600 var(--s1)/1.5 var(--mincho); }
.enlighten { position: fixed; inset: 0; z-index: 160; display: grid; place-content: center; justify-items: center; gap: 1.2rem; text-align: center; background: var(--washi); color: var(--ink); animation: fadeIn 1.2s ease-out; }
.enl-orb { width: 10rem; height: 10rem; border-radius: 50%; border: 10px solid var(--ink); border-right-color: transparent; transform: rotate(-30deg); animation: enso 2.4s var(--ease); }
@keyframes enso { from { clip-path: polygon(50% 50%, 50% 0, 50% 0); } 50% { clip-path: polygon(50% 50%, 50% 0, 100% 0, 100% 100%, 0 100%); } to { clip-path: polygon(50% 50%, 50% 0, 100% 0, 100% 100%, 0 100%, 0 0, 50% 0); } }
.enlighten p { font: 400 italic var(--s4)/1 var(--mincho); }
.enlighten small { font: 400 0.75rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; }
.brew { position: fixed; right: 1rem; bottom: 4.6rem; z-index: 80; display: flex; align-items: center; gap: 0.7rem; padding: 0.7rem 0.9rem; background: var(--washi); color: var(--ink); font-size: 0.9rem; border-radius: 2px; box-shadow: 0 16px 40px -12px rgba(0,0,0,0.7); }
.brew b { font: 600 1rem var(--mincho); font-variant-numeric: tabular-nums; }
.brew button { border: 0; background: none; font-size: 1.2rem; color: inherit; }
.brew-steam { font-size: 1.3rem; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-3px); opacity: 0.6; } }

/* --------------------------------------------------------------- BREAK ROOM */
.break-btn { position: fixed; right: 1rem; bottom: 1rem; z-index: 49; width: 2.9rem; height: 2.9rem; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: rgba(13,12,11,0.8); color: var(--washi); font-size: 1.15rem; opacity: 0.8; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: opacity 0.2s, border-color 0.2s; }
.break-btn:hover, .break-btn[aria-expanded="true"] { opacity: 1; border-color: var(--gold); }
.break-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.break-room { position: fixed; right: 1rem; bottom: 4.5rem; z-index: 60; width: min(26rem, calc(100vw - 2rem)); max-height: calc(100svh - 7rem); overflow: auto; padding: 1rem; background: var(--washi); color: var(--ink); border-radius: 2px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7); }
.br-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.2rem 0.3rem 0.8rem; font-size: 0.9rem; }
.br-head strong { font: 600 1.1rem var(--mincho); margin-right: 0.3rem; }
.x { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid var(--line-ink); background: transparent; color: var(--ink); font-size: 1.1rem; flex: none; }
.br-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.45rem; }
.br-tile { text-align: left; padding: 0.75rem 0.8rem; border: 1px solid var(--line-ink); border-radius: 2px; background: transparent; color: var(--ink); display: grid; gap: 0.15rem; transition: background 0.15s, border-color 0.15s; }
.br-tile:hover { border-color: var(--vermilion); background: rgba(216,67,43,0.05); }
.br-tile strong { font: 600 0.98rem/1.2 var(--mincho); }
.br-tile span { font-size: 0.76rem; opacity: 0.7; }
.br-pane:not(:empty) { margin-top: 0.9rem; padding: 1rem; background: #fff; display: grid; gap: 0.6rem; }
.br-pane h3 { font-size: 1.1rem; }
.br-pane textarea { min-height: 6rem; resize: vertical; font: 400 0.95rem var(--gothic); }
.br-pane .btn { justify-self: start; }
.br-pane .wisdom-q { font-size: 1.15rem; }
.ticker-out { font: 600 var(--s2)/1.15 var(--mincho); font-variant-numeric: tabular-nums; }
.br-pane input[type=time] { width: auto; min-height: 2.4rem; display: inline-block; margin-left: 0.3rem; }
.shred-stage { position: relative; height: 0; }
.shred-stage:has(.strip) { height: 8rem; overflow: hidden; }
.strip { position: absolute; top: 0; height: 100%; left: calc(var(--i) * 100% / var(--n)); width: calc(100% / var(--n)); overflow: hidden; background: #fffdf6; border-left: 1px dashed #d8cfbd; animation: shred 1.7s cubic-bezier(.5,0,.8,.6) forwards; animation-delay: calc(var(--i) * 40ms + 250ms); }
.strip-in { position: absolute; top: 0; padding: 0.6rem; font-size: 0.88rem; line-height: 1.35; }
@keyframes shred { to { transform: translateY(160%) rotate(var(--r)); opacity: 0.2; } }
.shred-done { font: 600 1rem var(--mincho); color: var(--vermilion); }
@media (max-width: 620px) { .break-room { right: 0.5rem; width: calc(100vw - 1rem); } }

/* --------------------------------------------------------------- INNER PAGES */
.page-head { padding-block: clamp(3.5rem, 10vw, 7rem) clamp(2rem, 5vw, 3.5rem); }
.page-head .wrap { display: grid; grid-template-columns: auto 1fr; gap: 0.6rem 1.6rem; align-items: start; }
.page-head .seal { grid-row: span 2; }
.page-head h1 { font-size: var(--s5); font-weight: 500; line-height: 1.06; }
.page-head p { grid-column: 2; max-width: 36rem; font: 400 var(--s1)/1.6 var(--mincho); opacity: 0.82; margin-top: 0.4rem; }
@media (max-width: 620px) { .page-head .wrap { grid-template-columns: 1fr; } .page-head .seal { grid-row: auto; } .page-head p { grid-column: 1; } }
.section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.section-title { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.section-title h2 { font-size: var(--s3); font-weight: 500; }
.section-title p { max-width: 32rem; font-size: 0.95rem; opacity: 0.75; }
.paper { background: var(--washi); color: var(--ink); }
.paper .section-title { border-bottom-color: var(--line-ink); }
.paper .bar { background: rgba(241, 232, 214, 0.88); border-bottom-color: var(--line-ink); }
.paper .mark { color: var(--ink); }
.paper .nav a { color: var(--ink-soft); }
.paper .nav a:hover, .paper .nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--vermilion); }
.paper .nav-toggle, .paper .cur select { color: var(--ink); border-color: var(--line-ink); }
.paper .chip { border-color: var(--line-ink); }
.paper .btn-ghost { border-color: var(--line-ink); }
.paper .btn-ghost:hover { border-color: var(--vermilion); color: var(--vermilion); }
.paper .kick, .paper .mono { color: var(--vermilion); }
.paper a { text-decoration-color: var(--vermilion); }
.paper a:hover { color: var(--vermilion); }
@media (max-width: 980px) { .paper .nav { background: var(--washi); border-bottom-color: var(--line-ink); } .paper .nav a { border-bottom-color: var(--line-ink); } }
.next-stop { display: grid; grid-template-columns: 1fr auto; gap: 1rem 2rem; align-items: center; padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 2px; text-decoration: none; }
.paper .next-stop { border-color: var(--line-ink); }
.next-stop small { display: block; font: 400 0.7rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; }
.next-stop strong { display: block; font: 600 var(--s2)/1.15 var(--mincho); margin-top: 0.2rem; }
.next-stop .d { display: block; margin-top: 0.3rem; opacity: 0.75; font-size: 0.92rem; }
.next-stop .arrow { font: 400 var(--s3)/1 var(--mincho); transition: transform 0.2s; }
.next-stop:hover .arrow { transform: translateX(6px); }

/* school */
.teach { position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(1.4rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.5rem, 4vw, 3rem); background: var(--ink); color: var(--washi); border-radius: 2px; }
.teach h2 { font-size: var(--s4); font-weight: 500; line-height: 1.08; }
.teach p { margin-top: 0.8rem; max-width: 24rem; opacity: 0.8; }
.teach .btn { margin-top: 1.5rem; }
.progress { display: flex; align-items: center; gap: 0.8rem; margin-top: 1.2rem; font: 400 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.progress-bar { flex: 1; max-width: 12rem; height: 2px; background: rgba(241,232,214,0.2); }
.progress-bar i { display: block; height: 100%; width: var(--p, 0%); background: var(--vermilion); transition: width 0.5s; }
.lesson-card { position: relative; background: var(--washi); color: var(--ink); padding: clamp(1.4rem, 3vw, 2.2rem); border-radius: 2px; box-shadow: 0 30px 60px -25px rgba(0,0,0,0.6); }
.lesson-card.flip { animation: flip 0.55s var(--ease); }
@keyframes flip { from { transform: perspective(900px) rotateY(-70deg); opacity: 0; } }
.lesson-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; font: 400 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--vermilion); }
.lesson-meta a { color: var(--ink-soft); }
.lesson-card h3 { font-size: var(--s3); font-weight: 500; margin: 0.5rem 0 0.9rem; }
.lesson-card .body p + p { margin-top: 0.7rem; }
.lesson-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.3rem; }
.lesson-card .btn-ghost { border-color: var(--line-ink); color: var(--ink); }
.subject-bar { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.6rem; }
.lessons { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1px; background: var(--line-ink); border: 1px solid var(--line-ink); }
.lessons button { text-align: left; background: var(--washi); border: 0; padding: 1.2rem 1.2rem 1.4rem; display: grid; gap: 0.35rem; align-content: start; min-height: 8rem; color: var(--ink); }
.lessons button:hover { background: #f8f1e3; }
.lessons .subj { font: 400 0.66rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--vermilion); }
.lessons strong { font: 600 1.12rem/1.25 var(--mincho); }
.lessons .mins { font: 400 0.7rem var(--mono); opacity: 0.6; }
.lessons .done strong::after { content: " ✓"; color: var(--vermilion); }
dialog.lesson-dialog, dialog.book-dialog { border: 0; padding: 0; background: transparent; width: min(40rem, calc(100% - 2rem)); max-height: calc(100% - 2rem); }
dialog::backdrop { background: rgba(5,4,3,0.7); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
dialog .x { position: absolute; right: 0.8rem; top: 0.8rem; z-index: 2; background: var(--washi); }
@media (max-width: 880px) { .teach { grid-template-columns: 1fr; } }

/* library */
.shelf-wrap { background: linear-gradient(180deg, #1c120b, #120b07); border: 1px solid var(--line); padding: clamp(0.8rem, 3vw, 2rem); }
.shelf + .shelf { margin-top: 1.2rem; }
.shelf h3 { font: 400 0.72rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.5rem 0.2rem; }
.spines { display: flex; align-items: flex-end; gap: 3px; overflow-x: auto; padding: 1.2rem 0.2rem 0; scrollbar-width: thin; scrollbar-color: #6b4a2f transparent; }
.shelf::after { content: ""; display: block; height: 14px; background: linear-gradient(180deg, #6e4a2c, #3e2716); box-shadow: 0 10px 18px rgba(0,0,0,0.5); }
.spine { flex: none; width: var(--w, 46px); height: var(--h, 220px); border: 0; border-radius: 2px 2px 1px 1px; padding: 0.6rem 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.3), rgba(255,255,255,0.1) 18%, transparent 40%, rgba(0,0,0,0.3)), var(--c); color: var(--tc, #fff);
  writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; justify-content: space-between; font: 600 0.84rem/1 var(--mincho); text-align: left; transition: transform 0.25s var(--ease); }
.spine small { font: 400 0.64rem var(--mono); opacity: 0.8; }
.spine:hover, .spine:focus-visible { transform: rotate(180deg) translateY(12px); }
.spine[aria-expanded="true"] { transform: rotate(180deg) translateY(22px); outline: 1px solid var(--gold-2); outline-offset: 2px; }
.spine.own { box-shadow: 0 0 22px rgba(201,162,74,0.6); }
.spine.lean { transform: rotate(186deg); margin-left: 10px; }
.book-card { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; padding: clamp(1.3rem, 4vw, 2rem); background: var(--washi); color: var(--ink); border-radius: 2px; box-shadow: 0 30px 80px -20px rgba(0,0,0,0.7); }
.book-card .cover { width: 6.5rem; aspect-ratio: 2/3; border-radius: 2px 6px 6px 2px; background: linear-gradient(90deg, rgba(0,0,0,0.3) 0 6%, rgba(255,255,255,0.15) 6% 8%, transparent 8%), var(--c); box-shadow: 6px 10px 22px rgba(0,0,0,0.35); display: grid; place-items: end start; padding: 0.7rem 0.6rem 0.7rem 1rem; font: 600 0.8rem/1.15 var(--mincho); color: var(--tc, #fff); }
.book-card h3 { font-size: var(--s2); padding-right: 2.4rem; }
.book-card .by { font: 400 0.75rem var(--mono); letter-spacing: 0.06em; opacity: 0.7; margin-top: 0.3rem; }
.book-card .why { margin-top: 0.7rem; font: 400 1.05rem/1.55 var(--mincho); }
.book-acts { display: grid; gap: 0.45rem; margin-top: 1.1rem; }
.book-act { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1rem; border: 1px solid var(--line-ink); border-radius: 2px; text-decoration: none; font: 400 0.74rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); }
.book-act::after { content: "↗"; }
.book-act.main { background: var(--ink); color: var(--washi); border-color: var(--ink); }
.book-act:hover { border-color: var(--vermilion); }
.book-note { margin-top: 0.8rem; font-size: 0.84rem; opacity: 0.7; }
@media (max-width: 520px) { .book-card { grid-template-columns: 1fr; } .book-card .cover { width: 5rem; } }
.watch-route { list-style: none; padding: 0; position: relative; }
.watch-route::before { content: ""; position: absolute; left: 1.1rem; top: 1rem; bottom: 1rem; width: 1px; background: var(--gold-dim); }
.watch-route li { position: relative; display: grid; grid-template-columns: 2.2rem 1fr auto; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.watch-route .n { position: relative; z-index: 1; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; background: var(--sumi); border: 1px solid var(--vermilion); color: var(--vermilion); font: 600 0.95rem var(--mincho); border-radius: 3px; }
.watch-route li.seen .n { background: var(--vermilion); color: var(--washi); transform: rotate(-4deg); }
.watch-route h3 { font-size: var(--s1); }
.watch-route .meta { font: 400 0.72rem var(--mono); letter-spacing: 0.06em; opacity: 0.6; margin-top: 0.2rem; }
.watch-route p { margin-top: 0.4rem; max-width: 42rem; font-size: 0.95rem; }
.note { margin-top: 0.6rem; padding: 0.7rem 0.9rem; border-left: 2px solid var(--gold); background: rgba(201,162,74,0.07); font-size: 0.88rem; }
.watch-links { display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; margin-top: 0.5rem; font: 400 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.seen-toggle { white-space: nowrap; }
@media (max-width: 620px) { .watch-route li { grid-template-columns: 2.2rem 1fr; } .seen-toggle { grid-column: 2; justify-self: start; } }
.docs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 0.8rem; }
.doc { padding: 1.2rem; border: 1px solid var(--line); border-radius: 2px; display: grid; gap: 0.35rem; align-content: start; }
.doc h3 { font-size: 1.15rem; }
.doc .meta { font: 400 0.7rem var(--mono); opacity: 0.6; }
.doc p { font-size: 0.92rem; }

/* toolkit */
.weeks { display: grid; grid-template-columns: repeat(104, 1fr); gap: 2px; margin-top: 1.4rem; }
.weeks i { aspect-ratio: 1; background: rgba(241,232,214,0.1); }
.weeks i.l { background: var(--mist); }
.weeks i.w { background: var(--vermilion); }
.weeks i.now { background: var(--gold-2); box-shadow: 0 0 8px var(--gold-2); }
@media (max-width: 760px) { .weeks { grid-template-columns: repeat(52, 1fr); gap: 1px; } }
.legend { display: flex; flex-wrap: wrap; gap: 0.8rem 1.4rem; margin-top: 1rem; font: 400 0.7rem var(--mono); letter-spacing: 0.08em; text-transform: uppercase; }
.legend span::before { content: ""; display: inline-block; width: 0.7rem; height: 0.7rem; margin-right: 0.45rem; vertical-align: -1px; background: var(--k); }
.subs { display: grid; gap: 0.5rem; }
.sub-row { display: grid; grid-template-columns: 1fr 8rem 2.6rem; gap: 0.5rem; }
.sub-row button { border: 1px solid var(--line); background: transparent; border-radius: var(--r); }
.arsenal { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.arsenal article { background: var(--sumi); padding: 1.2rem; display: grid; gap: 0.35rem; align-content: start; }
.arsenal .cat { font: 400 0.66rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.arsenal h3 { font-size: 1.2rem; }
.arsenal p { font-size: 0.9rem; opacity: 0.8; }
.arsenal .re { font: 400 0.7rem var(--mono); opacity: 0.6; }
.audio-panel { padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 2px; }
.audio-status { font: 400 0.8rem var(--mono); letter-spacing: 0.06em; color: var(--gold); margin: 1rem 0; min-height: 1.4rem; }

/* book */
.book-hero { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.book-object { justify-self: center; width: min(18rem, 66vw); aspect-ratio: 2/3; position: relative; display: grid; align-content: space-between; justify-items: center; text-align: center; padding: 2.4rem 1.6rem 1.8rem; text-decoration: none; color: var(--gold);
  background: #141414; box-shadow: 18px 24px 50px rgba(0,0,0,0.6), inset 0 0 0 10px #141414, inset 0 0 0 11px rgba(201,162,74,0.6); transform: perspective(1100px) rotateY(-12deg); transition: transform 0.6s var(--ease); }
.book-object:hover { transform: perspective(1100px) rotateY(-3deg); color: var(--gold-2); }
.book-object .t { font: 500 1.9rem/1.12 var(--mincho); letter-spacing: 0.04em; text-transform: uppercase; }
.book-object .s { display: block; margin-top: 1rem; padding-top: 0.8rem; border-top: 1px solid rgba(201,162,74,0.5); font: 400 italic 0.9rem var(--mincho); color: var(--mist); }
.book-object .a { font: 400 0.68rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--mist); }
@media (max-width: 880px) { .book-hero { grid-template-columns: 1fr; } .book-object { transform: none; } }
.chapters { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.chapters li { border-bottom: 1px solid var(--line); }
.chapters button { width: 100%; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding: 1rem 0; background: none; border: 0; text-align: left; color: inherit; }
.chapters .cn { font: 400 0.8rem var(--mono); color: var(--gold); }
.chapters .ct { font: 600 var(--s1)/1.2 var(--mincho); }
.chapters .cl { display: block; font: 400 italic 0.95rem/1.45 var(--mincho); opacity: 0.6; margin-top: 0.2rem; }
.chapters .plus { font: 400 1.4rem/1 var(--mincho); opacity: 0.6; transition: transform 0.25s; }
.chapters button[aria-expanded="true"] .plus { transform: rotate(45deg); color: var(--vermilion); opacity: 1; }
.chapters .breath { padding: 0 0 1.2rem 3.6rem; max-width: 44rem; }
.chapters .breath small { display: block; font: 400 0.68rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--vermilion); margin-bottom: 0.3rem; }
.chapters .breath p { font: 400 1.05rem/1.6 var(--mincho); }
.triage { display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.5rem; }
.triage a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0.95rem 1.05rem; border: 1px solid var(--line); border-radius: 2px; text-decoration: none; font: 500 1rem/1.3 var(--mincho); }
.triage a:hover { border-color: var(--vermilion); color: var(--washi); }
.triage a small { font: 400 0.66rem var(--mono); letter-spacing: 0.08em; color: var(--gold); white-space: nowrap; }
.author { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); }
@media (max-width: 880px) { .author { grid-template-columns: 1fr; } }

/* playbook */
.pb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(16.5rem, 1fr)); gap: 0.9rem; }
.pb-card { position: relative; display: grid; min-height: 14rem; padding: 0; border: 0; background: none; color: inherit; text-align: left; perspective: 1000px; }
.pb-face { grid-area: 1 / 1; position: relative; display: grid; align-content: start; gap: 0.5rem; padding: 1.3rem 1.3rem 2.8rem; min-height: 14rem; border-radius: 2px; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 0.6s var(--ease); }
.pb-front { background: var(--washi); color: var(--ink); }
.pb-front::before { content: "FAKE"; word-break: break-all; line-height: 1.05; padding: 0.15rem; font-size: 0.62rem !important; letter-spacing: 0.25em; text-indent: 0.25em; position: absolute; right: 1rem; top: 1rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border: 1.5px solid var(--vermilion); color: var(--vermilion); font: 700 1rem/1 var(--mincho); border-radius: 3px; transform: rotate(-6deg); opacity: 0.8; }
.pb-front small, .pb-back small { font: 400 0.66rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.65; }
.pb-front strong { font: 600 var(--s1)/1.3 var(--mincho); max-width: 88%; }
.pb-front em { position: absolute; left: 1.3rem; bottom: 1rem; font: 400 0.66rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; font-style: normal; color: var(--vermilion); }
.pb-back { background: var(--sumi-3); border: 1px solid rgba(216,67,43,0.45); transform: rotateY(180deg); font-size: 0.94rem; line-height: 1.55; padding-bottom: 1.3rem; }
.pb-act { font: 600 1rem/1.4 var(--mincho); color: var(--gold-2); }
.pb-card.flipped .pb-front { transform: rotateY(-180deg); }
.pb-card.flipped .pb-back { transform: rotateY(0); }
.checker { list-style: none; padding: 0; counter-reset: ck; }
.checker li { counter-increment: ck; display: grid; grid-template-columns: 2rem 1fr auto; gap: 0.8rem; align-items: center; padding: 0.8rem 0; border-bottom: 1px solid var(--line); }
.checker li::before { content: counter(ck); font: 400 0.8rem var(--mono); color: var(--vermilion); }
.checker li.answered::before { color: var(--gold); }
.checker p { font-size: 0.98rem; line-height: 1.45; }
.ck-btns { display: flex; gap: 0.4rem; }
@media (max-width: 520px) { .checker li { grid-template-columns: 1.6rem 1fr; } .ck-btns { grid-column: 2; } }
.meter-ring { position: relative; width: 10rem; aspect-ratio: 1; margin-top: 2rem; }
.meter-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.meter-ring circle { fill: none; stroke-width: 8; }
.meter-ring .track { stroke: rgba(241,232,214,0.1); }
.meter-ring .fill { stroke: var(--teal); stroke-linecap: round; transition: stroke-dashoffset 0.6s var(--ease), stroke 0.4s; }
.meter-ring[data-level="mid"] .fill { stroke: var(--gold); }
.meter-ring[data-level="high"] .fill { stroke: var(--vermilion); }
.meter-ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 600 var(--s3)/1 var(--mincho); }
.ck-result { margin-top: 1.4rem; padding: 1.3rem; border: 1px solid rgba(216,67,43,0.45); border-radius: 2px; }
.ck-result h3 { font-size: var(--s2); margin-bottom: 0.5rem; }
.ck-result ul { margin: 0.8rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.35rem; font-size: 0.94rem; }
.ck-links { margin-top: 1rem; font: 400 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.ck-links a { color: var(--gold); }

/* --------------------------------------------------------------- MOTION + PRINT */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .orb.go { animation: none; }
}
@media print {
  .bar, .rail, .foot, .wisdom-band, .btn, #scene, .ticket, .break-btn, .route-clock { display: none !important; }
  body { background: #fff; color: #000; }
  body::after { display: none; }
  body.print-stub * { visibility: hidden !important; }
  body.print-stub #stub, body.print-stub #stub * { visibility: visible !important; }
  body.print-stub #stub { position: absolute; left: 0; top: 0; width: 100%; margin: 0; }
}

/* hero legibility over the print */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(13,12,11,0.72) 0%, rgba(13,12,11,0.45) 38%, rgba(13,12,11,0) 62%); }
@media (max-width: 760px) { .hero::before { background: linear-gradient(180deg, rgba(13,12,11,0.55) 0%, rgba(13,12,11,0.35) 55%, rgba(13,12,11,0.1) 100%); } }
.route-strip { background: rgba(13,12,11,0.78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid var(--line); border-radius: 2px; padding: 0.6rem 0.8rem 0.4rem; }

/* hanko-style word seals: four letters, two by two */
.seal { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; place-items: center; padding: 0.35rem; font: 700 clamp(0.85rem, 1.5vw, 1.12rem)/1 var(--mincho); letter-spacing: 0; }
.seal i { font-style: normal; display: block; line-height: 1; }
.seal-center { margin: 0 auto 1rem; width: 4.2rem; }
.rs-dot { grid-template-columns: 1fr 1fr; padding: 0.2rem; font: 700 0.56rem/1 var(--mincho); gap: 0; }
.rs-dot i { font-style: normal; line-height: 1.05; }
.stub-card::after { border-radius: 50%; background: none; border: 7px solid var(--vermilion); border-right-color: transparent; transform: rotate(-30deg); width: 2.8rem; height: 2.8rem; box-shadow: none; }
.place-pick select { appearance: none; -webkit-appearance: none; background: transparent; color: inherit; border: 1px solid var(--gold-dim); border-radius: 999px; padding: 0.25rem 0.75rem; font: 400 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; }
.place-pick select:hover { border-color: var(--gold); }
.place-pick select option { color: var(--ink); text-transform: none; }
#scene { transition: opacity 0.45s ease; }
#scene.fading { opacity: 0; }

/* the day crossing into a new place */
.place-caption { position: fixed; left: 50%; top: 5rem; z-index: 44; transform: translate(-50%, -8px); opacity: 0; pointer-events: none; padding: 0.45rem 1rem; border: 1px solid var(--gold-dim); border-radius: 999px; background: rgba(13,12,11,0.8); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); font: 400 0.72rem var(--mono); letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-2); transition: opacity 0.5s, transform 0.5s var(--ease); }
.place-caption.in { opacity: 1; transform: translate(-50%, 0); }
.route-place { color: var(--gold); }

/* ===================================================== ROUND 10 */
.stop[data-place="japan"] > .wrap, .close[data-place="japan"] > .wrap { --band: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='12'><g fill='none' stroke='%23c9a24a' stroke-opacity='.7' stroke-width='1'><path d='M0 12a12 12 0 0 1 24 0M4 12a8 8 0 0 1 16 0M8 12a4 4 0 0 1 8 0'/></g></svg>"); }
.stop[data-place="japan"][data-tone="light"] > .wrap { --band: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='12'><g fill='none' stroke='%23d8432b' stroke-opacity='.7' stroke-width='1'><path d='M0 12a12 12 0 0 1 24 0M4 12a8 8 0 0 1 16 0M8 12a4 4 0 0 1 8 0'/></g></svg>"); }
.stop[data-place="vietnam"] > .wrap, .close[data-place="vietnam"] > .wrap { --band: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='12'><path d='M0 8l5-5 5 5 5-5 5 5' fill='none' stroke='%23c9a24a' stroke-opacity='.7'/><circle cx='5' cy='10.5' r='1' fill='%23c9a24a' fill-opacity='.7'/><circle cx='15' cy='10.5' r='1' fill='%23c9a24a' fill-opacity='.7'/></svg>"); }
.stop[data-place="vietnam"][data-tone="light"] > .wrap { --band: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='12'><path d='M0 8l5-5 5 5 5-5 5 5' fill='none' stroke='%23d8432b' stroke-opacity='.7'/><circle cx='5' cy='10.5' r='1' fill='%23d8432b' fill-opacity='.7'/><circle cx='15' cy='10.5' r='1' fill='%23d8432b' fill-opacity='.7'/></svg>"); }
.stop[data-place="thailand"] > .wrap, .close[data-place="thailand"] > .wrap { --band: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='12'><path d='M8 1l6 5-6 5-6-5z' fill='none' stroke='%23c9a24a' stroke-opacity='.7'/><circle cx='8' cy='6' r='1.3' fill='%23c9a24a' fill-opacity='.7'/></svg>"); }
.stop[data-place="thailand"][data-tone="light"] > .wrap { --band: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='16' height='12'><path d='M8 1l6 5-6 5-6-5z' fill='none' stroke='%23d8432b' stroke-opacity='.7'/><circle cx='8' cy='6' r='1.3' fill='%23d8432b' fill-opacity='.7'/></svg>"); }
.stop[data-place="london"] > .wrap, .close[data-place="london"] > .wrap { --band: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='12'><g fill='none' stroke='%23c9a24a' stroke-opacity='.6'><path d='M0 .5h24M0 6h24M0 11.5h24M6 .5v5.5M18 6v5.5'/></g></svg>"); }
.stop[data-place="london"][data-tone="light"] > .wrap { --band: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='12'><g fill='none' stroke='%23d8432b' stroke-opacity='.6'><path d='M0 .5h24M0 6h24M0 11.5h24M6 .5v5.5M18 6v5.5'/></g></svg>"); }
.stop > .wrap, .close > .wrap { background-image: var(--band, none), var(--band, none); background-repeat: repeat-x; background-size: auto 12px; background-position: 0 10px, 0 calc(100% - 10px); }
.stop > .wrap::before, .close > .wrap::before, .stop > .wrap::after, .close > .wrap::after { width: 52px; height: 52px; border: 0; opacity: 1; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='52' height='52' viewBox='0 0 52 52'><g fill='none' stroke='%23c9a24a' stroke-width='1.3' stroke-linecap='round' stroke-opacity='.85'><path d='M3 50V18C3 9 9 3 18 3h32'/><path d='M9 50V20c0-6 5-11 11-11h30' stroke-opacity='.45'/><path d='M18 24a6 6 0 1 1 6-6c0 3-2 5-5 5a3 3 0 1 1 3-3'/><path d='M30 9c0 4-3 6-6 6M9 30c4 0 6-3 6-6'/></g></svg>") no-repeat; top: 24px; left: 14px; }
.stop > .wrap::after, .close > .wrap::after { top: auto; left: auto; bottom: 24px; right: 14px; transform: rotate(180deg); }
.stop[data-tone="light"] > .wrap::before, .stop[data-tone="light"] > .wrap::after { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='52' height='52' viewBox='0 0 52 52'><g fill='none' stroke='%23d8432b' stroke-width='1.3' stroke-linecap='round' stroke-opacity='.85'><path d='M3 50V18C3 9 9 3 18 3h32'/><path d='M9 50V20c0-6 5-11 11-11h30' stroke-opacity='.45'/><path d='M18 24a6 6 0 1 1 6-6c0 3-2 5-5 5a3 3 0 1 1 3-3'/><path d='M30 9c0 4-3 6-6 6M9 30c4 0 6-3 6-6'/></g></svg>"); opacity: 1; }
.scroll-title { position: absolute; left: 22px; top: 50%; transform: translateY(-50%) rotate(180deg); writing-mode: vertical-rl; font: 500 0.66rem/1 var(--mincho); letter-spacing: 0.32em; text-transform: uppercase; color: var(--gold); opacity: 0.55; white-space: nowrap; pointer-events: none; }
.stop[data-tone="light"] .scroll-title { color: var(--vermilion); }
@media (min-width: 900px) { .stop > .wrap, .close > .wrap { padding-left: clamp(3.6rem, 6vw, 5rem); } }
@media (max-width: 899px) { .scroll-title { display: none; } }
/* square words: English set like characters, after Xu Bing's Square Word Calligraphy */
.sq { display: grid; width: 100%; height: 100%; gap: 0.04em; font-weight: 800; line-height: 0.82; }
.sq i { font-style: normal; display: grid; place-items: center; overflow: hidden; }
.sq-0 { grid-template-areas: "a b b" "a c d"; grid-template-columns: 0.9fr 1fr 1fr; }
.sq-0 .l0 { grid-area: a; transform: scaleY(1.85); } .sq-0 .l1 { grid-area: b; transform: scaleX(1.7); } .sq-0 .l2 { grid-area: c; } .sq-0 .l3 { grid-area: d; }
.sq-1 { grid-template-areas: "a a a" "b c d"; grid-template-rows: 1fr 1fr; }
.sq-1 .l0 { grid-area: a; transform: scaleX(2.4); } .sq-1 .l1 { grid-area: b; } .sq-1 .l2 { grid-area: c; } .sq-1 .l3 { grid-area: d; }
.sq-2 { grid-template-areas: "a b" "c d"; }
.sq-2 .l0 { grid-area: a; transform: translate(8%, 6%) scale(1.15); } .sq-2 .l1 { grid-area: b; transform: translateY(18%); } .sq-2 .l2 { grid-area: c; transform: translateX(10%); } .sq-2 .l3 { grid-area: d; transform: translate(-6%, -14%) scale(1.2); }
.seal { display: grid !important; padding: 0.42rem; font-size: clamp(0.95rem, 1.6vw, 1.22rem); }
.seal > .sq { font-size: inherit; }
.rs-dot.sq { padding: 0.22rem; font-size: 0.62rem; display: grid; }
.sq-water { position: absolute; right: clamp(1rem, 3vw, 2.4rem); top: clamp(1rem, 3vw, 2.2rem); width: clamp(6rem, 13vw, 10rem); height: clamp(6rem, 13vw, 10rem); font: 800 clamp(2.4rem, 5vw, 4rem)/0.82 var(--mincho); color: currentColor; opacity: 0.06; pointer-events: none; }
/* where the real day is */
.here-badge { display: inline-flex; align-items: center; gap: 0.45rem; margin-left: 0.8rem; padding: 0.2rem 0.6rem; border: 1px solid var(--vermilion); border-radius: 999px; font: 400 0.64rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--vermilion); vertical-align: middle; }
.here-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--vermilion); animation: blinkDot 1.6s ease-in-out infinite; }
@keyframes blinkDot { 50% { opacity: 0.25; } }
.stop-head .here-badge { grid-column: 2; justify-self: start; margin-left: 0; }
.route-strip li.now a { background: rgba(216,67,43,0.12); box-shadow: inset 0 0 0 1px rgba(216,67,43,0.6); }
.route-strip li.now .rs-t::after { content: " · now"; color: var(--vermilion-2); }
.tree-note { margin-top: 0.7rem; font: 400 0.72rem/1.5 var(--mono); letter-spacing: 0.06em; color: rgba(241,232,214,0.7); max-width: 32rem; }


/* square words drawn as SVG */
svg.sq { display: block; width: 100%; height: 100%; overflow: visible; }
svg.sq text { font-family: var(--mincho); font-weight: 800; fill: currentColor; }
.seal { padding: 0.5rem; }
.rs-dot { padding: 0.25rem; }
.rs-dot svg.sq { width: 100%; height: 100%; }
svg.sq-water { position: absolute; right: clamp(1rem, 3vw, 2.4rem); top: clamp(1rem, 3vw, 2.2rem); width: clamp(5.5rem, 11vw, 8.5rem); height: clamp(5.5rem, 11vw, 8.5rem); opacity: 0.07; pointer-events: none; }
.seal, .rs-dot { grid-template-columns: 1fr !important; grid-template-rows: 1fr !important; grid-template-areas: none !important; }
.seal > svg.sq, .rs-dot > svg.sq { grid-area: 1 / 1; }

/* ===================================================== ROUND 11: the Buddha mark */
.mark-dot::before { content: ""; width: 1.3rem; height: 1.3rem; border: 0; border-radius: 0; transform: none; background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M4.0 92.0C4.0 78.5 9.1 75.5 6.4 62.0C11.5 73.4 16.0 77.6 16.0 92.0Z M12.0 92.0C12.0 68.6 18.8 63.4 18.4 40.0C22.0 59.8 28.0 67.0 28.0 92.0Z M24.0 92.0C24.0 75.8 29.1 72.2 32.4 56.0C31.5 69.7 36.0 74.7 36.0 92.0Z M64.0 92.0C64.0 75.8 69.1 72.2 67.6 56.0C71.5 69.7 76.0 74.7 76.0 92.0Z M72.0 92.0C72.0 68.6 78.8 63.4 81.6 40.0C82.0 59.8 88.0 67.0 88.0 92.0Z M84.0 92.0C84.0 78.5 89.1 75.5 93.6 62.0C91.5 73.4 96.0 77.6 96.0 92.0Z' fill='%23f1e8d6'/><g fill='%23f1e8d6' stroke='%23d8432b' stroke-width='5' paint-order='stroke' stroke-linejoin='round'><circle cx='50' cy='16.5' r='3.8'/><ellipse cx='50' cy='30' rx='9.4' ry='10.8'/><path d='M50 42c-3.1 0-6.1.6-8.5 1.8-5 2.4-7.7 7.6-8.1 14.4-.3 3.2 0 6.4.6 9.4-9 2-16.4 5.7-17.4 10.7-.9 4.8 8.8 8.7 33.4 8.7s34.3-3.9 33.4-8.7c-1-5-8.4-8.7-17.4-10.7.6-3 .9-6.2.6-9.4-.4-6.8-3.1-12-8.1-14.4-2.4-1.2-5.4-1.8-8.5-1.8z'/></g><path d='M39 74.5c3.6 3 7.3 4.3 11 4.3s7.4-1.3 11-4.3' fill='none' stroke='%23d8432b' stroke-width='2.4' stroke-linecap='round'/></svg>") center / contain no-repeat; }
.mark-dot { width: 1.85rem; height: 1.85rem; }
.stub-card::after { content: ""; border: 0; border-radius: 3px; width: 2.8rem; height: 2.8rem; transform: rotate(-4deg); background: #d8432b url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><path d='M4.0 92.0C4.0 78.5 9.1 75.5 6.4 62.0C11.5 73.4 16.0 77.6 16.0 92.0Z M12.0 92.0C12.0 68.6 18.8 63.4 18.4 40.0C22.0 59.8 28.0 67.0 28.0 92.0Z M24.0 92.0C24.0 75.8 29.1 72.2 32.4 56.0C31.5 69.7 36.0 74.7 36.0 92.0Z M64.0 92.0C64.0 75.8 69.1 72.2 67.6 56.0C71.5 69.7 76.0 74.7 76.0 92.0Z M72.0 92.0C72.0 68.6 78.8 63.4 81.6 40.0C82.0 59.8 88.0 67.0 88.0 92.0Z M84.0 92.0C84.0 78.5 89.1 75.5 93.6 62.0C91.5 73.4 96.0 77.6 96.0 92.0Z' fill='%23f1e8d6'/><g fill='%23f1e8d6' stroke='%23d8432b' stroke-width='5' paint-order='stroke' stroke-linejoin='round'><circle cx='50' cy='16.5' r='3.8'/><ellipse cx='50' cy='30' rx='9.4' ry='10.8'/><path d='M50 42c-3.1 0-6.1.6-8.5 1.8-5 2.4-7.7 7.6-8.1 14.4-.3 3.2 0 6.4.6 9.4-9 2-16.4 5.7-17.4 10.7-.9 4.8 8.8 8.7 33.4 8.7s34.3-3.9 33.4-8.7c-1-5-8.4-8.7-17.4-10.7.6-3 .9-6.2.6-9.4-.4-6.8-3.1-12-8.1-14.4-2.4-1.2-5.4-1.8-8.5-1.8z'/></g><path d='M39 74.5c3.6 3 7.3 4.3 11 4.3s7.4-1.3 11-4.3' fill='none' stroke='%23d8432b' stroke-width='2.4' stroke-linecap='round'/></svg>") center / 72% no-repeat; box-shadow: inset 0 0 0 3px rgba(241,232,214,0.22); }
/* small stamps in the route strip: a clean diamond, filled red when done, ringed for now */
.rs-dot { width: 0.85rem !important; height: 0.85rem !important; padding: 0 !important; border: 1px solid rgba(241,232,214,0.55) !important; border-radius: 1px !important; transform: rotate(45deg) !important; background: transparent !important; box-shadow: none !important; margin: 0.35rem 0 0.3rem; }
.rs-dot > svg { display: none; }
.route-strip li.p .rs-dot { background: var(--vermilion) !important; border-color: var(--vermilion) !important; }
.route-strip li.now .rs-dot { box-shadow: 0 0 0 4px rgba(216,67,43,0.25) !important; border-color: var(--vermilion-2) !important; }
.route-strip li { flex-basis: 4.2rem; }
@media (max-width: 760px) { .route-strip li { flex-basis: 3rem; } }

/* ===================================================== ROUND 12: simpler, stamped */
.stop > .wrap, .close > .wrap { background-image: none !important; padding-left: clamp(1.5rem, 4.5vw, 3.6rem) !important; }
.stop > .wrap::before, .close > .wrap::before, .stop > .wrap::after, .close > .wrap::after { width: 22px !important; height: 22px !important; background: none !important; transform: none !important; border-style: solid; border-color: var(--gold); opacity: 0.6 !important; }
.stop > .wrap::before, .close > .wrap::before { top: 12px !important; left: 12px !important; border-width: 1px 0 0 1px !important; }
.stop > .wrap::after, .close > .wrap::after { bottom: 12px !important; right: 12px !important; top: auto !important; left: auto !important; border-width: 0 1px 1px 0 !important; }
.stop[data-tone="light"] > .wrap::before, .stop[data-tone="light"] > .wrap::after { border-color: var(--vermilion) !important; opacity: 0.45 !important; }
.scroll-title, .sq-water, .here-badge, .tree-note, .place-caption, .route-place { display: none !important; }
.route-strip li.now a { background: none; box-shadow: none; }
.route-strip li.now .rs-t::after { content: none; }
.route-strip li.now .rs-dot { box-shadow: none !important; border-color: rgba(241,232,214,0.55) !important; }

/* stamps: solid vermilion ink, letters left as paper, ragged and speckled */
.seal { background: var(--vermilion) !important; border: 0 !important; color: var(--washi) !important; border-radius: 5px !important; padding: 0.55rem !important; transform: rotate(-3deg); filter: url(#wcb-ink); opacity: 0.38; box-shadow: inset 0 0 0 3px rgba(241,232,214,0.85), inset 0 0 0 5px var(--vermilion); transition: opacity 0.5s var(--ease); }
.stop.done .seal, .page-head .seal, .close .seal { opacity: 0.94; }
.stop.done .seal { transform: rotate(-3deg) !important; }
.stop.done .seal.stamp { animation: stampIn 0.45s cubic-bezier(.3,1.6,.5,1); }
@keyframes stampIn { 0% { transform: scale(1.6) rotate(-10deg); opacity: 0; } 100% { transform: rotate(-3deg); opacity: 0.94; } }
svg.sq text { font-family: "Yuji Syuku", var(--mincho) !important; font-weight: 400 !important; }
.mark-dot { filter: url(#wcb-ink); transform: rotate(-3deg); border-radius: 4px; box-shadow: inset 0 0 0 2px rgba(241,232,214,0.8), inset 0 0 0 3.5px var(--vermilion) !important; }
.route-strip li.p .rs-dot, .ticket-holes i.p { filter: url(#wcb-ink); }
.stub-card::after { filter: url(#wcb-ink); }

/* ===================================================== ROUND 13 */
/* no gold corner brackets on the cards: that came from the old book */
.stop > .wrap::before, .close > .wrap::before, .stop > .wrap::after, .close > .wrap::after { display: none !important; }
/* stamps: bold brush letters */
svg.sq text { font-family: "Yuji Boku", "Yuji Syuku", var(--mincho) !important; }
.mark-dot::before { width: 1.45rem !important; height: 1.45rem !important; }

/* stamps: crisp letters, clean red, just a hand-pressed edge */
svg.sq text { font-family: var(--mincho) !important; font-weight: 800 !important; }

/* ===================================================== ROUND 15: characters return, brush-painted */
.seal.kanji { display: grid !important; place-items: center; padding: 0 !important; font: 400 clamp(1.7rem, 3.2vw, 2.4rem)/1 "Yuji Boku", "Yuji Syuku", var(--mincho) !important; letter-spacing: 0; }
.seal.kanji.two { writing-mode: vertical-rl; font-size: clamp(1.05rem, 2vw, 1.45rem) !important; letter-spacing: 0.04em; }
.seal.kanji.seal-center { width: 4rem; height: 4rem; margin: 0 auto 1rem; }

/* ===================================================== THE WAY OUT */
.wo .split { align-items: center; }
.wo-h { font-size: var(--s4); font-weight: 500; line-height: 1.1; margin-top: 0.4rem; }
.wo-p { margin-top: 0.9rem; max-width: 30rem; font: 400 var(--s1)/1.6 var(--mincho); opacity: 0.85; }
.wo-card { padding: clamp(1.3rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 2px; background: rgba(241,232,214,0.03); }
.wo-steps { margin: 1.2rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.5rem; opacity: 0.85; }
.bm-btn { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 1.2rem; padding: 0.8rem 1.3rem; border-radius: 4px; background: var(--vermilion); color: var(--washi); text-decoration: none; font: 500 0.82rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; cursor: grab; box-shadow: 0 10px 24px -12px rgba(216,67,43,0.8); }
.bm-btn:hover { color: #fff; background: var(--vermilion-2); }
.bm-demo { margin-top: 1rem; padding: 0.9rem 1rem; border-left: 2px solid var(--gold); background: rgba(241,232,214,0.04); display: grid; gap: 0.3rem; font-size: 0.95rem; }
.kept-form { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 0.55rem; align-items: end; margin-top: 1.4rem; }
@media (max-width: 520px) { .kept-form { grid-template-columns: 1fr 1fr; } .kept-form .btn { grid-column: 1 / -1; } }
.kept-list { list-style: none; padding: 0; margin: 1rem 0 0; display: grid; gap: 0.3rem; }
.kept-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.35rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.kept-list b { font: 500 0.85rem var(--mono); color: var(--gold-2); }
.daily-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.4rem; margin-top: 1rem; }
.dg { aspect-ratio: 1; display: grid; place-items: center; border: 1px dashed rgba(241,232,214,0.25); border-radius: 3px; font: 400 0.7rem var(--mono); color: var(--mist); }
.dg.today { border: 1px solid var(--gold); color: var(--washi); }
.dg.on { background: var(--vermilion); border: 0; color: var(--washi); font: 400 1.1rem/1 "Yuji Boku", var(--mincho); transform: rotate(-4deg); filter: url(#wcb-ink); }
.ask-out { min-height: 14rem; display: grid; align-content: start; gap: 0.8rem; }
.ask-act { font: 500 1.05rem/1.5 var(--mincho); }
.ask-act strong { color: var(--vermilion-2); }
.ask-breath { font-size: 0.9rem; opacity: 0.7; font-style: italic; }
.ask-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font: 400 0.72rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.ask-links a { color: var(--gold); }
textarea.input { font: 400 1rem/1.5 var(--gothic); resize: vertical; min-height: 6rem; }
select.input { appearance: auto; font: 400 1rem var(--gothic); }
select.input option { color: var(--ink); }
.dc-law { margin-top: 1rem; padding: 1rem 1.1rem; border-left: 2px solid var(--vermilion); background: rgba(216,67,43,0.06); font-size: 0.98rem; line-height: 1.6; }
.dc-reply { white-space: pre-wrap; margin: 1rem 0; padding: 1rem 1.1rem; background: var(--washi); color: var(--ink); font: 400 1rem/1.6 var(--mincho); border-radius: 2px; }
.festival-note { margin-top: 0.5rem; font: 400 0.72rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-2); }
.sky-chip [data-sound][aria-pressed="true"] { color: var(--gold-2); text-decoration-color: var(--vermilion); }
@media (max-width: 1180px) { .nav { gap: 0.9rem; } .nav a { font-size: 0.7rem; letter-spacing: 0.1em; } }

/* sound toggle in the bar */
.snd-btn { display: inline-flex; align-items: center; gap: 0.35rem; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 0.32rem 0.75rem; color: var(--mist); font: 400 0.7rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.snd-btn span { font-size: 0.95rem; line-height: 1; }
.snd-btn:hover { color: var(--washi); border-color: var(--gold); }
.snd-btn[aria-pressed="true"] { color: var(--washi); border-color: var(--vermilion); }
.snd-btn[aria-pressed="true"] span { color: var(--vermilion-2); animation: notePulse 2.4s ease-in-out infinite; }
@keyframes notePulse { 50% { opacity: 0.45; } }
.paper .snd-btn { color: var(--ink-soft); border-color: var(--line-ink); }
.paper .snd-btn[aria-pressed="true"] { color: var(--ink); border-color: var(--vermilion); }
@media (max-width: 520px) { .snd-btn i { display: none; } .snd-btn { padding: 0.32rem 0.55rem; } }

/* ===================================================== ROUND 17: simpler */
.rail, .route-clock, .ticket { display: none !important; }
.receipt::after { content: none !important; }
.sky-chip { gap: 0.5rem; }
.place-pick select { border: 0; padding: 0 0.2rem; color: var(--washi); text-decoration: underline; text-decoration-color: var(--gold-dim); text-underline-offset: 0.3em; }
.place-pick select:hover { text-decoration-color: var(--gold); }
.foot-cur { display: inline-flex; align-items: center; gap: 0.5rem; font: 400 0.7rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; }
.foot-cur select { appearance: none; -webkit-appearance: none; background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 0.3rem 0.8rem; color: var(--washi); font: inherit; cursor: pointer; }
.foot-cur select option { color: var(--ink); }
.foot .wrap { align-items: center; }

/* ===================================================== ROUND 19: phone first */
@media (max-width: 760px) {
  .hero { min-height: calc(100svh - 4rem); padding-block: 1.6rem 1rem; }
  .hero::before { background: linear-gradient(180deg, rgba(13,12,11,0.7) 0%, rgba(13,12,11,0.45) 45%, rgba(13,12,11,0) 70%); }
  .hero h1 { font-size: clamp(2.3rem, 11vw, 3.1rem); }
  .hero-time { margin-bottom: 1rem; }
  .hero-lede { font-size: 1.02rem; margin-top: 0.9rem; }
  .hero-actions { margin-top: 1.3rem; gap: 0.5rem; }
  .hero-actions .btn { flex: 1 1 auto; min-height: 2.8rem; padding-inline: 1rem; }
  .sky-chip { margin-top: 1rem; font-size: 0.66rem; }
  .route-strip { margin-top: 1rem; padding: 0.4rem 0.5rem 0.2rem; background: rgba(13,12,11,0.6); }
  .route-strip li { flex-basis: 2.6rem; }
  .rs-t { font-size: 0.62rem; }
  /* cards: lighter frame, full bleed, so the print shows between them */
  .stop, .close { padding-block: 2.5rem; }
  .stop > .wrap, .close > .wrap { width: calc(100% - 1rem); padding: 1.3rem 1.1rem !important; }
  .stop-head { grid-template-columns: auto 1fr; gap: 0.3rem 0.9rem; margin-bottom: 1.3rem; }
  .seal { width: 3rem !important; height: 3rem !important; }
  .seal.kanji { font-size: 1.6rem !important; }
  .stop h2 { font-size: clamp(1.7rem, 7.6vw, 2.2rem); }
  .lede { font-size: 1rem; }
  .receipt { transform: none; padding: 1.4rem 1rem 1.8rem; }
  .shelf-items { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.35rem; }
  .shelf-items button { min-height: 3.2rem; padding: 0.55rem 0.5rem; font-size: 0.86rem; }
  .verdicts button { min-height: 3rem; }
  .close h2 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .page-head { padding-block: 2.4rem 1.6rem; }
  .page-head h1 { font-size: clamp(2.2rem, 10vw, 3rem); }
  .break-btn { width: 2.6rem; height: 2.6rem; }
}

/* ===================================================== ROUND 20 */
/* the book page looks like the book */
.book-top { padding-block: clamp(3rem, 8vw, 6rem) clamp(2.5rem, 6vw, 4.5rem); background: radial-gradient(ellipse 70% 60% at 75% 40%, rgba(201,162,74,0.1), transparent 70%); }
.book-copy h1 { font-size: var(--s5); font-weight: 500; line-height: 1.04; margin-top: 0.5rem; }
.book-sub { margin-top: 0.8rem; font: 400 italic var(--s2)/1.3 var(--mincho); color: var(--gold-2); }
.book-by { margin-top: 0.9rem; font: 400 0.76rem var(--mono); letter-spacing: 0.24em; text-transform: uppercase; color: var(--mist); }
.book-copy .quote { margin-top: 2rem; font-size: var(--s1); }
.book-plain { margin-top: 1rem; }
.book-3d { justify-self: center; position: relative; display: block; width: min(22rem, 72vw); aspect-ratio: 900 / 1391; transform: perspective(1400px) rotateY(-16deg) rotateX(2deg); transform-style: preserve-3d; transition: transform 0.7s var(--ease); }
.book-3d:hover { transform: perspective(1400px) rotateY(-5deg) rotateX(1deg); }
.book-3d img { position: relative; z-index: 2; width: 100%; height: 100%; object-fit: cover; border-radius: 2px 5px 5px 2px; box-shadow: 30px 34px 60px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(255,255,255,0.05); }
.book-3d::before { content: ""; position: absolute; z-index: 3; left: 0; top: 0; bottom: 0; width: 7%; background: linear-gradient(90deg, rgba(0,0,0,0.45), rgba(255,255,255,0.12) 55%, rgba(0,0,0,0.15)); border-radius: 2px 0 0 2px; pointer-events: none; }
.b3-pages { position: absolute; z-index: 1; top: 1.2%; bottom: 1.2%; right: -12px; width: 14px; background: repeating-linear-gradient(90deg, #efe6d2 0 1px, #d8ccb3 1px 2px); border-radius: 0 3px 3px 0; transform: translateZ(-4px); box-shadow: 4px 6px 14px rgba(0,0,0,0.4); }
.b3-spine { display: none; }
@media (max-width: 880px) { .book-3d { transform: perspective(1400px) rotateY(-8deg); margin-top: 2rem; } }
/* chapters carry their characters */
.chapters button { grid-template-columns: 3rem minmax(0, 1fr) auto; }
.chapters .ck { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; background: var(--vermilion); color: var(--washi); border-radius: 3px; font: 400 1.35rem/1 "Yuji Boku", var(--mincho); transform: rotate(-3deg); filter: url(#wcb-ink); box-shadow: inset 0 0 0 2px rgba(241,232,214,0.75), inset 0 0 0 3.5px var(--vermilion); }
.chapters .ck.two { writing-mode: vertical-rl; font-size: 0.82rem; letter-spacing: 0.02em; }
.chapters .cn { display: block; font: 400 0.66rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.2rem; }
.chapters .breath { padding-left: 4rem; }
/* the rooms, visible from the start */
.rooms { padding-block: clamp(2rem, 5vw, 3.5rem); }
.rooms > .wrap { background: rgba(13,12,11,0.88); border: 1px solid var(--line); padding: clamp(1.2rem, 3vw, 2rem); }
.rooms-h { font: 400 0.74rem var(--mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 1rem; }
.rooms-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.6rem; }
.rooms-grid a { display: grid; justify-items: start; gap: 0.35rem; padding: 1rem 0.9rem 1.1rem; border: 1px solid var(--line); border-radius: 2px; text-decoration: none; transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.rooms-grid a:hover { border-color: var(--gold); background: rgba(201,162,74,0.06); color: var(--washi); transform: translateY(-2px); }
.rooms-grid .seal.kanji { width: 2.4rem !important; height: 2.4rem !important; font-size: 1.25rem !important; opacity: 0.95; margin-bottom: 0.3rem; }
.rooms-grid strong { font: 600 1.05rem/1.2 var(--mincho); }
.rooms-grid span:not(.seal) { font-size: 0.8rem; opacity: 0.65; line-height: 1.35; }
@media (max-width: 980px) { .rooms-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rooms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rooms > .wrap { width: calc(100% - 1rem); } }

/* ===================================================== ROUND 21: other voices */
.stop-quote { margin-top: clamp(1.8rem, 4vw, 2.6rem); padding-top: 1.1rem; border-top: 1px solid var(--line); max-width: 44rem; font: 400 italic 1rem/1.55 var(--mincho); opacity: 0.78; }
.stop[data-tone="light"] .stop-quote { border-top-color: var(--line-ink); }
.stop-quote span { display: block; margin-top: 0.4rem; font: 400 0.68rem var(--mono); letter-spacing: 0.12em; text-transform: uppercase; font-style: normal; color: var(--gold); opacity: 0.9; }
.stop[data-tone="light"] .stop-quote span { color: var(--vermilion); }
.close .stop-quote { margin-inline: auto; text-align: center; }
.ask-voice { margin-top: 0.4rem; padding-top: 0.8rem; border-top: 1px solid var(--line); font: 400 italic 0.95rem/1.5 var(--mincho); opacity: 0.85; }
.ask-voice small { display: block; font: 400 0.64rem var(--mono); letter-spacing: 0.14em; text-transform: uppercase; font-style: normal; color: var(--gold); margin-bottom: 0.3rem; }
.ask-voice span { display: block; margin-top: 0.3rem; font: 400 0.66rem var(--mono); letter-spacing: 0.1em; text-transform: uppercase; font-style: normal; opacity: 0.7; }

/* ===================================================== ROUND 22: details */
html { color-scheme: dark; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, .hero h1, .stop h2, .close h2, .book-copy h1, .rooms-grid strong { text-wrap: balance; }
p, li, blockquote, .lede, .stop-quote, .wisdom-q, .cl { text-wrap: pretty; }
blockquote, .quote, .wisdom-q, .stop-quote { hanging-punctuation: first last; }
::selection { background: var(--gold); color: var(--sumi); }
.stop[data-tone="light"] ::selection { background: var(--vermilion); color: var(--washi); }
main [id], .section[id] { scroll-margin-top: 5.5rem; }
.receipt, .receipt *, [data-s-year], [data-w-hours], [data-l-saved], [data-f-days], [data-sky-time], .rs-t, .ticker, [data-ticker] { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.stop[data-tone="light"] :focus-visible { outline-color: var(--vermilion); }
img { height: auto; }

.lost { min-height: 62vh; display: grid; align-content: center; }
.lost .hero-actions { margin-top: 1.8rem; }
.lost .hero-actions { grid-column: 2; }
@media (max-width: 620px) { .lost .hero-actions { grid-column: 1; } }

/* ===================================================== ROUND 24: search + AI search */
/* plain copies of script-built content, for crawlers that don't run scripts */
.js .prerender { display: none; }
.prerender { padding-block: 2rem; }
.prerender h2 { font: 500 var(--s3) var(--mincho); margin: 1.6rem 0 0.8rem; }
.prerender h3 { font: 600 1.1rem var(--mincho); margin: 1.2rem 0 0.5rem; color: var(--gold); }
.prerender li { margin: 0 0 0.6rem; max-width: 48rem; line-height: 1.6; }
/* questions people ask */
.faq-list { display: grid; gap: 0.5rem; max-width: 46rem; }
.faq-list details { border: 1px solid var(--line); border-radius: 2px; padding: 0.9rem 1.1rem; background: rgba(13,12,11,0.5); }
.faq-list summary { cursor: pointer; font: 500 1.08rem/1.4 var(--mincho); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font: 400 1.1rem var(--mono); color: var(--gold); transition: transform 0.2s; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin-top: 0.7rem; opacity: 0.85; line-height: 1.65; max-width: 40rem; }

/* ===================================================== ROUND 25: the one-time analytics question */
.consent { position: fixed; z-index: 60; left: 1rem; bottom: 1rem; max-width: 26rem; display: flex; align-items: center; gap: 0.9rem; padding: 0.75rem 0.9rem; background: rgba(13,12,11,0.96); border: 1px solid var(--line); border-radius: 3px; box-shadow: 0 14px 40px rgba(0,0,0,0.45); opacity: 0; transform: translateY(10px); transition: opacity 0.35s, transform 0.35s; pointer-events: none; }
.consent.on { opacity: 1; transform: none; pointer-events: auto; }
.consent p { margin: 0; font-size: 0.82rem; line-height: 1.45; opacity: 0.85; }
.consent-btns { display: flex; gap: 0.4rem; flex: none; }
@media (max-width: 520px) { .consent { right: 4rem; left: 0.6rem; bottom: 0.6rem; flex-wrap: wrap; } }
@media (prefers-reduced-motion: reduce) { .consent { transition: none; } }

/* ===================================================== ROUND 26: Breathe, the seventh room */
.rooms-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 1100px) { .rooms-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 520px) { .rooms-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
