@font-face{font-family:Cinzel;src:url('./public/fonts/cinzel-decorative-title-900.ttf') format('truetype');font-weight:900;font-display:swap}
:root{--forest:#05271f;--ink:#fff7d8;--muted:#d1d5b5;--gold:#f6d278;--line:#b58c43;--deep:#06251e;--space:8px;color-scheme:dark;font-family:Arial,Helvetica,sans-serif;color:var(--ink);background:#031a16}
*{box-sizing:border-box}body{margin:0;min-width:280px}button,a{-webkit-tap-highlight-color:transparent}button{font:inherit;cursor:pointer}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible{outline:3px solid #fff3b7;outline-offset:5px}button:disabled{cursor:wait}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.svg-defs{position:absolute;width:0;height:0;overflow:hidden}.game{position:relative;isolation:isolate;width:min(100%,500px);min-height:780px;height:100svh;max-height:1100px;overflow:hidden;margin:auto;background:var(--forest);display:flex;flex-direction:column;padding:0 28px}.scene{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center top;z-index:-4}.scene-shade{position:absolute;inset:0;z-index:-3;background:linear-gradient(180deg,rgba(0,19,12,.28),transparent 26%,rgba(1,25,18,.08) 38%,rgba(2,29,22,.84) 62%,#03261f 93%)}.edge-frame{position:absolute;inset:10px;z-index:-1;border:1px solid #e1bd6945;pointer-events:none}.edge-frame:before,.edge-frame:after{content:'◆';position:absolute;font-size:12px;color:var(--gold);bottom:-7px}.edge-frame:before{left:-4px}.edge-frame:after{right:-4px}.topbar{display:flex;align-items:center;justify-content:space-between;height:82px;flex:none;padding-top:env(safe-area-inset-top,0px)}.mini-brand{display:flex;align-items:center;gap:7px;color:var(--gold)}.mini-brand>svg{width:29px;height:36px;stroke-width:2}.mini-brand span{font-size:12px;letter-spacing:2px;line-height:1.2}.mini-brand strong{display:block;font-size:15px;letter-spacing:2px;font-family:Georgia,serif}.enter-top{border:1px solid #e4bc6e9c;border-radius:3px;background:#062f23bd;display:flex;align-items:center;gap:8px;color:#fff0bf;font-size:12px;font-weight:700;letter-spacing:1px;padding:12px}.enter-top svg{width:15px;height:15px}.title-block{text-align:center;position:relative;flex:none;z-index:1;text-shadow:0 2px 6px #0009}.eyebrow{font-size:12px;font-weight:700;letter-spacing:3px;color:#fff0c1}.title-block h1{font-family:Cinzel,Georgia,serif;font-weight:900;font-size:54px;letter-spacing:2px;line-height:1;margin:8px 0 3px;color:#ffe5a0;filter:drop-shadow(0 3px 1px #583315)}.title-block h1 span{display:block;font-size:23px;letter-spacing:9px;padding-left:9px;margin-bottom:3px}.title-ornament{display:flex;align-items:center;justify-content:center;gap:10px;font-size:12px;color:var(--gold);margin:10px 0}.title-ornament i{width:56px;height:1px;background:var(--gold)}.play-area{text-align:center;margin-top:auto;position:relative;padding-top:180px}.chapter{font-size:12px;font-weight:700;letter-spacing:2.5px;color:var(--gold)}.intro h2{font-family:Georgia,serif;font-size:25px;line-height:1.2;font-weight:400;margin:10px -10px 7px;text-shadow:0 2px 6px #0009}.intro p{font-size:12px;color:#e1e4c9;margin:0;line-height:1.6}.relic-stage{position:relative;height:180px;margin:0 auto 4px;width:100%;display:grid;place-items:center}.relic{position:relative;z-index:2;border:0;background:none;padding:0;width:240px;height:216px;margin-top:-12px;touch-action:manipulation}.relic img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 8px 13px #001c12);transition:filter .5s,transform .5s;animation:float 3.8s ease-in-out infinite;user-select:none}.halo{position:absolute;width:200px;height:150px;top:20px;border-radius:50%;background:radial-gradient(ellipse,#e1c45630,#6fd9790c 55%,transparent 72%);transition:transform .6s,opacity .6s}.rune-ring{position:absolute;width:185px;height:50px;border:1px solid #d7b76160;border-radius:50%;bottom:8px;transform:rotate(-5deg)}.rune-ring:after{content:'';position:absolute;inset:6px;border:1px dashed #d7b76180;border-radius:50%}.light-beam{position:absolute;inset:0 10%;background:conic-gradient(from 0deg at 50% 75%,transparent 0deg,#ffe49e12 15deg,transparent 30deg,transparent 315deg,#ffe49e18 340deg,transparent 360deg);opacity:0;transition:opacity .5s}.tap-hint{position:absolute;bottom:7px;left:0;right:0;font-size:12px;letter-spacing:2px;font-weight:700;color:#fff2bf;text-shadow:0 1px 5px #000}.tap-hint span{display:inline-block;font-size:17px;vertical-align:middle;margin-left:3px;animation:hint 2s infinite}.progress{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:5px}.feather{display:grid;place-items:center;width:38px;height:38px;border:1px solid #a28d5470;border-radius:50%;background:#103a2a;color:#8a9569;transition:background .4s,box-shadow .4s,color .4s,border-color .4s}.feather svg{width:25px;height:28px;stroke-width:1.5}.feather.active{color:#fff1a2;background:#7b591b;border-color:#f8d88b;box-shadow:0 0 17px #ead25e50}.progress>i{width:29px;height:1px;background:#b696515e}.status{font-size:12px;color:var(--muted);margin:11px 0 16px;min-height:13px}.gold-button{width:100%;min-height:56px;display:flex;align-items:center;justify-content:center;gap:14px;border:1px solid #ffecaa;border-radius:5px;box-shadow:inset 0 2px 0 #fff6c3,inset 0 -2px 0 #a66a1e,0 4px 8px #0005;background:linear-gradient(180deg,#ffdf8a,#e9b64c 52%,#d49a34);color:#38220a;font-size:13px;letter-spacing:1px;font-weight:800;transition:filter .2s,transform .2s}.gold-button svg{width:20px;height:20px;stroke-width:2}.gold-button:hover{filter:brightness(1.1)}.gold-button:active{transform:translateY(2px)}.gold-button:disabled{filter:saturate(.75)}.play-note{display:block;font-size:12px;color:#e1dfbd;margin-top:12px}footer{display:flex;justify-content:center;gap:10px;flex-wrap:wrap;font-size:12px;letter-spacing:.6px;color:#a4b9a0;padding:20px 0 max(20px,env(safe-area-inset-bottom));line-height:1.5}footer span:first-child{letter-spacing:1px;color:#dfcb8b}.particles{position:absolute;inset:0;pointer-events:none;z-index:4}.spark{position:absolute;left:50%;top:48%;width:5px;height:9px;border-radius:1px;background:#ffe594;box-shadow:0 0 6px #ffcf65;animation:spark .85s ease-out both}.game[data-step="1"] .halo{transform:scale(1.15)}.game[data-step="2"] .halo{transform:scale(1.4);background:radial-gradient(ellipse,#e1c45670,transparent 70%)}.game[data-step="2"] .light-beam,.game[data-step="3"] .light-beam{opacity:1}.game[data-step="1"] .relic img{filter:drop-shadow(0 0 10px #d7de41a0)}.game[data-step="2"] .relic img{filter:drop-shadow(0 0 20px #ffdb61aa)}.game[data-step="3"] .relic img{filter:drop-shadow(0 0 27px #ffdc74);transform:scale(1.08)}.game[data-step="3"] .halo{transform:scale(1.7);background:radial-gradient(ellipse,#e1c45680,transparent 70%)}.relic.pulse img{animation:awaken .55s ease-out}.game[data-step="3"] .tap-hint{visibility:hidden}dialog{color:var(--ink);background:radial-gradient(ellipse at 50% 25%,#23613d,#092f25 65%);border:1px solid #dfbd6e;padding:40px 24px 24px;width:min(390px,calc(100% - 32px));max-height:calc(100svh - 32px);border-radius:8px;text-align:center;box-shadow:0 0 0 5px #152b20,0 0 0 6px #c8a05b70;overflow-y:auto}dialog::backdrop{background:#001a15db;backdrop-filter:blur(7px)}dialog .eyebrow{font-size:12px;letter-spacing:2px}.close-dialog{position:absolute;right:10px;top:8px;background:none;border:0;color:#e2cc8f;width:32px;height:32px;font-size:26px}.reveal-symbol{height:200px;margin:0 auto;background:radial-gradient(ellipse,#e9ca5950,transparent 65%)}.reveal-symbol img{width:240px;height:240px;object-fit:contain;margin-top:-10px;filter:drop-shadow(0 0 18px #e1ba5680)}dialog h2{font-family:Georgia,serif;font-weight:400;font-size:34px;color:#ffe5a4;margin:12px 0}dialog p{font-size:13px;line-height:1.8;color:#dbe5cb;margin-bottom:24px}dialog small{display:block;font-size:12px;color:#e0e8d7;margin-top:20px}.replay{font-size:12px;color:#f1d58c;background:none;border:0;padding:18px 10px 2px}.destination-note{border-top:1px solid #c8a05b40;padding-top:14px}body:has(dialog[open]){overflow:hidden}body:has(dialog[open]) .relic img{animation-play-state:paused}.noscript{position:fixed;bottom:0;background:#062b25;padding:16px;width:100%;text-align:center}.gold-button[href]{display:flex}@keyframes float{50%{transform:translateY(-6px)}}@keyframes hint{50%{opacity:.35;transform:translateY(-3px)}}@keyframes awaken{35%{transform:scale(1.12) rotate(-3deg)}65%{transform:scale(1.05) rotate(3deg)}}@keyframes spark{to{transform:translate(var(--x),var(--y)) rotate(160deg);opacity:0}}
@media(min-width:700px){body{background:radial-gradient(ellipse at 50% 30%,#1d4a34,#041b17 65%)}.game{border-left:1px solid #d4b25f30;border-right:1px solid #d4b25f30}}
@media(min-height:900px){.play-area{padding-top:230px}.relic-stage{height:215px}.relic{width:270px;height:250px}.intro h2{font-size:28px}.status{margin-bottom:20px}.gold-button{min-height:60px}footer{padding-top:26px}}
@media(max-height:779px){.game{min-height:650px;padding:0 24px}.topbar{height:66px}.title-block h1{font-size:46px}.title-block h1 span{font-size:20px}.title-ornament{margin:6px 0}.play-area{padding-top:125px}.intro h2{font-size:22px;margin-top:6px}.relic-stage{height:148px}.relic{height:183px;width:205px}.tap-hint{bottom:3px}.progress{margin:0}.feather{width:32px;height:32px}.feather svg{width:21px;height:25px}.status{margin:8px 0 11px}.gold-button{min-height:50px;font-size:12px}.play-note{margin-top:10px}footer{padding:14px 0 16px;font-size:12px}.rune-ring{bottom:2px;width:160px}}
@media(max-width:350px){.game{padding-inline:20px}.intro h2{font-size:20px}.enter-top{font-size:12px;padding:10px 8px;letter-spacing:.5px}.mini-brand strong{font-size:13px}.title-block h1{font-size:43px}footer{gap:6px;font-size:12px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
/* Keep the title above the mascot's face and retain the footer inside tall phones. */
.scene{top:100px;height:calc(100% - 100px);mask-image:linear-gradient(180deg,transparent,#000 12%,#000)}
.play-area{padding-top:140px}
@media(min-height:900px){.play-area{padding-top:190px}}
@media(max-height:779px){.play-area{padding-top:100px}}
@media(max-height:699px){.game{height:auto;min-height:100svh;max-height:none}.play-area{padding-top:80px}}
@media(min-height:780px){.game{height:max(844px,100svh)}}
@media(min-height:900px){.play-area{padding-top:140px}}

/* Readability pass: retain natural height as text and safe areas grow. */
.game{height:auto;min-height:max(844px,100svh);max-height:none}
.title-block{padding-top:8px}
.mini-brand span{font-size:12px;letter-spacing:1px}
.enter-top{min-height:44px;font-size:12px;letter-spacing:.5px}
.eyebrow,.chapter{font-size:12px;letter-spacing:1px}
.chapter{display:block;margin:8px 0;color:#fff0bf}
.tap-hint{font-size:12px;letter-spacing:.5px}
footer{font-size:12px;letter-spacing:0;gap:4px 8px;color:#cad7bd}
footer span:first-child{letter-spacing:0}
dialog .eyebrow{font-size:12px;letter-spacing:1px}
dialog small{font-size:12px;color:#e0e8d7}
.close-dialog{width:44px;height:44px;right:4px;top:2px}
.replay{min-height:44px}
::selection{background:#f6d278;color:#05271f}
@media(max-height:779px){.game{height:auto;min-height:100svh}.play-area{padding-top:90px}}

.mini-brand span,.eyebrow,.chapter,dialog .eyebrow,.gold-button{letter-spacing:.5px}

/* Restrained controls: wings belong to the character and treasure only. */
:root{--button-label:#302008;--button-edge:#e3c477}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
.topbar{height:90px;gap:12px}
.mini-brand{display:flex;align-items:center;min-height:44px;color:#f4d890}
.mini-brand span{font-size:12px;letter-spacing:1.5px;line-height:1.3}
.mini-brand strong{font-family:Cinzel,Georgia,serif;font-size:15px;letter-spacing:1px}
.title-block{min-height:134px;display:grid;place-items:center;padding:0 0 10px}
.title-block h1{margin:0;line-height:1.1;font-size:52px;letter-spacing:1px;filter:none;color:#ffe5a0;text-shadow:0 2px 0 #604019,0 4px 6px #0008}
.title-block h1 span{font-size:20px;letter-spacing:5px;padding-left:5px;margin-bottom:2px}
.enter-top{height:44px;min-height:44px;padding:0 16px;justify-content:center;border:1px solid #d1b471;border-radius:4px;background:#0c3025;color:#ffe7a8;font-size:12px;font-weight:700;letter-spacing:.3px}
.enter-top:hover{background:#1e4b35}
.enter-top:active{transform:translateY(1px)}
.gold-button{min-height:58px;padding:0 20px;gap:12px;border:1px solid #ffebad;border-radius:6px;background:linear-gradient(180deg,#ffe59a,#e9bd59);color:#302008;box-shadow:inset 0 1px 0 #fff5c9,inset 0 -2px 0 #b4842d;font-size:14px;font-weight:800;text-shadow:none;letter-spacing:.4px}
.gold-button svg{width:18px;height:18px;flex:none}
.gold-button:hover{filter:brightness(1.08)}
.gold-button:active{transform:translateY(2px)}
.gold-button:disabled{filter:saturate(.6) brightness(.85)}
.relic{transition:transform .2s}
.relic:active:not(:disabled){transform:scale(.96)}
.relic:focus-visible{outline:2px solid #f6d278;outline-offset:-12px}
.close-dialog{display:grid;place-items:center;width:44px;height:44px;right:8px;top:8px;border:0;border-radius:4px;background:none;color:#ffe7a2;padding:10px;box-shadow:none}
.close-dialog svg{width:22px;height:22px;stroke-width:2}
.close-dialog:hover{background:#254b37}
.replay{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin-top:10px;padding:8px 16px;border:0;background:none;color:#f4d890;font-size:13px;box-shadow:none}
.replay svg{width:16px;height:16px;flex:none}
.replay:hover{color:#fff2bd;text-decoration:underline;text-underline-offset:4px}
dialog{padding-top:50px}
dialog .gold-button{min-height:56px;font-size:14px}
@media(max-width:350px){.topbar{gap:8px}.enter-top{padding-inline:12px}.title-block h1{font-size:44px}.title-block h1 span{font-size:18px}.title-block{min-height:116px}.gold-button{min-height:54px;font-size:13px}}
@media(max-height:779px){.topbar{height:78px}.title-block{min-height:116px}.gold-button{min-height:54px}}

/* Treasure interaction: one headline, one instruction, one visible action. */
.play-area{padding-top:112px}
.intro h2{font-family:Cinzel,Georgia,serif;font-weight:900;font-size:27px;margin:4px 0 8px;color:#fff0bd}
.intro p{font-size:15px;line-height:1.4;color:#fff4d5;font-weight:600}
.relic-stage{height:260px;margin:4px auto 0}
.relic{width:min(340px,108%);height:300px;margin-top:-12px;border-radius:25%}
.relic img{animation:float 3.8s ease-in-out infinite;filter:drop-shadow(0 12px 16px #00170b)}
.rune-ring{bottom:20px;width:245px;height:50px}
.halo{width:290px;height:230px;top:10px;background:radial-gradient(ellipse,#e3b33b40,transparent 68%)}
.progress{margin:8px 0 8px;gap:10px}
.feather{width:30px;height:30px;font-size:14px;font-weight:800;line-height:1;color:#e0d5a7;border-color:#cbb16c;background:#102f21}
.feather.active{color:#302008;background:#f6d278;border-color:#fff0b7;box-shadow:none}
.progress>i{width:28px;background:#b69651a0}
.status{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
.status.is-error{position:static;width:auto;height:auto;margin:10px 0;clip:auto;white-space:normal;color:#fff3c2;font-size:13px}
.gold-button{margin-top:0}
footer{padding-top:16px}
.reveal-symbol{height:245px;margin:0 -8px}
.reveal-symbol img{width:290px;height:290px;margin-top:-10px;filter:drop-shadow(0 10px 12px #0008)}
dialog h2{font-size:30px;margin:8px 0}
dialog p{margin:8px 0 16px;font-size:14px}
@media(max-width:350px){.intro h2{font-size:23px}.intro p{font-size:14px}.relic{width:290px;height:260px}.relic-stage{height:225px}.reveal-symbol{height:205px}.reveal-symbol img{width:250px;height:250px}dialog h2{font-size:26px}}
@media(max-height:779px){.play-area{padding-top:60px}.relic-stage{height:215px}.relic{width:290px;height:260px}.intro h2{font-size:23px}.rune-ring{bottom:10px}}
@media(min-height:900px){.play-area{padding-top:128px}.relic-stage{height:285px}.relic{width:360px;height:320px}}
@media(prefers-reduced-motion:reduce){.relic img{animation:none}}


/* Cleopatra layout: upper brand/entry, upper-right copy, anchored chest and controls. */
.game{display:block;position:relative;width:min(100%,480px);height:100svh;min-height:560px;max-height:1040px;padding:0;--safe-bottom:env(safe-area-inset-bottom,0px)}
.scene{inset:0;top:0;height:100%;object-position:center 25%;mask-image:none}
.scene-shade{background:linear-gradient(180deg,#05271f9c,transparent 24%,transparent 42%,#05271f20 58%,#03261fe8 100%)}
.edge-frame{display:none}
.topbar{position:absolute;z-index:5;top:max(16px,env(safe-area-inset-top));left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:14px;height:auto;padding:0}
.mini-brand{display:block;min-height:44px;width:fit-content;text-align:center}
.mini-brand h1{font-family:Cinzel,Georgia,serif;font-weight:900;font-size:27px;line-height:1.1;letter-spacing:0;margin:0;color:#ffe5a0;text-shadow:0 2px 0 #604019,0 4px 6px #0008}
.mini-brand h1 span{display:block;font-family:Arial,Helvetica,sans-serif;font-size:12px;line-height:1.2;font-weight:700;letter-spacing:3px;padding-left:3px;margin-bottom:3px}
.enter-top{width:142px;min-height:50px;height:50px;padding:0 12px;font-size:14px}
.play-area{display:contents;margin:0;padding:0}
.intro{position:absolute;top:max(107px,calc(env(safe-area-inset-top) + 78px));right:max(18px,env(safe-area-inset-right));width:168px;text-align:right;z-index:2}
.intro h2{font-family:Georgia,serif;font-size:29px;font-weight:700;line-height:1.18;margin:0;color:#ffe5a0;text-shadow:0 2px 6px #000b;text-wrap:balance}
.intro p{font-size:14px;line-height:1.45;margin:8px 0 0;font-weight:600;text-shadow:0 2px 5px #000}
.relic-stage{position:absolute;left:0;right:0;bottom:calc(182px + var(--safe-bottom));height:clamp(230px,34svh,360px);margin:0;isolation:isolate}
.relic{position:absolute;inset:0;width:min(100%,385px);height:100%;margin:0 auto;border-radius:20%;z-index:2}
.relic img{position:absolute;left:0;bottom:-22px;width:100%;height:138%;object-fit:contain;object-position:center bottom;animation:none}
.rune-ring{bottom:0;left:20%;width:60%;height:44px}
.halo{left:12%;top:5%;width:76%;height:100%}
.particles{z-index:4}
.controls{position:absolute;left:26px;right:26px;bottom:calc(40px + var(--safe-bottom));display:flex;flex-direction:column;align-items:center;gap:12px;z-index:3}
.progress{height:40px;margin:0;gap:10px}
.feather{width:36px;height:36px;font-size:15px}
.progress>i{width:25px}
.gold-button{width:100%;min-height:62px;margin:0;font-size:16px}
.status.is-error{position:static;margin:0;flex:none;width:100%;height:auto;font-size:12px;text-align:center}
footer{position:absolute;left:12px;right:12px;bottom:max(10px,env(safe-area-inset-bottom));padding:0;font-size:12px;line-height:1.3}
@media(max-width:360px){.topbar{left:14px;right:14px;gap:10px}.mini-brand h1{font-size:24px}.enter-top{width:128px;font-size:13px}.intro{right:14px;width:140px}.intro h2{font-size:25px}.controls{left:18px;right:18px}}
@media(max-height:740px){.intro{top:max(94px,calc(env(safe-area-inset-top) + 76px));right:16px;width:150px}.intro h2{font-size:27px}.intro p{font-size:13px}.relic-stage{bottom:calc(164px + var(--safe-bottom));height:31svh}.controls{bottom:calc(34px + var(--safe-bottom));gap:10px}.progress{height:36px}.feather{width:32px;height:32px}.gold-button{min-height:58px;font-size:15px}}
@media(max-height:620px){.intro{top:max(90px,calc(env(safe-area-inset-top) + 72px));width:140px}.intro h2{font-size:24px}.intro p{font-size:13px;margin-top:5px}.relic-stage{height:29svh}.controls{bottom:calc(32px + var(--safe-bottom))}}
@media(orientation:landscape) and (min-width:600px) and (max-height:560px){.game{width:min(100%,960px);height:100svh;min-height:320px;max-height:560px}.scene{object-position:50% 10%}.scene-shade{background:linear-gradient(90deg,#05271f10,transparent 38%,#03261fdb 75%)}.topbar{top:12px;left:20px;right:20px}.intro{top:92px;right:22px;width:40%;text-align:right}.intro h2{font-size:26px}.intro p{margin-top:5px}.relic-stage{left:0;right:44%;bottom:14px;height:56svh}.relic img{height:125%;bottom:-14px}.controls{left:auto;right:22px;width:40%;bottom:34px;gap:10px}.gold-button{min-height:54px;font-size:14px}.progress{height:32px}.feather{width:30px;height:30px}footer{justify-content:flex-end;right:22px;bottom:10px;font-size:11px}}
@media(orientation:landscape) and (min-width:600px) and (max-height:560px){.relic-stage{width:56%;right:auto}footer{font-size:12px}}

/* Material separation: subdued upper-left hero, compact cool enamel chest. */
.scene{transform:translate(-14%,-9%) scale(1.16);transform-origin:top left;filter:saturate(.82) brightness(.92)}
.scene-shade{background:linear-gradient(180deg,#05271f80,transparent 25%,#03261f30 40%,#03261fc9 58%,#03261ff5 78%,#03261f 100%)}
.relic-stage{height:clamp(210px,30svh,310px)}
.relic{width:min(78%,300px)}
.relic img{height:126%;bottom:-14px;filter:drop-shadow(0 14px 12px #0009)}
.rune-ring{left:29%;width:42%;height:32px;bottom:4px;border-color:#9ccdc43d}
.rune-ring:after{border-color:#9ccdc440}
.halo{left:20%;width:60%;background:none}
.game[data-step="2"] .halo,.game[data-step="3"] .halo{background:radial-gradient(ellipse,#78cbb51f,transparent 70%)}
.game[data-step="1"] .relic img{filter:drop-shadow(0 10px 15px #0009) brightness(1.05)}
.game[data-step="2"] .relic img{filter:drop-shadow(0 10px 15px #0009) brightness(1.12)}
.game[data-step="3"] .relic img{filter:drop-shadow(0 10px 16px #0009) brightness(1.08)}
/* Slim gilded frame and a single jewel: game controls without repeated wings. */
.gold-button{position:relative;isolation:isolate;min-height:64px;border:2px solid #e6c476;border-radius:10px;background:linear-gradient(180deg,#376d53,#154533 52%,#0b3026);box-shadow:inset 0 1px 0 #fff1b566,inset 0 -2px 0 #061f19;color:#fff0c2;font-weight:800;text-shadow:0 2px 2px #061f19;letter-spacing:.5px;padding:0 26px}
.gold-button:before{content:'';position:absolute;inset:4px;border:1px solid #b99449;border-radius:5px;pointer-events:none}
.gold-button:after{content:'';position:absolute;left:calc(50% - 6px);top:-7px;width:12px;height:12px;border:1px solid #ffe5a0;border-radius:2px;background:linear-gradient(135deg,#a1f0cc,#188b65 50%,#064632);transform:rotate(45deg);pointer-events:none}
.gold-button:hover{filter:brightness(1.12)}
.gold-button:active{transform:translateY(2px);filter:brightness(.95)}
.gold-button:disabled{filter:saturate(.5) brightness(.82)}
.enter-top{position:relative;border:1px solid #ddbf77;border-radius:7px;background:linear-gradient(180deg,#284e3b,#0b3026);box-shadow:inset 0 1px 0 #ffe7a133}
.enter-top:before{content:'';position:absolute;inset:3px;border:1px solid #b994495e;border-radius:3px;pointer-events:none}
.enter-top:hover{background:#28513c}
/* Three inset enamel markers: numbers ahead, ticks on completed taps. */
.progress{gap:15px;height:44px}
.feather{position:relative;display:grid;place-items:center;width:34px;height:34px;flex:none;border:1px solid #967a43;border-radius:6px;background:linear-gradient(135deg,#234437,#0b2921);color:#f8e4ad;transform:rotate(45deg);box-shadow:none;transition:background .25s,border-color .25s,color .25s}
.feather:before{content:'';position:absolute;inset:3px;border:1px solid #d9b96b40;border-radius:3px;pointer-events:none}
.step-number,.step-check{transform:rotate(-45deg);font-size:14px;font-weight:700}
.step-check{display:none;width:21px;height:21px;stroke-width:2.5}
.feather.is-current{border-color:#ffe5a0;background:linear-gradient(135deg,#355f47,#16392d);color:#fff5d2}
.feather.active{background:linear-gradient(135deg,#f8df95,#c39a44);border-color:#fff0b7;color:#17382b;box-shadow:none}
.feather.active:before{border-color:#72532066}
.feather.active .step-number{display:none}
.feather.active .step-check{display:block}
.progress>i{position:relative;width:29px;height:1px;flex:none;background:#d1b57680}
.progress>i:after{content:'';position:absolute;left:calc(50% - 2px);top:-2px;width:5px;height:5px;transform:rotate(45deg);background:#d1b576}
.controls{gap:14px}
.reveal-symbol{height:220px}
.reveal-symbol img{width:265px;height:265px}
dialog .gold-button{min-height:60px}
@media(max-width:360px){.relic{width:min(80%,255px)}.gold-button{min-height:60px}.feather{width:31px;height:31px}.progress{gap:12px}.progress>i{width:24px}.reveal-symbol{height:190px}.reveal-symbol img{width:235px;height:235px}}
@media(max-height:740px){.relic-stage{height:28svh;bottom:calc(166px + var(--safe-bottom))}.relic{width:min(76%,275px)}.gold-button{min-height:60px}.controls{gap:10px}.progress{height:40px}.feather{width:30px;height:30px}}
@media(orientation:landscape) and (min-width:600px) and (max-height:560px){.scene{transform:translate(-7%,-10%) scale(1.12)}.scene-shade{background:linear-gradient(90deg,#03261f20,transparent 30%,#03261fce 62%,#03261ff5 100%)}.relic-stage{height:50svh;bottom:14px}.relic{width:min(76%,260px)}.relic img{height:128%;bottom:-12px}.gold-button{min-height:54px}.progress{height:34px}.feather{width:27px;height:27px}.progress>i{width:22px}.controls{gap:10px}}

/* Original-chest filigree, without wing or bird-head extensions. */
.gold-button,.enter-top{isolation:isolate;border:0;border-radius:9px;background:none;box-shadow:none;color:#fff0bd;text-shadow:0 2px 2px #032217;position:relative}
.gold-button:before,.enter-top:before{content:'';position:absolute;inset:0;z-index:-1;border:0;border-radius:0;background:url('./public/garuda-button-v8.webp') center/100% 100% no-repeat;pointer-events:none}
.gold-button:after{display:none}
.gold-button{min-height:74px;padding:0 32px;font-size:16px}
.enter-top{min-height:56px;height:56px;width:148px;padding:0 17px;font-size:13px;transform-origin:center}
.enter-top:after{content:'';position:absolute;inset:8px 10px;border-radius:5px;z-index:1;background:linear-gradient(115deg,transparent 42%,#fff2ba44 49%,transparent 56%);background-size:250% 100%;background-repeat:no-repeat;background-position:180% 0;pointer-events:none;opacity:0}
.enter-top>span{position:relative;z-index:2}
.enter-top[data-animate="true"]{animation:entry-breathe 2.8s ease-in-out infinite}
.enter-top[data-animate="true"]:after{animation:entry-polish 5.6s ease-in-out infinite}
.enter-top:hover{background:none;filter:brightness(1.12)}
.enter-top:active{animation:none;transform:scale(.98)}
.replay{min-height:44px;padding:8px 20px;color:#f8df9c;border:1px solid #b6954e;border-radius:5px;background:#0c3528}
.replay:hover{background:#174633;text-decoration:none}
.close-dialog{border:1px solid #c6a65c;border-radius:6px;background:#10392b;color:#ffe5a0}
dialog .gold-button{min-height:70px;font-size:15px}
@keyframes entry-breathe{0%,100%{transform:scale(1)}50%{transform:scale(1.035)}}
@keyframes entry-polish{0%,62%{background-position:180% 0;opacity:0}68%{opacity:1}88%{background-position:-100% 0;opacity:1}94%,100%{background-position:-100% 0;opacity:0}}
@media(max-width:360px){.enter-top{width:134px;min-height:52px;height:52px;font-size:12px;padding-inline:15px}.gold-button{min-height:68px;font-size:15px}}
@media(orientation:landscape) and (min-width:600px) and (max-height:560px){.gold-button{min-height:62px;font-size:14px}.enter-top{min-height:50px;height:50px}}
@media(prefers-reduced-motion:reduce){.enter-top[data-animate="true"],.enter-top[data-animate="true"]:after{animation:none}.enter-top:after{display:none}}

/* Faceted emerald sockets track the treasure opening without numbered UI. */
.progress{height:49px;gap:12px}
.gem-step{position:relative;display:grid;place-items:center;width:42px;height:47px;flex:none;--gem-face:#174737;--gem-top:#47735a;--gem-left:#285c46;--gem-right:#0b3227;--gem-bottom:#0b2e22;--gem-core:#22583f}
.gem-step .step-gem{display:block;width:100%;height:100%;stroke:none;fill:none;overflow:visible;transition:transform .35s ease-out}
.gem-mount{fill:#87612c;stroke:#bc9851;stroke-width:1}
.gem-bevel{fill:#b4914d}
.gem-face{fill:var(--gem-face)}.gem-top{fill:var(--gem-top)}.gem-left{fill:var(--gem-left)}.gem-right{fill:var(--gem-right)}.gem-bottom{fill:var(--gem-bottom)}.gem-core{fill:var(--gem-core)}
.gem-glint{fill:none;stroke:#daeec0;stroke-width:1.3;stroke-linecap:round;opacity:.35}
.gem-step.is-current .gem-mount{stroke:#ffe0a0;stroke-width:1.6}
.gem-step.is-current .gem-bevel{fill:#d2b16c}
.gem-step.active{--gem-face:#0d9a54;--gem-top:#adffc0;--gem-left:#43de82;--gem-right:#086c3a;--gem-bottom:#20b965;--gem-core:#70f49a}
.gem-step.active .gem-mount{fill:#bc8231;stroke:#ffe6aa;stroke-width:1.3}
.gem-step.active .gem-bevel{fill:#efd091}
.gem-step.active .gem-glint{opacity:1;stroke:#f3ffdf}
.progress>i{position:relative;width:24px;height:2px;background:#9f824252;transition:background .35s}
.progress>i:after{content:'';position:absolute;width:4px;height:4px;left:calc(50% - 2px);top:-1px;transform:rotate(45deg);background:#ad8c4c}
.gem-step.active+i{background:#e3bb68}
@media(max-width:360px){.gem-step{width:37px;height:42px}.progress{height:45px}.progress>i{width:21px}}
@media(orientation:landscape) and (min-width:600px) and (max-height:560px){.gem-step{width:32px;height:36px}.progress{height:38px}.progress>i{width:19px}}
/* Cleopatra modal structure: one destination, no dismissal or replay action. */
dialog{width:min(392px,calc(100% - 32px));padding:20px 22px 24px;border:3px solid #e8bd67;border-radius:20px;background:radial-gradient(ellipse at 50% 5%,#285d43,#0b3026 64%);box-shadow:inset 0 0 0 4px #154637,inset 0 0 0 5px #b78a43}
dialog::backdrop{background:#031c20dd;backdrop-filter:none}
dialog[open]{animation:treasure-arrive .4s cubic-bezier(.16,1,.3,1) both}
.reveal-symbol{position:relative;isolation:isolate;height:230px;margin:0 -8px 4px;pointer-events:none}
.reveal-symbol img{position:absolute;left:0;bottom:0;width:100%;height:113%;margin:0;object-fit:contain;object-position:center bottom}
dialog h2{font-size:29px;line-height:1.35;margin:0;color:#ffe4a1}
dialog p{margin:10px 0 20px;font-size:15px;line-height:1.6}
dialog .gold-button{width:calc(100% + 12px);margin-inline:-6px;min-height:76px;font-size:16px}
dialog small{margin-top:16px;font-size:12px}
@keyframes treasure-arrive{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(max-width:360px){.feather{width:39px;height:41px}.step-number{font-size:17px}.progress{height:45px}.progress>i{width:19px}dialog{padding-inline:18px}.reveal-symbol{height:205px}dialog h2{font-size:27px}}
@media(max-height:640px){.reveal-symbol{height:175px}dialog{padding-block:16px 18px}dialog p{margin:7px 0 12px}dialog .gold-button{min-height:68px}}
@media(orientation:landscape) and (min-width:600px) and (max-height:560px){.progress{height:38px}.feather{width:34px;height:35px}.step-number{font-size:16px}.progress>i{width:18px}dialog{width:min(580px,calc(100% - 32px));padding:20px 24px;grid-template-columns:180px minmax(0,1fr);column-gap:20px;align-items:center}dialog[open]{display:grid}.reveal-symbol{grid-column:1;grid-row:1 / span 4;height:210px;margin:0}dialog h2{grid-column:2;font-size:26px}dialog p{grid-column:2;margin:6px 0 10px}dialog .gold-button{grid-column:2;width:100%;margin-inline:0;min-height:66px;padding-inline:24px;font-size:15px}dialog small{grid-column:2;margin-top:8px}}

/* Three opening states culminate in a gold-light treasure reveal. */
.game{overflow:clip}
.game[data-step="1"] .light-beam{opacity:0}
.game[data-step="2"] .light-beam{opacity:.3}
.game[data-step="3"] .halo{background:radial-gradient(ellipse,#ffdb7159,transparent 70%);transform:scale(1.3)}
.game[data-step="3"] .light-beam{opacity:1;inset:-18% 5% 4%;background:conic-gradient(from -20deg at 50% 65%,transparent 0deg 20deg,#ffe59145 24deg 32deg,transparent 38deg 68deg,#ffd76e33 74deg 84deg,transparent 92deg 250deg,#ffe3913d 258deg 268deg,transparent 280deg 315deg,#fff0b34d 322deg 332deg,transparent 340deg);mask-image:radial-gradient(ellipse at 50% 60%,#000 10%,transparent 72%);animation:gold-reveal 1.2s ease-out both}
.game[data-step="3"] .relic img{filter:drop-shadow(0 0 14px #ffd56b80) brightness(1.12)}
@keyframes gold-reveal{from{opacity:0;transform:scale(.7)}to{opacity:1;transform:scale(1.15)}}
@media(prefers-reduced-motion:reduce){.game[data-step="3"] .light-beam{animation:none;opacity:1}}
