/* The artwork and palette match the approved seasonal references; component geometry stays unchanged. */
:is(html[data-site-theme=spring-warm],[data-theme-preview=spring-warm]){--o:#b92529;--soft:#fceee5;--ink:#28221e;--muted:#8b7667;--line:#e7c89f;--bg:#fff8ee;--theme-surface:#fffaf3;--theme-header:#fff8eef0;--theme-search:#fff7edf0;--theme-muted:#8b7667;--theme-title:#26211d;--theme-atlas:url('/assets/theme-spring-atlas.png')}
:is(html[data-site-theme=winter-lantern],[data-theme-preview=winter-lantern]){--o:#ba2b35;--soft:#fff0f0;--ink:#26364c;--muted:#869bb0;--line:#d4e3f1;--bg:#f8fbff;--theme-surface:#ffffff;--theme-header:#f3f8fff0;--theme-search:#eaf3fdf0;--theme-muted:#8a9dae;--theme-title:#233347;--theme-atlas:url('/assets/theme-winter-atlas.png')}
html[data-site-theme]:not([data-site-theme=default]) body[data-site-theme-surface=pages]{background:var(--bg);color:var(--ink)}
html[data-site-theme=spring-warm] body[data-site-theme-surface=pages]{background-image:radial-gradient(ellipse at 0 0,#f7deb62b,transparent 48%),radial-gradient(ellipse at 100% 80%,#f8e0bb20,transparent 45%)}
html[data-site-theme=winter-lantern] body[data-site-theme-surface=pages]{background-image:radial-gradient(ellipse at 0 0,#dbeafb80,transparent 42%),radial-gradient(ellipse at 100% 80%,#e1eefd50,transparent 42%)}
html[data-site-theme]:not([data-site-theme=default]) :is(.sidebar,.topbar,.mobile-header){background:var(--theme-header);border-color:transparent}
html[data-site-theme]:not([data-site-theme=default]) #app .mobile-nav{background:var(--theme-surface);border-color:var(--line);isolation:isolate;overflow:hidden}
html[data-site-theme]:not([data-site-theme=default]) #app .mobile-nav button{position:relative;z-index:1}
html[data-site-theme]:not([data-site-theme=default]) :is(.search-box,.mobile-search){background:var(--theme-search);border-color:var(--line)}
html[data-site-theme]:not([data-site-theme=default]) :is(.home-new-card,.client-box,.home-category-list button){background:var(--theme-surface);border-color:var(--line)}
html[data-site-theme]:not([data-site-theme=default]) :is(.panel,.record-card,.account-card,.setting-list,.library-filter-panel,.profile-section){border-color:var(--line)}
html[data-site-theme]:not([data-site-theme=default]) :is(.home-section-head h2,.game-name b,.home-new-card b,.home-coop-card b,.library-game-info>b){color:var(--theme-title)}
html[data-site-theme]:not([data-site-theme=default]) :is(.text-link,.home-announcement>span,.home-pick-tabs button,.game-meta,.home-new-card small,.home-new-card em,.home-coop-card small,.library-game-info>small,.library-game-tags>span,.search-placeholder){color:var(--theme-muted)}
html[data-site-theme]:not([data-site-theme=default]) .search-box input::placeholder{color:var(--theme-muted)}
html[data-site-theme]:not([data-site-theme=default]) :is(.home-announcement>.icon,.home-pick-tabs button.active){color:var(--o)}
html[data-site-theme=spring-warm] :is(.score,.search-box>.icon){color:var(--o)}
html[data-site-theme=spring-warm] #app .mobile-nav button:not(.active){color:#9a8372}
html[data-site-theme=spring-warm] #app .home-pick-tabs button.active{background:var(--o);border-color:var(--o);color:#fff}
html[data-site-theme=winter-lantern] .home-pick-tabs button.active{background:#fff2f2;border-color:#df8a91;color:var(--o)}
html[data-site-theme=winter-lantern] .score{color:#2585df}
html[data-site-theme]:not([data-site-theme=default]) .btn.primary:hover{background:var(--o);filter:brightness(.94)}
html[data-site-theme]:not([data-site-theme=default]) :is(.sq-route-go,.sq-ready-actions button:first-child){background:var(--o);border-color:var(--o)}
/* One pair of illustrated top corners; the paper lanterns never repeat down the page. */
.site-theme-atmosphere{position:fixed;inset:0;z-index:45;pointer-events:none;user-select:none;overflow:hidden;contain:strict}
.site-theme-atmosphere *{pointer-events:none!important;user-select:none!important}
.site-theme-atmosphere .theme-top{position:absolute;top:calc(env(safe-area-inset-top,0px) - 14px);left:-24px;width:80px;height:80px;background:var(--theme-atlas) 0 0/200% 200% no-repeat}
.site-theme-atmosphere .theme-top-right{left:auto;right:-24px;transform:scaleX(-1)}
html[data-site-theme=winter-lantern] .site-theme-atmosphere .theme-top{top:calc(env(safe-area-inset-top,0px) - 9px);left:-12px;width:100px;height:100px}
html[data-site-theme=winter-lantern] .site-theme-atmosphere .theme-top-right{left:auto;right:-12px}
html[data-site-theme=default] .site-theme-atmosphere,.standard-queue-active .site-theme-atmosphere{display:none}
.theme-snow-edge{display:none;position:absolute;left:0;top:22%;width:18px;height:72px;overflow:hidden}
.theme-snow-edge:before{content:"";position:absolute;left:-15px;top:0;width:72px;height:72px;background:var(--theme-atlas) 100% 100%/200% 200% no-repeat}
html[data-site-theme=winter-lantern] .theme-snow-edge{display:block}
.theme-snow-edge:nth-of-type(4){top:43%}.theme-snow-edge:nth-of-type(5){top:69%}.theme-snow-edge:nth-of-type(n+6){left:auto;right:0;transform:scaleX(-1)}.theme-snow-edge:nth-of-type(6){top:30%}.theme-snow-edge:nth-of-type(7){top:56%}.theme-snow-edge:nth-of-type(8){top:80%}
/* Flourishes live in existing blank space; none consume a row or move a card. */
html[data-site-theme]:not([data-site-theme=default]) .home-v3,html[data-site-theme]:not([data-site-theme=default]) .home-v3 .home-section{position:relative}
html[data-site-theme=spring-warm] .home-v3:before,html[data-site-theme=spring-warm] .home-v3:after,html[data-site-theme=spring-warm] .home-v3 .home-section:not(.home-new-section):before{content:"";position:absolute;left:-20px;top:-55px;width:76px;height:76px;background:var(--theme-atlas) 100% 0/200% 200% no-repeat;pointer-events:none;z-index:1}
html[data-site-theme=spring-warm] .home-v3:after{left:auto;right:-20px;transform:scaleX(-1)}
html[data-site-theme=spring-warm] .home-v3 .home-section:not(.home-new-section):after{content:"";position:absolute;right:-20px;top:-44px;width:64px;height:64px;background:var(--theme-atlas) 0 100%/200% 200% no-repeat;pointer-events:none;z-index:1}
html[data-site-theme=winter-lantern] .home-section-head h2{position:relative}
html[data-site-theme=winter-lantern] .home-section-head h2:after{content:"";position:absolute;left:calc(100% + 5px);top:calc(50% - 36px);width:72px;height:72px;background:var(--theme-atlas) 100% 0/200% 200% no-repeat;pointer-events:none}
/* Footer ornaments share the same artwork as the page, behind the navigation labels. */
html[data-site-theme=spring-warm] #app .mobile-nav:before,html[data-site-theme=spring-warm] #app .mobile-nav:after{content:"";position:absolute;left:-15px;bottom:-10px;width:80px;height:80px;background:var(--theme-atlas) 100% 100%/200% 200% no-repeat;pointer-events:none;z-index:0}
html[data-site-theme=spring-warm] #app .mobile-nav:after{left:auto;right:-15px;transform:scaleX(-1)}
html[data-site-theme=winter-lantern] #app .mobile-nav:before,html[data-site-theme=winter-lantern] #app .mobile-nav:after{content:"";position:absolute;left:-42px;bottom:-52px;width:160px;height:160px;background:var(--theme-atlas) 0 100%/200% 200% no-repeat;pointer-events:none;z-index:0}
html[data-site-theme=winter-lantern] #app .mobile-nav:after{left:auto;right:-42px;transform:scaleX(-1)}
@media(min-width:721px){.site-theme-atmosphere .theme-top{width:96px;height:96px;left:calc(var(--nav,218px) - 32px);top:-18px}.site-theme-atmosphere .theme-top-right{left:auto;right:-32px}html[data-site-theme=winter-lantern] .site-theme-atmosphere .theme-top{width:110px;height:110px;left:calc(var(--nav,218px) - 44px);top:-13px}html[data-site-theme=winter-lantern] .site-theme-atmosphere .theme-top-right{left:auto;right:-28px}}
@media(max-width:359px){html[data-site-theme=winter-lantern] .home-section-head h2:after{width:50px;height:50px;top:calc(50% - 25px)}}
.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px;margin-top:22px}.theme-options article{min-width:0}.theme-options article>p{font-size:12px;color:var(--muted)}
.theme-sample{--theme-surface:#fff;--bg:#f6f9ff;--ink:#26364c;--line:#e3ecf7;--o:#0b84ff;--soft:#edf6ff;position:relative;isolation:isolate;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--bg);color:var(--ink);padding:16px;max-width:400px;margin:0 auto}
.theme-options .theme-sample{max-width:none}.theme-sample[data-theme-preview]:not([data-theme-preview=default]):before,.theme-sample[data-theme-preview]:not([data-theme-preview=default]):after{content:"";position:absolute;z-index:1;pointer-events:none;top:-14px;left:-24px;width:80px;height:80px;background:var(--theme-atlas) 0 0/200% 200% no-repeat}.theme-sample[data-theme-preview]:not([data-theme-preview=default]):after{left:auto;right:-24px;transform:scaleX(-1)}
.theme-sample[data-theme-preview=winter-lantern]:before,.theme-sample[data-theme-preview=winter-lantern]:after{top:-9px;left:-12px;width:100px;height:100px}.theme-sample[data-theme-preview=winter-lantern]:after{left:auto;right:-12px}
.theme-sample-search{display:flex;align-items:center;gap:6px;border:1px solid var(--line);background:var(--theme-search,var(--theme-surface));border-radius:7px;padding:9px 8px;font-size:9px;color:var(--muted);margin-bottom:14px}.theme-sample-search .icon{width:14px;height:14px}
.theme-sample-banner{aspect-ratio:1.85;overflow:hidden;border-radius:8px}.theme-sample-banner img{width:100%;height:100%;object-fit:cover;display:block}.theme-sample-heading{font-size:12px;font-weight:600;margin:15px 0 8px}.theme-sample-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.theme-sample-cards>div{min-width:0;border:1px solid var(--line);background:var(--theme-surface);border-radius:6px;overflow:hidden}.theme-sample-cards img{width:100%;aspect-ratio:.8;object-fit:cover;display:block}.theme-sample-cards b{display:block;font-size:8px;font-weight:500;padding:6px 4px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.theme-sample-nav{display:flex;justify-content:space-around;border-top:1px solid var(--line);margin:15px -16px -16px;padding:9px 0;background:var(--theme-surface);font-size:9px;color:var(--muted)}.theme-sample-nav span{display:grid;justify-items:center;gap:3px}.theme-sample-nav span:first-child{color:var(--o)}.theme-sample-nav .icon{width:16px;height:16px}
.theme-ack{display:flex;align-items:flex-start;gap:9px;font-size:13px;margin:20px 0;line-height:1.7}.theme-ack input{width:17px;height:17px;flex:none;margin:3px 0 0;accent-color:#0b84ff}.theme-phrase{display:grid;gap:10px;font-size:13px;margin-top:20px}.theme-phrase input{width:100%}
@media(max-width:1100px){.theme-options{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:600px){.theme-options{grid-template-columns:1fr}}

.theme-sample[data-theme-preview=spring-warm]{background:radial-gradient(ellipse at 0 0,#f7deb62b,transparent 48%),var(--bg)}
.theme-sample[data-theme-preview=winter-lantern]{background:radial-gradient(ellipse at 0 0,#dbeafb80,transparent 42%),var(--bg)}
.theme-sample-nav{position:relative;isolation:isolate;overflow:hidden}.theme-sample-nav>span{position:relative;z-index:1}
.theme-sample[data-theme-preview=spring-warm] .theme-sample-nav:before,.theme-sample[data-theme-preview=spring-warm] .theme-sample-nav:after{content:"";position:absolute;left:-15px;bottom:-10px;width:70px;height:70px;background:var(--theme-atlas) 100% 100%/200% 200% no-repeat;pointer-events:none;z-index:0}
.theme-sample[data-theme-preview=spring-warm] .theme-sample-nav:after{left:auto;right:-15px;transform:scaleX(-1)}
.theme-sample[data-theme-preview=winter-lantern] .theme-sample-nav:before,.theme-sample[data-theme-preview=winter-lantern] .theme-sample-nav:after{content:"";position:absolute;left:-40px;bottom:-56px;width:140px;height:140px;background:var(--theme-atlas) 0 100%/200% 200% no-repeat;pointer-events:none;z-index:0}
.theme-sample[data-theme-preview=winter-lantern] .theme-sample-nav:after{left:auto;right:-42px;transform:scaleX(-1)}

/* Carry the selected palette through library, account and record surfaces. */
html[data-site-theme]:not([data-site-theme=default]) #app :is(.chip.active,.nav-link.active){background:var(--soft);border-color:var(--line);color:var(--o)}
html[data-site-theme]:not([data-site-theme=default]) #app :is(.home-featured,.home-feature-choice,.library-game-row,.me-card){background:var(--theme-surface);border-color:var(--line)}
html[data-site-theme]:not([data-site-theme=default]) #app .home-feature-choice.active{background:var(--soft);border-color:var(--line)}
html[data-site-theme]:not([data-site-theme=default]) #app :is(.home-feature-choice small,.home-feature-menu-title small,.home-feature-library,.library-game-description,.muted){color:var(--theme-muted)}
html[data-site-theme]:not([data-site-theme=default]) #app .library-game-tags>span{background:var(--soft);color:var(--theme-muted)}
html[data-site-theme]:not([data-site-theme=default]) .subpage-topbar{background:var(--theme-header);border-color:var(--line)}
html[data-site-theme=spring-warm] #app .library-game-score{color:var(--o)}
html[data-site-theme=spring-warm] #app .profile-page .main,html[data-site-theme=spring-warm] .profile-page .main{background-color:var(--bg);background-image:linear-gradient(180deg,#fff8ee00 0,#fff8ee94 170px,#fff8ee 355px),radial-gradient(ellipse at 100% 0,#f7dfb8 0,transparent 68%),linear-gradient(115deg,#fff4e6 0,#f9e9d1 53%,#fff5e7 100%)}
html[data-site-theme=winter-lantern] #app .profile-page .main,html[data-site-theme=winter-lantern] .profile-page .main{background-color:var(--bg);background-image:linear-gradient(180deg,#f8fbff00 0,#f8fbff94 170px,#f8fbff 355px),radial-gradient(ellipse at 100% 0,#e4f2ff 0,transparent 68%),linear-gradient(115deg,#f6faff 0,#e6f1fb 53%,#f5fbff 100%)}
html[data-site-theme=spring-warm] #app .profile-v2 .me-membership{background:linear-gradient(115deg,#b3292f,#cd4840);border-color:#b3292f}
html[data-site-theme=spring-warm] #app .profile-v2 .me-member-button.btn{color:var(--o);background:#fffcf6}
html[data-site-theme=spring-warm] #app .profile-v2 .me-member-states span{color:#ffe1ca}
html[data-site-theme=spring-warm] #app .profile-v2 :is(.me-balance strong,.me-balance.daily strong,.me-balance.free strong){color:var(--o)}
html[data-site-theme=spring-warm] #app .profile-v2 :is(.me-user-meta,.me-subtitle,.me-balance-label,.me-balance strong small,.me-balance-note,.me-service-list small,.me-promo-actions small,.me-privacy-note,.me-help-note p){color:var(--theme-muted)}
html[data-site-theme=spring-warm] #app .profile-v2 :is(.me-account-tag,.me-record-icon,.me-promo-actions>button,.me-help-note){background:var(--soft);border-color:var(--line);color:#a35a42}
html[data-site-theme=spring-warm] #app .profile-v2 :is(.me-promo-actions b,.me-promo-icon,.me-service-icon,.me-help-note button){color:#a35a42}
html[data-site-theme=spring-warm] #app .profile-v2 :is(.me-section-title h3,.me-user-main h1,.me-user-main h2){color:var(--theme-title)}

.site-theme-atmosphere[data-layout=compact] .theme-top{display:none}
html[data-site-theme=winter-lantern] .site-theme-atmosphere[data-layout=profile] .theme-top{width:82px;height:82px}

html[data-site-theme=winter-lantern] #app .mobile-nav:before,html[data-site-theme=winter-lantern] #app .mobile-nav:after{opacity:.8}

@media(min-width:721px) and (max-width:1100px){.site-theme-atmosphere .theme-top{width:72px;height:72px;left:calc(var(--nav,170px) - 28px);top:-14px}.site-theme-atmosphere .theme-top-right{left:auto;right:-20px}html[data-site-theme=winter-lantern] .site-theme-atmosphere .theme-top{width:76px;height:76px;left:calc(var(--nav,170px) - 32px);top:-15px}html[data-site-theme=winter-lantern] .site-theme-atmosphere .theme-top-right{left:auto;right:-14px}}
