:root{color-scheme:dark;--gold: #e5c48d;--bronze: #a68450;--ink: #091b1d;font-family:Georgia,Times New Roman,serif;color:#f2dfbd;background:#071719}*{box-sizing:border-box}html,body{margin:0;overflow:hidden;width:100%;height:100%}button,summary{cursor:pointer}button{font:inherit;color:inherit;border:0;background:none}button:disabled{opacity:.33;cursor:default}button:focus-visible,#language:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid #c6f4dc;outline-offset:4px}button[aria-pressed=true]{color:#a9f7dd}button:not(:disabled):hover{filter:brightness(1.23)}#game{position:relative;isolation:isolate;height:100%;height:100dvh;overflow:hidden}.backdrop,#world,#targets{position:absolute;inset:0}.backdrop{--temple-image: url(/sanctuary.webp);background-image:linear-gradient(180deg,#0411142e,transparent 25%,transparent 72%,#020d10c9),var(--temple-image);background-size:100% 100%,var(--temple-width, 100%) var(--temple-height, 100%);background-position:center,50% var(--temple-top, 20%);background-repeat:no-repeat;background-color:#082327}.backdrop:before{content:"";position:absolute;inset:0 0 auto;height:var(--ceiling-gap, 0px);background-image:linear-gradient(#0411142e,#041114db 65%,#041114),var(--temple-image);background-size:100% 100%,var(--temple-width, 100%) calc(var(--temple-height, 100%) * 1.6);background-position:center top;transform:scaleY(-1)}@media(max-aspect-ratio:1/1){.backdrop{--temple-image: url(/sanctuary-portrait.webp)}}.backdrop:after{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 47%,#1c777113,transparent 53%,#0004)}#world canvas{display:block;width:100%;height:100%;touch-action:none}#world{outline-offset:-4px;cursor:grab}#world:active,.hit.piece:active{cursor:grabbing}#pull-guide{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.hit.piece{cursor:grab}.hit.piece[data-scarab],.hit.port[data-scarab-port]{box-shadow:0 0 14px #ffc96d55,inset 0 0 0 1px #ffe0a4b0}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}#targets{pointer-events:none}.hit{position:absolute;padding:0;transform:translate(-50%,-50%);pointer-events:auto;border-radius:50%;background:transparent;touch-action:none;-webkit-tap-highlight-color:transparent}.hit:focus-visible{outline:1px dashed #f4d299}.hit.port:focus-visible,.hit.port:hover{box-shadow:inset 0 0 0 1px #f1dc94aa}.hud{position:absolute;left:clamp(18px,3.4vw,66px);right:clamp(18px,3.4vw,66px);pointer-events:none;display:flex;align-items:center;justify-content:space-between}.hud button{pointer-events:auto}.top{top:max(22px,env(safe-area-inset-top))}#clock-dock{position:absolute;right:max(2.6vw,env(safe-area-inset-right));bottom:max(15px,env(safe-area-inset-bottom));display:flex;align-items:center;color:#f8deb0;gap:5px;pointer-events:none}#glass-anchor{width:clamp(74px,7.2vw,110px);height:clamp(108px,11vw,152px)}#game[data-phase=preview] #glass-anchor{pointer-events:auto;cursor:pointer}.clock-values{position:relative;text-align:right;text-shadow:0 2px 6px #041416}#clock-dock #pace-choice{pointer-events:auto;text-align:right}#round-hud{display:grid;justify-items:end}#time-left,#points,.result-total strong,.result-stats dd{font-variant-numeric:lining-nums tabular-nums}#time-left{font-size:clamp(27px,2.7vw,43px);line-height:1.1}#round-hud[data-low=true] #time-left{color:#ffb291}.points-readout{display:flex;gap:6px;align-items:baseline;color:#fbd385}.points-readout small,.result-total small{font-size:9px;text-transform:uppercase}#points{font-size:clamp(18px,1.55vw,25px);font-weight:500}#move-feedback{position:absolute;bottom:calc(100% + 3px);right:0;white-space:nowrap;font:600 12px/1.5 system-ui,sans-serif;color:#b2ffde;text-shadow:0 1px 4px #031412,0 0 9px #073f3a}#move-feedback[data-kind=miss]{color:#ffb69c}#move-feedback[data-kind=chain]{color:#ffe6a1}.artifact-info{display:grid;justify-items:start;gap:5px}#round-result{--edge: #c7a465;position:absolute;top:50%;left:clamp(20px,5vw,110px);transform:translateY(-50%);width:clamp(268px,24vw,348px);padding:22px 24px 20px;color:#f8e7c9;background:linear-gradient(145deg,#203c3bf7,#091c1ff7 57%,#172928f5);border:1px solid #907c54;border-top:2px solid var(--edge);box-shadow:inset 0 0 0 4px #091b1caa,0 10px 35px #03111388;text-align:center}#game[data-phase=lost] #round-result{--edge: #d19172}#result-mode{margin:0 0 6px;color:#d8c39c;font:11px/1.4 system-ui,sans-serif}#outcome{margin:0;color:#f6ddb3;font-weight:500;font-size:clamp(26px,2.5vw,36px)}#game[data-phase=lost] #outcome{color:#ffc2a5}.result-total{display:flex;justify-content:center;align-items:baseline;gap:8px;margin:6px 0 12px}.result-total strong{font-size:clamp(36px,4.1vw,59px);line-height:1;font-weight:500;color:#ffda90}.result-stats{display:grid;grid-template-columns:1fr 1fr;margin:0;padding:10px 0;border-block:1px solid #8d795449}.result-stats div+div{border-left:1px solid #8d79545c}.result-stats dt,.result-record span,#old-accuracy{font:12px/1.4 system-ui,sans-serif;color:#d7d4c1}.result-stats dd{margin:2px 0 0;font-size:21px}.result-record{display:grid;gap:2px;margin:12px 0}.result-record strong{font-size:18px;font-weight:500}.result-record[data-best=true] strong{color:#ffe297}.result-record b{color:#ffe7b7}#old-accuracy{margin:5px 0 0}#duration{margin:8px 0;font:13px/1.4 system-ui,sans-serif;color:#e7d4ac}#replay{padding:8px 24px}@media(max-width:720px){#clock-dock{right:max(8px,env(safe-area-inset-right));bottom:max(7px,env(safe-area-inset-bottom));gap:2px;align-items:end}#glass-anchor{width:56px;height:84px}.clock-values{padding-bottom:4px}#round-result{top:auto;bottom:max(100px,12dvh);left:50%;transform:translate(-50%);width:min(290px,88vw);padding:14px 18px}#clock-dock #pace-choice span{white-space:normal;max-width:88px}#move-feedback{font-size:10px}}@media(max-width:380px){#game[data-phase=preview] .artifact-info{max-width:calc(100vw - 190px)}#game[data-phase=preview] #artifact{max-width:100%;padding-right:14px}#game[data-phase=preview] #artifact span{font-size:17px}#clock-dock #pace-choice{padding-right:14px}}@media(max-height:490px)and (orientation:landscape){#clock-dock{bottom:4px;right:8px}#glass-anchor{width:48px;height:68px}#time-left{font-size:23px}#round-result{top:50%;bottom:auto;left:14px;transform:translateY(-50%);padding:10px 16px;width:238px}.result-total{margin:2px 0 6px}.result-total strong{font-size:32px}.result-stats{padding:5px 0}.result-record{margin:6px 0}}.wordmark{display:flex;align-items:center;gap:12px;color:#f3dfa8;text-transform:uppercase;letter-spacing:.22em;font-weight:500;font-size:clamp(15px,1.55vw,25px);text-shadow:0 2px 13px #000}.wordmark svg{width:48px;height:42px}#brand-mark{display:flex}.tools{display:flex;gap:8px}.language-tool{position:relative;display:block}.language-tool:after{content:"";position:absolute;top:calc(50% - 4px);right:7px;width:4px;height:4px;border-right:1px solid currentColor;border-bottom:1px solid currentColor;transform:rotate(45deg);color:var(--gold);pointer-events:none}#language{appearance:none;padding:0 10px 0 0;text-align:center;font:600 11px system-ui,sans-serif;cursor:pointer;pointer-events:auto}.metal,.dock button{display:grid;place-items:center;height:42px;width:44px;color:var(--gold);background:linear-gradient(165deg,#243a39eb,#0a1b1de8 60%,#172a2be6);border:1px solid #94825b88;box-shadow:inset 0 0 0 3px #08181766,0 3px 14px #0004;border-radius:5px}.metal svg,.dock svg{width:21px;height:21px}#center-notice{position:absolute;top:48%;left:50%;transform:translate(-50%,-50%);background:#0b1b1ef2;padding:16px 24px;border:1px solid #92794f;border-radius:3px;text-align:center}.bottom{bottom:max(25px,env(safe-area-inset-bottom));align-items:end}#game:not([data-phase=playing]) :is(.action-bar,.progress){display:none}#game:not([data-phase=playing]) #pause-game{display:none}#game:not([data-phase=preview]) #pace-choice,#game[data-phase=lost] #pull-guide{display:none}#pace-choice span{color:var(--gold);font-size:clamp(14px,1.55vw,21px);white-space:nowrap}#begin{position:absolute;top:var(--start-y, 72%);left:50%;transform:translate(-50%,-50%);display:inline-flex;align-items:center;gap:13px;padding:12px 25px 12px 19px;min-height:46px;border:1px solid #e6c784;border-radius:3px;background:linear-gradient(165deg,#304846f5,#0b2529fa 62%,#1b322e);color:#ffe2a5;box-shadow:inset 0 0 0 3px #112524,inset 0 0 0 4px #a78e586b,0 4px 20px #051210b3;white-space:nowrap}#begin b{font-size:clamp(16px,2vw,21px);font-weight:500}#begin span{color:#93e9cf;font:18px/1 system-ui,sans-serif}.artifact{position:relative;text-align:left;text-shadow:0 2px 9px #000;padding:2px 22px 3px 0}.artifact i{position:absolute;font-size:15px;right:0;bottom:8px;color:var(--gold)}small,h3,summary,#message,.menu-actions,.meter,.levels,.progress span{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}small,h3{color:#dabf8a;font-size:10px;font-weight:600;letter-spacing:.2em}small{display:block}.artifact span{font-size:clamp(20px,2.1vw,36px);display:block;margin-top:4px;letter-spacing:-.025em}.action-bar{position:absolute;bottom:0;left:50%;transform:translate(-50%);display:grid;justify-items:center;gap:10px}.dock{display:flex;filter:drop-shadow(0 3px 5px #0007);border:1px solid #ad905e88;border-radius:30px;padding:4px 8px;gap:2px;background:linear-gradient(180deg,#203230ee,#0b1719ed)}.dock button{border:none;box-shadow:none;border-radius:50%;background:transparent;width:40px;height:36px}.dock button[aria-pressed=true]{background:#426056}.progress{width:118px;display:grid;gap:8px;text-shadow:0 2px 5px black}.progress>div:first-child{display:flex;align-items:baseline;justify-content:space-between}.progress span{font-size:18px;font-variant-numeric:tabular-nums;color:#f7e7c3}.progress small{font-size:9px}.meter{height:3px;background:#b8a17544}.meter i{display:block;height:100%;background:#e5c58c;box-shadow:0 0 7px #e6ac5e;transform:scaleX(0);transform-origin:left center;transition:transform .25s}@media(prefers-reduced-motion:reduce){.meter i{transition:none}}#message{font-size:12px;text-align:center;color:#f0e7ce;text-shadow:0 1px 5px #000,0 1px 12px #000;min-width:260px;max-width:330px;line-height:1.45}dialog{color:#f0dcba;border:1px solid #a9956eab;border-radius:10px;background:linear-gradient(160deg,#203939,#0a191c 70%);box-shadow:0 15px 80px #000a,inset 0 0 0 4px #09171970;padding:26px;width:min(400px,calc(100% - 28px));max-height:90dvh}dialog::backdrop{background:#020e11a8;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}#pause-dialog{width:min(288px,calc(100% - 28px));text-align:center}#pause-dialog::backdrop{-webkit-backdrop-filter:none;backdrop-filter:none}#pause-heading{margin:0 0 18px;font-size:26px;font-weight:500}#resume-game{min-height:44px}dialog h2{font-size:32px;font-weight:400;margin:3px 0 22px}dialog h3{text-transform:uppercase;margin:22px 0 9px}.close{float:right;font-size:24px}.levels,.menu-actions{display:flex;gap:7px}.levels button{flex:1;background:#0c1c1f;border:1px solid #75664d;padding:12px 6px;border-radius:3px;font-size:13px}.levels button[aria-pressed=true]{border-color:#e0be84;background:#38433a;color:#ffe2ac}.menu-actions{flex-wrap:wrap;margin-top:14px;align-items:center}.menu-actions button{min-height:40px}.primary{background:linear-gradient(145deg,#e0c98e,#bd965c);color:#182626;border:1px solid #ffe6ac;border-radius:3px;padding:12px 20px;font-weight:600}.menu-actions #restart{font-size:12px;color:#dcc6a0}.menu-actions #enter{flex:1}details{border-top:1px solid #77694b66;margin-top:18px;padding-top:14px}summary,details p{font-size:13px}details p{line-height:1.55;color:#d5d3c6}[hidden]{display:none!important}@media(max-width:640px){.hud{left:14px;right:14px}.top{top:max(12px,env(safe-area-inset-top))}.wordmark{font-size:14px;gap:6px;letter-spacing:.13em}.wordmark svg{width:31px;height:30px}.metal{width:38px;height:38px}.tools{gap:5px}.bottom{bottom:max(14px,env(safe-area-inset-bottom));align-items:center}.artifact span{font-size:20px}.progress{width:82px}.progress span{font-size:15px}.progress small,.artifact small{font-size:8px}.action-bar{bottom:55px;width:100%;gap:4px}.dock{padding:1px 5px}.dock button{width:38px;height:33px}#message{font-size:11px;max-width:90%}}@media(max-height:490px)and (orientation:landscape){.top{top:6px}.bottom{bottom:6px}.wordmark svg{height:27px}.metal{height:32px}.artifact span{font-size:18px}.action-bar{gap:2px}.dock button{height:25px}.dock svg{height:16px}#message{font-size:10px}}@media(max-width:430px){.wordmark [data-copy=brand]{display:none}}.progress span{white-space:nowrap}.hit.piece[aria-pressed=true]:after{content:"";position:absolute;bottom:0;left:45%;width:8px;height:8px;transform:rotate(45deg);background:#ffe2a2;border:1px solid #c2a16d;box-shadow:0 0 9px #d5ae57}@media(max-width:640px){.progress{width:98px}.progress span{font-size:14px}.progress small{letter-spacing:.12em}}#settings{width:min(640px,calc(100% - 28px))}.menu-heading{margin:0 52px 20px 0}.artifact-grid{clear:both;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(6px,1.4vw,14px)}.artifact-card{position:relative;display:grid;grid-template-rows:auto 1fr;padding:0;text-align:center;color:#f4e2c0;background:#0c1e20;border:1px solid #8c7851;border-radius:5px}.artifact-card[aria-pressed=true]{color:#ffe9bd;border-color:#ffdb90;background:#3b3527;box-shadow:0 0 16px #dfad4f24}.artifact-card[aria-pressed=true]:after{content:"";position:absolute;top:10px;right:10px;width:7px;height:7px;background:#ffe6a8;box-shadow:0 0 0 3px #18170cbb;transform:rotate(45deg)}.artifact-card img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:4px 4px 0 0}.artifact-card span{display:grid;place-content:center;padding:9px 4px;min-height:46px;font-size:clamp(12px,2.1vw,17px);line-height:1.15}@media(max-width:540px){.artifact-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.artifact-card{grid-template-columns:clamp(54px,15vw,76px) minmax(0,1fr);grid-template-rows:1fr}.artifact-card img{border-radius:4px 0 0 4px}.artifact-card[aria-pressed=true]:after{width:5px;height:5px;top:7px;left:7px;right:auto}}.records{border-collapse:collapse;width:100%;margin-top:16px;table-layout:fixed;color:#f3dfb9;font:14px/1.3 system-ui,sans-serif;font-variant-numeric:tabular-nums}.records caption{text-align:left;padding:0 0 9px;font:18px Georgia,serif}.records th,.records td{padding:6px 2px;text-align:center;border-bottom:1px solid #aa91613d}.records thead th{font-size:11px;font-weight:500;color:#d9c6a5}.records th:first-child{text-align:left}.records tbody th{font-size:12px;font-weight:500}.records .empty{color:#a59d89}.records .chosen{box-shadow:inset 0 -2px #c6ab70;background:#b8944f17}#legacy-scores{margin-top:8px;padding-top:6px;border:0}#legacy-scores caption{font:12px/1.4 system-ui,sans-serif}.artifact small,.progress small{text-transform:uppercase}@media(max-width:380px){.menu-heading{font-size:26px}}@media(max-height:690px){#settings{padding:15px 17px;max-height:calc(100dvh - 16px);max-width:calc(100% - 20px)}.menu-heading{margin-bottom:10px;margin-right:44px}#settings h3{margin:12px 0 6px}.levels button{min-height:38px;padding-block:8px}.records,.menu-actions{margin-top:10px}.records th,.records td{padding-block:4px}#settings details{margin-top:8px;padding-top:8px}}
