/* ==================================================================
   STINKWIND FIELD SYSTEM
   A recovered field terminal. Built from scratch for the small screen.
   ================================================================== */

@font-face {
  font-family: 'Archivo Black';
  src: url('../fonts/archivo-black-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans Khmer';
  src: url('../fonts/noto-sans-khmer-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Noto Sans Khmer';
  src: url('../fonts/noto-sans-khmer-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #040704;
  --bg-2: #070d06;
  --bg-3: #0b1308;
  --phos: #8dff3d;
  --phos-bright: #ccff9a;
  --phos-dim: #5e9c3f;
  --phos-deep: #2c5c1c;
  --bone: #efe9d2;
  --bone-dim: #b9b39d;
  --bone-faint: #7b7a69;
  --amber: #ffc35c;
  --red: #ff5b47;
  --line: rgba(141, 255, 61, 0.26);
  --line-soft: rgba(141, 255, 61, 0.11);
  --accent: var(--phos);
  --accent-soft: rgba(141, 255, 61, 0.14);
  --display: 'Archivo Black', 'Arial Black', Impact, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --km: 'Noto Sans Khmer', 'Khmer OS', 'Khmer', sans-serif;
  --pad: clamp(15px, 4.4vw, 26px);
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(0.2, 0.75, 0.2, 1);
  --screen-h: clamp(560px, calc(100vh - 186px), 940px);
}

@supports (height: 100svh) {
  :root {
    --screen-h: clamp(560px, calc(100svh - 186px), 940px);
  }
}

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

html {
  background: #020302;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  overflow: hidden;
  background:
    radial-gradient(1100px 760px at 50% -12%, rgba(31, 58, 22, 0.42) 0%, rgba(6, 10, 5, 0.9) 48%, #020302 100%),
    #020302;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--phos);
}

h1, h2, h3, h4, p, figure {
  margin: 0;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--phos);
  color: #041003;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 999;
  padding: 10px 14px;
  background: var(--phos);
  color: #041003;
  font-weight: 600;
  text-decoration: none;
  border-radius: 2px;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 12px;
}

/* ---------------------------------------------------------- room + cabinet */
.room {
  position: fixed;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  padding: 18px 14px;
  overflow: hidden;
}

.room::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(141, 255, 61, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 255, 61, 0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse at 50% 45%, #000 0%, transparent 76%);
}

.room::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -19%;
  width: 92vw;
  height: 40vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(141, 255, 61, 0.075), transparent 64%);
  pointer-events: none;
  filter: blur(14px);
}

.terminal {
  position: relative;
  z-index: 1;
  width: min(96vw, 880px);
  filter: drop-shadow(0 40px 70px rgba(0, 0, 0, 0.8));
}

.terminal__bezel {
  position: relative;
  padding: 15px;
  border-radius: 29px;
  background:
    linear-gradient(145deg, #1c2418 0%, #0a0f08 38%, #161d12 70%, #0b1009 100%);
  border: 1px solid #26301f;
  box-shadow:
    inset 0 1px 0 rgba(218, 255, 190, 0.1),
    inset 0 -3px 14px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(0, 0, 0, 0.65);
}

.terminal__bezel::before {
  content: '';
  position: absolute;
  inset: 7px;
  border-radius: 22px;
  border: 1px solid rgba(141, 255, 61, 0.06);
  pointer-events: none;
}

.screw {
  position: absolute;
  z-index: 3;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #6d7a60, #1b2117 65%);
  box-shadow: inset 0 0 2px #000, 0 1px 1px rgba(255, 255, 255, 0.08);
}
.screw::after {
  content: '';
  position: absolute;
  inset: 3px 1px;
  border-top: 1px solid rgba(0, 0, 0, 0.65);
  transform: rotate(24deg);
}
.screw--tl { left: 17px; top: 17px; }
.screw--tr { right: 17px; top: 17px; }
.screw--bl { left: 17px; bottom: 17px; }
.screw--br { right: 17px; bottom: 17px; }

.screen {
  position: relative;
  height: var(--screen-h);
  min-height: 520px;
  overflow: hidden;
  border-radius: 19px;
  background:
    radial-gradient(ellipse at 50% 12%, #0a1508 0%, #050905 46%, #020402 100%);
  border: 1px solid #000;
  box-shadow:
    inset 0 0 0 1px rgba(141, 255, 61, 0.06),
    inset 0 0 110px rgba(0, 0, 0, 0.95),
    0 0 46px rgba(141, 255, 61, 0.045);
  isolation: isolate;
  transform: translateZ(0);
}

.screen::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 0 20px rgba(0, 0, 0, 0.5),
    inset 0 0 2px 2px rgba(0, 0, 0, 0.7);
}

.screen::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 41;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0.045) 0%, rgba(255, 255, 255, 0.012) 18%, transparent 34%, transparent 72%, rgba(255, 255, 255, 0.016) 100%);
  mix-blend-mode: screen;
}

.terminal__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 26px 10px;
  margin: 0 24px;
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, #151c11, #0a0f08 60%, #070b06);
  border: 1px solid #1d2618;
  border-top: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 30px rgba(0, 0, 0, 0.55);
}

.terminal__plate {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 7.5px;
  letter-spacing: 0.15em;
  color: #718068;
  text-transform: uppercase;
}
.terminal__plate span:first-child {
  font-family: var(--display);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: #93a187;
}
.terminal__plate span + span::before {
  content: '·';
  margin-right: 12px;
  color: #455040;
}

.terminal__controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--phos);
  box-shadow: 0 0 10px var(--phos), 0 0 3px #fff inset;
  animation: ledBreathe 4s ease-in-out infinite;
}

.knob {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 32%, #39452f, #11160e 68%),
    #0b0f08;
  border: 1px solid #2a3422;
  position: relative;
  box-shadow: inset 0 -2px 3px #000;
}
.knob::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 4px;
  width: 1px;
  height: 6px;
  background: #8d9b7b;
  transform: translateX(-50%) rotate(28deg);
  transform-origin: bottom;
}
.knob--small {
  width: 15px;
  height: 15px;
}
.knob--small::after {
  top: 3px;
  height: 4px;
}

.vent {
  width: 46px;
  height: 12px;
  opacity: 0.45;
  background: repeating-linear-gradient(180deg, #5d6b52 0 1px, transparent 1px 3px);
  border-radius: 2px;
}

.room__caption {
  position: relative;
  z-index: 1;
  font-size: 8px;
  letter-spacing: 0.22em;
  color: #46503e;
  text-transform: uppercase;
  text-align: center;
}

@keyframes ledBreathe {
  0%, 100% { opacity: 0.55; }
  48% { opacity: 1; }
  52% { opacity: 0.82; }
}

/* ------------------------------------------------------------------ app */
.app {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.app::-webkit-scrollbar {
  display: none;
}

.view {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 780px;
  margin: 0 auto;
  padding: 0 var(--pad) calc(38px + var(--safe-b));
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.view.is-in {
  opacity: 1;
  transform: translateY(0);
}

.atmosphere {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.62;
  mix-blend-mode: screen;
}

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 14px;
  padding: 30px;
  background: #040704;
  color: var(--bone);
  z-index: 9999;
}
.noscript h1 {
  font-family: var(--display);
  color: var(--phos);
  font-size: 30px;
}

/* --------------------------------------------------------------- CRT FX */
.crt {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
}

.crt__scan {
  position: absolute;
  inset: -10%;
  opacity: 0.34;
  background: repeating-linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.36) 0px,
    rgba(0, 0, 0, 0.36) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: multiply;
  animation: scanDrift 9s linear infinite;
}

.crt__sweep {
  position: absolute;
  left: 0;
  right: 0;
  height: 22%;
  top: -25%;
  background: linear-gradient(180deg, transparent, rgba(190, 255, 150, 0.035) 46%, rgba(190, 255, 150, 0.075) 50%, rgba(190, 255, 150, 0.02) 54%, transparent);
  animation: sweep 8.5s linear infinite;
  mix-blend-mode: screen;
}

.crt__flicker {
  position: absolute;
  inset: 0;
  background: #baff8f;
  opacity: 0;
  animation: flicker 7.4s steps(1, end) infinite;
  mix-blend-mode: soft-light;
}

.crt__noise {
  position: absolute;
  inset: -18%;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  animation: noiseShift 0.7s steps(4, end) infinite;
  mix-blend-mode: screen;
}

.crt__glare {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 18% at 18% 0%, rgba(220, 255, 210, 0.055), transparent 66%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.024), transparent 28%);
}

.crt__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, transparent 54%, rgba(0, 0, 0, 0.28) 84%, rgba(0, 0, 0, 0.62) 100%);
  box-shadow:
    inset 0 0 26px rgba(0, 0, 0, 0.7),
    inset 0 0 4px 2px rgba(0, 0, 0, 0.7);
}

.screen.glitch .crt__scan {
  animation: glitchScan 0.16s steps(2, end) 1;
}
.screen.glitch .app {
  transform: translateX(1px) skewX(-0.12deg);
  filter: brightness(1.06);
}
.screen.glitch .crt__sweep {
  opacity: 1;
}

@keyframes scanDrift {
  from { transform: translateY(0); }
  to { transform: translateY(24px); }
}
@keyframes sweep {
  0% { top: -28%; opacity: 0; }
  8% { opacity: 1; }
  55% { opacity: 0.55; }
  100% { top: 108%; opacity: 0; }
}
@keyframes flicker {
  0%, 91%, 93%, 96%, 100% { opacity: 0; }
  92% { opacity: 0.035; }
  94% { opacity: 0.015; }
  97% { opacity: 0.028; }
}
@keyframes noiseShift {
  0% { transform: translate(0, 0); }
  25% { transform: translate(-4px, 3px); }
  50% { transform: translate(3px, -5px); }
  75% { transform: translate(-2px, -3px); }
  100% { transform: translate(0, 0); }
}
@keyframes glitchScan {
  0% { transform: translateY(-5px); opacity: 0.6; }
  50% { transform: translateY(6px); opacity: 0.2; }
  100% { transform: translateY(0); opacity: 0.34; }
}

