/* MP DOOM pages: self-contained theme. Hellfire reds, rust, bone text, stone HUD panels. */

:root {
  color-scheme: dark;
  --bg: #0c0806;
  --bg-2: #160e0b;
  --panel: #1c1310;
  --stone-1: #57504a;
  --stone-2: #3a3430;
  --stone-3: #26211e;
  --rust: #5e2a14;
  --bronze: #c08a58;
  --blood: #8a0b0b;
  --red: #e0201a;
  --red-hot: #ff3b1f;
  --orange: #ff8a1e;
  --yellow: #ffd84a;
  --bone: #eadfcd;
  --muted: #b3a493;
  --dim: #7d6f62;
  --line: #3a2a22;
  --display: "Anton", "Impact", "Arial Narrow Bold", sans-serif;
  --pixel: "Silkscreen", "Courier New", monospace;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --noise-soft: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .4  0 0 0 0 .3  0 0 0 0 .25  0 0 0 .22 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1120px;
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .45  0 0 0 0 .4  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(140, 20, 8, 0.35), transparent 60%),
    linear-gradient(var(--bg), var(--bg-2));
  background-color: var(--bg);
  color: var(--bone);
  font: 400 1.0625rem/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--orange); }
a:hover { color: var(--yellow); }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.88em; color: var(--yellow); background: rgba(255, 216, 74, 0.08); padding: 0.05em 0.3em; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; }
::selection { background: var(--red); color: #fff; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--yellow); color: #000; padding: 8px 12px; font-family: var(--pixel); }
.skip-link:focus { top: 12px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; }

/* Top bar */
.d-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; font-family: var(--pixel); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; }
.d-top a { color: var(--muted); text-decoration: none; }
.d-top a:hover { color: var(--yellow); }

/* Logo-style title: fire gradient, dark outline, extruded shadow */
.d-logo {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 0.88;
  letter-spacing: 0.01em;
  font-size: clamp(4.25rem, 2.5rem + 9vw, 9.5rem);
  background: linear-gradient(180deg, #fff3b0 0%, var(--yellow) 18%, var(--orange) 45%, var(--red-hot) 68%, var(--blood) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 2px #2a0703;
  filter: drop-shadow(0 4px 0 #3b0c05) drop-shadow(0 7px 0 #1a0402) drop-shadow(0 18px 24px rgba(0, 0, 0, 0.7));
  transform: perspective(600px) rotateX(12deg);
  transform-origin: 50% 100%;
}
.d-logo.small { font-size: clamp(2.75rem, 1.8rem + 5vw, 5.5rem); }

/* Menu-style headings, like the red in-game menu text */
.d-h2 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3.25rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--red);
  -webkit-text-stroke: 1px #2a0703;
  text-shadow: 0 3px 0 #2a0703, 0 0 24px rgba(224, 32, 26, 0.35);
  margin: clamp(56px, 8vw, 96px) 0 20px;
}
.d-label { font-family: var(--pixel); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--orange); }

/* Hero */
.d-hero { position: relative; padding: clamp(24px, 5vw, 56px) 0 clamp(80px, 12vw, 150px); isolation: isolate; }
.d-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.d-tag { font-family: var(--pixel); font-size: clamp(0.9375rem, 0.8rem + 0.5vw, 1.125rem); color: var(--yellow); text-transform: uppercase; margin-top: 22px; letter-spacing: 0.03em; }
.d-lede { color: var(--muted); font-size: 1.125rem; max-width: 40ch; margin-top: 12px; }
.d-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.d-note { font-family: var(--pixel); font-size: 0.75rem; color: var(--dim); margin-top: 14px; text-transform: uppercase; }

