.cw-recipe{flex-shrink:0;text-align:center;background:linear-gradient(135deg,#fff5da,#e8d59e);border:2px solid #e5c273;border-radius:10px;color:#173d3b;padding:5px;box-shadow:0 3px 12px #091f2788}.cw-recipe b,.cw-recipe span{display:block}.cw-recipe b{font-size:11px;letter-spacing:.1em}.cw-recipe span{font-size:12px;font-weight:800}.cw-mix-scene{display:flex;align-items:center;justify-content:center;gap:8px;min-height:75px;flex:1}.cw-mix-vial{position:relative;isolation:isolate;height:100%;max-height:145px;aspect-ratio:1;display:grid;place-items:center;filter:drop-shadow(0 6px 5px #061820b0)}.cw-mix-vial:before{content:'';position:absolute;inset:18%;border-radius:50%;background:radial-gradient(circle,#fff1a999,transparent 70%);animation:cw-glow 3s ease-in-out infinite}.cw-mix-vial>.cw-prop{width:100%;z-index:1;filter:drop-shadow(0 5px 3px #00182088)}.cw-liquid{position:absolute;z-index:2;left:32%;right:32%;bottom:25%;height:calc(var(--fill) * .38);max-height:38%;border-radius:20% 20% 40% 40%;background:linear-gradient(90deg,#dd8a2066,#fff3a7bb,#ca5c3b88);mix-blend-mode:screen;transition:height .5s ease}.cw-mix-vial strong{position:absolute;z-index:3;bottom:0;background:#103a46e8;border-radius:8px;padding:2px 6px;white-space:nowrap;font-size:11px}.cw-mix-spark{position:absolute;z-index:4;color:#fff0ae;text-shadow:0 0 8px #ffd06e;animation:cw-float 2.4s ease-in-out infinite;font-style:normal}.cw-mix-spark.s1{top:12%;left:12%}.cw-mix-spark.s2{top:35%;right:4%;animation-delay:-.8s}.cw-mix-spark.s3{bottom:28%;left:4%;animation-delay:-1.5s}.cw-mix-scene .cw-meters{flex:1;max-width:210px;display:grid;gap:3px}.cw-mix-scene .cw-meters>div{display:grid;grid-template-columns:1fr auto;align-items:center;text-align:left;padding:3px 7px}.cw-mix-scene .cw-meters meter{grid-column:1/-1;height:5px}.cw-mix-scene .cw-meters strong{width:auto;font-size:14px}.cw-mix-scene .cw-meters strong small{font-size:10px}.cw-aroma-instruction{margin:0;text-align:center;font-size:10px;line-height:1.2;color:#fff3d8}.cw-bottles{min-height:104px;max-height:185px;perspective:600px}.cw-bottles .cw-bottle-slot>button{background:linear-gradient(155deg,#315c65e8,#0c303df0);border:1px solid #eacb8177;box-shadow:inset 1px 1px 2px #fff8c844,0 5px 7px #001a27aa;transform:rotateX(5deg);transition:transform .18s,box-shadow .18s}.cw-bottles .cw-bottle-slot>button:active{transform:rotateX(3deg) translateY(3px) scale(.97);box-shadow:inset 0 2px 6px #00151a}.cw-bottle-art{position:relative;display:block;filter:drop-shadow(0 5px 3px #051821bb)}.cw-bottle-art i{position:absolute;inset:15% 25% 40% 48%;border-radius:50%;background:linear-gradient(110deg,#ffffffaa,transparent 58%);transform:rotate(20deg);pointer-events:none}.cw-moved .cw-mix-vial .cw-prop{animation:cw-mix-pulse .45s ease-out}.cw-moved .cw-mix-spark{animation:cw-drop-spark .65s ease-out}.cw-bottles .cw-dropper button{background:#285865;box-shadow:0 3px 4px #001b28aa}@keyframes cw-glow{50%{transform:scale(1.2);opacity:.55}}@keyframes cw-float{50%{transform:translateY(-6px);opacity:.5}}@keyframes cw-mix-pulse{50%{transform:scale(1.1) rotate(-3deg);filter:brightness(1.4) drop-shadow(0 0 12px #ffda80)}}@keyframes cw-drop-spark{0%{transform:translateY(12px) scale(.3);opacity:0}50%{opacity:1}100%{transform:translateY(-15px) scale(1.3);opacity:0}}@media(max-height:650px){.cw-recipe{padding:3px}.cw-recipe span{font-size:11px}.cw-mix-scene{min-height:60px}.cw-bottles{min-height:95px}.cw-bottles .cw-prop{height:38px}.cw-aroma-instruction{font-size:10px}}@media(prefers-reduced-motion:reduce){.cw-mix-scene *,.cw-bottles *{animation:none!important;transition:none!important}}

.clockwork-playing .game-layout{height:100%;display:block;max-width:520px;margin:0 auto}.clockwork-playing .stage-sidebar,.clockwork-playing .wind-quick-tools,.clockwork-playing #game-note{display:none}.clockwork-playing .cw-card{height:100%;display:flex;flex-direction:column;box-sizing:border-box;padding:8px!important;gap:4px;overflow:visible;background:#f7f0df}.clockwork-playing #play-content{padding-bottom:0}.clockwork-playing .stage-top{flex:0 0 auto;min-height:28px}.clockwork-playing .stage-top>span:first-child{max-width:58%;font-size:10px}.clockwork-playing .wind-stage-picker{min-height:36px;font-size:11px}.clockwork-playing .quest-title-row{flex:0 0 auto}.clockwork-playing .cw-card h1{font-size:21px!important;line-height:1.1;margin:0!important}.clockwork-playing .cw-card>.instruction{font-size:12px!important;margin:0 0 3px!important;line-height:1.3}.cw-board.game-board{display:block;flex:1;min-height:0;margin:0;padding:0;aspect-ratio:auto;width:100%;border:0;background:none;touch-action:manipulation}.cw-room{height:100%;position:relative;isolation:isolate;display:flex;flex-direction:column;gap:5px;padding:7px;box-sizing:border-box;border:1px solid #c2a36e;border-radius:15px;color:#fff3d2;background:linear-gradient(#082c3899,#0b2e3ae0),url('assets/clockwork-scene.webp') center/cover;font:600 12px/1.3 Nunito,system-ui,sans-serif;box-shadow:inset 0 0 35px #041f2c88}.cw-room *{box-sizing:border-box}.cw-room button{font:inherit;color:#fff3d2;min-height:44px;min-width:44px;border:1px solid #b7975a91;border-radius:10px;padding:5px;background:#153d48eb;cursor:pointer;touch-action:manipulation;box-shadow:0 2px 4px #00192140}.cw-room button:hover{background:#28565b}.cw-room button:focus-visible{outline:3px solid #ffe19a;outline-offset:2px}.cw-room button:disabled{opacity:.4;cursor:default}.cw-room button[aria-pressed=true],.cw-room .chosen{border-color:#ffe5a3;box-shadow:0 0 0 2px #efd18a66,inset 0 0 22px #dbb75733}.cw-room .cw-primary{background:#287666;color:white;font-weight:850}.cw-top{display:flex;align-items:center;justify-content:space-between;flex:0 0 24px;letter-spacing:1px;font-size:10px}.cw-top>span:last-child{display:flex;gap:5px}.cw-top i{display:grid;place-items:center;font-style:normal;border:1px solid #f4d6a66b;border-radius:50%;width:23px;height:23px}.cw-top i.current{background:#f2d290;color:#163e42}.cw-top i.done{background:#287666}.cw-work{flex:1;min-height:0;display:flex;flex-direction:column;align-items:stretch;justify-content:space-evenly;gap:5px}.cw-goal{background:#f6edd6;color:#183e43;border-radius:9px;min-height:30px;padding:5px 8px;display:flex;align-items:center;justify-content:center;gap:9px;text-align:center;flex-shrink:0;font-size:12px}.cw-goal strong{white-space:nowrap}.cw-controls,.cw-toolbar{display:flex;gap:5px;justify-content:center;flex-shrink:0}.cw-controls>button,.cw-toolbar>button{flex:1}.cw-status{min-height:30px;flex:0 0 auto;font-size:11px;line-height:1.3;color:#fff0c9;text-align:center;padding:0 3px;display:grid;place-items:center}.cw-toolbar{flex:0 0 44px}.cw-toolbar button{font-size:11px}.cw-rule{font-size:11px;line-height:1.3;text-align:center;margin:0;color:#f7ebd6;flex-shrink:0}.cw-prop{display:block;aspect-ratio:1;flex-shrink:0;background:url('assets/clockwork-props.webp') var(--px) var(--py)/400% 400% no-repeat;filter:drop-shadow(0 4px 3px #001c2a55);pointer-events:none}.cw-sheet{position:absolute;inset:0;z-index:5;background:#0a293bdb;backdrop-filter:blur(6px);border-radius:14px;display:flex;align-items:center;justify-content:center;padding:12px}.cw-sheet[hidden]{display:none}.cw-sheet article{max-height:100%;overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;width:100%;text-align:center;background:#f9f0dc;color:#1c4246;border-radius:15px;padding:15px}.cw-sheet .cw-prop{width:70px;margin:0 auto}.cw-sheet h2{font-size:20px;margin:6px 0}.cw-sheet p{font-size:13px;line-height:1.5;text-align:left}.cw-sheet button{width:100%}.cw-sheet small{display:block;margin-top:8px}.cw-help-tip{padding:10px;background:#dce9d9;border-radius:9px}.cw-dots{display:grid;grid-template-columns:repeat(3,1fr);gap:2px}.cw-dots i{display:grid;place-items:center;width:16px;height:16px;border-radius:3px;border:1px solid #608782;background:#173f4b;color:#c8ddd9;font-size:9px;font-style:normal}.cw-dots i.on{background:#ffe19a;color:#493619}.cw-windows{display:grid;grid-template-columns:repeat(3,1fr);gap:1px;flex:1;min-height:65px;max-height:200px}.cw-window{position:relative;min-height:0;display:flex;justify-content:center;align-items:center;isolation:isolate}.cw-window .cw-prop{height:100%;max-width:85px;max-height:90px;filter:brightness(.65)}.cw-window.lit .cw-prop{filter:brightness(1.3) drop-shadow(0 0 10px #ffcd66)}.cw-window b{position:absolute;bottom:4px;background:#103947e8;border-radius:20px;padding:1px 5px;font-size:11px}.cw-window>span:last-child{position:absolute;font-size:26px;color:#fff1b3;text-shadow:0 0 12px #ffc251}.cw-shutters{display:flex;gap:5px;justify-content:center;flex-shrink:0}.cw-shutters button{display:flex;flex-direction:column;align-items:center;gap:2px;flex:1;max-width:70px}.cw-book{display:flex;gap:4px;justify-content:center;align-items:center;flex:1;min-height:64px;max-height:180px}.cw-page{flex:1;max-width:115px;position:relative;text-align:center}.cw-page .cw-prop{width:100%}.cw-page.back .cw-prop{filter:sepia(.8) hue-rotate(140deg)}.cw-page b{position:absolute;left:50%;top:40%;transform:translate(-50%,-50%);background:#f7ebd1f0;color:#163e42;border-radius:5px;padding:3px}.cw-page small{display:block;font-size:11px;line-height:1.3;overflow-wrap:anywhere;background:#123744}.cw-boxes{display:grid;grid-template-columns:repeat(3,1fr);gap:5px;align-content:center;flex:1;min-height:90px}.cw-box{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:2px!important;min-height:60px!important}.cw-box .cw-prop{height:clamp(35px,8vh,68px);max-width:100%;transition:transform .3s,filter .3s}.cw-box.open .cw-prop{transform:translateY(-5px);filter:brightness(1.4) drop-shadow(0 0 8px #f5c260)}.cw-box b{position:absolute;top:3px;left:5px}.cw-box>span:last-child{font-size:10px}.cw-chain{display:flex;align-items:center;justify-content:center;min-height:35px;gap:5px}.cw-chain .cw-prop{width:35px}.cw-chain>span:last-child{font-size:17px;line-height:1.4;overflow-wrap:anywhere}.cw-plugs{display:grid;grid-template-columns:repeat(4,1fr);gap:5px;flex:1;min-height:90px;max-height:180px}.cw-plugs button{position:relative;display:flex;align-items:center;justify-content:center;min-height:44px}.cw-plugs .cw-prop{max-height:70px;height:100%;max-width:100%}.cw-plugs b{position:absolute;bottom:2px;font-size:18px;background:#173a45e6;border-radius:7px;padding:0 5px}.cw-meters{display:flex;justify-content:space-around;gap:5px}.cw-meters>div{background:#143642d9;padding:5px;flex:1;border:1px solid #9eb3a366;border-radius:8px;text-align:center}.cw-meters span,.cw-meters strong,.cw-meters meter{display:block;width:100%}.cw-meters .matched{border-color:#9eddab}.cw-bottles{display:flex;gap:5px;flex:1;min-height:120px;max-height:210px;align-items:center}.cw-bottles>div{flex:1;min-width:0}.cw-bottles button{width:100%;padding:3px;display:flex;flex-direction:column;align-items:center;gap:1px}.cw-bottles .cw-prop{height:clamp(40px,10vh,85px);max-width:100%}.cw-bottles b{font-size:10px}.cw-bottles small{font-size:11px;white-space:nowrap}.cw-dropper{display:flex;gap:4px;align-items:center;margin-top:3px}.cw-dropper button{width:44px;min-width:44px;font-size:20px}.cw-dropper strong{flex:1;text-align:center}.cw-theatre{display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(5,1fr);aspect-ratio:1;align-self:center;flex:1;min-height:80px;max-height:260px;max-width:100%;height:100%;border:2px solid #c4ab73;border-radius:8px;gap:2px;background:#b4c7bc44;overflow:hidden}.cw-cell{position:relative;aspect-ratio:1;min-height:0;background:#16445199;display:grid;place-items:center}.cw-cell.snow{background:radial-gradient(ellipse at 35% 60%,#dae6dd 10%,#9bbbbb 30%,#426e77 70%);box-shadow:inset 0 2px 5px #deece799}.cw-cell.house{box-shadow:inset 0 0 0 3px #e8bd65;background:#9a714633}.cw-cell.house-1{box-shadow:inset 0 0 0 3px #94e7df;background:#367d8f55}.cw-cell small{position:absolute;right:2px;bottom:0;font-size:9px}.cw-cell .seal{position:absolute;width:60%;opacity:.9}.cw-fox{position:absolute;width:100%;transform:rotate(var(--direction));filter:drop-shadow(0 0 3px #f7d572);transition:transform .2s}.cw-fox .cw-prop{width:100%}.cw-fox.fox-1{filter:drop-shadow(0 0 4px #8dece8) hue-rotate(30deg)}.cw-program{display:flex;justify-content:center;gap:5px;flex:0 0 25px}.cw-program span{width:30px;border:1px solid #adbdab;border-radius:5px;display:grid;place-items:center;font-size:20px;background:#163e4a}.cw-program .current{background:#d3b269;color:#132f3b}.cw-mosaic{display:grid;grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(2,1fr);gap:8px;padding:16px;align-self:center;flex:1;min-height:120px;max-height:245px;aspect-ratio:1;max-width:100%;height:100%}.cw-tile{position:relative;aspect-ratio:1;min-height:44px!important;padding:0!important;border-radius:6px!important;background:#163f4999!important}.cw-tile .cw-prop{position:absolute;inset:0}.cw-tile .edge{position:absolute;font-size:19px;line-height:1;background:#0e3b48d9;border-radius:5px;padding:1px}.edge-0{top:2px;left:50%;transform:translateX(-50%)}.edge-1{right:2px;top:50%;transform:translateY(-50%)}.edge-2{bottom:2px;left:50%;transform:translateX(-50%)}.edge-3{left:2px;top:50%;transform:translateY(-50%)}.cw-tile .frame-edge{position:absolute;font-size:12px;background:#fff0cd;color:#173e43;padding:0 2px;border-radius:2px}.frame-edge.edge-0{top:-17px}.frame-edge.edge-1{right:-17px}.frame-edge.edge-2{bottom:-17px}.frame-edge.edge-3{left:-17px}.cw-machine{position:relative;display:flex;align-items:center;justify-content:center;flex:1;min-height:65px;max-height:180px}.cw-machine>.cw-gear{height:100%;max-height:150px;opacity:.9}.cw-machine>.cw-crystal{position:absolute;width:50px;filter:drop-shadow(0 0 15px #ffe7a0)}.cw-resources{position:absolute;inset:auto 0 0;display:flex;justify-content:space-between;gap:8px}.cw-resources span{background:#123845ed;border:1px solid #bfa574;border-radius:9px;padding:6px}.cw-resources b{display:block;font-size:18px}.cw-engine-controls{display:flex;gap:5px;flex-shrink:0}.cw-engine-controls>button{flex:1;display:flex;flex-direction:column;align-items:center;gap:1px}.cw-engine-controls .cw-prop{width:42px}.cw-engine-controls small{font-size:10px}.cw-win .cw-work{filter:drop-shadow(0 0 8px #ffe5a555)}.cw-win:after{content:'✦';position:absolute;left:40%;top:35%;font-size:70px;color:#ffe3a0;pointer-events:none;animation:cw-spark 1s ease-out both}.cw-moved .cw-work{animation:cw-breathe .35s ease-out}.cw-suspended *,.cw-hidden *{animation-play-state:paused!important}.cw-suspended .cw-room{pointer-events:none}@keyframes cw-spark{0%{opacity:0;transform:scale(.2) rotate(-40deg)}40%{opacity:1}100%{opacity:0;transform:scale(2) rotate(20deg)}}@keyframes cw-breathe{0%{filter:brightness(1.12)}100%{filter:brightness(1)}}@media(max-height:650px){.cw-room{padding:5px;gap:3px}.cw-status{min-height:28px;font-size:10px}.cw-work{gap:3px}.cw-goal{font-size:11px;min-height:27px;padding:3px}.cw-rule{font-size:10px}.cw-sheet .cw-prop{width:42px}.cw-sheet article{padding:10px}.cw-sheet p{font-size:12px;margin:8px 0}.cw-engine-controls .cw-prop{width:28px}.cw-meters>div{padding:3px}.clockwork-playing .cw-card>.instruction{font-size:11px!important}.cw-tile .edge{font-size:16px}.cw-top{flex-basis:23px}.cw-box .cw-prop{height:36px}}@media(prefers-reduced-motion:reduce){.cw-room *{animation:none!important;transition:none!important}}
.cw-aroma-instruction{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0}.cw-mix-scene .cw-meters>div{column-gap:6px}.cw-mix-scene .cw-meters span{font-size:10px}.cw-mix-scene .cw-meters strong{white-space:nowrap;font-size:12px}
.cw-book-target{flex-shrink:0;text-align:center;padding:6px;border:1px solid #e9c880;border-radius:10px;background:linear-gradient(130deg,#fff6dd,#e8d6aa);color:#173e42;box-shadow:0 3px 9px #001b2c77}.cw-book-target span,.cw-book-target strong{display:block}.cw-book-target span{font-size:10px;letter-spacing:.08em;font-weight:900}.cw-book-target strong{font-size:16px;letter-spacing:.04em}.cw-book-tip{text-align:center;margin:0;font-size:11px;color:#fff3d2}.cw-book-dimensional{perspective:700px;gap:5px;max-height:210px}.cw-book-dimensional .cw-paper-button{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;flex:1;background:transparent;border:0;box-shadow:none;padding:1px;color:#fff4d5}.cw-book-dimensional button.cw-paper-button{cursor:pointer;touch-action:manipulation}.cw-paper-depth{display:block;position:relative;width:100%;aspect-ratio:1;transform:rotateX(12deg) rotateY(-8deg);transform-style:preserve-3d;filter:drop-shadow(0 8px 5px #061b23a8);transition:transform .22s ease}.cw-paper-depth:before,.cw-paper-depth:after{content:'';position:absolute;inset:13% 11% 10%;border-radius:3px;background:#d7c299;box-shadow:1px 2px 0 #a38b69,3px 4px 0 #e4d2b0,4px 6px 0 #887052;transform:translateZ(-5px) translate(calc(var(--layers) * 1px),calc(var(--layers) * 1px))}.cw-paper-depth:after{background:linear-gradient(120deg,#fff8e1,#e7d0a0);transform:translateZ(-2px) translate(2px,3px)}.cw-paper-face{position:absolute;inset:0;z-index:1;transform:translateZ(2px)}.cw-book-dimensional .cw-paper-face .cw-prop{width:100%;height:100%;filter:drop-shadow(0 2px 2px #3b302544)}.cw-book-dimensional .back .cw-paper-face .cw-prop{filter:sepia(.6) hue-rotate(140deg) saturate(.85) brightness(.9)}.cw-book-dimensional .cw-page b{top:42%;z-index:2;font-size:clamp(12px,3.5vw,18px);background:#fff9e4ed;border:1px solid #dbc69a;box-shadow:0 2px 4px #42351e44}.cw-paper-face i{position:absolute;right:17%;top:15%;font-style:normal;font-size:14px;color:#fff5bd;text-shadow:0 0 8px #ffcf69}.cw-book-dimensional .cw-page small{display:block;position:relative;z-index:2;border-radius:6px;padding:2px 3px;font-size:clamp(9px,2.5vw,11px);color:#fff4d5;line-height:1.2}.cw-book-dimensional .cw-page em{position:absolute;z-index:3;top:45%;font-style:normal;font-weight:900;color:#17453f;background:#fce5a8;border-radius:50%;width:23px;height:23px;display:grid;place-items:center;box-shadow:0 0 9px #ffe9a4}.cw-book-dimensional .cw-page:first-child em{left:-3px}.cw-book-dimensional .cw-page:last-child em{right:-3px}.cw-paper-button:active .cw-paper-depth{transform:rotateX(15deg) rotateY(25deg) scale(.93)}.cw-moved .cw-paper-depth{animation:cw-paper-fold .55s cubic-bezier(.2,.7,.2,1) both}.cw-moved .cw-paper-face i{animation:cw-paper-spark .65s ease-out both}@keyframes cw-paper-fold{0%{transform:rotateX(15deg) rotateY(-75deg) translateY(-12px);filter:brightness(1.5) drop-shadow(0 14px 6px #00182099)}65%{transform:rotateX(8deg) rotateY(12deg) translateY(2px)}100%{transform:rotateX(12deg) rotateY(-8deg) translateY(0)}}@keyframes cw-paper-spark{0%{opacity:0;transform:scale(.3)}45%{opacity:1;transform:scale(1.7)}100%{opacity:0;transform:translateY(-12px) scale(.5)}}@media(max-height:650px){.cw-book-target{padding:3px}.cw-book-target strong{font-size:13px}.cw-book-tip{font-size:10px}.cw-book-dimensional{max-height:130px}}@media(prefers-reduced-motion:reduce){.cw-book-dimensional *{animation:none!important;transition:none!important}}

.cw-fox .cw-prop{background-image:url('assets/clockwork-fox.webp');background-size:contain;background-position:center;background-repeat:no-repeat}
