/* DigiFix.Ninja: the night dojo. A ninja theme on the stean.DEV night side:
   ink black, the red sun of the logo, solarpunk jade, solar gold and washi paper for the art. */
:root {
  --void: #07090c;
  --ink: #0d1117;
  --panel: rgba(15, 19, 26, 0.78);
  --iron: #232a33;
  --line: rgba(61, 255, 181, 0.14);
  --line-strong: rgba(61, 255, 181, 0.32);
  --text: #ecf0f3;
  --muted: #95a0ac;
  --red: #e3262f;
  --red-deep: #9e0f17;
  --red-hi: #ff5a52;
  --jade: #3dffb5;
  --jade-deep: #14b77c;
  --gold: #ffc93c;
  --ice: #58c8f4;
  --paper: #f1e8d4;
  --paper-2: #e6dbc2;
  --paper-ink: #1d1913;
  --display: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", sans-serif;
  --body: "Atkinson Hyperlegible Next", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.68, 0, 1.01);
  --gutter: clamp(16px, 5vw, 72px);
  --max: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #0b0d11; scroll-padding-top: 90px; overflow-x: hidden; overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; color: var(--text); overflow-x: hidden;
  background:
    radial-gradient(1100px 700px at 80% -10%, rgba(227, 38, 47, 0.13), transparent 60%),
    radial-gradient(900px 640px at 0% 40%, rgba(61, 255, 181, 0.06), transparent 60%),
    radial-gradient(800px 600px at 100% 85%, rgba(255, 201, 60, 0.05), transparent 60%),
    var(--void);
  font: 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
main { overflow-x: hidden; overflow-x: clip; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--jade); outline-offset: 4px; }
.mono { font-family: var(--mono); }
.dot { color: var(--red); }
.dot--red { color: var(--red-hi); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 60; padding: 10px 16px; background: var(--jade); color: var(--void); font: 700 14px var(--mono); text-decoration: none; }
.skip:focus { top: 12px; }

/* Background layers */
.rain { position: fixed; top: 0; left: 0; width: 100%; height: 100vh; z-index: 0; pointer-events: none; }
.grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: 0.55; mix-blend-mode: overlay;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 3px); }
main, .top, .bottom { position: relative; z-index: 2; }

/* Header */
.top { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 20px; padding: 12px var(--gutter);
  background: linear-gradient(to bottom, rgba(7, 9, 12, 0.94), rgba(7, 9, 12, 0.6)); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand img { width: 46px; height: 46px; filter: drop-shadow(0 0 12px rgba(227, 38, 47, 0.45)); transition: transform 0.6s var(--ease); }
.brand:hover img { transform: rotate(-12deg) scale(1.06); }
.brand-word { font: 900 26px/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; }
.menu { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; padding: 8px 10px; white-space: nowrap; text-decoration: none; font: 600 13px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 2px; height: 1px; background: var(--jade); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
.nav a:hover::after { transform: scaleX(1); }
.nav-index { color: var(--red-hi); margin-right: 6px; }
.langs { display: flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 999px; }
.lang { padding: 5px 8px; border-radius: 999px; font: 700 11px/1 var(--mono); letter-spacing: 0.08em; text-decoration: none; color: var(--muted); }
.lang:hover { color: var(--text); }
.lang.is-current { background: var(--red); color: #fff; }
.signal { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: transparent; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; font: 600 11px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; }
.signal:hover { color: var(--text); border-color: var(--line-strong); }
.signal-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.signal-bars i { width: 3px; background: var(--jade); border-radius: 1px; animation: bars 1.2s ease-in-out infinite; }
.signal-bars i:nth-child(1) { height: 4px; } .signal-bars i:nth-child(2) { height: 7px; animation-delay: 0.15s; }
.signal-bars i:nth-child(3) { height: 10px; animation-delay: 0.3s; } .signal-bars i:nth-child(4) { height: 12px; animation-delay: 0.45s; }
.signal[aria-pressed="false"] .signal-bars i { animation: none; background: var(--iron); }
@keyframes bars { 50% { transform: scaleY(0.4); } }
.top .stean-dev--corner { height: 44px; padding: 0 16px 0 12px; font-size: 17px; margin-left: 0; }
.top .stean-dev--corner .sd-logo { width: 28px; height: 28px; }
.menu-toggle { display: none; }

/* Buttons and type */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 14px 22px; border-radius: 4px; text-decoration: none; border: 0; cursor: pointer;
  font: 700 13px/1 var(--mono); letter-spacing: 0.1em; text-transform: uppercase; transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px)); }
.btn:hover { transform: translateY(-2px); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 0 0 1px rgba(255, 90, 82, 0.4), 0 12px 30px rgba(227, 38, 47, 0.3); }
.btn-red:hover { background: var(--red-hi); box-shadow: 0 0 40px rgba(227, 38, 47, 0.55); }
.btn-jade { background: var(--jade); color: var(--void); }
.btn-jade:hover { box-shadow: 0 0 34px rgba(61, 255, 181, 0.5); }
.btn-jade[aria-disabled="true"] { background: var(--iron); color: var(--muted); pointer-events: none; }
.btn-ghost { background: rgba(255, 255, 255, 0.03); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--jade), 0 0 24px rgba(61, 255, 181, 0.2); }
.btn-text { background: none; border: 0; color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; padding: 8px; }
.btn-text:hover { color: var(--text); }

