/* Rank 21 Pixel Burrow — original cave artistry, premium UI, readable on phones. */
:root { --cave-gold:#ffd68b; --cave-moss:#91e9a3; --cave-ink:#fff3de; }
#game-root {background:radial-gradient(ellipse at 50% 23%,#42301c,#130d0b 73%);}
#game-canvas {
  border:1px solid rgba(255,205,117,.51);border-radius:15px;
  box-shadow:0 0 0 5px rgba(227,163,71,.05),0 19px 55px rgba(0,0,0,.6),0 0 30px rgba(233,169,92,.13);
}
#screen-title {
  background:linear-gradient(180deg,rgba(18,12,8,.66),rgba(17,10,9,.94));
  backdrop-filter:blur(8px);overflow-y:auto;overscroll-behavior:contain;
}
#screen-title .title-card {
  position:relative;inset:auto;max-width:460px;width:min(93vw,460px);
  max-height:calc(100dvh - 24px);
  overflow-y:auto;overflow-x:hidden;
  border-radius:22px;
  padding:0 24px 20px;
  background:linear-gradient(165deg,#41301e,#1b120e 63%,#201711);
  border:1px solid rgba(247,197,115,.5);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.12),0 25px 70px rgba(0,0,0,.62);
  display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;
}
#screen-title .menu-art {
  height:clamp(115px,21vh,190px);
  width:calc(100% + 48px);
  flex:none;
  background:
    linear-gradient(to bottom,transparent 44%,rgba(26,17,10,.85) 100%),
    url('/assets/game-thumbnails/reviewed-20260930/pixel-burrow.webp') center 47% / cover no-repeat;
  border-bottom:1px solid rgba(255,213,122,.24);
}
#screen-title .title-miner {display:none}
#screen-title .menu-kicker {color:#eacb91;font:900 10px/1.4 Nunito,sans-serif;letter-spacing:.18em}
#screen-title .game-title {
  color:#ffdb96!important;
  font:900 clamp(18px,5.2vw,30px)/1.28 'Press Start 2P',monospace!important;
  letter-spacing:-.065em;
  margin:0!important;text-shadow:0 0 25px rgba(255,188,91,.24);
}
#screen-title .subtitle {
  width:100%;margin:0;max-width:370px;
  color:#e4d4b9;font-size:13px;line-height:1.5;opacity:1;
}
#screen-title .menu-badges {
  display:flex;gap:5px;justify-content:center;flex-wrap:wrap;
}
#screen-title .menu-badges span {
  font:900 9px/1.3 Nunito,sans-serif;
  letter-spacing:.08em;color:#e6cfab;
  background:rgba(245,186,101,.10);border:1px solid rgba(242,193,122,.24);
  padding:5px 8px;border-radius:8px;
}
#screen-title .menu-buttons {width:100%;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:4px}
#screen-title .btn-pixel {
  min-height:47px;border-radius:12px;
  border:1px solid rgba(253,204,119,.22);
  padding:11px 8px;font-size:clamp(10px,2.6vw,13px);
  box-shadow:0 5px 15px rgba(0,0,0,.19);
}
#screen-title #btn-menu-journey {
  grid-column:1/-1;min-height:55px;
  background:linear-gradient(130deg,#ffedb3,#f6b64d);
  color:#2d1b0b;
}
#screen-title #btn-menu-howto {grid-column:1/-1;background:rgba(248,216,158,.11);color:#f4ddba}
#screen-title .btn-secondary {background:rgba(130,92,62,.46);color:#f7e8d3}
#screen-title .title-footer {
  width:100%;padding-top:7px;border-top:1px solid rgba(248,203,128,.12);
  opacity:1;color:#c7ae87;
}
#screen-title #btn-menu-mute {min-height:44px}
#screen-howto,#screen-levels,#screen-pause,#screen-result {
  padding:max(13px,env(safe-area-inset-top,0px)) max(13px,env(safe-area-inset-right,0px))
          max(13px,env(safe-area-inset-bottom,0px)) max(13px,env(safe-area-inset-left,0px));
  overflow-y:auto;overscroll-behavior:contain;
}
.panel-card {
  max-height:calc(100dvh - 26px);
  background:linear-gradient(150deg,#47311e,#21150e)!important;
  border:1px solid rgba(242,193,121,.5)!important;
  border-radius:21px!important;
  padding:clamp(17px,4vw,27px);
  box-shadow:0 20px 58px rgba(0,0,0,.57);
  gap:12px;overflow-y:auto;
}
.panel-card h2 {color:#ffdd99}
.panel-card .howto-list {color:#e9d4b4}
.panel-card .btn-pixel {min-height:46px}
.selection-help {max-width:350px;text-align:center;color:#e2c9a9;font:700 12px/1.45 Nunito,sans-serif}
.chapter-tabs {width:100%;flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;min-height:48px;}
.chapter-tab {flex:none;min-height:42px;border-radius:9px;color:#eedec4;font:800 12px Nunito,sans-serif}
.chapter-tab.active {background:#ffd38e;color:#2b1a0b;}
.level-grid {max-height:min(50dvh,410px);overflow-y:auto;gap:7px}
.level-tile {
  min-width:0;min-height:48px;border:1px solid rgba(247,200,132,.38);
  border-radius:10px;background:rgba(126,80,40,.42);
  color:#f9e9ce;font:900 13px Nunito,sans-serif;
}
.level-tile:disabled {opacity:.36;cursor:not-allowed}
.hud-title, .hud-chip, .air-wrap, .icon-btn {
  background:rgba(20,13,11,.92);border-radius:10px;
  border:1px solid rgba(246,193,111,.38);
}
.icon-btn {min-width:44px;min-height:44px;width:44px;height:44px}
.air-wrap{min-height:35px}
.interact-btn{min-width:64px;min-height:64px}
.dpad-btn {min-width:48px;min-height:48px;background:rgba(29,20,14,.93);border:1px solid rgba(251,208,125,.5)}
.dpad-btn:focus-visible,.interact-btn:focus-visible,button:focus-visible,a:focus-visible{outline:3px solid #95f0bc;outline-offset:3px}
@media(max-width:440px){
  #screen-title .title-card{padding:0 15px 16px;}
  #screen-title .menu-art{width:calc(100% + 30px);height:125px;}
  #screen-title .game-title{font-size:clamp(17px,5.1vw,24px)!important}
  #screen-title .subtitle{font-size:12px}
  #screen-title .menu-buttons{gap:6px}
  #screen-title .btn-pixel{min-height:44px;padding:9px 6px;font-size:10px}
  .hud-top,.hud-mid{gap:5px}
  .hud-chip{padding:4px 7px;font-size:11px}
  .dpad{width:135px;height:135px;transform:scale(.9);transform-origin:bottom left}
}
@media(max-height:520px){
  #screen-title .menu-art{height:90px;}
  .panel-card{padding:12px 15px;gap:8px;}
  #screen-title .subtitle{font-size:11px}
  #screen-title .menu-badges{display:none}
}
@media(prefers-reduced-motion:reduce){.title-miner,.screen,.interact-btn{transition:none!important;animation:none!important}}
