/* Christmas wardrobes. Game geometry always comes from the original CSS. */
:root{--toyshop-header-gradient:linear-gradient(110deg,#a84450,#733b4e 55%,#315976);--toyshop-ribbon:repeating-linear-gradient(90deg,#f3bd63 0 16px,#cf6175 16px 32px,#7fbdb2 32px 48px,#6e8fbd 48px 64px)}
.hud-tools{flex-shrink:0}.hud .rates{min-width:0}
#themes-open{position:relative}#themes-open:focus-visible{outline:2px solid currentColor;outline-offset:-3px}
.theme-picker{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.theme-choice{position:relative;display:flex;flex-direction:column;min-width:0;overflow:hidden;padding:0;text-align:left;border:1px solid #798769;border-radius:10px;background:#243629;color:#f8edcc;box-shadow:0 3px 8px #0002}
.theme-choice:hover{border-color:#e8cd83}.theme-choice:focus-visible{outline:3px solid #f6cf73;outline-offset:2px}
.theme-choice[aria-checked=true]{border-color:#ffe2a2;box-shadow:0 0 0 2px #ffe2a2}
.theme-caption{display:flex;flex-direction:column;gap:5px;padding:13px 12px 35px;min-height:102px}
.theme-caption b{font-size:15px;line-height:1.2}.theme-caption small{font-size:11px;line-height:1.4;color:inherit;opacity:.8}
.theme-current{position:absolute;bottom:10px;left:12px;display:flex;align-items:center;gap:4px;font-size:10px;font-weight:700;visibility:hidden;color:inherit}
.theme-current .icon{width:13px;height:13px}.theme-choice[aria-checked=true] .theme-current{visibility:visible}
.theme-preview{--p-bg:#2a3f2c;--p-bar:#49563b;--p-card:#314832;--p-edge:#b4ab73;--p-sky:#21382e;position:relative;display:grid;grid-template-columns:1fr 32%;grid-template-rows:21px 104px 21px;height:146px;width:100%;background:var(--p-bg);overflow:hidden;pointer-events:none}
.preview-hud{grid-column:1/-1;background:var(--p-bar);display:flex;gap:4px;align-items:center;padding:6px 10px;border-bottom:1px solid var(--p-edge)}
.preview-hud i{height:4px;width:16px;background:var(--p-edge);border-radius:4px}.preview-hud i:last-child{margin-left:auto;width:5px}
.preview-scene{position:relative;overflow:hidden;background:radial-gradient(ellipse at 50% 100%,#f1f2df55,transparent 65%),linear-gradient(var(--p-sky),#70917d);display:grid;place-items:center}
.preview-scene:before{content:'';position:absolute;left:-20%;right:-20%;bottom:-22px;height:45px;border-radius:50%;background:#e8efdf99}
.preview-tree{font-size:42px;color:#fff3ba;line-height:1;text-shadow:0 2px 0 #0004}
.preview-gift{position:absolute;bottom:9px;left:calc(50% - 9px);width:19px;height:18px;border:1px solid #fff0b4;background:linear-gradient(90deg,transparent 40%,#f9d993 40% 56%,transparent 56%),linear-gradient(transparent 36%,#f9d993 36% 50%,transparent 50%),#b54546;border-radius:2px}
.preview-workshops{padding:8px 6px;display:flex;flex-direction:column;gap:7px;border-left:1px solid var(--p-edge);background:var(--p-bg)}
.preview-workshops i{display:block;flex:1;min-height:0;background:var(--p-card);border:1px solid var(--p-edge);border-radius:2px;position:relative}
.preview-workshops i:after{content:'';position:absolute;left:5px;right:5px;top:7px;height:3px;background:var(--p-edge);opacity:.7}
.preview-dock{grid-column:1/-1;display:flex;gap:5px;padding:5px 10px;background:var(--p-bar);border-top:1px solid var(--p-edge)}
.preview-dock i{flex:1;border:1px solid var(--p-edge);border-radius:2px}
.preview-chalet{--p-bg:#401f25;--p-bar:#6a3036;--p-card:#783c41;--p-edge:#e1b670;--p-sky:#322e35}
.preview-chalet .preview-workshops i{border-radius:6px;box-shadow:inset 0 0 0 2px #401f25}
.preview-aurora{--p-bg:#101c33;--p-bar:#213955;--p-card:#234359;--p-edge:#9bdfdf;--p-sky:#163a55}
.preview-aurora .preview-scene{background:linear-gradient(125deg,#56d7b366,transparent 60%),linear-gradient(#182b52,#427991)}
.preview-aurora .preview-workshops i{border-radius:7px 0}
.preview-gingerbread{--p-bg:#efd9b5;--p-bar:#9e4835;--p-card:#e2ba82;--p-edge:#8c4f35;--p-sky:#a7785f}
.preview-gingerbread .preview-workshops i{border:2px dotted #fff8e8;border-radius:9px}
.preview-post{--p-bg:#f1e8d1;--p-bar:#e3d5b8;--p-card:#fff6df;--p-edge:#8b443b;--p-sky:#557f78}
.preview-post .preview-workshops i{}
.preview-post .preview-hud{background:repeating-linear-gradient(45deg,#984b47 0 6px,#fff6e7 6px 12px,#4f7665 12px 18px,#fff6e7 18px 24px)}
.preview-express{--p-bg:#172f34;--p-bar:#203b42;--p-card:#953b40;--p-edge:#d5ad6b;--p-sky:#273d4c}
.preview-express .preview-workshops i{border-width:3px;border-radius:4px}
.preview-astral{--p-bg:#201630;--p-bar:#34224d;--p-card:#442c61;--p-edge:#e8ca8d;--p-sky:#302447}
.preview-astral .preview-scene{background:radial-gradient(circle at 28% 25%,#fff3ce 1px,transparent 2px),radial-gradient(circle at 74% 38%,#f3dcff 1px,transparent 2px),radial-gradient(ellipse at 50% 100%,#a876c277,transparent 70%),#241a3d}
.preview-astral .preview-workshops i{border-radius:8px 8px 2px 2px;background:linear-gradient(135deg,#7b528f44,transparent),var(--p-card)}
.preview-porcelain{--p-bg:#adbfca;--p-bar:#bdcbd1;--p-card:#c2cfd5;--p-edge:#355a82;--p-sky:#748fa8}
.preview-porcelain .preview-hud{background:repeating-linear-gradient(90deg,transparent 0 10px,#2d548c22 10px 12px),var(--p-bar)}
.preview-porcelain .preview-workshops i{border-radius:10px;box-shadow:inset 0 0 0 2px #adbfca}
.preview-toyshop{--p-bg:#173b49;--p-bar:#873e4c;--p-card:#315d6b;--p-edge:#f6ca67;--p-sky:#426782}
.preview-toyshop .preview-workshops i{border-radius:2px;box-shadow:2px 2px #e38d9955}
.preview-toyshop .preview-hud{position:relative;background:var(--toyshop-header-gradient)}
.preview-toyshop .preview-hud:after{content:'';position:absolute;inset:auto 0 0;height:2px;background:var(--toyshop-ribbon)}
.preview-toyshop .preview-dock{background:#2c4859}
.theme-intro{margin:0 0 15px;text-align:left}
/* Preview the real scene and UI colors while choosing a wardrobe. */
#panel:has(.theme-picker)::backdrop{background:transparent;backdrop-filter:none;-webkit-backdrop-filter:none}
/* A quiet, account-saved display preference below the wardrobe gallery. */
.theme-display-options{margin-top:24px;padding-top:12px;border-top:1px solid #81927940;color:var(--t-muted,#b3bea5);font-size:12px}
.theme-display-options label{display:inline-flex;align-items:center;gap:8px;min-height:28px;cursor:pointer}
.theme-display-options input{width:14px;height:14px;margin:0;accent-color:var(--t-accent,#f0d38b);cursor:pointer}
.theme-display-options input:focus-visible{outline:2px solid var(--t-accent,#f0d38b);outline-offset:3px}
body[data-hide-background=true] .scene-art{visibility:hidden}
body[data-hide-background=true] .scene{background:var(--t-bg,#17251e)}
/* Theme contract: colors, materials and ornaments only. All sizes, typography,
   button placement and responsive layouts belong to the original game CSS. */
body[data-theme]:not([data-theme=classic]){--text:var(--t-text);--muted:var(--t-muted);--bg:var(--t-bg);--gold:var(--t-accent);background:var(--t-bg);color:var(--t-text)}
body[data-theme][data-theme=chalet]{--t-bg:#321b22;--t-panel:#492831;--t-panel2:#58303a;--t-bar:#6a3038;--t-row:#583039;--t-edge:#ba915b;--t-text:#fff0d2;--t-muted:#d8bba9;--t-accent:#f3cb87;--t-button:#a34b46;--t-button-end:#79353a;--t-button-ink:#fff0cf;--t-active:#684333;--t-radius:12px;--t-card:12px;--t-strip:repeating-linear-gradient(45deg,#305848 0 10px,#305848 10px 18px,#cfb87b 18px 20px)}
body[data-theme][data-theme=aurora]{--t-bg:#0d1b2b;--t-panel:#14283d;--t-panel2:#1a344a;--t-bar:#203c50;--t-row:#193449;--t-edge:#669fae;--t-text:#e7f7fa;--t-muted:#acd0dc;--t-accent:#bcefe2;--t-button:#2c6e7c;--t-button-end:#245063;--t-button-ink:#ecfffb;--t-active:#23495d;--t-radius:18px 3px;--t-card:14px 2px;--t-strip:linear-gradient(90deg,#70bddd,#b0f0ce,#8b9fe1)}
body[data-theme][data-theme=gingerbread]{--t-bg:#d6b282;--t-panel:#f5e4c7;--t-panel2:#ecd3ab;--t-bar:#f6e5c8;--t-row:#f8e9cf;--t-edge:#b27a4b;--t-text:#583723;--t-muted:#80543c;--t-accent:#a23d32;--t-button:#aa4939;--t-button-end:#903b30;--t-button-ink:#fff2d4;--t-active:#e9c494;--t-radius:24px;--t-card:20px;--t-strip:repeating-linear-gradient(45deg,#a84234 0 9px,#fff3d9 9px 18px)}
body[data-theme][data-theme=post]{--t-bg:#d9ceb4;--t-panel:#f8f0db;--t-panel2:#e9dfc7;--t-bar:#eee3c9;--t-row:#fff8e7;--t-edge:#a89873;--t-text:#304e43;--t-muted:#687462;--t-accent:#973f38;--t-button:#466d59;--t-button-end:#355847;--t-button-ink:#fff7dd;--t-active:#e6dcc0;--t-radius:3px;--t-card:2px;--t-strip:repeating-linear-gradient(45deg,#9b4641 0 9px,#f9efdb 9px 18px,#527563 18px 27px,#f9efdb 27px 36px)}
body[data-theme][data-theme=express]{--t-bg:#172a30;--t-panel:#20383e;--t-panel2:#29464a;--t-bar:#20383e;--t-row:#6e3038;--t-edge:#b69965;--t-text:#fff0ce;--t-muted:#cbbfa6;--t-accent:#f0cf8b;--t-button:#985045;--t-button-end:#6e3038;--t-button-ink:#fff3d6;--t-active:#405248;--t-radius:5px;--t-card:5px;--t-strip:repeating-linear-gradient(90deg,#ac8b50 0 18px,#ecd6a1 18px 20px,#294449 20px 38px)}
body[data-theme]:not([data-theme=classic]) :is(.hud,.workshop-header,.panel-header,.dock){background:var(--t-bar);color:var(--t-text);border-color:var(--t-edge)}
body[data-theme]:not([data-theme=classic]) .hud{border-bottom-color:var(--t-edge)}
body[data-theme]:not([data-theme=classic]) :is(.rates b,.rates .icon,.hud-tools .icon,.workshop-title h1,.panel-header h2){color:var(--t-accent)}
body[data-theme]:not([data-theme=classic]) .panel-header>#panel-extra{color:var(--t-accent)}
body[data-theme]:not([data-theme=classic]) .panel-header>.icon-button{color:var(--t-text)}
body[data-theme]:not([data-theme=classic]) :is(.icon-button:hover,.icon-button.active){background:var(--t-active);color:var(--t-accent)}
body[data-theme]:not([data-theme=classic]) .workshops{background:var(--t-panel);border-color:var(--t-edge)}
body[data-theme]:not([data-theme=classic]) .workshop-header{border-bottom-color:var(--t-edge)}
body[data-theme]:not([data-theme=classic]) .machine-list{scrollbar-color:var(--t-edge) var(--t-panel)}
body[data-theme]:not([data-theme=classic]) .machine-row{border-color:var(--t-edge);border-radius:var(--t-card);background:var(--t-row);box-shadow:0 2px 2px #0001}
body[data-theme]:not([data-theme=classic]) .machine-row.locked{background:var(--t-panel2);opacity:.65}
body[data-theme]:not([data-theme=classic]) :is(.machine-name,.machine-level,.machine-row.locked .machine-name){color:var(--t-text)}
body[data-theme]:not([data-theme=classic]) .machine-rate{color:var(--t-accent)}
body[data-theme]:not([data-theme=classic]) .machine-row.best-choice{background:var(--t-active);box-shadow:inset 3px 0 var(--t-accent)}
body[data-theme]:not([data-theme=classic]) .recommended>.icon{fill:var(--t-accent);stroke:var(--t-edge);filter:none}
body[data-theme]:not([data-theme=classic]) .milestone{background:var(--t-panel2);border-radius:4px}
body[data-theme]:not([data-theme=classic]) .milestone>i{background:var(--t-accent)}
body[data-theme]:not([data-theme=classic]) :is(.machine-buy,.primary-button){background:linear-gradient(var(--t-button),var(--t-button-end));color:var(--t-button-ink);border-color:var(--t-edge);border-radius:var(--t-card);box-shadow:inset 0 1px #fff2,0 2px #0002}
body[data-theme]:not([data-theme=classic]) :is(.machine-buy,.primary-button):hover:not(:disabled){background:var(--t-button);border-color:var(--t-accent)}
body[data-theme]:not([data-theme=classic]) .machine-buy:disabled{background:var(--t-panel2);color:var(--t-muted);border-color:var(--t-edge);opacity:.72;box-shadow:none}
body[data-theme]:not([data-theme=classic]) :is(.secondary-button,.quantities button,.auto-toggle,.collection-tabs button){background:var(--t-panel2);color:var(--t-text);border-color:var(--t-edge);border-radius:var(--t-card)}
body[data-theme]:not([data-theme=classic]) :is(.quantities button.active,.auto-toggle.on,.collection-tabs button[aria-selected=true]){background:var(--t-button);color:var(--t-button-ink);border-color:var(--t-edge)}
body[data-theme]:not([data-theme=classic]) :is(.auto-toggle i,.autoclick-toggle i){background:var(--t-muted)}
body[data-theme]:not([data-theme=classic]) .auto-toggle.on i{background:var(--t-button-ink)}
body[data-theme]:not([data-theme=classic]) .dock{border-top-color:var(--t-edge)}
body[data-theme]:not([data-theme=classic]) .dock>button{border-color:var(--t-edge);border-radius:var(--t-radius);color:var(--t-text);background:var(--t-panel2)}
body[data-theme]:not([data-theme=classic]) .dock>button:is(:hover,.active){background:var(--t-active);color:var(--t-accent)}
body[data-theme]:not([data-theme=classic]) :is(.dock>button>.icon,.dock small,.dock .shop-balance,.booster-button #booster-generations){color:var(--t-accent)}
body[data-theme]:not([data-theme=classic]) .dock>button span b{background:var(--t-panel);border-color:var(--t-edge);color:var(--t-text)}
body[data-theme]:not([data-theme=classic]) .dock #rebirth-open.ready{background:var(--t-button);color:var(--t-button-ink)}
body[data-theme]:not([data-theme=classic]) :is(.panel,.confirm){background:var(--t-panel);border-color:var(--t-edge);border-radius:var(--t-radius);color:var(--t-text)}
body[data-theme]:not([data-theme=classic]) .panel{box-shadow:0 18px 80px #0009}
body[data-theme]:not([data-theme=classic]) .panel-body{scrollbar-color:var(--t-edge) var(--t-panel)}
body[data-theme]:not([data-theme=classic]) :is(.shop-card,.reward-card,.stat,.collection-card){background:var(--t-panel2);color:var(--t-text);border-color:var(--t-edge);border-radius:var(--t-card)}
body[data-theme]:not([data-theme=classic]) :is(.shop-card.owned,.collection-card.won,.collection-card.caught){background:var(--t-active);border-color:var(--t-accent)}
body[data-theme]:not([data-theme=classic]) .collection-card.unknown{background:var(--t-panel2);border-color:var(--t-edge);opacity:.75}
body[data-theme]:not([data-theme=classic]) :is(.shop-card h3,.reward-card h3,.reward-available,.stat strong,.collection-card.won small,.collection-card.caught small,.rebirth-content>h3,.requirement-label strong,.rebirth-next-target>b,.rebirth-perks>b,.help-list b,.confirm h2){color:var(--t-accent)}
body[data-theme]:not([data-theme=classic]) :is(.shop-card p,.panel-note,.reward-card p,.reward-card>small,.reward-available small,.stat>span,.collection-card small,.collection-card.unknown b,.collection-summary span,.rebirth-copy,.rebirth-perks,.rebirth-perks>span,.rebirth-next-target,.rebirth-reward,.requirement-label,.help-list,.help-footer,.test-reset,.stats-history,.stats-history small,.confirm p){color:var(--t-muted)}
body[data-theme]:not([data-theme=classic]) .item-art{border-color:var(--t-edge);box-shadow:0 2px 7px #0002;border-radius:var(--t-card)}
body[data-theme]:not([data-theme=classic]) .permanent-mark{color:var(--t-accent)}
body[data-theme]:not([data-theme=classic]) .shop-card.owned .primary-button{background:var(--t-panel);color:var(--t-text);border-color:var(--t-edge)}
body[data-theme]:not([data-theme=classic]) :is(.progress-track,.hp-track,.discovery-track){background:var(--t-panel2);border-color:var(--t-edge)}
body[data-theme]:not([data-theme=classic]) .progress-track>div{background:var(--t-button)}
body[data-theme]:not([data-theme=classic]) .rebirth-sigil{background:var(--t-panel2);border-color:var(--t-edge);color:var(--t-accent);border-radius:var(--t-radius);box-shadow:none}
body[data-theme]:not([data-theme=classic]) .ranking-table-all :is(th,td){border-color:var(--t-edge);color:var(--t-text)}
body[data-theme]:not([data-theme=classic]) .ranking-table-all th{background:var(--t-panel2)}
body[data-theme]:not([data-theme=classic]) .ranking-table-all tr:nth-child(even){background:var(--t-panel2)}
body[data-theme]:not([data-theme=classic]) :is(.ranking-sort,.ranking-sort>span,.ranking-table-all td small,.ranking-table-all .ranking-loading){color:var(--t-muted)}
body[data-theme]:not([data-theme=classic]) :is(.nickname-form label,.ranking-pages,.stats-history small,.mvp-reward-history){color:var(--t-muted)}
body[data-theme]:not([data-theme=classic]) :is(.ranking-sort.active,.ranking-sort.active>span,.ranking-table-all td.ranking-gifts){color:var(--t-accent)}
body[data-theme]:not([data-theme=classic]) .ranking-table-all th:has(.ranking-sort.active){background:var(--t-active);box-shadow:inset 0 -2px var(--t-accent)}
body[data-theme]:not([data-theme=classic]) .ranking-scroll{scrollbar-color:var(--t-edge) var(--t-panel)}
body[data-theme]:not([data-theme=classic]) #panel :is(input,select){background:var(--t-panel2);color:var(--t-text);border-color:var(--t-edge)}
body[data-theme]:not([data-theme=classic]) #panel :is(input,select)::placeholder{color:var(--t-muted)}
body[data-theme]:not([data-theme=classic]) .theme-choice{background:var(--t-panel2);color:var(--t-text);border-color:var(--t-edge);border-radius:var(--t-card)}
body[data-theme]:not([data-theme=classic]) .theme-choice[aria-checked=true]{border-color:var(--t-accent);box-shadow:0 0 0 2px var(--t-accent)}
body[data-theme]:not([data-theme=classic]) .toast{background:var(--t-panel);color:var(--t-text);border-color:var(--t-accent);border-radius:var(--t-radius)}
body[data-theme]:not([data-theme=classic]) .toast.error{background:#6a2c32;color:#fff1db;border-color:#e6a28c}
/* Scene controls stay legible over all thirty illustrated locations. */
body[data-theme]:not([data-theme=classic]) :is(.click-upgrade-control,.scene-top .location-label,.autoclick-control,.buff-stack .buff){background:var(--t-panel);color:var(--t-text);border-color:var(--t-edge);border-radius:var(--t-radius)}
body[data-theme]:not([data-theme=classic]) :is(.magic-button,.autoclick-toggle){color:var(--t-accent)}
body[data-theme]:not([data-theme=classic]) .scene-top .location-label>.icon{color:var(--t-accent)}
body[data-theme]:not([data-theme=classic]) .magic-button small{background:var(--t-panel2);color:var(--t-muted)}
body[data-theme]:not([data-theme=classic]) .buff-stack .buff span{color:var(--t-muted);border-color:var(--t-edge)}
body[data-theme]:not([data-theme=classic]) .rates small{color:var(--t-muted)}
body[data-theme]:not([data-theme=classic]) .dock>button.claimable{background:var(--t-button);color:var(--t-button-ink);border-color:var(--t-accent)}
body[data-theme]:not([data-theme=classic]) .autoclick-toggle{border-color:var(--t-edge);background:var(--t-panel2);border-radius:var(--t-radius)}
body[data-theme]:not([data-theme=classic]) .autoclick-toggle.on{background:var(--t-button);color:var(--t-button-ink)}
body[data-theme]:not([data-theme=classic]) .scene-bottom{border-color:#fff3;border-radius:var(--t-radius);background:#132522de}
body[data-theme]:not([data-theme=classic]) .scene-bottom :is(.journey-labels,#next-mvp,#rebirth-eta){color:#fff2d1}
body[data-theme]:not([data-theme=classic]) .scene-bottom .discovery-track{background:#ffffff26}
body[data-theme]:not([data-theme=classic]) .scene-bottom .discovery-track>div{background:var(--t-strip)}
body[data-theme]:not([data-theme=classic]) .mvp-countdown{background:var(--t-panel);border-color:var(--t-edge);border-radius:var(--t-radius);color:var(--t-text)}
body[data-theme]:not([data-theme=classic]) .mvp-countdown.active{background:#713139;color:#fff1c9;border-color:#edbb77;box-shadow:0 0 0 2px #713139}
body[data-theme]:not([data-theme=classic]) .mvp-countdown.urgent{background:#932e3b;color:#fff4df;border-color:#ffd3a2}
/* Chalet: padded velvet, carved wood, stitched brass labels and a fir garland. */
body[data-theme][data-theme=chalet] .workshops{background:repeating-linear-gradient(2deg,#ffffff03 0 2px,transparent 2px 15px),#44252c;border-left-color:#b79259}
body[data-theme][data-theme=chalet] .hud{border-bottom-color:#b79259}
body[data-theme][data-theme=chalet] .machine-row{border-color:#ba915b;outline:1px dashed #d6b07866;outline-offset:-6px}
body[data-theme][data-theme=chalet] .panel{border-color:#b79259;outline:1px solid #391a1f}
body[data-theme][data-theme=chalet] .panel-header{border-bottom-color:#ba915b;background:linear-gradient(90deg,#592c34,#803c40,#592c34)}
body[data-theme][data-theme=chalet] .shop-card{outline:1px dashed #cead7766;outline-offset:-6px}
body[data-theme][data-theme=chalet] .dock{border-top-color:#b79259;background:#3e2429}

body[data-theme][data-theme=chalet] .scene-light{background:linear-gradient(#3f13202b,transparent 35%,#28171b22)}
body[data-theme][data-theme=aurora] .workshops{border-right-color:var(--t-edge);background:linear-gradient(160deg,#215067,#101f36 65%)}
body[data-theme][data-theme=aurora] .machine-row{border-left-color:#9be7dc;box-shadow:none}
body[data-theme][data-theme=aurora] .hud{background:linear-gradient(100deg,#14283f,#254b59,#182a47)}

body[data-theme][data-theme=aurora] .dock{background:#0d1b2b}
body[data-theme][data-theme=aurora] .dock>button{border-radius:18px 3px}
body[data-theme][data-theme=aurora] .panel-header{background:linear-gradient(100deg,#274c5d,#20334d);border-bottom-color:#9be7dc}
body[data-theme][data-theme=aurora] .collection-card{border-bottom-color:var(--t-edge)}
body[data-theme][data-theme=aurora] .scene-light{background:linear-gradient(135deg,#64d6c01c,transparent 50%,#7299ef22)}
/* Gingerbread: icing seams, candy buttons and recipe cards on biscuit paper. */
body[data-theme][data-theme=gingerbread] .hud{background:#a44939;border-bottom-color:#fff2d6}
body[data-theme][data-theme=gingerbread] .hud :is(.rates,.rates b,.rates .icon,.hud-tools .icon){color:#fff2d6}
body[data-theme][data-theme=gingerbread] .hud .rates small{color:#fff2d6}
body[data-theme][data-theme=gingerbread] .workshops{border-left-color:#b87948;background:radial-gradient(#a2733c18 1px,transparent 1px) 0 0/9px 9px,#ecd1a7}
body[data-theme][data-theme=gingerbread] .workshop-header{border-bottom-color:#b87948}
body[data-theme][data-theme=gingerbread] .machine-row{border-color:#fff5df;outline:1px solid #c49661;outline-offset:0;border-radius:18px 28px 18px 8px}
body[data-theme][data-theme=gingerbread] .machine-row.locked{outline:0}
body[data-theme][data-theme=gingerbread] .machine-buy{border-radius:30px;border-color:#fff0d4}
body[data-theme][data-theme=gingerbread] .dock{background:#dcb98c;border-top-color:#fff2d7}
body[data-theme][data-theme=gingerbread] .dock>button{border-radius:30px;background:#f7e8ce;border-color:#fff6e4}
body[data-theme][data-theme=gingerbread] .panel{border-color:#b87d4c;outline:3px dotted #fff2d6;outline-offset:-6px}
body[data-theme][data-theme=gingerbread] .panel-header{background:#a44939;color:#fff3da;border-bottom-color:#fff3da}
body[data-theme][data-theme=gingerbread] .panel-header :is(h2,.icon-button,#panel-extra){color:#fff3da}
body[data-theme][data-theme=gingerbread] .shop-card{background:#f9ecd6;border-color:#d5ac78}
body[data-theme][data-theme=gingerbread] .collection-card{border-color:#b9844e}
body[data-theme][data-theme=gingerbread] .rebirth-sigil{border-radius:50%;border-color:#b9844e}
body[data-theme][data-theme=gingerbread] .scene-light{background:linear-gradient(#a5532d14,transparent 45%,#9c632d17)}
body[data-theme][data-theme=post] .workshops{border-right-color:transparent;background:#e7dcc0}
body[data-theme][data-theme=post] .hud{border-bottom-color:transparent}
body[data-theme][data-theme=post] .workshop-header{border-bottom-color:#a89873}
body[data-theme][data-theme=post] .machine-row{border-color:#b4a584;border-top-color:#b4a584;border-bottom-color:#b4a584;box-shadow:3px 3px #a99b7724}
body[data-theme][data-theme=post] .machine-buy{box-shadow:none}
body[data-theme][data-theme=post] .dock{background:#e7dcc0;border-top-color:transparent}
body[data-theme][data-theme=post] .dock>button{border-right-color:#a99b77;background:none;border-radius:0}
body[data-theme][data-theme=post] .panel{border-color:var(--t-edge);background:#f8f0db}
body[data-theme][data-theme=post] .panel-header{border-bottom-color:#b7a782;background:#eee3c9}
body[data-theme][data-theme=post] .shop-card{border-color:#b3a17a;background:#fff7e5;box-shadow:4px 4px #a99b7724}
body[data-theme][data-theme=post] .item-art{border-color:#a99b77;border-radius:0}
body[data-theme][data-theme=post] .collection-card{border-color:#b5a27a}
body[data-theme][data-theme=post] .collection-card.won,body[data-theme][data-theme=post] .collection-card.caught{border-color:#973f38}
body[data-theme][data-theme=post] .ranking-table-all td{}
body[data-theme][data-theme=post] .scene-light{background:linear-gradient(#b4a06a12,transparent 45%,#275f4930)}
body[data-theme][data-theme=express] .workshops{border-top-color:#bd9e65;background:#192e34}
body[data-theme][data-theme=express] .workshop-header{border-bottom-color:#927a50;background:#20383e}
body[data-theme][data-theme=express] .machine-row{border-color:#b69965;border-radius:8px 8px 2px 2px;background:linear-gradient(#833940,#632d35);box-shadow:inset 0 0 0 3px #5e2931,0 3px #b69965}
body[data-theme][data-theme=express] .machine-row.locked{background:#263d40;border-color:#687d70}
body[data-theme][data-theme=express] .machine-row.best-choice{background:#8c4c3f;box-shadow:inset 0 0 0 2px #e1c486,0 3px #e1c486}
body[data-theme][data-theme=express] .hud{border-bottom-color:#b69965;background:linear-gradient(#304b50,#20383e)}

body[data-theme][data-theme=express] .dock{border-top-color:#b69965;background:#182e34}
body[data-theme][data-theme=express] .dock>button{border-color:#b69965;border-radius:4px;background:#263e42}
body[data-theme][data-theme=express] .panel{border-color:#b69965;border-radius:5px}
body[data-theme][data-theme=express] .panel-header{background:#6e3038;border-bottom-color:#b69965}
body[data-theme][data-theme=express] .shop-card{border-color:#b69965;background:#283f42}
body[data-theme][data-theme=express] .rebirth-sigil{border-radius:50%;border-color:#b69965}

body[data-theme]:not([data-theme=classic]) .hud{position:relative}
body[data-theme]:not([data-theme=classic]) .hud:after{content:'';position:absolute;inset:auto 0 0;height:2px;background:var(--t-strip);pointer-events:none}
body[data-theme][data-theme=chalet] .hud:before{content:'';position:absolute;inset:0 0 auto;height:4px;background:radial-gradient(circle,#f6d489 2px,transparent 3px) 0 0/23px 6px;pointer-events:none}

/* Observatory: plum velvet, gilded orbits and a quiet star chart. */
body[data-theme][data-theme=astral]{--t-bg:#171121;--t-panel:#251a36;--t-panel2:#322343;--t-bar:#302040;--t-row:#30213f;--t-edge:#8e739e;--t-text:#f6edf9;--t-muted:#c9b5d4;--t-accent:#f0d49a;--t-button:#745088;--t-button-end:#503461;--t-button-ink:#fff3d4;--t-active:#493150;--t-radius:12px 12px 4px 4px;--t-card:9px;--t-strip:linear-gradient(90deg,#765293,#eed49e,#a68cce)}
body[data-theme][data-theme=astral] :is(.hud,.panel-header){background:radial-gradient(circle at 18% 25%,#f0d49a80 1px,transparent 1.5px) 0 0/71px 39px,radial-gradient(circle at 75% 70%,#dac2ed55 1px,transparent 1.5px) 0 0/113px 53px,linear-gradient(110deg,#2a1b3c,#463054,#2c203c);box-shadow:inset 0 -1px #f0d49a88}
body[data-theme][data-theme=astral] .workshops{background:radial-gradient(ellipse at 100% 0,#8460a32b,transparent 65%),#251a36}
body[data-theme][data-theme=astral] .machine-row{background:linear-gradient(110deg,#50315d66,transparent 80%);box-shadow:inset 0 1px #f0d49a16}
body[data-theme][data-theme=astral] .machine-row:nth-child(even){background:#1b142933}
body[data-theme][data-theme=astral] .dock{background:linear-gradient(#322340,#20172e);box-shadow:inset 0 1px #e8ca8d88}
body[data-theme][data-theme=astral] .dock>button{box-shadow:inset 0 0 0 1px #c8a5d32b}
body[data-theme][data-theme=astral] :is(.shop-card,.reward-card){background:radial-gradient(ellipse at 50% 0,#aa79bb26,transparent 75%),#30213f;box-shadow:inset 0 0 0 3px #251a36,inset 0 0 0 4px #e8ca8d22}
body[data-theme][data-theme=astral] .rebirth-sigil{background:radial-gradient(circle,#835da14d,#21182e);box-shadow:0 0 24px #d1a9e518,inset 0 0 0 5px #f0d49a15}
body[data-theme][data-theme=astral] .scene-light{background:linear-gradient(#6b3d8618,transparent 50%,#30204b38)}

/* Porcelain: matte blue pearl, cobalt filigree and soft silver seams. */
body[data-theme][data-theme=porcelain]{--t-bg:#8fa6b5;--t-panel:#b8c9d2;--t-panel2:#aabeca;--t-bar:#bdcbd1;--t-row:#c2cfd5;--t-edge:#6b859b;--t-text:#1e354f;--t-muted:#344b61;--t-accent:#294c77;--t-button:#365d88;--t-button-end:#26476c;--t-button-ink:#f1eadb;--t-active:#9cb5c6;--t-radius:10px;--t-card:8px;--t-strip:repeating-linear-gradient(90deg,#355d92 0 7px,#96afc2 7px 10px,#b8c9d2 10px 20px)}
body[data-theme][data-theme=porcelain] :is(.hud,.panel-header){background:radial-gradient(circle at 50% 0,#466b9420 2px,transparent 3px) 0 0/19px 9px,linear-gradient(#c8d3d8,#aebfca);box-shadow:inset 0 -1px #315b94,inset 0 -4px #b6cad5}
body[data-theme][data-theme=porcelain] .workshops{background:radial-gradient(circle,#315b9411 1px,transparent 1.5px) 0 0/12px 12px,#adbfca}
body[data-theme][data-theme=porcelain] .workshop-header{background:linear-gradient(#c0ced5,#a6bdcc);box-shadow:inset 0 -1px #315b9444}
body[data-theme][data-theme=porcelain] .machine-row{background:linear-gradient(115deg,#c6d2d8,#b2c4d0);box-shadow:inset 3px 0 #315b9444,inset 0 -1px #315b941a}
body[data-theme][data-theme=porcelain] .machine-row:nth-child(even){background:#b3c4cf}
body[data-theme][data-theme=porcelain] :is(.shop-card,.reward-card,.collection-card){background:linear-gradient(135deg,#c3cfd5,#afc1ce);box-shadow:inset 0 0 0 3px #b2c6d0,inset 0 0 0 4px #315b942b}
body[data-theme][data-theme=porcelain] .dock{background:linear-gradient(#bacbd4,#9fb6c7);box-shadow:inset 0 1px #315b94}
body[data-theme][data-theme=porcelain] .dock>button{background:transparent;box-shadow:inset 0 3px #315b941a}
body[data-theme][data-theme=porcelain] :is(.machine-buy,.primary-button){box-shadow:inset 0 1px #b6cad570,0 2px 4px #29497522}
body[data-theme][data-theme=porcelain] .rebirth-sigil{background:radial-gradient(circle,#becdd5,#a0b7c9);box-shadow:inset 0 0 0 5px #b2c6d0,inset 0 0 0 6px #315b9440}
body[data-theme][data-theme=porcelain] .scene-light{background:linear-gradient(#a3c1e512,transparent 50%,#7896bc1f)}

/* Toyshop: painted wooden blocks, ribbon stripes and bright enamel. */
body[data-theme][data-theme=toyshop]{--t-bg:#152d3a;--t-panel:#243d4c;--t-panel2:#315366;--t-bar:#873e4c;--t-row:#2d4a59;--t-edge:#98a5a4;--t-text:#fff1dc;--t-muted:#c3d9d6;--t-accent:#ffda83;--t-button:#bf4e65;--t-button-end:#913449;--t-button-ink:#fff8eb;--t-active:#365c61;--t-radius:5px;--t-card:5px;--t-strip:var(--toyshop-ribbon)}
body[data-theme][data-theme=toyshop] :is(.hud,.panel-header){background:var(--toyshop-header-gradient);box-shadow:inset 0 -3px #edb76f,inset 0 1px #ffffff26}
body[data-theme][data-theme=toyshop] .workshops{background:repeating-linear-gradient(0deg,#ffffff03 0 2px,transparent 2px 8px),#213947}
body[data-theme][data-theme=toyshop] .workshop-header{background:linear-gradient(#3e6483,#315369);box-shadow:inset 0 -2px #8ebcba}
body[data-theme][data-theme=toyshop] .machine-row{background:linear-gradient(110deg,#416d8999,transparent);box-shadow:inset 3px 0 #80bbb2,inset 0 -1px #ffffff14}
body[data-theme][data-theme=toyshop] .machine-row:nth-child(even){background:linear-gradient(110deg,#a24d6066,transparent);box-shadow:inset 3px 0 #e48d9e,inset 0 -1px #ffffff14}
body[data-theme][data-theme=toyshop] .machine-buy{box-shadow:inset 0 2px #ffffff35,inset 0 -2px #421a3c66}
body[data-theme][data-theme=toyshop] .dock{background:linear-gradient(#315266,#203947);box-shadow:inset 0 2px #e8bb71}
body[data-theme][data-theme=toyshop] .dock>button{background:#2c4859;box-shadow:inset 0 -3px #7fbdb266}
body[data-theme][data-theme=toyshop] .dock>button:nth-child(even){box-shadow:inset 0 -3px #e48d9e88}
body[data-theme][data-theme=toyshop] :is(.shop-card,.reward-card){background:linear-gradient(145deg,#375d79,#263f52);box-shadow:inset 0 3px #80bbb2,inset 0 -3px #152d3a55}
body[data-theme][data-theme=toyshop] .shop-card:nth-child(even){background:linear-gradient(145deg,#8b485b,#533747);box-shadow:inset 0 3px #e48d9e,inset 0 -3px #152d3a55}
body[data-theme][data-theme=toyshop] .rebirth-sigil{background:#3e6483;box-shadow:inset 0 0 0 4px #ffda8326}
body[data-theme][data-theme=toyshop] .scene-light{background:linear-gradient(#6e8fbd12,transparent 45%,#b6496a1c)}

/* State colors take precedence over each material's decorative paint. */
body[data-theme]:not([data-theme=classic]) .machine-row.best-choice{background:var(--t-active);box-shadow:inset 3px 0 var(--t-accent)}
body[data-theme]:not([data-theme=classic]) .machine-row.locked{background:var(--t-panel2)}
body[data-theme]:not([data-theme=classic]) :is(.shop-card.owned,.collection-card.won,.collection-card.caught){background:var(--t-active)}
body[data-theme]:not([data-theme=classic]) .dock>button:is(:hover,.active){background:var(--t-active);color:var(--t-accent)}
body[data-theme]:not([data-theme=classic]) .dock>button.claimable{background:var(--t-button);color:var(--t-button-ink)}
body[data-theme]:not([data-theme=classic]) :is(.machine-buy,.primary-button):focus-visible{outline:2px solid var(--t-accent);outline-offset:2px}
body[data-theme]:not([data-theme=classic]) .theme-choice:focus-visible{outline-color:var(--t-accent)}

/* Both Upgrade auto controls keep their original metrics. Paint the switch
   thumb separately from its track so ON/OFF stays clear in every palette. */
body[data-theme] :is(#auto-toggle,#auto-upgrade-toggle){background:var(--t-panel2,#20352d);color:var(--t-text,#edf4df);border-color:var(--t-muted,#a7b79a);box-shadow:inset 0 0 0 1px var(--t-muted,#a7b79a)}
body[data-theme] :is(#auto-toggle,#auto-upgrade-toggle).on{background:var(--t-button-end,#314e31);color:var(--t-button-ink,#fff1c6);border-color:var(--t-button-ink,#fff1c6);box-shadow:inset 0 0 0 1px var(--t-button-ink,#fff1c6),0 1px 3px #0004}
body[data-theme] :is(#auto-toggle,#auto-upgrade-toggle)>i{background:#273742;border-color:#c2ccce;box-shadow:none}
body[data-theme] :is(#auto-toggle,#auto-upgrade-toggle)>i:before{background:#d6dfe0}
body[data-theme] :is(#auto-toggle,#auto-upgrade-toggle).on>i{background:var(--t-button-ink,#fff1c6);border-color:var(--t-button-ink,#fff1c6)}
body[data-theme] :is(#auto-toggle,#auto-upgrade-toggle).on>i:before{background:var(--t-button-end,#314e31)}
body[data-theme] :is(#auto-toggle,#auto-upgrade-toggle):focus-visible{outline:2px solid var(--t-accent,#f0d38b);outline-offset:2px}

/* Only the theme gallery owns a theme-specific responsive layout. */
@media(min-width:761px) and (min-height:700px){
 .theme-preview{height:110px;grid-template-rows:18px 74px 18px}
 .theme-caption{min-height:76px;padding:10px 12px 28px}.theme-current{bottom:8px}
}
@media(max-width:760px){.theme-picker{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
@media(max-width:540px){
 .theme-picker{gap:9px}.theme-preview{height:126px;grid-template-rows:18px 90px 18px}
 .theme-caption{padding:10px 9px 29px;min-height:100px}.theme-caption b{font-size:13px}.theme-caption small{font-size:10px}.theme-current{left:9px;bottom:8px}
}

/* The first six wardrobes share their paint with their miniature. These
   tokens are scoped to each choice, independently of the selected theme.
   Observatory, Porcelain and Toyshop keep their existing appearance. */
body[data-theme=classic],[data-theme-choice=classic]{
 --skin-hud:radial-gradient(ellipse at 30% 0,#d6bd6720,transparent 65%),linear-gradient(110deg,#304c3e,#20382f);
 --skin-workshops:repeating-linear-gradient(0deg,#b8ccac04 0 1px,transparent 1px 7px),#192e25;
 --skin-header:linear-gradient(100deg,#354d3a,#243c30);
 --skin-row:linear-gradient(110deg,#294334,#1e352b);--skin-row-shadow:inset 0 1px #dcc68d17,inset 3px 0 #b1ba7455;
 --skin-button:linear-gradient(#667b47,#40562f);--skin-dock:linear-gradient(#354b38,#24392c);--skin-dock-button:linear-gradient(#334936,#263b2e);
 --skin-panel:radial-gradient(ellipse at 0 0,#b4c07515,transparent 65%),#263d2e;--skin-card:linear-gradient(135deg,#354d36,#273e2d);
 --skin-edge:#8d9c6b;--skin-ink:#f0efdc;--skin-gold:#f0d38b;--skin-caption:#263b2e;--skin-radius:4px;
 --skin-strip:linear-gradient(90deg,#72885b,#dbcb89,#72885b);--skin-light:linear-gradient(#10241b20,transparent 32%,#10231955);
}
body[data-theme=chalet],[data-theme-choice=chalet]{
 --skin-hud:radial-gradient(ellipse at 45% 0,#c9ac6833,transparent 65%),linear-gradient(110deg,#304c3d,#20392f);
 --skin-workshops:repeating-linear-gradient(2deg,#e4c49a09 0 1px,transparent 1px 12px),linear-gradient(90deg,#3f2927,#50322c);
 --skin-header:repeating-linear-gradient(2deg,#e4c49a08 0 1px,transparent 1px 12px),linear-gradient(#54372e,#392821);
 --skin-row:radial-gradient(ellipse at 50% 0,#d99a7620,transparent 80%),linear-gradient(110deg,#64353f,#45252e);--skin-row-shadow:inset 0 0 0 1px #ba915b88,inset 0 0 0 4px #391a1f55;
 --skin-button:linear-gradient(#a75749,#78383b);--skin-dock:linear-gradient(#493029,#30231f);--skin-dock-button:linear-gradient(#59363a,#40282e);
 --skin-panel:repeating-linear-gradient(2deg,#e4c49a04 0 1px,transparent 1px 12px),#42282d;--skin-card:linear-gradient(130deg,#61363e,#4b2b32);
 --skin-edge:#ba915b;--skin-ink:#fff0d2;--skin-gold:#f3cb87;--skin-caption:#442b2e;--skin-radius:6px;
 --skin-strip:repeating-linear-gradient(45deg,#305848 0 18px,#cfb87b 18px 20px);--skin-light:linear-gradient(#3f13202b,transparent 35%,#28171b22);
}
body[data-theme=aurora],[data-theme-choice=aurora]{
 --skin-hud:radial-gradient(ellipse at 40% 0,#63d7b833,transparent 60%),linear-gradient(110deg,#142b44,#204b59 48%,#292947);
 --skin-workshops:radial-gradient(ellipse at 100% 0,#7adeca22,transparent 65%),linear-gradient(160deg,#183c50,#111e35);
 --skin-header:linear-gradient(110deg,#23495d,#192c46);
 --skin-row:linear-gradient(115deg,#224457,#172b43);--skin-row-shadow:inset 3px 0 #9be7dc88,inset 0 1px #b0eeea15;
 --skin-button:linear-gradient(110deg,#347a85,#275568);--skin-dock:linear-gradient(110deg,#11263d,#1d324b,#222640);--skin-dock-button:linear-gradient(120deg,#203f53,#172d43);
 --skin-panel:radial-gradient(ellipse at 100% 0,#5dbebc20,transparent 65%),#14263b;--skin-card:linear-gradient(135deg,#24465b,#1a3048);
 --skin-edge:#669fae;--skin-ink:#e7f7fa;--skin-gold:#bcefe2;--skin-caption:#192f45;--skin-radius:7px 1px;
 --skin-strip:linear-gradient(90deg,#70bddd,#b0f0ce,#8b9fe1);--skin-light:linear-gradient(135deg,#64d6c01c,transparent 50%,#7299ef22);
}
body[data-theme=gingerbread],[data-theme-choice=gingerbread]{
 --skin-hud:radial-gradient(ellipse at 25% 0,#ffbf7522,transparent 70%),linear-gradient(100deg,#a44939,#80352f);
 --skin-workshops:radial-gradient(#8c57231a 1px,transparent 1px) 0 0/9px 9px,#dcb98b;
 --skin-header:linear-gradient(#eed9b5,#e1c394);
 --skin-row:linear-gradient(115deg,#f3dfb9,#e8c99a);--skin-row-shadow:inset 0 2px #fff4dc,inset 0 -3px #a8713b22;
 --skin-button:linear-gradient(#ad4b3b,#84382e);--skin-dock:linear-gradient(#dfbd91,#cfa477);--skin-dock-button:linear-gradient(#f3dfb9,#e8c99a);
 --skin-panel:radial-gradient(#9b693516 1px,transparent 1px) 0 0/9px 9px,#ead0a6;--skin-card:linear-gradient(135deg,#f4e1bf,#e7cda4);
 --skin-edge:#b27a4b;--skin-ink:#583723;--skin-gold:#963b2f;--skin-caption:#ecd3ab;--skin-radius:9px;
 --skin-strip:repeating-linear-gradient(45deg,#a84234 0 9px,#fff3d9 9px 18px);--skin-light:linear-gradient(#a5532d14,transparent 45%,#9c632d17);
}
body[data-theme=post],[data-theme-choice=post]{
 --skin-hud:radial-gradient(ellipse at 40% 0,#fff5da55,transparent 65%),linear-gradient(100deg,#e9d8b8,#d6c3a2);
 --skin-workshops:repeating-linear-gradient(0deg,#74593907 0 1px,transparent 1px 5px),#d6c8a9;
 --skin-header:linear-gradient(#e6d6b6,#d7c5a2);
 --skin-row:linear-gradient(115deg,#eee2c8,#e2d3b3);--skin-row-shadow:inset 3px 0 #53715a55,inset 0 1px #fff7df,0 2px #8c785533;
 --skin-button:linear-gradient(#4b705b,#345343);--skin-dock:linear-gradient(#ddcba7,#cbb791);--skin-dock-button:linear-gradient(#e9dabb,#dcc9a6);
 --skin-panel:repeating-linear-gradient(0deg,#74593905 0 1px,transparent 1px 5px),#e5d6b7;--skin-card:linear-gradient(130deg,#eee2c8,#dfcfac);
 --skin-edge:#a89873;--skin-ink:#304e43;--skin-gold:#973f38;--skin-caption:#e4d4b3;--skin-radius:2px;
 --skin-strip:repeating-linear-gradient(45deg,#9b4641 0 9px,#f9efdb 9px 18px,#527563 18px 27px,#f9efdb 27px 36px);--skin-light:linear-gradient(#b4a06a12,transparent 45%,#275f4930);
}
body[data-theme=express],[data-theme-choice=express]{
 --skin-hud:radial-gradient(ellipse at 50% 0,#bda66a22,transparent 60%),linear-gradient(#304c50,#1a3038);
 --skin-workshops:repeating-linear-gradient(90deg,#d5b77806 0 1px,transparent 1px 22px),#172b31;
 --skin-header:linear-gradient(#29464c,#1b343b);
 --skin-row:linear-gradient(110deg,#7d3f47,#512b35);--skin-row-shadow:inset 0 0 0 2px #48232c,inset 0 0 0 3px #bd9e6555,inset 0 1px #ead6a333;
 --skin-button:linear-gradient(#3e6867,#254b4e);--skin-dock:linear-gradient(#2c4649,#172b32);--skin-dock-button:linear-gradient(#2e484a,#20393e);
 --skin-panel:linear-gradient(120deg,#243e43,#1b3037);--skin-card:linear-gradient(135deg,#304b4d,#233b40);
 --skin-edge:#b69965;--skin-ink:#fff0ce;--skin-gold:#f0cf8b;--skin-caption:#223a40;--skin-radius:3px;
 --skin-strip:repeating-linear-gradient(90deg,#ac8b50 0 18px,#ecd6a1 18px 20px,#294449 20px 38px);--skin-light:linear-gradient(#173c4020,transparent 40%,#15313d20);
}
/* Paint-only overrides: no game metrics, fonts or placements are changed. */
body[data-theme]:is([data-theme=classic],[data-theme=chalet],[data-theme=aurora],[data-theme=gingerbread],[data-theme=post],[data-theme=express]) .hud{background:var(--skin-hud)}
body[data-theme]:is([data-theme=classic],[data-theme=chalet],[data-theme=aurora],[data-theme=gingerbread],[data-theme=post],[data-theme=express]) .workshops{background:var(--skin-workshops)}
body[data-theme]:is([data-theme=classic],[data-theme=chalet],[data-theme=aurora],[data-theme=gingerbread],[data-theme=post],[data-theme=express]) .workshop-header{background:var(--skin-header)}
body[data-theme]:is([data-theme=classic],[data-theme=chalet],[data-theme=aurora],[data-theme=gingerbread],[data-theme=post],[data-theme=express]) .machine-row:not(.locked):not(.best-choice){background:var(--skin-row);box-shadow:var(--skin-row-shadow)}
body[data-theme]:is([data-theme=classic],[data-theme=chalet],[data-theme=aurora],[data-theme=gingerbread],[data-theme=post],[data-theme=express]) :is(.machine-buy,.primary-button):not(:disabled){background:var(--skin-button)}
body[data-theme]:is([data-theme=classic],[data-theme=chalet],[data-theme=aurora],[data-theme=gingerbread],[data-theme=post],[data-theme=express]) .dock{background:var(--skin-dock)}
body[data-theme]:is([data-theme=classic],[data-theme=chalet],[data-theme=aurora],[data-theme=gingerbread],[data-theme=post],[data-theme=express]) .dock>button:not(.claimable):not(.active):not(.ready){background:var(--skin-dock-button)}
body[data-theme]:is([data-theme=classic],[data-theme=chalet],[data-theme=aurora],[data-theme=gingerbread],[data-theme=post],[data-theme=express]) .panel{background:var(--skin-panel)}
body[data-theme]:is([data-theme=classic],[data-theme=chalet],[data-theme=aurora],[data-theme=gingerbread],[data-theme=post],[data-theme=express]) .panel-header{background:var(--skin-hud)}
body[data-theme]:is([data-theme=classic],[data-theme=chalet],[data-theme=aurora],[data-theme=gingerbread],[data-theme=post],[data-theme=express]) :is(.shop-card,.reward-card,.stat,.collection-card):not(.owned):not(.won):not(.caught):not(.unknown){background:var(--skin-card)}
body[data-theme]:is([data-theme=classic],[data-theme=chalet],[data-theme=aurora],[data-theme=gingerbread],[data-theme=post],[data-theme=express]) .scene-light{background:var(--skin-light)}
body[data-theme=classic] .hud{position:relative;border-bottom-color:#8d9c6b}
body[data-theme=classic] .hud:after{content:'';position:absolute;inset:auto 0 0;height:2px;background:var(--skin-strip);pointer-events:none}
body[data-theme=classic] :is(.workshops,.workshop-header,.dock>button){border-color:#8d9c6b}
body[data-theme=classic] .panel-header{box-shadow:inset 0 -2px #dbcb8955}
body[data-theme][data-theme=chalet] .shop-card{box-shadow:inset 0 1px #d6b07833}
body[data-theme][data-theme=chalet] .panel-header{box-shadow:inset 0 -1px #d6b07888}
body[data-theme][data-theme=aurora] :is(.workshop-header,.panel-header){box-shadow:inset 0 -1px #9be7dc66}
body[data-theme][data-theme=aurora] .shop-card{box-shadow:inset 0 1px #b4ede933,inset 3px 0 #83d9d544}
body[data-theme][data-theme=gingerbread] .shop-card{outline:1px dashed #b9844e88;outline-offset:-5px;box-shadow:inset 0 2px #fff1d4}
body[data-theme][data-theme=post] .panel{box-shadow:0 18px 80px #0009,inset 0 0 0 4px #9b464122}
body[data-theme][data-theme=post] .panel-header{box-shadow:inset 0 -2px #9b464144}
body[data-theme][data-theme=express] .panel-header{background:var(--skin-row);box-shadow:inset 0 -1px #d9b977}
body[data-theme][data-theme=express] .shop-card{box-shadow:inset 0 0 0 2px #1b3037,inset 0 0 0 3px #b6996533}
body[data-theme][data-theme=express] :is(.hud,.workshop-header){box-shadow:inset 0 1px #ead6a322,inset 0 -1px #b6996566}

/* Faithful miniature: same header, materials, purchase buttons and four
   dock commands, with the real illustrated location behind the Poring. */
body[data-theme] .theme-choice.theme-choice-refined{background:var(--skin-caption);color:var(--skin-ink);border-color:var(--skin-edge)}
body[data-theme] .theme-choice.theme-choice-refined[aria-checked=true]{border-color:var(--skin-gold);box-shadow:0 0 0 2px var(--skin-gold)}
.theme-choice-refined .theme-preview{--p-edge:var(--skin-edge);background:var(--skin-workshops)}
.theme-choice-refined .preview-hud{position:relative;background:var(--skin-hud)}
.theme-choice-refined .preview-hud i{background:var(--skin-gold)}
.theme-choice-refined .preview-gingerbread .preview-hud i{background:#fff2d6}
.theme-choice-refined .preview-hud:after{content:'';position:absolute;inset:auto 0 0;height:2px;background:var(--skin-strip)}
.theme-choice-refined .preview-scene{background:var(--skin-light),var(--preview-location,url('assets/lutie.webp')) center/cover}
.theme-choice-refined .preview-scene:before{display:none}
.preview-poring{position:absolute;left:50%;top:56%;transform:translate(-50%,-50%);height:44%;max-width:38%;object-fit:contain;image-rendering:pixelated;filter:drop-shadow(0 2px 1px #10231988)}
.preview-controls{position:absolute;top:5px;left:5px;display:grid;gap:3px;width:34%}
.preview-controls i{height:5px;background:var(--skin-caption);border:1px solid var(--skin-edge);border-radius:2px}.preview-controls i:last-child{width:52%}
.theme-choice-refined .preview-workshops{padding:0;gap:1px;background:var(--skin-workshops)}
.preview-workshop-header{height:13px;flex-shrink:0;background:var(--skin-header);box-shadow:inset 0 -1px var(--skin-edge);position:relative}
.preview-workshop-header:before{content:'';position:absolute;left:4px;top:3px;width:40%;height:2px;background:var(--skin-gold)}
.preview-workshop-header:after{content:'';position:absolute;inset:auto 4px 2px;height:3px;background:repeating-linear-gradient(90deg,var(--skin-edge) 0 18%,transparent 18% 25%);opacity:.65}
.theme-choice-refined .preview-workshops>i{background:var(--skin-row);border:0;border-radius:var(--skin-radius);box-shadow:var(--skin-row-shadow)}
.theme-choice-refined .preview-workshops>i:before{content:'';position:absolute;left:4px;top:4px;height:4px;width:4px;border-radius:50%;background:var(--skin-gold);opacity:.65}
.theme-choice-refined .preview-workshops>i:after{top:auto;bottom:3px;left:18%;right:5px;height:4px;background:var(--skin-button);border:1px solid var(--skin-edge);border-radius:var(--skin-radius);opacity:1}
.theme-choice-refined .preview-dock{padding:0;gap:0;background:var(--skin-dock)}
.theme-choice-refined .preview-dock>i{background:var(--skin-dock-button);border:0;border-right:1px solid var(--skin-edge);border-radius:var(--skin-radius);position:relative}
.theme-choice-refined .preview-dock>i:last-child{border-right:0}
.theme-choice-refined .preview-dock>i:after{content:'';position:absolute;top:45%;left:24%;right:24%;height:2px;background:var(--skin-gold);opacity:.7}

/* An inset shop sign uses the wardrobe's accent without resizing the dock. */
.dock #shop-open {
  --shop-face: var(--skin-gold, var(--t-accent));
  --shop-ink: var(--t-bg, #203c30);
  isolation: isolate;
  color: var(--shop-ink);
}
body:is([data-theme=gingerbread], [data-theme=post], [data-theme=porcelain]) #shop-open {
  --shop-ink: #fff7e8;
}
.dock #shop-open::before {
  content: "";
  position: absolute;
  inset: 3px;
  z-index: -1;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(115deg, #ffffff18, transparent 48%, #0000000d), var(--shop-face);
  box-shadow: inset 0 0 0 1px #0003, inset 0 0 0 2px #fff5;
}
.dock #shop-open > span { font-weight: 700; }
body[data-theme] .dock #shop-open > :is(.icon, .shop-balance) { color: inherit; }
.dock #shop-open:is(:hover, .active)::before {
  box-shadow: inset 0 0 0 2px var(--shop-ink), inset 0 0 0 3px #fff5;
}
.dock #shop-open:focus-visible { outline: 2px solid var(--shop-ink); outline-offset: -6px; }