.eyebrow { margin: 0 0 14px; font-size: 12px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--jade); }
.eyebrow > span[aria-hidden] { color: var(--red-hi); }
.blink { color: var(--red-hi); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
h1, h2, h3 { font-family: var(--display); font-weight: 900; text-transform: uppercase; letter-spacing: 0.01em; line-height: 0.95; margin: 0; }
h2 { font-size: clamp(40px, 6vw, 76px); }
h3 { font-size: 26px; line-height: 1.05; }
.section-head { max-width: 820px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-intro { color: var(--muted); font-size: 18px; margin: 18px 0 0; max-width: 640px; }
section { padding: clamp(72px, 10vw, 140px) var(--gutter); max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; }

/* Hero */
.hero { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 4vw, 60px);
  min-height: calc(100vh - 70px); min-height: calc(100svh - 70px); padding-top: clamp(40px, 6vw, 80px); padding-bottom: 120px; }
.hero:focus { outline: none; }
.hero-copy { position: relative; z-index: 3; }
.hero h1 { font-size: clamp(56px, 9.4vw, 138px); line-height: 0.86; }
.hero h1 span { display: block; }
.h1-b { color: transparent; -webkit-text-stroke: 2px var(--text); background: linear-gradient(90deg, var(--red-hi), var(--gold) 55%, var(--jade)); -webkit-background-clip: text; background-clip: text; }
.lede { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.45; margin: 28px 0 12px; max-width: 560px; color: var(--text); font-weight: 600; }
.intro { color: var(--muted); max-width: 540px; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.glitch { position: relative; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.glitch::before { color: var(--jade); }
.glitch::after { color: var(--red-hi); }
.glitch.is-glitching::before { opacity: 0.85; animation: slice-a 0.42s steps(4) both; }
.glitch.is-glitching::after { opacity: 0.85; animation: slice-b 0.42s steps(4) both; }
@keyframes slice-a {
  0% { clip-path: inset(8% 0 70% 0); transform: translate(-8px, -1px); } 25% { clip-path: inset(55% 0 20% 0); transform: translate(6px, 1px); }
  50% { clip-path: inset(30% 0 52% 0); transform: translate(-4px, 0); } 75% { clip-path: inset(78% 0 4% 0); transform: translate(5px, -1px); }
  100% { clip-path: inset(0 0 100% 0); opacity: 0; } }
@keyframes slice-b {
  0% { clip-path: inset(62% 0 10% 0); transform: translate(8px, 1px); } 25% { clip-path: inset(12% 0 66% 0); transform: translate(-6px, 0); }
  50% { clip-path: inset(44% 0 34% 0); transform: translate(4px, 1px); } 75% { clip-path: inset(2% 0 84% 0); transform: translate(-5px, 0); }
  100% { clip-path: inset(0 0 100% 0); opacity: 0; } }

.core { position: relative; aspect-ratio: 1; width: min(100%, 560px); justify-self: center; display: grid; place-items: center; z-index: 2;
  --tx: 0; --ty: 0; transform: perspective(900px) rotateX(calc(var(--ty) * -6deg)) rotateY(calc(var(--tx) * 8deg)); transition: transform 0.4s var(--ease); }
.sun { position: absolute; inset: 9%; animation: sun-turn 80s linear infinite; filter: drop-shadow(0 0 60px rgba(227, 38, 47, 0.45)); }
.sun img { width: 100%; height: 100%; opacity: 0.95; }
@keyframes sun-turn { to { transform: rotate(360deg); } }
.orbit { position: absolute; border-radius: 50%; border: 1px solid rgba(61, 255, 181, 0.22); pointer-events: none; }
.orbit-1 { inset: 3%; border-style: dashed; animation: spin 60s linear infinite reverse; }
.orbit-2 { inset: -3%; border-color: rgba(255, 201, 60, 0.18); animation: spin 26s linear infinite; }
.orbit-3 { inset: 16%; border-color: rgba(88, 200, 244, 0.16); animation: spin 18s linear infinite reverse; }
.orbit i { position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px var(--gold); }
.orbit-3 i { background: var(--jade); box-shadow: 0 0 18px var(--jade); }
@keyframes spin { to { transform: rotate(360deg); } }
.ninja { position: relative; z-index: 3; width: 74%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 50%;
  animation: float 7s ease-in-out infinite; transition: filter 0.3s; }
.ninja img { width: 100%; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.55)); }
.ninja:hover { filter: drop-shadow(0 0 30px rgba(61, 255, 181, 0.35)); }
@keyframes float { 50% { transform: translateY(-14px); } }
/* The charge: a tap on the ninja glitches him, wakes his aura and surges the code rain for about 3.4 s. */
.ninja-ghost { position: absolute; inset: 0; width: 100%; height: auto; opacity: 0; pointer-events: none; mix-blend-mode: screen; }
.ninja-ghost-a { filter: brightness(1.8) sepia(1) hue-rotate(105deg) saturate(6); }
.ninja-ghost-b { filter: brightness(1.6) sepia(1) hue-rotate(-45deg) saturate(7); }
.core.is-focused .ninja { animation: float 7s ease-in-out infinite, charge 3.4s linear; }
.core.is-focused .ninja picture { animation: jitter 3.4s steps(1); }
.core.is-focused .ninja-ghost-a { animation: ghost-a 0.42s steps(3) 8; }
.core.is-focused .ninja-ghost-b { animation: ghost-b 0.36s steps(3) 9 0.1s; }
/* He opens his eyes: the awake picture sits exactly on top and shows during the charge. */
.ninja-awake { position: absolute; inset: 0; opacity: 0; pointer-events: none; }
.core.is-focused .ninja .ninja-awake { animation: awake 3.4s linear, jitter 3.4s steps(1); }
@keyframes awake { 0%, 6% { opacity: 0; } 7% { opacity: 1; } 8% { opacity: 0.2; } 9%, 92% { opacity: 1; } 93% { opacity: 0.3; } 94% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes charge {
  0% { filter: brightness(2) drop-shadow(0 0 70px var(--jade)) drop-shadow(0 0 30px var(--gold)); }
  15% { filter: brightness(1.3) drop-shadow(0 0 50px var(--jade)) drop-shadow(0 0 90px var(--red)); }
  35% { filter: brightness(1.6) drop-shadow(0 0 80px var(--gold)) drop-shadow(0 0 40px var(--jade)); }
  60% { filter: brightness(1.25) drop-shadow(0 0 60px var(--jade)) drop-shadow(0 0 70px var(--red)); }
  85% { filter: brightness(1.1) drop-shadow(0 0 40px var(--jade)); }
  100% { filter: none; } }
@keyframes jitter {
  0%, 30%, 52%, 70%, 88% { transform: none; }
  4% { transform: translate(-6px, 2px) skewX(-6deg); } 8% { transform: translate(5px, -2px); } 12% { transform: translate(-3px, 0) skewX(4deg); }
  33% { transform: translate(7px, 1px) skewX(8deg); } 37% { transform: translate(-5px, -1px); }
  55% { transform: translate(-8px, 0) skewX(-10deg); } 59% { transform: translate(4px, 2px); }
  73% { transform: translate(5px, -1px) skewX(5deg); } 91% { transform: translate(-3px, 1px); } }
@keyframes ghost-a {
  0% { opacity: 0.9; clip-path: inset(8% 0 62% 0); transform: translate(-14px, 0); }
  33% { opacity: 0.8; clip-path: inset(48% 0 28% 0); transform: translate(12px, 2px); }
  66% { opacity: 0.9; clip-path: inset(70% 0 6% 0); transform: translate(-8px, -2px); }
  100% { opacity: 0; clip-path: inset(0 0 100% 0); } }
@keyframes ghost-b {
  0% { opacity: 0.85; clip-path: inset(30% 0 46% 0); transform: translate(14px, 1px); }
  33% { opacity: 0.7; clip-path: inset(4% 0 80% 0); transform: translate(-10px, 0); }
  66% { opacity: 0.85; clip-path: inset(58% 0 20% 0); transform: translate(9px, -1px); }
  100% { opacity: 0; clip-path: inset(0 0 100% 0); } }
.core::before { content: ""; position: absolute; inset: 6%; z-index: 2; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(circle, rgba(61, 255, 181, 0.55) 0%, rgba(255, 201, 60, 0.28) 32%, rgba(227, 38, 47, 0.18) 52%, transparent 70%); mix-blend-mode: screen; }
.core.is-focused::before { animation: aura 3.4s var(--ease); }
@keyframes aura {
  0% { opacity: 0; transform: scale(0.5); } 8% { opacity: 1; transform: scale(1.15); } 20% { opacity: 0.6; transform: scale(0.95); }
  32% { opacity: 1; transform: scale(1.1); } 48% { opacity: 0.55; transform: scale(1); } 62% { opacity: 0.9; transform: scale(1.06); }
  80% { opacity: 0.4; transform: scale(1); } 100% { opacity: 0; transform: scale(0.9); } }
.core::after { content: ""; position: absolute; inset: 20%; z-index: 2; border-radius: 50%; border: 2px solid var(--jade); box-shadow: 0 0 30px var(--jade), inset 0 0 30px rgba(61, 255, 181, 0.4); opacity: 0; pointer-events: none; }
.core.is-focused::after { animation: shock 0.85s var(--ease) 4; }
@keyframes shock { 0% { opacity: 1; transform: scale(0.55); border-color: var(--gold); } 100% { opacity: 0; transform: scale(1.9); border-color: var(--jade); } }
.core.is-focused .sun img { animation: sun-charge 3.4s var(--ease); }
@keyframes sun-charge { 10% { filter: brightness(1.8) saturate(1.4); transform: scale(1.08); } 40% { filter: brightness(1.3); transform: scale(1.02); } 60% { filter: brightness(1.6); transform: scale(1.06); } }
.core.is-focused .orbit { border-color: rgba(61, 255, 181, 0.6); box-shadow: 0 0 24px rgba(61, 255, 181, 0.25); transition: border-color 0.3s, box-shadow 0.3s; }
.core.is-focused .hud, .core.is-focused .chip { animation: flicker 0.18s steps(2) 18; }
@keyframes flicker { 50% { opacity: 0.25; transform: translateX(3px); } }
.core-hint { position: absolute; bottom: -4%; left: 50%; transform: translateX(-50%); margin: 0; font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.hud { position: absolute; z-index: 4; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; font: 700 11px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(7, 9, 12, 0.72); border: 1px solid var(--line-strong); color: var(--jade); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hud i { width: 6px; height: 6px; background: var(--jade); border-radius: 50%; box-shadow: 0 0 10px var(--jade); animation: blink 2s steps(1) infinite; }
.hud-1 { top: 12%; left: -2%; } .hud-2 { top: 46%; right: -4%; color: var(--gold); border-color: rgba(255, 201, 60, 0.35); }
.hud-2 i { background: var(--gold); box-shadow: 0 0 10px var(--gold); animation-delay: 0.6s; }
.hud-3 { bottom: 12%; left: 6%; color: var(--red-hi); border-color: rgba(255, 90, 82, 0.4); }
.hud-3 i { background: var(--red-hi); box-shadow: 0 0 10px var(--red-hi); animation-delay: 1.2s; }
.chip { position: absolute; z-index: 1; font: 12px/1 var(--mono); color: rgba(236, 240, 243, 0.45); white-space: nowrap; animation: drift 12s ease-in-out infinite; }
.chip-1 { top: 2%; left: 30%; } .chip-2 { top: 26%; right: 2%; animation-delay: -3s; } .chip-3 { bottom: 26%; right: -2%; animation-delay: -6s; }
.chip-4 { bottom: 2%; right: 26%; animation-delay: -2s; } .chip-5 { top: 30%; left: -8%; animation-delay: -8s; } .chip-6 { bottom: 34%; left: -4%; animation-delay: -5s; }
@keyframes drift { 50% { transform: translate(8px, -10px); opacity: 0.9; color: var(--jade); } }

/* Story: three manga panels */
.panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.panel { margin: 0; }
.panel-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--ink); border: 2px solid var(--text);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 94% 100%, 0 100%); }
.panel-2 .panel-frame { clip-path: polygon(4% 0, 100% 0, 100% 100%, 0 100%, 0 8%); }
.panel-3 .panel-frame { clip-path: polygon(0 0, 96% 0, 100% 6%, 100% 100%, 0 100%); }
.panel-frame picture { height: 100%; }
.panel-1 .panel-frame { background: var(--paper); }
.panel-1 .panel-frame img { mix-blend-mode: multiply; }
.panel-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.panel:hover .panel-frame img { transform: scale(1.05); }
.panel-frame::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, transparent 55%, rgba(0, 0, 0, 0.35)), repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.08) 0 1px, transparent 1px 3px); }
.panel figcaption { margin-top: 16px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.panel figcaption strong { color: var(--text); font-family: var(--display); font-size: 22px; text-transform: uppercase; display: block; letter-spacing: 0.02em; }
.panel-kanji { float: left; margin: 2px 14px 0 0; font: 900 46px/1 serif; color: var(--red); }

/* Scanner */
.scanner-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.ofudas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ofuda-btn { position: relative; overflow: hidden; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 14px 14px 18px; text-align: left; cursor: pointer;
  background: linear-gradient(170deg, var(--paper), var(--paper-2)); color: var(--paper-ink); border: 0; border-radius: 3px; font: inherit;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 14px 30px rgba(0, 0, 0, 0.35); transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.ofuda-btn::before { content: ""; position: absolute; inset: 6px; border: 1px solid rgba(158, 15, 23, 0.25); pointer-events: none; border-radius: 2px; }
.ofuda-btn:hover { transform: translateY(-4px) rotate(-0.6deg); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25), 0 22px 40px rgba(0, 0, 0, 0.45), 0 0 30px rgba(61, 255, 181, 0.12); }
.ofuda-index { position: absolute; top: 12px; left: 14px; font-size: 11px; color: var(--red-deep); letter-spacing: 0.1em; }
.ofuda-art { display: block; margin: 4px auto 8px; width: 78%; aspect-ratio: 1; }
.ofuda-art img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform 0.6s var(--ease), filter 0.4s; }
.ofuda-btn:hover .ofuda-art img { transform: scale(1.06) rotate(2deg); }
.ofuda-name { font: 900 26px/1 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }
.ofuda-q { margin-top: 6px; font-size: 14px; line-height: 1.4; color: #4a4236; }
.ofuda-detail { display: block; max-height: 0; opacity: 0; margin-top: 0; font-size: 13.5px; line-height: 1.45; color: var(--red-deep); overflow: hidden; transition: max-height 0.45s var(--ease), opacity 0.3s, margin 0.45s; }
.ofuda-stamp { position: absolute; top: 10px; right: 10px; z-index: 2; display: grid; place-items: center; width: 54px; height: 54px; border: 3px solid var(--red); border-radius: 6px;
  color: var(--red); font: 900 17px/1 serif; letter-spacing: 0.05em; writing-mode: vertical-rl; opacity: 0; transform: scale(1.8) rotate(-18deg); transition: opacity 0.2s, transform 0.35s cubic-bezier(0.2, 2, 0.4, 1); mix-blend-mode: multiply; }
.ofuda-btn[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--jade), 0 0 0 6px rgba(61, 255, 181, 0.15), 0 22px 40px rgba(0, 0, 0, 0.45), 0 0 40px rgba(61, 255, 181, 0.3); }
.ofuda-btn[aria-pressed="true"] .ofuda-stamp { opacity: 0.9; transform: scale(1) rotate(-12deg); }
.ofuda-btn[aria-pressed="true"] .ofuda-detail { margin-top: 10px; max-height: 8em; opacity: 1; }
.ofuda-btn[aria-pressed="true"] .ofuda-art img { filter: saturate(1.25) contrast(1.05); }
.ofuda-btn.is-scanning::after { content: ""; position: absolute; left: 0; right: 0; height: 30%; top: 0; pointer-events: none; z-index: 3;
  background: linear-gradient(to bottom, transparent, rgba(61, 255, 181, 0.5), transparent); mix-blend-mode: multiply; opacity: 0; animation: scanline 0.6s var(--ease); }