.no-scanlines .crt__scan { display: none; }
.no-flicker .crt__flicker { display: none; }
.no-flicker .crt__noise { opacity: 0.03; }

/* --------------------------------------------------------------- boot */
.boot {
  position: absolute;
  inset: 0;
  z-index: 25;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(28px + var(--safe-t)) var(--pad) calc(34px + var(--safe-b));
  background:
    radial-gradient(ellipse at 50% 35%, rgba(20, 44, 14, 0.45), transparent 60%),
    var(--bg);
  transition: opacity 0.55s var(--ease), visibility 0.55s;
  overflow: hidden;
}
.boot::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(141, 255, 61, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 255, 61, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 78%);
  opacity: 0.55;
  pointer-events: none;
}
.boot::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--phos);
  box-shadow: 0 0 18px 4px rgba(141, 255, 61, 0.65);
  animation: bootLine 0.5s var(--ease) both;
}
.boot.is-off {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.boot__ghost {
  position: absolute;
  left: 50%;
  top: 44%;
  width: min(88%, 610px);
  transform: translate(-50%, -50%);
  opacity: 0.055;
  filter: brightness(1.1) saturate(0.2);
  pointer-events: none;
}

.boot__inner {
  position: relative;
  z-index: 2;
  width: min(100%, 560px);
}

.boot__top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  color: var(--phos);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.boot__unit {
  color: var(--bone-faint);
  white-space: nowrap;
}

.boot__brand {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 18px 0 1px;
  color: var(--phos);
  text-shadow: 0 0 18px rgba(141, 255, 61, 0.25);
}
.boot__brand-mark {
  font-size: clamp(18px, 5vw, 28px);
  line-height: 1;
  animation: markPulse 2.4s steps(1, end) infinite;
}
.boot__brand-word {
  font-family: var(--display);
  font-size: clamp(39px, 11.2vw, 68px);
  line-height: 0.9;
  letter-spacing: -0.035em;
}
.boot__cursor {
  width: 0.5em;
  height: 0.78em;
  background: var(--phos);
  align-self: flex-end;
  margin-bottom: 0.06em;
  animation: cursorBlink 0.9s steps(1, end) infinite;
  box-shadow: 0 0 12px rgba(141, 255, 61, 0.6);
}
.boot__sub {
  color: var(--bone-dim);
  font-size: clamp(10px, 2.8vw, 13px);
  letter-spacing: 0.19em;
  margin-top: 9px;
}

.boot__log {
  margin-top: 26px;
  min-height: 156px;
  color: var(--bone-dim);
  font-size: clamp(10.5px, 2.9vw, 12px);
  line-height: 1.9;
}
.boot__log .line {
  display: flex;
  gap: 8px;
  opacity: 0;
  animation: lineIn 0.22s var(--ease) forwards;
}
.boot__log .line .dots {
  flex: 1;
  margin: 0 2px;
  border-bottom: 1px dotted rgba(239, 233, 210, 0.18);
  transform: translateY(-4px);
}
.boot__log .line .ok {
  color: var(--phos);
  letter-spacing: 0.08em;
}
.boot__log .line .warn {
  color: var(--amber);
  letter-spacing: 0.08em;
}
.boot__log .line.brandline {
  color: var(--phos);
  letter-spacing: 0.12em;
  font-weight: 500;
}
.boot__log .line.dimline {
  color: var(--bone-faint);
}
.boot__log .line.readylines {
  color: var(--phos-bright);
  font-weight: 600;
  letter-spacing: 0.12em;
  margin-top: 4px;
}
.boot__log .line.readylines .ok {
  color: var(--phos);
}

.boot__meter {
  position: relative;
  height: 5px;
  margin-top: 20px;
  background: rgba(141, 255, 61, 0.09);
  border: 1px solid rgba(141, 255, 61, 0.18);
}
.boot__meter span {
  display: block;
  width: 0;
  height: 100%;
  background:
    repeating-linear-gradient(90deg, var(--phos) 0 10px, rgba(141, 255, 61, 0.35) 10px 12px);
  box-shadow: 0 0 12px rgba(141, 255, 61, 0.35);
  transition: width 0.4s var(--ease);
}
.boot__bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 9px;
  color: var(--bone-faint);
  font-size: 9px;
  letter-spacing: 0.1em;
}
.boot__pct {
  color: var(--phos);
}

.boot__skip {
  position: absolute;
  right: calc(var(--pad) + 2px);
  top: calc(18px + var(--safe-t));
  z-index: 4;
  padding: 10px 8px 10px 12px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--bone-faint);
  font-size: 9px;
  letter-spacing: 0.18em;
}
.boot__skip:hover,
.boot__skip:focus-visible {
  color: var(--phos);
  border-color: var(--line);
}

.audio-hint {
  position: absolute;
  z-index: 45;
  left: 50%;
  bottom: calc(14px + var(--safe-b));
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border: 1px solid rgba(141, 255, 61, 0.28);
  background: rgba(4, 7, 4, 0.92);
  color: var(--phos);
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.13em;
  white-space: nowrap;
  box-shadow: 0 0 24px rgba(0, 0, 0, 0.7);
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.audio-hint span:not(.audio-hint__dot) {
  color: var(--bone-dim);
}
.audio-hint__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px var(--amber);
  animation: blink 1.8s steps(1, end) infinite;
}
.audio-hint.is-hidden {
  opacity: 0;
  transform: translate(-50%, 8px);
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.4s;
}
.audio-hint.is-on {
  border-color: var(--line);
}
.audio-hint.is-on .audio-hint__dot {
  background: var(--phos);
  box-shadow: 0 0 8px var(--phos);
}

@keyframes bootLine {
  from { transform: scaleX(0); transform-origin: left; }
  to { transform: scaleX(1); transform-origin: left; }
}
@keyframes lineIn {
  from { opacity: 0; transform: translateY(3px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes cursorBlink {
  0%, 48% { opacity: 1; }
  49%, 100% { opacity: 0; }
}
@keyframes markPulse {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0.5; }
}
@keyframes blink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0.18; }
}

/* ----------------------------------------------------------- transition */
.wipe {
  position: absolute;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  overflow: hidden;
}
.wipe::before,
.wipe::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 50.15%;
  background: #020402;
  z-index: 1;
  transition: transform 0.26s var(--ease);
  will-change: transform;
}
.wipe::before {
  top: 0;
  transform: translateY(-101%);
}
.wipe::after {
  bottom: 0;
  transform: translateY(101%);
}
.wipe span {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 2px;
  background: var(--phos);
  box-shadow: 0 0 20px 3px rgba(141, 255, 61, 0.8);
  opacity: 0;
  transform: scaleX(0.1);
  transition: opacity 0.2s, transform 0.3s var(--ease);
}
.wipe.is-covering::before,
.wipe.is-covering::after,
.wipe.is-revealing::before,
.wipe.is-revealing::after {
  transform: translateY(0);
}
.wipe.is-covering span {
  opacity: 0.9;
  transform: scaleX(1);
}
.wipe.is-flash::before,
.wipe.is-flash::after {
  background: #d6ffc4;
}
.wipe.is-flash span {
  opacity: 1;
  background: #f4ffe9;
}

.powerflash {
  position: absolute;
  inset: 0;
  z-index: 70;
  background: #e5ffd2;
  opacity: 0;
  pointer-events: none;
}
.powerflash.is-firing {
  animation: powerFlash 0.55s steps(4, end) both;
}
@keyframes powerFlash {
  0% { opacity: 0; }
  12% { opacity: 0.62; }
  30% { opacity: 0.08; }
  48% { opacity: 0.2; }
  100% { opacity: 0; }
}

/* -------------------------------------------------------------- toast */
.toast {
  position: absolute;
  z-index: 65;
  left: 50%;
  bottom: calc(18px + var(--safe-b));
  transform: translate(-50%, 12px);
  max-width: calc(100% - 32px);
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: #071006;
  color: var(--phos-bright);
  font-size: 10px;
  letter-spacing: 0.09em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s, transform 0.22s var(--ease);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.8);
  text-align: center;
}
.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--phos);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: background 0.16s, color 0.16s, border-color 0.16s;
}
.btn:hover,
.btn:focus-visible {
  background: var(--phos);
  color: #031003;
  border-color: var(--phos);
  outline: none;
}
.btn--danger {
  color: var(--red);
  border-color: rgba(255, 91, 71, 0.4);
}
.btn--danger:hover,
.btn--danger:focus-visible {
  background: var(--red);
  color: #120401;
  border-color: var(--red);
}
.btn--plain {
  color: var(--bone-dim);
  border-color: rgba(239, 233, 210, 0.16);
}
.btn--plain:hover,
.btn--plain:focus-visible {
  background: var(--bone);
  color: #080b06;
  border-color: var(--bone);
}
.btn[disabled] {
  opacity: 0.4;
  pointer-events: none;
}

.iconbtn {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--bone-dim);
  font-size: 16px;
  line-height: 1;
  transition: color 0.16s, background 0.16s, border-color 0.16s;
}
.iconbtn:hover,
.iconbtn:focus-visible {
  color: var(--phos);
  border-color: var(--line);
  background: rgba(141, 255, 61, 0.05);
  outline: none;
}

:focus-visible {
  outline: 1px solid var(--phos);
  outline-offset: 3px;
}

