.simulation-preview.temple-preview{--card-padding:0;padding:0;overflow:hidden;border-color:#244a69;background:#071b34;box-shadow:0 14px 45px -20px #102e6060;color:#fff}
.temple-intro{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 23px 15px}
.temple-kicker{display:block;color:#8ecad6;font-family:var(--font-secondary);font-size:.875rem;line-height:1.5}
.temple-intro h4{margin:5px 0 0;color:#fff;font-family:var(--font-main);font-size:1.65rem;font-weight:700;line-height:1.15;letter-spacing:-.025em}
.temple-mission{flex:none;padding:9px 11px;border:1px solid #b9e6ed38;border-radius:10px;color:#f8d69a;background:#f3c57709;font-family:var(--font-main);font-size:.875rem;line-height:1.35;text-align:center}
.temple-mission strong{display:block;font-size:1.35rem;font-weight:700}
.temple-quest{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;gap:10px;padding:0 23px 16px;color:#a9c9dc;font-size:.875rem;line-height:1.5}
.temple-quest>span:first-child{color:var(--temple-accent,#72e8ed)}
.temple-gems{display:flex;align-items:center;gap:5px;padding:0 2px}
.temple-gems i{display:block;width:10px;height:15px;clip-path:polygon(50% 0,100% 35%,83% 80%,50% 100%,17% 80%,0 35%);background:#34516b;transition:background .2s,filter .2s}
.temple-gems i.is-earned{background:#acf5e3;filter:drop-shadow(0 0 4px #81ffe6)}
.temple-quest>span:last-child{white-space:nowrap}
.temple-stage{position:relative;isolation:isolate;width:100%;aspect-ratio:1.18;min-height:300px;background:radial-gradient(ellipse at 50% 38%,#174762 0%,#0a263e 40%,#06152c 80%);overflow:hidden}
.temple-stage::before{content:'';position:absolute;left:15%;right:15%;bottom:12%;height:14%;border-radius:50%;background:#2c9bae12;filter:blur(18px);pointer-events:none}
.temple-viewport{position:absolute;inset:0;z-index:1;touch-action:pan-y pinch-zoom;cursor:crosshair}
.temple-viewport:focus-visible{outline:2px solid #c3ffef;outline-offset:-5px;border-radius:5px}
.temple-viewport canvas{display:block;width:100%;height:100%}
.temple-loading{position:absolute;inset:0;z-index:2;display:grid;place-items:center;padding:32px;font-size:1rem;color:#bddce9;text-align:center}
.temple-width-label,.temple-length-label{position:absolute;z-index:2;transform:translate(-50%,-50%);pointer-events:none;white-space:nowrap;padding:5px 9px;border:1px solid #c9faff55;border-radius:7px;background:#082239d9;color:#cdfbff;font-family:var(--font-main);font-size:.875rem;font-weight:700;box-shadow:0 4px 12px #0002}
.temple-width-label{left:50%;top:77%}.temple-length-label{left:81%;top:61%}
.temple-scene-caption{position:absolute;z-index:2;left:20px;bottom:15px;max-width:calc(100% - 80px);margin:0;color:#a9c9dc;font-size:.875rem;line-height:1.5;pointer-events:none}
.temple-reward{position:absolute;z-index:3;top:12px;left:50%;width:max-content;max-width:calc(100% - 26px);transform:translateX(-50%);padding:12px 18px;border:1px solid #c6ffe77a;border-radius:13px;background:#0b2e3bf2;box-shadow:0 8px 24px #020d2750;color:#d3fff2;text-align:center;pointer-events:none}
.temple-reward strong{display:block;font-family:var(--font-main);font-size:1.0625rem;line-height:1.3}
.temple-reward span{display:block;margin-top:4px;color:#f9d492;font-size:.875rem;line-height:1.4}
.temple-pause{position:absolute;z-index:3;right:16px;bottom:14px;display:grid;place-items:center;width:38px;height:38px;padding:9px;border:1px solid #b2e6fb60;border-radius:50%;background:#0a2741;color:#c8e9f8;cursor:pointer}
.temple-pause svg{width:18px;height:18px}
.temple-pause:hover{background:#16405d}
.temple-charge{display:flex;align-items:center;gap:12px;margin:0 23px;padding:15px 0 17px;border-bottom:1px solid #8aadc62b}
.temple-charge-track{flex:1;height:5px;overflow:hidden;border-radius:10px;background:#2a455f}
.temple-charge-fill{display:block;width:0;height:100%;border-radius:inherit;background:#76e7e3;box-shadow:0 0 9px #76e7e38f;transition:width .12s linear}
.temple-charge-count{flex:none;color:#b8d6e7;font-family:var(--font-main);font-size:.875rem;line-height:1.4}
.temple-charge-count strong{color:#d2ffff;font-size:1.15rem}
.temple-controls{padding:19px 23px 22px}
.temple-dimensions{display:grid;grid-template-columns:1fr 1fr;gap:25px}
.temple-dimension label{display:flex;align-items:center;justify-content:space-between;gap:9px;color:#adc9dc;font-size:.875rem;line-height:1.5}
.temple-dimension output{color:#eefbff;font-family:var(--font-main);font-size:1rem;font-weight:700;white-space:nowrap}
.temple-dimension input{display:block;width:100%;height:32px;margin:8px 0 0;accent-color:#7ee8df;cursor:pointer}
.temple-equation{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 17px;padding:14px;border:1px solid #80d4dd36;border-radius:10px;background:#2d657921;color:#b6d2e0;font-size:.875rem;line-height:1.5}
.temple-equation strong{color:#cffbf4;font-family:var(--font-main);font-weight:700;font-size:1.2rem;white-space:nowrap}
.temple-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.temple-actions button{min-height:46px;padding:11px 12px;border:1px solid #93c2d83d;border-radius:9px;background:transparent;color:#e8f6ff;font-family:var(--font-main);font-size:.9375rem;font-weight:700;line-height:1.4;cursor:pointer}
.temple-actions button:first-child{border-color:#e8344c;background:#ed2842;color:#fff;box-shadow:0 5px 14px #f01e3b20}
.temple-actions button:hover{border-color:#a6dadd;background:#17415a}
.temple-actions button:first-child:hover{background:#d31e37;border-color:#d31e37}
.temple-tools{display:grid;grid-template-columns:1fr 1.1fr 1fr;gap:8px;align-items:center;margin-top:13px}
.temple-tools button{min-height:44px;padding:5px 2px;border:0;border-radius:6px;background:transparent;color:#bdd9e6;font-size:.875rem;line-height:1.5;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.temple-tools button:hover{background:#21485c;color:#fff}
.temple-tools button:disabled{opacity:.45;cursor:default;background:transparent;text-decoration:none}
.temple-tools button[aria-pressed=true]{color:#c3ffe8}
.temple-tools>span{color:#8dafc5;font-size:.875rem;line-height:1.5;text-align:center}
.temple-next{display:block;width:100%;min-height:48px;margin-top:17px;padding:12px;border:1px solid #a1efdd;border-radius:9px;background:#a1efdd;color:#09283b;font-family:var(--font-main);font-size:1rem;font-weight:700;line-height:1.5;cursor:pointer}
.temple-next:hover{background:#c3ffef}
.temple-status{min-height:4.8em;margin:16px 0 0;color:#adc9dc;font-size:.9375rem;line-height:1.6}
.temple-preview[data-state=unlocked] .temple-status{color:#b5f1d9}
.temple-preview[data-state=unlocked] .temple-mission{border-color:#80eed67a;color:#b2ffe8;background:#64e0b90c}
.temple-controls button:focus-visible,.temple-controls input:focus-visible,.temple-pause:focus-visible{outline:3px solid #b5fff0;outline-offset:4px}
@media(max-width:600px){.temple-intro{padding:19px 17px 12px;gap:10px}.temple-intro h4{font-size:1.45rem}.temple-kicker{font-size:.875rem}.temple-mission{padding:8px;font-size:.8125rem}.temple-mission strong{font-size:1.15rem}.temple-stage{aspect-ratio:.94;min-height:290px}.temple-controls{padding:17px}.temple-charge{margin:0 17px}.temple-dimensions{gap:17px}.temple-equation{padding:12px;gap:8px}.temple-equation strong{font-size:1.1rem}.temple-equation>span{max-width:85px}.temple-actions{grid-template-columns:1fr}.temple-status{min-height:0}.temple-scene-caption{left:15px;bottom:17px;font-size:.8125rem}.temple-pause{right:12px}.temple-preview .simulation-link{padding:16px 17px}}
@media(prefers-reduced-motion:reduce){.temple-charge-fill{transition:none}}
@media(max-width:600px){.temple-quest{padding:0 17px 14px;gap:8px}.temple-reward{padding:10px 12px}.temple-reward strong{font-size:1rem}}
