body.relic-game{background:#08090c;color:#f7f7ef;font-family:Inter,sans-serif;color-scheme:dark}.relic-game main.shell{max-width:1130px}.relic-game button{font:inherit;cursor:pointer}.relic-game :focus-visible{outline:3px solid #fff000;outline-offset:4px}.relic-game ::selection{background:#fff000;color:#08090c}.tomb-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:26px 0}.tomb-heading h1{margin:0;font-size:clamp(27px,4vw,39px);letter-spacing:-.035em;line-height:1.15}.tomb-heading p{margin:8px 0 0;font-size:14px;color:#b5b9c2}.tomb-heading>a{font-size:13px;color:#e0e1db;text-underline-offset:5px}.tomb-layout{display:grid;grid-template-columns:minmax(340px,480px) minmax(270px,1fr);gap:clamp(30px,5vw,70px);align-items:start;justify-content:center}.tomb-machine{background:#000;max-width:480px;width:100%;position:relative;overflow:hidden;outline:1px solid #292b31}.tomb-hud{position:relative;background:#000}.tomb-hud>canvas{display:block;width:100%;height:auto;image-rendering:pixelated}.tomb-hud .icon-button{position:absolute;right:2.5%;top:12%;width:10%;height:76%;padding:0;border:0;background:#000;color:#fff000;display:grid;place-items:center}.icon-button svg{width:45%;height:auto;fill:currentColor}.tomb-screen{position:relative;background:#000;isolation:isolate}.tomb-screen>canvas{display:block;width:100%;height:auto;image-rendering:pixelated;touch-action:none;outline-offset:-3px}.tomb-overlay{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#000e8;text-align:center;padding:20px 28px;gap:0}.tomb-overlay[hidden]{display:none}.tomb-overlay>canvas{width:100%;max-width:400px;height:auto;image-rendering:pixelated;flex-shrink:0}.tomb-overlay h2{margin:8px 0 14px;font-size:22px;color:#fff000;letter-spacing:-.02em}.tomb-overlay p{font-size:14px;line-height:1.7;color:#dddccf;max-width:29ch;margin:0 0 26px}.tomb-overlay .pixel-button{min-height:52px;min-width:180px;padding:15px 24px;border:0;border-radius:0;background:#fff000;color:#080900;font-size:15px;font-weight:800;clip-path:polygon(5px 0,calc(100% - 5px) 0,calc(100% - 5px) 5px,100% 5px,100% calc(100% - 5px),calc(100% - 5px) calc(100% - 5px),calc(100% - 5px) 100%,5px 100%,5px calc(100% - 5px),0 calc(100% - 5px),0 5px,5px 5px)}.pixel-button:disabled{cursor:wait;background:#605b1b;color:#e6e0ab}.quiet-button{border:0;background:transparent;color:#d9d8b9;padding:15px 20px;min-height:44px;text-decoration:underline;text-underline-offset:5px}.quiet-button[hidden]{display:none}.tomb-controls{border-top:1px solid #24262d;display:flex;justify-content:space-between;gap:0;background:#0e1015}.tomb-controls button{display:flex;justify-content:center;align-items:center;gap:8px;background:transparent;border:0;color:#bec3cc;min-height:50px;padding:10px 14px;font-size:12px}.tomb-controls button:hover,.icon-button:hover{color:#fff000;background:#17180e}.tomb-controls svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:square;stroke-linejoin:miter}.tomb-controls button:active{background:#272919}.tomb-side{padding-top:5px}.stage-heading{display:flex;gap:15px;align-items:center;justify-content:space-between}.stage-heading h2{font-size:23px;letter-spacing:-.025em;margin:0}.stage-heading span{font-size:12px;font-weight:700;color:#e6df91;white-space:nowrap}.tomb-side>p{color:#afb7c3;font-size:14px;line-height:1.7;margin:16px 0 24px}.stage-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:7px}.stage-grid button{border:1px solid #343840;border-radius:0;background:transparent;color:#e1e5ec;min-height:58px;padding:7px 2px;font-size:15px;font-weight:700;position:relative}.stage-grid button small{display:block;font-size:10px;color:#fff000;min-height:13px;margin-top:4px;letter-spacing:1px}.stage-grid button.current{background:#fff000;color:#131400;border-color:#fff000}.stage-grid button.current small{color:#353700}.stage-grid button:hover:not(:disabled):not(.current){background:#252719;border-color:#b6b52a}.stage-grid button:disabled{border-color:#202329;color:#636a76;cursor:not-allowed}.stage-grid button:disabled small{color:#626976}.tomb-rule{border-top:1px solid #2a2d35;margin-top:30px;padding-top:25px}.tomb-rule h3{font-size:21px;letter-spacing:-.02em;margin:0 0 16px}.tomb-rule p{font-size:13px;color:#b4bac6;line-height:1.8;margin:17px 0}.keycaps{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.keycaps kbd{display:grid;place-items:center;width:30px;height:30px;border:1px solid #4b505a;font:inherit;font-size:17px;color:#e5e8ef}.keycaps span{font-size:11px;color:#aeb4bd;padding-left:5px}.tomb-side #status{color:#e7dc9d;font-size:12px;line-height:1.8;margin-top:25px;padding-top:15px;border-top:1px solid #2a2d35;min-height:48px}.tomb-guide{margin:46px 0 55px;border-top:1px solid #292c34;padding-top:28px}.tomb-guide h2{font-size:23px;letter-spacing:-.025em;margin:0 0 14px}.tomb-guide p{color:#afb7c3;font-size:14px;line-height:1.85;max-width:74ch}.tomb-guide .source-note{color:#89939f;font-size:12px;margin-top:20px}.touch-controls{display:none;gap:8px;justify-content:center;padding:12px;background:#11141a}.touch-controls button{border:1px solid #3c414c;background:#1b202a;color:#fff000;font-size:23px;width:52px;height:45px}.tomb-machine:fullscreen{height:100vh;width:auto;max-width:60vh;margin:auto;display:flex;flex-direction:column;justify-content:center}.tomb-machine:fullscreen .tomb-screen{max-height:85vh}.tomb-machine:fullscreen .tomb-screen>canvas{height:85vh;width:auto;max-width:100%;margin:auto}#resultStars{display:flex;gap:13px;justify-content:center;margin:0 0 22px}#resultStars[hidden]{display:none}#resultStars canvas{width:45px;height:45px;image-rendering:pixelated}.relic-game ::-webkit-scrollbar{width:9px;background:#11141a}.relic-game ::-webkit-scrollbar-thumb{background:#444939;border:2px solid #11141a}@media(min-width:900px) and (max-height:900px){.tomb-machine{max-width:370px;justify-self:center}.tomb-layout{grid-template-columns:minmax(300px,420px) minmax(280px,380px)}.tomb-hud .icon-button{min-height:30px}.tomb-heading{margin:17px 0}.tomb-controls button{min-height:44px}}@media(max-width:760px){.relic-game main.shell{padding-left:16px;padding-right:16px}.tomb-layout{grid-template-columns:1fr;gap:30px}.tomb-machine{max-width:390px;justify-self:center}.tomb-heading{margin:20px 0}.tomb-heading h1{font-size:29px}.tomb-heading>a{font-size:12px}.tomb-heading p{font-size:12px}.tomb-side{max-width:480px;justify-self:center;width:100%}.tomb-rule{margin-top:25px}.tomb-overlay h2{font-size:21px}.tomb-overlay p{font-size:13px}.tomb-controls button{padding:10px;font-size:11px}.tomb-guide{margin-top:30px}.tomb-hud .icon-button{min-height:35px}}@media(pointer:coarse){.touch-controls{display:flex}.tomb-hud .icon-button{min-width:44px;min-height:44px;right:0;top:0;height:100%}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
.visually-hidden{position:absolute!important;width:1px!important;height:1px!important;margin:-1px!important;padding:0!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.tomb-overlay{background:rgba(0,0,0,.93)}

.trap-guide{margin-top:26px;padding-top:23px;border-top:1px solid #2a2d35}.trap-guide[hidden]{display:none}.trap-guide h3{font-size:18px;margin:0 0 16px;letter-spacing:-.015em}.trap-guide ul{list-style:none;margin:0;padding:0}.trap-guide li{display:flex;align-items:flex-start;gap:12px;margin:0 0 20px}.trap-guide canvas{width:60px;height:50px;image-rendering:pixelated;flex-shrink:0}.trap-guide strong{display:block;font-size:13px;color:#f0f2ec;margin:0 0 5px}.trap-guide p{font-size:12px;line-height:1.75;color:#b4bac6;margin:0}.trap-phase{display:block;color:#6ee6e2;font-size:11px;line-height:1.6;margin-top:6px}.trap-phase[data-state=warning]{color:#fff8df}.trap-phase[data-state=active]{color:#03f3de;font-weight:750}

.stage-chapter{display:grid;gap:8px;margin:20px 0 14px;font-size:12px;color:#afb7c3}.stage-chapter select{width:100%;min-height:44px;padding:9px 12px;border:1px solid #343840;border-radius:0;background:#11141a;color:#f7f7ef;font:inherit;font-size:13px}.stage-brief{margin:24px 0 0}.stage-brief h3{font-size:17px;color:#fff000;margin:0 0 8px}.stage-brief p{font-size:13px;line-height:1.8;color:#b4bac6;margin:0}.tomb-journey{margin:35px 0 0;border-top:1px solid #292c34;padding:22px 0}.tomb-journey summary{color:#fff000;cursor:pointer;font-size:19px;font-weight:700;min-height:44px;line-height:1.5}.tomb-journey ol{padding:6px 0 0 23px;columns:2;column-gap:45px;max-width:1000px}.tomb-journey li{break-inside:avoid;margin:0 0 22px;padding-left:6px;color:#fff000;font-size:13px}.tomb-journey strong{color:#f7f7ef;font-size:14px}.tomb-journey p{color:#afb7c3;line-height:1.8;margin:7px 0 0}@media(max-width:760px){.tomb-journey ol{columns:1}}

.campaign-notice{font-size:12px;line-height:1.65;color:#fff1b3;padding:12px;background:#242011;}

.coin-replay{width:100%;margin:12px 0 8px;font-size:13px;padding:12px;}.coin-replay[hidden]{display:none;}