/* -------------------------------------------------------------- topbar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 22;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  margin: 0 calc(var(--pad) * -1);
  padding: calc(4px + var(--safe-t)) var(--pad) 4px;
  background: linear-gradient(180deg, #050905 0%, #050905 78%, rgba(5, 9, 5, 0.94) 100%);
  border-bottom: 1px solid var(--line);
}
.topbar::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -3px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(141, 255, 61, 0.16), transparent);
  pointer-events: none;
}
.topbar__brand {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--phos);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.topbar__brand .sq {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--phos);
  box-shadow: 0 0 8px rgba(141, 255, 61, 0.55);
}
.topbar__brand small {
  color: var(--bone-faint);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.12em;
}
.topbar__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 4px 0 0;
  border: 0;
  background: transparent;
  color: var(--phos);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  white-space: nowrap;
}
.topbar__back .chev {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  font-size: 13px;
  transition: background 0.15s, color 0.15s;
}
.topbar__back:hover .chev,
.topbar__back:focus-visible .chev {
  background: var(--phos);
  color: #041003;
}
.topbar__sector {
  margin-left: 2px;
  color: var(--bone-faint);
  font-size: 8px;
  letter-spacing: 0.14em;
  white-space: nowrap;
}
.topbar__sector b {
  color: var(--bone-dim);
  font-weight: 500;
}
.topbar__tools {
  display: flex;
  align-items: center;
  margin-left: auto;
}
.tool {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 46px;
  height: 44px;
  padding: 0 8px;
  border: 1px solid transparent;
  border-left-color: var(--line-soft);
  background: transparent;
  color: var(--bone-dim);
  font-size: 8px;
  letter-spacing: 0.12em;
}
.tool:hover,
.tool:focus-visible {
  color: var(--phos);
  background: rgba(141, 255, 61, 0.055);
  outline: none;
}
.tool__label {
  display: none;
}
.topbar--menu .tool__label {
  display: inline;
}
.eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 1.5px;
  width: 12px;
  height: 11px;
  position: relative;
}
.eq i {
  width: 2px;
  background: var(--phos);
  align-self: flex-end;
  animation: eqBounce 0.8s steps(1, end) infinite;
}
.eq i:nth-child(1) { height: 5px; animation-delay: -0.18s; }
.eq i:nth-child(2) { height: 9px; animation-delay: -0.42s; }
.eq i:nth-child(3) { height: 3px; animation-delay: -0.62s; }
.tool.is-muted .eq i {
  background: var(--bone-faint);
  animation: none;
  height: 2px;
}
.tool.is-muted .eq::after {
  content: '';
  position: absolute;
  left: -2px;
  top: 5px;
  width: 16px;
  height: 1px;
  background: var(--amber);
  transform: rotate(-32deg);
}
@keyframes eqBounce {
  0%, 100% { height: 3px; }
  25% { height: 9px; }
  50% { height: 5px; }
  75% { height: 11px; }
}

/* ------------------------------------------------------------- masthead */
.masthead {
  position: relative;
  padding-top: 20px;
}
.masthead__eyebrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--phos);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.masthead__live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--bone-dim);
  letter-spacing: 0.13em;
}
.masthead__live .blip {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--phos);
  box-shadow: 0 0 8px var(--phos);
  animation: blink 1.9s steps(1, end) infinite;
}
.masthead h1 {
  margin: 9px 0 1px;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(43px, 13.2vw, 86px);
  line-height: 0.9;
  letter-spacing: -0.045em;
  color: var(--phos);
  text-shadow:
    0 0 26px rgba(141, 255, 61, 0.17),
    1px 0 rgba(255, 70, 30, 0.08),
    -1px 0 rgba(100, 255, 210, 0.09);
}
.masthead__sub {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-top: 10px;
  padding-bottom: 10px;
  color: var(--bone-dim);
  font-size: 9px;
  letter-spacing: 0.15em;
}
.masthead__sub .coords {
  color: var(--bone-faint);
  font-size: 8px;
  text-align: right;
  white-space: nowrap;
}

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative;
  height: clamp(130px, 37vw, 248px);
  margin: 14px calc(var(--pad) * -1) 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #020402;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 57%;
  display: block;
  filter: brightness(1.05) contrast(1.02) sepia(0.04);
  opacity: 0.98;
  transform: scale(1.015);
  animation: heroDrift 22s ease-in-out alternate infinite;
}
.hero__water {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 43%;
  overflow: hidden;
  opacity: 0.3;
  mix-blend-mode: screen;
  mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 100%);
  pointer-events: none;
}
.hero__water img {
  position: absolute;
  left: -2%;
  bottom: 0;
  width: 104%;
  height: auto;
  animation: waterDrift 5.6s steps(4, end) infinite;
}
.hero__scan {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 7, 4, 0.72) 0%, transparent 24%, transparent 62%, rgba(4, 7, 4, 0.86) 100%),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.hero__beam {
  position: absolute;
  top: -30%;
  bottom: -30%;
  width: 16%;
  left: -20%;
  background: linear-gradient(90deg, transparent, rgba(183, 255, 140, 0.06), transparent);
  animation: heroBeam 8s linear infinite;
  pointer-events: none;
}
.hero__hud {
  position: absolute;
  inset: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--phos);
  font-size: 7.5px;
  letter-spacing: 0.16em;
  pointer-events: none;
}
.hero__hud-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.hero__hud span {
  background: rgba(4, 7, 4, 0.54);
  padding: 2px 4px;
}
.hero__hud .live {
  color: var(--phos);
  border-left: 1px solid var(--phos);
  padding-left: 6px;
}
.hero__corner {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: var(--phos);
  opacity: 0.62;
  pointer-events: none;
}
.hero__corner--tl { left: 8px; top: 8px; border-left: 1px solid; border-top: 1px solid; }
.hero__corner--tr { right: 8px; top: 8px; border-right: 1px solid; border-top: 1px solid; }
.hero__corner--bl { left: 8px; bottom: 8px; border-left: 1px solid; border-bottom: 1px solid; }
.hero__corner--br { right: 8px; bottom: 8px; border-right: 1px solid; border-bottom: 1px solid; }
.hero__caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  color: var(--bone-dim);
  font-size: 7.5px;
  letter-spacing: 0.14em;
  text-shadow: 0 1px 5px #000, 0 0 10px #000;
  pointer-events: none;
}
.hero__caption b {
  color: var(--phos);
  font-weight: 500;
}
@keyframes heroDrift {
  from { transform: scale(1.015) translateY(0); }
  to { transform: scale(1.045) translateY(-3px); }
}
@keyframes waterDrift {
  0%, 100% { transform: translateX(-2px) translateY(0); }
  25% { transform: translateX(2px) translateY(1px); }
  50% { transform: translateX(-1px) translateY(0); }
  75% { transform: translateX(3px) translateY(1px); }
}
@keyframes heroBeam {
  from { transform: translateX(0); }
  to { transform: translateX(760%); }
}

/* --------------------------------------------------------------- status */
.status {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.1fr;
  margin-top: 0;
  border-bottom: 1px solid var(--line);
}
.status__cell {
  min-width: 0;
  padding: 10px 0 9px;
  border-right: 1px solid var(--line-soft);
}
.status__cell:first-child { padding-right: 10px; }
.status__cell:nth-child(2) { padding-left: 12px; padding-right: 10px; }
.status__cell:last-child { padding-left: 12px; border-right: 0; }
.status__label {
  display: block;
  color: var(--bone-faint);
  font-size: 7.5px;
  letter-spacing: 0.18em;
  margin-bottom: 3px;
}
.status__value {
  display: flex;
  align-items: baseline;
  gap: 5px;
  color: var(--bone);
  font-size: 12px;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.status__value b {
  color: var(--phos);
  font-weight: 600;
}
.status__value small {
  color: var(--bone-faint);
  font-size: 8px;
  letter-spacing: 0.06em;
}
.status .bar {
  margin-top: 6px;
}

.bar {
  position: relative;
  height: 3px;
  background: repeating-linear-gradient(90deg, rgba(141, 255, 61, 0.14) 0 6px, transparent 6px 9px);
  overflow: hidden;
}
.bar > span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: repeating-linear-gradient(90deg, var(--phos) 0 6px, transparent 6px 9px);
  box-shadow: 0 0 8px rgba(141, 255, 61, 0.28);
  transition: width 0.5s var(--ease);
}
.bar--amber > span {
  background: repeating-linear-gradient(90deg, var(--amber) 0 6px, transparent 6px 9px);
  box-shadow: 0 0 8px rgba(255, 195, 92, 0.25);
}

/* --------------------------------------------------------------- menu */
.menu-section {
  margin-top: 26px;
}
.menu-section__head {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
}
.menu-section__index {
  color: var(--phos);
  font-size: 8px;
  letter-spacing: 0.12em;
  border: 1px solid var(--line);
  padding: 1px 4px;
}
.menu-section__label {
  font-family: var(--display);
  font-size: clamp(16px, 4.4vw, 21px);
  font-weight: 400;
  color: var(--phos);
  letter-spacing: 0.005em;
  line-height: 1;
}
.menu-section__rule {
  flex: 1;
  height: 1px;
  background: var(--line);
}
.menu-section__count {
  color: var(--bone-faint);
  font-size: 8px;
  letter-spacing: 0.1em;
}
.menu-section__sub {
  color: var(--bone-faint);
  font-size: 7.5px;
  letter-spacing: 0.2em;
  margin-top: 5px;
}

.menu-list {
  display: flex;
  flex-direction: column;
}

