/* Module illustrations are independent SVG assets; scenes are never used as panel skins. */
html{--module-panel:url('/themes/module-deepsea-panel.svg');--module-stat:url('/themes/module-deepsea-stat.svg');--module-side:url('/themes/module-deepsea-sidebar.svg')}
html[data-theme=aurora]{--module-panel:url('/themes/module-aurora-panel.svg');--module-stat:url('/themes/module-aurora-stat.svg');--module-side:url('/themes/module-aurora-sidebar.svg')}
html[data-theme=gala]{--module-panel:url('/themes/module-gala-panel.svg');--module-stat:url('/themes/module-gala-stat.svg');--module-side:url('/themes/module-gala-sidebar.svg')}
html[data-theme=cyber]{--module-panel:url('/themes/module-cyber-panel.svg');--module-stat:url('/themes/module-cyber-stat.svg');--module-side:url('/themes/module-cyber-sidebar.svg')}
html[data-theme=sakura]{--module-panel:url('/themes/module-sakura-panel.svg');--module-stat:url('/themes/module-sakura-stat.svg');--module-side:url('/themes/module-sakura-sidebar.svg')}
html[data-theme=paper]{--module-panel:url('/themes/module-paper-panel.svg');--module-stat:url('/themes/module-paper-stat.svg');--module-side:url('/themes/module-paper-sidebar.svg')}
html[data-theme=festival]{--module-panel:url('/themes/module-festival-panel.svg');--module-stat:url('/themes/module-festival-stat.svg');--module-side:url('/themes/module-festival-sidebar.svg')}
html[data-theme=caishen]{--module-panel:url('/themes/module-caishen-panel.svg');--module-stat:url('/themes/module-caishen-stat.svg');--module-side:url('/themes/module-caishen-sidebar.svg')}
html body{background:var(--bg);color:var(--ink)}html body:before{display:none!important}
html .sidebar,html[data-theme=festival] .sidebar{background-color:var(--theme-deep)!important;background-image:var(--module-side)!important;background-repeat:no-repeat!important;background-position:center 82%!important;background-size:100% auto!important;backdrop-filter:none}
html .panel,html .giveaway,html .metrics article,html dialog{backdrop-filter:none;background-color:var(--panel);background-image:var(--module-panel);background-size:190px 96px;background-position:right bottom;background-repeat:no-repeat;position:relative;isolation:isolate}
html[data-theme] :is(.panel,.giveaway,.metrics article,dialog,#login){background-image:var(--module-panel)!important;background-color:var(--panel)!important;background-repeat:no-repeat!important;background-size:190px 96px!important;background-position:right bottom!important}
html[data-theme] .metrics article{background-image:var(--module-stat)!important;background-size:130px 65px!important}.metrics article:after{display:none!important}.metrics small{color:var(--muted)}.metrics span{color:var(--ink)}
html .panel>.section-head{background:var(--panel);border-bottom:1px solid var(--line)}.stat-icon svg{width:34px;height:34px}.module-heading-icon{display:inline-flex;margin-right:12px;vertical-align:middle;color:var(--cyan)}.module-heading-icon svg{width:30px;height:30px}
.page-heading .hero-art-side{display:none!important}.page-heading:before{display:none!important}html .page-heading{background:var(--panel)!important;min-height:240px;padding:28px;gap:28px}.page-heading>div{max-width:54%;flex:1;z-index:2}.hero-scene{width:43%;max-height:230px;object-fit:contain;object-position:center;align-self:center;flex:none}.page-heading h1{font-size:clamp(29px,3vw,48px);text-shadow:none}.page-heading h1>span{display:none}.page-heading .eyebrow{color:var(--cyan)}
.hero-character{display:none}.stage-preview{background:var(--theme-deep);margin:16px 0}.editor-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch}.editor-grid>.panel{display:flex;flex-direction:column}.create-submit{margin-top:auto;justify-content:center;padding:16px;font-size:19px}.mode-grid button{display:flex;flex-direction:column;align-items:center;text-align:center;gap:5px}.mode-grid button>small{font-size:10px}.stage-design-tabs button{background:var(--panel)}.stage-design-tabs button:focus-visible{outline:2px solid var(--cyan)}.theme-card .theme-mini{object-fit:contain;aspect-ratio:16/9;width:100%;background:var(--theme-deep);height:auto}.theme-card{background:var(--panel)!important}.seasonal-style-options img{object-fit:contain;aspect-ratio:16/9;background:var(--theme-deep)}
html[data-theme=festival] .sidebar{background-color:#b41924!important;color:#fff0d3}html[data-theme=festival] .sidebar .nav-caption{display:none}html[data-theme=festival] .sidebar .nav{font-size:18px;margin:8px 0;padding:18px 14px;border-radius:14px}html[data-theme=festival] .sidebar-bottom{color:#fff0d3;background:#a61724;padding:12px;bottom:70px;border-radius:12px}html[data-theme=festival] .sidebar-bottom small{color:#ffdeb8}
html[data-theme=festival] .brand span{color:#fff3d8;font-size:21px;white-space:nowrap}html[data-theme=festival] .page-heading{min-height:250px;padding:20px 230px;background:radial-gradient(ellipse at center,#7b233b,#241c3b)!important;overflow:hidden;display:flex;align-items:center;justify-content:center}html[data-theme=festival] .page-heading>div{width:100%;max-width:100%;flex:1;text-align:center;margin:0}html[data-theme=festival] .page-heading h1{font-size:clamp(32px,3.5vw,58px);white-space:nowrap;text-shadow:0 2px 0 #ac1b27,0 0 12px #f17440}html[data-theme=festival] .hero-scene{display:none}html[data-theme=festival] .hero-character{display:block;position:absolute;bottom:0;height:92%;width:210px;object-fit:contain;object-position:center bottom;z-index:1}html[data-theme=festival] .hero-boy{left:12px}html[data-theme=festival] .hero-girl{right:12px}html[data-theme=festival] .page-heading .muted{white-space:nowrap;font-size:17px;padding:8px 25px}html[data-theme=festival] .metrics article{background-color:#fff0d6;background-image:var(--module-stat);border-radius:20px;box-shadow:inset 0 0 0 4px #fff9ef,0 4px 12px #c6a783}html[data-theme=festival] .panel,html[data-theme=festival] .giveaway{background-color:#fffaf1;background-image:var(--module-panel);border-radius:20px;border:1px solid #e7b88d;box-shadow:inset 0 0 0 3px #fffdf9,0 4px 16px #dabca0}html[data-theme=festival] .panel>.section-head{background:#fff6e9}html[data-theme=festival] .metrics .stat-icon{background:#ffe3b6;color:#bf1724}html[data-theme=festival] .panel .section-head h2{font-size:24px}.panel .section-head .eyebrow{display:none}
html[data-theme=caishen] .hero-scene{display:none}html[data-theme=caishen] .hero-character.hero-wealth{display:block;height:230px;max-width:40%;object-fit:contain;flex:none}html[data-theme=caishen] .page-heading>div{max-width:60%;margin:0;text-align:left}
html[data-theme=festival] .hero-character.hero-wealth{display:none!important}html[data-theme=festival] :is(h2,h3){font-family:"Microsoft YaHei",sans-serif;font-weight:700}html[data-theme=festival] .metrics article{background-color:#fff0d6!important}html[data-theme=festival] #openApi{background:transparent;color:#fff0d0!important;border-color:transparent}html[data-theme=festival] .actions .draw-action{background:#c31c28;color:#fff2d5;border-color:#e5b46d}.mode-grid button small{display:none}.mode-grid button{font-size:14px;min-height:72px}.right-column{display:block}.roster-help{margin:22px 0;padding:18px 22px;border:1px solid var(--line);border-radius:16px;background:var(--panel)}.roster-help summary{font-size:14px}.roster-help .info-panel{margin-top:16px;background:none!important;border:0;box-shadow:none!important;padding:0}.roster-help .info-panel h3{display:none}.editor-grid .visual-settings{height:100%}.retention-note{font-size:11px;line-height:1.6}
@media(min-width:1250px){html[data-theme=festival] .workspace{padding-left:20px;padding-right:20px}.editor-grid{gap:20px}}
@media(max-width:1100px){.editor-grid{grid-template-columns:minmax(0,1fr)}html[data-theme=festival] .page-heading{padding-left:145px;padding-right:145px}html[data-theme=festival] .hero-character{width:145px;height:85%}html[data-theme=festival] .page-heading h1{font-size:36px}}
@media(max-width:700px){html .page-heading{min-height:190px;padding:18px;gap:10px}.page-heading>div{max-width:68%}.hero-scene{width:30%;max-height:150px}.page-heading h1{font-size:27px!important}html[data-theme=festival] .brand{position:static}html[data-theme=festival] .brand span{font-size:20px}html[data-theme=festival] .page-heading{min-height:210px;padding:20px 30px 100px}html[data-theme=festival] .page-heading h1{font-size:31px!important}html[data-theme=festival] .page-heading>div{max-width:100%;width:100%}html[data-theme=festival] .hero-character{height:105px;width:100px}html[data-theme=festival] .hero-boy{left:10px}html[data-theme=festival] .hero-girl{right:10px}html[data-theme=festival] .page-heading .muted{font-size:13px;padding:6px 18px}html[data-theme=festival] .sidebar{background-image:none!important}html[data-theme=festival] .sidebar .nav{width:auto;font-size:13px;padding:10px}.metrics article{grid-template-columns:36px 1fr;column-gap:8px;padding:14px 10px!important;min-height:90px!important}.metrics article>.stat-icon{width:35px;height:35px}.stat-icon svg{width:23px;height:23px}.metrics article>span:not(.stat-icon){font-size:12px!important}.metrics b,html[data-theme=festival] .metrics b{font-size:25px}.metrics article{background-size:85px 43px!important}.mode-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.stage-design-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.create-submit{margin-top:20px}.theme-card{padding:8px}.theme-card strong{font-size:16px}.theme-card small{font-size:11px}}

html[data-theme] :is(.metrics article,#metricCardTotal){background-image:var(--module-stat)!important;background-size:130px 65px!important}

.theme-illustration{position:relative;display:block}.theme-figure{position:absolute;left:12%;top:3%;width:40%;height:94%;object-fit:contain}

.newyear-greeting{display:flex;justify-content:center;gap:28px;height:150px}.newyear-greeting img{height:100%;width:115px;object-fit:contain;animation:greeting-bow 2.4s ease-in-out infinite;transform-origin:bottom center}.newyear-greeting img+img{animation-delay:.3s}.spring-unlock .gift-wallet{background:#cc202b!important;border:2px solid #e6af59}.spring-unlock [data-paid]:disabled{cursor:not-allowed}.account-page .brand,html[data-theme=festival] .account-page .brand{position:static!important;width:auto;display:inline-flex!important;min-height:0;padding:12px 0}.account-page .brand span,html[data-theme=festival] .account-page .brand span{color:var(--ink)!important}.account-page .account-toolbar{border-bottom:1px solid var(--line);padding-bottom:18px}.phone>.panel,.phone>header{background-image:var(--module-panel)!important;background-size:150px 75px;background-position:right bottom;background-repeat:no-repeat}@keyframes greeting-bow{0%,100%{transform:rotate(0) translateY(0)}45%{transform:rotate(5deg) translateY(5px)}}@media(prefers-reduced-motion:reduce){.newyear-greeting img{animation:none}}

html[data-theme=festival] .page-heading{background-color:#211b4b!important;background-image:url("/themes/module-festival-header.png")!important;background-size:cover!important;background-position:center!important}

.stage-preview{min-width:0!important;min-height:0!important;width:100%;max-width:100%}.stage-preview canvas{min-width:0;max-width:100%}
@media(max-width:700px){html[data-theme] .sidebar .nav{display:block;width:auto;font-size:12px;padding:9px 10px;margin:0}.metrics article{grid-template-columns:minmax(0,1fr)!important;grid-template-rows:35px auto auto!important;text-align:center;row-gap:4px;padding-bottom:18px!important;min-height:133px!important}.metrics article>.stat-icon{grid-column:1!important;grid-row:1!important;justify-self:center}.metrics article>span:not(.stat-icon){grid-column:1!important;grid-row:2!important;font-size:11px!important;white-space:nowrap}.metrics article>b{grid-column:1!important;grid-row:3!important;margin:2px 0 4px!important}.metrics article>small{display:none}html[data-theme] :is(.metrics article,#metricCardTotal){background-image:var(--module-panel)!important;background-size:76px 38px!important}.page-heading>div{max-width:100%}.hero-scene{width:100%;max-height:170px}.page-heading{align-items:stretch}.stage-preview{aspect-ratio:16/9}.seasonal-style-options{flex-direction:column}html[data-theme=festival] .page-heading{align-items:center}}

/* Whole-banner compositions: no thumbnail or cropped scene art. */
html:not([data-theme=festival]) .page-heading{position:relative;overflow:hidden;min-height:250px;background:linear-gradient(115deg,var(--theme-deep),var(--panel))!important}
html:not([data-theme=festival]) .page-heading .hero-scene{display:none!important}
html:not([data-theme=festival]) .page-heading>div{max-width:70%;position:relative;z-index:2}
html:not([data-theme=festival]) .page-heading:after{content:'';position:absolute;right:4%;top:12%;width:40%;height:76%;pointer-events:none;border-radius:50%;border:1px solid var(--line);box-shadow:0 0 0 22px var(--theme-glow),0 0 0 45px var(--theme-glow);transform:rotate(-18deg)}
html[data-theme=deepsea] .page-heading{background:radial-gradient(ellipse at 85% 95%,#147b9d,transparent 48%),linear-gradient(110deg,#041926,#063248)!important}
html[data-theme=deepsea] .page-heading:after{border:2px dashed #5bd9eb;border-radius:50%;transform:rotate(-25deg) scaleY(.65)}
html[data-theme=aurora] .page-heading{background:radial-gradient(ellipse at 78% 0%,#218d70,transparent 55%),linear-gradient(120deg,#071e23,#113c36)!important}
html[data-theme=aurora] .page-heading:after{border:0;border-radius:65% 10% 75% 10%;background:linear-gradient(135deg,transparent,#86f8ba55,transparent);box-shadow:35px 15px 0 #52dbb022,-25px -20px 0 #8be1f222;transform:rotate(-22deg)}
html[data-theme=gala] .page-heading:after{border:2px solid #e9c268;border-radius:48% 48% 5% 5%;background:repeating-linear-gradient(105deg,transparent 0 55px,#e6b45318 56px 58px);box-shadow:inset 0 0 45px #b7821722,0 12px 0 -8px #dfb75c;transform:perspective(500px) rotateY(-20deg)}
html[data-theme=cyber] .page-heading:after{border-radius:0;border:1px solid #d66aff;background:repeating-linear-gradient(0deg,transparent 0 28px,#b85bff33 29px 30px),repeating-linear-gradient(90deg,transparent 0 28px,#50d8ff33 29px 30px);transform:perspective(220px) rotateX(40deg) rotateZ(-10deg);box-shadow:0 0 35px #bd48ff55}
html[data-theme=sakura] .page-heading:after{border:0;background:radial-gradient(ellipse at 25% 35%,#ee8ab666 0 11%,transparent 12%),radial-gradient(ellipse at 55% 60%,#f5aecb88 0 12%,transparent 13%),radial-gradient(ellipse at 80% 25%,#ef93ba77 0 15%,transparent 16%);box-shadow:none;transform:rotate(-15deg)}
html[data-theme=paper] .page-heading:after{border:0;border-radius:0;background:linear-gradient(145deg,transparent 40%,#334d4333 41% 48%,transparent 49%),linear-gradient(35deg,transparent 40%,#334d431c 41% 56%,transparent 57%);box-shadow:none;transform:none}
html[data-theme=caishen] .page-heading:after{border:2px solid #eac275;border-radius:50% 50% 25% 25%;background:radial-gradient(ellipse at center,#efb94144,transparent 65%);box-shadow:0 0 0 18px #e3aa2422;right:10%}
.mode-grid button svg{width:30px!important;height:30px!important;flex:none}.mode-grid button{min-height:80px;max-height:100px}.mode-grid button span{font-size:15px}
@media(max-width:700px){html:not([data-theme=festival]) .page-heading>div{max-width:100%}html:not([data-theme=festival]) .page-heading:after{opacity:.35;width:70%;right:-25%}.mode-grid button svg{width:26px!important;height:26px!important}}