@keyframes scanline { from { transform: translateY(-100%); opacity: 1; } 90% { opacity: 1; } to { transform: translateY(340%); opacity: 0; } }

.log { position: sticky; top: 96px; background: var(--panel); border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), inset 0 0 40px rgba(61, 255, 181, 0.04); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.log-bar { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.log-bar h3 { font: 600 12px/1 var(--mono); letter-spacing: 0.08em; text-transform: none; color: var(--text); }
.dots { display: inline-flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--red); }
.dots i:nth-child(2) { background: var(--gold); } .dots i:nth-child(3) { background: var(--jade); }
.log-count { margin-left: auto; font-size: 11px; color: var(--muted); }
.log-count b { color: var(--jade); }
.log-radar { position: relative; height: 150px; margin: 14px; border-radius: 50%; aspect-ratio: 1; margin-inline: auto; width: 150px;
  background: radial-gradient(circle, transparent 0 30%, rgba(61, 255, 181, 0.12) 30.5% 31%, transparent 31.5% 62%, rgba(61, 255, 181, 0.12) 62.5% 63%, transparent 63.5%),
    linear-gradient(rgba(61, 255, 181, 0.1), rgba(61, 255, 181, 0.1)) center / 1px 100% no-repeat, linear-gradient(90deg, rgba(61, 255, 181, 0.1), rgba(61, 255, 181, 0.1)) center / 100% 1px no-repeat, rgba(4, 12, 9, 0.6);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 0 30px rgba(61, 255, 181, 0.08); overflow: hidden; }
.sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, transparent 78%, rgba(61, 255, 181, 0.5)); animation: spin 3.2s linear infinite; }
.blips { position: absolute; inset: 0; }
.blip { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--red-hi); box-shadow: 0 0 12px var(--red-hi); animation: blip 1.6s ease-in-out infinite; }
@keyframes blip { 50% { transform: scale(1.5); opacity: 0.6; } }
.log-lines { list-style: none; margin: 0; padding: 4px 16px 10px; min-height: 120px; max-height: 240px; overflow: auto; font-size: 12.5px; line-height: 1.7; color: var(--muted); }
.log-lines li { animation: type-in 0.4s var(--ease); }
.log-lines .hit { color: var(--text); }
.log-lines .hit b { color: var(--red-hi); font-weight: 700; }
.log-lines .ok { color: var(--jade); }
.log-lines .is-idle::after { content: "▮"; margin-left: 4px; color: var(--jade); animation: blink 1s steps(1) infinite; }
@keyframes type-in { from { opacity: 0; transform: translateX(-6px); } }
.log-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px 14px; border-top: 1px solid var(--line); }
.scan-note { max-width: 760px; margin: 36px 0 0; color: var(--muted); border-left: 2px solid var(--red); padding-left: 18px; }

/* Techniques */
.technique-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.technique { position: relative; padding: 0 0 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; overflow: hidden;
  --rx: 0deg; --ry: 0deg; transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)); transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.technique:hover { border-color: var(--line-strong); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(61, 255, 181, 0.08); }