.row {
  position: relative;
  display: grid;
  grid-template-columns: 24px 56px minmax(0, 1fr) 48px 10px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 78px;
  padding: 11px 1px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  color: var(--bone);
  text-align: left;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
  opacity: 0;
  transform: translateY(8px);
  animation: rowIn 0.5s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 45ms + 90ms);
}
.row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--phos);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.2s var(--ease);
}
.row:hover,
.row:focus-visible {
  background: rgba(141, 255, 61, 0.055);
  outline: none;
}
.row:hover::before,
.row:focus-visible::before {
  transform: scaleY(1);
}
.row.is-pressed {
  background: var(--phos);
  color: #041003;
}
.row.is-pressed::before {
  transform: scaleY(1);
  background: #041003;
}
.row.is-pressed .row__index,
.row.is-pressed .row__sub,
.row.is-pressed .row__meta,
.row.is-pressed .row__chev {
  color: rgba(4, 16, 3, 0.72);
}
.row.is-pressed .row__chev {
  transform: translateX(3px);
}
.row.is-pressed .row__icon {
  border-color: rgba(4, 16, 3, 0.4);
  background: rgba(4, 16, 3, 0.06);
}
.row.is-pressed .row__icon img {
  filter: brightness(0);
}
.row.is-pressed .bar {
  background: repeating-linear-gradient(90deg, rgba(4, 16, 3, 0.25) 0 6px, transparent 6px 9px);
}
.row.is-pressed .bar > span {
  background: repeating-linear-gradient(90deg, #041003 0 6px, transparent 6px 9px);
  box-shadow: none;
}
.row__index {
  align-self: flex-start;
  padding-top: 4px;
  color: var(--phos-dim);
  font-size: 8px;
  letter-spacing: 0.05em;
}
.row__icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 1px solid var(--line-soft);
  background: linear-gradient(145deg, rgba(141, 255, 61, 0.05), transparent 65%);
  overflow: hidden;
}
.row__icon::before,
.row__icon::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 7px;
  border-color: var(--phos);
  opacity: 0.55;
}
.row__icon::before {
  left: 2px;
  top: 2px;
  border-left: 1px solid;
  border-top: 1px solid;
}
.row__icon::after {
  right: 2px;
  bottom: 2px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}
.row__icon img {
  display: block;
  width: auto;
  height: auto;
  max-width: 92%;
  max-height: 82%;
  object-fit: contain;
  filter: brightness(1.07) contrast(1.06) drop-shadow(0 0 3px rgba(141, 255, 61, 0.28));
  transition: filter 0.15s;
}
.row--sound .row__icon img {
  filter: sepia(0.7) saturate(1.6) hue-rotate(-24deg) brightness(1.04);
}
.row__body {
  min-width: 0;
}
.row__title {
  display: block;
  font-size: clamp(12.5px, 3.55vw, 15.5px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -0.012em;
  color: var(--bone);
  overflow-wrap: break-word;
}
.row__sub {
  display: block;
  margin-top: 4px;
  color: var(--bone-faint);
  font-size: 8px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row__meta {
  min-width: 0;
  color: var(--bone-faint);
  font-size: 8px;
  letter-spacing: 0.04em;
  text-align: right;
}
.row__meta .count {
  display: block;
  margin-bottom: 5px;
  color: var(--phos);
  font-weight: 500;
  white-space: nowrap;
}
.row__meta .bar {
  height: 3px;
}
.row__chev {
  color: var(--phos);
  font-size: 16px;
  line-height: 1;
  transition: transform 0.18s var(--ease);
}
.row.is-cleared .row__icon {
  border-color: var(--line);
}
.row.is-cleared .row__icon::after {
  opacity: 1;
}
.row.is-cleared .row__title {
  color: var(--phos-bright);
}
.row.is-cleared .row__meta .count::after {
  content: ' ✓';
  color: var(--phos-bright);
}
.row--sound .row__title {
  color: var(--amber);
}
.row--sound .row__chev,
.row--sound .row__meta .count {
  color: var(--amber);
}
.row--sound::before {
  background: var(--amber);
}
.row--sound .row__meta .bar > span {
  background: repeating-linear-gradient(90deg, var(--amber) 0 6px, transparent 6px 9px);
}
.row--sound.is-pressed {
  background: var(--amber);
  color: #150c02;
}
.row--sound .rec {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 4px;
  color: var(--amber);
  font-size: 7px;
  letter-spacing: 0.1em;
}
.row--sound .rec::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 5px rgba(255, 91, 71, 0.5);
  animation: blink 2.2s steps(1, end) infinite;
}

@keyframes rowIn {
  to { opacity: 1; transform: translateY(0); }
}

.menu-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--bone-faint);
  font-size: 8px;
  letter-spacing: 0.12em;
  line-height: 1.7;
}
.menu-footer b {
  color: var(--phos);
  font-weight: 500;
}
.menu-footer .sysmark {
  display: flex;
  align-items: center;
  gap: 7px;
}
.menu-footer .sysmark::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--phos);
  box-shadow: 0 0 7px rgba(141, 255, 61, 0.55);
}

/* --------------------------------------------------------------- guide */
.guide {
  position: relative;
  padding-top: 16px;
}
.guide[data-accent='amber'] {
  --phos: #ffc35c;
  --phos-bright: #ffe4a3;
  --phos-dim: #a47a35;
  --line: rgba(255, 195, 92, 0.3);
  --line-soft: rgba(255, 195, 92, 0.13);
}
.guide-head {
  position: relative;
}
.guide-head__art {
  position: relative;
  margin: 0 calc(var(--pad) * -1);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #020402;
  overflow: hidden;
}
.guide-head__art img {
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(1.04) contrast(1.03) sepia(0.05);
  transform-origin: center;
  animation: guideArtIn 0.8s var(--ease) both;
}
.guide-head__art::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(4, 7, 4, 0.4), transparent 20%, transparent 78%, rgba(4, 7, 4, 0.5)),
    repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.13) 0 1px, transparent 1px 3px);
  pointer-events: none;
}
.guide-head__tag {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: calc(var(--pad) + 1px);
  color: var(--phos);
  font-size: 7.5px;
  letter-spacing: 0.16em;
  background: rgba(4, 7, 4, 0.7);
  padding: 2px 5px;
  border-left: 1px solid var(--phos);
}
.guide-head__tag--r {
  left: auto;
  right: calc(var(--pad) + 1px);
  border-left: 0;
  border-right: 1px solid var(--phos);
  color: var(--bone-dim);
}
.guide-title {
  position: relative;
  padding-top: 16px;
}
.guide-title::before {
  content: attr(data-num);
  position: absolute;
  right: -2px;
  top: -4px;
  font-family: var(--display);
  font-size: clamp(62px, 18vw, 96px);
  line-height: 0.8;
  color: var(--phos);
  opacity: 0.07;
  pointer-events: none;
}
.guide-title__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--phos);
  font-size: 8px;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}
.guide-title__eyebrow .sq {
  width: 5px;
  height: 5px;
  background: var(--phos);
  box-shadow: 0 0 7px rgba(141, 255, 61, 0.5);
}
.guide-title h1 {
  position: relative;
  margin: 7px 0 4px;
  font-family: var(--display);
  font-size: clamp(31px, 9vw, 52px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: var(--phos);
  text-shadow: 0 0 24px rgba(141, 255, 61, 0.12);
}
.guide-title__sub {
  color: var(--bone-dim);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.guide-title__meta {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  color: var(--bone-faint);
  font-size: 8px;
  letter-spacing: 0.12em;
  line-height: 1.7;
}

.guide-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.guide-meta__cell {
  padding: 9px 0 8px;
  border-right: 1px solid var(--line-soft);
}
.guide-meta__cell:not(:first-child) { padding-left: 10px; }
.guide-meta__cell:last-child { border-right: 0; }
.guide-meta__cell > span {
  display: block;
  color: var(--bone-faint);
  font-size: 7px;
  letter-spacing: 0.16em;
  margin-bottom: 2px;
}
.guide-meta__cell b {
  display: block;
  color: var(--phos);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.guide-meta__cell b small {
  color: var(--bone-faint);
  font-size: 8px;
  font-weight: 400;
  white-space: nowrap;
}
.guide-progress {
  padding: 11px 0 4px;
}
.guide-progress__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 7px;
  color: var(--bone-faint);
  font-size: 8px;
  letter-spacing: 0.12em;
}
.guide-progress__top b {
  color: var(--phos);
  font-size: 11px;
  font-weight: 500;
}
.guide-progress .bar { height: 5px; }

/* ---------------------------------------------------------- live plates */
.plate {
  position: relative;
  margin: 22px calc(var(--pad) * -1) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #040704;
}
.plate__head,
.plate__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px var(--pad);
  color: var(--bone-faint);
  font-size: 7.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.plate__head {
  border-bottom: 1px solid var(--line-soft);
}
.plate__head b {
  color: var(--phos);
  font-weight: 500;
}
.plate__head .rec {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--phos);
}
.plate__head .rec::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 5px rgba(255, 91, 71, 0.5);
  animation: blink 1.8s steps(1, end) infinite;
}
.plate__frame {
  position: relative;
  aspect-ratio: 2 / 1;
  overflow: hidden;
  background: #040704;
  border-top: 1px solid rgba(141, 255, 61, 0.08);
  border-bottom: 1px solid rgba(141, 255, 61, 0.08);
}
.plate__frame svg {
  display: block;
  width: 100%;
  height: 100%;
}
.plate__scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0 1px, transparent 1px 3px);
}
.plate__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
  opacity: 0.16;
  mix-blend-mode: screen;
}
.plate__foot {
  border-top: 1px solid var(--line-soft);
  color: var(--bone-faint);
}
.plate__foot span:last-child {
  color: var(--phos-dim);
}
.plate__corner {
  position: absolute;
  z-index: 2;
  width: 9px;
  height: 9px;
  border-color: var(--phos);
  opacity: 0.7;
  pointer-events: none;
}
.plate__corner--tl { left: 6px; top: 6px; border-left: 1px solid; border-top: 1px solid; }
.plate__corner--tr { right: 6px; top: 6px; border-right: 1px solid; border-top: 1px solid; }
.plate__corner--bl { left: 6px; bottom: 6px; border-left: 1px solid; border-bottom: 1px solid; }
.plate__corner--br { right: 6px; bottom: 6px; border-right: 1px solid; border-bottom: 1px solid; }

