.door-arcade-page {
  max-width: 980px;
  padding-top: 46px;
}

.door-arcade-intro {
  max-width: 860px;
  margin-bottom: 24px;
}
.door-arcade-intro h1 { max-width: 760px; }
.door-arcade-intro .lede { max-width: 830px; }

.arcade-shell {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(28, 33, 26, .07);
}

.arcade-topbar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: #f8f9f4;
}
.arcade-stat {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 9px;
  border-right: 1px solid var(--line);
}
.arcade-stat:last-child { border-right: 0; }
.arcade-stat span {
  color: var(--muted);
  font-size: .62rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.arcade-stat strong {
  margin-top: 2px;
  font-size: 1.5rem;
  letter-spacing: -.045em;
}

.arcade-target {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: baseline;
  gap: 9px;
  min-height: 62px;
  padding: 12px 18px;
  border-bottom: 1px solid #d7e27b;
  background: var(--accent-soft);
  color: var(--text);
}
.arcade-target span {
  font-size: .68rem;
  font-weight: 950;
  letter-spacing: .12em;
}
.arcade-target strong {
  font-size: 2rem;
  line-height: 1;
  letter-spacing: -.05em;
}
.arcade-target em {
  color: #5d632e;
  font-size: .74rem;
  font-style: normal;
  font-weight: 800;
}

.arcade-stage {
  position: relative;
  overflow: hidden;
  background: #f7f8f3;
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
}
.arcade-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(255,255,255,.14), rgba(255,255,255,0));
  z-index: 1;
}
.arcade-svg {
  display: block;
  width: 100%;
  height: auto;
}

.arcade-start-card {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 24px;
  width: min(430px, calc(100% - 36px));
  transform: translateX(-50%);
  padding: 15px 18px;
  border: 1px solid rgba(28,33,26,.12);
  border-radius: 15px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 25px rgba(28,33,26,.08);
  text-align: center;
  backdrop-filter: blur(6px);
}
.arcade-start-card.is-hidden { display: none; }
.arcade-start-card .section-kicker { margin-bottom: 5px; }
.arcade-start-card strong {
  display: block;
  font-size: .92rem;
}
.arcade-start-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: .72rem;
}

.arcade-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 14px 16px 0;
}
.arcade-move-button {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f7f8f3;
  color: var(--text);
  font: inherit;
  transition: transform .08s ease, border-color .08s ease, background .08s ease;
}
.arcade-move-button:hover:not(:disabled) {
  border-color: #b7bdae;
  background: #fff;
}
.arcade-move-button:active:not(:disabled) { transform: translateY(1px); }
.arcade-move-button:disabled { cursor: default; opacity: .45; }
.arcade-move-button span { font-size: 1.45rem; line-height: 1; }
.arcade-move-button strong { font-size: .78rem; letter-spacing: .08em; }
.arcade-control-note {
  margin: 8px 16px 0;
  color: var(--muted);
  font-size: .68rem;
  line-height: 1.45;
  text-align: center;
}
.arcade-primary {
  width: calc(100% - 32px);
  min-height: 50px;
  margin: 12px 16px 16px;
}
.arcade-feedback {
  margin: 12px 16px 0;
  padding: 11px 13px;
  border-radius: 12px;
  font-size: .78rem;
  line-height: 1.45;
}
.arcade-feedback.is-good {
  border: 1px solid #d6e176;
  background: #edf4b2;
  color: #34410d;
}
.arcade-feedback.is-over {
  border: 1px solid #edc0b6;
  background: #fae4df;
  color: #6a3028;
}

/* SVG game art */
.arcade-svg .arcade-floor { fill: #f7f8f3; }
.arcade-svg .arcade-lane-line { stroke: #e4e7df; stroke-width: 2; stroke-dasharray: 9 12; }
.arcade-svg .arcade-wall { fill: #dfe3da; stroke: #1c211a; stroke-width: 3; }
.arcade-svg .arcade-jamb { stroke: #1c211a; stroke-width: 5; }
.arcade-svg .arcade-door-leaf { stroke: #1c211a; stroke-width: 8; stroke-linecap: square; }
.arcade-svg .arcade-door-highlight { stroke: #fff; stroke-width: 2; opacity: .82; }
.arcade-svg .arcade-door-closed { stroke: #a6ada0; stroke-width: 2.5; stroke-dasharray: 6 5; }
.arcade-svg .arcade-door-arc { fill: none; stroke: #687064; stroke-width: 3; stroke-dasharray: 7 5; }
.arcade-svg .arcade-hinge { fill: #1c211a; }
.arcade-svg .arcade-reference-zone { fill: #edf4b2; opacity: .72; }
.arcade-svg .arcade-reference-text,
.arcade-svg .arcade-lane-text {
  fill: #697060;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-anchor: middle;
  font-weight: 900;
  letter-spacing: .08em;
}
.arcade-svg .arcade-reference-text { font-size: 12px; }
.arcade-svg .arcade-lane-text { font-size: 10px; opacity: .58; }
.arcade-svg .arcade-player-shadow { fill: rgba(28,33,26,.13); }
.arcade-svg .arcade-player-body { fill: #1c211a; }
.arcade-svg .arcade-player-head { fill: #d7b28d; stroke: #1c211a; stroke-width: 2; }
.arcade-svg .arcade-hardhat { fill: #e5ff50; stroke: #1c211a; stroke-width: 2.5; }
.arcade-svg .arcade-hardhat-brim { stroke: #1c211a; stroke-width: 3; stroke-linecap: round; }
.arcade-svg .arcade-player-limb { stroke: #1c211a; stroke-width: 6; stroke-linecap: round; }
.arcade-svg .arcade-player-label {
  fill: #1c211a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-anchor: middle;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: .09em;
}
.arcade-svg .arcade-correct-flash { fill: #e5ff50; opacity: .22; }
.arcade-svg .arcade-crash-flash { fill: #c96052; opacity: .13; }

@media (min-width: 651px) {
  /* Keep the full arcade comfortably visible on desktop without changing the mobile game size. */
  .arcade-shell {
    max-width: 660px;
    margin-inline: auto;
  }

  .arcade-stat { min-height: 58px; }
  .arcade-stat strong { font-size: 1.35rem; }
  .arcade-target { min-height: 54px; padding: 10px 16px; }
  .arcade-target strong { font-size: 1.75rem; }
  .arcade-controls { padding-top: 10px; }
  .arcade-move-button { min-height: 48px; }
  .arcade-primary { min-height: 46px; margin-top: 10px; margin-bottom: 12px; }
}

@media (max-width: 650px) {
  .door-arcade-page { padding-top: 24px; }
  .door-arcade-intro { margin-bottom: 18px; }
  .arcade-shell { border-radius: 16px; }
  .arcade-stat { min-height: 59px; padding: 7px; }
  .arcade-stat strong { font-size: 1.25rem; }
  .arcade-target { min-height: 54px; padding: 10px 12px; gap: 7px; }
  .arcade-target strong { font-size: 1.65rem; }
  .arcade-target em { font-size: .64rem; }
  .arcade-controls { padding: 10px 11px 0; gap: 8px; }
  .arcade-move-button { min-height: 48px; border-radius: 11px; }
  .arcade-control-note { margin-inline: 12px; font-size: .64rem; }
  .arcade-feedback { margin: 10px 11px 0; }
  .arcade-primary { width: calc(100% - 22px); margin: 10px 11px 12px; }
  .arcade-start-card { bottom: 14px; padding: 11px 13px; }
  .arcade-start-card strong { font-size: .8rem; }
  .arcade-start-card span { font-size: .65rem; }
}
