/* Shared winter palette; every rule is scoped so summer appearance is preserved. */
html[data-winter]{--bg:#0b1420;--panel:#142331;--panel-hover:#1b3041;--line:#30495c;--text:#f1f8ff;--muted:#b0c3d3;--lime:#a5e6ff}
html[data-winter] body:not([data-page=admin]){background:radial-gradient(ellipse at 80% 0%,#27618155,transparent 45%),#0b1420}
html[data-winter] .header,html[data-winter] .header.scrolled{background:#0c1929f2;border-bottom-color:#80d6fa40}
html[data-winter] .brand-dot{color:#b9ecff;text-shadow:0 0 18px #9ce5ff88}
html[data-winter] .hero-backdrop img{filter:saturate(.65) hue-rotate(12deg)}
html[data-winter] .hero-backdrop:after{background:linear-gradient(90deg,#0b1420 0%,#0b1420de 25%,#0b142077 52%,#0b142015 80%),linear-gradient(0deg,#0b1420,transparent 35%,#78d9ff0a)}
html[data-winter] .hero h1 span,html[data-winter] .page-heading h1 span{color:#b8eaff;text-shadow:0 0 45px #6acbff30}
html[data-winter] .product-card,html[data-winter] .world-card,html[data-winter] .community-card{border-color:#8edaff40;box-shadow:inset 0 3px 0 #e2f7ffcc,0 12px 35px #00152b30}
html[data-winter] .footer{background:#09121c;border-top-color:#8edaff40}
/* Some sections have their own forest palette instead of shared theme variables. */
html[data-winter] :is(.feature-card,.world-card,.community-card,.route-tabs button,.world-photo,.token-picker-panel,.codex-chapter,.field-article,.atlas-sidebar.wiki-sidebar,.atlas-card,.rank-champion,.rank-empty){background:linear-gradient(145deg,#1b3042,#101d2c);border-color:#41647e}
html[data-winter] :is(.event-panel,.adventure-events .event-panel,.guide-scene,.join-banner,.adventure-join,.shop-tools-intro,.codex-exception,.atlas-tip,.rank-champion.place-1){background:radial-gradient(ellipse at 85% 0%,#8ddfff1c,transparent 65%),#142536;border-color:#6597b5;box-shadow:inset 0 0 50px #83d5ff06}
html[data-winter] :is(.route-tabs button[aria-selected=true],.guide-bubble,.connect-address,.comparison-table thead,.chapter-finish button,.world-state-switch button[aria-pressed=true]){background:linear-gradient(120deg,#28465d,#1a3045);border-color:#8bcde7;color:#e2f6ff}
html[data-winter] :is(.game-toolbar,.world-dialog,.skin-dialog,.checkout,.scene-label,.document-seal,.world-state-switch){background:#102335ed;border-color:#75bad180;color:#d8efff}
html[data-winter] :is(.game-toolbar button,.game-toolbar a,.calendar-button,.guide-wave,.route-tags span,.rank-footer a,.token-picker-panel>label,.codex-help,.codex-sidebar nav a,.atlas-home-link,.atlas-card-copy>span:first-child,.atlas-card-open,.field-back,.inline-command,.field-next a,.rank-champion strong,.rank-row>strong){color:#c1e8fa}
html[data-winter] :is(.field input,.field textarea,.field select,.catalog-sort select,.skin-stage-controls select,.skin-pose-label select,.atlas-search,.codex-search,.palette-search,.field-commands button,.comparison-table th:first-child,.atlas-card-number){background:#0e1d2b;border-color:#41647e;color:#d1e8f6}
html[data-winter] :is(.shop-note,.route-tags span,.field-schedule,.game-toolbar [data-connect],.codex-sidebar nav a[aria-current],.atlas-sidebar nav a[aria-current],.wiki-sidebar nav a[aria-current],.event-times span.next,.adventure-events .event-times span.next){background:#92dfff12;border-color:#7dbcd6;color:#d6f2ff;box-shadow:none}
html[data-winter] :is(.button:hover,.rank-tab[aria-pressed=true],.rank-duel-tabs button[aria-pressed=true]){background:#bceeff;border-color:#bceeff;color:#102334;box-shadow:0 6px 30px #9edfff1b}
html[data-winter] :is(.button:not(.secondary),.filter-tabs button[aria-pressed=true],.step-checkbox input:checked+span){color:#102334}
html[data-winter] .button.secondary{color:#d8efff;border-color:#41647e}
html[data-winter] .button.secondary:hover{background:#1a3045;border-color:#a5e6ff}
html[data-winter] :is(.community-card:hover,.route-tabs button:hover,.atlas-card:hover,.rule-actions button:hover,.field-commands button:hover){border-color:#a5e6ff}
html[data-winter] :is(.game-toolbar button:hover,.game-toolbar a:hover,.codex-sidebar nav a:hover,.atlas-sidebar nav a:hover,.wiki-sidebar nav a:hover,.comparison-table tbody tr:hover,.quick-command:hover,.rank-row:hover,.inline-command:hover){background:#8edaff16}
html[data-winter] :is(.guide-wave,.step-checkbox span,.game-toolbar kbd,.search-box kbd,.rank-tab,.rank-duel-tabs button){background:#172e40;border-color:#476f89;color:#c0d9e9}
html[data-winter] :is(.document-hero h1 span,.rank-hero h1 span,.rank-feed:not(.stale),.scene-cross,.rank-place,.rank-row[data-medal] .rank-position,.skin-inspect-name:hover h2,.skin-row-button:hover,.codex-principles .icon,.atlas-tip>.icon,.rank-emblem>.icon){color:#a5e6ff}
html[data-winter] :is(.timer-units,.timezone,.checklist-caption,.journey-hint,.rank-footer,.catalog-sort,.range-labels,.token-choice>span,.token-choice>p,.token-input>span,.token-illustration span,.article-tools>span,.article-tools button,.wiki-bookmark small,.document-meta,.codex-tools p,.chapter-index,.codex-read-meter>small,.field-note-label,.field-note-number,.skin-source,.skin-stage-controls,.skin-row-button small,.rank-position,.rank-footnote,.rank-champion>span:last-child){color:#abc4d7}
html[data-winter] :is(.token-input,.token-choice,.token-picker,.article-tools,.wiki-bookmark,.wiki-content,.wiki-sidebar,.rank-table,.rank-row,.rank-table-head,.rank-hero,.realm-strip,.route-stage,.comparison-scroll){border-color:#37576e}
html[data-winter] :is(.journey-meter,.codex-read-meter>div){background:#253d51}
html[data-winter] .codex-read-meter>div>span{background:#a5e6ff}
html[data-winter] :is(.rank-skin,.skin-inspector,.rank-emblem){background:radial-gradient(ellipse at 50% 85%,#92ddff23,transparent 70%);border-color:#75bad155;outline-color:#75bad128}
html[data-winter] .rank-mini-skin{background:linear-gradient(0deg,#75cfff25,transparent)}
html[data-winter] :is(.rank-avatar,.voxel-platform){background:linear-gradient(135deg,#426d88,#1b354a);border-color:#83c6e6;box-shadow:0 0 35px #8edaff18}
html[data-winter] .route-shade{background:linear-gradient(0deg,#0d1a28,#0d1a28d6 36%,#0d1a2825)}
html[data-winter] .atlas-card-shade{background:linear-gradient(0deg,#0d1a28f5,#0d1a28b0 40%,#0d1a2810)}
html[data-winter] .field-cover-shade{background:linear-gradient(0deg,#142536,#142536a0 48%,#0d1a2822)}
html[data-winter] .join-grid{background:repeating-linear-gradient(90deg,#a5e6ff06 0 1px,transparent 1px 44px),repeating-linear-gradient(0deg,#a5e6ff06 0 1px,transparent 1px 44px)}
html[data-winter] .adventure-hero h1 span{background:linear-gradient(110deg,#edfaff,#b8eaff 65%,#81c6ed);background-clip:text}
html[data-winter] .server-address{background:#10233588!important;border-color:#75bad180!important}
html[data-winter] .world-spark{background:#c6efff;box-shadow:0 0 9px #a5e6ff88}
html[data-winter] .beacon-ray{background:linear-gradient(0deg,#a5e6ff66,transparent);box-shadow:0 0 40px 6px #a5e6ff10}
html[data-winter] .reading-progress span{box-shadow:0 0 12px #a5e6ff40}
html[data-winter] mark{background:#8edaff38;color:#e3f7ff}
html[data-winter] :is(.atlas-compass,.codex-sidebar nav a){background:#14253680;border-color:#75bad150;color:#c1e8fa;outline-color:#75bad140}
html[data-winter] .atlas-compass i{background:linear-gradient(135deg,#a5e6ff18,transparent);border-color:#a5e6ff77}
html[data-winter] .atlas-compass:before,html[data-winter] .atlas-compass:after{background:#c1e8fa30}
.winter-setting{display:flex;align-items:center;justify-content:space-between;gap:24px;border:1px solid #6fb4d780;border-radius:12px;padding:20px;margin:20px 0;background:linear-gradient(120deg,#163448,#14202a)}
/* Seasonal SVGs are decorative, never capture clicks, and never appear in the regular theme. */
.winter-art{display:none;pointer-events:none;user-select:none}
html[data-winter] .winter-art{display:block;position:absolute;object-fit:contain}
html[data-winter] .winter-garland{inset:auto 0 -34px;width:100%;height:52px;object-fit:fill;object-position:top;z-index:1;filter:drop-shadow(0 3px 8px #07142180)}
html[data-winter] .winter-snowman{width:clamp(230px,25vw,360px);height:auto;right:3%;bottom:95px;z-index:3;filter:drop-shadow(0 10px 20px #020c1d66)}
html[data-winter] .winter-scene-host .scene-label{display:none}
html[data-winter] .footer{position:relative;margin-top:85px}
html[data-winter] .winter-forest{width:190px;height:auto;right:max(30px,calc((100% - 1344px)/2));top:-113px;z-index:1}
@media(max-width:900px){html[data-winter] .winter-snowman{width:245px;right:15px;bottom:95px}}
@media(max-width:680px){html[data-winter] .winter-garland{height:37px;bottom:-25px;object-fit:cover;width:100%}html[data-winter] .winter-snowman{width:200px;bottom:57px;right:0}html[data-winter] .winter-forest{width:145px;top:-86px;right:15px}html[data-winter] .footer{margin-top:70px}}
.winter-setting h3{font-size:18px;color:#c8efff}.winter-setting p{font-size:12px;line-height:1.7;max-width:580px;margin-top:9px;color:#c0d4e3}.winter-setting .field{min-width:150px;flex-shrink:0}
.winter-snow{position:fixed;inset:0;overflow:hidden;pointer-events:none;z-index:30;contain:strict}
.winter-flake{position:absolute;top:-40px;left:3%;color:#e4f8ff;font-size:14px;opacity:.65;animation:winter-fall 17s linear infinite;animation-delay:-9s;text-shadow:0 0 7px #a2e8ff55}
.winter-flake:nth-child(3n){font-size:9px;opacity:.4;animation-duration:23s}.winter-flake:nth-child(4n){font-size:18px;animation-duration:19s}.winter-flake:nth-child(5n){animation-delay:-15s}.winter-flake:nth-child(7n){animation-delay:-3s}
.winter-snow.is-paused .winter-flake{animation-play-state:paused}
html.motion-off .winter-snow,html.motion-off .winter-snow-toggle{display:none}
.winter-snow-toggle{position:fixed;right:18px;bottom:18px;z-index:35;background:#102335ed;border:1px solid #88c9e877;border-radius:24px;color:#daf4ff;padding:10px 16px;font:inherit;font-size:11px;box-shadow:0 4px 20px #0003;cursor:pointer}
.winter-snow-toggle:focus-visible{outline:2px solid #d6f4ff;outline-offset:4px}
@keyframes winter-fall{from{transform:translate3d(-20px,-30px,0) rotate(0deg)}to{transform:translate3d(45px,calc(100vh + 80px),0) rotate(160deg)}}
@media(max-width:600px){.winter-flake:nth-child(n+25){display:none}.winter-setting{align-items:stretch;flex-direction:column;gap:0}.winter-snow-toggle{right:10px;bottom:80px;padding:9px 12px}}
@media(prefers-reduced-motion:reduce){.winter-snow,.winter-snow-toggle{display:none}}
.winter-flake:nth-child(1){left:37%;animation-delay:-7s}
.winter-flake:nth-child(2){left:74%;animation-delay:-14s}
.winter-flake:nth-child(3){left:11%;animation-delay:-21s}
.winter-flake:nth-child(4){left:48%;animation-delay:-5s}
.winter-flake:nth-child(5){left:85%;animation-delay:-12s}
.winter-flake:nth-child(6){left:22%;animation-delay:-19s}
.winter-flake:nth-child(7){left:59%;animation-delay:-3s}
.winter-flake:nth-child(8){left:96%;animation-delay:-10s}
.winter-flake:nth-child(9){left:33%;animation-delay:-17s}
.winter-flake:nth-child(10){left:70%;animation-delay:-1s}
.winter-flake:nth-child(11){left:7%;animation-delay:-8s}
.winter-flake:nth-child(12){left:44%;animation-delay:-15s}
.winter-flake:nth-child(13){left:81%;animation-delay:-22s}
.winter-flake:nth-child(14){left:18%;animation-delay:-6s}
.winter-flake:nth-child(15){left:55%;animation-delay:-13s}
.winter-flake:nth-child(16){left:92%;animation-delay:-20s}
.winter-flake:nth-child(17){left:29%;animation-delay:-4s}
.winter-flake:nth-child(18){left:66%;animation-delay:-11s}
.winter-flake:nth-child(19){left:3%;animation-delay:-18s}
.winter-flake:nth-child(20){left:40%;animation-delay:-2s}
.winter-flake:nth-child(21){left:77%;animation-delay:-9s}
.winter-flake:nth-child(22){left:14%;animation-delay:-16s}
.winter-flake:nth-child(23){left:51%;animation-delay:-0s}
.winter-flake:nth-child(24){left:88%;animation-delay:-7s}
.winter-flake:nth-child(25){left:25%;animation-delay:-14s}
.winter-flake:nth-child(26){left:62%;animation-delay:-21s}
.winter-flake:nth-child(27){left:99%;animation-delay:-5s}
.winter-flake:nth-child(28){left:36%;animation-delay:-12s}
.winter-flake:nth-child(29){left:73%;animation-delay:-19s}
.winter-flake:nth-child(30){left:10%;animation-delay:-3s}
.winter-flake:nth-child(31){left:47%;animation-delay:-10s}
.winter-flake:nth-child(32){left:84%;animation-delay:-17s}
.winter-flake:nth-child(33){left:21%;animation-delay:-1s}
.winter-flake:nth-child(34){left:58%;animation-delay:-8s}
.winter-flake:nth-child(35){left:95%;animation-delay:-15s}
.winter-flake:nth-child(36){left:32%;animation-delay:-22s}
.winter-flake:nth-child(37){left:69%;animation-delay:-6s}
.winter-flake:nth-child(38){left:6%;animation-delay:-13s}
.winter-flake:nth-child(39){left:43%;animation-delay:-20s}
.winter-flake:nth-child(40){left:80%;animation-delay:-4s}
.winter-flake:nth-child(41){left:17%;animation-delay:-11s}
.winter-flake:nth-child(42){left:54%;animation-delay:-18s}