/* --------------------------------------------------------------- groups */
.groups {
  margin-top: 26px;
}
.group {
  margin-top: 22px;
}
.group:first-child {
  margin-top: 0;
}
.group__head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 3px;
}
.group__index {
  display: inline-grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid var(--line);
  color: var(--phos);
  font-size: 8px;
  line-height: 1;
}
.group__title {
  font-family: var(--display);
  font-size: clamp(14px, 3.9vw, 17px);
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--phos);
  line-height: 1.1;
}
.group__rule {
  flex: 1;
  height: 1px;
  background: var(--line);
  margin-left: 2px;
}
.group__count {
  color: var(--bone-faint);
  font-size: 8px;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.group__note {
  color: var(--bone-faint);
  font-size: 8px;
  letter-spacing: 0.1em;
  margin: 0 0 4px 26px;
}

/* ---------------------------------------------------------------- tasks */
.task {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  cursor: pointer;
  transition: background 0.18s;
}
.task:hover {
  background: linear-gradient(90deg, rgba(141, 255, 61, 0.045), transparent 72%);
}
.task__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.task__box {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 1.5px solid var(--bone-dim);
  background: transparent;
  transition: background 0.16s, border-color 0.16s, box-shadow 0.16s;
}
.task__box::after {
  content: '';
  width: 12px;
  height: 6px;
  border-left: 2px solid #041003;
  border-bottom: 2px solid #041003;
  transform: rotate(-45deg) scale(0);
  transition: transform 0.15s var(--ease);
}
.task:focus-within .task__box {
  outline: 1px solid var(--phos);
  outline-offset: 3px;
}
.task__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  min-width: 0;
}
.task--art .task__main {
  grid-template-columns: minmax(0, 1fr) 78px;
}
.task__content {
  min-width: 0;
}
.task__label {
  display: block;
  color: var(--bone);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.task__sub {
  display: block;
  color: var(--phos-dim);
  font-size: 7.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-top: 3px;
}
.task__text {
  display: block;
  color: var(--bone-dim);
  font-size: 12.5px;
  line-height: 1.58;
  margin-top: 4px;
  max-width: 58ch;
}
.task__tag {
  display: inline-block;
  margin-top: 7px;
  padding: 1px 4px;
  border: 1px solid var(--line);
  color: var(--phos-dim);
  font-size: 7px;
  letter-spacing: 0.12em;
}
.task__art {
  width: auto;
  height: auto;
  max-width: 78px;
  max-height: 66px;
  object-fit: contain;
  object-position: center top;
  opacity: 0.82;
  filter: contrast(1.03) brightness(1.03);
  transition: opacity 0.2s;
}
.task:hover .task__art {
  opacity: 1;
}
.task__stamp {
  position: absolute;
  right: 0;
  top: 11px;
  padding: 2px 4px;
  border: 1px solid var(--phos);
  color: var(--phos);
  font-size: 6px;
  letter-spacing: 0.1em;
  transform: rotate(-4deg) scale(0.7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s, transform 0.22s var(--ease);
  background: rgba(4, 7, 4, 0.8);
}
.task__input:checked ~ .task__box {
  background: var(--phos);
  border-color: var(--phos);
  box-shadow: 0 0 14px rgba(141, 255, 61, 0.22);
}
.task__input:checked ~ .task__box::after {
  transform: rotate(-45deg) scale(1);
}
.task__input:checked ~ .task__main .task__label {
  color: var(--phos-bright);
  padding-right: 58px;
}
.task__input:checked ~ .task__main .task__text {
  color: var(--bone-faint);
}
.task__input:checked ~ .task__main .task__art {
  opacity: 0.35;
}
.task__input:checked ~ .task__stamp {
  opacity: 1;
  transform: rotate(-4deg) scale(1);
}
.task.is-celebrating {
  animation: taskFlash 0.5s steps(3, end);
}
@keyframes taskFlash {
  0% { background: rgba(141, 255, 61, 0.28); }
  50% { background: rgba(141, 255, 61, 0.1); }
  100% { background: transparent; }
}

/* ------------------------------------------------------------- fieldnote */
.fieldnote {
  position: relative;
  margin-top: 24px;
  padding: 13px 15px 13px 16px;
  border-left: 2px solid var(--phos);
  background: linear-gradient(90deg, rgba(141, 255, 61, 0.06), transparent 78%);
}
.fieldnote__label {
  display: block;
  color: var(--phos);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.18em;
  margin-bottom: 5px;
}
.fieldnote p {
  color: var(--bone);
  font-size: 12.5px;
  line-height: 1.55;
}
.fieldnote p strong {
  color: var(--phos-bright);
  font-weight: 500;
}

/* ---------------------------------------------------------------- actions */
.guide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
}
.guide-actions .meta {
  color: var(--bone-faint);
  font-size: 7.5px;
  letter-spacing: 0.13em;
}
.guide-end {
  margin-top: 25px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.guide-end__label {
  color: var(--phos);
  font-size: 8px;
  letter-spacing: 0.2em;
  margin-bottom: 8px;
}
.guide-end__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}
.nextcard {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: linear-gradient(100deg, rgba(141, 255, 61, 0.06), transparent 65%);
  color: var(--bone);
  text-align: left;
  transition: background 0.18s, color 0.18s;
}
.nextcard:hover,
.nextcard:focus-visible {
  background: var(--phos);
  color: #041003;
  outline: none;
}
.nextcard img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex: none;
  filter: sepia(0.1);
}
.nextcard:hover img {
  filter: brightness(0);
}
.nextcard__text {
  min-width: 0;
}
.nextcard__text small {
  display: block;
  font-size: 7px;
  letter-spacing: 0.16em;
  color: var(--phos-dim);
  margin-bottom: 2px;
}
.nextcard__text b {
  display: block;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nextcard__arrow {
  margin-left: auto;
  font-size: 17px;
  color: var(--phos);
}
.nextcard:hover .nextcard__arrow {
  color: #041003;
}
.nextcard:hover .nextcard__text small {
  color: rgba(4, 16, 3, 0.7);
}
.backbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 58px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--bone-dim);
  font-size: 9px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}
.backbtn:hover,
.backbtn:focus-visible {
  background: var(--bone);
  color: #080b06;
  border-color: var(--bone);
  outline: none;
}

/* -------------------------------------------------------------- phrases */
.phrase {
  position: relative;
  margin-top: 10px;
  padding: 12px 13px 10px;
  border: 1px solid var(--line-soft);
  background:
    linear-gradient(100deg, rgba(141, 255, 61, 0.035), transparent 60%),
    #050905;
  transition: border-color 0.18s, background 0.18s;
}
.phrase:hover {
  border-color: var(--line);
}
.phrase__top {
  display: flex;
  align-items: center;
  gap: 9px;
}
.phrase__index {
  color: var(--phos-dim);
  font-size: 8px;
}
.phrase__en {
  flex: 1;
  min-width: 0;
  color: var(--phos);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.phrase__play {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--phos);
}
.phrase__play:hover,
.phrase__play:focus-visible {
  background: var(--phos);
  color: #041003;
  outline: none;
}
.phrase__play svg {
  width: 13px;
  height: 13px;
}
.phrase__km {
  font-family: var(--km);
  font-size: clamp(27px, 8.2vw, 35px);
  line-height: 1.55;
  color: var(--bone);
  margin-top: 2px;
  padding: 3px 0 0;
  text-shadow: 0 0 20px rgba(239, 233, 210, 0.06);
}
.phrase__rom {
  color: var(--bone-dim);
  font-size: 11.5px;
  letter-spacing: 0.03em;
}
.phrase__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px solid var(--line-soft);
}
.phrase__wave {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 12px;
}
.phrase__wave i {
  display: block;
  width: 2px;
  height: 4px;
  background: var(--phos-dim);
  animation: phraseWave 1.1s steps(2, end) infinite;
}
.phrase__wave i:nth-child(2) { animation-delay: -0.2s; }
.phrase__wave i:nth-child(3) { animation-delay: -0.4s; }
.phrase__wave i:nth-child(4) { animation-delay: -0.6s; }
.phrase__wave i:nth-child(5) { animation-delay: -0.8s; }
.phrase.is-speaking .phrase__wave i {
  background: var(--phos);
}
@keyframes phraseWave {
  0%, 100% { height: 3px; }
  50% { height: 11px; }
}
.phrase__log {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--bone-dim);
  font-size: 7.5px;
  letter-spacing: 0.12em;
}
.phrase__log::before {
  content: '';
  width: 8px;
  height: 8px;
  border: 1px solid var(--line);
}
.phrase.is-logged .phrase__log::before {
  content: '\2713';
  width: auto;
  height: auto;
  border: 0;
  background: transparent;
  font-size: 10px;
  line-height: 1;
  color: #041003;
}
.phrase__log:hover,
.phrase__log:focus-visible {
  color: var(--phos);
  border-color: var(--phos);
  outline: none;
}
.phrase.is-logged {
  border-color: rgba(141, 255, 61, 0.5);
  background:
    linear-gradient(100deg, rgba(141, 255, 61, 0.075), transparent 65%),
    #050905;
}
.phrase.is-logged .phrase__log {
  background: var(--phos);
  color: #041003;
  border-color: var(--phos);
}
.phrase.is-logged .phrase__en {
  color: var(--phos-bright);
}

/* ---------------------------------------------------------------- mixer */
.mixer {
  margin-top: 26px;
  padding: 13px;
  border: 1px solid rgba(255, 195, 92, 0.3);
  background:
    linear-gradient(160deg, rgba(255, 195, 92, 0.055), transparent 45%),
    #050805;
  position: relative;
}
.mixer::before,
.mixer::after {
  content: '';
  position: absolute;
  width: 9px;
  height: 9px;
  border-color: var(--amber);
  opacity: 0.65;
}
.mixer::before {
  left: 5px;
  top: 5px;
  border-left: 1px solid;
  border-top: 1px solid;
}
.mixer::after {
  right: 5px;
  bottom: 5px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}
