/* Sunny, storybook dog courtyard. The game keeps its existing outcome engine. */
.ability-ball,.ability-knock-bone,.collecting-bone{position:fixed;z-index:270;pointer-events:none;object-fit:contain;filter:drop-shadow(0 5px 4px #8d416b77);transform-origin:center}
.ability-ball{filter:drop-shadow(0 0 6px #fff5b8) drop-shadow(0 4px 3px #71476166)}
.collecting-bone .symbol{width:100%;height:100%}
.double-pop{position:absolute;z-index:6;inset:0;display:grid;place-items:center;color:#fff8c9;font:bold clamp(14px,3cqw,27px) 'Trebuchet MS',sans-serif;text-shadow:0 2px #9d447d,0 0 7px #cf609c;pointer-events:none;animation:double-rise .7s ease-out both}
.double-hit{animation:double-land .6s ease-out}.row-revealed{animation:row-light .65s ease-out both}.collect-vortex{box-shadow:inset 0 0 28px #e9a3ff,inset 0 0 0 3px #fff5b9!important}.collection-hit{filter:brightness(1.28)}
@keyframes double-rise{0%{opacity:0;transform:translateY(8px) scale(.5)}25%{opacity:1;transform:translateY(-5px) scale(1.2)}100%{opacity:0;transform:translateY(-35px) scale(.8)}}
@keyframes double-land{35%{filter:brightness(1.4);box-shadow:inset 0 0 20px #ffcaee,inset 0 0 0 3px #fff7b6}}
@keyframes row-light{0%{box-shadow:inset 0 0 25px #fff8b1,inset 0 0 0 3px #f6ad64}100%{box-shadow:inset 0 2px #fff9}}
@media(prefers-reduced-motion:reduce){.double-pop,.double-hit,.row-revealed{animation:none}}

body{background:#94d8ef url('assets/courtyard-v5.webp') center/cover fixed;color:#533463;font-family:'Trebuchet MS',system-ui,sans-serif}
body:before{background:linear-gradient(#ffffff0a,#ffefd520)}
button{color:#fff9e8;background:linear-gradient(#af7fd9,#7056ad);border:2px solid #fff2c7;box-shadow:0 3px 0 #614087;border-radius:14px;text-shadow:0 1px #684578}
#game{grid-template-rows:28px 140px minmax(0,1fr) 44px;padding:0 16px}
.topbar{color:#583e65;text-shadow:0 1px #fff9}.topbar b,.demo-note{color:#583e65}.topbar button{color:#54395c;background:#fff5ddb0;border:1px solid #fff3cb;box-shadow:none;text-shadow:none}
.titlebar{grid-template-columns:1fr 2.6fr 1fr;z-index:5}
.titlebar>img{width:100%;height:100%;max-height:140px;object-fit:contain;filter:drop-shadow(0 4px 0 #89594344)}
.titlebar .small-button{background:linear-gradient(#f3a47a,#d46e53);color:#fff9e3;border-color:#ffebc6;box-shadow:0 3px #9b5243;font-size:11px}
.machine{grid-template-rows:151px 57px minmax(0,1fr) 32px 84px;border:4px solid #fff5cc;border-radius:29px;padding:0 13px 8px;background:linear-gradient(#e9f5ed99 0,#ffedceb8 22%,#ffefdf 42%,#ffe3c4);box-shadow:0 0 0 4px #cd8556,0 0 0 7px #ffe2a6,0 10px 0 #925b4840,0 20px 35px #58396240,inset 0 0 0 2px #eec48f}
.collectors{background:none;border:0;border-radius:0;gap:14px}
.collector{--ribbon-y:0%;--stage-glow:#ffcc4d}
.collector[data-dog=suki]{--ribbon-y:50%}.collector[data-dog=chunky]{--ribbon-y:100%}
.dog-art{height:151px;width:196px}
.dog-sprite,.collector[data-stage='0'] .dog-sprite,.collector[data-stage='1'] .dog-sprite,.collector[data-stage='2'] .dog-sprite{width:144px;height:144px;bottom:41px}
.bed-sprite{width:161px;height:161px;bottom:27px;filter:drop-shadow(0 5px 3px #68463244)}
.collector .bed-front,.feature-bed-front{clip-path:inset(89% 0 0);filter:none}
.nameplate{position:absolute;bottom:0;display:flex;flex-direction:column;align-items:center;width:199px;height:64px;min-width:0;padding:0;border:0;background:none;border-radius:0;box-shadow:none!important;z-index:5}
.nameplate:before{content:'';position:absolute;left:0;top:0;width:100%;height:46px;background:url('assets/ribbons-v5.webp') 50% var(--ribbon-y)/100% 300% no-repeat;z-index:-1;filter:drop-shadow(0 3px 1px #70536444)}
.nameplate b{font-family:'Trebuchet MS',system-ui,sans-serif;font-weight:1000;line-height:38px;font-size:18px;letter-spacing:.07em;color:#fff8df;text-shadow:0 2px #594076;display:block}
.nameplate span{color:#694563;font-size:10px;font-weight:1000;line-height:15px;letter-spacing:.06em;margin:1px 0 0;background:#fff5dcdf;padding:1px 8px;border-radius:8px;text-shadow:0 1px #fff}
.collector[data-stage='1'] .dog-art:before{background:radial-gradient(ellipse,#ffcf4666,transparent 68%)}
.collector[data-stage='2'] .dog-art:before{background:radial-gradient(ellipse,#fffaf8,#ffd25280 40%,transparent 70%)}
.collector[data-stage='2'] .dog-sprite{filter:drop-shadow(0 0 5px #fff4b9)}
.jackpots{gap:7px;padding:4px 0 8px;font-size:10px}
.jackpots>span,.jackpots>span:nth-child(2),.jackpots>span:last-child{color:#fff9e9;text-shadow:0 1px #704760;border:2px solid #ffedb8;background:linear-gradient(#eaab70,#ce724b);border-radius:15px 15px 19px 19px;box-shadow:inset 0 2px #fff9,0 3px #a1644c;font-size:10px;letter-spacing:.08em;gap:0}
.jackpots>span:nth-child(2){background:linear-gradient(#9ebee5,#758cc4);box-shadow:inset 0 2px #fff9,0 3px #596ba2}.jackpots>span:nth-child(3){background:linear-gradient(#be98ed,#9370c2);box-shadow:inset 0 2px #fff9,0 3px #755194}.jackpots>span:nth-child(4){background:linear-gradient(#ed9cc3,#d069a4);box-shadow:inset 0 2px #fff9,0 3px #a44c7f}.jackpots>span:last-child{background:linear-gradient(#ffdb6b,#eda945);box-shadow:inset 0 2px #fff9,0 3px #bc803b;color:#714526;text-shadow:0 1px #fff4}
.jackpots b,.jackpots>span:nth-child(2) b,.jackpots>span:last-child b{color:#fff9df;font-family:'Trebuchet MS',system-ui,sans-serif;font-weight:1000;font-size:21px;text-shadow:0 2px #73537799;line-height:1.05}.jackpots>span:last-child b{color:#72472a;text-shadow:0 1px #fff6}
.board-frame{padding:7px;border:3px solid #ffefd2;border-radius:21px;background:linear-gradient(#de966a,#bd795c);box-shadow:0 4px #9d654e,inset 0 0 0 2px #976342,0 8px 11px #97634228}
#board{background:#8a709d;padding:3px;gap:5px;border-radius:12px;box-shadow:inset 0 2px 7px #53426a66}
.reel{gap:5px}.cell,.cell:nth-child(even){background:linear-gradient(#f6efe9,#e5e3f3);box-shadow:inset 0 2px #fffc,inset 0 -3px #c4b6d7;border:1px solid #fff6;border-radius:10px}.cell:nth-child(even){background:linear-gradient(#e9f6fc,#d7e8f5)}
.hold-cell,.hold-cell:nth-child(even){background:linear-gradient(#dcdaf0,#c2c5e5)!important;box-shadow:inset 0 2px 6px #81729255;border:1px solid #f8f2fc99}.hold-cell.locked{background:linear-gradient(#fff5d2,#f9dd99)!important;box-shadow:inset 0 2px #fff,0 1px 0 #c99249;border-color:#ffeaa4}.empty-mark{background:#9b86b155}
.reel-strip{background:#dfe9f4}.reel-strip .cell{border:1px solid #fff6}.symbol>img{filter:drop-shadow(0 3px 2px #563d4033)}
.symbol[class*=bone-]{filter:none;container-type:size}.bone-art{transform:scale(1.13)}
.value,.expanded #board .value{inset:0 0 8%;font-family:Georgia,serif;font-weight:900;font-size:clamp(8px,min(10.5cqw,23cqh),23px);letter-spacing:-.035em;line-height:1;color:#482307;text-shadow:0 1px #fff8}
.value.wide-value,.expanded #board .value.wide-value{font-size:clamp(7px,min(8cqw,18cqh),18px)}
.featurebar{color:#70516e;text-shadow:none;font-size:11px}.featurebar #status{letter-spacing:.015em}#board-total{color:#9a5542;font-size:12px}#lives i{border-color:#9b6794;background:#c97db2;box-shadow:0 1px #fff8}#lives i.used{background:#d9c9d8}
.console{grid-template-columns:1.1fr 1.15fr 95px 1.1fr 79px;gap:10px;padding:8px 5px 2px;border-top:2px solid #d39a6b88;background:linear-gradient(#ffeed388,#f3c79577);border-radius:0 0 20px 20px;box-shadow:inset 0 1px #fff9}
.console>.readout,.console>.bet-controls{background:#fff5e7;border:2px solid #e0b3a5;border-radius:14px;box-shadow:inset 0 2px #fff,0 3px #cd968a55;min-height:55px;padding:7px 4px}.readout span{color:#83617e;font-size:9px;letter-spacing:.06em}.readout b,.bet-controls .readout b{font-family:'Trebuchet MS',system-ui,sans-serif;color:#6d466c;text-shadow:none;font-size:21px;font-weight:1000}
.bet-controls button{background:linear-gradient(#be92dc,#8968bd);border:2px solid #f9dbff;color:#fff;box-shadow:0 2px #73518e;width:26px;height:29px;min-height:29px;font-size:20px}
#spin{height:68px;width:83px;border-radius:22px;border:3px solid #ffefb8;background:linear-gradient(#ffd77c,#f7a544);box-shadow:inset 0 2px #fff8,0 5px #c57e38,0 7px 7px #8c594633;color:#8a4b29;text-shadow:0 1px #ffe9a4;font-size:14px;padding-top:28px}
#spin:hover:not(:disabled){box-shadow:inset 0 2px #fff8,0 5px #c57e38,0 0 17px #ffdd72}#spin:before{top:5px}#speed{background:linear-gradient(#bf99e0,#9a72c4);border:2px solid #f0d6ff;color:#fff8ed;text-shadow:0 1px #775197;border-radius:12px;font-size:10px}
#auto{display:block;margin:4px auto 0;width:auto;max-width:100%;min-height:20px;padding:1px 7px;border:1px solid #f4d3a4;background:linear-gradient(#f8b96e,#db7e56);color:#fff9e9;text-shadow:0 1px #92504d;border-radius:7px;font-size:9px;line-height:16px}.leaderboard-list p{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #d8a98f88}.leaderboard-list p span{font-weight:1000;color:#a66a48}
.bottomline{color:#563a60;text-shadow:0 1px #fff9}.bottomline button{color:#614275;background:#ffefdc;border:2px solid #d7acd4;text-shadow:none;border-radius:12px;box-shadow:0 2px #a778aa}.bottomline #preview{background:linear-gradient(#f9d4ed,#db94c6);color:#643756;border:2px solid #fff0dc;box-shadow:0 3px #ad6d9b}
#preview-banner{color:#78458b;text-shadow:0 1px #fff}
#overlay,.feature-entrance,.max-win,.win-modal{background:#6b649c80!important;backdrop-filter:blur(7px)}
#overlayBody,.welcome #overlayBody,.feature-entrance #overlayBody,.max-win #overlayBody,.win-modal #overlayBody{color:#65426c;background:linear-gradient(#fff9ebee,#ffecd6f5),url('assets/courtyard-v5.webp') center/cover!important;border:4px solid #fff4c9;border-radius:28px;box-shadow:0 0 0 4px #d39868,0 15px 40px #43355b55,inset 0 0 0 2px #e9c392}
#overlayBody h2,.feature-entrance h2,.max-win h2,.win-modal h2{font-family:'Trebuchet MS',system-ui,sans-serif!important;font-weight:1000!important;color:#b3556c!important;text-shadow:0 2px #ffdec3,0 4px #d8959366;letter-spacing:-.035em}
#overlayBody p{color:#795b77}.feature-kicker,.max-win .feature-kicker{color:#a17782;letter-spacing:.22em}.intro-card h3{color:#955573}.intro-footnote{color:#876578!important}.free-callout{background:#f1d6e8;color:#805070}.prize-strip{color:#8a667c}.prize-strip b{color:#975b77}
.feature-dog-card{background:linear-gradient(#f4dfef88,#ffefd4);border:2px solid #efc5b7;border-radius:22px;box-shadow:inset 0 2px #fff}.feature-dog-card h3{color:#9b6082}.ability-demo{border-color:#dda9b6}.ability-demo>b{color:#a26980}.demo-grid{background:#8d739f;border:2px solid #f5d3ac;border-radius:9px;box-shadow:inset 0 2px #705583}.demo-grid .demo-slot{background:#e9e0f0;box-shadow:inset 0 1px #fff}
.demo-slot .value{font-size:clamp(7px,min(10.5cqw,23cqh),18px)}.demo-grid .value{font-size:clamp(6px,min(10.5cqw,23cqh),11px)}.collect-result .value{font-size:clamp(9px,min(10.5cqw,23cqh),23px)}
.feature-pose{bottom:17px}.feature-bed-front{clip-path:inset(91% 0 0)}.feature-bed{filter:drop-shadow(0 6px 3px #795c6b44)}
.respin-instruction{border-color:#d7a8bb}.respin-instruction p,.respin-instruction p span{color:#85627e}.respin-medals i{background:linear-gradient(#f8c4eb,#d28abe);color:#fff6de;border:2px solid #fff3cf;box-shadow:0 3px #ae759d;text-shadow:0 1px #a76d94}.bonanza-line{color:#a36583!important}
.primary,.feature-entrance .primary,.max-win .primary,.win-modal .primary{color:#fff5df;background:linear-gradient(#ec9bb4,#d77498);border:3px solid #fff0c3;border-radius:17px;box-shadow:inset 0 2px #ffcbdb,0 5px #ac547d,0 7px 9px #97628044;text-shadow:0 2px #b76787}
.preview-options button{background:linear-gradient(#bfa0dc,#997cbf);border-color:#f6d7eb}.rules-text th,.rules-text td{border-color:#ddb8c7}.rules-text th{color:#a46587}.rules-text{color:#795a72}
.max-win{background:radial-gradient(ellipse,#ffd98470,#a9cce880),url('assets/courtyard-v5.webp') center/cover!important}.max-win h2{color:#e39741!important;text-shadow:0 2px #ffe6ab,0 4px #c96d57,0 7px #b4725444}.max-win #overlayBody:before{opacity:.7}.award-multiplier,.max-win .award-multiplier{color:#a26970!important}.award-multiplier span,.award-reason,.counting-note{color:#937181!important}.walkies-award{color:#ce7394;text-shadow:0 2px #efc8bd}
.payout-plaque strong{font-size:clamp(24px,3.2cqw,39px);inset:0 0 9%}.max-win .payout-plaque strong{font-size:clamp(28px,4.6cqw,53px)}
#effect-label{color:#fff7e5;background:linear-gradient(#ca97d9,#9569b7);border:2px solid #fff0b8;box-shadow:0 4px #765294}
@container game (min-width:601px) and (min-height:441px){.feature-dogs[style='--dogs:1'] .feature-pose{bottom:26px}.feature-dogs[style='--dogs:1'] .demo-slot .value{font-size:clamp(8px,min(10.5cqw,23cqh),19px)}.feature-dogs[style='--dogs:1'] .collect-result .value{font-size:clamp(9px,min(10.5cqw,23cqh),24px)}}
@container game (max-width:600px){
 #game{grid-template-rows:27px 105px minmax(0,1fr) 60px;padding:0 8px}.titlebar{grid-template-columns:65px minmax(0,1fr) 65px}.titlebar>img{max-height:105px}.titlebar .small-button{font-size:8px;padding:5px;min-height:30px}
 .machine{grid-template-rows:125px 49px minmax(0,1fr) 34px 78px;padding:0 5px 5px;border:3px solid #fff3cb;border-radius:22px;box-shadow:0 0 0 3px #cd8556,0 0 0 5px #ffe2a6,0 8px 15px #68467644}.collectors{gap:0}.dog-art{height:125px;width:120px}.dog-sprite,.collector[data-stage='0'] .dog-sprite,.collector[data-stage='1'] .dog-sprite,.collector[data-stage='2'] .dog-sprite{width:104px;height:104px;bottom:42px}.bed-sprite{width:113px;height:113px;bottom:29px}.nameplate{width:124px;height:54px;bottom:0}.nameplate:before{height:35px}.nameplate b{font-size:12px;line-height:28px}.nameplate span{font-size:7px;padding:2px 3px;line-height:11px;letter-spacing:0;margin-top:1px}
 .jackpots{gap:3px;padding:3px 0 7px}.jackpots>span,.jackpots>span:nth-child(2),.jackpots>span:last-child{font-size:7px;border-radius:9px;border-width:1px;letter-spacing:0}.jackpots b,.jackpots>span:nth-child(2) b,.jackpots>span:last-child b{font-size:13px}.board-frame{padding:4px;border-width:2px;border-radius:14px}#board{gap:3px;padding:2px;border-radius:8px}.reel{gap:3px}.cell{border-radius:6px}
 .console{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) 57px minmax(0,1fr);gap:4px;padding:5px 1px 9px}.console>.readout,.console>.bet-controls{border-width:1px;min-height:45px;border-radius:9px;padding:5px 2px}.readout b,.bet-controls .readout b{font-size:12px}.readout span{font-size:7px;letter-spacing:0}.bet-controls{gap:3px}.bet-controls button{width:19px;min-width:19px;height:24px;min-height:24px;font-size:17px;border-width:1px}#spin{width:53px;height:55px;font-size:10px;padding-top:20px;border-width:2px;border-radius:16px}#spin:before{height:23px;width:23px;left:calc(50% - 11.5px);top:2px}#speed{font-size:8px;height:16px;min-height:16px;border-width:1px;padding:0 3px;bottom:-2px;right:1px;border-radius:4px}.featurebar{font-size:9px}#board-total{font-size:9px}
 #overlayBody,.welcome #overlayBody,.feature-entrance #overlayBody,.max-win #overlayBody,.win-modal #overlayBody{border-width:2px;border-radius:19px;box-shadow:0 0 0 2px #d39868,0 10px 22px #65487744}.feature-dog-card{border-width:1px;border-radius:12px}.feature-dogs[style='--dogs:3'] .feature-pose{bottom:15px}.winner-pooches .feature-pose{bottom:12px}.max-win .winner-pooches .feature-pose{bottom:12px}.feature-dogs[style='--dogs:3'] .demo-slot .value{font-size:clamp(6px,min(10.5cqw,23cqh),12px)}.feature-dogs[style='--dogs:3'] .collect-result .value{font-size:clamp(8px,min(10.5cqw,23cqh),16px)}.payout-plaque strong{font-size:26px}.max-win .payout-plaque strong{font-size:29px}
}
@container game (max-width:600px) and (max-height:680px){#game{grid-template-rows:24px 83px minmax(0,1fr) 58px}.titlebar>img{max-height:83px}.machine{grid-template-rows:102px 42px minmax(0,1fr) 31px 69px}.dog-art{height:102px}.dog-sprite,.collector[data-stage='0'] .dog-sprite,.collector[data-stage='1'] .dog-sprite,.collector[data-stage='2'] .dog-sprite{width:86px;height:86px;bottom:38px}.bed-sprite{width:98px;height:98px;bottom:25px}.nameplate{height:48px;width:117px}.nameplate:before{height:33px}.nameplate b{line-height:27px}.nameplate span{font-size:7px;line-height:9px}.console>.readout,.console>.bet-controls{min-height:42px}.readout b,.bet-controls .readout b{font-size:10px}#spin{height:49px;width:49px;font-size:9px}.jackpots b,.jackpots>span:nth-child(2) b,.jackpots>span:last-child b{font-size:12px}}
@container game (max-height:440px){#game{grid-template-rows:20px 61px minmax(0,1fr) 39px}.titlebar{grid-template-columns:1fr 2fr 1fr}.titlebar>img{max-height:61px}.machine{grid-template-rows:69px 31px minmax(0,1fr) 23px 48px;padding:0 7px 3px;border-width:2px;border-radius:17px}.dog-art{height:69px}.dog-sprite,.collector[data-stage='0'] .dog-sprite,.collector[data-stage='1'] .dog-sprite,.collector[data-stage='2'] .dog-sprite{width:65px;height:65px;bottom:20px}.bed-sprite{width:72px;height:72px;bottom:12px}.nameplate{width:130px;height:28px;bottom:0;flex-direction:row;justify-content:center;gap:5px}.nameplate:before{height:28px}.nameplate b{font-size:10px;line-height:27px}.nameplate span{font-size:7px;color:#fff4d4;background:none;padding:0;margin:0;text-shadow:0 1px #735786}.jackpots{padding:2px 0 5px;gap:4px}.jackpots>span,.jackpots>span:nth-child(2),.jackpots>span:last-child{flex-direction:row;font-size:8px;border-width:1px;gap:5px;border-radius:7px}.jackpots b,.jackpots>span:nth-child(2) b,.jackpots>span:last-child b{font-size:12px}.board-frame{padding:3px;border-width:2px;border-radius:12px}.console{grid-template-columns:1fr 1fr 65px 1fr 70px;gap:7px;padding:3px 3px 0}.console>.readout,.console>.bet-controls{min-height:33px;padding:2px;border-width:1px}.readout span{font-size:7px;margin-bottom:2px}.readout b,.bet-controls .readout b{font-size:12px}.bet-controls button{width:22px;min-width:22px;height:24px;min-height:24px;font-size:17px}#spin{height:39px;width:49px;font-size:9px;padding-top:16px;border-width:2px;border-radius:12px}#spin:before{height:18px;width:18px;top:1px;left:calc(50% - 9px)}#speed{position:static;height:28px;min-height:28px;font-size:9px;border-width:1px}.featurebar{font-size:8px}#board-total{font-size:9px}.feature-pose{bottom:15px}.feature-dogs[style='--dogs:3'] .feature-pose{bottom:8px}.max-win .winner-pooches .feature-pose{bottom:3px}.max-win .payout-plaque strong{font-size:23px}.payout-plaque strong{font-size:21px}}
.jumping-pooch{position:fixed;z-index:250;pointer-events:none;background-size:400% 200%;background-repeat:no-repeat;filter:drop-shadow(0 12px 7px #6a487255);transform-origin:50% 88%}
/* Paws meet the cushion plane, above the bed's front wall. */
@container game (min-width:601px) and (min-height:441px){.machine{grid-template-rows:170px 57px minmax(0,1fr) 32px 84px}.dog-art{height:170px}.dog-sprite,.collector[data-stage='0'] .dog-sprite,.collector[data-stage='1'] .dog-sprite,.collector[data-stage='2'] .dog-sprite{bottom:64px}.feature-pose{bottom:34px}.feature-dogs[style='--dogs:1'] .feature-pose{bottom:55px}.winner-pooches .feature-pose{bottom:22px}.max-win .winner-pooches .feature-pose{bottom:30px}}
@container game (max-width:600px){.dog-sprite,.collector[data-stage='0'] .dog-sprite,.collector[data-stage='1'] .dog-sprite,.collector[data-stage='2'] .dog-sprite{bottom:55px}.feature-pose{bottom:31px}.feature-dogs[style='--dogs:3'] .feature-pose{bottom:20px}.winner-pooches .feature-pose{bottom:19px}.max-win .winner-pooches .feature-pose{bottom:22px}}
@container game (max-width:600px) and (max-height:680px){.dog-sprite,.collector[data-stage='0'] .dog-sprite,.collector[data-stage='1'] .dog-sprite,.collector[data-stage='2'] .dog-sprite{bottom:49px}}
@container game (max-height:440px){.dog-sprite,.collector[data-stage='0'] .dog-sprite,.collector[data-stage='1'] .dog-sprite,.collector[data-stage='2'] .dog-sprite{bottom:31px}.feature-pose{bottom:25px}.feature-dogs[style='--dogs:3'] .feature-pose{bottom:11px}.winner-pooches .feature-pose,.max-win .winner-pooches .feature-pose{bottom:8px}}
@container game (min-width:601px) and (min-height:441px){.titlebar>img{height:182px;max-height:none;align-self:center}}
.nameplate span{font-size:11px}
@container game (max-width:600px){.nameplate span{font-size:8px}.nameplate b{font-size:13px}}
@container game (max-height:440px){.nameplate span{font-size:7px}.nameplate b{font-size:10px}}
.titlebar>img{transform:translateY(-12px)}
.intro-card b{color:#8a4f70}
.collector[data-stage='2'] .dog-sprite{filter:drop-shadow(0 0 5px #fffce6) drop-shadow(0 0 12px #ffc548)}
.particle-bone{z-index:260}
.max-win #overlayBody h2{color:#cd7c37!important;text-shadow:0 2px #ffe6ab,0 4px #b35e46}
.bone-shower{mask-image:linear-gradient(90deg,#000 12%,#0003 30%,#0003 70%,#000 88%)}
@container game (max-width:600px){.titlebar>img{transform:translateY(-9px)}}
@container game (max-height:440px){
 #game{grid-template-rows:16px 33px minmax(0,1fr) 26px}
 .titlebar>img{height:43px;max-height:43px;transform:translateY(-7px)}
 .titlebar .small-button{font-size:8px;min-height:25px;padding:3px 8px}
 .machine{grid-template-rows:48px 26px minmax(0,1fr) 18px 44px}
 .dog-art{height:48px}.bed-sprite{height:60px;width:60px;bottom:6px}
 .dog-sprite,.collector[data-stage='0'] .dog-sprite,.collector[data-stage='1'] .dog-sprite,.collector[data-stage='2'] .dog-sprite{height:48px;width:48px;bottom:22px}
 .nameplate{height:22px}.nameplate:before{height:23px}.nameplate b{line-height:22px;font-size:9px}.nameplate span{font-size:6px}
 .jackpots{padding:1px 0 4px}.jackpots b,.jackpots>span:nth-child(2) b,.jackpots>span:last-child b{font-size:11px}
 .topbar{font-size:9px}.topbar button{font-size:8px;min-height:16px;padding:0 5px}.topbar .demo-note{font-size:8px}
 .bottomline button{min-height:22px;font-size:8px}.console>.readout,.console>.bet-controls{min-height:31px}
}

/* Cabinet depth and reel space; retain the smaller device preview sizes. */
#shell{width:min(1440px,100vw);max-height:none}
.machine{background:linear-gradient(100deg,#fff1d8,#f6c795 48%,#ffebc9);box-shadow:0 0 0 4px #b7713b,0 0 0 7px #ffdf85,0 12px 0 #94502b55,0 20px 35px #58396255,inset 0 0 0 2px #fff5d3}
.collectors{background:radial-gradient(ellipse at 50% 100%,#ffe3a1aa,transparent 65%)}
.board-frame{background:linear-gradient(105deg,#fff1b0,#c68b43 18%,#ffde80 45%,#b9713d 78%,#fff0b0);box-shadow:0 5px #9b5b37,inset 0 0 0 2px #fff3bd,0 9px 13px #7f4b3b44}
#board{background:#775786;box-shadow:inset 0 3px 9px #44305c88;padding:5px;gap:6px}
.cell,.cell:nth-child(even){background:radial-gradient(ellipse at 50% 42%,#fffdf5 10%,#ece3f1 75%,#c7b5d6);border:1px solid #fff5d7;box-shadow:inset 0 3px 4px #fff9,inset 0 -4px 6px #ad90ba55,0 2px #634574}
.cell:nth-child(even){background:radial-gradient(ellipse at 50% 42%,#f5fdff 10%,#dceef8 72%,#abc8df)}
.hold-cell,.hold-cell:nth-child(even){background:repeating-linear-gradient(45deg,#ffffff09 0 1px,transparent 1px 12px),radial-gradient(ellipse,#bcb6df,#9986bb 80%)!important;border-color:#e4cbf0;box-shadow:inset 0 3px 9px #55407377,inset 0 -1px #fff9}
.hold-cell.locked{background:radial-gradient(ellipse,#fff5c8 15%,#f9d477 70%,#dfa25d)!important;border-color:#fff2ba;box-shadow:inset 0 2px #fff7d9,inset 0 -3px #b7763655,0 2px #735174}
.empty-mark{width:17px;height:17px;background:linear-gradient(135deg,#e8d9f7,#8970a9);border:2px solid #d9c4e9;border-radius:5px;transform:rotate(45deg);box-shadow:0 2px 5px #60488066,inset 0 1px #fff7;opacity:.65}
.jackpots>span,.jackpots>span:nth-child(2),.jackpots>span:last-child{border-color:#fff0bd;box-shadow:inset 0 2px #fff9,inset 0 -3px #66345133,0 3px #a1644c}
.console{border-top:3px solid #d49152;box-shadow:inset 0 2px #fff4c9;background:linear-gradient(#ffe8b8,#efbc86)}
@container game (min-width:601px) and (min-height:681px){
 #game{grid-template-rows:28px 110px minmax(0,1fr) 40px;padding:0 20px}
 .titlebar>img{height:150px;transform:translateY(-17px)}
 .machine{grid-template-rows:150px 57px minmax(0,1fr) 32px 84px}
 .dog-art{height:150px}.bed-sprite{width:146px;height:146px;bottom:26px}
 .dog-sprite,.collector[data-stage='0'] .dog-sprite,.collector[data-stage='1'] .dog-sprite,.collector[data-stage='2'] .dog-sprite{width:126px;height:126px;bottom:58px}
 .nameplate{height:58px}
}
@container game (max-width:600px){#board{padding:2px;gap:3px}.empty-mark{height:13px;width:13px;border-width:1px}}
@container game (max-height:440px){#board{padding:2px;gap:3px}.empty-mark{height:10px;width:10px;border-width:1px}}
.machine{isolation:isolate;padding-left:25px;padding-right:25px;padding-bottom:15px;border-color:transparent;box-shadow:0 12px 28px #6b3f4566}
.machine:before{content:'';position:absolute;inset:-8px;z-index:1;pointer-events:none;border:38px solid transparent;border-image:url('assets/cabinet-frame-v6.webp') 18% / 38px / 0 stretch}
.machine>.collectors,.machine>.jackpots,.machine>.board-frame,.machine>.featurebar,.machine>.console{position:relative;z-index:2}
@container game (max-width:600px){.machine{padding-left:10px;padding-right:10px;padding-bottom:8px}.machine:before{inset:-5px;border-width:25px;border-image-width:25px}}
@container game (max-height:440px){.machine{padding-left:14px;padding-right:14px;padding-bottom:6px}.machine:before{inset:-5px;border-width:24px;border-image-width:24px}}
/* Preserve the original game's proportions and logo. Decorate its stage. */
#shell{width:min(1120px,100vw)}
.collector .dog-art{z-index:1}
.collectors{background:repeating-linear-gradient(90deg,#fff5cd22 0 2px,transparent 2px 29px),radial-gradient(ellipse at 50% 100%,#ffd66b88,transparent 70%);border-bottom:1px solid #dba56988}
.collector:after{content:'';position:absolute;z-index:0;bottom:42px;left:8%;right:8%;height:11px;border-radius:50%;background:radial-gradient(ellipse,#b6784b55,transparent 72%);pointer-events:none}
.titlebar>img{transform:none}
@container game (min-width:601px) and (min-height:681px){.titlebar>img{height:120px;max-height:120px;transform:none}.titlebar{grid-template-columns:1fr 3fr 1fr}}
@container game (max-width:600px){.titlebar{grid-template-columns:52px minmax(0,1fr) 30px}.titlebar>img{height:100%;max-height:105px;transform:none}.collector-props img{height:31px;width:31px;bottom:56px;opacity:.85}.collector-props .prop-left{left:-2%}.collector-props .prop-right{right:-2%}}
@container game (max-width:600px) and (max-height:680px){.collector-props img{height:25px;width:25px;bottom:46px}}
@container game (max-height:440px){.titlebar>img{height:40px;max-height:40px;transform:none}.collector-props img{height:34px;width:34px;bottom:20px}.collector-props .prop-left{left:10%}.collector-props .prop-right{right:10%}.collector:after{bottom:17px}}
.collector[data-dog=tico] .dog-sprite{animation:tico-alert 5.8s ease-in-out infinite}
.collector[data-dog=suki] .dog-sprite{animation:suki-sway 6.4s ease-in-out infinite}
.collector[data-dog=chunky] .dog-sprite{animation:chunky-breathe 5.2s ease-in-out infinite}
.collector[data-stage='2'] .dog-sprite{animation:pooch-ready 2.4s ease-in-out infinite}
.collector.react .dog-sprite,.collector.burst .dog-sprite,.collector .pose-echo{animation:none!important}
.collector.stage-rise .nameplate:before{filter:drop-shadow(0 0 12px #fff19d) brightness(1.2)}
.collector[data-stage='2'] .bed-sprite:not(.bed-front){filter:drop-shadow(0 0 9px #ffbd4c);animation:cushion-ready 2.4s ease-in-out infinite}
@keyframes tico-alert{0%,100%{transform:translateX(-50%)}22%{transform:translateX(-50%) rotate(-2deg) scale(1.015)}34%{transform:translateX(-50%) rotate(1.2deg)}60%{transform:translateX(-50%) translateY(-2px) scale(1.025,1.015)}78%{transform:translateX(-50%) rotate(-.5deg)}}
@keyframes suki-sway{0%,100%{transform:translateX(-50%) rotate(-.6deg)}30%{transform:translateX(-50%) translateY(-2px) scale(1.018) rotate(1.5deg)}65%{transform:translateX(-50%) rotate(-1.5deg)}85%{transform:translateX(-50%) scale(1.025,1.01)}}
@keyframes chunky-breathe{0%,100%{transform:translateX(-50%) scale(1)}35%{transform:translateX(-50%) scale(1.025,1.012) rotate(.7deg)}70%{transform:translateX(-50%) translateY(-1px) rotate(-1.2deg)}}
@keyframes pooch-ready{0%,100%{transform:translateX(-50%) translateY(0) scale(1)}35%{transform:translateX(-50%) translateY(-4px) scale(1.035)}62%{transform:translateX(-50%) rotate(-1.5deg)}80%{transform:translateX(-50%) rotate(1.5deg)}}
@keyframes cushion-ready{50%{filter:drop-shadow(0 0 15px #ffe194);transform:translateX(-50%) scale(1.015)}}
@media(prefers-reduced-motion:reduce){.collector .dog-sprite,.collector .bed-sprite{animation:none!important}}
/* The crest and cabinet are one continuous surround. */
#game{isolation:isolate}
#game:before{content:'';position:absolute;inset:28px 10px 40px;z-index:-1;pointer-events:none;border:38px solid transparent;border-image:url('assets/logo-surround-v6.webp') 28% / 54px / 0 stretch;background:linear-gradient(105deg,#fff1d6,#f8d3a0 48%,#ffe7bf);background-clip:padding-box}
.machine{background:none;border:0;box-shadow:none;padding-left:19px;padding-right:19px}
.machine:before{display:none}
.titlebar{padding:0 17px}
.titlebar>img{position:relative;z-index:3;filter:drop-shadow(0 5px 3px #8c3c3666)}
.machine .jackpots{margin:5px 0 0;padding:4px 6px;gap:0;border:1px solid #ce9852;border-radius:8px;background:linear-gradient(#ffe2a0,#f0bf72);box-shadow:inset 0 1px #fff5d0,0 2px #ad773f55}
.machine .jackpots>span,.machine .jackpots>span:nth-child(2),.machine .jackpots>span:last-child{flex:1;border:0;border-right:1px solid #b17c4855;background:none;box-shadow:none;border-radius:0;color:#784936;text-shadow:0 1px #ffefb9;gap:1px;font-size:9px}
.machine .jackpots>span:last-child{border-right:0}
.machine .jackpots b,.machine .jackpots>span:nth-child(2) b,.machine .jackpots>span:last-child b{font-size:17px;color:#6c3b35;text-shadow:0 1px #ffeab0}
@container game (min-width:601px) and (min-height:441px){.machine{grid-template-rows:170px minmax(0,1fr) 47px 30px 84px}.dog-art{height:170px}.titlebar>img{height:120px;max-height:120px}}
@container game (max-width:600px){#game:before{inset:27px 7px 60px;border-width:25px;border-image-width:25px}.machine{grid-template-rows:125px minmax(0,1fr) 43px 30px 78px;padding-left:9px;padding-right:9px}.machine .jackpots>span,.machine .jackpots>span:nth-child(2),.machine .jackpots>span:last-child{font-size:6px}.machine .jackpots b,.machine .jackpots>span:nth-child(2) b,.machine .jackpots>span:last-child b{font-size:12px}.titlebar{padding:0 10px}}
@container game (max-width:600px) and (max-height:680px){#game:before{inset:24px 6px 58px}.machine{grid-template-rows:102px minmax(0,1fr) 37px 28px 69px}}
@container game (max-height:440px){#game:before{inset:16px 8px 26px;border-width:24px;border-image-width:24px}.machine{grid-template-rows:48px minmax(0,1fr) 26px 18px 44px;padding-left:11px;padding-right:11px}.machine .jackpots{padding:1px 3px;margin:3px 0 0}.machine .jackpots>span,.machine .jackpots>span:nth-child(2),.machine .jackpots>span:last-child{font-size:7px}.machine .jackpots b,.machine .jackpots>span:nth-child(2) b,.machine .jackpots>span:last-child b{font-size:10px}}

/* Growth is anchored at the cushion, independent of pose and idle motion. */
.collector{--puppy:154px;--sitting:183px;--ready:211px;--paw-line:70px}
.collector .dog-sprite{transition:width .65s ease,height .65s ease,bottom .65s ease;transform-origin:50% 92%}
.collector[data-stage='0'] .dog-sprite{width:var(--puppy);height:var(--puppy);bottom:calc(var(--paw-line) - var(--puppy)*.08)}
.collector[data-stage='1'] .dog-sprite{width:var(--sitting);height:var(--sitting);bottom:calc(var(--paw-line) - var(--sitting)*.08)}
.collector[data-stage='2'] .dog-sprite{width:var(--ready);height:var(--ready);bottom:calc(var(--paw-line) - var(--ready)*.08)}
.machine>.collectors{z-index:6}
.titlebar{z-index:3}
@container game (max-width:600px){.collector{--puppy:107px;--sitting:124px;--ready:142px;--paw-line:63px}}
@container game (max-width:600px) and (max-height:680px){.collector{--puppy:91px;--sitting:108px;--ready:123px;--paw-line:56px}}
@container game (max-height:440px){.collector{--puppy:58px;--sitting:70px;--ready:84px;--paw-line:27px}}
@media(prefers-reduced-motion:reduce){.collector .dog-sprite{transition:none}}

/* Keep growing heads in front of the crest, with paws in their beds. */
.machine{z-index:4}

/* A continuous illustrated lounge fills the entire character stage. */
#game:after{content:'';position:absolute;z-index:0;pointer-events:none;left:39px;right:39px;top:43px;height:270px;background:#722e27 url('assets/puppy-lounge-v7.webp') center/111% 100% no-repeat;border-radius:9px 9px 0 0;box-shadow:inset 0 -8px 10px #56292255}
.collectors{background:none;border-bottom:0}
@container game (max-width:600px){#game:after{left:20px;right:20px;top:39px;height:219px}}
@container game (max-width:600px) and (max-height:680px){#game:after{left:19px;right:19px;top:35px;height:178px}}
@container game (max-height:440px){#game:after{left:25px;right:25px;top:24px;height:90px}}

/* Keep the complete action label and speed control inside the console. */
.console{grid-template-columns:minmax(0,1.1fr) minmax(0,1.15fr) 95px minmax(0,1.1fr)}
#spin{padding:28px 2px 3px;letter-spacing:0;white-space:nowrap;line-height:1.15}
.console #speed{position:static;display:block;margin:3px auto 0;width:auto;max-width:100%;height:20px;min-height:20px;padding:0 7px;font-size:9px;line-height:18px;border-width:1px;border-radius:6px;box-shadow:none}
.console>.readout:last-child{padding:4px;display:flex;flex-direction:column;align-items:center;justify-content:center}
.console>.readout:last-child>span{margin-bottom:2px}
@container game (max-width:600px){.console{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) 59px minmax(0,1fr);padding:5px 1px 6px;align-items:center}#spin{width:57px;padding:20px 2px 3px;font-size:10px}.console #speed{font-size:8px;height:18px;min-height:18px;line-height:16px;padding:0 4px;margin-top:3px}.console>.readout:last-child{padding:3px 1px}}
@container game (max-width:600px) and (max-height:680px){#spin{width:55px;font-size:9px}}
@container game (max-height:440px){.console{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 65px minmax(0,1fr)}#spin{width:59px;padding:16px 2px 2px;font-size:9px}.console>.readout:last-child{display:grid;grid-template-columns:1fr auto;column-gap:6px}.console>.readout:last-child>span{grid-column:1}.console>.readout:last-child>b{grid-column:1}.console #speed{grid-column:2;grid-row:1 / 3;margin:0;font-size:8px}}

.bone-diamond .bone-art{filter:drop-shadow(0 0 8px #b9f8ff) drop-shadow(0 2px 3px #25558d)}.bone-diamond .value{color:#153f69;text-shadow:0 1px #eaffff}.live-game [hidden]{display:none!important}.bottomline>a{color:#65345b;font-weight:bold;text-decoration:none;background:#fff0d3;border:1px solid #c49057;padding:5px 9px;border-radius:6px}
.bottomline #buy{flex:none;font-weight:900;background:linear-gradient(#ffe69b,#f3b74f);color:#663548;border:2px solid #fff0bb;padding:7px 14px;min-height:34px;border-radius:10px;box-shadow:0 3px #b77242}
.buy-picker #overlayBody{width:min(850px,94%);max-height:92%;overflow:auto}
.buy-picker h2{font-size:clamp(22px,4vw,40px)}
.buy-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}
.buy-options button{display:flex;align-items:center;flex-direction:column;gap:8px;white-space:normal;padding:12px 8px;border:2px solid #f2d086;border-radius:18px;background:linear-gradient(#68426d,#3f294f);color:#fff0c4;min-width:0}
.buy-options button:hover:not(:disabled){border-color:#fff7c6;box-shadow:0 0 18px #e9b44988}
.buy-options strong{font-size:16px}.buy-options b{font-size:24px}.buy-options span,.buy-options small{font-size:14px}
.buy-dogs{display:flex;justify-content:center;width:100%;height:100px}.buy-dogs .symbol-dog{position:relative;width:80px;height:100px;flex:0 1 80px}
.buy-picker #confirm-buy{margin:10px}.buy-options button:disabled{opacity:.5}
@container game (max-width:600px){.buy-options{gap:7px}.buy-options strong{font-size:13px}.buy-options b{font-size:19px}.buy-options button{padding:9px 4px}.buy-dogs{height:65px}.buy-dogs .symbol-dog{height:65px;width:45px}.bottomline #buy{padding:5px 8px;min-height:30px;font-size:11px}.bottomline>span{font-size:8px}}