.technique-art { aspect-ratio: 16 / 10; background: linear-gradient(170deg, var(--paper), var(--paper-2)); display: grid; place-items: center; overflow: hidden; border-bottom: 2px solid var(--red); }
.technique-art picture { width: 100%; height: 100%; }
.technique-art img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 10px; transition: transform 0.8s var(--ease); }
.technique:hover .technique-art img { transform: scale(1.05); }
.technique-index { margin: 18px 22px 8px; font-size: 12px; letter-spacing: 0.14em; color: var(--jade); }
.technique-index span { color: var(--red-hi); font-family: serif; font-size: 16px; margin-right: 4px; }
.technique h3 { margin: 0 22px 10px; }
.technique p:last-child { margin: 0 22px; color: var(--muted); font-size: 15.5px; }

/* Space: before and after */
.space { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.space-copy p { color: var(--muted); }
.space-copy h2 { margin-bottom: 20px; }
.fineprint { font-size: 13.5px; opacity: 0.8; }
.compare { position: relative; overflow: hidden; border-radius: 8px; aspect-ratio: 16 / 9; border: 1px solid var(--line-strong); --pos: 50%; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.compare figure { position: absolute; inset: 0; margin: 0; }
.compare figure img, .compare figure picture { width: 100%; height: 100%; object-fit: cover; }
.compare-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare figcaption { position: absolute; top: 14px; padding: 6px 10px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; background: rgba(7, 9, 12, 0.75); border: 1px solid var(--line-strong); }
.compare-before figcaption { left: 14px; color: var(--red-hi); }
.compare-after figcaption { right: 14px; color: var(--jade); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--jade); box-shadow: 0 0 20px var(--jade); pointer-events: none; }
.compare-handle span { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 46px; height: 46px; transform: translate(-50%, -50%); color: var(--jade); font-size: 20px; isolation: isolate; }
.compare-handle span::before { content: ""; position: absolute; inset: 0; z-index: -1; transform: rotate(45deg); background: var(--void); border: 2px solid var(--jade); }
.compare-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.compare-range:focus-visible + * { outline: none; }
.compare:focus-within { outline: 2px solid var(--jade); outline-offset: 4px; }

/* About */
.about { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.about-art { position: relative; aspect-ratio: 1; max-width: 420px; justify-self: center; width: 100%; }
.about-art picture { position: relative; z-index: 2; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 40%, var(--paper), var(--paper-2)); box-shadow: 0 0 0 6px var(--void), 0 0 0 8px var(--red), 0 30px 60px rgba(0, 0, 0, 0.5); }
.about-art img { mix-blend-mode: multiply; transform: scale(0.92); }
.about-ring { position: absolute; inset: -8%; border-radius: 50%; border: 1px dashed var(--line-strong); animation: spin 50s linear infinite; }
.about-ring::before { content: "DIGIFIX · NINJA · MERTERT · 忍 · "; position: absolute; top: -9px; left: 50%; transform: translateX(-50%); padding: 0 8px; background: var(--void); font: 700 11px/18px var(--mono); letter-spacing: 0.2em; color: var(--jade); }
.about-copy p { color: var(--muted); }
.about-copy .lede { color: var(--text); margin-top: 18px; }
.quote { margin: 26px 0 0; padding: 18px 22px; border-left: 3px solid var(--jade); background: rgba(61, 255, 181, 0.05); }
.quote p { margin: 0; color: var(--text) !important; font: 700 22px/1.25 var(--display); text-transform: uppercase; letter-spacing: 0.02em; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 0.75fr 1.25fr; gap: 28px; align-items: start; }
.channels { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.channel { display: flex; align-items: center; gap: 16px; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; text-decoration: none; transition: border-color 0.3s, transform 0.3s var(--ease), box-shadow 0.3s; }
a.channel:hover { border-color: var(--jade); transform: translateX(6px); box-shadow: 0 0 30px rgba(61, 255, 181, 0.12); }
.channel-icon { display: grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--red); color: #fff; font-size: 20px; box-shadow: 0 0 20px rgba(227, 38, 47, 0.4); }
.channel-label { display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.channel-value { display: block; font: 700 22px/1.2 var(--display); letter-spacing: 0.02em; overflow-wrap: anywhere; }
.scroll { position: relative; padding: clamp(22px, 4vw, 40px); background: linear-gradient(170deg, var(--paper), var(--paper-2)); color: var(--paper-ink); border-radius: 4px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.scroll::before, .scroll::after { content: ""; position: absolute; left: -10px; right: -10px; height: 16px; border-radius: 8px; background: linear-gradient(#3a2a1c, #1a120b); box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4); }
.scroll::before { top: -8px; } .scroll::after { bottom: -8px; }
.scroll h3 { font-size: 34px; margin-bottom: 8px; color: var(--paper-ink); }
.required-note { margin: 0 0 18px; font-size: 14px; color: #5b5244; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 6px; font: 700 13px/1.2 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; }
.field-state { font-weight: 400; color: #6d6455; text-transform: none; }
.field input, .field textarea { width: 100%; padding: 12px 14px; font: 16px/1.4 var(--body); color: var(--paper-ink); background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(29, 25, 19, 0.3); border-radius: 3px; transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 3px rgba(227, 38, 47, 0.2); }
.field textarea { resize: vertical; min-height: 150px; }
.field [aria-invalid="true"] { border-color: var(--red); }
.field-help { margin: 6px 0 0; font-size: 13px; color: #6d6455; }
.field-error { margin: 6px 0 0; font-size: 14px; color: var(--red-deep); font-weight: 700; }
.contact-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { margin: 4px 0 20px; padding: 14px 16px; font-size: 13px; line-height: 1.5; color: #4a4236; background: rgba(29, 25, 19, 0.05); border-left: 3px solid var(--red); }
.notice p { margin: 0 0 6px; }
.notice a { color: var(--red-deep); font-weight: 700; }
.form-summary, .form-status { margin: 0 0 18px; padding: 14px 16px; border-radius: 3px; background: rgba(227, 38, 47, 0.1); border: 1px solid var(--red); }
.form-summary h3, .form-status h3 { font-size: 20px; margin-bottom: 6px; }
.form-summary a { color: var(--red-deep); }
.form-status { margin: 18px 0 0; }
.form-status[data-state="success"] { background: rgba(20, 183, 124, 0.12); border-color: var(--jade-deep); }
.form-status p { margin: 0; font-size: 14px; }
.submit[disabled] { opacity: 0.6; cursor: progress; }
.scroll .btn-red { box-shadow: 0 10px 24px rgba(227, 38, 47, 0.35); }

/* Footer */
.bottom { margin-top: 60px; border-top: 1px solid var(--line); background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.5)); }
.bottom-inner { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.2fr; gap: 32px; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 56px var(--gutter) 40px; }
.bottom-brand { display: flex; gap: 14px; align-items: center; }
.bottom-brand img { width: 64px; height: 64px; }
.bottom-brand p { margin: 0; font-size: 13px; color: var(--muted); }
.bottom-brand strong { font: 900 26px/1 var(--display); text-transform: uppercase; color: var(--text); }
.bottom-col h2 { font-size: 14px; font-family: var(--mono); letter-spacing: 0.16em; color: var(--jade); margin-bottom: 14px; }
.bottom-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bottom-col a { text-decoration: none; color: var(--muted); font-size: 15px; }
.bottom-col a:hover, .bottom-col a[aria-current] { color: var(--text); }
.bottom-langs a { display: inline-flex; align-items: center; gap: 10px; }
.bottom-langs img { width: 24px; height: 16px; border-radius: 2px; }
.bottom-credit p { margin: 0; font-size: 12px; color: var(--muted); }
.credit-link { display: inline-flex; align-items: center; gap: 12px; margin: 10px 0; text-decoration: none; font: 700 24px/1 "Avenir Next", "Segoe UI", system-ui, sans-serif; letter-spacing: 0.01em; }
.credit-link .dot { color: var(--gold); }
.credit-link:hover { color: var(--jade); }
.rights { opacity: 0.7; }

/* The stean.DEV bar closes the page; on phones it also fills the home-indicator area so nothing shows below it. */
.bottom .stean-dev--bar { height: auto; min-height: 88px; padding-bottom: env(safe-area-inset-bottom, 0px); }

/* Back to top: a shuriken that fills its ring as you scroll */
.shuriken { position: fixed; right: clamp(14px, 3vw, 28px); bottom: clamp(14px, 3vw, 28px); z-index: 40; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(7, 9, 12, 0.85); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease); --p: 0; }
.shuriken.is-shown { opacity: 1; transform: none; pointer-events: auto; }
.shuriken svg { width: 100%; height: 100%; }
.shuriken .ring-bg { fill: none; stroke: var(--iron); stroke-width: 3; }
.shuriken .ring { fill: none; stroke: var(--red); stroke-width: 3; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p) * 100); transform: rotate(-90deg); transform-origin: center; }
.shuriken .star { fill: var(--text); transform-origin: 32px 32px; transform: rotate(calc(var(--p) * 1080deg)); }
.shuriken .star circle { fill: var(--void); }
.shuriken:hover .star { fill: var(--jade); }

/* Toast for the secret word */
.toast { position: fixed; left: 50%; top: 90px; z-index: 70; transform: translate(-50%, -20px); padding: 12px 20px; font: 700 13px/1 var(--mono); letter-spacing: 0.16em; text-transform: uppercase;
  background: var(--void); color: var(--jade); border: 1px solid var(--jade); box-shadow: 0 0 40px rgba(61, 255, 181, 0.35); opacity: 0; pointer-events: none; transition: opacity 0.3s, transform 0.3s var(--ease); }
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }
body.is-vanishing main { animation: vanish 1.4s var(--ease); }
@keyframes vanish { 0% { filter: none; } 20% { filter: blur(8px) contrast(1.6) hue-rotate(40deg); transform: skewX(-3deg); } 45% { filter: blur(14px) grayscale(1); opacity: 0.2; } 100% { filter: none; opacity: 1; } }

/* Reveal on scroll, only when scripts are running */
.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.ofudas li:nth-child(3n + 2) [data-reveal], .ofudas li:nth-child(3n + 2).ofuda { transition-delay: 0.08s; }
.ofudas li:nth-child(3n).ofuda, .technique-grid li:nth-child(3n) { transition-delay: 0.16s; }
.technique-grid li:nth-child(3n + 2) { transition-delay: 0.08s; }
.panel-2 { transition-delay: 0.1s; } .panel-3 { transition-delay: 0.2s; }

/* Legal, privacy and 404 pages */
.reading-main { max-width: 860px; margin: 0 auto; padding: clamp(48px, 8vw, 100px) var(--gutter) 40px; }
.reading-page { padding: clamp(24px, 5vw, 56px); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.reading-page h1 { font-size: clamp(44px, 7vw, 80px); margin-bottom: 18px; }
.reading-page h2 { font-size: clamp(26px, 3.4vw, 34px); margin: 40px 0 14px; color: var(--text); }
.reading-page h3 { font-size: 22px; margin: 24px 0 10px; }
.reading-page p, .reading-page li, .reading-page dd { color: var(--muted); }
.reading-page a { color: var(--jade); }
.reading-page strong { color: var(--text); }
.reading-page .eyebrow { font-family: var(--mono); }
.reading-page .lead { color: var(--text); font-size: 19px; }
.reading-page dl { display: grid; grid-template-columns: minmax(140px, 0.4fr) 1fr; gap: 8px 20px; margin: 0; }
.reading-page dt { font: 700 13px/1.6 var(--mono); color: var(--text); text-transform: uppercase; letter-spacing: 0.04em; }
.reading-page dd { margin: 0; }
.reading-page .notice { color: var(--muted); background: rgba(227, 38, 47, 0.06); }
.related-links { display: flex; flex-wrap: wrap; gap: 10px 20px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
.error-page { text-align: center; }
.reading-page .error-code { margin: 0; font: 900 clamp(110px, 22vw, 220px)/0.8 var(--display); color: transparent; -webkit-text-stroke: 2px var(--red); }
.error-page .actions { justify-content: center; margin-top: 18px; }
.error-page .btn { color: inherit; }
.error-page .btn-red { color: #fff; }

/* Motion off */
.no-fx *, .no-fx *::before, .no-fx *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* Responsive */
@media (max-width: 1560px) {
  .nav a { padding: 8px 6px; font-size: 12px; }
  .nav-index, .signal-label { display: none; }
  .top { gap: 14px; }
  .menu { gap: 12px; }
}
@media (max-width: 1280px) {
  .menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 46px; margin-left: auto; padding: 0 12px; background: transparent; border: 1px solid var(--line-strong); border-radius: 8px; cursor: pointer; }
  .menu-toggle span { display: block; height: 2px; background: var(--text); transition: transform 0.3s var(--ease), opacity 0.2s; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu { position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 16px; margin: 0; padding: 18px var(--gutter) 24px;
    background: rgba(7, 9, 12, 0.97); border-bottom: 1px solid var(--line); }
  .js .menu:not(.is-open) { display: none; }
  .nav { flex-direction: column; }
  .nav a { padding: 12px 0; font-size: 15px; border-bottom: 1px solid var(--line); }
  .langs { align-self: flex-start; }
  .signal { align-self: flex-start; }
  .signal-label { display: inline; }
  .top .stean-dev--corner { align-self: flex-start; }
  .hero { grid-template-columns: 1fr; min-height: 0; text-align: left; }
  .core { width: min(80%, 440px); order: -1; }
  .scanner-grid { grid-template-columns: 1fr; }
  .log { position: relative; top: auto; z-index: 5; }
  .log.is-active { position: sticky; bottom: 12px; }
  .log-actions { padding-right: 84px; }
  .log-radar { display: none; }
  .log-lines { min-height: 0; max-height: 96px; }
  .space, .about, .contact-grid { grid-template-columns: 1fr; }
  .technique-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bottom-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .brand-word { font-size: 22px; }
  .brand img { width: 40px; height: 40px; }
  .panels { grid-template-columns: 1fr; }
  /* The creatures become one swipeable line of talismans. */
  .ofudas { display: flex; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 6px var(--gutter) 14px; scroll-padding: 0 var(--gutter); -webkit-overflow-scrolling: touch; }
  .ofudas::-webkit-scrollbar { display: none; }
  .ofudas > li { flex: 0 0 58%; scroll-snap-align: start; }
  .js .ofudas [data-reveal], .js .ofudas .ofuda { opacity: 1; transform: none; }
  .ofuda-name { font-size: 21px; }
  .ofuda-q { font-size: 13px; }
  /* Techniques sit two by two. */
  .technique-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .technique { padding-bottom: 14px; }
  .technique-index { margin: 10px 12px 4px; font-size: 11px; }
  .technique h3 { margin: 0 12px 6px; font-size: 18px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
  .technique p:last-child { margin: 0 12px; font-size: 13px; line-height: 1.45; }
  .field-row { grid-template-columns: 1fr; }
  .hud-1 { left: 0; } .hud-2 { right: 0; } .chip-5, .chip-6, .chip-3 { display: none; }
  .bottom-inner { grid-template-columns: 1fr; }
  .about-art { width: 82%; }
  .reading-page dl { grid-template-columns: 1fr; }
  .bottom .stean-dev--bar { font-size: 20px; min-height: 76px; }
  .menu .stean-dev--corner { margin-left: 0; padding: 0 16px 0 12px; }
  .menu .stean-dev--corner .sd-label { display: inline-block; }
  .reading-main { padding-left: 12px; padding-right: 12px; }
  .reading-page { padding: 22px 18px; }
}

/* Result page of /contact/submit.php when scripts are off */
.site-header .header-inner { display: flex; align-items: center; gap: 20px; width: 100%; }
.site-header .header-inner > :last-child:not(.brand) { display: flex; gap: 8px; margin-left: auto; }
.site-header .header-inner img:not(.header-logo) { width: 30px; height: 20px; }
.result-page .field label { color: var(--text); }
.result-page .btn { margin-top: 8px; }