.mixer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 9px;
  border-bottom: 1px solid rgba(255, 195, 92, 0.2);
}
.mixer__title {
  font-family: var(--display);
  font-size: 14px;
  letter-spacing: 0.01em;
  color: var(--amber);
}
.mixer__status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--bone-faint);
  font-size: 7px;
  letter-spacing: 0.12em;
}
.mixer__status::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px rgba(255, 91, 71, 0.5);
  animation: blink 1.7s steps(1, end) infinite;
}
.mixer.is-running .mixer__status {
  color: var(--amber);
}
.mixer__pads {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-top: 10px;
}
.mixpad {
  position: relative;
  min-height: 58px;
  padding: 7px 7px 6px;
  border: 1px solid rgba(255, 195, 92, 0.22);
  background: #050905;
  color: var(--bone-dim);
  text-align: left;
  transition: background 0.14s, color 0.14s, border-color 0.14s;
}
.mixpad:hover,
.mixpad:focus-visible {
  border-color: var(--amber);
  color: var(--amber);
  outline: none;
}
.mixpad__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
}
.mixpad__led {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 195, 92, 0.24);
}
.mixpad__no {
  font-size: 6.5px;
  color: var(--bone-faint);
  letter-spacing: 0.08em;
}
.mixpad__label {
  display: block;
  margin-top: 5px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: currentColor;
}
.mixpad__sub {
  display: block;
  font-size: 6.5px;
  letter-spacing: 0.12em;
  color: var(--bone-faint);
}
.mixpad.is-on {
  background: var(--amber);
  border-color: var(--amber);
  color: #170d02;
  box-shadow: 0 0 16px rgba(255, 195, 92, 0.12);
}
.mixpad.is-on .mixpad__led {
  background: #170d02;
  box-shadow: none;
  animation: none;
}
.mixpad.is-on .mixpad__sub,
.mixpad.is-on .mixpad__no {
  color: rgba(23, 13, 2, 0.65);
}
.mixpad.is-on .mixpad__led {
  animation: padPulse 0.8s steps(2, end) infinite;
}
@keyframes padPulse {
  50% { opacity: 0.3; }
}
.mixer__transport {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid rgba(255, 195, 92, 0.2);
}
.mixer__stop {
  min-height: 34px;
  padding: 0 9px;
  border: 1px solid rgba(255, 195, 92, 0.35);
  background: transparent;
  color: var(--amber);
  font-size: 7.5px;
  letter-spacing: 0.12em;
}
.mixer__stop:hover,
.mixer__stop:focus-visible {
  background: var(--amber);
  color: #170d02;
  outline: none;
}
.mixer__master {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
  color: var(--bone-faint);
  font-size: 7px;
  letter-spacing: 0.1em;
}
.mixer__master input[type='range'] {
  flex: 1;
  min-width: 0;
  accent-color: var(--amber);
  height: 22px;
}
.mixer__vu {
  display: flex;
  align-items: flex-end;
  gap: 1.5px;
  height: 24px;
  width: 48px;
}
.mixer__vu i {
  display: block;
  flex: 1;
  height: 4px;
  background: rgba(255, 195, 92, 0.16);
  transition: height 0.1s steps(2, end), background 0.1s;
}
.mixer__vu i.is-hot {
  background: var(--amber);
  box-shadow: 0 0 4px rgba(255, 195, 92, 0.4);
}
.mixer__vu i.is-peak {
  background: var(--red);
}
.mixer__note {
  margin-top: 9px;
  color: var(--bone-faint);
  font-size: 7.5px;
  line-height: 1.6;
  letter-spacing: 0.02em;
}

/* --------------------------------------------------------------- drawer */
.drawer {
  position: absolute;
  inset: 0;
  z-index: 80;
  visibility: hidden;
  pointer-events: none;
}
.drawer.is-open {
  visibility: visible;
  pointer-events: auto;
}
.drawer__shade {
  position: absolute;
  inset: 0;
  background: rgba(1, 3, 1, 0.72);
  opacity: 0;
  transition: opacity 0.28s var(--ease);
}
.drawer.is-open .drawer__shade {
  opacity: 1;
}
.panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(92%, 430px);
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(141, 255, 61, 0.06), transparent 42%),
    var(--bg);
  border-left: 1px solid var(--line);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.6);
  transform: translateX(102%);
  transition: transform 0.32s var(--ease);
}
.drawer.is-open .panel {
  transform: translateX(0);
}
.panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: calc(14px + var(--safe-t)) 14px 12px;
  border-bottom: 1px solid var(--line);
}
.panel__eyebrow {
  display: block;
  color: var(--phos-dim);
  font-size: 7px;
  letter-spacing: 0.18em;
  margin-bottom: 3px;
}
.panel__head h2 {
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--phos);
}
.panel__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 6px 14px calc(24px + var(--safe-b));
  scrollbar-width: none;
}
.panel__scroll::-webkit-scrollbar { display: none; }

.syssec {
  padding: 14px 0;
  border-bottom: 1px solid var(--line-soft);
}
.syssec__title {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--phos);
  font-size: 8px;
  letter-spacing: 0.16em;
  margin-bottom: 8px;
}
.syssec__title::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--phos);
}
.sysrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border-bottom: 1px solid rgba(141, 255, 61, 0.06);
}
.sysrow:last-child { border-bottom: 0; }
.sysrow__label {
  min-width: 0;
  color: var(--bone-dim);
  font-size: 10.5px;
  letter-spacing: 0.02em;
}
.sysrow__label small {
  display: block;
  color: var(--bone-faint);
  font-size: 7.5px;
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.sysrow__value {
  color: var(--phos);
  font-size: 9px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--bone-faint);
  font-size: 7.5px;
  letter-spacing: 0.1em;
}
.switch__track {
  position: relative;
  display: block;
  width: 38px;
  height: 20px;
  border: 1px solid rgba(141, 255, 61, 0.26);
  background: #030603;
}
.switch__thumb {
  position: absolute;
  left: 2px;
  top: 2px;
  width: 14px;
  height: 14px;
  background: #4c5a45;
  transition: transform 0.18s var(--ease), background 0.18s;
}
.switch.is-on .switch__track {
  border-color: var(--phos);
  background: rgba(141, 255, 61, 0.13);
}
.switch.is-on .switch__thumb {
  transform: translateX(18px);
  background: var(--phos);
  box-shadow: 0 0 8px rgba(141, 255, 61, 0.4);
}
.switch.is-on {
  color: var(--phos);
}
.sysrow input[type='range'] {
  width: 120px;
  accent-color: var(--phos);
}
.sysrow__danger {
  color: var(--red);
  border-color: rgba(255, 91, 71, 0.28);
}
.sysnote {
  color: var(--bone-faint);
  font-size: 8px;
  line-height: 1.7;
  margin-top: 8px;
}
.sysnote b { color: var(--phos-dim); font-weight: 500; }
.sysbig {
  width: 100%;
  justify-content: space-between;
  margin-top: 8px;
}

/* ---------------------------------------------------------------- modal */
.modal {
  position: absolute;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
}
.modal[hidden] { display: none; }
.modal__shade {
  position: absolute;
  inset: 0;
  background: rgba(1, 3, 1, 0.8);
  animation: fadeIn 0.2s;
}
.modal__panel {
  position: relative;
  width: min(100%, 390px);
  padding: 18px;
  border: 1px solid var(--red);
  background:
    linear-gradient(145deg, rgba(255, 91, 71, 0.06), transparent 45%),
    #060905;
  box-shadow: 0 0 60px rgba(0, 0, 0, 0.8);
  animation: modalIn 0.22s var(--ease);
}
.modal__code {
  color: var(--red);
  font-size: 7px;
  letter-spacing: 0.18em;
}
.modal__panel h2 {
  margin: 7px 0 6px;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1;
  color: var(--bone);
}
.modal__panel p {
  color: var(--bone-dim);
  font-size: 11.5px;
  line-height: 1.55;
}
.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(6px) scale(0.99); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ------------------------------------------------------- scene animation */
.scene {
  display: block;
  overflow: visible;
}
.scene * {
  transform-box: view-box;
}

.sc-ripple { animation: rippleShift 3.6s steps(1, end) infinite; }
.sc-ripple--1 { animation-delay: -0.2s; animation-duration: 3.2s; }
.sc-ripple--2 { animation-delay: -1.1s; animation-duration: 4.1s; }
.sc-ripple--3 { animation-delay: -2s; animation-duration: 3.7s; }
.sc-ripple--4 { animation-delay: -2.8s; animation-duration: 4.4s; }
@keyframes rippleShift {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(3px); }
  50% { transform: translateX(-2px); }
  75% { transform: translateX(1.5px); }
}

.sc-palm {
  animation: palmSway 5.2s steps(1, end) infinite;
}
.sc-palm--l { transform-origin: 40px 132px; }
.sc-palm--r { transform-origin: 326px 132px; animation-delay: -1.7s; }
@keyframes palmSway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(1.1deg); }
  50% { transform: rotate(-0.7deg); }
  75% { transform: rotate(0.6deg); }
}

.sc-bird {
  animation: birdCross 19s linear infinite;
}
.sc-bird--1 { animation-delay: -5s; }
.sc-bird--2 { animation-delay: -14s; animation-duration: 24s; }
@keyframes birdCross {
  from { transform: translate(-80px, 0); }
  to { transform: translate(390px, 0); }
}

.sc-stars { animation: starsBlink 4s steps(1, end) infinite; }
@keyframes starsBlink {
  0%, 100% { opacity: 0.4; }
  48% { opacity: 0.55; }
  52% { opacity: 0.3; }
}

