/* =========================================================
   tuto.zone — Matrix x Monster x Hunter x Wii U
   ========================================================= */
:root {
  --bg: #030603;
  --bg-2: #071007;
  --panel: rgba(8, 18, 8, 0.78);
  --line: rgba(124, 255, 58, 0.18);
  --line-strong: rgba(124, 255, 58, 0.45);
  --neon: #7cff3a;        /* verde lata */
  --neon-dim: #3fae1c;
  --matrix: #00ff41;      /* verde matrix */
  --text: #d6f5cc;
  --muted: #6f8f68;
  --gold: #e8b24a;        /* UI de Monster Hunter */
  --urgent: #ff4d3d;
  --wiiu: #19b4e6;        /* azul Wii U */
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --display: "Chakra Petch", var(--mono);
  --radius: 4px;
  --glow: 0 0 6px rgba(124, 255, 58, .55), 0 0 22px rgba(124, 255, 58, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 var(--mono);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--neon); text-decoration: none; }
a:hover { text-shadow: var(--glow); }
::selection { background: var(--neon); color: #000; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 3px; }

/* ---------- fundo ---------- */
#rain {
  position: fixed; inset: 0;
  width: 100%; height: 100%;
  z-index: -2;
  opacity: .55;
  transition: opacity .6s;
}
.scanlines {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0,0,0,.75) 100%),
    repeating-linear-gradient(to bottom, rgba(0,0,0,.18) 0 1px, transparent 1px 3px);
}

/* ---------- HUD ---------- */
.hud {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 40px);
  background: rgba(3, 6, 3, .82);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 8px; font: 700 18px var(--display); color: var(--text); letter-spacing: .5px; }
.brand b { color: var(--neon); }
.brand-mark { width: 26px; height: 26px; fill: none; stroke: var(--neon); stroke-width: 3.2; stroke-linecap: round; filter: drop-shadow(0 0 4px var(--neon)); }
.nav { display: flex; gap: 18px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 13px; transition: color .2s; }
.nav a:hover, .nav a.on { color: var(--neon); }
.energy { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--muted); }
.energy-bar { width: 80px; height: 8px; border: 1px solid var(--line-strong); padding: 1px; }
.energy-bar i { display: block; height: 100%; width: 100%; background: var(--neon); box-shadow: var(--glow); transition: width .4s, background .4s; }
.energy-bar i.low { background: var(--urgent); box-shadow: 0 0 8px var(--urgent); }
.energy-val { color: var(--neon); min-width: 34px; }
.menu-btn { display: none; background: none; border: 1px solid var(--line-strong); padding: 7px 6px; border-radius: var(--radius); }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--neon); margin: 3px 0; }

