@font-face{font-family:Rye;src:url('./public/fonts/rye-regular.ttf') format('truetype');font-display:swap}
:root{color-scheme:dark;--gold:#ffce65;--cream:#fff1cf;--red:#8d241e;--blue:#206b7b;--brown:#32180f;--ease:cubic-bezier(.16,1,.3,1)}
*{box-sizing:border-box}body{margin:0;background:#1e100b;color:var(--cream);font-family:Arial,Helvetica,sans-serif}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;cursor:pointer}a{color:inherit;text-decoration:none}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button:focus-visible,a:focus-visible{outline:3px solid #89e3ef;outline-offset:5px}::selection{background:var(--gold);color:var(--brown)}[hidden]{display:none!important}
.game{position:relative;isolation:isolate;width:100%;max-width:500px;height:100svh;min-height:560px;max-height:1080px;overflow:hidden;margin:auto;background:#573018}.world,.shade{position:absolute;inset:0;width:100%;height:100%;z-index:-2}.world{object-fit:cover;object-position:50% 40%}.shade{z-index:-1;background:linear-gradient(180deg,rgba(41,19,8,.6),transparent 30%,transparent 42%,rgba(44,19,10,.35) 58%,#2a130cef 87%,#241109)}header{display:flex;justify-content:space-between;align-items:center;padding:calc(16px + env(safe-area-inset-top)) 20px 0;gap:12px}.brand{font-size:29px;line-height:.9;font-weight:900;letter-spacing:-.03em;color:#fff2d1;text-shadow:0 2px 6px #36160d}.brand span{display:block;font-size:8px;font-weight:700;letter-spacing:.23em;margin-top:8px}.header-actions{display:flex;gap:9px;align-items:center}.sound{border:1px solid #f8d48c70;background:#3b1b13b3;border-radius:50%;width:38px;height:38px;display:grid;place-items:center}.sound svg{width:20px}.entry{height:42px;background:linear-gradient(#b43d2b,#7e1c17);border:1px solid #f1b957;border-radius:8px;box-shadow:0 3px 9px #2910097a;display:flex;gap:7px;align-items:center;padding:0 12px;font-size:12px;font-weight:800;white-space:nowrap}.entry svg{width:17px}.entry:hover{background:#b33b29}.title{text-align:center;margin:26px 12px 0}.title h1{font-family:Rye,Georgia,serif;font-weight:400;margin:0;color:#ffe6a3;font-size:29px;line-height:1.05;letter-spacing:.015em;text-shadow:0 2px 0 #6d2b12,0 4px 8px #2c160c}.title h1 span{display:block;font-size:44px;margin-top:4px}.title p{font-size:12px;line-height:1.4;margin:12px 0 0;text-shadow:0 2px 4px #25140a}
.interaction{position:absolute;inset:49% 0 36px;display:flex;flex-direction:column;align-items:center}.stage-copy{text-align:center;position:relative;z-index:2;width:100%;padding:0 16px}.stage-copy h2{font-family:Rye,Georgia,serif;font-size:23px;font-weight:400;line-height:1.15;margin:0;color:#fff0b9;text-shadow:0 2px 5px #27130b}.stage-copy p{font-size:12px;line-height:1.5;margin:7px 0 0;color:#fff1cf}.object-area{position:relative;width:100%;flex:1;min-height:115px;display:flex;align-items:center;justify-content:center}.object{position:relative;z-index:2;border:0;background:none;padding:0;height:100%;width:76%;max-height:290px;touch-action:manipulation;transition:filter .2s}.object img{width:100%;height:100%;object-fit:contain;display:block;filter:drop-shadow(0 10px 9px #170b0899);user-select:none}.object:hover{filter:brightness(1.1)}.object:active{transform:scale(.96)}.object:disabled{cursor:wait}.ground-shadow{position:absolute;bottom:11%;width:57%;height:14%;background:#11080580;border-radius:50%;filter:blur(9px)}.tap-hint{position:absolute;z-index:3;right:21%;bottom:16%;pointer-events:none;animation:tap 1.7s var(--ease) infinite}.tap-hint svg{width:36px;height:41px;fill:#fff0d0;stroke:#5b2c17;stroke-width:1.8;filter:drop-shadow(0 3px 3px #24110899)}.treasure-rays{position:absolute;width:85%;height:100%;border-radius:50%;background:radial-gradient(ellipse,#ffe39850,transparent 65%);opacity:0;transition:opacity .5s}.game[data-stage="open"] .treasure-rays,.game[data-stage="complete"] .treasure-rays{opacity:1}.cracks{position:absolute;inset:10% 15%;width:70%;height:75%;stroke:#5a260b;stroke-width:4;opacity:0;filter:drop-shadow(1px 1px 0 #fff1a7);pointer-events:none}.game[data-hits="1"] .cracks{opacity:.55}.game[data-hits="2"] .cracks{opacity:1;stroke-width:6}.object.strike{animation:strike .27s ease-out}.hit-label{position:absolute;top:17%;z-index:4;pointer-events:none;color:#ffe09b;font-family:Rye,Georgia,serif;font-size:22px;text-shadow:0 2px 4px #401a08}.hit-label.pop{animation:hit-pop .7s var(--ease) both}.controls{padding:0 26px;width:100%;text-align:center;z-index:4}.steps{display:flex;justify-content:center;padding:0;list-style:none;gap:45px;margin:0 0 9px}.steps li{position:relative;display:flex;flex-direction:column;align-items:center;gap:5px;color:#d7b487;opacity:.68;font-size:9px;font-weight:700;letter-spacing:.1em}.steps li:not(:last-child):after{content:"";position:absolute;top:14px;left:calc(100% + 10px);width:28px;border-top:1px solid #d8af6680}.steps svg{width:27px;height:27px;stroke-width:1.6}.steps li[aria-current],.steps li.done{color:#ffda7e;opacity:1}.steps li[aria-current] svg{filter:drop-shadow(0 2px 3px #f5ac3750)}.status{min-height:17px;margin:0 0 10px;font-size:11px;color:#f5d9a9;line-height:1.5}.gold-button{position:relative;display:flex;align-items:center;justify-content:center;gap:14px;width:100%;min-height:60px;padding:14px 12px;border:2px solid #ffe095;border-radius:10px;background:linear-gradient(180deg,#ffe29a,#efb647 50%,#da9130);box-shadow:0 5px 0 #7d3a14,0 9px 20px #140a0870;color:#45200c;text-shadow:0 1px 0 #ffe7a0;font-size:16px;font-weight:900;letter-spacing:.01em;transition:transform .2s,filter .2s}.gold-button:hover{filter:brightness(1.08)}.gold-button:active{transform:translateY(3px);box-shadow:0 2px 0 #7d3a14,0 5px 12px #140a0870}.gold-button:disabled{filter:saturate(.55);cursor:wait}.gold-button svg{width:21px}.game footer{position:absolute;bottom:calc(9px + env(safe-area-inset-bottom));left:0;right:0;text-align:center;color:#d9b994;font-size:9px}.game footer span{border:1px solid #a47a55;border-radius:50%;padding:3px;font-size:8px;margin-right:5px}.particles{position:absolute;inset:0;z-index:5;pointer-events:none;overflow:visible}.particles i{position:absolute;left:50%;top:50%;width:9px;height:13px;border:1px solid #ffe9a2;border-radius:50%;background:#efb43f;animation:coin-fly .75s var(--ease) both;box-shadow:0 2px 3px #65300d60}
dialog{width:calc(100% - 36px);max-width:390px;max-height:calc(100svh - 32px);overflow:auto;overscroll-behavior:contain;padding:18px 24px 20px;border:2px solid #f6c363;border-radius:16px;background:radial-gradient(ellipse at 50% 25%,#28606a,#164550 60%,#12313c);color:#fff1cd;text-align:center;box-shadow:0 20px 60px #12090599}dialog::backdrop{background:#160d08c9}.dialog-top{display:flex;justify-content:space-between;align-items:center}.dialog-top>span{font-size:24px;font-weight:900;letter-spacing:-.03em}.dialog-top button{display:grid;place-items:center;background:#0f3440;border:1px solid #9cc4c980;border-radius:50%;width:33px;height:33px}.dialog-top svg{width:18px}dialog>img{display:block;width:100%;height:210px;object-fit:contain;margin:0 auto -8px;filter:drop-shadow(0 8px 14px #081c25aa)}dialog h2{font:400 28px/1.2 Rye,Georgia,serif;color:#ffda80;margin:6px 0 12px}dialog p{font-size:14px;line-height:1.5;margin:0 0 23px}dialog .gold-button{font-size:16px;min-height:57px}dialog small{display:block;font-size:9px;color:#c2dadd;margin-top:17px}.replay{border:0;background:transparent;color:#e3f2f1;font-size:12px;text-decoration:underline;text-underline-offset:4px;margin-top:21px;padding:4px}.noscript{position:fixed;bottom:0;background:#2a130c;padding:15px;width:100%;text-align:center}.noscript a{text-decoration:underline}dialog::-webkit-scrollbar{width:6px}dialog::-webkit-scrollbar-thumb{background:#b9a06b;border-radius:6px}
@keyframes strike{25%{transform:rotate(-5deg) scale(.96)}65%{transform:rotate(4deg)}100%{transform:rotate(0)}}@keyframes tap{0%,100%{transform:translate(6px,6px) rotate(-13deg)}50%{transform:translate(0,0) rotate(-13deg) scale(.9)}}@keyframes hit-pop{0%{opacity:1;transform:translateY(8px) scale(.85)}25%{opacity:1;transform:translateY(-8px) scale(1.1)}100%{opacity:0;transform:translateY(-40px)}}@keyframes coin-fly{to{transform:translate(var(--x),var(--y)) rotate(var(--r));opacity:0}}
@media(min-width:600px) and (min-height:561px){body{display:grid;place-items:center;min-height:100svh;background:radial-gradient(ellipse at top,#5c2c19,#1e100b 65%)}.game{box-shadow:0 12px 70px #100705aa}}
@media(max-height:740px){header{padding-top:calc(12px + env(safe-area-inset-top))}.title{margin-top:18px}.title h1{font-size:25px}.title h1 span{font-size:37px}.title p{margin-top:8px;font-size:11px}.interaction{top:45%;bottom:34px}.stage-copy h2{font-size:21px}.stage-copy p{font-size:11px;margin-top:5px}.steps{margin-bottom:7px}.steps svg{width:23px;height:23px}.steps li{font-size:8px;gap:3px}.gold-button{min-height:54px;font-size:14px}.controls{padding:0 23px}.status{margin-bottom:8px;font-size:10px}.object{width:70%}}
@media(max-width:350px){header{padding-left:15px;padding-right:15px}.brand{font-size:25px}.header-actions{gap:6px}.entry{font-size:11px;padding:0 9px}.sound{width:34px;height:34px}.title h1 span{font-size:34px}.stage-copy h2{font-size:19px}.stage-copy p{font-size:10px}.gold-button{font-size:13px}.steps{gap:37px}.steps li:not(:last-child):after{width:20px}}
@media(min-width:600px) and (max-height:560px){.game{max-width:960px;min-height:350px;height:100svh}.world{object-position:50% 12%}.shade{background:linear-gradient(90deg,#25140b20,#25140b45 35%,#25140bf5 70%)}header{padding:12px 22px}.title{position:absolute;top:76px;left:0;width:48%;margin:0}.title h1{font-size:22px}.title h1 span{font-size:32px}.title p{font-size:10px}.interaction{inset:76px 18px 30px 48%}.stage-copy h2{font-size:20px}.stage-copy p{font-size:11px}.object{max-height:155px;width:70%}.object-area{min-height:75px}.controls{padding:0 18px}.steps{gap:40px;margin-bottom:5px}.steps svg{width:20px;height:20px}.steps li{font-size:7px}.status{font-size:10px;margin-bottom:6px}.gold-button{min-height:43px;font-size:13px;padding:9px}dialog{max-width:540px;padding:18px 24px;display:none}dialog[open]{display:grid;grid-template-columns:42% 58%;align-items:center}.dialog-top{grid-column:1/-1}dialog>img{grid-column:1;grid-row:2/6;height:160px;width:100%}dialog h2{font-size:22px}dialog p{font-size:12px;margin-bottom:12px}dialog .replay{margin-top:10px}dialog small{grid-column:1/-1;margin-top:12px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}

/* Readable progress and legal copy across viewport sizes. */
.brand span{font-size:10px;letter-spacing:.16em}.steps li{font-size:11px;letter-spacing:.04em}.steps{gap:40px}.status{font-size:12px}.game footer,.game footer span,dialog small{font-size:10px}.game footer span{padding:2px}.interaction{bottom:40px}
@media(max-height:740px){.interaction{bottom:38px}.steps li{font-size:11px}.status{font-size:11px}.brand span{font-size:9px}.steps{margin-bottom:5px}.steps svg{width:21px;height:21px}}
@media(min-width:600px) and (max-height:560px){.interaction{bottom:33px}.steps li{font-size:11px}.status{font-size:11px}.steps svg{width:19px;height:19px}.steps{margin-bottom:4px}.brand span{font-size:9px}}

/* Three taps, three permanent break states. */
header .header-actions{width:100%;justify-content:space-between}
.title h1{font-size:45px}.title{margin-top:27px}
.dialog-top{justify-content:flex-end}
.hammer{position:absolute;z-index:6;right:5%;top:0;width:42%;height:67%;object-fit:contain;pointer-events:none;transform-origin:77% 84%;transform:rotate(18deg);filter:drop-shadow(0 6px 5px #1e100b88)}
.hammer.swing{animation:hammer-swing .68s ease-in-out both}
.game[data-stage="complete"] .hammer{opacity:0;transition:opacity .25s}
.game[data-stage="complete"] .object img{animation:gold-reveal .65s var(--ease) both}
.impact-flash{position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse,#fff3ad99,transparent 62%);opacity:0;z-index:3}
.impact .impact-flash{animation:impact-flash .5s ease-out both}
.particles i{width:var(--size);height:calc(var(--size)*1.1);animation:coin-fly 1s var(--ease) both}
.particles .rock-chip{background:#91502d;border-color:#cf8d50;border-radius:3px}
.particles .gold-chip{background:#ffcf57;border-color:#fff0a0;box-shadow:0 3px 4px #5c2d0b88}
@keyframes hammer-swing{0%{transform:rotate(18deg)}30%{transform:rotate(66deg)}47%{transform:rotate(-31deg)}62%{transform:rotate(-19deg)}100%{transform:rotate(18deg)}}
@keyframes gold-reveal{0%{transform:scale(.7);filter:brightness(1.8) drop-shadow(0 10px 9px #170b0899)}100%{transform:scale(1);filter:brightness(1) drop-shadow(0 10px 9px #170b0899)}}
@keyframes impact-flash{0%{opacity:1}100%{opacity:0}}
@media(max-height:740px){.title{margin-top:20px}.title h1{font-size:38px}}
@media(max-width:350px){.title h1{font-size:36px}}
@media(min-width:600px) and (max-height:560px){.title{margin-top:0;top:100px}.title h1{font-size:34px}.hammer{width:43%;right:2%}}
@media(prefers-reduced-motion:reduce){.hammer{transform:rotate(-20deg)}.game[data-stage="complete"] .hammer{opacity:0}}


/* Compact left wordmark, adjacent music control, animated entry. */
header{position:relative;z-index:8;gap:12px}
.header-left{display:flex;align-items:center;gap:12px;min-width:0}
.game-title{margin:0;color:#ffe6a3;font:400 24px/.94 Rye,Georgia,serif;letter-spacing:.015em;text-shadow:0 2px 0 #6d2b12,0 4px 8px #2c160c}
.game-title span{display:block;margin-top:4px}
.header-left .sound{flex-shrink:0}
.entry{position:relative;isolation:isolate;overflow:hidden;min-height:46px;border-color:#ffda80;animation:entry-pulse 2.8s ease-in-out infinite;transform-origin:center;will-change:transform}
.entry::before{content:"";position:absolute;inset:-30% 0;background:linear-gradient(100deg,transparent 25%,#fff3c180 48%,transparent 71%);pointer-events:none;transform:translateX(-150%) skewX(-18deg);animation:entry-shine 3.6s ease-in-out infinite}
.entry:hover,.entry:focus-visible,.entry:hover::before,.entry:focus-visible::before{animation-play-state:paused}
body:has(dialog[open]) .entry,body:has(dialog[open]) .entry::before,body.motion-paused .entry,body.motion-paused .entry::before{animation-play-state:paused}
@keyframes entry-pulse{0%,60%,100%{transform:scale(1)}27%,35%{transform:scale(1.055)}}
@keyframes entry-shine{0%,16%{transform:translateX(-150%) skewX(-18deg)}44%,100%{transform:translateX(150%) skewX(-18deg)}}
@media(max-width:350px){.game-title{font-size:21px}.header-left{gap:9px}.entry{min-height:44px}}
@media(min-width:600px) and (max-height:560px){.game-title{font-size:22px}.header-left{gap:12px}}
@media(prefers-reduced-motion:reduce){.entry{animation:none;will-change:auto}.entry::before{display:none}}

/* Single-action reward dialog after removal of the header and replay row. */
@media(min-width:600px) and (max-height:560px){dialog>img{grid-column:1;grid-row:1/4;height:180px;margin:0}dialog h2{grid-column:2;grid-row:1;margin:0 0 8px}dialog p{grid-column:2;grid-row:2;margin:0 0 16px}dialog>.gold-button{grid-column:2;grid-row:3}dialog small{grid-column:1/-1;grid-row:4;margin-top:16px}}
