:root { color-scheme: dark; font-family: system-ui, -apple-system, 'PingFang SC', sans-serif; color: #fff4e8; background: #0a0d1a; --accent: #FF8A3D; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; }
body { overflow: auto; }
button, a { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
button { font: inherit; cursor: pointer; }
.mining-screen { position: relative; width: 100%; width: max(100%, 134svh); min-width: 560px; height: 100vh; height: 100svh; min-height: 320px; overflow: hidden; isolation: isolate; background: #0a0d1a; }
.mining-art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; z-index: -1; }
.top-controls { position: absolute; top: max(16px, env(safe-area-inset-top)); left: max(18px, env(safe-area-inset-left)); z-index: 3; }
.back { display: flex; align-items: center; gap: 10px; min-height: 48px; border: 1px solid #ffb16c66; border-radius: 15px; background: #0a0d1aeb; padding: 10px 16px; text-decoration: none; color: #fff4e8; font-weight: 600; }
.mp-icon { font-size: 25px; }
.ore-target { position: absolute; left: 26%; top: 24%; width: 48%; height: 43%; border: 0; border-radius: 40%; background: transparent; }
.mining-controls { position: absolute; bottom: max(12px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; width: min(90%, 480px); z-index: 2; }
.mine-button { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 60px; width: 230px; border: 2px solid #ffd29a; border-radius: 18px; color: #241307; background: var(--accent); box-shadow: 0 5px 0 #8b3d18; font-size: 25px; font-weight: 800; }
.mine-button:active { transform: translateY(3px); box-shadow: 0 2px 0 #8b3d18; }
button:focus-visible, a:focus-visible { outline: 3px solid #fff2bf; outline-offset: 4px; }
.mining-hint { margin: 12px 0 0; padding: 5px 12px; border-radius: 8px; color: #fff0dc; background: #0a0d1ae8; font-size: 12px; text-align: center; line-height: 1.5; }
.mine-feedback { height: 28px; margin: 0 0 6px; color: #ffca82; text-shadow: 0 2px 4px #000; font-size: 23px; font-weight: 800; }
.image-status { position: absolute; left: 50%; top: 42%; transform: translateX(-50%); background: #0a0d1a; border-radius: 10px; padding: 10px; pointer-events: none; }
.image-status:empty { display: none; }
@media (max-height: 380px) { .mining-controls { bottom: max(7px, env(safe-area-inset-bottom)); } .mine-button { min-height: 48px; font-size: 21px; } .mining-hint { margin-top: 8px; } }