/* ---------- botões ---------- */
.btn {
  display: inline-block; padding: 11px 20px;
  border: 1px solid var(--neon); color: var(--neon);
  border-radius: var(--radius); font-weight: 600; letter-spacing: .5px;
  transition: background .2s, color .2s, box-shadow .2s;
}
.btn:hover { background: rgba(124,255,58,.1); box-shadow: var(--glow); text-shadow: none; }
.btn-primary { background: var(--neon); color: #041004; }
.btn-primary:hover { background: #a6ff74; color: #041004; }

/* ---------- HERO ---------- */
.hero {
  min-height: calc(100vh - 60px);
  display: grid; place-items: center;
  padding: 60px clamp(16px, 4vw, 40px);
  position: relative;
}
.hero-inner { max-width: 880px; width: 100%; }
.sys-line { font-size: 12px; letter-spacing: 1px; color: var(--neon); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 28px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neon); box-shadow: var(--glow); animation: blink 1.4s infinite; }
.prompt { margin: 0 0 4px; color: var(--text); }
.prompt.small { font-size: 13px; margin-bottom: 14px; }
.ps1 { color: var(--neon); }
.path { color: var(--wiiu); }

.glitch {
  position: relative;
  font: 700 clamp(84px, 19vw, 210px)/0.95 var(--display);
  letter-spacing: -2px;
  margin: 8px 0 12px;
  color: var(--neon);
  text-shadow: 0 0 18px rgba(124,255,58,.55), 0 0 60px rgba(124,255,58,.25);
}
.glitch::before, .glitch::after {
  content: attr(data-text);
  position: absolute; inset: 0;
  pointer-events: none;
}
.glitch::before { color: var(--wiiu); clip-path: inset(0 0 60% 0); transform: translate(-3px, 0); opacity: .7; animation: glitch-a 3.2s infinite steps(1); }
.glitch::after  { color: var(--urgent); clip-path: inset(55% 0 0 0); transform: translate(3px, 0); opacity: .6; animation: glitch-b 2.7s infinite steps(1); }
@keyframes glitch-a {
  0%, 88%, 100% { transform: translate(0); opacity: 0; }
  89% { transform: translate(-5px, -2px); opacity: .8; clip-path: inset(10% 0 70% 0); }
  92% { transform: translate(4px, 1px); opacity: .8; clip-path: inset(40% 0 30% 0); }
  95% { transform: translate(-2px, 0); opacity: .8; clip-path: inset(70% 0 5% 0); }
}
@keyframes glitch-b {
  0%, 84%, 100% { transform: translate(0); opacity: 0; }
  85% { transform: translate(5px, 2px); opacity: .7; clip-path: inset(60% 0 10% 0); }
  88% { transform: translate(-4px, -1px); opacity: .7; clip-path: inset(20% 0 55% 0); }
}

.role { font-size: clamp(16px, 2.4vw, 22px); color: var(--text); min-height: 1.6em; margin: 0 0 18px; }
.caret { color: var(--neon); animation: blink 1s steps(1) infinite; margin-left: 2px; }
.hero-sub { max-width: 560px; color: var(--muted); margin: 0 0 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.scroll-hint { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: 2px; color: var(--muted); animation: bob 2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0; } }
@keyframes bob { 50% { transform: translate(-50%, 6px); } }

/* ---------- seções ---------- */
.section {
  max-width: 1120px; margin: 0 auto;
  padding: 100px clamp(16px, 4vw, 40px) 40px;
}
.sec-head { display: flex; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin-bottom: 18px; }
.sec-idx { font: 700 13px var(--display); color: #041004; background: var(--neon); padding: 2px 8px; border-radius: 2px; }
.sec-head h2 { font: 700 clamp(22px, 3.4vw, 32px) var(--display); margin: 0; letter-spacing: .3px; }
.sec-sub { color: var(--muted); margin: 0 0 28px; max-width: 720px; }
.sec-sub em { color: var(--gold); font-style: normal; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(3px);
  position: relative;
}
/* cantinhos de HUD */
.panel::before {
  content: ""; position: absolute; inset: -1px; pointer-events: none;
  background:
    linear-gradient(var(--neon), var(--neon)) top left / 12px 1px,
    linear-gradient(var(--neon), var(--neon)) top left / 1px 12px,
    linear-gradient(var(--neon), var(--neon)) bottom right / 12px 1px,
    linear-gradient(var(--neon), var(--neon)) bottom right / 1px 12px;
  background-repeat: no-repeat;
  opacity: .8;
}

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- sobre ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; }
.about-text { padding: 26px 28px; }
.about-text p { margin: 0 0 14px; }
.about-text p:last-child { margin: 0; }
.about-text strong { color: var(--neon); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat { padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.stat-num { font: 700 38px/1 var(--display); color: var(--neon); text-shadow: var(--glow); font-variant-numeric: tabular-nums; }
.stat-lbl { font-size: 12px; color: var(--muted); margin-top: 8px; text-transform: uppercase; letter-spacing: 1px; }

/* ---------- arsenal ---------- */
.arsenal { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.weapon { padding: 20px 22px; transition: border-color .25s, transform .25s; }
.weapon:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.w-top { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: 1.5px; margin-bottom: 8px; }
.w-type { color: var(--muted); }
.rarity { font-weight: 800; }
.r6 { color: #4ad9ff; } .r7 { color: #b57bff; } .r8 { color: var(--gold); } .r9 { color: #ff6b5b; }
.weapon h3 { font: 700 19px var(--display); margin: 0 0 12px; color: var(--text); }
.weapon p { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
/* barra de gume (sharpness) */
.sharp {
  --w: 0%;
  height: 12px; position: relative;
  border: 1px solid #000; outline: 1px solid var(--gold);
  background: linear-gradient(to right,
    #d6262a 0 10%, #ec7a1e 10% 22%, #f2d22a 22% 38%,
    #4fd23a 38% 58%, #2f7cf0 58% 76%, #f2f2f2 76% 92%, #b14cf2 92% 100%);
}
.sharp::after {
  content: ""; position: absolute; top: 0; bottom: 0; right: 0;
  left: var(--w); background: #0b0d0b;
  transition: left 1.4s cubic-bezier(.2,.8,.2,1);
}
.weapon.in .sharp { --w: calc(var(--lvl) * 1%); }

/* ---------- quests ---------- */
.quests { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 18px; }
.quest {
  padding: 22px 24px;
  background:
    linear-gradient(180deg, rgba(232,178,74,.07), transparent 40%),
    var(--panel);
  border-color: rgba(232,178,74,.28);
  display: flex; flex-direction: column;
}
.quest::before { opacity: 0; }
.quest.urgent { border-color: rgba(255,77,61,.5); }
.q-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.q-stars { color: var(--gold); letter-spacing: 1px; font-size: 13px; }
.q-flag { font-size: 10px; letter-spacing: 1.5px; font-weight: 800; color: var(--gold); border: 1px solid currentColor; padding: 2px 7px; border-radius: 2px; }
.urgent .q-flag { color: var(--urgent); animation: blink 1.8s steps(1) infinite; }
.quest h3 { font: 700 22px var(--display); margin: 0 0 14px; color: #f3e4c0; }
.quest dl { margin: 0 0 18px; display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 13px; }
.quest dt { color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: 1px; padding-top: 2px; }
.quest dd { margin: 0; color: var(--text); }
.q-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: 12px; border-top: 1px dashed rgba(232,178,74,.25); padding-top: 12px; }
.status.done { color: var(--neon); }
.status.active { color: var(--wiiu); }
.q-link { color: var(--gold); }

/* ---------- combustível ---------- */
.fuel-grid { display: grid; grid-template-columns: 300px 1fr; gap: 28px; align-items: center; }
.can-wrap { text-align: center; }
.can {
  background: none; border: 0; padding: 0;
  display: inline-flex; flex-direction: column; align-items: center;
  transition: transform .2s;
  filter: drop-shadow(0 0 24px rgba(124,255,58,.25));
}
.can:hover { transform: rotate(-4deg) scale(1.03); }
.can:active { transform: rotate(4deg) scale(.97); }
.can.shake { animation: shake .45s; }
@keyframes shake { 20% { transform: rotate(-9deg); } 40% { transform: rotate(8deg); } 60% { transform: rotate(-5deg); } 80% { transform: rotate(3deg); } }
.can-top { width: 108px; height: 14px; border-radius: 50% / 100%; background: linear-gradient(90deg, #6b6b6b, #e5e5e5 45%, #8a8a8a); border-bottom: 2px solid #333; }
.can-body {
  width: 130px; height: 250px;
  background: linear-gradient(90deg, #050505, #1d1d1d 30%, #2b2b2b 45%, #121212 70%, #040404);
  border-radius: 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
  position: relative; overflow: hidden;
  border-left: 1px solid #222; border-right: 1px solid #222;
}
.can-body::after { content: ""; position: absolute; top: 0; bottom: 0; left: 28%; width: 10px; background: rgba(255,255,255,.07); filter: blur(3px); }
.can-claw { width: 86px; height: 120px; fill: none; stroke: var(--neon); stroke-width: 7; stroke-linecap: round; filter: drop-shadow(0 0 6px var(--neon)); }
.can-name { font: 700 15px/1.1 var(--display); letter-spacing: 3px; color: #e9ffe0; }
.can-bottom { width: 116px; height: 12px; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: linear-gradient(90deg, #555, #ccc 45%, #666); }
.can-hint { font-size: 12px; margin-top: 14px; color: var(--neon); }
.fuel-panel { padding: 24px 26px; min-width: 0; }
.proc { width: 100%; border-collapse: collapse; font-size: 13px; }
.proc th { text-align: left; color: #041004; background: var(--neon); padding: 4px 10px; font-weight: 800; }
.proc td { padding: 6px 10px; border-bottom: 1px solid var(--line); }
.proc td:first-child { color: var(--muted); }
.proc .hi { color: var(--neon); }
.proc .lo { color: var(--urgent); }
.fuel-count { margin: 18px 0 4px; }
.fuel-count b { color: var(--neon); font-size: 18px; }
.bubble {
  position: fixed; pointer-events: none; z-index: 60;
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--neon); background: rgba(124,255,58,.2);
  animation: fizz 1s ease-out forwards;
}
@keyframes fizz { to { transform: translate(var(--dx), -140px) scale(.4); opacity: 0; } }

/* ---------- Wii U GamePad ---------- */
.gamepad-wrap { display: flex; justify-content: center; }
.gamepad {
  position: relative;
  width: min(860px, 100%);
  aspect-ratio: 2.25 / 1;
  background: linear-gradient(180deg, #1b1d20, #0c0d0f);
  border-radius: 9% / 20%;
  border: 1px solid #2c2f33;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.07), 0 30px 60px rgba(0,0,0,.6), 0 0 0 1px #000, 0 0 40px rgba(25,180,230,.12);
  display: grid; grid-template-columns: 1fr 2.6fr 1fr;
  align-items: center;
  padding: 3.5% 3%;
  gap: 2%;
}
.gp-left, .gp-right { display: flex; flex-direction: column; align-items: center; gap: 14%; height: 100%; justify-content: center; }
.stick {
  width: clamp(34px, 7vw, 64px); aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #3a3d42, #16181a 70%);
  box-shadow: 0 0 0 4px #08090a, 0 3px 6px rgba(0,0,0,.6);
}
.dpad, .abxy {
  position: relative;
  width: clamp(66px, 11vw, 104px); aspect-ratio: 1;
}
.dpad button {
  position: absolute; width: 34%; height: 34%;
  background: #1e2124; border: 1px solid #000; color: #555;
  font-size: clamp(8px, 1.2vw, 11px); display: grid; place-items: center; padding: 0;
}
.dpad button:hover, .dpad button.press { background: #2a2e32; color: var(--wiiu); }
.dpad [data-btn=up]    { left: 33%; top: 0; border-radius: 3px 3px 0 0; }
.dpad [data-btn=down]  { left: 33%; bottom: 0; border-radius: 0 0 3px 3px; }
.dpad [data-btn=left]  { left: 0; top: 33%; border-radius: 3px 0 0 3px; }
.dpad [data-btn=right] { right: 0; top: 33%; border-radius: 0 3px 3px 0; }
.abxy button {
  position: absolute; width: 32%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #2c3034, #131517);
  border: 1px solid #000; color: #9aa3ab; font-weight: 800;
  font-size: clamp(9px, 1.4vw, 13px); padding: 0;
  box-shadow: 0 2px 3px rgba(0,0,0,.6);
  transition: transform .08s;
}
.abxy button:hover { color: #fff; }
.abxy button.press { transform: scale(.9); color: var(--wiiu); box-shadow: 0 0 10px var(--wiiu); }
.abxy [data-btn=x] { left: 34%; top: 0; }
.abxy [data-btn=y] { left: 0; top: 34%; }
.abxy [data-btn=a] { right: 0; top: 34%; }
.abxy [data-btn=b] { left: 34%; bottom: 0; }
.gp-screen {
  height: 100%;
  background: #000;
  border-radius: 6px;
  padding: 3.5%;
  box-shadow: inset 0 0 0 2px #222, 0 0 0 6px #0a0b0c;
}
.screen {
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at center, #0b1a24 0%, #050b10 100%);
  border-radius: 2px;
  color: #cdefff;
  font-size: clamp(9px, 1.45vw, 14px);
  padding: 4% 5%;
  overflow: hidden;
  display: flex; flex-direction: column;
  position: relative;
}
.screen::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, rgba(255,255,255,.025) 0 1px, transparent 1px 3px); pointer-events: none; }
.scr-title { color: var(--wiiu); font-weight: 800; letter-spacing: 1px; margin-bottom: 4%; display: flex; justify-content: space-between; }
.scr-list { list-style: none; margin: 0; padding: 0; flex: 1; min-height: 0; overflow: hidden; }
.scr-list li { padding: 1.2% 2%; border-left: 2px solid transparent; }
.scr-list li.sel { background: rgba(25,180,230,.18); border-left-color: var(--wiiu); color: #fff; }
.scr-foot { margin-top: auto; color: #5d8aa0; font-size: .85em; }
.scr-big { font: 700 1.6em var(--display); color: #fff; margin: 2% 0; }
.scr-load { height: 6px; background: #12303f; margin: 4% 0; }
.scr-load i { display: block; height: 100%; width: 0; background: var(--wiiu); box-shadow: 0 0 8px var(--wiiu); animation: load 1.4s forwards; }
@keyframes load { to { width: 100%; } }
.gp-logo { position: absolute; bottom: 5%; left: 50%; transform: translateX(-50%); font: 700 clamp(8px, 1.1vw, 12px) var(--display); color: #4a4f55; letter-spacing: 1px; }

/* ---------- terminal ---------- */
.term { overflow: hidden; }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #1f3a1a; border: 1px solid var(--neon-dim); }
.term-bar span { margin-left: 8px; }
.term-out { padding: 16px 18px 6px; height: 340px; overflow-y: auto; font-size: 13.5px; white-space: pre-wrap; word-break: break-word; }
.term-out .t-cmd { color: var(--text); }
.term-out .t-ok { color: var(--neon); }
.term-out .t-gold { color: var(--gold); }
.term-out .t-blue { color: var(--wiiu); }
.term-out .t-err { color: var(--urgent); }
.term-out .t-mut { color: var(--muted); }
.term-in { display: flex; gap: 10px; align-items: center; padding: 8px 18px 16px; }
.term-in label { white-space: nowrap; font-size: 13.5px; }
.term-in input {
  flex: 1; min-width: 0; background: transparent; border: 0; outline: 0;
  color: var(--neon); font: 13.5px var(--mono); caret-color: var(--neon);
}
.term-out::-webkit-scrollbar { width: 6px; }
.term-out::-webkit-scrollbar-thumb { background: var(--neon-dim); }

/* ---------- contato ---------- */
.contact { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.contact-card { padding: 22px; display: flex; flex-direction: column; gap: 4px; transition: background .2s, border-color .2s; }
.contact-card:hover { background: rgba(124,255,58,.08); border-color: var(--line-strong); text-shadow: none; }
.c-key { font-size: 11px; letter-spacing: 2px; color: var(--muted); }
.c-val { font: 700 17px var(--display); color: var(--neon); }

/* ---------- footer ---------- */
.footer { text-align: center; padding: 80px 16px 40px; font-size: 13px; }
.footer p { margin: 4px 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 80;
  transform: translate(-50%, calc(100% + 60px));
  visibility: hidden;
  background: #041004; border: 1px solid var(--neon); color: var(--neon);
  padding: 12px 20px; border-radius: var(--radius); box-shadow: var(--glow);
  font-weight: 600; transition: transform .35s cubic-bezier(.2,.9,.3,1.3), visibility .35s;
  max-width: calc(100% - 32px); text-align: center;
}
.toast.show { transform: translate(-50%, 0); visibility: visible; }

/* ---------- modo besta (konami) ---------- */
.claws { position: fixed; inset: 0; z-index: 70; pointer-events: none; display: flex; justify-content: center; gap: 7vw; transform: rotate(14deg); opacity: 0; }
.claws span { width: 2.2vw; min-width: 10px; height: 0; margin-top: -10vh; background: var(--neon); border-radius: 50%; box-shadow: 0 0 30px var(--neon), 0 0 80px var(--neon); }
body.beast .claws { animation: claw-fade 1.4s forwards; }
body.beast .claws span { animation: claw 0.45s cubic-bezier(.6,0,.3,1) forwards; }
body.beast .claws span:nth-child(2) { animation-delay: .06s; }
body.beast .claws span:nth-child(3) { animation-delay: .12s; }
@keyframes claw { to { height: 130vh; } }
@keyframes claw-fade { 0%, 60% { opacity: 1; } 100% { opacity: 0; } }
body.beast #rain { opacity: .9; }
body.beast { --line: rgba(124,255,58,.35); }
body.beast .glitch { animation: beast-pulse .6s infinite alternate; }
@keyframes beast-pulse { to { text-shadow: 0 0 30px var(--neon), 0 0 90px var(--neon); } }

/* ---------- responsivo ---------- */
@media (max-width: 980px) {
  .energy { display: none; }
  .menu-btn { display: block; margin-left: auto; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    background: rgba(3,6,3,.97); border-bottom: 1px solid var(--line);
    max-height: 0; overflow: hidden; transition: max-height .3s;
  }
  .nav.open { max-height: 420px; }
  .nav a { padding: 12px clamp(16px, 4vw, 40px); border-top: 1px solid var(--line); font-size: 14px; }
  .about-grid, .fuel-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding-top: 72px; }
  .arsenal, .quests { grid-template-columns: 1fr; }
  .stat-num { font-size: 30px; }
  .gamepad { aspect-ratio: auto; grid-template-columns: 1fr 1fr; grid-template-areas: "screen screen" "left right"; border-radius: 28px; padding: 18px 16px 30px; row-gap: 18px; }
  .gp-screen { grid-area: screen; aspect-ratio: 16 / 9; height: auto; }
  .gp-left { grid-area: left; flex-direction: row; gap: 16px; }
  .gp-right { grid-area: right; flex-direction: row-reverse; gap: 16px; }
  .screen { font-size: 12px; }
  .dpad, .abxy { width: 92px; }
  .dpad button, .abxy button { font-size: 11px; }
  .gp-logo { bottom: 8px; font-size: 10px; }
  .term-out { height: 300px; font-size: 12.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
