/* Physical props inherited from the first edition. */
.physical-box{margin:28px auto 0;width:min(100%,430px);padding:26px 25px 21px;position:relative;border-radius:9px;background:repeating-linear-gradient(91deg,#a4783b11 0px,#e4bc7311 1px,#0000 2px,#0000 5px),linear-gradient(120deg,#ae854a,#513b23 24%,#aa844e 26%,#73572f 55%,#b99454 72%,#49371f);box-shadow:0 14px 22px #0007,inset 0 2px 3px #f4d99f,inset 0 -5px 6px #271c10;border:1px solid #c5a16a;isolation:isolate}
.physical-box:before,.physical-box:after{content:'';position:absolute;inset:10px;border:1px solid #372719;border-radius:4px;pointer-events:none;z-index:-1;box-shadow:0 1px 0 #e2c38b88}
.physical-box:after{inset:14px;border-color:#e4c18d55;box-shadow:none}
.box-corner{position:absolute;width:7px;height:7px;border-radius:50%;background:linear-gradient(130deg,#e3ca92,#654826);box-shadow:0 1px 2px #0008;z-index:2}
.box-corner:after{content:'';position:absolute;width:5px;left:1px;top:3px;border-top:1px solid #71512f;transform:rotate(-25deg)}
.box-corner.tl{top:17px;left:17px}
.box-corner.tr{top:17px;right:17px}
.box-corner.bl{bottom:17px;left:17px}
.box-corner.br{bottom:17px;right:17px}
.box-lid{text-align:center;color:#302417;text-shadow:0 1px #efdba377;padding:0 0 15px;border-bottom:2px solid #3a281b;transform-origin:50% 0;transition:transform 1s,opacity .8s;position:relative;z-index:2}
.box-engraving{font:10px var(--mono);letter-spacing:3px}
.box-ornament{display:block;font-size:13px;letter-spacing:3px;margin-top:11px;opacity:.65}
.box-secret{position:absolute;left:50%;top:30px;width:115px;height:55px;transform:translateX(-50%);opacity:0;transition:opacity 1s;background:radial-gradient(ellipse,#b380f1b3,transparent 70%);text-align:center;z-index:-1}
.box-secret>span{display:block;width:60px;margin:auto;background:linear-gradient(90deg,#151922,#697080,#1b2029);border:2px solid #adb2bc;border-radius:7px;color:#bda0ed;font:11px var(--mono);padding:7px;transform:rotate(-12deg);box-shadow:0 0 28px #b17fff}
.box-secret i{display:block;width:30px;height:25px;background:#bf9aeb;margin:auto;filter:blur(15px)}
.unlocked .box-lid{transform:perspective(250px) rotateX(85deg);opacity:.35}
.unlocked .box-secret{opacity:1}
.wheel-lock{display:flex;gap:17px;justify-content:center;padding:15px 0 18px}
.lock-wheel{width:66px;text-align:center}
.lock-wheel>button{background:#201b15c4;color:#e4c997;border:1px solid #a28351;display:block;width:100%;height:31px;font-size:23px;line-height:23px;border-radius:3px;box-shadow:0 2px 4px #0005}
.lock-wheel>button:hover{background:#48351d}
.lock-drum{height:119px;overflow:hidden;position:relative;background:linear-gradient(#171511,#8c8069 14%,#ddd0ad 43%,#c8b990 57%,#796c55 84%,#13120f);margin:5px 0;border:2px solid #332519;border-radius:4px;box-shadow:inset 2px 0 6px #0009,inset -2px 0 6px #0009;touch-action:none;cursor:ns-resize;user-select:none}
.lock-drum:after{content:'';position:absolute;inset:41px -3px;border-top:1px solid #f2dfb7bb;border-bottom:1px solid #6a583d80;height:37px;pointer-events:none}
.lock-drum input{position:absolute;left:0;top:37px;height:45px;width:100%;padding:0;border:0;text-align:center;color:#29261e;font:33px var(--mono);font-weight:700;background:transparent;cursor:ns-resize;outline-offset:-3px;caret-color:#5a3428;border-radius:0}
.drum-prev,.drum-next{position:absolute;left:0;width:100%;text-align:center;font:25px var(--mono);color:#29251f70;user-select:none}
.drum-prev{top:2px}
.drum-next{bottom:0}
.brass-latch{width:100%;min-height:48px;padding:12px 15px;display:flex;justify-content:center;align-items:center;gap:12px;font-size:12px;font-weight:700;background:linear-gradient(175deg,#dec38e,#a9884f 45%,#c1a16b 48%,#a38148);color:#2b2419;border:1px solid #f1daa6;border-bottom:3px solid #674c2e;border-radius:4px;box-shadow:0 4px 9px #0006,inset 0 1px 1px #fff7;text-shadow:0 1px #f3dda666;transition:filter .15s,transform .1s}
.brass-latch:hover{filter:brightness(1.14)}
.brass-latch:active{transform:translateY(2px);box-shadow:0 1px 5px #0005}
.latch-notch{display:block;width:6px;height:16px;border:1px solid #655032;border-radius:3px;box-shadow:1px 0 0 #e7ce9a}
.uv-stage{margin-top:23px;position:relative;border:1px solid #6a577f;border-radius:5px;overflow:hidden;box-shadow:inset 0 0 20px #0008,0 9px 35px #0005;background:#10151e}
.uv-stage canvas{width:100%;display:block;cursor:none;touch-action:none;outline-offset:-4px}
.uv-device{position:absolute;left:12px;bottom:10px;display:flex;gap:6px;align-items:center;font:7px var(--mono);color:#cbafe3;pointer-events:none;background:#151322c9;padding:6px}
.uv-device i{width:4px;height:4px;border-radius:50%;background:#b79adb;box-shadow:0 0 6px #bc83ed}
.scan-count{position:absolute;right:12px;top:10px;font:8px var(--mono);color:#d0b4f0;pointer-events:none}
.fully-revealed{border-color:#b08dd3;box-shadow:0 0 30px #9a6ec321}
.found-symbols{display:flex;align-items:center;justify-content:center;gap:11px;margin-top:19px}
.found-symbols>span{width:54px;height:50px;border:1px solid #554d5d;color:#655e6a;background:#17171b;display:grid;place-items:center;font-size:29px;border-radius:3px;transition:all .3s}
.found-symbols>span.discovered{color:#dbbffa;border-color:#a27dc8;box-shadow:inset 0 0 20px #b07ee022}
.found-symbols>i{font-size:13px;color:#9c7eaf;font-style:normal}
.guided-scan{display:block!important;text-align:center;margin:13px auto 0;color:#a89a87!important;font-size:11px!important;min-height:35px;text-decoration:underline}
.circuit-prop{margin-top:22px;border:1px solid #a98a54;padding:20px 20px 22px;background:repeating-linear-gradient(5deg,#a88a5207 0 2px,#0000 2px 6px),linear-gradient(135deg,#574630,#2c261d 45%,#51402a);border-radius:5px;box-shadow:0 12px 22px #0006,inset 0 1px 2px #e4bd7680}
.circuit-lamp{display:flex;align-items:center;gap:8px;justify-content:center;font:7px/1.7 var(--mono);letter-spacing:.6px;color:#b6a27d;margin:0 0 22px}
.circuit-lamp>i{display:block;width:7px;height:7px;background:#523c20;border-radius:50%;border:1px solid #b79760;box-shadow:inset 0 1px 2px #21190f}
.powered .circuit-lamp>i{background:#e2c57f;box-shadow:0 0 14px #ffdc8c}
.circuit-slots{display:flex;align-items:center;gap:0;justify-content:space-between;margin:0 0 22px}
.circuit-slot{position:relative;flex:0 0 20%;height:76px;max-width:85px;border:2px solid #241d14;border-radius:5px;background:radial-gradient(ellipse,#15130f,#29241b);box-shadow:inset 0 2px 8px #000b,0 1px 0 #dec28a66;color:#746141;transition:all .2s}
.circuit-slot small{position:absolute;top:5px;left:6px;font:7px var(--mono);color:#6f6048}
.circuit-slot>span{font-size:32px;display:block;color:#7a664a}
.circuit-slot.filled{background:linear-gradient(145deg,#9a7c49,#5f4b2f);border-color:#b4965a;box-shadow:inset 0 1px 0 #e4cb97,0 3px 5px #0007}
.circuit-slot.filled>span{color:#f2dba9;text-shadow:0 1px 4px #20160f}
.circuit-slot.drop-over{outline:2px solid #edcb91;outline-offset:3px;background:#8d7042}
.circuit-wire{height:4px;flex:1;background:#b08b4d;border-top:1px solid #dac080;border-bottom:2px solid #48371f;box-shadow:0 1px 3px #0009}
.powered .circuit-wire{background:#fff4b8;box-shadow:0 0 14px #ffdb6b}
.powered .circuit-slot{box-shadow:inset 0 0 15px #eeb75d55,0 0 18px #ffcb533b;border-color:#f3cd88}
.token-tray{display:flex;justify-content:space-between;gap:11px;padding:18px 0 23px;border-top:1px solid #a5885344}
.circuit-token{min-width:0;flex:1;background:linear-gradient(140deg,#d3b57d,#8a683b);border:1px solid #dfc799;border-bottom:3px solid #514022;border-radius:5px;padding:8px 3px 7px;color:#2b231a;box-shadow:0 5px 8px #0006;cursor:grab;touch-action:none;user-select:none}
.circuit-token>span{display:block;font-size:33px;line-height:1.3;text-shadow:0 1px #f4dca1}
.circuit-token>small{display:block;font:7px var(--mono);letter-spacing:1px;margin-top:6px}
.circuit-token.in-use{opacity:.3;filter:saturate(.5)}
.circuit-token:hover{filter:brightness(1.12)}
.token-ghost{position:fixed;width:75px;min-width:75px;height:84px;transform:translate(-50%,-50%) rotate(-7deg);z-index:100;pointer-events:none;opacity:.95;box-shadow:0 15px 30px #0008;cursor:grabbing}
.keeper-clock{width:278px;height:278px;max-width:100%;border-radius:50%;padding:16px;margin:24px auto 14px;background:repeating-conic-gradient(from 5deg,#d0ae70 0deg,#c09a5b 4deg,#604828 7deg,#967642 10deg);box-shadow:0 0 0 2px #3d2b19,0 0 0 5px #aa8953,0 14px 25px #0009,inset 0 2px 4px #ffe2a5,inset 0 -3px 4px #302418;touch-action:none;cursor:grab;transition:box-shadow .5s}
.clock-inner{width:100%;height:100%;position:relative;border-radius:50%;background:radial-gradient(ellipse at 40% 35%,#efe3c7,#cabb97 60%,#a08c65 100%);box-shadow:inset 0 0 22px #3c2c2480,0 0 0 2px #7b5d32;overflow:hidden}
.clock-tick{position:absolute;inset:7px;transform:rotate(var(--tick));pointer-events:none}
.clock-tick:before{content:'';display:block;position:absolute;left:calc(50% - .5px);top:0;height:5px;width:1px;background:#716346}
.clock-tick.major:before{height:9px;width:2px;background:#493c29;left:calc(50% - 1px)}
.face-number{position:absolute;inset:0;transform:rotate(var(--number));pointer-events:none}
.face-number>b{position:absolute;top:22px;left:calc(50% - 13px);width:26px;display:block;text-align:center;font:17px Georgia,serif;font-weight:600;color:#4c3b25;transform:rotate(calc(-1 * var(--number)))}
.clock-signature{position:absolute;left:0;right:0;top:66%;text-align:center;font:7px var(--mono);letter-spacing:1px;color:#8a704c;pointer-events:none}
.clock-signature>small{font-size:5px;line-height:2.8;letter-spacing:.3px}
.physical-hand{position:absolute;left:calc(50% - 14px);bottom:50%;width:28px;border:0;background:none;transform-origin:50% 100%;padding:0;cursor:grab;touch-action:none;z-index:3;min-height:0}
.physical-hand>i{height:100%;width:5px;margin:auto;display:block;background:linear-gradient(90deg,#292621,#6c624e 45%,#211c17);clip-path:polygon(50% 0,100% 25%,65% 35%,75% 100%,25% 100%,35% 35%,0 25%);filter:drop-shadow(2px 2px 1px #0008)}
.physical-hand.hour-hand{height:65px}
.physical-hand.hour-hand>i{width:8px}
.physical-hand.minute-hand{height:92px;z-index:4}
.physical-pivot{position:absolute;top:calc(50% - 6px);left:calc(50% - 6px);width:12px;height:12px;border-radius:50%;background:radial-gradient(circle at 35% 25%,#ffe3a8,#a17a40 55%,#4a351b);box-shadow:1px 2px 2px #0007;z-index:5;pointer-events:none}
.clock-readout{font:16px var(--mono);color:var(--gold);text-align:center;letter-spacing:4px;margin:18px 0}
.clock-unlocked{box-shadow:0 0 0 2px #e6c58b,0 0 0 5px #aa8953,0 0 50px #ddaf4e6b,inset 0 2px 4px #ffe2a5}
.time-controls{gap:16px}
.time-controls select{padding:10px 19px;background:#18191b;border-radius:3px;border-color:#6e604c;font-size:16px;min-width:100px}
.time-controls label{font-size:9px}
.turning-key{font-size:25px;line-height:20px;display:inline-block;transform-origin:55% 50%;transition:transform .6s}
.turning .turning-key{transform:rotate(95deg)}
.prop-shake{animation:prop-shake .34s ease}
@keyframes prop-shake{0%,100%{transform:translateX(0)}20%{transform:translateX(-5px) rotate(-.5deg)}40%{transform:translateX(5px) rotate(.5deg)}60%{transform:translateX(-3px)}80%{transform:translateX(2px)}}
@media(max-width:650px){
.physical-box{padding:23px 20px 20px;margin-top:22px}
.box-engraving{font-size:8px;letter-spacing:2px}
.box-ornament{font-size:11px}
.wheel-lock{gap:13px;padding:13px 0 17px}
.lock-wheel{width:61px}
.lock-wheel>button{height:34px}
.lock-drum{height:110px}
.lock-drum input{top:32px;font-size:30px}
.lock-drum:after{inset:37px -3px;height:32px}
.drum-prev,.drum-next{font-size:24px}
.brass-latch{font-size:11px;padding:12px;min-height:48px}
.uv-stage{margin-top:20px}
.uv-device{font-size:5px;left:6px;bottom:6px;padding:4px}
.scan-count{font-size:7px;right:8px;top:8px}
.found-symbols{gap:8px;margin-top:15px}
.found-symbols>span{width:43px;height:43px;font-size:25px}
.found-symbols>i{font-size:11px}
.circuit-prop{padding:17px 12px 19px}
.circuit-lamp{font-size:6px;letter-spacing:.2px;margin-bottom:18px}
.circuit-slot{height:61px}
.circuit-slot>span{font-size:27px}
.circuit-slot small{font-size:6px;top:4px;left:4px}
.token-tray{gap:8px;padding:18px 0}
.circuit-token>span{font-size:27px}
.circuit-token>small{font-size:6px;letter-spacing:.6px}
.circuit-token{padding:7px 2px}
.keeper-clock{width:248px;height:248px;padding:14px;margin-top:25px}
.physical-hand.minute-hand{height:81px}
.physical-hand.hour-hand{height:58px}
.face-number>b{font-size:16px;top:19px}
.clock-signature{font-size:6px}
.clock-signature>small{font-size:4px}
.time-controls select{font-size:16px;min-width:93px;padding:10px 16px}
.time-controls label{font-size:8px}
.clock-readout{font-size:16px}
}
@media(max-width:365px){
.keeper-clock{width:225px;height:225px}
.physical-hand.minute-hand{height:73px}
.physical-hand.hour-hand{height:51px}
}
@media(prefers-reduced-motion:reduce){
.audio-meter i,.prop-shake{animation:none!important}
.physical-box *,.physical-hand,.turning-key{transition:none!important}
}