#fire {
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: 100vw;
  height: clamp(110px, 16vw, 200px);
  transform: translateX(-50%);
  image-rendering: pixelated;
  z-index: -1;
  -webkit-mask-image: linear-gradient(to top, #000 35%, transparent);
  mask-image: linear-gradient(to top, #000 35%, transparent);
  opacity: 0.9;
}

/* MPC screen bezel around the artwork */
.d-screen {
  padding: 14px;
  background: linear-gradient(160deg, #4a4440, #1d1a18 60%, #2c2724);
  border: 1px solid #000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 80px rgba(224, 32, 26, 0.18);
}
.d-screen img { width: 100%; height: auto; image-rendering: pixelated; background: #170d0f; border: 2px solid #000; }

/* Buttons: beveled metal */
.d-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  font-family: var(--pixel);
  font-size: 0.9375rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--bone);
  cursor: pointer;
  border: 2px solid #000;
  background: linear-gradient(180deg, var(--stone-1), var(--stone-2) 55%, var(--stone-3));
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.18), inset -2px -2px 0 rgba(0, 0, 0, 0.45), 0 4px 0 #000;
  transition: transform 80ms ease, filter 120ms ease;
}
.d-btn:hover { color: #fff; filter: brightness(1.15); }
.d-btn:active { transform: translateY(3px); box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.4), 0 1px 0 #000; }
.d-btn.hot { color: #fff; background: linear-gradient(180deg, var(--red-hot), var(--red) 50%, var(--blood)); text-shadow: 0 2px 0 #3b0c05; }
.d-btn[disabled] { opacity: 0.6; cursor: progress; }

/* Status bar: stone texture, red digits */
.d-hud {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 3px solid #000;
  background: var(--noise), linear-gradient(180deg, #6a625b, #48413c 50%, #37312d);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.15), 0 10px 30px rgba(0, 0, 0, 0.6);
}
.d-hud div { padding: 14px 12px 12px; text-align: center; border-left: 3px solid #1e1a17; box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.12); }
.d-hud div:first-child { border-left: 0; box-shadow: none; }
.d-hud b {
  display: block;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.2rem + 2.4vw, 3rem);
  line-height: 1;
  color: var(--red);
  -webkit-text-stroke: 1px #3b0c05;
  text-shadow: 2px 2px 0 #1a0402;
}
.d-hud span { display: block; margin-top: 6px; font-family: var(--pixel); font-size: 0.75rem; color: #e9dcc5; text-shadow: 1px 1px 0 #000; text-transform: uppercase; }

/* Skill-level download picker */
.d-skills { display: grid; gap: 14px; }
.d-skill {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px 24px;
  align-items: center;
  padding: 22px 24px;
  background: var(--noise-soft), linear-gradient(180deg, #24170f, #140c08);
  border: 2px solid #000;
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px rgba(0, 0, 0, 0.5);
  position: relative;
}
.d-skill::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--red); }
.d-skill .d-label { color: var(--red-hot); }
.d-skill h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.05; margin: 6px 0 6px; color: var(--bone); letter-spacing: 0.02em; }
.d-skill p { color: var(--muted); max-width: 58ch; }
.d-meta { margin-top: 18px; font-family: var(--pixel); font-size: 0.8125rem; text-transform: uppercase; color: var(--dim); }
.d-meta a { color: var(--muted); }
.d-meta a:hover { color: var(--yellow); }

/* Setup steps */
.d-steps { list-style: none; counter-reset: step; display: grid; gap: 14px; max-width: 760px; }
.d-steps li { counter-increment: step; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; color: var(--muted); }
.d-steps li::before {
  content: counter(step);
  font-family: var(--display);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--red);
  -webkit-text-stroke: 1px #2a0703;
  text-shadow: 0 3px 0 #2a0703;
  text-align: center;
}
.d-steps b { color: var(--bone); display: block; font-size: 1.125rem; }
.d-small { color: var(--dim); font-size: 0.9375rem; margin-top: 16px; max-width: 70ch; }

/* Pad map, laid out like the MPC: 13-16 on top, 1-4 on the bottom */
.d-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.pad-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  background: linear-gradient(160deg, #2e2a27, #141210);
  border: 2px solid #000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 16px 40px rgba(0, 0, 0, 0.6);
}
.pad {
  aspect-ratio: 1;
  min-width: 0;
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(180deg, #3a3532, #24201e);
  border: 1px solid #000;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), inset 0 -3px 0 rgba(0, 0, 0, 0.4);
}
.pad i { font-style: normal; font-family: var(--pixel); font-size: 0.6875rem; color: var(--dim); }
.pad b { font-family: var(--pixel); font-weight: 700; font-size: clamp(0.5625rem, 0.3rem + 1.1vw, 0.8125rem); line-height: 1.15; text-transform: uppercase; letter-spacing: 0; color: var(--bone); overflow-wrap: normal; word-break: keep-all; }
.pad.hot { background: radial-gradient(circle at 50% 40%, #ff5a2a, #b3150f 60%, #5c0806); box-shadow: 0 0 18px rgba(255, 59, 31, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.pad.hot i { color: #ffd3b8; }
.pad.hot b { color: #fff; text-shadow: 0 1px 0 #3b0c05; }
.pad.gun { background: linear-gradient(180deg, #5a4122, #2e2111); }
.pad.gun b { color: var(--yellow); }
.d-keys { display: grid; }
.d-keys div { display: grid; grid-template-columns: 10.5rem 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.d-keys dt { font-family: var(--pixel); font-weight: 700; text-transform: uppercase; color: var(--yellow); font-size: 0.875rem; }
.d-keys dd { color: var(--muted); }

/* Pad kit signup */
.d-kit {
  position: relative;
  margin-top: clamp(56px, 8vw, 96px);
  scroll-margin-top: 24px;
  padding: clamp(22px, 4vw, 40px);
  background: var(--noise-soft), radial-gradient(120% 140% at 0% 0%, rgba(224, 32, 26, 0.28), transparent 55%), linear-gradient(180deg, #2a1a12, #150d09);
  border: 3px solid #000;
  box-shadow: inset 0 0 0 1px #6b2a15, 0 0 60px rgba(224, 32, 26, 0.18), 0 16px 40px rgba(0, 0, 0, 0.6);
}
.d-kit h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); line-height: 1; color: var(--yellow); text-shadow: 0 3px 0 #3b0c05; letter-spacing: 0.02em; }
.d-kit-copy p { color: var(--muted); max-width: 56ch; margin-top: 12px; }
.kit-form { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.kit-form input {
  flex: 1 1 260px;
  max-width: 380px;
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  font: 1rem var(--body);
  color: var(--bone);
  background: #0b0705;
  border: 2px solid #000;
  box-shadow: inset 0 0 0 1px #5a3a2a, inset 0 3px 8px rgba(0, 0, 0, 0.6);
  border-radius: 0;
}
.kit-form input::placeholder { color: var(--dim); }
.kit-status { margin-top: 14px; min-height: 1.5em; font-family: var(--pixel); font-size: 0.875rem; text-transform: uppercase; color: var(--muted); }
.kit-status.ok { color: var(--yellow); }
.kit-status.err { color: var(--red-hot); }

/* FAQ in menu style */
.d-faq details { border-bottom: 1px solid var(--line); }
.d-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 0 16px 30px;
  position: relative;
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  font-size: clamp(1.125rem, 1rem + 0.6vw, 1.5rem);
  letter-spacing: 0.02em;
  color: var(--red);
  text-shadow: 0 2px 0 #2a0703;
}
.d-faq summary::-webkit-details-marker { display: none; }
.d-faq summary::before { content: "▶"; position: absolute; left: 0; top: 50%; transform: translateY(-50%); font-size: 0.8em; color: var(--dim); }
.d-faq summary:hover, .d-faq details[open] summary { color: var(--red-hot); }
.d-faq summary:hover::before, .d-faq details[open] summary::before { color: var(--yellow); }
.d-faq details[open] summary::before { content: "▼"; }
.d-faq details > div { padding: 0 0 18px 30px; color: var(--muted); max-width: 68ch; }

/* Article (build notes, pad kit page) */
.d-article { max-width: 70ch; padding-bottom: 20px; }
.d-article .d-lede { font-size: 1.25rem; color: var(--bone); max-width: none; margin-top: 28px; }
.d-article p { color: var(--muted); margin-top: 16px; line-height: 1.75; }
.d-article .d-h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); margin: 48px 0 0; }

.d-foot {
  margin-top: clamp(56px, 8vw, 96px);
  padding: 22px 0 36px;
  border-top: 3px solid #000;
  box-shadow: 0 -1px 0 var(--line);
  color: var(--dim);
  font-size: 0.875rem;
}
.d-foot p { max-width: 80ch; }
.d-foot nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-family: var(--pixel); text-transform: uppercase; font-size: 0.75rem; }
.d-foot a { color: var(--muted); text-decoration: none; }
.d-foot a:hover { color: var(--yellow); }

@media (max-width: 820px) {
  .d-hero-grid, .d-controls { grid-template-columns: minmax(0, 1fr); }
  .d-hud { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .d-hud div:nth-child(3) { border-left: 0; box-shadow: none; }
  .d-hud div:nth-child(n + 3) { border-top: 3px solid #1e1a17; }
  .d-skill { grid-template-columns: minmax(0, 1fr); }
  .d-skill .d-btn { justify-self: start; }
  .d-keys div { grid-template-columns: 1fr; gap: 2px; }
  .pad-map { gap: 8px; padding: 10px; }
  .pad { padding: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .d-btn { transition: none; }
}

/* Pad kit setup guide */
.d-guide { max-width: 920px; }
.d-guide .d-lede { margin-top: 24px; font-size: 1.25rem; color: var(--bone); max-width: 52ch; }
.d-guide .d-h2 { margin-top: clamp(48px, 7vw, 80px); }
.d-steps-big { list-style: none; display: grid; gap: 18px; counter-reset: gstep; }
.d-step {
  counter-increment: gstep;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) minmax(0, 300px);
  gap: 20px 24px;
  align-items: center;
  padding: 22px 24px;
  background: var(--noise-soft), linear-gradient(180deg, #24170f, #140c08);
  border: 2px solid #000;
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 24px rgba(0, 0, 0, 0.5);
}
.d-step::before {
  content: counter(gstep);
  align-self: start;
  font-family: var(--display);
  font-size: 3.5rem;
  line-height: 0.9;
  color: var(--red);
  -webkit-text-stroke: 1px #2a0703;
  text-shadow: 0 3px 0 #2a0703, 0 0 20px rgba(224, 32, 26, 0.35);
  text-align: center;
}
.d-step h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); line-height: 1.05; letter-spacing: 0.02em; color: var(--bone); }
.d-step p { color: var(--muted); margin-top: 8px; }
.d-step p b { color: var(--bone); }
.d-step ol { margin: 10px 0 0 1.1rem; color: var(--muted); display: grid; gap: 6px; }
.d-step ol b { color: var(--bone); }
.d-art { justify-self: center; width: 100%; max-width: 300px; }
.d-art svg { display: block; width: 100%; height: auto; }

/* Rubber-button keycaps, the way the MPC labels them */
.keys { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.key {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  font-family: var(--pixel);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--bone);
  background: linear-gradient(180deg, #4a4542, #2a2624);
  border: 2px solid #000;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 3px 0 #000;
  white-space: nowrap;
}
.key.pad { min-width: 46px; min-height: 46px; aspect-ratio: auto; background: radial-gradient(circle at 50% 40%, #ff5a2a, #b3150f 60%, #5c0806); color: #fff; box-shadow: 0 0 14px rgba(255, 59, 31, 0.5), 0 3px 0 #000; }
.key.knob { border-radius: 999px; min-width: 46px; background: radial-gradient(circle at 40% 35%, #6b6560, #24201e 70%); }
.keys .then { font-family: var(--pixel); color: var(--orange); font-size: 0.875rem; }
.keys small { display: block; width: 100%; font-family: var(--pixel); font-size: 0.6875rem; color: var(--dim); text-transform: uppercase; }

/* MPC-style screen */
.lcd {
  font-family: var(--pixel);
  font-size: 0.8125rem;
  line-height: 1.9;
  text-transform: uppercase;
  color: #ffb36b;
  background: radial-gradient(120% 120% at 30% 20%, #2a1208, #0d0503);
  border: 10px solid #26221f;
  outline: 2px solid #000;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.9), 0 10px 26px rgba(0, 0, 0, 0.6);
  padding: 10px 12px;
}
.lcd div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lcd .sel { background: #ff8a1e; color: #1a0702; padding: 0 6px; margin: 0 -6px; }
.lcd .i1 { padding-left: 1.1em; }
.lcd .i2 { padding-left: 2.2em; }

.pad-map.kit { max-width: 560px; margin-top: 8px; }
.d-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 14px; font-family: var(--pixel); font-size: 0.75rem; text-transform: uppercase; color: var(--muted); }
.d-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-right: 8px; vertical-align: -1px; border: 1px solid #000; }
.d-legend .l-drum::before { background: #5a4122; }
.d-legend .l-sfx::before { background: #c4161c; }
.d-tip {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 4px solid var(--yellow);
  background: rgba(255, 216, 74, 0.06);
  color: var(--muted);
}
.d-tip b { color: var(--yellow); font-family: var(--pixel); text-transform: uppercase; font-size: 0.8125rem; }

@media (max-width: 820px) {
  .d-step { grid-template-columns: 44px minmax(0, 1fr); padding: 18px; }
  .d-step::before { font-size: 2.75rem; }
  .d-art { grid-column: 1 / -1; max-width: 340px; justify-self: start; }
}
@media (max-width: 480px) {
  .pad-map.kit { gap: 6px; padding: 8px; }
  .pad-map.kit .pad { padding: 5px; }
  .pad-map.kit .pad b { font-size: clamp(0.5rem, 0.15rem + 1.2vw, 0.625rem); }
  .d-step { gap: 14px 14px; }
}

/* Playable pads */
.pad-map.play { max-width: 440px; }
.pad-map button.pad {
  position: relative;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  transition-property: transform, filter, box-shadow;
  transition-duration: 90ms, 140ms, 140ms;
  transition-timing-function: cubic-bezier(0.2, 0, 0, 1);
}
.pad-map button.pad:hover { filter: brightness(1.12); }
.pad-map button.pad:active { transform: scale(0.96); }
.pad-map button.pad.is-hit { filter: brightness(1.6) saturate(1.15); box-shadow: 0 0 28px rgba(255, 90, 40, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.pad-map button.pad.gun.is-hit { box-shadow: 0 0 28px rgba(255, 200, 70, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.pad kbd { display: none; position: absolute; top: 7px; right: 8px; font-family: var(--pixel); font-size: 0.625rem; color: var(--dim); }
.pad.hot kbd { color: #ffd3b8; }
@media (hover: hover) and (pointer: fine) { .pad kbd { display: block; } }

.d-play { margin-top: clamp(28px, 4vw, 40px); }
.d-h2.sm { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); margin: 0 0 14px; }
.d-play-foot { margin-top: 12px; font-size: 0.9375rem; color: var(--dim); }
.d-play .d-legend { margin-top: 14px; }

/* Signup panel with pads beside the form */
.d-kit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px);
  grid-template-areas: "copy pads" "form pads";
  column-gap: clamp(24px, 4vw, 48px);
  row-gap: 0;
  align-items: start;
}
.d-kit-copy { grid-area: copy; }
.d-kit-pads { grid-area: pads; align-self: center; }
.d-kit-form { grid-area: form; }
.d-kit-pads .pad-map { max-width: none; }
.d-kit-pads .d-play-foot { font-family: var(--pixel); font-size: 0.75rem; text-transform: uppercase; color: var(--muted); }
@media (max-width: 820px) {
  .d-kit-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "copy" "pads" "form"; }
  .d-kit-pads { margin-top: 20px; }
}

/* Polish pass */
.pad-map.play { container-type: inline-size; }
.pad-map.play .pad b { font-size: 0.5625rem; font-size: clamp(0.5rem, 2.3cqi, 0.6875rem); letter-spacing: 0; }
.pad-map.play .pad i, .pad-map.play .pad kbd { font-size: clamp(0.5rem, 2.2cqi, 0.6875rem); }
.d-guide .d-lede { margin-top: 16px; }
.d-guide .d-cta { margin-top: 22px; }
.d-play { margin-top: 28px; }
.d-logo, .d-h2, .d-step h3, .d-skill h3, .d-kit h2, .d-faq summary { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
.d-top a { display: inline-block; padding: 12px 0; }
.d-meta a, .d-foot a { display: inline-block; padding: 10px 0; }
.d-guide .d-lede { max-width: 64ch; }
.d-guide .d-logo.small { font-size: clamp(2.75rem, 1.8rem + 4.4vw, 4.75rem); }
.d-play { margin-top: 24px; }
.d-h2.sm { margin-bottom: 10px; }
.d-play .d-legend { margin-top: 12px; }
.d-play-foot { margin-top: 6px; }
.d-kit-grid { grid-template-rows: auto 1fr; }
.d-kit-form { align-self: start; }
.d-kit-pads { align-self: start; }
.d-kit-pads .pad-map { margin-top: 0; }
@media (max-width: 820px) { .d-kit-grid { grid-template-rows: none; } }
.d-step { align-items: start; }
.d-step h3 { margin-top: 2px; } /* optical: cap tops line up with the step number */
.d-step { grid-template-columns: 64px minmax(0, 1fr) minmax(0, 320px); }
.d-art { max-width: 320px; }
.keys { gap: 6px; }
.key { padding: 0 10px; font-size: 0.6875rem; }
.key.pad, .key.knob { min-width: 40px; min-height: 40px; }
@media (max-width: 820px) { .d-step { grid-template-columns: 44px minmax(0, 1fr); } }
.key.two { white-space: normal; line-height: 1.15; text-align: center; padding: 4px 10px; }
.key.knob { padding: 0; width: 40px; }
@media (max-width: 480px) {
  .d-kit { padding: 18px 16px; }
  .pad-map.kit .pad { padding: 4px; }
}

/* Feedback page */
.d-ask { display: grid; gap: clamp(28px, 4vw, 40px); margin-top: clamp(28px, 4vw, 40px); }
.d-ask fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.d-ask legend { padding: 0; margin: 0 0 14px; }
.d-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.d-choices.small { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d-choices label { position: relative; display: block; cursor: pointer; }
.d-choices input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.d-choices span {
  display: flex;
  align-items: center;
  min-height: 56px;
  height: 100%;
  padding: 12px 16px;
  font-family: var(--pixel);
  font-weight: 700;
  font-size: 0.8125rem;
  line-height: 1.3;
  text-transform: uppercase;
  color: var(--bone);
  background: var(--noise-soft), linear-gradient(180deg, #2a1d14, #170f0a);
  border: 2px solid #000;
  box-shadow: inset 0 0 0 1px var(--line), 0 3px 0 #000;
  transition-property: transform, filter, background;
  transition-duration: 90ms, 120ms, 120ms;
}
.d-choices label:hover span { filter: brightness(1.15); }
.d-choices label:active span { transform: scale(0.96); }
.d-choices input:checked + span {
  color: #fff;
  background: linear-gradient(180deg, var(--red-hot), var(--red) 50%, var(--blood));
  text-shadow: 0 2px 0 #3b0c05;
  box-shadow: 0 0 18px rgba(255, 59, 31, 0.45), 0 3px 0 #000;
}
.d-choices input:focus-visible + span { outline: 3px solid var(--yellow); outline-offset: 2px; }
.d-field { display: grid; gap: 8px; margin-top: 14px; }
.d-field:first-of-type { margin-top: 0; }
.d-field span { color: var(--muted); font-size: 0.9375rem; }
.d-field input, .d-field textarea {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  font: 1rem var(--body);
  color: var(--bone);
  background: #0b0705;
  border: 2px solid #000;
  box-shadow: inset 0 0 0 1px #5a3a2a, inset 0 3px 8px rgba(0, 0, 0, 0.6);
  border-radius: 0;
  resize: vertical;
}
.d-field input::placeholder { color: var(--dim); }
.d-ask .kit-form { margin-top: 0; }
.d-done { margin-top: 24px; }
.d-done .d-h2 { margin-top: 0; color: var(--yellow); }
@media (max-width: 560px) {
  .d-choices, .d-choices.small { grid-template-columns: minmax(0, 1fr); }
  .d-choices.small { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