.sc-mallet { animation: malletA 1.5s steps(1, end) infinite; }
.sc-mallet--b { animation-delay: -0.75s; }
@keyframes malletA {
  0%, 100% { transform: rotate(-5deg); }
  25% { transform: rotate(-24deg); }
  50% { transform: rotate(5deg); }
  75% { transform: rotate(-12deg); }
}
.sc-gong-stick { animation: gongStick 2.8s steps(1, end) infinite; }
@keyframes gongStick {
  0%, 100% { transform: rotate(-8deg); }
  25% { transform: rotate(-15deg); }
  50% { transform: rotate(7deg); }
  75% { transform: rotate(-4deg); }
}
.sc-gong-ring {
  animation: gongRing 2.8s steps(1, end) infinite;
  transform-origin: 284px 74px;
}
@keyframes gongRing {
  0%, 100% { opacity: 0; transform: scale(0.92); }
  25% { opacity: 0.1; transform: scale(1.02); }
  50% { opacity: 0.42; transform: scale(1.06); }
  75% { opacity: 0.12; transform: scale(1.02); }
}
.sc-drum-stick { animation: drumStick 1.5s steps(1, end) infinite; transform-origin: 66px -26px; }
@keyframes drumStick {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-13deg); }
  50% { transform: rotate(4deg); }
  75% { transform: rotate(-5deg); }
}
.sc-note { animation: noteFloat 3.6s steps(1, end) infinite; }
.sc-note--2 { animation-delay: -1.2s; }
.sc-note--3 { animation-delay: -2.4s; }
@keyframes noteFloat {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  25% { transform: translateY(-5px); opacity: 0.7; }
  50% { transform: translateY(-2px); opacity: 0.38; }
  75% { transform: translateY(-7px); opacity: 0.6; }
}

.sc-stage-flicker { animation: stageFlicker 4.4s steps(1, end) infinite; }
@keyframes stageFlicker {
  0%, 100% { opacity: 0.035; }
  8% { opacity: 0.062; }
  9% { opacity: 0.03; }
  46% { opacity: 0.05; }
  47% { opacity: 0.024; }
  74% { opacity: 0.055; }
}
.sc-puppet-arm {
  animation: puppetArm 3s steps(1, end) infinite;
}
@keyframes puppetArm {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(18deg); }
  50% { transform: rotate(-5deg); }
  75% { transform: rotate(9deg); }
}
.sc-head { animation: headBob 2.6s steps(1, end) infinite; }
.sc-head--2 { animation-delay: -0.4s; }
.sc-head--3 { animation-delay: -1.1s; }
.sc-head--4 { animation-delay: -1.7s; }
.sc-head--5 { animation-delay: -2.2s; }
@keyframes headBob {
  0%, 100% { transform: translateY(0); }
  25% { transform: translateY(-1px); }
  50% { transform: translateY(0); }
  75% { transform: translateY(-0.5px); }
}
.sc-mote { animation: moteDrift 7s linear infinite; }
.sc-mote--2 { animation-delay: -2s; animation-duration: 9s; }
.sc-mote--3 { animation-delay: -4.5s; animation-duration: 8s; }
.sc-mote--4 { animation-delay: -6s; animation-duration: 10s; }
@keyframes moteDrift {
  from { transform: translate(0, 20px); opacity: 0; }
  20% { opacity: 0.5; }
  80% { opacity: 0.4; }
  to { transform: translate(14px, -50px); opacity: 0; }
}
.sc-lamp { animation: lampBreathe 3.3s steps(1, end) infinite; }
@keyframes lampBreathe {
  0%, 100% { opacity: 0.8; }
  25% { opacity: 1; }
  50% { opacity: 0.72; }
  75% { opacity: 0.94; }
}

.sc-bat-fold,
.sc-bat-half,
.sc-bat-full {
  animation-duration: 3.8s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.sc-bat-fold { animation-name: batFold; }
.sc-bat-half { animation-name: batHalf; }
.sc-bat-full { animation-name: batFull; }
.sc-bat-body { animation: batSway 3.8s steps(1, end) infinite; transform-origin: 190px 34px; }
.sc-bat-far { animation: batFar 17s linear infinite; }
.sc-leaf { animation: leafSway 6.4s steps(1, end) infinite; transform-origin: left top; }
@keyframes batFold {
  0%, 100% { opacity: 1; }
  25% { opacity: 0; }
  50% { opacity: 0; }
  75% { opacity: 0; }
}
@keyframes batHalf {
  0%, 100% { opacity: 0; }
  25% { opacity: 1; }
  50% { opacity: 0; }
  75% { opacity: 1; }
}
@keyframes batFull {
  0%, 100% { opacity: 0; }
  25% { opacity: 0; }
  50% { opacity: 1; }
  75% { opacity: 0; }
}
@keyframes batSway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-2deg); }
  50% { transform: rotate(1deg); }
  75% { transform: rotate(2deg); }
}
@keyframes batFar {
  from { transform: translate(-60px, 90px) scale(0.3); }
  to { transform: translate(410px, 90px) scale(0.3); }
}
@keyframes leafSway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(1.5deg); }
  50% { transform: rotate(-0.6deg); }
  75% { transform: rotate(0.9deg); }
}

.sc-amulet { animation: amuletSwing 4.2s steps(1, end) infinite; }
@keyframes amuletSwing {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  50% { transform: rotate(0.5deg); }
  75% { transform: rotate(5deg); }
}
.sc-charm-tag { animation: tagTwist 2.4s steps(1, end) infinite; transform-origin: 180px 52px; }
@keyframes tagTwist {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(2deg); }
  50% { transform: rotate(0deg); }
  75% { transform: rotate(-2deg); }
}
.sc-glint { animation: glint 3.6s steps(1, end) infinite; transform-origin: center; }
.sc-glint--2 { animation-delay: -1.8s; }
@keyframes glint {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  25% { opacity: 0.9; transform: scale(1); }
  38% { opacity: 0; transform: scale(1.3); }
  50% { opacity: 0; transform: scale(0.8); }
}
.sc-torch { animation: torchWobble 5s steps(1, end) infinite; }
@keyframes torchWobble {
  0%, 100% { opacity: 0.7; }
  33% { opacity: 1; }
  66% { opacity: 0.55; }
}

.sc-steam { animation: steamRise 3.8s steps(1, end) infinite; }
.sc-steam--2 { animation-delay: -0.95s; animation-duration: 4.4s; }
.sc-steam--3 { animation-delay: -1.9s; animation-duration: 3.4s; }
.sc-steam--4 { animation-delay: -2.8s; animation-duration: 4.8s; }
@keyframes steamRise {
  0%, 100% { opacity: 0.18; transform: translateY(4px); }
  25% { opacity: 0.5; transform: translateY(-2px); }
  50% { opacity: 0.32; transform: translateY(-6px); }
  75% { opacity: 0.55; transform: translateY(-9px); }
}

.sc-wave-bar {
  animation: waveBar 1.6s steps(1, end) infinite;
}
@keyframes waveBar {
  0%, 100% { transform: scaleY(0.28); opacity: 0.35; }
  25% { transform: scaleY(1); opacity: 0.7; }
  50% { transform: scaleY(0.55); opacity: 0.45; }
  75% { transform: scaleY(0.85); opacity: 0.6; }
}
.sc-cursor { animation: cursorBlink 0.9s steps(1, end) infinite; }
.sc-dot { animation: dotType 1.8s steps(1, end) infinite; }
.sc-dot--2 { animation-delay: 0.25s; }
.sc-dot--3 { animation-delay: 0.5s; }
@keyframes dotType {
  0%, 30% { opacity: 0.2; }
  31%, 66% { opacity: 1; }
  67%, 100% { opacity: 0.2; }
}
.sc-rays { animation: raysPulse 3.2s steps(1, end) infinite; }
@keyframes raysPulse {
  0%, 100% { opacity: 0.35; }
  25% { opacity: 0.7; }
  50% { opacity: 0.28; }
  75% { opacity: 0.58; }
}

.sc-reel { animation: reelSpin 2.4s steps(4, end) infinite; }
.sc-reel--2 { animation-delay: -0.3s; }
@keyframes reelSpin {
  to { transform: rotate(360deg); }
}
.sc-needle { animation: vuNeedle 1.5s steps(1, end) infinite; }
@keyframes vuNeedle {
  0%, 100% { transform: rotate(-12deg); }
  25% { transform: rotate(13deg); }
  50% { transform: rotate(-2deg); }
  75% { transform: rotate(7deg); }
}
.sc-rec { animation: recBlink 1.4s steps(1, end) infinite; }
@keyframes recBlink {
  0%, 55% { opacity: 1; }
  56%, 100% { opacity: 0.15; }
}
.sc-vwave { animation: vwave 2.2s steps(1, end) infinite; }
.sc-vwave--2 { animation-delay: -1.1s; }
@keyframes vwave {
  0%, 100% { opacity: 0.25; transform: translateX(0); }
  50% { opacity: 0.7; transform: translateX(2px); }
}

.scene.is-paused * {
  animation-play-state: paused !important;
}

/* ------------------------------------------------------------ responsive */
@media (min-width: 701px) {
  .app {
    scrollbar-width: thin;
    scrollbar-color: rgba(141, 255, 61, 0.28) transparent;
  }
  .app::-webkit-scrollbar {
    display: block;
    width: 5px;
  }
  .app::-webkit-scrollbar-track {
    background: transparent;
  }
  .app::-webkit-scrollbar-thumb {
    background: rgba(141, 255, 61, 0.24);
    border-radius: 3px;
  }
  .app::-webkit-scrollbar-thumb:hover {
    background: rgba(141, 255, 61, 0.4);
  }
}

