.mine-scene { display: none; position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #100d1b; }
#game[data-phase="intro"] .mine-scene { display: block; }
#game[data-phase="intro"] :is(.region, #distance) { visibility: hidden; }
.mine-backdrop, .mine-scene::after, #mine-actors { position: absolute; inset: 0; width: 100%; height: 100%; }
.mine-backdrop { background: url('./mine.webp') 63% 63% / cover no-repeat; image-rendering: pixelated; }
.mine-scene::after {
  content: '';
  background: linear-gradient(90deg, #100c1aef, #100c1adb 28%, #100c1a36 57%, transparent 77%),
    linear-gradient(#0f0b1a90, transparent 19%, transparent 83%, #100c1aae);
}
#mine-actors { image-rendering: pixelated; }
#game[data-phase="intro"] .controls {
  justify-content: flex-start; padding: 76px max(7vw, calc((100% - 1520px) / 2)) 68px;
  overflow-y: auto; pointer-events: auto;
}
#intro {
  pointer-events: auto; margin: 0; padding: 0; width: min(48vw, 670px); position: relative;
}
#intro h1 { font: 700 clamp(4rem, 8.5vw, 9rem)/.86 "Pixelify Sans", monospace; letter-spacing: -.07em;
  color: #fff1d2; margin: .14em 0 .06em; text-shadow: .035em .045em #793e4c, .065em .08em #201323; }
#intro .mine-subtitle { color: #ffc681; font: 700 clamp(1.6rem, 3.25vw, 3.5rem)/1 "Pixelify Sans", monospace; }
#intro .mine-description { max-width: 36ch; margin-top: 1.2rem; color: #ecdbdc; line-height: 1.55; font-size: clamp(1rem, 1.34vw, 1.2rem); }
#start { border-radius: 0; border: 2px solid #ffde9a; min-height: 58px; min-width: 210px; padding: .55em 1.2em;
  font: 700 1.48rem/1 "Pixelify Sans", monospace; margin-top: 1.35rem;
  box-shadow: inset 0 -5px #b17358, 4px 5px #0b0814; transition: transform .14s, background .14s; }
#start::after { content: ' →'; }
#start:active, [data-mine-launch] #start { transform: translate(2px, 3px); }
.mine-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.15rem; margin-top: .75rem; }
.mine-links :is(a, button) { display: inline-flex; align-items: center; min-height: 44px; font-size: .86rem;
  font-weight: 650; color: #e2d2e6; text-decoration: underline; text-underline-offset: .2em; }
.mine-links button { border: 0; padding: 0; background: transparent; margin: 0; min-width: 0; }
.mine-links :is(a, button):hover { color: #ffe1a1; }
#mine-instructions { width: min(90vw, 440px); padding: 1.4rem; color: var(--cream); background: #201729; border: 1px solid #a97662; }
#mine-instructions::backdrop { background: #100a19cb; }
#mine-instructions p { margin: .75rem 0; line-height: 1.5; }
#mine-instructions button { margin-top: .75rem; }
@media (max-width: 740px) {
  .mine-backdrop { background-position: 69% 50%; }
  .mine-scene::after { background: linear-gradient(#100c1aef 0%, #100c1adb 29%, #100c1a70 46%, transparent 67%, #100c1a38 85%, #100c1ad9); }
  #game[data-phase="intro"] .controls { align-items: start; justify-content: center;
    padding: max(79px, calc(env(safe-area-inset-top) + 56px)) 20px max(52px, env(safe-area-inset-bottom)); }
  #intro { width: 100%; align-self: start; text-align: center; }
  #intro h1 { font-size: clamp(3.35rem, 14vw, 6rem); }
  #intro .mine-description { margin: .85rem auto 0; }
  .mine-links { justify-content: center; column-gap: .9rem; margin-top: .5rem; }
  #start { margin-top: .95rem; }
}
@media (prefers-reduced-motion: reduce) { #start { transition: none; } }

