:root {
  color-scheme: dark;
  --accent: #6d5dfc;
  --accent-soft: rgba(109,93,252,.24);
  --ink: #f8f6ff;
  --muted: rgba(248,246,255,.52);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
[hidden] { display: none !important; }
html, body { min-height: 100%; margin: 0; overflow-x: hidden; overscroll-behavior: none; background: #110e17; color: var(--ink); }
button { border: 0; color: inherit; font: inherit; cursor: pointer; }
.arcade-shell { width: min(100%, 520px); min-height: 100dvh; margin: 0 auto; padding: max(14px,env(safe-area-inset-top)) 14px max(16px,env(safe-area-inset-bottom)); background: radial-gradient(circle at 50% -10%, #393057, #18141f 46%, #0f0c14); }
.arcade-nav { display: grid; grid-template-columns: 44px 1fr 88px; align-items: center; gap: 8px; text-align: center; }
.arcade-nav > div { display: flex; flex-direction: column; }
.arcade-nav strong { font-size: 16px; }
.arcade-nav small { margin-top: 2px; color: var(--muted); font-size: 9px; letter-spacing: 1.4px; }
.round-button { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); text-decoration: none; font-size: 27px; }
.sound-toggle { font-size: 17px; }
.nav-actions { display: flex !important; flex-direction: row !important; gap: 4px; }
.nav-actions .round-button { width: 40px; height: 40px; font-size: 15px; }
.sound-toggle[aria-pressed="false"] { color: rgba(255,255,255,.35); }
.stat-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin: 13px 0 10px; }
.stat-row > div { min-height: 58px; padding: 10px 11px; border-radius: 16px; background: rgba(255,255,255,.065); border: 1px solid rgba(255,255,255,.075); }
.stat-row span,.stat-row strong { display: block; }
.stat-row span { color: var(--muted); font-size: 9px; }
.stat-row strong { margin-top: 5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 17px; }
.speed-stat { position: relative; }
.speed-stat #speed-up-button { position: absolute; right: 7px; bottom: 7px; width: 28px; height: 28px; border-radius: 10px; color: #fff; background: linear-gradient(135deg,var(--accent),#6d5dfc); font-size: 19px; font-weight: 800; }
.speed-stat:has(#speed-up-button:not([hidden])) strong { padding-right: 30px; }
.game-stage { position: relative; width: min(100%,calc(100dvh - 174px)); max-height: calc(100dvh - 174px); aspect-ratio: 3/4; margin: 0 auto; overflow: hidden; border-radius: 27px; background: linear-gradient(180deg,#181421,#0b0910); border: 1px solid rgba(255,255,255,.1); box-shadow: 0 24px 70px rgba(0,0,0,.42), inset 0 1px rgba(255,255,255,.05); touch-action: none; }
#game-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.stage-message { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; align-content: center; padding: 30px; text-align: center; background: rgba(13,10,18,.58); backdrop-filter: blur(14px); }
.stage-symbol { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 23px; color: #fff; background: linear-gradient(135deg,var(--accent),#fa6eaa); box-shadow: 0 18px 42px var(--accent-soft); font-size: 31px; }
.stage-message h1 { margin: 18px 0 7px; font-size: 27px; }
.stage-message p { max-width: 290px; margin: 0 0 22px; color: var(--muted); font-size: 12px; line-height: 1.55; }
.stage-message button,.quiz-cover button { min-width: 150px; min-height: 50px; padding: 0 20px; border-radius: 16px; color: #17131f; background: #fff; font-weight: 750; box-shadow: 0 14px 35px rgba(0,0,0,.24); }
.stage-message .stage-pk-button { color:#fff; background:linear-gradient(135deg,#f4b73c,#d46a27); }
.stage-actions { display: grid; gap: 8px; }
.stage-actions.has-continue #start-button { color: rgba(255,255,255,.72); background: rgba(255,255,255,.12); box-shadow: none; }
.combo-toast { position: absolute; z-index: 3; top: 45%; left: 50%; padding: 8px 14px; border-radius: 999px; background: rgba(12,9,17,.72); border: 1px solid rgba(255,255,255,.18); opacity: 0; transform: translate(-50%,-30%) scale(.8); pointer-events: none; font-size: 13px; font-weight: 800; white-space: nowrap; }
.combo-toast.show { animation: combo 1500ms ease-out; }
@keyframes combo { 15% { opacity: 1; transform: translate(-50%,-50%) scale(1.08); } 85% { opacity: 1; transform: translate(-50%,-55%) scale(1); } 100% { opacity: 0; transform: translate(-50%,-95%) scale(.95); } }
.game-tip { min-height: 24px; padding-top: 8px; color: rgba(255,255,255,.32); text-align: center; font-size: 9px; }
.quiz-stage { position: relative; min-height: calc(100dvh - 158px); padding: 22px 18px; overflow: hidden; border-radius: 27px; color: #1b1722; background: linear-gradient(160deg,#fff,#f3f0fa); box-shadow: 0 25px 70px rgba(0,0,0,.25); }
.quiz-progress { display: flex; align-items: center; justify-content: space-between; color: #77717f; font-size: 11px; font-weight: 700; }
.quiz-timer { display: grid; place-items: center; align-content: center; width: 53px; height: 53px; border-radius: 17px; color: #fff; background: linear-gradient(135deg,#6d5dfc,#9a76ff); box-shadow: 0 12px 26px rgba(109,93,252,.25); }
.quiz-timer strong { font-size: 21px; line-height: 1; }.quiz-timer small { margin-top: 2px; font-size: 8px; opacity: .7; }
.quiz-timer.urgent { background: linear-gradient(135deg,#ff4e78,#ff9b55); animation: urgent 420ms ease-in-out infinite alternate; }
@keyframes urgent { to { transform: scale(1.06); } }
.quiz-meter { height: 5px; margin: 12px 0 24px; overflow: hidden; border-radius: 99px; background: #e5e1ec; }.quiz-meter i { display: block; width: 100%; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#6d5dfc,#fa6eaa); transform-origin: left; }
.quiz-category { display: inline-block; padding: 5px 9px; border-radius: 99px; color: #604ee2; background: #e9e5ff; font-size: 9px; font-weight: 800; }
.quiz-stage h1 { min-height: 76px; margin: 13px 0 19px; font-size: 21px; line-height: 1.42; }
.quiz-options { display: grid; gap: 9px; }.quiz-option { min-height: 53px; padding: 10px 14px; border-radius: 15px; color: #211c29; background: #eae7ef; border: 1px solid transparent; text-align: left; font-size: 13px; font-weight: 650; }.quiz-option.correct { color:#116b4a;background:#dff7eb;border-color:#7bd0a9}.quiz-option.wrong {color:#a32e50;background:#ffe9ef;border-color:#efa0b6}.quiz-option:disabled{opacity:.76}
.quiz-feedback { min-height: 42px; margin: 12px 2px 0; color: #77717f; font-size: 11px; line-height: 1.5; }
.quiz-cover { position:absolute;z-index:3;inset:0;display:grid;place-items:center;align-content:center;padding:32px;text-align:center;background:linear-gradient(155deg,#27203c,#121019);color:#fff}.quiz-cover span{color:#b5a9ff;font-size:10px;font-weight:800;letter-spacing:2px}.quiz-cover h2{margin:10px 0 8px;font-size:32px}.quiz-cover p{max-width:300px;margin:0 0 25px;color:rgba(255,255,255,.56);font-size:13px;line-height:1.6}
.quiz-mode-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;width:min(100%,330px)}.quiz-cover .quiz-mode-actions button{min-width:0;padding:0 14px}.quiz-cover .quiz-endless-button{color:#fff;background:linear-gradient(135deg,#ff6e9e,#8d65ff);box-shadow:0 14px 35px rgba(141,101,255,.28)}
.quiz-cover .quiz-pk-button{grid-column:1/-1;color:#211d3b;background:linear-gradient(135deg,#7ee6d5,#b9f08a);box-shadow:0 14px 35px rgba(95,224,202,.2)}
.reaction-stage { min-height: calc(100dvh - 180px); }.reaction-pad { width:100%;min-height:calc(100dvh - 180px);display:grid;place-items:center;align-content:center;padding:30px;border-radius:28px;background:linear-gradient(145deg,#292235,#15121c);border:1px solid rgba(255,255,255,.09);box-shadow:0 26px 70px rgba(0,0,0,.35);text-align:center;touch-action:manipulation;transition:background 140ms ease,transform 90ms ease}.reaction-pad:active{transform:scale(.992)}.reaction-pad.waiting{background:linear-gradient(145deg,#9b3f55,#4b2035)}.reaction-pad.go{background:radial-gradient(circle,#53e1a1,#138d64)}.reaction-pad.done{background:linear-gradient(145deg,#5d4fe1,#2c245e)}.reaction-pad span{font-size:10px;font-weight:800;letter-spacing:2px;opacity:.65}.reaction-pad strong{margin-top:10px;font-size:clamp(30px,10vw,48px)}.reaction-pad small{max-width:280px;margin-top:10px;color:rgba(255,255,255,.58);font-size:12px;line-height:1.5}
.toast { position:fixed;z-index:20;left:50%;bottom:calc(20px + env(safe-area-inset-bottom));max-width:calc(100% - 40px);padding:11px 16px;border-radius:14px;background:rgba(24,20,31,.92);box-shadow:0 14px 36px rgba(0,0,0,.28);opacity:0;transform:translate(-50%,18px);pointer-events:none;transition:220ms;font-size:12px;white-space:nowrap}.toast.show{opacity:1;transform:translate(-50%,0)}
.modal-backdrop{position:fixed;z-index:30;inset:0;display:grid;align-items:end;padding:16px 14px max(16px,env(safe-area-inset-bottom));background:rgba(10,8,14,.6);backdrop-filter:blur(14px)}.modal-card{width:min(100%,480px);max-height:min(82dvh,700px);margin:0 auto;padding:25px 22px 20px;overflow:auto;border-radius:28px;color:#1b1722;background:rgba(255,255,255,.97);box-shadow:0 28px 80px rgba(0,0,0,.4)}.modal-kicker{color:#6d5dfc;font-size:9px;font-weight:800;letter-spacing:1.7px}.modal-card h2{margin:8px 0;font-size:25px}.modal-card>p{margin:0 0 18px;color:#77717f;font-size:12px;line-height:1.55}.modal-card input{width:100%;height:52px;padding:0 14px;border:1px solid #e1dde8;border-radius:15px;background:#f3f1f6;font-size:16px}.form-message{display:block;min-height:27px;padding:6px 2px;color:#bd365d;font-size:10px}.modal-primary,.modal-secondary{width:100%;min-height:50px;border-radius:15px;font-weight:750}.modal-primary{color:#fff;background:linear-gradient(135deg,#6d5dfc,#5141df)}.modal-secondary{color:#5e5868;background:#efedf3}.resume-actions{display:grid;gap:8px}.modal-heading{display:flex;align-items:flex-start;justify-content:space-between}.modal-heading h2{margin-bottom:15px}.modal-heading button{width:36px;height:36px;border-radius:50%;color:#645e6d;background:#efedf3;font-size:22px}.leaderboard-me{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;padding:13px 14px;border-radius:15px;color:#fff;background:linear-gradient(135deg,#6d5dfc,#8c70f2)}.leaderboard-me span{font-size:10px;opacity:.7}.leaderboard-me strong{font-size:15px}.leaderboard-list{display:grid;gap:7px}.leaderboard-row{display:grid;grid-template-columns:34px 1fr auto;align-items:center;gap:9px;padding:11px;border-radius:14px;background:#f1eff5}.leaderboard-rank{display:grid;place-items:center;width:31px;height:31px;border-radius:10px;color:#746d7d;background:#e4e1e9;font-size:11px;font-weight:800}.leaderboard-row:nth-child(1) .leaderboard-rank{color:#fff;background:linear-gradient(135deg,#ffc45d,#ed8845)}.leaderboard-name strong,.leaderboard-name small{display:block}.leaderboard-name strong{font-size:13px}.leaderboard-name small{margin-top:2px;color:#8a8490;font-size:8px}.leaderboard-score{text-align:right;font-size:15px}.leaderboard-empty{padding:35px 10px;color:#8a8490;text-align:center;font-size:12px}
@media(min-width:560px){.modal-backdrop{align-items:center}}
@media (max-height:700px){.stat-row{margin:8px 0}.stat-row>div{min-height:50px;padding:7px 9px}.game-stage{max-height:calc(100dvh - 150px);width:min(100%,calc(100dvh - 150px))}.game-tip{display:none}}
@media (min-width:560px){body{padding:20px}.arcade-shell{min-height:calc(100dvh - 40px);border-radius:34px}.game-stage{max-height:calc(100dvh - 214px)}}

/* Gold Miner keeps the familiar sky-and-earth palette, expressed with the same restrained surfaces and spacing as the rest of the site. */
.stage-message .stage-menu-button{min-height:44px;color:rgba(255,255,255,.78);background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.12);box-shadow:none}
.gold-miner-ranking-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;margin:0 0 12px;padding:4px;border-radius:14px;background:#f0edf3}
.gold-miner-ranking-tabs button{min-height:38px;padding:4px;border-radius:11px;color:#766f7d;background:transparent;font-size:11px;font-weight:750}
.gold-miner-ranking-tabs button.is-active{color:#fff;background:linear-gradient(135deg,#e4a52a,#be7024);box-shadow:0 6px 15px rgba(177,99,24,.22)}
.arcade-shell.is-gold-miner{--ink:#fff;--muted:rgba(255,255,255,.52);background:radial-gradient(circle at 50% -12%,#54442c,#211b18 48%,#100e0d)}
.is-gold-miner .arcade-nav .round-button{background:rgba(255,255,255,.075);border-color:rgba(255,255,255,.08)}
.is-gold-miner .game-stage{border:1px solid rgba(255,255,255,.12);border-radius:27px;background:#2f1d15;box-shadow:0 24px 70px rgba(0,0,0,.45),inset 0 1px rgba(255,255,255,.06)}
.is-gold-miner .game-tip{color:rgba(255,255,255,.3)}
.gold-miner-hud{position:absolute;z-index:2;top:10px;left:10px;right:10px;display:grid;grid-template-columns:1fr 82px 1fr;align-items:center;min-height:72px;padding:10px 12px;color:#fff;background:rgba(31,22,17,.77);border:1px solid rgba(255,255,255,.14);border-radius:20px;box-shadow:0 12px 30px rgba(0,0,0,.22);backdrop-filter:blur(14px);pointer-events:none}
.gold-miner-hud>div:first-child,.gold-miner-hud>div:last-child{display:flex;flex-direction:column}.gold-miner-hud>div:last-child{text-align:right;align-items:flex-end}
.gold-miner-hud span{color:rgba(255,255,255,.5);font-size:8px;font-weight:800;letter-spacing:1.4px}.gold-miner-hud strong{margin-top:3px;color:#ffd769;font-size:21px;line-height:1}.gold-miner-hud small{margin-top:5px;color:rgba(255,255,255,.5);font-size:8px;font-weight:700}.gold-miner-hud small b{color:#fff;font-size:10px}
.gold-miner-hud .miner-hud-title{align-items:center;text-align:center}.gold-miner-hud .miner-hud-title>span{padding:4px 7px;border-radius:999px;color:#24190f;background:#ffd769}.gold-miner-hud .miner-hud-title>strong{max-width:84px;margin-top:6px;color:#fff;font-size:12px;line-height:1;letter-spacing:.4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gold-miner-menu{position:absolute;z-index:5;inset:0;display:flex;flex-direction:column;align-items:center;padding:24px 20px 20px;overflow:auto;color:#fff;background:radial-gradient(circle at 72% 8%,rgba(255,255,255,.38),transparent 20%),linear-gradient(180deg,#79cbdc 0,#b5e0df 34%,#8e5532 34.3%,#3f241b 100%)}
.gold-miner-menu:after{content:"";position:absolute;z-index:-1;inset:34% 0 0;background:linear-gradient(170deg,rgba(255,196,93,.12),transparent 28%),radial-gradient(circle at 18% 35%,rgba(249,191,56,.18) 0 8px,transparent 9px),radial-gradient(circle at 82% 61%,rgba(255,218,102,.12) 0 12px,transparent 13px)}
.miner-menu-hero{display:flex;flex-direction:column;align-items:center;width:min(100%,340px);padding:18px 20px 16px;border:1px solid rgba(255,255,255,.2);border-radius:24px;background:rgba(31,24,20,.72);box-shadow:0 18px 42px rgba(44,19,9,.24);backdrop-filter:blur(16px);text-align:center}
.miner-menu-emblem{display:grid;place-items:center;width:56px;height:56px;margin-bottom:10px;border-radius:18px;color:#503414;background:linear-gradient(145deg,#ffe58b,#e7ad37);box-shadow:0 10px 24px rgba(99,56,15,.3);font-size:26px}.miner-menu-hero>span{color:#ffd973;font-size:8px;font-weight:850;letter-spacing:2px}.miner-menu-hero h1{margin:5px 0 6px;font-size:29px;letter-spacing:-1px}.miner-menu-hero p{max-width:275px;margin:0;color:rgba(255,255,255,.62);font-size:11px;line-height:1.5}
.miner-mode-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;width:min(100%,340px);margin-top:14px}.miner-mode-actions button{display:grid;grid-template-columns:34px 1fr;grid-template-rows:auto auto;min-height:76px;padding:12px;border:1px solid rgba(255,255,255,.13);border-radius:18px;color:#fff;background:rgba(35,25,21,.76);box-shadow:0 12px 28px rgba(23,10,5,.2);backdrop-filter:blur(13px);text-align:left;transition:transform 120ms ease,background 120ms ease}.miner-mode-actions button>span{grid-row:1/3;align-self:center;color:#ffd468;font-size:16px;font-weight:850}.miner-mode-actions button>strong{align-self:end;font-size:14px}.miner-mode-actions button>small{align-self:start;margin-top:3px;color:rgba(255,255,255,.47);font-size:8px;font-weight:650}.miner-mode-actions button:active{transform:scale(.97);background:rgba(55,38,28,.88)}.miner-mode-actions button:disabled{opacity:.45;filter:saturate(.35)}.miner-mode-actions button:last-child{background:rgba(255,255,255,.12)}
.is-gold-miner .stage-message{background:rgba(21,15,12,.64);backdrop-filter:blur(16px)}.is-gold-miner .stage-symbol{color:#513511;background:linear-gradient(145deg,#ffe58a,#e5aa31);box-shadow:0 16px 36px rgba(209,139,34,.28)}.is-gold-miner .stage-message #start-button{color:#34220e;background:linear-gradient(135deg,#ffe285,#e8ad3c)}
@media(max-height:700px){.gold-miner-menu{padding-top:15px}.miner-menu-hero{padding:13px 17px}.miner-menu-emblem{width:45px;height:45px;margin-bottom:7px;border-radius:15px}.miner-menu-hero h1{font-size:25px}.miner-mode-actions{margin-top:10px}.miner-mode-actions button{min-height:66px;padding:9px}}

/* Gold Miner upgrade overlays keep controls in the thumb zone while Canvas remains responsible for the mine itself. */
.miner-menu-assets{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;margin-top:10px;padding:8px 10px;border:1px solid rgba(255,214,90,.28);border-radius:7px;color:#ffe47b;background:rgba(34,9,0,.46);font-size:10px}.miner-menu-assets span{white-space:nowrap}.miner-menu-assets strong{color:#fff56d;font-size:14px}.miner-menu-assets small{overflow:hidden;color:#f3c776;text-align:right;text-overflow:ellipsis;white-space:nowrap}
.miner-tool-strip{position:absolute;z-index:3;top:92px;left:9px;right:9px;display:flex;align-items:center;justify-content:space-between;gap:7px;pointer-events:none}.miner-tool-strip>span{max-width:64%;overflow:hidden;padding:5px 8px;border:2px solid rgba(174,84,8,.88);border-radius:6px;color:#ffefa6;background:rgba(73,25,2,.83);box-shadow:0 2px #351000;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.miner-dynamite-button{display:flex;align-items:center;gap:4px;min-height:34px;padding:4px 9px;border:2px solid #a84b08;border-radius:6px;color:#4b1700;background:linear-gradient(#ffdc58,#e98a13);box-shadow:inset 0 1px #fff2a1,0 3px #431300;pointer-events:auto;font-size:10px;font-weight:800}.miner-dynamite-button img{width:9px;height:17px;image-rendering:pixelated}.miner-dynamite-button:disabled{opacity:.42;filter:grayscale(.7)}
.miner-skip-button{position:absolute;z-index:3;right:12px;bottom:12px;min-height:42px;padding:0 15px;border:3px solid #9d4405;border-radius:7px;color:#4b1700;background:linear-gradient(#fff06c,#e99b17);box-shadow:inset 0 2px #fff7b2,0 4px #491500;font-size:12px;font-weight:900;animation:miner-skip-pulse .72s ease-in-out infinite alternate}.gold-miner-hud.is-goal-ready{filter:drop-shadow(0 0 8px rgba(255,237,91,.7))}@keyframes miner-skip-pulse{to{transform:scale(1.045);filter:brightness(1.12)}}
.gold-miner-shop,.gold-miner-goal{position:absolute;z-index:6;inset:0;color:#fff1b4;background:#4b1802 url('/assets/goldminer/bg_shop.png?v=hd1') center/cover no-repeat}.gold-miner-shop{display:grid;grid-template-rows:auto auto minmax(82px,1fr) auto auto auto;gap:7px;padding:12px;overflow:hidden}.gold-miner-shop>header{display:flex;align-items:center;justify-content:space-between;padding:7px 9px;border:3px solid #aa4e09;border-radius:6px;background:rgba(91,30,2,.9);box-shadow:inset 0 1px #f5a52a,0 3px #2b0b00}.gold-miner-shop>header>span{color:#ffd64c;font-size:10px;letter-spacing:1px}.gold-miner-shop>header>strong{font-size:11px}.gold-miner-shop>header b{color:#fff36b;font-size:15px}
.miner-shop-dialogue{display:grid;grid-template-columns:54px 1fr;align-items:center;gap:7px;min-height:48px}.miner-shopkeeper{width:50px;height:50px;background:url('/assets/goldminer/shopkeeper_sheet.png?v=hd1') left center/200% 100% no-repeat;filter:drop-shadow(0 3px 1px rgba(42,10,0,.55))}.miner-shopkeeper.is-sad{background-position:right center}.miner-shop-dialogue p{position:relative;min-height:42px;margin:0;padding:8px 10px;border:2px solid #a95513;border-radius:8px;color:#552000;background:rgba(255,239,176,.95);font-family:-apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;font-size:10px;line-height:1.35}.miner-shop-dialogue p:before{content:'';position:absolute;left:-8px;top:14px;width:12px;height:12px;background:inherit;border-left:2px solid #a95513;border-bottom:2px solid #a95513;transform:rotate(45deg)}
.miner-shop-items{display:flex;align-items:center;gap:7px;min-height:82px;padding:5px 2px 9px;overflow-x:auto;scrollbar-width:none;scroll-snap-type:x mandatory}.miner-shop-items::-webkit-scrollbar{display:none}.miner-shop-item{position:relative;flex:0 0 76px;display:grid;place-items:center;align-content:center;gap:3px;min-height:76px;padding:5px;border:3px solid #773000;border-radius:7px;color:#ffeaa1;background:linear-gradient(#9f4b0b,#5c2102);box-shadow:inset 0 2px #df9227,0 3px #2b0b00;scroll-snap-align:center}.miner-shop-item img{width:35px;height:35px;object-fit:contain}.miner-shop-item strong{max-width:68px;overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}.miner-shop-item small{color:#fff36b;font-size:10px}.miner-shop-item.is-selected{border-color:#ffe65d;transform:translateY(-3px);box-shadow:inset 0 2px #fff5a3,0 5px #2b0b00}.miner-shop-item.is-selected:before{content:'▼';position:absolute;top:-14px;color:#fff253;font-size:11px;text-shadow:1px 1px #5c1a00}
.miner-shop-description{min-height:31px;margin:0;padding:6px 8px;border-radius:6px;color:#fff0b1;background:rgba(55,14,0,.75);font-family:-apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;font-size:9px;line-height:1.35;text-align:center}.miner-shop-table{width:100%;height:34px;object-fit:fill;opacity:.9}.miner-shop-inventory{display:block;overflow:hidden;color:#ffe28a;font-size:9px;text-align:center;text-overflow:ellipsis;white-space:nowrap}.miner-shop-actions{display:grid;grid-template-columns:42px 1fr 42px;gap:6px}.miner-shop-actions button{min-height:35px;border:2px solid #8e3c04;border-radius:6px;color:#4b1700;background:linear-gradient(#ffdf62,#df8110);box-shadow:inset 0 1px #fff3a7,0 3px #421200;font-size:12px;font-weight:900}.miner-shop-actions button:disabled{opacity:.45}.miner-shop-actions #miner-shop-leave{grid-column:1/-1;min-height:31px;color:#ffeaa8;background:linear-gradient(#8d3c05,#5b2000)}
.gold-miner-goal{display:grid;place-items:center;align-content:center;padding:26px;text-align:center;background:#491700 url('/assets/goldminer/bg_goal.png?v=hd1') center/cover no-repeat}.gold-miner-goal:before{content:'';position:absolute;inset:0;background:rgba(45,11,0,.46)}.gold-miner-goal>*{position:relative}.gold-miner-goal>img{width:min(72%,240px);margin-bottom:18px}.gold-miner-goal>span{color:#ffd54b;font-size:10px;letter-spacing:1.5px}.gold-miner-goal h2{margin:9px 0 7px;color:#fff36a;font-size:28px;text-shadow:3px 3px #641f00}.gold-miner-goal p{max-width:310px;margin:0 0 18px;color:#fff0b3;font-family:-apple-system,BlinkMacSystemFont,'PingFang SC',sans-serif;font-size:11px;line-height:1.55}.gold-miner-goal button{min-width:150px;min-height:44px;border:3px solid #9d4405;border-radius:7px;color:#4b1700;background:linear-gradient(#ffe15c,#e58a13);box-shadow:inset 0 2px #fff1a2,0 4px #491500;font-weight:900}.gold-miner-goal.is-made-goal h2{animation:miner-goal-pop .55s cubic-bezier(.17,.89,.32,1.35)}@keyframes miner-goal-pop{from{opacity:0;transform:scale(.55)}to{opacity:1;transform:scale(1)}}
@media(max-width:430px){.miner-tool-strip{top:82px}.gold-miner-shop{gap:5px;padding:8px}.miner-shop-dialogue{grid-template-columns:44px 1fr}.miner-shopkeeper{width:42px;height:42px}.miner-shop-item{flex-basis:68px;min-height:70px}.miner-shop-item img{width:29px;height:29px}.miner-shop-table{height:28px}}
@media(max-height:620px){.gold-miner-shop{grid-template-rows:auto auto 76px auto auto auto}.miner-shop-dialogue{min-height:40px}.miner-shop-dialogue p{min-height:36px;padding:5px 8px}.miner-shopkeeper{width:38px;height:38px}.miner-shop-item{min-height:65px}.miner-shop-item img{width:27px;height:27px}.miner-shop-description{min-height:25px;padding:4px}.miner-shop-table{display:none}.miner-shop-actions button{min-height:30px}}

/* ICP 备案号角标：仅展示不可点击，避免干扰游戏触控 */
.icp-badge{position:fixed;z-index:99;bottom:calc(2px + env(safe-area-inset-bottom));left:0;right:0;text-align:center;font-size:8px;line-height:1.2;color:rgba(148,148,158,.5);pointer-events:none}