@media (max-width: 700px) {
  body {
    background: var(--bg);
  }
  .room {
    padding: 0;
    gap: 0;
  }
  .room::before,
  .room::after {
    display: none;
  }
  .terminal {
    width: 100%;
    filter: none;
  }
  .terminal__bezel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .terminal__bezel::before,
  .terminal__base,
  .room__caption,
  .screw {
    display: none;
  }
  .screen {
    height: 100svh;
    min-height: 0;
    max-height: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .screen::after {
    background:
      linear-gradient(118deg, rgba(255, 255, 255, 0.03), transparent 26%);
  }
  .tool__label {
    display: none !important;
  }
  .topbar {
    min-height: 48px;
  }
  .view {
    padding-bottom: calc(30px + var(--safe-b));
  }
}

@media (max-width: 380px) {
  :root {
    --pad: 13px;
  }
  .topbar__brand small,
  .topbar__sector {
    display: none;
  }
  .topbar__brand {
    font-size: 9px;
  }
  .tool {
    min-width: 42px;
    padding: 0 6px;
  }
  .row {
    grid-template-columns: 19px 46px minmax(0, 1fr) 42px 8px;
    gap: 8px;
    min-height: 72px;
  }
  .row__icon {
    width: 46px;
    height: 46px;
  }
  .row__title {
    font-size: 12.5px;
  }
  .row__sub {
    font-size: 7px;
    letter-spacing: 0.09em;
  }
  .task--art .task__main {
    grid-template-columns: minmax(0, 1fr) 62px;
  }
  .task__art {
    width: 62px;
    max-height: 56px;
  }
  .guide-title h1 {
    font-size: 29px;
  }
  .guide-meta__cell b {
    font-size: 12px;
  }
  .phrase__km {
    font-size: 25px;
  }
  .mixer__pads {
    gap: 4px;
  }
  .mixpad {
    padding: 6px 5px;
  }
  .mixpad__label {
    font-size: 8px;
  }
}

@media (max-height: 620px) and (min-width: 701px) {
  .room {
    padding: 0;
  }
  .terminal {
    width: min(100vw, 1000px);
  }
  .terminal__bezel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  .terminal__bezel::before,
  .terminal__base,
  .room__caption,
  .screw {
    display: none;
  }
  .screen {
    height: 100svh;
    min-height: 0;
    max-height: none;
    border: 0;
    border-radius: 0;
  }
  .room__caption {
    display: none;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .topbar {
    min-height: 42px;
  }
  .boot__inner {
    width: min(90%, 640px);
  }
  .boot__brand-word {
    font-size: clamp(32px, 7vw, 48px);
  }
  .boot__log {
    margin-top: 12px;
    min-height: 100px;
    line-height: 1.65;
  }
  .boot__brand {
    margin-top: 8px;
  }
  .boot__sub {
    margin-top: 4px;
  }
}

/* --------------------------------------------------------- reduced motion */
.reduce-motion .scene *,
.reduce-motion .sc-ripple,
.reduce-motion .sc-palm,
.reduce-motion .sc-bird,
.reduce-motion .sc-mallet,
.reduce-motion .sc-gong-ring,
.reduce-motion .sc-gong-stick,
.reduce-motion .sc-drum-stick,
.reduce-motion .sc-note,
.reduce-motion .sc-puppet-arm,
.reduce-motion .sc-head,
.reduce-motion .sc-mote,
.reduce-motion .sc-lamp,
.reduce-motion .sc-bat-fold,
.reduce-motion .sc-bat-half,
.reduce-motion .sc-bat-full,
.reduce-motion .sc-bat-body,
.reduce-motion .sc-bat-far,
.reduce-motion .sc-leaf,
.reduce-motion .sc-amulet,
.reduce-motion .sc-charm-tag,
.reduce-motion .sc-glint,
.reduce-motion .sc-torch,
.reduce-motion .sc-steam,
.reduce-motion .sc-wave-bar,
.reduce-motion .sc-cursor,
.reduce-motion .sc-dot,
.reduce-motion .sc-rays,
.reduce-motion .sc-reel,
.reduce-motion .sc-needle,
.reduce-motion .sc-rec,
.reduce-motion .sc-vwave {
  animation: none !important;
}
.reduce-motion .crt__sweep,
.reduce-motion .crt__flicker,
.reduce-motion .crt__noise,
.reduce-motion .hero__img,
.reduce-motion .hero__water img,
.reduce-motion .hero__beam {
  animation: none !important;
}
.reduce-motion .crt__sweep,
.reduce-motion .crt__flicker {
  display: none;
}
.reduce-motion .row {
  opacity: 1;
  transform: none;
  animation: none;
}
.reduce-motion .view {
  transition-duration: 0.01s;
}
.reduce-motion .screen.glitch .app {
  transform: none;
  filter: none;
}
.reduce-motion .toast {
  transition-duration: 0.01s;
}

@media (prefers-reduced-motion: reduce) {
  .crt__sweep,
  .crt__flicker,
  .hero__beam {
    display: none;
  }
  .hero__img,
  .hero__water img {
    animation: none;
  }
}

/* --------------------------------------------------------------- utility */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mono-dim { color: var(--bone-faint); }
.green { color: var(--phos); }

/* --------------------------------------------------------------- tweaks */
.bar {
  display: block;
  width: 100%;
}
.view.is-in {
  transform: none;
}
.phrases {
  margin-top: 20px;
}
.phrase__play:disabled {
  opacity: 0.55;
  cursor: default;
}
.row,
.task,
.phrase,
.mixpad,
.tool,
.btn,
.topbar__back,
.guide-end button,
.phrase__log {
  touch-action: manipulation;
}
.guide-progress.is-cleared .bar > span {
  box-shadow: 0 0 14px rgba(141, 255, 61, 0.55);
}
.guide-progress.is-cleared .guide-progress__top b {
  color: var(--phos-bright);
}
.guide-progress.is-celebrating .bar > span {
  animation: barCelebrate 0.9s steps(4, end);
}
@keyframes barCelebrate {
  0% { opacity: 1; }
  25% { opacity: 0.25; }
  50% { opacity: 1; }
  75% { opacity: 0.4; }
  100% { opacity: 1; }
}
.screen.muted .crt__scan {
  opacity: 0.26;
}
.masthead h1:focus,
.guide-title h1:focus {
  outline: none;
}
.guide-title h1:focus-visible {
  outline: 1px dashed var(--line);
  outline-offset: 5px;
}
@media (max-width: 700px) {
  .boot {
    padding-top: calc(30px + var(--safe-t));
  }
  .boot__inner {
    width: min(100%, 560px);
  }
}
.sc-reflection {
  animation: reflectionShift 5.2s steps(1, end) infinite;
}
@keyframes reflectionShift {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(1.6px); }
  50% { transform: translateX(-1px); }
  75% { transform: translateX(0.6px); }
}
.sc-puppet-body {
  animation: puppetSway 4.4s steps(1, end) infinite;
  transform-origin: 168px 132px;
}
@keyframes puppetSway {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-1deg); }
  50% { transform: rotate(0.6deg); }
  75% { transform: rotate(-0.4deg); }
}
.reduce-motion .crt__scan {
  animation: none;
}
.reduce-motion .sc-stage-flicker,
.reduce-motion .sc-puppet-body,
.reduce-motion .sc-reflection {
  animation: none !important;
}

/* Safari-friendly fallbacks */
.screen {
  height: clamp(560px, calc(100vh - 186px), 940px);
  height: var(--screen-h);
}
.hero__water {
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 100%);
}
.room::before {
  -webkit-mask-image: radial-gradient(ellipse at 50% 45%, #000 0%, transparent 76%);
}
.boot::before {
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 78%);
}
@media (max-width: 700px) {
  .screen {
    height: 100vh;
    height: 100svh;
  }
}
@media (max-height: 620px) and (min-width: 701px) {
  .screen {
    height: 100vh;
    height: 100svh;
  }
}

.tool.is-offline .eq i {
  background: var(--bone-faint);
  animation: none;
  height: 3px;
}
.tool.is-offline .eq::after {
  content: '';
  position: absolute;
  left: -1px;
  top: 5px;
  width: 14px;
  height: 1px;
  background: var(--amber);
  opacity: .65;
  transform: rotate(-32deg);
}

@media (orientation: landscape) and (max-height: 560px) {
  .boot {
    padding: 12px 20px;
    align-items: center;
  }
  .boot__top {
    display: none;
  }
  .boot__brand {
    margin-top: 0;
  }
  .boot__brand-word {
    font-size: 32px;
  }
  .boot__sub {
    font-size: 9px;
    margin-top: 4px;
  }
  .boot__log {
    margin-top: 8px;
    min-height: 0;
    max-height: 86px;
    overflow: hidden;
    font-size: 9px;
    line-height: 1.5;
  }
  .boot__meter {
    margin-top: 8px;
  }
  .boot__bottom {
    margin-top: 4px;
  }
  .boot__skip {
    top: 10px;
  }
  .audio-hint {
    font-size: 8px;
    padding: 7px 9px;
  }
}

@media (orientation: landscape) and (max-height: 560px) {
  .masthead {
    padding-top: 10px;
  }
  .masthead__eyebrow {
    display: none;
  }
  .masthead h1 {
    margin-top: 0;
    font-size: clamp(32px, 7.4vw, 58px);
  }
  .masthead__sub {
    margin-top: 6px;
    padding-bottom: 6px;
    font-size: 7.5px;
  }
  .hero {
    height: 92px;
    margin-top: 8px;
  }
  .hero__hud {
    inset: 6px 8px;
    font-size: 6px;
  }
  .hero__caption {
    display: none;
  }
  .status__cell {
    padding: 6px 0 5px;
  }
  .status__label {
    font-size: 6.5px;
  }
  .status__value {
    font-size: 10px;
  }
  .menu-section {
    margin-top: 14px;
  }
  .menu-section__head {
    padding-bottom: 5px;
  }
  .menu-section__label {
    font-size: 14px;
  }
  .menu-section__sub {
    display: none;
  }
  .row {
    grid-template-columns: 20px 44px minmax(0, 1fr) 42px 8px;
    gap: 8px;
    min-height: 62px;
    padding: 7px 1px;
  }
  .row__icon {
    width: 44px;
    height: 44px;
  }
  .row__title {
    font-size: 12.5px;
  }
  .row__sub {
    font-size: 7px;
  }
  .guide-head__art {
    max-height: 140px;
    overflow: hidden;
  }
  .guide-head__art img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    object-position: center 45%;
  }
  .guide-title {
    padding-top: 10px;
  }
  .guide-title h1 {
    font-size: clamp(28px, 6vw, 40px);
  }
  .guide-title__meta {
    margin-top: 6px;
    padding-top: 6px;
  }
  .plate {
    margin-top: 14px;
  }
}
@media (max-width: 700px) {
  .tool__label {
    display: inline !important;
  }
  .topbar__brand small {
    display: none;
  }
  .tool {
    padding: 0 7px;
  }
}
