/* The game fills the embedded client and keeps sprites free of card frames. */
.scene.in-boss .scene-tools{display:none}.scene.in-boss .encounter-head{top:48px}.encounter-head>#boss-time{position:absolute!important;top:2px;right:0}
.mvp-reward-history{font-size:13px;color:#e5d39a;line-height:1.6}.hud{height:auto!important;padding-block:6px;flex-shrink:0}
body{display:block;background:#17251e}.game{width:100%;height:100dvh;max-width:none;max-height:none;border:0;border-radius:0;box-shadow:none}.play-area{grid-template-columns:minmax(0,1fr) clamp(245px,27vw,360px)}
.machine-portrait,.machine-row.locked .machine-portrait{border:0;border-radius:0;background:transparent;overflow:visible;box-shadow:none}.machine-portrait>img{max-width:37px;max-height:42px;filter:drop-shadow(0 2px 2px #0b160c77)}.machine-row{padding:11px 10px;grid-template-columns:38px minmax(0,1fr)}.machine-portrait{width:38px;height:43px}.machine-name{padding-right:22px}
.recommended{left:auto;right:8px;top:9px;width:21px;height:21px;background:none;border:0;border-radius:0;box-shadow:none;color:#ffda7e;pointer-events:none}.recommended>.icon{width:21px;height:21px;fill:#ffe19b;stroke:#b38535;stroke-width:1.1;filter:drop-shadow(0 1px 3px #0b130b99)}.machine-row.best-choice{box-shadow:inset 3px 0 #e6c375;background:linear-gradient(100deg,#8d7b3230,#74672d12)}.machine-row.best-choice .machine-buy:not(:disabled){border-color:#d9be75;color:#fff0bf}
.scene-tools{position:absolute;top:58px;left:13px;right:13px;z-index:6;pointer-events:none}.scene-tools>.magic-button{pointer-events:auto;max-width:min(100%,640px);width:max-content;background:#253a2bdc}.scene-bottom{bottom:14px;left:14px;right:14px;pointer-events:none}.mvp-progress{max-width:none;gap:7px}.mvp-progress>span{font-size:12px}.discovery-track{height:5px}
.hero-stack{inset:auto 16px auto;top:65%;translate:0 -50%;gap:3px}.hero-stack .poring{width:calc(clamp(170px,27vh,260px) * var(--mob-scale,1));height:calc(clamp(156px,27vh,230px) * var(--mob-scale,1))}.hero-stack .poring img{height:calc(clamp(135px,23vh,210px) * var(--mob-scale,1));filter:none}.poring-aura,.poring-shadow{display:none!important}.hero-stack.in-combat{inset:auto 16px 38px;top:auto;translate:none}.hero-stack.long-number .poring{height:calc(140px * var(--mob-scale,1))}.hero-stack.long-number .poring img{height:calc(124px * var(--mob-scale,1))}.hero-stack.very-long-number .poring{height:calc(100px * var(--mob-scale,1))}.hero-stack.very-long-number .poring img{height:calc(90px * var(--mob-scale,1))}
.buff{top:103px;left:13px;right:auto}.encounter-head{top:110px;gap:5px}.encounter-head>b{font-size:21px}.encounter-head>small{font-size:12px}.encounter-head>#boss-time{position:absolute;top:2px;right:0;font-size:14px;color:#ead39f}.encounter-head>.hp-track{width:min(300px,85%);height:10px}.roaming-boss{background:none}
.panel{width:min(920px,calc(100vw - 24px));height:min(720px,calc(100dvh - 50px));max-height:calc(100dvh - 16px)}.panel::backdrop,.confirm::backdrop{backdrop-filter:blur(2px)}.rates{flex-wrap:wrap;gap:4px 22px}.rates>span{font-size:16px}.rates small{font-size:12px}.hud{min-height:54px;height:54px}.network-banner{top:53px}
@media(max-width:760px){.play-area{grid-template-columns:minmax(0,1fr) 245px}.rates>span{font-size:14px}.rates{gap:3px 16px}.machine-row{padding:10px 9px}.scene-tools{left:10px;right:10px;top:48px}.scene-tools>.magic-button{font-size:12px;gap:5px}.scene-tools .magic-button small{display:none}.location-label{top:8px;left:10px;padding:6px 8px;font-size:13px}.buff{left:10px;top:89px}.encounter-head{left:10px;right:10px;top:92px}.encounter-head>b{font-size:18px}.encounter-head>small{font-size:11px}.encounter-head>#boss-time{position:static;font-size:12px}.hero-stack.in-combat{bottom:34px}.mvp-progress>span{font-size:11px}.scene-bottom{bottom:10px;left:10px;right:10px}}
@media(max-height:510px){.hud{height:45px;min-height:45px}.network-banner{top:44px}.scene-tools{top:46px}.scene-tools>.magic-button{min-height:28px;padding:5px 7px;font-size:11px}.hero-stack{top:65%}.hero-stack .poring{height:150px;width:174px}.hero-stack .poring img{height:132px}.hero-stack.long-number .poring{height:110px}.hero-stack.long-number .poring img{height:100px}.hero-stack.very-long-number .poring{height:90px}.hero-stack.very-long-number .poring img{height:80px}.gift-balance strong{font-size:28px}.gift-balance>span{font-size:11px}.encounter-head{top:80px;gap:3px}.encounter-head>b{font-size:17px}.encounter-head>small{font-size:10px}.encounter-head>.hp-track{height:8px;margin-top:1px}.encounter-head>#boss-time{font-size:11px}.buff{top:82px;padding:5px 7px}.panel{height:calc(100dvh - 22px)}.shop-grid{gap:8px}.shop-card{min-height:134px}.shop-card.premium{min-height:62px}.panel-body{padding:12px}.daily-content>img{height:70px}.daily-slots{margin:12px 0}}
@media(max-height:440px){.hero-stack .poring{height:128px;width:150px}.hero-stack .poring img{height:112px}.gift-balance strong{font-size:25px}.hero-stack.long-number .gift-balance strong{font-size:21px}.hero-stack.very-long-number .gift-balance strong{font-size:17px}.scene-tools .magic-button{max-width:100%;font-size:10px}.scene-tools .magic-button>.icon{width:14px;height:14px}.scene-tools .magic-button b{font-size:10px}.scene-bottom{bottom:8px}.mvp-progress>span{font-size:10px}.encounter-head{top:76px}}
@media(max-width:540px){.play-area{grid-template-columns:1fr;grid-template-rows:minmax(0,1fr) minmax(130px,36%)}.scene{min-height:0}.workshops{max-height:none;min-height:0;border-left:0;border-top:2px solid #7e8154}.workshop-header{display:flex;flex-direction:row;padding:7px 10px;min-height:44px}.workshop-title{min-width:85px}.quantities{width:min(180px,45vw)}.machine-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start}.machine-row{grid-template-columns:30px minmax(0,1fr);padding:8px;gap:5px;min-height:95px}.machine-portrait{width:30px;height:36px}.machine-portrait>img{max-width:30px;max-height:38px}.machine-name{font-size:12px;padding-right:18px}.recommended{top:7px;right:6px;width:17px;height:17px}.recommended>.icon{width:17px;height:17px}.machine-data{flex-wrap:wrap}.scene-tools{top:43px}.scene-tools .magic-button{font-size:11px;min-height:26px}.buff{top:77px;right:auto;left:10px;padding:5px}.hero-stack{inset:auto 12px auto;top:65%;translate:0 -50%}.hero-stack .poring{height:130px;width:160px}.hero-stack .poring img{height:115px}.hero-stack.in-combat{inset:auto 12px 34px;translate:none}.encounter-head{top:76px;gap:2px}.encounter-head>b{font-size:16px}.encounter-head>small{font-size:10px}.encounter-head>#boss-time{font-size:11px}.encounter-head>.hp-track{height:7px}.scene-bottom{bottom:9px}.mvp-progress>span{font-size:10px}.gift-balance strong{font-size:25px}.gift-balance>span{font-size:10px}.panel{width:calc(100vw - 16px);height:calc(100dvh - 22px)}.hud{padding:0 8px}.rates{gap:3px 12px}.rates>span{font-size:13px}.rates .icon{width:14px;height:14px}.rates small{font-size:10px}.icon-button{width:29px;height:29px}.hud-tools{gap:0}.connection{margin-right:4px}.hero-stack.long-number .poring{height:95px}.hero-stack.long-number .poring img{height:86px}.hero-stack.very-long-number .poring{height:64px}.hero-stack.very-long-number .poring img{height:57px}.hero-stack.very-long-number .gift-balance strong{font-size:18px}}
@media(max-width:540px) and (max-height:540px){.play-area{grid-template-rows:minmax(0,1fr) minmax(105px,32%)}.hero-stack .poring{height:95px;width:125px}.hero-stack .poring img{height:85px}.gift-balance strong{font-size:23px}.hero-stack{top:67%}.scene-tools .magic-button{font-size:10px}.mvp-progress>span{font-size:9px}.workshop-header{min-height:37px;padding:5px 7px}.workshop-title h1{font-size:14px}.quantities button{height:24px;min-width:26px;font-size:11px}.auto-toggle{font-size:10px;min-height:23px}.machine-row{min-height:87px}.scene-tools{top:37px}.location-label{font-size:11px;padding:4px 6px;top:6px}.buff{top:68px;font-size:10px}.encounter-head{top:65px}.encounter-head>b{font-size:13px}.encounter-head>small{font-size:9px}.encounter-head>#boss-time{font-size:10px}.encounter-head>span{font-size:10px}}

@media(max-width:540px) and (max-height:540px){.hero-stack .poring{height:78px}.hero-stack .poring img{height:70px}.gift-balance strong{font-size:22px}.scene.in-boss .encounter-head{top:38px}.hero-stack.in-combat .gift-balance>span{display:none}}

/* MVP arena: stable large target; network requests never change its cursor. */
.roaming-boss,.roaming-boss:disabled{cursor:pointer;border-radius:0;padding:0;background:none;transition:none;outline-offset:3px}
.roaming-boss:disabled{cursor:default}
.roaming-boss>img{width:100%;height:100%;max-width:100%!important;max-height:100%!important;object-fit:contain;animation:none;image-rendering:pixelated;filter:drop-shadow(0 9px 5px #090514aa)}
.roaming-boss:focus-visible{outline:2px solid #f2ce86}
.roaming-boss{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.roaming-boss>img{min-width:0;min-height:0}
.scene.in-boss .scene-light{background:linear-gradient(#09071755,transparent 38%,#10091d44)}
.scene.in-boss .encounter{background:transparent}
.scene.in-boss .encounter-head{text-shadow:0 2px 4px #08060e,0 0 12px #08060e}
.scene.in-boss .location-label{background:#211829e8;border-color:#ad8b80;color:#ffe0be}
.scene.in-boss .snow{opacity:.23}
.scene.in-boss .hp-track>div{background:linear-gradient(90deg,#a94441,#f0ad76)}
@media(max-width:540px){.play-area.boss-active{display:grid;grid-template-rows:minmax(0,1fr)}.boss-active .workshops{display:none}}


/* The lower bar tracks earned gifts toward Rebirth, independently of MVP time. */
.journey-labels{display:flex;flex-wrap:wrap;justify-content:space-between;gap:3px 12px;width:100%;font-size:12px;letter-spacing:.2px;color:#fff0c9;text-shadow:0 1px 3px #162418}
.journey-labels>span{min-width:0;font-variant-numeric:tabular-nums}
.journey-labels{align-items:flex-end}
.upcoming-events{margin-left:auto;display:inline-flex;flex-direction:column;align-items:flex-end;gap:2px;text-align:right}
#poring-hour-note{font:inherit;opacity:.85}
#next-mvp{margin-left:auto;text-align:right;color:#e6d8b7}
.rebirth-progress.ready #journey-label{color:#e0f5ba;font-weight:700}
.rebirth-progress.ready .discovery-track>div{background:#bddb92;box-shadow:0 0 7px #c9eda0}
@media(max-width:760px){.journey-labels{font-size:11px}}
@media(max-width:540px),(max-height:440px){.journey-labels{font-size:10px}}

.autoclick-toggle{position:relative;border-color:#87956d;background:#1c3027}
.autoclick-toggle>i{position:absolute;right:3px;bottom:3px;width:5px;height:5px;border-radius:50%;background:#86917f}
.autoclick-toggle.on{color:#ffe8a4;border-color:#cfc580;background:#4b6231}
.autoclick-toggle.on>i{background:#c7f39c;box-shadow:0 0 4px #c7f39c}
.item-art.autoclick-art{background-image:url('assets/autoclicker.svg');background-size:contain;background-repeat:no-repeat;background-position:center}
.item-art.auto-upgrade-art{background-image:url('assets/auto-upgrade.svg');background-size:contain;background-repeat:no-repeat;background-position:center}
.mvp-countdown{position:absolute;top:12px;right:13px;z-index:7;display:flex;align-items:center;gap:6px;padding:6px 9px;border:1px solid #b6a669;border-radius:5px;background:#253126ed;color:#f5deb0;box-shadow:0 2px 8px #080d0866;font-size:11px;pointer-events:none;font-variant-numeric:tabular-nums}
.mvp-countdown>.icon{width:16px;height:16px}.mvp-countdown>b{font-size:18px;line-height:1;letter-spacing:.5px}
.mvp-countdown.active{background:linear-gradient(135deg,#702f2cf5,#3c2027f5);border:2px solid #efba71;color:#fff0bf;box-shadow:0 0 16px #d2733b55,inset 0 0 10px #e4a56018}
.mvp-countdown.active>b{font-size:25px}.mvp-countdown.urgent{border-color:#ff9b7f;color:#ffe3d4;background:#6a232bee}
.mvp-soon .location-label,.scene.in-boss .location-label{max-width:calc(100% - 145px)}
.mvp-soon .location-label>span,.scene.in-boss .location-label>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.scene.in-boss .encounter-head{top:59px}
@media(max-width:760px){.mvp-countdown{top:8px;right:10px;padding:6px 7px;gap:4px}}
@media(max-width:540px),(max-height:510px){.mvp-countdown{top:6px;right:8px;font-size:10px;padding:5px 6px}.mvp-countdown>b{font-size:17px}.mvp-countdown.active>b{font-size:22px}.mvp-countdown>.icon{width:14px;height:14px}.scene.in-boss .encounter-head{top:54px}}

/* Combat controls belong to the scene, alongside the shared countdown. */
.scene-actions{position:absolute;top:10px;right:12px;z-index:8;display:flex;gap:8px;align-items:flex-start}
.scene-actions .mvp-countdown{position:static;min-height:39px}
.autoclick-control{display:flex;align-items:center;gap:6px;min-height:39px;padding:3px 6px;border:1px solid #8b9468;border-radius:5px;background:#1b2d25ed;color:#f5e6b8}
.autoclick-control .autoclick-toggle{width:32px;height:32px;flex-shrink:0}
.location-label{max-width:calc(100% - 113px)}
.mvp-soon .location-label,.scene.in-boss .location-label{max-width:calc(100% - 238px)}
.scene.in-boss .encounter-head{top:65px}
.reward-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;max-width:630px;margin:14px auto}
.reward-card{display:flex;flex-direction:column;align-items:center;gap:12px;text-align:center;padding:20px 12px;background:#273c2c;border:1px solid #b3a46d;border-radius:7px;min-width:0}
.reward-card h3,.reward-card p{margin:0}.reward-card h3{font-size:18px;color:#f8dfa0}.reward-card p{font-size:12px;color:#d3dabc}
.reward-art{position:relative;height:110px;width:100px}.reward-art img{height:100%;width:100%;object-fit:contain}
.reward-card.gen-2{background:#263b3e;border-color:#87bec1}.gen-2 .reward-art img{filter:hue-rotate(135deg)}.gen-2 h3{color:#c7edf0}
.reward-available{font-size:28px;color:#fff0bd;overflow-wrap:anywhere;max-width:100%}.reward-available small{display:block;font-size:12px;font-weight:400;color:#cad3b6}
.reward-card>.primary-button{width:100%;white-space:normal}.reward-card>small{font-size:11px;color:#b8c5b1}
.booster-button{min-width:130px}.booster-button span{min-width:0}.booster-button #booster-generations{font-size:10px;white-space:nowrap;color:#d4dfba}.booster-button #booster-count{font-size:20px}
.dock>button.booster-button{min-width:130px;flex:1.1}.scene:not(.in-boss) .buff{top:100px;right:12px;left:auto}.scene.in-boss .buff{display:none}
@media(max-width:540px),(max-height:510px){.scene-actions{top:6px;right:8px;gap:5px}.scene-actions .mvp-countdown{min-height:36px}.autoclick-control{gap:3px;padding:2px 4px;min-height:36px}.autoclick-control .autoclick-toggle{width:27px;height:27px}.mvp-soon .location-label,.scene.in-boss .location-label{max-width:calc(100% - 189px)}.scene.in-boss .encounter-head{top:55px}.reward-grid{gap:8px;margin:5px auto}.reward-card{gap:10px;padding:14px 7px}.reward-card h3{font-size:15px}.reward-card p{font-size:11px;min-height:28px}.reward-art{height:80px;width:75px}.reward-card .primary-button{font-size:12px;padding:9px 5px}.booster-button{min-width:98px}.booster-button>img{width:28px}.booster-button #booster-count{font-size:17px}.booster-button #booster-generations{font-size:9px}}
@media(max-width:540px){.dock>button.booster-button{min-width:114px;gap:3px}.dock .booster-button #booster-label{font-size:10px}.dock .booster-button #booster-generations{font-size:9px}.scene:not(.in-boss) .buff{top:72px;right:8px}}

.scene.mvp-soon:not(.has-autoclick) .location-label,.scene.in-boss:not(.has-autoclick) .location-label{max-width:calc(100% - 155px)}

/* One score table; sorting uses the full server values across every page. */
.ranking-scroll{margin-top:14px;max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-color:#a4ae73 #1c2e23;scrollbar-width:thin}
.ranking-table-all{min-width:740px;table-layout:fixed}
.ranking-table-all .rank-col{width:34px}.ranking-table-all .name-col{width:18%}.ranking-table-all .rebirth-col{width:10%}.ranking-table-all .gifts-col{width:19%}.ranking-table-all .porings-col{width:10%}.ranking-table-all .mvp-won-col{width:13%}.ranking-table-all .mvp-col{width:14%}.ranking-table-all .santa-col{width:11%}
.ranking-table-all th:first-child,.ranking-table-all th:nth-child(2),.ranking-table-all th:nth-child(3){width:auto}
.ranking-table-all th{padding:0 5px;height:43px;font-size:12px;white-space:nowrap;background:#253a2a}
.ranking-table-all th:nth-child(n+3),.ranking-table-all td:nth-child(n+3){text-align:right}
.ranking-table-all td{padding:11px 5px;white-space:nowrap;font-size:13px}
.ranking-table-all td:nth-child(2){overflow:hidden;text-overflow:ellipsis}
.ranking-table-all td small{display:block;margin:2px 0 0}
.ranking-table-all td.ranking-gifts{color:#ebd49a}
.ranking-sort{display:flex;align-items:center;justify-content:flex-end;gap:5px;width:100%;min-height:43px;padding:3px 0;background:transparent;color:#bfcaad;font-size:12px;white-space:nowrap}
.ranking-sort>span{font-size:12px;color:#8f9e7b}.ranking-sort.active,.ranking-sort.active>span{color:#ffe2a0}
.ranking-sort:hover{color:#fff0c2}.ranking-table-all th:has(.ranking-sort.active){background:#3a4e30;box-shadow:inset 0 -2px #dec786}
.ranking-table-all .ranking-loading{text-align:center;color:#b9c8a5;height:90px}
@media(max-width:540px){.ranking-table-all td{font-size:12px}.ranking-scroll{margin-top:10px}}

.rebirth-label-group{display:inline-flex;align-items:baseline;flex-wrap:wrap;gap:2px 7px}
#rebirth-eta{font-size:10px;color:#d0d7be;font-weight:400;font-variant-numeric:tabular-nums}
@media(max-width:540px){#rebirth-eta{font-size:9px}}

/* One shared frame, with independent buttons so Auto works without enough gifts. */
.click-upgrade-control{display:inline-flex;align-items:stretch;width:max-content;max-width:min(100%,640px);pointer-events:auto;border:1px solid #b1ac70;border-radius:5px;background:#253a2bdc;box-shadow:0 3px 10px #0003;overflow:hidden;vertical-align:top}
.click-upgrade-control.locked{border-color:#7f8d5e66;background:#213124d9}
.click-upgrade-control>.magic-button{min-width:0;max-width:100%;border:0;border-radius:0;box-shadow:none;background:transparent;flex-wrap:wrap;row-gap:2px}
.click-upgrade-control .magic-button b{min-width:0;white-space:normal;overflow-wrap:anywhere}
.click-upgrade-control .magic-button>span{white-space:nowrap}
.upgrade-auto-toggle{align-self:center;flex-shrink:0;margin:3px 4px 3px 0}
.upgrade-auto-toggle:focus-visible,.click-upgrade-control .magic-button:focus-visible{outline:2px solid #f3d487;outline-offset:-3px}
.shop-card.automation-card p{min-height:0}
@media(max-width:760px),(max-height:510px){.click-upgrade-control .magic-button{font-size:12px;padding:5px 7px;gap:5px;min-height:28px}}
@media(max-width:540px){.click-upgrade-control .magic-button{font-size:11px;min-height:26px}}
@media(max-width:540px) and (max-height:540px){.click-upgrade-control .magic-button{font-size:10px}}

/* The map follows the upgrade control; the timer precedes the autoclick switch. */
.scene-top{position:absolute;top:10px;left:13px;right:13px;z-index:8;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;gap:7px 8px}
.scene-top .scene-actions{position:static;grid-column:2;grid-row:1;margin:0;align-items:flex-start;justify-self:end}
.scene-top .scene-tools{position:static;display:contents}
.scene-top #click-upgrade-control{grid-column:1;grid-row:1}
.scene-top .location-label{position:static;grid-column:1;grid-row:2;width:max-content;max-width:100%;margin:0;pointer-events:auto}
.scene-top .location-label>span{min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.scene-top .location-label>.icon{flex-shrink:0}
.scene .scene-top .scene-tools .location-label{max-width:100%}
.scene .hero-stack.in-combat{bottom:var(--encounter-balance-bottom,48px)}
.scene.in-boss .scene-top .scene-tools{display:contents}
.scene.in-boss .scene-top .location-label{grid-row:1}
.scene.in-boss #click-upgrade-control{display:none}
@media(max-width:850px){.scene-top #click-upgrade-control{grid-column:1/-1}.scene-top .scene-actions{grid-row:2}.scene.in-boss .scene-top .scene-actions{grid-row:1}}
@media(max-width:760px),(max-height:510px){.scene-top{top:6px;left:10px;right:8px;gap:5px 6px}}

/* Long scale units may wrap, while sorting and purchases keep the raw values. */
.ranking-table-all td:nth-child(n+3){white-space:normal;overflow-wrap:anywhere}
.rates>span{min-width:0}.rates b{min-width:0;overflow-wrap:anywhere;white-space:normal}
.shop-balance,.reward-available,.panel-header>#panel-extra{overflow-wrap:anywhere}
.dock #booster-count,.dock #rebirth-count,.booster-button #booster-generations{white-space:normal;overflow-wrap:anywhere}
.rebirth-perks{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:6px 9px;margin:0 0 14px;color:#bdcbaa;font-size:12px}.rebirth-perks>b{color:#efda9e}.rebirth-perks>span{color:#a7b28b}
.rebirth-next-target{margin:12px 0 0;color:#bcc9aa;font-size:12px}.rebirth-next-target>b{color:#eed79c;margin-left:7px;overflow-wrap:anywhere}
@media(max-height:540px){.rebirth-content>.rebirth-sigil{display:none}.rebirth-content>h3{margin-bottom:14px}.rebirth-perks{margin-bottom:10px}.rebirth-content .rebirth-requirement{margin:12px 0}.rebirth-next-target{margin-top:8px}.rebirth-content .rebirth-reward{margin-top:12px}}

.item-art.auto-rebirth-art{background-image:url('assets/auto-rebirth.svg');background-size:contain;background-repeat:no-repeat;background-position:center}

/* Myst Case bonus: preserve the animated sprite at its native proportions. */
.santa-spawn{width:85px;height:95px}.santa-spawn img{width:75px;height:85px;object-fit:contain}

/* Collections and independent victory / Myst Case effects. */
.buff-stack{position:absolute;top:100px;right:12px;z-index:6;display:flex;align-items:flex-end;flex-direction:column;gap:5px;pointer-events:none}.scene:not(.in-boss) .buff-stack .buff{position:static;top:auto;left:auto;right:auto;max-width:100%;white-space:nowrap}.scene.in-boss .buff-stack{display:none}.mvp-victory-buff{border-color:#a8ceb0;background:#203f33ee;color:#d7f3cf}.autoclick-toggle.paused{opacity:.65}.autoclick-toggle.paused i{background:#c2a263;box-shadow:none}
.collection-spawn{position:absolute;z-index:9;display:grid;place-items:center;width:80px;height:85px;border:0;padding:4px;background:radial-gradient(ellipse,#b6ff933c,transparent 70%);filter:drop-shadow(0 0 9px #b2eec2);animation:bonus-bob 2.7s ease-in-out infinite;user-select:none}.collection-spawn img{max-width:72px;max-height:72px;width:auto;height:auto;object-fit:contain;pointer-events:none;image-rendering:pixelated}.collection-spawn i{position:absolute;right:0;top:0;font-size:17px;font-style:normal;color:#d5ffc4;pointer-events:none}
.collection-tabs{display:flex;gap:8px;margin-bottom:16px}.collection-tabs button{flex:1;background:#1b2c23;border:1px solid #6d7957;border-radius:5px;padding:10px;color:var(--muted);font-weight:700}.collection-tabs button[aria-selected="true"]{background:#4e6238;color:#fff0b0;border-color:#d3bd77}.collection-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:15px;font-size:13px;flex-wrap:wrap}.collection-summary span{color:#bec9a8}.collection-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(108px,1fr));gap:10px}.collection-card{min-width:0;display:flex;align-items:center;flex-direction:column;justify-content:flex-start;padding:10px 7px;border:1px solid #657350;border-radius:6px;background:linear-gradient(145deg,#31432d,#223326);text-align:center;gap:7px}.collection-art{display:grid;place-items:center;width:100%;height:94px}.collection-art img{max-width:100%;max-height:88px;object-fit:contain;image-rendering:pixelated}.collection-card b{font-size:12px;line-height:1.3;overflow-wrap:anywhere}.collection-card small{font-size:10px;color:#b4c39e;margin-top:auto}.collection-card.unknown{border-color:#45593f;background:#203126}.collection-card.unknown .collection-art img{width:80px;height:80px;image-rendering:auto}.collection-card.unknown b{color:#9ba98d}.collection-card.seen .collection-art img{filter:grayscale(1);opacity:.68}.collection-card.won,.collection-card.caught{border-color:#bda764}.collection-card.won small,.collection-card.caught small{color:#e8d597}
@media(max-width:640px){.buff-stack{top:72px;right:8px}.collection-grid{gap:8px}.collection-summary{font-size:12px}}@media(max-width:360px){.collection-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.collection-card{padding:8px 6px}.collection-art{height:82px}.collection-art img{max-height:78px}.collection-summary{align-items:flex-start;flex-direction:column;gap:5px}.buff-stack{gap:3px}}

.mvp-participants{display:inline-flex;align-items:center;gap:4px;margin-right:3px;padding-right:7px;border-right:1px solid #d7bd7d66}.mvp-participants>.icon{width:16px;height:16px}.mvp-participants b{font:inherit;font-weight:700}@media(max-width:640px){.mvp-countdown{gap:4px}.mvp-participants{gap:3px;padding-right:5px;margin-right:0}}

/* Move a composited snow layer instead of repainting the full scene. */
.snow{inset:-220px -50px;animation:snow-drift 15s linear infinite;will-change:transform}
@keyframes snow-drift{from{transform:translate3d(0,-220px,0)}to{transform:translate3d(50px,220px,0)}}

.collection-next-mvp{display:flex;align-items:center;gap:9px;padding:11px 12px;margin:0 0 15px;border:1px solid var(--t-edge,#7e9361);border-radius:var(--t-card,6px);background:var(--t-panel2,#314931);color:var(--t-text,#f4e5b7);font-size:12px;line-height:1.6}.collection-next-mvp>.icon{flex-shrink:0;width:19px;height:19px}.collection-card[tabindex]:focus-visible{outline:2px solid var(--t-accent,#e8d082);outline-offset:2px}

/* Scene-relative sizes also enlarge the real hit areas, without a CSS transform. */
.santa-spawn,.collection-spawn{--spawn-gutter:calc(10px + var(--spawn-height) * .06);width:var(--spawn-width);height:var(--spawn-height);grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);left:clamp(var(--spawn-gutter),var(--spawn-x,50%),calc(100% - var(--spawn-width) - var(--spawn-gutter)));top:clamp(calc(var(--spawn-min-y,60px) + var(--spawn-gutter)),var(--spawn-y,50%),calc(var(--spawn-max-y,100%) - var(--spawn-height) - var(--spawn-gutter)))}
.santa-spawn{--spawn-width:calc(85px * var(--offer-scale,1));--spawn-height:calc(95px * var(--offer-scale,1));padding:calc(5px * var(--offer-scale,1))}
.collection-spawn{--spawn-width:calc(80px * var(--offer-scale,1));--spawn-height:calc(85px * var(--offer-scale,1));padding:calc(4px * var(--offer-scale,1))}
.santa-spawn img,.collection-spawn img{width:100%;height:100%;min-width:0;min-height:0;max-width:100%;max-height:100%;object-fit:contain;image-rendering:pixelated}

/* Keep shared participants intact when mobile combat controls share a row. */
.mvp-countdown{flex-wrap:nowrap;white-space:nowrap}
.mvp-countdown>.icon,.mvp-countdown>b,.mvp-participants{flex-shrink:0}
.mvp-participants{white-space:nowrap;min-width:max-content}
.mvp-participants b{display:inline-block;min-width:1ch}
@media(max-width:540px){
  .scene.in-boss .scene-top .scene-actions{grid-column:1/-1;grid-row:1;min-width:0;max-width:100%}
  .scene.in-boss .scene-top .location-label{grid-row:2}
  .mvp-participants{font-size:12px;line-height:1;gap:4px}
}

@media (any-pointer: coarse) {
  html, body { touch-action: pan-x pan-y; overscroll-behavior: none; }
  /* Repeated hits may drift across the scene. Lists outside it still scroll. */
  #scene, #scene button { touch-action: none; }
  .nickname-form input { font-size: 16px; }
}
