/* Reference artwork palette. Geometry and control positions remain unchanged. */
:root{--gold:#ffdb60;--lilac:#d2a3ff;--line:#696783}
.scenery{background:radial-gradient(ellipse at 60% 35%,#67219055,transparent 60%),linear-gradient(#0d0e21,#211038 55%,#090d1d)}
.moon{opacity:.1}.mist{background:radial-gradient(ellipse,#7737bd2b,transparent 65%)}
.brand{color:#ffdc72;text-shadow:0 2px #854309,0 4px #241020,0 0 16px #bf60f733}.brand i{color:#db93ff}
.meters{background:linear-gradient(#121321ed,#080a17ed);border-color:#64617b;box-shadow:inset 0 2px 1px #c3bfd21a,0 4px 14px #0006}
.meters strong{color:#fff1b4}.meters>div:nth-child(2) strong{color:#f5d3ff}
.reel-frame{background:#44485e url('assets/slate-frame.svg') repeat;border-color:#62647f;border-radius:9px;box-shadow:inset 0 0 0 2px #9696ac,inset 0 0 0 4px #292f46,0 0 0 2px #171c32,0 0 0 3px #7a7a90,0 12px 30px #0008}
.corner{color:#a0a0b9;text-shadow:1px 2px #161b30}
.reels{background:#160526;border-radius:4px;gap:3px}
.reel{border-color:#190526;border-radius:3px;background:linear-gradient(90deg,#170522aa,transparent 45%,#18052aaa),url('assets/enchanted-stone.svg') center/100% 100%;box-shadow:inset 0 0 12px #080214b3}
.symbol{isolation:isolate;border-bottom-color:#11031b50;background:radial-gradient(ellipse at 50% 65%,#7c20b51f,transparent 75%)}
.symbol img,.symbol .placeholder,.symbol .letter{position:relative;z-index:1}
.symbol img{filter:drop-shadow(0 2px 2px #000b)}
.symbol.WITCH::before,.symbol.GIANT::before,.symbol.OGRE::before{content:"";position:absolute;z-index:0;inset:9% 7%;border:2px solid;border-radius:8px;background:linear-gradient(135deg,#26113833,#32104c22);pointer-events:none}
.symbol.WITCH::before{border-color:#97ff27;box-shadow:0 0 2px 1px #d4ff80,inset 0 0 3px #9dff54,0 0 7px #4dff00,0 0 13px #5bff0055}
.symbol.WITCH img{filter:drop-shadow(1px 0 #85ff26) drop-shadow(-1px 0 #85ff26) drop-shadow(0 -1px #9dff43) drop-shadow(0 0 4px #59ef00)}
.symbol.BLACK_CAT img{filter:drop-shadow(1px 0 #00dcff) drop-shadow(-1px 0 #00dcff) drop-shadow(0 -1px #53e8ff) drop-shadow(0 1px #1f7aff) drop-shadow(0 0 3px #119fff) drop-shadow(0 0 6px #7033ff)}
.symbol.GIANT::before{border-color:#ffd353;background:linear-gradient(#78778544,#32354799),url('assets/slate-frame.svg') center/150%;box-shadow:0 0 0 1px #8a570a,inset 0 0 0 1px #fff3a2,0 0 5px #ffb72980}
.symbol.GIANT img{filter:drop-shadow(1px 0 #ffd553) drop-shadow(-1px 0 #ffd553) drop-shadow(0 -1px #ffe48b) drop-shadow(0 0 2px #d69817)}
.symbol.OGRE::before{border-color:#a6acba;background:linear-gradient(#626c6e55,#252e3999),url('assets/slate-frame.svg') center/150%;box-shadow:inset 0 0 0 1px #e9e5f4,0 0 0 1px #202735,0 0 5px #b7a8ff66}
.symbol.OGRE img{filter:drop-shadow(1px 0 #8dff2f) drop-shadow(-1px 0 #8dff2f) drop-shadow(0 0 4px #6ce91699)}
.symbol.CAULDRON img{filter:drop-shadow(1px 0 #85f24f) drop-shadow(-1px 0 #85f24f) drop-shadow(0 0 4px #74ec34a6)}
.symbol.BROOMSTICK .placeholder{filter:drop-shadow(1px 0 #ffdf6f) drop-shadow(-1px 0 #ffc846) drop-shadow(0 0 5px #eeb63499)}
.symbol.WITCH_HAT .placeholder{filter:drop-shadow(1px 0 #ffde54) drop-shadow(-1px 0 #ffde54) drop-shadow(0 0 5px #b34dff)}
.symbol.WITCH_HAT svg path:first-child{fill:#8925ce}.symbol.WITCH_HAT svg path:nth-child(3){fill:#6a1baa}
.symbol .letter{-webkit-text-stroke:1px #351023;paint-order:stroke fill;text-shadow:1px 0 #ffdf68,-1px 0 #ffdf68,0 -1px #ffe47c,0 2px #391120,0 0 5px #aa24d833}
.symbol.K .letter{color:#ff3e9c}.symbol.Q .letter{color:#2bea64;text-shadow:1px 0 #a0ff7b,-1px 0 #a0ff7b,0 -1px #a0ff7b,0 3px #123720}.symbol.J .letter{color:#bd8dff}
.symbol small{color:#ffe060;background:#160622dd;border:1px solid #a3772166;text-shadow:0 1px #000;font-weight:900}
.symbol.OGRE small{color:#ffe56d;background:#161d17ed;border-color:#808b75}.symbol.WITCH_HAT small{background:#49107bed;color:#ffdf70}
.symbol.won{background:radial-gradient(#ffdc6f66,#992bd322);box-shadow:inset 0 0 9px #ffe680,0 0 12px #e84fff88}
.tower{position:relative;border:3px solid #ffce54;border-radius:10px;background:radial-gradient(ellipse at 50% 52%,#76289a77,transparent 65%),linear-gradient(90deg,#290d40,#180724 50%,#320c49);box-shadow:inset 0 0 0 1px #fff0a5,inset 0 0 15px #b236d549,0 0 0 1px #7e4b10,0 0 9px #b047ee55;opacity:1}
.tower.armed{border-color:#ffdf5e;box-shadow:inset 0 0 0 1px #fff5c7,inset 0 0 19px #d452ff66,0 0 0 1px #ffd361,0 0 8px #ffd63caa,0 0 18px #bc45ffc9,0 0 27px #9251ff77}
.tower h2{align-self:stretch;position:relative;color:#ffe767;font-family:Arial,sans-serif;font-weight:900;letter-spacing:0;text-shadow:1px 1px #16071f,-1px -1px #16071f,0 2px #16071f;background:linear-gradient(#cf56ff,#6e189c 45%,#35114f);border:1px solid #ffdb71;border-radius:6px;padding:3px 0;box-shadow:inset 0 0 0 1px #ffe9b66b,0 0 7px #c83dff77}
.tower-icon{color:#f6d865;text-shadow:0 0 8px #c468ff}
.rung{background:linear-gradient(#33104866,#1f0b3166);border-color:transparent;border-bottom:2px solid #b68423;border-radius:2px;color:#f2d681;box-shadow:0 1px #ffe28b55}
.rung small{color:#d7b4eb}
.rung.current{position:relative;border:2px solid #ffda60;border-radius:8px;color:#ffe263;background:linear-gradient(#d656ff,#8428c9 18%,#5c158e 70%,#8a25bf);box-shadow:inset 0 0 0 1px #ffeeb0,inset 0 0 0 3px #bd55f1,0 0 0 1px #854612,0 0 7px #e06bffb3;isolation:isolate}
.rung.current>span{font-weight:900;text-shadow:1px 1px #210720,-1px -1px #210720,0 2px #210720}
.rung.current>small{color:#fff0c1;font-weight:bold}
.rung.invitation span{color:#ffdf67}
.tower>small{color:#e9c3f3;letter-spacing:.3px}
.tower-foot{border:2px solid #666178;background:linear-gradient(#4a405f,#211b31 40%,#30213f);box-shadow:inset 0 0 0 1px #9990ac,inset 0 0 0 3px #151222,0 3px 8px #0006}
.tower-foot #guard b{color:#f6e2ff;text-shadow:0 1px #000}.tower-foot #side-cost{color:#d8c1e8}
#guard[aria-checked=true] .switch-track{background:#861fbe;border-color:#dc9bff;box-shadow:0 0 9px #be5eff99}
#guard[aria-checked=true] i{background:#e2bcff;box-shadow:0 0 5px #e0adff}
#cashout{background:linear-gradient(#bd46eb,#671099 70%,#9422ba);border:2px solid #ffdb66;box-shadow:inset 0 0 0 1px #ffe7a4,inset 0 0 0 3px #b657df,0 0 9px #b349e866}
#cashout span{color:#fff1e8;font-weight:bold}#cashout strong{color:#ffe66b;text-shadow:0 2px #31103c}#cashout:disabled{opacity:.58}
.dock{background:linear-gradient(#4b455e,#222235 18%,#111221 80%);border-color:#77738a;box-shadow:inset 0 2px #a4a0b14d,0 -3px 0 #1b1b2c,0 -4px 0 #565369,0 -8px 30px #0005}
.dock-cell>button{background:linear-gradient(145deg,#5c566c,#302b44 55%,#211d31);border-color:#79738b;box-shadow:inset 0 1px 1px #c9bed247,inset 0 0 0 2px #211d3477,0 2px 4px #0009}
.dock-cell>button.gold{background:linear-gradient(#ffdf75,#ae7317);border-color:#ffdf85;box-shadow:inset 0 0 0 2px #ae751a}
.spin{background:radial-gradient(at 35% 20%,#4edfff,#087ca8 60%,#07334f);border-color:#72e6ff;color:#f2ffff;box-shadow:0 0 0 5px #242238,0 0 0 7px #77778d,0 0 19px #14c5f580,inset 0 0 12px #43d5ff77}
.buy{background:linear-gradient(#b44fe7,#681582);border-color:#ffda64;box-shadow:inset 0 0 0 1px #ffe6ac,0 0 10px #b653de66}
.bet-stepper button{background:linear-gradient(#655a76,#30263f);border-color:#9b8aaa}
dialog{background:linear-gradient(135deg,#42165e,#130c25);border-color:#aa78ca}.modal-head{background:linear-gradient(#5c2578,#261039);border-bottom-color:#f0c85866}.menu-grid button{background:linear-gradient(135deg,#70259a99,#251138);border-color:#ba8bce77}
.status{color:#f6d6a0;text-shadow:0 2px 2px #0b0613}
@media(max-width:600px){.tower{border-width:2px}.tower h2{font-size:9px;padding:2px 0}.rung.current{border-width:2px}.rung{border-bottom-width:1px}.symbol.WITCH::before,.symbol.GIANT::before,.symbol.OGRE::before{border-width:1.5px;inset:8% 6%;border-radius:5px}.symbol.BLACK_CAT img{filter:drop-shadow(.7px 0 #00dcff) drop-shadow(-.7px 0 #00dcff) drop-shadow(0 0 2px #187dff) drop-shadow(0 0 4px #7728ff)}.symbol .letter{-webkit-text-stroke:.7px #351023}.tower-foot{border-width:1px}}

/* Supplied wide hat and broom: retain the full silhouette inside each cell. */
.symbol.WITCH_HAT img{width:115%;height:96%;object-fit:contain;filter:drop-shadow(0 0 2px #b345dd66)}
.symbol.BROOMSTICK img{width:96%;height:96%;object-fit:contain;filter:drop-shadow(0 0 2px #14cae755)}
/* Mobile enlargement and supplied replacement giant. */
.symbol.GIANT img{width:166%;height:100%}
.symbol.CAULDRON img{width:150%;height:86%}
.symbol.K .letter,.symbol.Q .letter{font-size:clamp(36px,6.5vw,74px)}
.symbol.J .letter{font-size:clamp(38px,6.7vw,76px);color:#ebc6ff;text-shadow:1px 0 #fff0bd,-1px 0 #fff0bd,0 -1px #fff0bd,0 2px #542478,0 0 8px #e59fff99}
.broom-sparkles{position:absolute;inset:0;z-index:2;pointer-events:none;color:#ffe76c;text-shadow:0 0 3px #ffb821,0 0 7px #ffd65f}
.broom-sparkles i{position:absolute;font-style:normal;font-size:clamp(7px,1.4vw,13px);animation:gold-sparkle 2.2s ease-in-out infinite}
.broom-sparkles i:nth-child(1){left:13%;top:33%}.broom-sparkles i:nth-child(2){left:37%;top:18%;animation-delay:.6s;font-size:9px}.broom-sparkles i:nth-child(3){right:15%;top:23%;animation-delay:1.1s}.broom-sparkles i:nth-child(4){right:22%;bottom:24%;animation-delay:.3s}.broom-sparkles i:nth-child(5){left:27%;bottom:20%;animation-delay:1.5s;font-size:8px}
@keyframes gold-sparkle{0%,100%{opacity:.45;transform:scale(.7)}50%{opacity:1;transform:scale(1.15)}}
@media(max-width:600px){.game{padding-left:7px;padding-right:7px}.reels{aspect-ratio:5/4}.symbol.K .letter,.symbol.Q .letter{font-size:clamp(42px,12vw,58px)}.symbol.J .letter{font-size:clamp(44px,12.5vw,61px)}.tower #ladder{gap:8px}.tower .rung{padding:9px 1px;font-size:15px}.tower .rung small{font-size:6px}.tower .rung.invitation span{font-size:10px}.tower .rung.armed-idle>span{font-size:12px}.tower h2{font-size:10px}.symbol.CAULDRON img{width:148%;height:84%}}
@media(prefers-reduced-motion:reduce){.broom-sparkles i{animation:none;opacity:.85}}
@media(max-width:600px){.brand{font-size:clamp(29px,9vw,37px);white-space:nowrap}}@media(max-width:600px) and (max-height:700px){.meters{margin-top:12px}.guard-panel{padding-top:2px}.board>.status{font-size:11px}}
/* Reference-board surround and primary controls directly below the reels. */
.game{min-height:0;padding-bottom:12px}.playfield{margin:24px 0 0;padding-top:0}
.reel-frame{border:9px solid #494c63;border-image:url('assets/slate-frame.svg') 24 round;background:#4b4d62 url('assets/slate-frame.svg');padding:4px;box-shadow:inset 0 0 0 2px #181b30,0 0 0 2px #1d2033,0 0 0 4px #777a90,0 9px 20px #0008}
.board{position:relative}.tower{overflow:visible}.tower h2{z-index:1}
.tower-lightning{position:absolute;inset:-7px -8px;width:calc(100% + 16px);height:calc(100% + 14px);pointer-events:none;overflow:visible;opacity:.65;filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px #ce64ff) drop-shadow(0 0 10px #913dff);z-index:2}
.tower-lightning path{fill:none;stroke:#f4d6ff;stroke-width:1.2;stroke-linejoin:bevel}
.tower.armed .tower-lightning{opacity:1;animation:lightning-flicker 2.8s linear infinite}
@keyframes lightning-flicker{0%,18%,22%,64%,68%,100%{opacity:.95}20%,66%{opacity:.45}21%,67%{opacity:1}}
.guard-panel{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,1.1fr);align-items:center;gap:9px;max-width:none;margin:14px 0 0;padding:10px;border:3px solid #5e6075;border-radius:8px;background:#343447 url('assets/slate-frame.svg') center/180px;box-shadow:inset 0 0 0 2px #171a2c,0 0 0 1px #88879a}
.primary-bet{min-width:0;background:linear-gradient(#252437,#111223);padding:6px 3px;border:1px solid #69667d;border-radius:6px}.primary-bet>span{display:block;text-align:center;font-size:10px;font-weight:bold;color:#d5caea;letter-spacing:1px}.primary-bet>div{display:flex;align-items:center;justify-content:space-between;gap:3px}.primary-bet strong{font-size:17px;color:#fff3c4;white-space:nowrap}.primary-bet button{width:29px;height:37px;background:linear-gradient(#676078,#2a273e);border:2px solid #80778e;border-radius:6px;color:#f2eefb;font-size:21px;font-weight:bold;padding:0}
#cashout{min-width:0;width:100%;min-height:60px;padding:6px 3px;border-radius:9px}#cashout strong{font-size:17px}#cashout span{font-size:9px;letter-spacing:.6px}
.spin-stack{margin:0;padding:0;display:block}.spin-stack>span{display:none}.spin{width:100%;height:60px;min-height:60px;border-radius:9px;border:3px solid #64dafa;background:linear-gradient(145deg,#40ceef,#0987ad 55%,#075673);box-shadow:inset 0 0 0 2px #184b68,inset 0 3px 2px #bbf1ff55,0 0 0 2px #252739,0 0 0 4px #84869b;color:#fff;position:relative}.spin svg{display:none}.spin:after{content:'SPIN';font:bold 23px Arial,sans-serif;color:#f6ffff;text-shadow:1px 2px #0b2638,-1px -1px #0b2638}
.buy{width:30px;height:30px;padding:5px;bottom:calc(100% + 14px);right:0;left:auto;border-radius:8px}
.dock{position:static;left:auto;transform:none;width:100%;margin:12px 0 0;padding:8px;border-radius:9px;border-bottom:1px solid #77738a;box-shadow:inset 0 1px #b1aabb33,0 3px 8px #0004;backdrop-filter:none}.dock #dock-buttons{justify-content:space-between;gap:4px}.dock-cell>button{width:43px;height:35px}.dock-cell span{font-size:7px}
footer{margin-top:12px}
.witch-flow{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:8;filter:drop-shadow(0 0 3px #ffbcff) drop-shadow(0 0 7px #bd38ff)}.flow-arc{fill:none;stroke:#ce62ff;stroke-width:4;stroke-linecap:round}.flow-head{fill:#fff0ff}.flow-spark{fill:#efb5ff}.rung.receiving{box-shadow:inset 0 0 10px #fff0fa,0 0 12px #ef8cff,0 0 25px #9c24f5}
@media(max-width:600px){.game{padding-bottom:8px}.playfield{margin-top:20px}.reel-frame{border-width:6px;padding:3px}.guard-panel{gap:7px;margin-top:12px;padding:9px 6px;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr) minmax(0,1.05fr)}.primary-bet strong{font-size:13px}.primary-bet button{width:23px;height:34px;font-size:19px}.primary-bet>span{font-size:8px}.spin,#cashout{height:54px;min-height:54px}.spin:after{font-size:22px}#cashout strong{font-size:15px}#cashout span{font-size:8px}.buy{width:28px;height:28px;bottom:calc(100% + 18px);right:-1px}.dock{padding:8px 5px}.dock-cell>button{width:calc((100vw - 64px)/8);max-width:43px;height:34px}.dock-cell span{font-size:6px}.tower-lightning{inset:-5px -6px;width:calc(100% + 12px);height:calc(100% + 10px)}.tower-lightning path{stroke-width:1}.flow-arc{stroke-width:3}}
@media(prefers-reduced-motion:reduce){.tower.armed .tower-lightning{animation:none}.witch-flow{display:none}}
.reel-frame{border-image-source:url("assets/stone-surround.svg");border-image-slice:24;border-image-repeat:stretch}.reel-frame>.corner{display:none}
/* Compact shared baseline: cashout | spin | tower toggle. */
.board>.guard-panel{grid-column:1;grid-row:2;align-self:stretch;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr);gap:9px;margin:0;padding:6px;border-width:2px;min-height:66px}
.board>.tower-foot{grid-column:2;grid-row:2;align-self:stretch;justify-content:center;margin:0;min-height:66px}
.board>.status{grid-column:1/-1;grid-row:3;margin:0 5px;min-height:20px}
.board>.guard-panel #cashout,.board>.guard-panel .spin{height:50px;min-height:50px}
.buy-cell .buy{position:static;transform:none;width:36px;height:35px;padding:7px;margin:0;border-radius:9px}
.buy-cell .buy svg{width:19px;height:19px}
.dock{gap:4px;align-items:flex-end}.dock #dock-buttons{gap:2px;min-width:0}
.symbol.GIANT::before{display:none}.symbol.GIANT img{width:96%;height:96%;object-fit:contain;border-radius:50%;filter:drop-shadow(0 0 3px #ffb92c88)}
@media(max-width:600px){.board{row-gap:8px}.board>.guard-panel{padding:5px;gap:7px;min-height:62px}.board>.tower-foot{min-height:62px;padding:4px 2px}.board>.guard-panel #cashout,.board>.guard-panel .spin{height:48px;min-height:48px}.board>.status{font-size:11px;line-height:1.4;margin:1px 3px}.dock-cell>button,.buy-cell .buy{width:clamp(25px,calc((100vw - 78px)/9),43px);height:34px}.buy-cell .buy{padding:6px}.buy-cell .buy svg{width:17px;height:17px}.dock{margin-top:9px;gap:3px}}
.board>.tower-foot{position:relative;display:grid;place-items:center}.board>.tower-foot #guard{height:100%;min-height:0}.board>.tower-foot #side-cost{position:absolute;bottom:4px;left:1px;right:1px;pointer-events:none}

/* Approved board-reference portrait; keep the rectangular gold boundary intact. */
.symbol.GIANT img{width:96%;height:96%;object-fit:contain;border-radius:0;filter:drop-shadow(0 0 2px #ffc75066)}
.board>.guard-panel{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr)}
/* Header tools share the title row; Spin shares the utility dock. */
[hidden]{display:none!important}
.title-row{display:grid;grid-template-columns:78px minmax(0,1fr) 38px;gap:8px;align-items:center;margin:18px 0 8px}.title-row .brand{margin:0;font-size:clamp(24px,4.4vw,43px);white-space:nowrap}.title-row .brand i{margin:0 4px}
#header-left,#header-right{display:flex;align-items:center;gap:4px}#header-right{justify-content:flex-end}.title-row .dock-cell>span{display:none}.title-row .dock-cell>button{width:34px;height:34px;border-radius:9px}.title-row .dock-cell svg{width:18px;height:18px}
.board>.tower-foot{height:50px;min-height:50px;padding:3px}.board>.status{grid-column:1;grid-row:2;align-self:center;min-height:0;margin:0 6px}.board{row-gap:7px}
.tower-foot #cashout{width:100%;height:100%;min-height:0;padding:3px 0;border-radius:6px;border-width:1px;box-shadow:inset 0 0 0 1px #e9bc6b55,0 0 7px #b349e855}.tower-foot #cashout span{font-size:clamp(6px,.8vw,9px);letter-spacing:0}.tower-foot #cashout strong{font-size:clamp(9px,1.15vw,14px);white-space:normal;overflow-wrap:anywhere;line-height:1.1}.tower-foot #cashout.vault-paused{filter:saturate(.65)}
.dock{align-items:flex-end;gap:7px;padding:8px}.dock #dock-buttons{flex:1;gap:3px;justify-content:space-between}.dock .spin-stack{width:90px;flex:0 0 90px;align-self:center}.dock .spin{height:49px;min-height:49px}.dock .spin:after{font-size:23px}.dock .dock-cell>button{width:38px;height:35px}.dock .buy-cell .buy{position:static}
.flow-mist{fill:none;stroke:#a935ec;stroke-width:12;stroke-linecap:round;filter:blur(3px)}.flow-gold{fill:none;stroke:#ffde79;stroke-width:1.2;stroke-linecap:round}.flow-fairy-dust{fill:#ffe991;stroke:#ffd152;stroke-width:.5;filter:drop-shadow(0 0 2px #ffdb5e)}.tier-drop{position:absolute;z-index:10;margin:0;pointer-events:none;box-sizing:border-box;display:flex;align-items:center;justify-content:center;flex-direction:column}
@media(max-width:600px){.title-row{grid-template-columns:64px minmax(0,1fr) 30px;gap:4px;margin:16px 0 8px}.title-row .brand{font-size:clamp(18px,5.5vw,31px);letter-spacing:-.8px}.title-row .brand i{margin:0 2px}#header-left{gap:3px}.title-row .dock-cell>button{width:29px;height:29px}.title-row .dock-cell svg{width:16px;height:16px}.subtitle{letter-spacing:1.8px}.board>.tower-foot{min-height:48px;height:48px}.board>.status{font-size:10px;line-height:1.35;margin:0 5px}.dock{padding:7px 5px;gap:6px}.dock #dock-buttons{gap:2px}.dock .dock-cell>button,.dock .buy-cell .buy{width:clamp(27px,calc((100vw - 115px)/6),39px);height:34px}.dock .spin-stack{width:73px;flex-basis:73px}.dock .spin{height:48px;min-height:48px;border-radius:8px}.dock .spin:after{font-size:22px}.dock-cell>span{font-size:6px}.tower-foot #cashout span{font-size:7px}.tower-foot #cashout strong{font-size:11px}}
@media(max-width:340px){.title-row{grid-template-columns:58px minmax(0,1fr) 27px;gap:3px}.title-row .brand{font-size:18px}.title-row .dock-cell>button{width:26px;height:28px}.dock .spin-stack{width:65px;flex-basis:65px}.dock .dock-cell>button,.dock .buy-cell .buy{width:25px}.dock{gap:4px;padding:6px 4px}}
.tier-drop{padding:3px 1px!important;gap:2px!important}.tier-drop small{font-size:6px}.tier-drop>span{font-size:14px}
/* Supplied game logo and a thinner HUD preserve room for the reels. */
.edition,.subtitle{display:none}
.title-row{margin:4px 0 5px}.title-row .brand{height:110px;display:flex;align-items:center;justify-content:center;min-width:0;line-height:0;font-size:0}.game-logo{display:block;width:100%;height:100%;object-fit:contain;border-radius:7px}
.meters{width:calc(100% - 8px);max-width:520px;margin:4px auto 0;padding:7px 4px;border-radius:10px}.meters>div{gap:3px}.meters span{font-size:7px;line-height:1;letter-spacing:1px}.meters strong{font-size:16px;line-height:1.15}
.board>.tower-foot{height:36px;min-height:36px;padding:2px}.board>.tower-foot #cashout{height:30px;min-height:30px;padding:2px 1px;display:flex;align-items:center;justify-content:center}.board>.tower-foot #cashout span{display:inline;white-space:nowrap;font-size:12px;line-height:1;letter-spacing:0}.board>.tower-foot #cashout strong{display:none}.board>.tower-foot #side-cost{bottom:1px;font-size:6px}.board>.tower-foot #guard{padding:0;height:100%;min-height:0}
@media(max-width:600px){.game{padding-top:7px}.title-row{margin:0 0 3px;grid-template-columns:64px minmax(0,1fr) 30px}.title-row .brand{height:80px}.meters{margin-top:2px;padding:5px 3px;max-width:360px}.meters span{font-size:6px;letter-spacing:.8px}.meters strong{font-size:14px;line-height:1.15}.meters>div{gap:3px}.playfield{margin-top:16px}.board>.tower-foot{height:36px;min-height:36px}.board>.tower-foot #cashout span{font-size:clamp(8px,2.5vw,11px)}.board>.tower-foot #side-cost{font-size:5px}.tower-foot #guard b{font-size:7px}}
@media(max-width:340px){.title-row{grid-template-columns:58px minmax(0,1fr) 27px;gap:3px}.title-row .brand{height:72px}.meters{padding:4px 2px}.meters strong{font-size:13px}.meters span{font-size:6px}}
/* Raised tower occupies the old right-hand caption space. */
.reel-caption{width:calc((100% - 7px)*.78);min-height:12px;align-items:center;padding-bottom:5px}
.board{position:relative;grid-template-rows:auto auto;row-gap:7px}
.board>.tower{position:absolute;grid-area:auto;top:-14px;right:0;width:calc((100% - 7px)*.22);height:calc(var(--reel-frame-height,230px) + 20px);min-height:0;align-self:auto;box-sizing:border-box}
.board>.tower #ladder{min-height:0;gap:4px}.board>.tower .rung{padding:6px 1px;min-height:0}.board>.tower h2{margin-bottom:4px}.board>.tower>small{margin-top:5px}
.board>.tower-foot{grid-column:2;grid-row:2;margin:0}.board>.status{grid-column:1;grid-row:2}
@media(max-width:600px){.board>.tower{padding:6px 4px}.board>.tower .rung{font-size:14px;padding:6px 1px;gap:2px}.board>.tower .rung small{font-size:6px}.board>.tower h2{font-size:9px;padding:2px 0;margin-bottom:4px}.board>.tower>small{font-size:5px;margin-top:4px}.board>.tower .rung.invitation span{font-size:9px}.board>.tower .rung.armed-idle>span{font-size:11px}}
@media(max-width:340px){.board>.tower{padding:5px 3px}.board>.tower .rung{padding:4px 0;font-size:12px}.board>.tower .rung small{font-size:5px}.board>.tower h2{font-size:8px;margin-bottom:3px}.board>.tower>small{font-size:4.5px;margin-top:3px}.board>.tower .rung.invitation span{font-size:8px}}
.board{column-gap:7px}@media(max-width:600px) and (max-height:560px){.title-row .brand{height:60px}.playfield{margin-top:12px}.dock{margin-top:7px}footer{margin-top:6px}.game{padding-bottom:5px}}
/* Ante sits immediately before the gift-wrapped bonus purchase. */
.ante-cell .ante{color:#ffe2a0}.ante-cell .ante svg{width:22px;height:22px}.ante-cell .ante[aria-pressed=true]{border-color:#f2d77e;box-shadow:0 0 10px #bf6aff88,inset 0 0 7px #d7a4ff44}
.buy-cell .buy{background:linear-gradient(145deg,#b949b9,#65246e);border-color:#f3ce79}.buy-cell .buy svg{width:22px;height:22px;stroke-width:1.2}
@media(max-width:600px){.dock{gap:5px}.dock .dock-cell>button,.dock .buy-cell .buy,.dock .ante-cell .ante{width:clamp(25px,calc((100vw - 126px)/7),36px);height:34px}.ante-cell .ante svg,.buy-cell .buy svg{width:20px;height:20px}.buy-cell .buy{padding:5px}.dock .dock-cell>span{font-size:6px}}
@media(max-width:340px){.dock{gap:4px}.dock .dock-cell>button,.dock .buy-cell .buy,.dock .ante-cell .ante{width:clamp(24px,calc((100vw - 126px)/7),29px)}.ante-cell .ante svg,.buy-cell .buy svg{width:18px;height:18px}}
.symbol.BROOMSTICK img{width:96%;height:96%;object-fit:contain;border-radius:5px;filter:drop-shadow(0 0 2px #25e6cf55)}.ante-cell .ante[aria-pressed=true]{background:linear-gradient(#edb94b,#8c5c18);color:#fff1b7}.meters #bet-label{white-space:nowrap}

/* Centre the seven utility icons together; retain the existing Spin column. */
.dock-utilities{display:flex;flex:1;min-width:0;align-items:flex-end;justify-content:center;gap:5px}.dock .dock-utilities #dock-buttons{flex:0 0 auto;justify-content:center;gap:5px}.dock-utilities>.dock-cell{flex:0 0 auto}
.max-win{color:#ffdf86;font-weight:bold;letter-spacing:.5px;text-shadow:0 0 7px #d5893155;white-space:nowrap}.reel-caption{flex-wrap:wrap;gap:3px 8px}.reel-caption #mode{width:100%;color:#e9baff;text-align:center}
.tower-lightning path{vector-effect:non-scaling-stroke;stroke-width:1.5}
@media(max-width:600px){.dock-utilities,.dock .dock-utilities #dock-buttons{gap:3px}.dock .dock-utilities .dock-cell>button{width:clamp(24px,calc((100vw - 156px)/7),36px)}.max-win{font-size:7px;letter-spacing:.1px}.reel-caption{font-size:6px;gap:2px 4px}.tower-lightning path{stroke-width:1.2}}
/* Portrait phones: enlarge the reels first and centre any remaining space. */
@media(max-width:600px){
  body{min-height:100dvh;display:flex;flex-direction:column}
  .game{flex:0 0 auto;margin:auto 0;padding-top:max(7px,env(safe-area-inset-top));padding-bottom:max(8px,env(safe-area-inset-bottom))}
  .game .reels{height:var(--mobile-reel-height,auto)}
}
@media(max-width:600px){.game .reel-frame{min-width:0}.game .reels{width:100%;min-width:0}}
/* Supplied forest artwork fills every device without stretching the image. */
.scenery{background:#10282b url('assets/enchanted-forest-background.jpg') center center/cover no-repeat}
.scenery>.moon,.scenery>.mountains,.scenery>.mist{display:none}
.scenery:after{background:linear-gradient(#08121b18,#08121b08 65%,#08121b40)}
footer,.reel-caption{ text-shadow:0 1px 3px #000,0 0 5px #000 }

/* Chipped stone blocks with a deeper bevel and grounding shadow. */
.reel-frame{border-width:13px;padding:5px;background:#323b46 url('assets/slate-frame.svg');box-shadow:inset 0 2px 1px #d5d5dc88,inset 0 -4px 3px #080e1bdd,0 0 0 1px #b4b4c1,0 0 0 4px #242a36,0 5px 0 4px #171e29,0 12px 0 2px #101621,0 22px 30px #000b,0 0 18px #090d16a8}
/* Two gentle bands of green vapour drift through the row gaps while idle. */
.reels{position:relative;isolation:isolate}
.reels::before,.reels::after{content:'';position:absolute;z-index:3;pointer-events:none;left:-12%;width:124%;height:26%;border-radius:50%;background:radial-gradient(ellipse at 20% 50%,#adffc969,transparent 34%),radial-gradient(ellipse at 66% 50%,#77e8a16b,transparent 43%),radial-gradient(ellipse at 91% 60%,#c8ffd657,transparent 27%);filter:blur(8px);mix-blend-mode:screen;opacity:.3;transition:opacity .3s;animation:board-mist-drift 13s ease-in-out infinite alternate}
.reels::before{top:20%}.reels::after{top:54%;animation-delay:-7s;animation-direction:alternate-reverse}
.reels[aria-busy=true]::before,.reels[aria-busy=true]::after{opacity:0;animation-play-state:paused}
@keyframes board-mist-drift{0%{transform:translate(-4%,-5%) scale(1,.85)}50%{transform:translate(3%,8%) scale(1.08,1.15)}100%{transform:translate(6%,-2%) scale(1,.95)}}
@media(max-width:600px){
 .board{grid-template-columns:minmax(0,81fr) minmax(0,19fr)}
 .board>.tower{width:calc((100% - 7px)*.19)}
 .reel-caption{width:calc((100% - 7px)*.81)}
 .tower-currency{display:none}
 .reel-frame{border-width:7px;padding:3px;box-shadow:inset 0 2px 1px #d5d5dc77,inset 0 -3px 2px #080e1bdd,0 0 0 1px #b4b4c1,0 0 0 3px #242a36,0 4px 0 2px #101621,0 12px 18px #000a}
 .symbol img{transform:scaleY(1.22)}
 .symbol.GIANT img,.symbol.BROOMSTICK img{width:100%;height:96%;transform:scaleY(1.28)}
 .symbol.WITCH::before,.symbol.OGRE::before{inset:15% 5%}
 .symbol.K .letter,.symbol.Q .letter{font-size:clamp(46px,13.5vw,66px);transform:scaleY(1.12)}
 .symbol.J .letter{font-size:clamp(48px,14vw,69px);transform:scaleY(1.12)}
 .board>.tower h2{font-size:8px}.board>.tower .rung{font-size:12px}.board>.tower .rung.armed-idle>span{font-size:10px}
}
@media(prefers-reduced-motion:reduce){.reels::before,.reels::after{animation:none;opacity:.15}}

.reel-frame{border-image-source:url('assets/stone-depth.svg')}

/* Clear type during play; illustrated artwork is reserved for startup. */
.title-row .game-title{display:flex;flex-direction:column;align-items:center;justify-content:center;height:100px;margin:0;font:900 clamp(30px,4.2vw,43px)/.94 Georgia,serif;letter-spacing:1px;white-space:nowrap;color:#ffe8a0;-webkit-text-stroke:1px #61371a;text-shadow:0 2px #49231a,0 4px 1px #160d19,0 0 9px #17081e}
.game-title .title-second{font-size:.79em;color:#f4ccff;-webkit-text-stroke:.7px #4a175b}.game-title b{font-size:.68em;color:#ffdf85}
.boot-screen{position:fixed;inset:0;z-index:1000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:22px;background:radial-gradient(ellipse,#381b47,#100d20 75%);transition:opacity .3s;pointer-events:auto}
.boot-screen img{width:min(640px,88vw);height:auto;max-height:55vh;object-fit:contain}.boot-screen>span{font:10px Arial,sans-serif;letter-spacing:2px;color:#eedba9;text-align:center;padding:0 12px}.boot-screen>i{width:120px;height:3px;background:linear-gradient(90deg,#8b54c8,#e7c16c,#8b54c8);border-radius:5px;box-shadow:0 0 9px #dca0ff;animation:boot-glimmer 1s ease-in-out infinite alternate}.boot-ready{opacity:0;pointer-events:none}
@keyframes boot-glimmer{to{opacity:.4;transform:scaleX(.75)}}
/* Visible pale-green vapour, concentrated along both row boundaries. */
.reels::before,.reels::after{height:23%;background:radial-gradient(ellipse at 22% 50%,#b9ffd7c9,transparent 42%),radial-gradient(ellipse at 66% 50%,#73e7a8b8,transparent 46%),radial-gradient(ellipse at 92% 50%,#b6ffccbd,transparent 30%);filter:blur(5px);opacity:.64;mix-blend-mode:screen;animation-duration:10s}
.reels::before{top:22%}.reels::after{top:55%}
.reels[aria-busy=true]::before,.reels[aria-busy=true]::after{opacity:0}
@media(max-width:600px){.title-row .game-title{height:80px;font-size:clamp(26px,8.5vw,39px);letter-spacing:.5px;-webkit-text-stroke:.7px #61371a}.boot-screen>span{font-size:8px;letter-spacing:1.2px}}
@media(max-width:340px){.title-row .game-title{height:65px;font-size:27px}}
@media(max-width:600px) and (max-height:560px){.title-row .game-title{height:60px}}
@media(prefers-reduced-motion:reduce){.boot-screen>i{animation:none}.reels::before,.reels::after{animation:none;opacity:.45}}
/* Offset cloud pockets keep the vapour uneven rather than a straight stripe. */
.reels::before,.reels::after{background:radial-gradient(ellipse 24% 40% at 14% 30%,#c4ffdbd9,transparent 100%),radial-gradient(ellipse 30% 46% at 45% 65%,#78e8adcf,transparent 100%),radial-gradient(ellipse 25% 38% at 77% 35%,#a2f8c6d6,transparent 100%),radial-gradient(ellipse 15% 34% at 98% 68%,#c3ffd4b8,transparent 100%);filter:blur(7px)}

/* Phone-only, unmistakable cue for the side-game toggle. */
.status-short{display:none}
@media(max-width:600px){
 .board>.tower .rung.invitation{display:none}
 .board>.tower.teaser #target{visibility:hidden}
 .board>.tower.teaser::after{content:'↓';position:absolute;bottom:0;left:0;right:0;color:#ff941f;font:900 37px/1 Arial,sans-serif;-webkit-text-stroke:1px #ffd17b;text-shadow:0 0 4px #ff5e00,0 0 10px #ff6b00,0 0 17px #ff7a00;pointer-events:none;z-index:4;animation:guard-cue-pulse 1.2s ease-in-out infinite}
 .board>.tower-foot:has(#guard:not([hidden])){width:150%;justify-self:end;border-color:#ff941f;box-shadow:0 0 0 1px #ffcb7a,0 0 8px #ff7b00,0 0 15px #ff640080;z-index:5}
 .board>.tower-foot #guard{border:2px solid #ff901b;border-radius:5px;box-shadow:inset 0 0 5px #ff980044,0 0 5px #ff7900}
 .tower-foot #guard b{font-size:10px}.board>.tower-foot #side-cost{font-size:6px}
 .board:has(#guard:not([hidden]))>.status{margin-right:calc((100vw - 21px)*.095 + 5px)}
 .board>.tower h2{font-size:10px;line-height:1.12}
 .board>.tower .rung{font-size:clamp(15px,4.5vw,20px);padding:8px 0;gap:4px}
 .board>.tower .rung small{font-size:7px;letter-spacing:0}
 .board>.tower .rung.armed-idle>span{font-size:clamp(14px,4.5vw,18px)}
 .board>.tower #target{font-size:6px;line-height:1.3}
 .board>.status{color:#fff;font:700 11px/1.35 Arial,sans-serif;letter-spacing:0;text-shadow:-.5px 0 #ffe36d,.5px 0 #ffe36d,0 -.5px #ffe36d,0 .5px #ffe36d,0 2px 3px #000,0 0 5px #000}
 .status-full{display:none}.status-short{display:inline}
}
@keyframes guard-cue-pulse{0%,100%{opacity:.55;transform:translateY(-4px)}50%{opacity:1;transform:translateY(3px)}}
@media(max-width:600px) and (prefers-reduced-motion:reduce){.board>.tower.teaser::after{animation:none;opacity:1}}
.tower-multiplier-short{display:none}@media(max-width:600px){.tower-multiplier-full{display:none}.tower-multiplier-short{display:inline}}

/* Supplied 5–6s witch and 0.1–0.6s cat clips, with transparent backgrounds. */
.tower-character{position:absolute;left:5%;width:90%;object-fit:contain;pointer-events:none;z-index:2}
.character-flight{height:42px;position:relative;overflow:hidden;margin-top:4px;flex:none;pointer-events:none}
.character-flight img{position:absolute;width:67px;height:42px;object-fit:contain;left:0;animation:witch-under-controls 9s ease-in-out infinite}
@keyframes witch-under-controls{0%{transform:translateX(-75px) translateY(-2px)}45%{transform:translateX(240px) translateY(3px)}100%{transform:translateX(610px) translateY(-2px)}}
.is-spinning .tower-character,.is-spinning .character-flight img{visibility:hidden}.is-spinning .character-flight img{animation-play-state:paused}
.boot-screen .boot-witch{width:120px;height:85px;object-fit:contain;margin-top:-14px}
@media(max-width:600px){
 .board>.tower.teaser::after{content:none}
 .board>.tower-foot:has(#guard:not([hidden])){height:44px;min-height:44px;padding:0;border:2px solid #ff941f;overflow:visible}
 .board>.tower-foot:has(#guard:not([hidden]))::before{content:'➜';position:absolute;right:calc(100% + 5px);top:50%;color:#ff941f;font:900 30px/1 Arial,sans-serif;text-shadow:0 0 5px #ff6300,0 0 10px #ff7a00;transform:translateY(-50%);animation:guard-arrow-side 1.2s ease-in-out infinite;pointer-events:none}
 .board>.tower-foot #guard{border:0;box-shadow:none;border-radius:6px;width:100%;height:100%;gap:7px;padding:0}
 .board>.tower-foot #guard b{font-size:15px;color:#fff}
 .board>.tower-foot #side-cost{display:none}
 .tower-foot .switch-track{width:34px;height:21px}.tower-foot .switch-track i{width:15px;height:15px}#guard[aria-checked=true] .switch-track i{transform:translateX(13px)}
 .board>.status{font-size:13px;line-height:1.3;text-shadow:-.4px 0 #ffe36d,.4px 0 #ffe36d,0 -.4px #ffe36d,0 .4px #ffe36d,0 2px 3px #000}
 .board:has(#guard:not([hidden]))>.status{margin-right:calc((100vw - 21px)*.095 + 37px)}
 .character-flight{height:32px}.character-flight img{height:32px;width:51px;animation-duration:8s}
}
@keyframes guard-arrow-side{0%,100%{opacity:.6;translate:-3px 0}50%{opacity:1;translate:2px 0}}
@media(prefers-reduced-motion:reduce){.tower-character,.character-flight,.boot-screen .boot-witch{display:none}.board>.tower-foot:has(#guard:not([hidden]))::before{animation:none;opacity:1}}
@media(max-width:600px) and (max-height:560px){.character-flight{display:none}}

/* Recognisable witch silhouette and a distinct white magical wake. */
.tower-witch{left:-10%;width:120%;overflow:visible;animation:witch-hover 4s ease-in-out infinite}
.tower-witch img,.flight-witch img{position:relative;z-index:2;width:100%;height:100%;object-fit:contain;filter:drop-shadow(1px 0 #e7a4ff) drop-shadow(-1px 0 #e7a4ff) drop-shadow(0 -1px #e7a4ff) drop-shadow(0 1px #e7a4ff) drop-shadow(0 0 4px #c134ff)}
.witch-white-trail{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1;filter:drop-shadow(0 0 3px #fff) drop-shadow(0 0 5px #db9fff);animation:white-wake 2s ease-in-out infinite alternate}
.witch-white-trail path{fill:none;stroke:#fff5ff;stroke-width:2.2;stroke-linecap:round}.witch-white-trail path+path{stroke-width:1;opacity:.8}.witch-white-trail circle{fill:#fff}
@keyframes white-wake{from{opacity:.55;transform:translateX(-3px)}to{opacity:1;transform:translateX(2px)}}
@keyframes witch-hover{0%,100%{translate:0 -2px}50%{translate:0 3px}}
.tower-cat{animation:cat-jump-land 3.6s ease-in-out infinite;transform-origin:50% 100%;will-change:transform}
@keyframes cat-jump-land{0%,65%{transform:translateY(0) scale(1)}69%{transform:translateY(1px) scale(1.05,.9)}78%{transform:translateY(-12px) scale(.97,1.04)}89%{transform:translateY(0) scale(1.08,.9)}96%,100%{transform:translateY(0) scale(1)}}
.character-flight{height:84px;overflow:hidden}
.flight-witch{position:absolute;display:block;width:134px;height:84px;left:0;animation:witch-under-controls 9s ease-in-out infinite}
.character-flight .flight-witch img{animation:none;left:auto}
.is-spinning .flight-witch{visibility:hidden;animation-play-state:paused}
.boot-screen .boot-witch{filter:drop-shadow(0 0 5px #df75ff)}
@media(max-width:600px){.character-flight{height:64px}.flight-witch{width:102px;height:64px;animation-duration:8s}.character-flight .flight-witch img{width:100%;height:100%}}
@media(max-width:600px) and (max-height:560px){.character-flight{display:none}}
@media(prefers-reduced-motion:reduce){.tower-witch,.tower-cat,.witch-white-trail,.flight-witch{animation:none}.character-flight{display:none}}
.tower-cat{filter:drop-shadow(1px 0 #42ffdf) drop-shadow(-1px 0 #42ffdf) drop-shadow(0 -1px #42ffdf) drop-shadow(0 1px #42ffdf) drop-shadow(0 0 3px #20eacc)}
.witch-white-trail{width:140%;left:-40%}
@keyframes witch-under-controls{0%{transform:translateX(-110%) translateY(-2px)}45%{transform:translateX(min(45vw,280px)) translateY(3px)}100%{transform:translateX(min(100vw,620px)) translateY(-2px)}}

/* Only the tower witch is slowed; other witch appearances keep their timing. */
.tower-witch{animation:witch-tower-drift 20s ease-in-out infinite}
.tower-witch .witch-white-trail{animation-duration:12s}
@keyframes witch-tower-drift{0%,100%{translate:0 -1px}50%{translate:0 1px}}
@keyframes cat-jump-land{0%,65%{transform:translateY(0) scale(1)}69%{transform:translateY(1px) scale(1.05,.9)}78%{transform:translateY(calc(0px - var(--cat-jump-height,22px))) scale(.97,1.04)}89%{transform:translateY(0) scale(1.08,.9)}96%,100%{transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.tower-witch{animation:none}}
/* Constant-speed lower flight: no midpoint easing or sudden changes in pace. */
.flight-witch{animation:witch-under-controls 14s linear infinite}
.flight-witch .witch-white-trail{animation-duration:10s}
@keyframes witch-under-controls{from{transform:translateX(-110%)}to{transform:translateX(min(100vw,620px))}}
@media(max-width:600px){.flight-witch{animation-duration:14s;animation-timing-function:linear}}
@media(prefers-reduced-motion:reduce){.flight-witch{animation:none}}

/* Shared mobile/desktop presentation, including the prominent side-game action. */
.board{grid-template-columns:minmax(0,81fr) minmax(0,19fr)}
.board>.tower{width:calc((100% - 7px)*.19)}
.reel-caption{width:calc((100% - 7px)*.81)}
.tower-currency,.tower-multiplier-full,.status-full{display:none}
.tower-multiplier-short,.status-short{display:inline}
.board>.tower .rung.invitation{display:none}
.board>.tower.teaser #target{visibility:hidden}
.board>.tower.teaser::after{content:none}
.board>.tower-foot:has(#guard:not([hidden])){height:44px;min-height:44px;width:150%;justify-self:end;padding:0;border:2px solid #ff941f;box-shadow:0 0 0 1px #ffcb7a,0 0 8px #ff7b00,0 0 15px #ff640080;overflow:visible;z-index:5}
.board>.tower-foot:has(#guard:not([hidden]))::before{content:'➜';position:absolute;right:calc(100% + 5px);top:50%;color:#ff941f;font:900 30px/1 Arial,sans-serif;text-shadow:0 0 5px #ff6300,0 0 10px #ff7a00;transform:translateY(-50%);animation:guard-arrow-side 1.2s ease-in-out infinite;pointer-events:none}
.board>.tower-foot #guard{border:0;box-shadow:none;border-radius:6px;width:100%;height:100%;gap:7px;padding:0}
.board>.tower-foot #guard b{font-size:15px;color:#fff}.board>.tower-foot #side-cost{display:none}
.tower-foot .switch-track{width:34px;height:21px}.tower-foot .switch-track i{width:15px;height:15px}#guard[aria-checked=true] .switch-track i{transform:translateX(13px)}
.board>.status{color:#fff;font:700 13px/1.3 Arial,sans-serif;letter-spacing:0;text-shadow:-.4px 0 #ffe36d,.4px 0 #ffe36d,0 -.4px #ffe36d,0 .4px #ffe36d,0 2px 3px #000}
.board:has(#guard:not([hidden]))>.status{margin-right:calc(12% + 37px)}
/* Reserve upper and lower character spaces in every tower state. */
.board>.tower>.tower-icon{display:none}
.board>.tower h2{font-size:12px;line-height:1.12}
.board>.tower #ladder{position:absolute;top:35%;bottom:27%;left:4px;right:4px;width:auto;flex:none;gap:4px;justify-content:center}
.board>.tower.armed .rung.previous{display:none}
.board>.tower .rung{font-size:22px;padding:5px 0;gap:3px}
.board>.tower .rung small{font-size:8px;letter-spacing:0}
.board>.tower .rung.armed-idle>span{font-size:20px}
.board>.tower #target{position:absolute;bottom:4px;left:3px;right:3px;margin:0;font-size:7px}
.is-spinning .tower-character{visibility:visible}
/* The control panel and Spin use the same carved blocks as the board frame. */
.dock{border:9px solid #667078;border-image:url('assets/stone-depth.svg') 24 stretch;padding:6px;box-shadow:inset 0 1px 3px #c6cbc866,0 4px 0 3px #15202c,0 12px 20px #0009}
.dock .spin{border:8px solid #667078;border-image:url('assets/stone-depth.svg') 24 stretch;box-shadow:inset 0 0 0 1px #a8f5ff,inset 0 0 13px #0a456a,0 3px 5px #0008}
@media(min-width:601px){.symbol img{transform:scaleY(1.22)}.symbol.GIANT img,.symbol.BROOMSTICK img{width:100%;height:96%;transform:scaleY(1.28)}.symbol.WITCH::before,.symbol.OGRE::before{inset:15% 5%}.symbol.K .letter,.symbol.Q .letter{transform:scaleY(1.12)}.symbol.J .letter{transform:scaleY(1.12)}}
@media(max-width:600px){.board>.tower h2{font-size:10px}.board>.tower .rung{font-size:clamp(15px,4.5vw,20px);padding:5px 0}.board>.tower .rung small{font-size:7px}.board>.tower .rung.armed-idle>span{font-size:clamp(14px,4.5vw,18px)}.board>.tower #target{font-size:6px}.dock{border-width:6px;padding:5px}.dock .spin{border-width:6px}.dock .spin:after{font-size:20px}}
@media(prefers-reduced-motion:reduce){.board>.tower-foot:has(#guard:not([hidden]))::before{animation:none;opacity:1}}
@media(min-width:601px){.symbol img{transform:scaleY(1.04)}.symbol.GIANT img,.symbol.BROOMSTICK img{transform:scaleY(1.04)}}
@media(min-width:601px) and (max-height:800px){.title-row .game-title{height:80px}.playfield{margin-top:12px}.dock{margin-top:6px}footer{margin-top:6px}}
/* Vapour returns with the first reel stop and drifts through the remaining stops. */
.reels[aria-busy=true][data-settling=true]::before,.reels[aria-busy=true][data-settling=true]::after{opacity:.64;animation-play-state:running}
.tower.tier-electric .tower-lightning{opacity:1;animation:tower-energy .7s ease-in-out 2;filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 6px #ffe8a3) drop-shadow(0 0 12px #c15fff)}
.tower.tier-electric .tower-lightning path{stroke:#fff4bd;stroke-width:2.5}
@keyframes tower-energy{0%,100%{opacity:.7;transform:scale(1)}50%{opacity:1;transform:scale(1.035)}}
.tower-sparks{position:absolute;inset:-4px;z-index:9;pointer-events:none;overflow:visible}.tower-sparks i{position:absolute;width:3px;height:6px;border-radius:50%;background:#fff7bf;box-shadow:0 0 3px #fff,0 0 7px #ffc14b,0 0 10px #d75dff}
@media(max-width:600px) and (max-height:560px){.board>.tower .rung{font-size:14px;padding:2px 0;gap:2px}.board>.tower .rung small{font-size:6px}.board>.tower .rung.armed-idle>span{font-size:14px}.board>.tower #ladder{top:36%;bottom:29%}}
@media(min-width:601px){.symbol img,.symbol.GIANT img,.symbol.BROOMSTICK img{transform:none}}
@media(prefers-reduced-motion:reduce){.tower.tier-electric .tower-lightning{animation:none;transform:none}.reels[aria-busy=true][data-settling=true]::before,.reels[aria-busy=true][data-settling=true]::after{opacity:.45}}
html{overflow-x:clip}

/* Continuous silent forest loop, independent of the reels and side game. */
.scenery .forest-motion{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center;pointer-events:none}
.scenery:after{pointer-events:none}
.flight-witch picture{display:block;width:100%;height:100%}
.flight-witch{will-change:transform;backface-visibility:hidden}
@media(min-width:601px){
 .flight-witch{animation-name:desktop-witch-glide;animation-timing-function:linear}
 .is-spinning .flight-witch{visibility:visible;animation-play-state:running}
 .is-spinning .character-flight .flight-witch img{visibility:visible}
}
@keyframes desktop-witch-glide{from{transform:translate3d(-110%,0,0)}to{transform:translate3d(min(100vw,620px),0,0)}}
@media(prefers-reduced-motion:reduce){.scenery .forest-motion{display:none}.flight-witch{animation:none}}

/* Inline arrival help opens the same feature rules as the main menu. */
.tower-info{display:inline-grid;place-items:center;vertical-align:middle;width:19px;height:19px;margin:0 0 0 5px;padding:0;border:1px solid #ffdc79;border-radius:50%;background:#23122ce8;color:#fff;font:700 13px/1 Arial,sans-serif;text-shadow:none;box-shadow:0 0 5px #0008}
.tower-info:hover{background:#643182}.tower-info:focus-visible{outline:2px solid #fff;outline-offset:2px}
@media(max-width:340px){.tower-info{width:18px;height:18px;margin-left:3px}}
.board>.status.has-tower-info{display:flex;align-items:center;justify-content:center;gap:5px}.has-tower-info .status-short{flex:1;min-width:0}.has-tower-info .tower-info{flex:0 0 19px;margin:0}

/* Larger arrival guidance, keeping the rules icon alongside its text. */
.board>.status.has-tower-info{font-size:16px;line-height:1.3}
.has-tower-info .tower-info{width:23px;height:23px;flex-basis:23px;font-size:15px}
.rtp-summary{margin-top:24px;padding-top:14px;border-top:1px solid #d4b67366;font-weight:bold;color:#ffe49a!important}
@media(max-width:340px){.board>.status.has-tower-info{font-size:15px}}

/* Supplied symbol artwork leads menus and rules; names remain as small captions. */
.guide-symbol{position:relative;display:inline-grid;place-items:center;width:70px;height:75px;vertical-align:middle;overflow:hidden;flex:none;isolation:isolate}
.guide-symbol img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 0 4px #ae5fe94d)}
.guide-symbol .letter{font:900 46px Georgia,serif;color:#f1baff;text-shadow:0 2px #36123e}.guide-symbol.K .letter{color:#ff79a0}.guide-symbol.Q .letter{color:#59ff87}
.guide-symbol small{position:absolute;bottom:1px;font:700 8px Arial;color:#ffe398;background:#291533bb;padding:1px 3px;border-radius:3px}.guide-symbol .broom-sparkles{display:none}
.guide-art-row{display:flex;align-items:center;justify-content:center;gap:3px}.visual-menu button{text-align:center;padding:12px 8px;background:radial-gradient(ellipse at top,#8e4abb44,#201228);border-color:#d5ae7066}.visual-menu .guide-symbol{width:62px;height:70px}.visual-menu strong{font-size:16px}.visual-menu small{font-size:10px}.guide-settings-art{height:70px;display:grid;place-items:center;font-size:50px;color:#e9c67e}
.pay-symbol{width:95px}.pay-symbol>.guide-symbol{width:65px;height:66px}.pay-symbol>small{display:block;font:10px Arial;color:#d3bbdf}.visual-heading{display:flex;align-items:center;gap:12px}.visual-heading .guide-symbol{width:75px;height:80px}
.visual-feature-pair,.tower-rule-pair{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:14px 0}.visual-feature-pair>div,.tower-rule-pair>div{text-align:center;padding:12px 9px;border:1px solid #bd965b66;border-radius:10px;background:#2b123a88}.visual-feature-pair .guide-symbol{width:95px;height:100px;display:grid;margin:auto}.visual-feature-pair b,.tower-rule-pair b{display:block;font:700 11px Arial;color:#ffe4a4}.visual-feature-pair p{font-size:12px;line-height:1.45;margin:8px 0}.tower-rule-pair .guide-symbol{width:65px;height:80px}
@media(max-width:600px){.visual-menu .guide-symbol{width:48px;height:57px}.visual-menu strong{font-size:13px}.visual-menu small{font-size:9px}.visual-menu button{padding:9px 5px}.guide-settings-art{height:57px;font-size:42px}.visual-feature-pair>div,.tower-rule-pair>div{padding:8px 5px}.visual-feature-pair .guide-symbol{width:80px;height:90px}.tower-rule-pair .guide-symbol{width:44px;height:65px}.pay-symbol{width:68px}.pay-symbol>.guide-symbol{width:55px;height:57px}}
.guide-symbol.WITCH img,.guide-symbol.BLACK_CAT img{width:180%;max-width:none}.guide-symbol.OGRE img{width:160%;max-width:none}.guide-symbol.CAULDRON img{width:150%;max-width:none}.guide-symbol.WITCH_HAT img{width:115%;max-width:none}
.menu-grid.visual-menu{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.menu-grid.visual-menu button{min-width:0;overflow:hidden}.menu-grid.visual-menu button strong{font:700 16px/1.15 Georgia,serif;overflow-wrap:normal}.menu-grid.visual-menu button>small{display:block;font:10px/1.4 Arial;white-space:normal}.visual-menu .guide-art-row:has(.K) .guide-symbol{width:33.33%}
@media(max-width:600px){.menu-grid.visual-menu button strong{font-size:13px}.menu-grid.visual-menu button>small{font-size:9px}.visual-menu .guide-symbol{width:43px;height:60px}.visual-menu .guide-symbol .letter{font-size:38px}}
.visual-heading .guide-symbol small{display:none}

.game>footer{justify-content:flex-end}

/* The witch leads the loading fill from the tip of her broom, rather than
   appearing as a separate animation beneath the logo. */
.boot-progress{position:relative;width:min(420px,calc(100vw - 150px));height:8px;margin:34px 0 18px;background:#241d36;border:1px solid #bca37788;border-radius:8px;box-shadow:inset 0 1px 4px #000;flex:none}
.boot-progress-fill{display:block;width:var(--loading-progress,0%);height:100%;border-radius:8px;background:linear-gradient(90deg,#8d49c5,#e7b966 65%,#fff3bd);box-shadow:0 0 6px #f2ca7f,0 0 13px #bf7cfb66}
.boot-runner{position:absolute;left:var(--loading-progress,0%);bottom:-12px;width:90px;height:70px;transform:translateX(-16%);pointer-events:none;will-change:left}
.boot-progress .boot-runner img{display:block;width:100%;height:100%;max-height:none;object-fit:contain;filter:drop-shadow(1px 0 #dfa3ff) drop-shadow(-1px 0 #dfa3ff) drop-shadow(0 0 4px #c45aff)}
@media(max-width:600px){.boot-runner{width:80px;height:64px}}
@media(prefers-reduced-motion:reduce){.boot-runner{display:none}.boot-progress-fill{box-shadow:none}}

/* Persistent neon help just outside the tower's upper-left corner. */
.tower .tower-corner-info{position:absolute;left:-26px;top:0;width:23px;height:23px;margin:0;z-index:20;border:2px solid #5ffff0;background:#092a39;color:#d9ffff;font:900 15px/1 Arial,sans-serif;box-shadow:0 0 5px #31ffe2,0 0 12px #21cfffaa;text-shadow:0 0 4px #67ffec}
.tower .tower-corner-info:hover{background:#07505a}.reel-caption{padding-right:29px}
.board>.status.has-tower-info{display:block;width:calc(100% - 55px);margin:0!important;white-space:nowrap;text-align:left;font-size:clamp(14px,3.8vw,16px);line-height:1.2;letter-spacing:-.3px}
.has-tower-info .status-short{white-space:nowrap}
.board>.status.has-tower-info{width:calc(88.27% - 38px);text-align:right;letter-spacing:-.45px}
/* Balance the wide hat/cauldron artwork against the other reel symbols. */
.symbol.WITCH_HAT img{width:130%;height:100%;transform:none}
.symbol.CAULDRON img{width:180%;height:96%;transform:none}
.symbol.WITCH_HAT small,.symbol.OGRE small{z-index:6;bottom:2%;font-size:clamp(10px,1.3vw,12px);line-height:1.1;letter-spacing:.15px;padding:2px 3px;font-weight:900;white-space:nowrap;text-shadow:0 1px 2px #000}
.guide-symbol small{font-size:9px;line-height:1.1;letter-spacing:0}
.guide-symbol.WITCH_HAT img{width:130%}.guide-symbol.CAULDRON img{width:180%}
@media(max-width:600px){.symbol.WITCH_HAT img{transform:scaleY(1.35)}.symbol.CAULDRON img{transform:scaleY(1.35)}.symbol.OGRE small{font-size:clamp(8px,2.4vw,11px);padding:2px}.symbol.WITCH_HAT small{font-size:clamp(10px,2.8vw,13px);padding:2px 3px}}

/* Larger result messages; tower collections have their own neon treatment. */
.board>.status{font-size:17px;line-height:1.25;font-weight:800;overflow-wrap:anywhere}
.board>.status.has-tower-info{font-size:clamp(15px,4vw,18px)}
.board>.status.cashout-announcement{color:#f0ffff;background:linear-gradient(110deg,#122b38ed,#371052ed);border:2px solid #66fff2;border-radius:8px;padding:5px 7px;margin:2px 4px!important;box-shadow:0 0 6px #38ffe3,0 0 12px #cb4cff88,inset 0 0 8px #48ffe34d;text-shadow:-.6px 0 #8b36ff,.6px 0 #8b36ff,0 -.6px #8b36ff,0 .6px #8b36ff,0 0 5px #52ffef;letter-spacing:.3px}
@media(max-width:600px){.board>.status{font-size:15px;line-height:1.2}.board>.status.cashout-announcement{font-size:16px;padding:4px 5px;letter-spacing:0}}

/* Keep the baked-in Giant label inside the desktop reel cell. */
@media(min-width:601px){.symbol.GIANT img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transform:translateY(-2px)}}

/* Secondary paylines sit above cell backgrounds and below symbol artwork. */
.symbol>.payline-behind{position:absolute;inset:0;width:100%;height:100%;z-index:0;pointer-events:none;overflow:hidden;filter:drop-shadow(0 0 2px #ffbd51)}
.symbol>.payline-behind polyline{vector-effect:non-scaling-stroke;stroke-width:2px}
.reel-frame>.lines{z-index:5}

/* One existing neon cat clip celebrates each revealed cat payline. */
.symbol.BLACK_CAT.winning-cat img{position:absolute;left:10%;top:auto;bottom:1%;width:80%;height:78%;object-fit:contain;transform:none;transform-origin:50% 100%;animation:paying-cat-hop 1.8s ease-in-out infinite;will-change:transform}
@keyframes paying-cat-hop{0%,20%,100%{transform:translateY(0) scale(1)}30%{transform:translateY(1%) scale(1.04,.94)}53%{transform:translateY(-18%) scale(.98,1.02)}74%{transform:translateY(0) scale(1.05,.94)}86%{transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.symbol.BLACK_CAT.winning-cat img{animation:none}}

.symbol.WITCH.winning-witch img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transform:none}
#win{display:inline-block;transform-origin:center;will-change:transform}
.board>.status.has-win-breakdown{margin-right:4px;line-height:1.15}
.win-breakdown{display:flex;align-items:center;justify-content:center;gap:5px;width:max-content;max-width:100%;min-height:26px;margin:3px auto 0;padding:1px 6px;border:1px solid #f4d48199;border-radius:7px;background:#1c0b30dc;color:#fff2ca;box-shadow:0 0 5px #b469e244;font:700 13px/1 Arial,sans-serif;text-shadow:0 1px 2px #000;white-space:nowrap}
.win-breakdown strong{color:#fff2a4}.win-breakdown small{font-size:10px;color:#e1caee}.win-detail-index{margin-left:2px;color:#a5fff2!important}
.win-summary-symbol{display:inline-grid;place-items:center;position:relative;isolation:isolate;width:26px;height:26px;overflow:hidden;flex:none}
.win-summary-symbol img{width:100%;height:100%;object-fit:contain}.win-summary-symbol .letter{font:900 25px/1 Georgia,serif}.win-summary-symbol small,.win-summary-symbol .broom-sparkles{display:none}
.win-summary-symbol.WITCH img,.win-summary-symbol.BLACK_CAT img{object-fit:cover}
.win-summary-symbol.WITCH_HAT img{width:130%}.win-summary-symbol.CAULDRON img{width:150%}
@media(max-width:600px){.win-breakdown{font-size:12px;gap:4px;padding:1px 4px}.win-breakdown small{font-size:9px}.win-summary-symbol{width:23px;height:23px}.board>.status.has-win-breakdown>.status-short{font-size:14px}}

/* The symbol/count/payout chip replaces the duplicate ordinary win sentence. */
.board>.status.has-win-breakdown:not(.cashout-announcement)>.status-full,
.board>.status.has-win-breakdown:not(.cashout-announcement)>.status-short{display:none}
.board>.status.has-win-breakdown:not(.cashout-announcement)>.win-breakdown{margin-top:0}

/* Centre the label within the stone border, independent of native button padding. */
.dock .spin{padding:0}
.dock .spin::after{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;text-align:center;line-height:1}

/* Keep moving reels on small compositor layers; restore full glow on stopping. */
.motion-track{backface-visibility:hidden;contain:layout paint}
.reel.motion-running .symbol img{filter:none}
.reel.motion-running .symbol::before{box-shadow:none}
.reel.motion-running .broom-sparkles{display:none}

/* Bright lettering and gold/white fairy glints around the in-game title. */
.title-row .game-title{position:relative;isolation:isolate;overflow:visible}
.game-title .title-second{color:#fff3ff;-webkit-text-stroke:.7px #78238f;text-shadow:0 2px #471350,0 3px 1px #160d19,0 0 4px #ff9bf5,0 0 10px #ed65ff99}
.game-title .title-second b{color:#fff1a6;-webkit-text-stroke:.6px #744315;text-shadow:0 0 5px #ffdf8a}
.game-title .title-sparkles{position:absolute;inset:0;width:100%;max-width:360px;margin:auto;pointer-events:none;z-index:2;-webkit-text-stroke:0}
.title-sparkles i{position:absolute;left:var(--x);top:var(--y);width:1em;height:1em;display:grid;place-items:center;font:400 var(--size)/1 Georgia,serif;color:#fff9de;text-shadow:0 0 3px #fff,0 0 7px #ffd865,0 0 13px #ffa940;transform:translate(-50%,-50%);animation:title-fairy-glint var(--duration) ease-in-out var(--delay) infinite}
.title-sparkles i:nth-child(3n){color:#fff0ff;text-shadow:0 0 3px #fff,0 0 7px #ffb0ff,0 0 12px #de58ff}
.game-title .title-sparkles i{margin:0}
.title-sparkles i:nth-child(1),.title-sparkles i:nth-child(6),.title-sparkles i:nth-child(8),.title-sparkles i:nth-child(12){font-size:calc(var(--size)*1.25);animation-name:title-major-glint}
@keyframes title-major-glint{0%,100%{opacity:.55;transform:translate(-50%,-50%) scale(.75) rotate(-10deg)}50%{opacity:1;transform:translate(-50%,-50%) scale(1.4) rotate(15deg)}}
@keyframes title-fairy-glint{0%,100%{opacity:.12;transform:translate(-50%,-50%) scale(.4) rotate(-12deg)}42%{opacity:1;transform:translate(-50%,-50%) scale(1.25) rotate(12deg)}65%{opacity:.48;transform:translate(-50%,-50%) scale(.75) rotate(0)}}
.is-spinning .title-sparkles i{animation-play-state:paused}
@media(max-width:600px){.title-sparkles i{font-size:calc(var(--size)*.78)}.title-sparkles i:nth-child(1),.title-sparkles i:nth-child(6),.title-sparkles i:nth-child(8),.title-sparkles i:nth-child(12){font-size:var(--size)}.game-title .title-second{-webkit-text-stroke:.65px #78238f;text-shadow:0 2px #471350,0 0 3px #ffc0fc,0 0 8px #ed65ff99}}
@media(prefers-reduced-motion:reduce){.title-sparkles i{animation:none;opacity:.75}.title-sparkles i:nth-child(n+11){display:none}}

/* One compact title line, raised by removing the old second-line space. */
.title-row .game-title{flex-direction:row;flex-wrap:nowrap;gap:.18em;height:44px;font-size:clamp(24px,3vw,34px);line-height:1;letter-spacing:0}
.game-title .title-second{display:inline-flex;align-items:baseline;gap:.14em;font-size:1em;white-space:nowrap}
.game-title .title-second b{font-size:.72em}
@media(max-width:600px){.title-row .game-title{height:36px;font-size:clamp(14px,calc((100vw - 110px)/12),28px);letter-spacing:0;gap:.15em}.game-title .title-sparkles{inset:0 0 -1px}.title-row{margin-top:0}}

/* A small golden broom under WITCHES, tucked inside the compact title row. */
.title-row .game-title{padding-bottom:8px}
.game-title .title-second{position:relative}
.game-title .title-second::after{content:'';position:absolute;left:.92em;right:-.08em;top:calc(100% + 1px);height:12px;background:url('assets/title-broom.svg') center/100% 100% no-repeat;filter:drop-shadow(0 0 2px #ffd76c99);pointer-events:none}
@media(max-width:600px){.game-title .title-second::after{height:9px;top:100%}}
