/* Wildkin — survival arena */
:root {
  --bg: #070707;
  --panel: rgba(14, 16, 11, 0.72);
  --panel-solid: #10130d;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --ink: #f2f4ea;
  --muted: #9aa08c;
  --muted-2: #6d7362;
  --lime: #c9f158;
  --lime-soft: #dff98f;
  --ice: #7fe6ff;
  --violet: #b0a6ff;
  --danger: #ff6b6b;
  --ok: #6ee7b1;
  --font: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Cascadia Code", Consolas, monospace;
  --shadow: 0 30px 80px -35px rgba(0, 0, 0, 0.95);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: rgba(201, 241, 88, 0.3); }
kbd {
  font-family: var(--mono);
  font-size: 10.5px;
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.stage { position: relative; width: 100%; height: 100svh; overflow: hidden; background: #0a0e08; }
#game { position: absolute; inset: 0; display: block; touch-action: none; }
.stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background:
    radial-gradient(120% 90% at 50% 45%, transparent 55%, rgba(4, 6, 3, 0.55) 100%),
    linear-gradient(0deg, rgba(4, 6, 3, 0.55), transparent 18%);
}

/* ---------------- HUD ---------------- */
.hud {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(12px, 2vw, 22px);
  padding-top: max(clamp(12px, 2vw, 22px), env(safe-area-inset-top));
}
.hud button { pointer-events: auto; }
.hud.is-touch .hotbar { display: none; }
.hud.is-touch .hud-bottom { padding-bottom: 148px; padding-right: 160px; gap: 6px; }
.hud.is-touch .mute { bottom: 224px; right: 18px; }

.hud-top { display: flex; align-items: flex-start; gap: 18px; }
.hud-brand {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 14px 9px 10px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(9, 12, 7, 0.62);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.brand-glyph {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(145deg, var(--lime), #7fa81f);
  color: #10130a; font-weight: 700; font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 10px 26px -14px rgba(201, 241, 88, 0.9);
}
.hud-brand strong { display: block; font-size: 13px; letter-spacing: 0.02em; }
.hud-brand span { display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); }

.feed {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px;
  align-items: center; padding-top: 4px;
}
.feed-line {
  padding: 5px 11px; border-radius: 999px; font-size: 11.5px;
  color: var(--muted);
  background: rgba(9, 12, 7, 0.6);
  border: 1px solid var(--line);
  backdrop-filter: blur(8px);
  animation: feedIn 0.25s ease-out;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 90%;
}
.feed-line b { color: var(--lime-soft); font-weight: 600; }
.feed-line.is-bad b { color: #ffb3b3; }
@keyframes feedIn { from { opacity: 0; transform: translateY(-6px); } }

.hud-score {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 16px; border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(9, 12, 7, 0.62);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}
.hud-score span { font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }
.hud-score strong { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; color: var(--lime-soft); font-variant-numeric: tabular-nums; }
.hud-score em { font-style: normal; font-size: 11px; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); font-variant-numeric: tabular-nums; }

.hud-corner {
  position: absolute; right: clamp(12px, 2vw, 22px); top: 84px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  pointer-events: none;
}
.minimap {
  position: relative; padding: 7px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(8, 11, 6, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
#minimap { display: block; width: 148px; height: 148px; border-radius: 10px; }
.minimap-label {
  position: absolute; left: 14px; bottom: 11px;
  font-size: 8.5px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(242, 244, 234, 0.55);
}
.board {
  width: 200px; padding: 12px 14px 10px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(8, 11, 6, 0.66);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.board h3 { margin: 0 0 8px; font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; }
.board ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.board li { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--muted); }
.board li i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); flex: none; }
.board li b { margin-left: auto; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; font-size: 11px; }
.board li.is-you { color: var(--ink); }
.board li.is-you i { background: var(--lime); box-shadow: 0 0 10px rgba(201, 241, 88, 0.8); }
.board li.is-you b { color: var(--lime-soft); }

.hud-bottom { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.vitals { display: flex; flex-direction: column; gap: 6px; width: min(320px, 62vw); }
.vital { display: grid; grid-template-columns: 58px 1fr 34px; align-items: center; gap: 9px; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); }
.vital .bar { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.06); overflow: hidden; }
.vital .bar i { display: block; height: 100%; width: 100%; border-radius: 99px; transition: width 0.18s ease; }
.vital--hp .bar i { background: linear-gradient(90deg, #ff7d7d, #ff4f4f); box-shadow: 0 0 12px rgba(255, 90, 90, 0.5); }
.vital--food .bar i { background: linear-gradient(90deg, #f2c85e, #e9a13b); }
.vital--stam .bar i { background: linear-gradient(90deg, var(--ice), #4bb9d6); }
.vital b { font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }

.res-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.res {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px; border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(9, 12, 7, 0.6);
  backdrop-filter: blur(8px);
  font-size: 11px; color: var(--muted);
}
.res i { width: 8px; height: 8px; border-radius: 2px; }
.res--wood i { background: #a97a4a; }
.res--stone i { background: #a7b0ba; }
.res--food i { background: #e2555f; border-radius: 50%; }
.res b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tool-chip {
  padding: 6px 11px; border-radius: 999px; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: #10130a; background: linear-gradient(135deg, var(--lime), #a8d536);
  font-weight: 600;
}

.hotbar { display: flex; gap: 7px; flex-wrap: wrap; }
.hotbar button {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1px;
  min-width: 88px;
  padding: 8px 11px 8px 9px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(9, 12, 7, 0.66);
  backdrop-filter: blur(10px);
  text-align: left;
  transition: transform 0.15s, border-color 0.15s, background 0.15s;
}
.hotbar button:hover { transform: translateY(-2px); border-color: rgba(201, 241, 88, 0.35); }
.hotbar button kbd { position: absolute; top: 6px; right: 7px; font-size: 8.5px; padding: 1px 4px; opacity: 0.75; }
.hotbar button span { font-size: 12px; font-weight: 550; }
.hotbar button em { font-style: normal; font-size: 9px; color: var(--muted-2); letter-spacing: 0.03em; }
.hotbar button.is-owned { border-color: rgba(201, 241, 88, 0.3); }
.hotbar button.is-equipped { border-color: var(--lime); background: rgba(201, 241, 88, 0.12); box-shadow: 0 0 0 1px rgba(201, 241, 88, 0.25), 0 16px 30px -22px rgba(201, 241, 88, 0.8); }
.hotbar button.is-equipped em { color: rgba(242, 244, 234, 0.55); }
.hotbar button.is-poor em { color: #ff9a9a; }

.hint {
  position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%);
  font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(242, 244, 234, 0.38);
  white-space: nowrap;
}
.toast {
  position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%);
  padding: 9px 16px; border-radius: 999px;
  background: rgba(10, 14, 7, 0.85);
  border: 1px solid rgba(201, 241, 88, 0.3);
  color: var(--ink); font-size: 12px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  animation: toastIn 0.2s ease-out;
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } }

.mute {
  position: absolute; right: clamp(12px, 2vw, 22px); bottom: clamp(12px, 2vw, 22px);
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(9, 12, 7, 0.66);
  color: var(--muted); font-size: 9px; letter-spacing: 0.08em;
  backdrop-filter: blur(10px);
}
.mute:hover { color: var(--ink); border-color: var(--line-strong); }
.mute.is-off { color: #ff9a9a; border-color: rgba(255, 107, 107, 0.4); }

/* ---------------- Touch controls ---------------- */
.touch { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.stick {
  position: absolute; left: max(18px, env(safe-area-inset-left)); bottom: max(20px, env(safe-area-inset-bottom));
  width: 122px; height: 122px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.08), rgba(8, 11, 6, 0.42));
  pointer-events: auto; touch-action: none;
}
.stick-knob {
  position: absolute; left: 50%; top: 50%; width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, var(--lime-soft), #9cc52c);
  box-shadow: 0 10px 24px -10px rgba(201, 241, 88, 0.8);
  transition: transform 0.05s linear;
}
.stick-label {
  position: absolute; left: 50%; bottom: -18px; transform: translateX(-50%);
  font-size: 8.5px; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(242, 244, 234, 0.4);
}
.touch-actions {
  position: absolute; right: max(16px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  display: grid; grid-template-columns: 66px 66px; gap: 9px;
  pointer-events: none;
}
.t-act {
  pointer-events: auto; touch-action: none;
  height: 54px; border-radius: 15px;
  border: 1px solid var(--line-strong);
  background: rgba(9, 12, 7, 0.7);
  color: var(--ink); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}
.t-act:active { transform: scale(0.96); }
.t-attack {
  grid-column: 1 / -1; height: 76px; border-radius: 22px;
  background: linear-gradient(140deg, var(--lime-soft), #a5ce2f);
  color: #10130a; font-weight: 700; font-size: 12px; letter-spacing: 0.16em;
  border-color: rgba(255, 255, 255, 0.35);
  box-shadow: 0 20px 40px -18px rgba(201, 241, 88, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

/* ---------------- Overlays ---------------- */
.overlay { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; }
.overlay--menu {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  place-items: stretch;
  background:
    linear-gradient(100deg, rgba(7, 7, 7, 0.96) 0%, rgba(7, 7, 7, 0.86) 44%, rgba(7, 7, 7, 0.28) 76%, rgba(7, 7, 7, 0.62) 100%);
  backdrop-filter: blur(3px);
  overflow: hidden;
}
.menu-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(700px 520px at 78% 48%, rgba(201, 241, 88, 0.1), transparent 60%);
}
.menu-inner {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; justify-content: center; gap: 34px;
  padding: clamp(28px, 6vw, 92px);
  max-width: 760px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted);
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px rgba(201, 241, 88, 0.9); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(201, 241, 88, 0.5); } 50% { box-shadow: 0 0 0 7px rgba(201, 241, 88, 0); } }

.menu-copy h1 {
  margin: 14px 0 16px;
  font-size: clamp(4rem, 11vw, 8.8rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
  font-weight: 500;
}
.menu-copy h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--lime); letter-spacing: -0.02em; }
.menu-copy h1 .io { font-size: 0.34em; letter-spacing: 0; color: var(--muted); vertical-align: 0.9em; }
.menu-lede { max-width: 420px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.menu-perks { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 20px; }
.menu-perks span {
  padding: 5px 11px; border-radius: 999px; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase;
  border: 1px solid var(--line); color: var(--muted-2);
}

.menu-card {
  width: min(400px, 100%);
  display: flex; flex-direction: column; gap: 12px;
  padding: 24px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(22, 26, 17, 0.88), rgba(10, 12, 8, 0.94));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(120%);
}
.menu-card label { font-size: 9.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-2); }
.menu-card input {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: rgba(4, 6, 3, 0.72);
  font-size: 15px; outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.menu-card input:focus { border-color: rgba(201, 241, 88, 0.6); box-shadow: 0 0 0 3px rgba(201, 241, 88, 0.12); }
.menu-card input::placeholder { color: var(--muted-2); }
.btn-play {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; padding: 14px 18px;
  border-radius: 13px; border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, var(--lime-soft) 0%, #b9e63f 55%, #8fc22a 100%);
  color: #10130a; font-weight: 700; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  box-shadow: 0 18px 40px -18px rgba(201, 241, 88, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn-play:hover { transform: translateY(-1px); box-shadow: 0 24px 50px -18px rgba(201, 241, 88, 0.9); }
.btn-play svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.best-row { display: flex; align-items: center; justify-content: space-between; padding-top: 4px; font-size: 11px; color: var(--muted-2); letter-spacing: 0.06em; }
.best-row strong { color: var(--lime-soft); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }

.menu-controls {
  display: grid; grid-template-columns: 1fr 1fr; gap: 7px 14px;
  margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line);
}
.menu-controls div { display: flex; align-items: center; gap: 8px; font-size: 10.5px; color: var(--muted-2); }
.menu-controls kbd { min-width: 40px; text-align: center; }

.menu-art { position: relative; z-index: 1; }
.art-ring {
  position: absolute; left: 50%; top: 46%;
  width: min(62vh, 550px); aspect-ratio: 1; margin-left: min(-31vh, -275px); margin-top: min(-31vh, -275px);
  border-radius: 50%;
  border: 1px solid rgba(201, 241, 88, 0.2);
  transform: rotateX(68deg) rotateZ(-16deg);
  animation: spinSlow 26s linear infinite;
}
.art-ring::after { content: ""; position: absolute; inset: 12%; border-radius: 50%; border: 1px dashed rgba(127, 230, 255, 0.16); }
.art-ring--2 {
  width: min(46vh, 410px); margin-left: min(-23vh, -205px); margin-top: min(-23vh, -205px);
  border-color: rgba(176, 166, 255, 0.18);
  animation-duration: 38s; animation-direction: reverse;
}
@keyframes spinSlow { to { transform: rotateX(68deg) rotateZ(344deg); } }
.art-core {
  position: absolute; left: 50%; top: 46%; width: 148px; height: 148px; margin: -74px 0 0 -74px;
  border-radius: 28px;
  background: linear-gradient(150deg, #2b351c, #11150c 60%, #0a0d07);
  border: 1px solid rgba(201, 241, 88, 0.35);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform: rotateX(12deg) rotateZ(-8deg);
  animation: floatCore 7s ease-in-out infinite;
}
.art-core span {
  position: absolute; inset: 20%;
  border: 1px solid rgba(201, 241, 88, 0.5);
  transform: rotate(45deg);
  box-shadow: 0 0 30px rgba(201, 241, 88, 0.18), inset 0 0 30px rgba(201, 241, 88, 0.08);
}
.art-core::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--lime); box-shadow: 0 0 24px 6px rgba(201, 241, 88, 0.55);
}
@keyframes floatCore {
  0%, 100% { transform: rotateX(12deg) rotateZ(-8deg) translateY(0); }
  50% { transform: rotateX(8deg) rotateZ(-3deg) translateY(-14px); }
}
.art-tag {
  position: absolute; left: 16%; top: 30%;
  padding: 8px 13px; border-radius: 999px;
  font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
  border: 1px solid var(--line); background: rgba(10, 13, 7, 0.62);
  backdrop-filter: blur(10px);
  animation: bob 9s ease-in-out infinite;
}
.art-tag--2 { left: auto; right: 12%; top: 64%; animation-delay: -4s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.menu-foot {
  position: absolute; left: clamp(28px, 6vw, 92px); bottom: 26px; z-index: 2;
  font-size: 10.5px; letter-spacing: 0.1em; color: var(--muted-2); text-decoration: none;
}
.menu-foot:hover { color: var(--lime); }

/* Game over / pause */
.overlay--over, .overlay--pause {
  background: rgba(4, 6, 3, 0.72);
  backdrop-filter: blur(10px);
}
.over-card {
  width: min(460px, calc(100vw - 36px));
  padding: 30px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(165deg, rgba(24, 28, 18, 0.94), rgba(10, 12, 8, 0.96));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  animation: cardIn 0.3s cubic-bezier(0.2, 0.9, 0.2, 1);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(14px) scale(0.98); } }
.over-card h2 { margin: 12px 0 6px; font-size: 27px; letter-spacing: -0.02em; font-weight: 550; }
.over-card > p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.over-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.over-stats div {
  padding: 12px 14px; border-radius: 13px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03);
}
.over-stats span { display: block; font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted-2); }
.over-stats b { display: block; margin-top: 3px; font-size: 20px; font-weight: 550; color: var(--lime-soft); font-variant-numeric: tabular-nums; }
.over-best { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lime); margin-bottom: 18px; }
.over-best.is-quiet { color: var(--muted-2); }
.over-actions { display: flex; gap: 10px; }
.over-actions .btn-play { width: auto; flex: 1; }
.btn-ghost {
  padding: 14px 18px; border-radius: 13px;
  border: 1px solid var(--line-strong); background: transparent;
  color: var(--ink); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.over-card--small { text-align: left; }
.pause-hint { margin: 16px 0 0; font-size: 11px; color: var(--muted-2); }

/* ---------------- Responsive ---------------- */
@media (max-width: 1080px) {
  .menu-inner { padding: clamp(24px, 5vw, 56px); }
  .menu-copy h1 { font-size: clamp(3.6rem, 10vw, 7rem); }
}
@media (max-width: 860px) {
  .overlay--menu { grid-template-columns: 1fr; overflow-y: auto; background: linear-gradient(180deg, rgba(7, 7, 7, 0.94), rgba(7, 7, 7, 0.82) 55%, rgba(7, 7, 7, 0.94)); }
  .menu-scrim { position: fixed; }
  .menu-inner { justify-content: flex-start; padding: 34px 22px 90px; gap: 24px; max-width: 560px; margin: 0 auto; }
  .menu-copy h1 { font-size: clamp(3.2rem, 15vw, 5rem); }
  .menu-lede { font-size: 13px; }
  .menu-art { display: none; }
  .menu-foot { left: 22px; bottom: 18px; }
  .menu-perks { margin-top: 14px; }

  .hud-corner { top: 76px; }
  #minimap { width: 116px; height: 116px; }
  .board { width: 168px; padding: 10px 12px; }
  .board li { font-size: 10.5px; }
  .vitals { width: min(270px, 60vw); }
  .hint { display: none; }
}
@media (max-width: 700px) {
  .hud { padding: 10px; }
  .hud-top { gap: 8px; align-items: flex-start; flex-wrap: wrap; }
  .hud-brand { padding: 7px 10px 7px 8px; }
  .brand-glyph { width: 30px; height: 30px; font-size: 14px; }
  .hud-brand strong { font-size: 12px; }
  .hud-brand span { font-size: 8.5px; }
  .hud-score { padding: 6px 11px; gap: 8px; }
  .hud-score strong { font-size: 17px; }
  .hud-score em { display: none; }
  .feed { order: 3; flex-basis: 100%; align-items: flex-start; padding: 2px 2px 0; }
  .feed-line { font-size: 10.5px; }
  .hud-corner { top: 72px; right: 10px; }
  #minimap { width: 92px; height: 92px; }
  .minimap { padding: 5px; border-radius: 12px; }
  .minimap-label { display: none; }
  .board { display: none; }
  .hud-bottom { gap: 8px; }
  .vitals { width: min(250px, 56vw); gap: 5px; }
  .vital { grid-template-columns: 46px 1fr 28px; gap: 7px; font-size: 8px; }
  .vital b { font-size: 9px; }
  .res { padding: 5px 9px; font-size: 10px; }
  .tool-chip { font-size: 9px; padding: 5px 9px; }
  .hotbar { gap: 5px; }
  .hotbar button { min-width: 0; flex: 1 1 62px; padding: 6px 8px; }
  .hotbar button span { font-size: 10.5px; }
  .hotbar button em { display: none; }
  .hotbar button kbd { display: none; }
  .toast { bottom: auto; top: 180px; font-size: 11px; }
  .mute { width: 34px; height: 34px; font-size: 8px; bottom: 10px; right: 10px; }
  .hud.is-touch .hud-bottom { padding-bottom: 148px; padding-right: 154px; }
  .hud.is-touch .vitals { width: min(206px, 52vw); }
  .hud.is-touch .mute { bottom: auto; top: 72px; right: 112px; }
  .over-card { padding: 24px; }
  .over-card h2 { font-size: 23px; }
  .over-stats b { font-size: 17px; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .hud-brand span, .feed, .board { display: none; }
  .hud-corner { top: 64px; }
  #minimap { width: 84px; height: 84px; }
  .vital { grid-template-columns: 42px 1fr 26px; }
  .hud.is-touch .hud-bottom { padding-bottom: 132px; padding-right: 236px; gap: 6px; }
  .hud.is-touch .vitals { width: 232px; }
  .hud.is-touch .mute { bottom: auto; right: 12px; top: 172px; }
  .stick { width: 96px; height: 96px; }
  .stick-knob { width: 44px; height: 44px; margin: -22px 0 0 -22px; }
  .t-attack { height: 60px; }
  .t-act { height: 46px; }

  .overlay--menu { grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); overflow: hidden; }
  .menu-inner { flex-direction: row; align-items: center; justify-content: center; gap: 26px; min-height: 100%; padding: 18px 28px; max-width: 860px; }
  .menu-copy { flex: 1 1 auto; min-width: 0; }
  .menu-copy h1 { font-size: clamp(2.8rem, 7vw, 3.6rem); margin: 6px 0 8px; }
  .menu-lede { font-size: 11.5px; line-height: 1.55; max-width: 320px; }
  .menu-perks { display: none; }
  .menu-card { flex: 0 0 340px; width: 340px; max-width: none; padding: 15px 16px; gap: 8px; }
  .menu-card input { padding: 10px 13px; font-size: 13px; }
  .btn-play { padding: 11px 16px; font-size: 11px; }
  .best-row { padding-top: 0; font-size: 10px; }
  .menu-controls { display: none; }
  .menu-foot { left: 28px; bottom: 12px; font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}