:root{--theme-accent:#ffb64a;--theme-accent-soft:rgba(255,182,74,.16);--theme-card:#2b2520;--theme-card-2:#201a16;--theme-line:#6e5f4a;--theme-ink:#f2e8d8;--theme-muted:#b3a68e;--theme-shadow:rgba(0,0,0,.45)}
body.theme-aurora{--bg:#071a2b;--bg2:#171147;--surface:rgba(11,40,63,.88);--surface2:rgba(20,58,86,.94);--border:rgba(110,242,222,.28);--border-hover:rgba(110,242,222,.72);--text:#effaff;--muted:#a9d3df;--muted2:#78a6b5;--theme-accent:#76f3dc;--theme-accent-soft:rgba(118,243,220,.16);--theme-card:#102e49;--theme-card-2:#09243a;--theme-line:#3b8396;--theme-ink:#effaff;--theme-muted:#a9d3df;--theme-shadow:rgba(1,9,27,.6);background:radial-gradient(circle at 50% 5%,#1e9b9c55,transparent 28%),linear-gradient(125deg,#071a2b,#1b0e42)!important}
body.theme-oasis{--bg:#123e49;--bg2:#9e5d37;--surface:rgba(15,65,73,.9);--surface2:rgba(28,90,94,.96);--border:rgba(255,207,91,.3);--border-hover:rgba(255,207,91,.75);--text:#fff6dc;--muted:#cae3d0;--muted2:#9bc1af;--theme-accent:#ffcf5b;--theme-accent-soft:rgba(255,207,91,.17);--theme-card:#195b61;--theme-card-2:#104750;--theme-line:#5ba49e;--theme-ink:#fff6dc;--theme-muted:#cae3d0;--theme-shadow:rgba(18,51,52,.52);background:radial-gradient(circle at 68% 8%,#ffd5754d,transparent 26%),linear-gradient(125deg,#103a48,#c46e37)!important}
body.theme-paper{color-scheme:light;--bg:#eee6d7;--bg2:#c8d9e7;--surface:rgba(255,253,246,.94);--surface2:rgba(234,242,243,.97);--border:rgba(53,78,93,.22);--border-hover:rgba(232,100,83,.75);--text:#263842;--muted:#60767d;--muted2:#84969b;--theme-accent:#e96c5c;--theme-accent-soft:rgba(233,108,92,.13);--theme-card:#fffdf6;--theme-card-2:#ede6d8;--theme-line:#c0a89a;--theme-ink:#263842;--theme-muted:#60767d;--theme-shadow:rgba(64,91,102,.19);background:radial-gradient(circle at 48% 8%,#fff4c380,transparent 26%),linear-gradient(125deg,#eee6d7,#c8d9e7)!important}

body[class*="theme-"] #siteNav{background:color-mix(in srgb,var(--bg) 88%,transparent)!important;border-bottom-color:var(--border)!important}body[class*="theme-"] .nav-logo{background:none!important;color:var(--theme-accent)!important;-webkit-text-fill-color:var(--theme-accent)!important;filter:none!important}body[class*="theme-"] .nav-logo img,body[class*="theme-"] .footer-logo img{filter:hue-rotate(145deg) saturate(1.25)!important}body.theme-oasis .nav-logo img,body.theme-oasis .footer-logo img{filter:hue-rotate(338deg) saturate(1.45) brightness(1.32)!important}body.theme-paper .nav-logo img,body.theme-paper .footer-logo img{filter:hue-rotate(318deg) saturate(1.85) brightness(.84)!important}body[class*="theme-"] .footer-logo{background:none!important;color:var(--theme-accent)!important;-webkit-text-fill-color:var(--theme-accent)!important}body[class*="theme-"] .nav-links a{background:var(--theme-card)!important;border-color:color-mix(in srgb,var(--theme-accent) 55%,transparent)!important;color:var(--theme-ink)!important}body[class*="theme-"] .nav-links a:hover,body[class*="theme-"] .nav-links a[aria-current="page"]{background:var(--theme-accent-soft)!important;border-color:var(--theme-accent)!important;color:var(--theme-accent)!important;box-shadow:0 0 12px var(--theme-accent-soft)!important}body[class*="theme-"] .nav-links a::after{background:var(--theme-accent)!important}body[class*="theme-"] .btn-primary{background:linear-gradient(135deg,var(--theme-accent),color-mix(in srgb,var(--theme-accent) 65%,#17404a))!important;color:var(--bg)!important;box-shadow:0 10px 24px var(--theme-accent-soft)!important}body.theme-paper .btn-primary{color:#fff!important}body[class*="theme-"] .btn-ghost,body[class*="theme-"] .feature-card,body[class*="theme-"] .rule-card,body[class*="theme-"] .profile-card,body[class*="theme-"] .leaderboard-card{background:var(--theme-card)!important;border-color:var(--border)!important;color:var(--text)!important;box-shadow:0 10px 28px var(--theme-shadow)!important}body[class*="theme-"] .section-label,body[class*="theme-"] .feature-icon,body[class*="theme-"] .rule-card .rc-icon,body[class*="theme-"] .back-link,body[class*="theme-"] .footer-col a:hover{color:var(--theme-accent)!important}body[class*="theme-"] footer{border-color:var(--border)!important;background:color-mix(in srgb,var(--bg) 86%,transparent)!important}body[class*="theme-"] .hero-bg .grid-bg{background-image:linear-gradient(color-mix(in srgb,var(--theme-accent) 15%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--theme-accent) 15%,transparent) 1px,transparent 1px)!important}
body[class*="theme-"] .records-page{color:var(--text)!important}body[class*="theme-"] .records-hero p,body[class*="theme-"] .profile-label,body[class*="theme-"] .board-head p,body[class*="theme-"] td small,body[class*="theme-"] .stats{color:var(--muted)!important}body[class*="theme-"] .profile-row input,body[class*="theme-"] th{background:var(--theme-card-2)!important;color:var(--text)!important;border-color:var(--border)!important}body[class*="theme-"] .profile-row button,body[class*="theme-"] td em{background:var(--theme-accent)!important;color:var(--bg)!important}body[class*="theme-"] .score-cell{color:var(--theme-accent)!important}body[class*="theme-"] #empty-state a{background:var(--theme-accent)!important;color:var(--bg)!important}body.theme-paper #empty-state a{color:#fff!important}body[class*="theme-"] .option-tags span{background:var(--theme-accent-soft)!important;border-color:var(--border)!important;color:var(--theme-ink)!important}

body[class*="theme-"] .game-app,body[class*="theme-"] #game{background:radial-gradient(circle at 50% 0,var(--theme-accent-soft),transparent 38%),linear-gradient(125deg,var(--bg),var(--bg2))!important}body[class*="theme-"] #panel{background:linear-gradient(180deg,var(--theme-card),var(--theme-card-2))!important;border-color:var(--border)!important;box-shadow:inset 0 0 18px var(--theme-shadow)!important;color:var(--theme-ink)!important}body[class*="theme-"] .sound-toggle-btn{background:var(--theme-card)!important;border-color:var(--border)!important;color:var(--theme-accent)!important}body[class*="theme-"] .sound-toggle-btn:hover{background:var(--theme-accent-soft)!important;border-color:var(--theme-accent)!important}body[class*="theme-"] #record,body[class*="theme-"] #score,body[class*="theme-"] .sc-label,body[class*="theme-"] #recordVal,body[class*="theme-"] #scoreVal,body[class*="theme-"] .counter-icon,body[class*="theme-"] .mi,body[class*="theme-"] .hint,body[class*="theme-"] .bonus-progress>div:first-child{color:var(--theme-accent)!important}body[class*="theme-"] #counters>div:first-child,body[class*="theme-"] #next-section .hint{color:var(--theme-accent)!important}body[class*="theme-"] .counter,body[class*="theme-"] .counter *,body[class*="theme-"] .bonus-info,body[class*="theme-"] .bonus-info b,body[class*="theme-"] #message{color:var(--theme-ink)!important}body[class*="theme-"] #counters,body[class*="theme-"] #next-section,body[class*="theme-"] .bonus-progress,body[class*="theme-"] #message{background:color-mix(in srgb,var(--theme-card-2) 82%,transparent)!important;border:1px solid color-mix(in srgb,var(--border) 75%,transparent)!important;box-shadow:none!important}body[class*="theme-"] .progress-trough{background:var(--theme-card-2)!important;border-color:var(--theme-line)!important;box-shadow:none!important}body[class*="theme-"] #rainbowBar{filter:hue-rotate(10deg)}body[class*="theme-"] #bombBar,body[class*="theme-"] #lightningBar{background:linear-gradient(90deg,color-mix(in srgb,var(--theme-accent) 55%,#754040),var(--theme-accent))!important;box-shadow:0 0 7px var(--theme-accent-soft)!important}body[class*="theme-"] #newGame,body[class*="theme-"] .game-app .primary-btn{background:linear-gradient(135deg,var(--theme-accent),color-mix(in srgb,var(--theme-accent) 72%,#183f49))!important;border-color:var(--theme-accent)!important;color:var(--bg)!important}body.theme-paper #newGame{color:#fff!important}

body[class*="theme-"] .character-column{background-image:repeating-linear-gradient(0deg,transparent 0 18px,color-mix(in srgb,var(--theme-accent) 23%,transparent) 19px 21px),linear-gradient(90deg,color-mix(in srgb,var(--theme-accent) 18%,#0c1e2b),var(--theme-card-2) 47%,color-mix(in srgb,var(--theme-accent) 12%,#0c1e2b))!important;background-size:100% auto!important;border-left:1px solid color-mix(in srgb,var(--theme-accent) 55%,transparent)!important;border-right:1px solid color-mix(in srgb,var(--theme-accent) 36%,transparent)!important;filter:drop-shadow(0 8px 10px var(--theme-shadow))!important}body[class*="theme-"] .character-column:before{background-image:linear-gradient(155deg,color-mix(in srgb,var(--theme-accent) 40%,#335565),var(--theme-card-2) 52%,color-mix(in srgb,var(--theme-accent) 24%,#132b37))!important;border:1px solid color-mix(in srgb,var(--theme-accent) 58%,transparent)!important;border-radius:4px!important}body[class*="theme-"] .character-pedestal{background-image:linear-gradient(180deg,color-mix(in srgb,var(--theme-accent) 35%,#34515b),var(--theme-card-2) 24% 72%,color-mix(in srgb,var(--theme-accent) 28%,#17313d))!important;border:1px solid color-mix(in srgb,var(--theme-accent) 56%,transparent)!important;border-radius:5px!important;filter:drop-shadow(0 6px 8px var(--theme-shadow))!important}body.theme-paper .character-column{background-image:repeating-linear-gradient(0deg,transparent 0 18px,#d6827728 19px 21px),linear-gradient(90deg,#d8e5e3,#b9d0d2 47%,#eaf2ed)!important}body.theme-paper .character-column:before{background-image:linear-gradient(155deg,#fefaf0,#bdd4d5 52%,#dcecea)!important}body.theme-paper .character-pedestal{background-image:linear-gradient(180deg,#f9f4e8,#c7dcdc 25% 72%,#e9f1ed)!important}
body[class*="theme-"] .character-speech{background:var(--theme-card)!important;color:var(--theme-ink)!important;border-color:var(--theme-accent)!important;box-shadow:0 4px 14px var(--theme-shadow)!important}body[class*="theme-"] .character-speech:after{background:var(--theme-card)!important;border-right-color:var(--theme-accent)!important;border-bottom-color:var(--theme-accent)!important}

#settings-content{max-width:1120px!important}#settings-scroll{padding:22px 24px!important}.settings-layout{grid-template-columns:minmax(0,1.25fr) minmax(330px,.9fr)!important;gap:16px!important;align-items:start!important}.settings-layout .settings-group{background:var(--theme-card-2)!important;border-color:var(--border)!important;color:var(--theme-ink)!important}.settings-layout .settings-group h3,#settings-header h2{color:var(--theme-accent)!important}.settings-layout .setting-item{background:color-mix(in srgb,var(--theme-card) 76%,transparent)!important;border:1px solid color-mix(in srgb,var(--border) 80%,transparent)!important;color:var(--theme-ink)!important}.settings-layout .setting-item small,.settings-intro,.bonus-choice small,.difficulty-levels small{color:var(--theme-muted)!important}.setting-label,.bonus-choice strong{color:var(--theme-ink)!important}.settings-select,.dd-btn{background:var(--theme-card)!important;color:var(--theme-ink)!important;border-color:var(--theme-accent)!important}.dd-btn::after{color:var(--theme-accent)!important}.dd-list{background:var(--theme-card)!important;border-color:var(--theme-accent)!important;box-shadow:0 10px 26px var(--theme-shadow)!important}.dd-list li{color:var(--theme-ink)!important}.dd-list li:hover,.dd-list li:focus,.dd-list li.dd-checked{background:var(--theme-accent-soft)!important;color:var(--theme-accent)!important}.toggle-btn{background:var(--theme-card)!important;box-shadow:inset 0 0 0 1px var(--theme-line)!important}.toggle-btn::after{background:var(--theme-muted)!important}.toggle-btn.active{background:linear-gradient(135deg,var(--theme-accent),color-mix(in srgb,var(--theme-accent) 55%,#355e63))!important;box-shadow:inset 0 0 0 1px var(--theme-accent)!important}.toggle-btn.active::after{background:#fff!important}.bonus-choice{min-height:112px!important;background:color-mix(in srgb,var(--theme-card) 76%,transparent)!important;border-color:var(--border)!important}.bonus-choice:hover{border-color:var(--theme-accent)!important;background:var(--theme-accent-soft)!important}.settings-layout .settings-group:nth-child(3){padding:12px 16px!important}.settings-layout .settings-group:nth-child(3) .settings-intro{margin:0 0 8px!important}.theme-picker{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important;margin-top:0!important}.theme-option{min-height:58px!important;padding:8px!important;background:var(--theme-card)!important;border-color:var(--border)!important;color:var(--theme-ink)!important}.theme-option small{color:var(--theme-muted)!important}.theme-option.active{border-color:var(--theme-accent)!important;box-shadow:0 0 0 1px var(--theme-accent),0 4px 12px var(--theme-accent-soft)!important}.settings-layout .settings-group:nth-child(4){grid-column:2!important;grid-row:2!important}.settings-layout .settings-group:nth-child(3){grid-column:1!important;grid-row:2!important}.balance-summary,.difficulty-levels li{background:var(--theme-accent-soft)!important;border-color:var(--border)!important;color:var(--theme-ink)!important}.balance-summary strong,.difficulty-levels li b{color:var(--theme-accent)!important}.settings-action-btn{background:var(--theme-card)!important;border-color:var(--theme-accent)!important;color:var(--theme-ink)!important}.settings-action-btn.primary-btn{background:linear-gradient(135deg,var(--theme-accent),color-mix(in srgb,var(--theme-accent) 62%,#315b64))!important;color:var(--bg)!important}body.theme-paper .settings-action-btn.primary-btn{color:#fff!important}
@media(max-width:900px){.settings-layout{grid-template-columns:1fr!important}.settings-layout .settings-group:nth-child(3),.settings-layout .settings-group:nth-child(4){grid-column:auto!important;grid-row:auto!important}.theme-picker{grid-template-columns:repeat(2,1fr)!important}}

body.theme-aurora #siteNav .nav-links a,body.theme-aurora .sound-toggle-btn{border-color:#76f3dc!important;color:#76f3dc!important;background:#0d334b!important}body.theme-oasis #siteNav .nav-links a,body.theme-oasis .sound-toggle-btn{border-color:#ffcf5b!important;color:#ffcf5b!important;background:#15555a!important}body.theme-paper #siteNav .nav-links a,body.theme-paper .sound-toggle-btn{border-color:#8da9ae!important;color:#e96c5c!important;background:#fffdf6!important}body.theme-aurora #siteNav .nav-links a:hover,body.theme-oasis #siteNav .nav-links a:hover,body.theme-paper #siteNav .nav-links a:hover{background:var(--theme-accent-soft)!important;color:var(--theme-accent)!important}
body.theme-aurora .settings-select,body.theme-aurora .dd-list{background:#0d2c45!important}body.theme-oasis .settings-select,body.theme-oasis .dd-list{background:#164f55!important}body.theme-paper .settings-select,body.theme-paper .dd-list{background:#fffdf6!important}

body.theme-aurora #settings-modal{background:rgba(1,12,27,.56)!important}body.theme-aurora #settings-content{background:linear-gradient(180deg,#102e49,#092039)!important;border-color:#76f3dc88!important;color:#effaff!important}body.theme-oasis #settings-modal{background:rgba(8,40,42,.52)!important}body.theme-oasis #settings-content{background:linear-gradient(180deg,#1c6065,#10434d)!important;border-color:#ffcf5b88!important;color:#fff6dc!important}body.theme-paper #settings-modal{background:rgba(96,78,62,.24)!important}body.theme-paper #settings-content{background:linear-gradient(180deg,#fffdf6,#f3e9d7)!important;border-color:#c9ab94!important;color:#263842!important}body[class*="theme-"] #settings-header{border-color:color-mix(in srgb,var(--theme-accent) 45%,transparent)!important}body[class*="theme-"] #settings-scroll{scrollbar-color:var(--theme-accent) transparent!important}body[class*="theme-"] #settings-scroll::-webkit-scrollbar-thumb{background:var(--theme-accent)!important}.theme-option{display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;gap:4px!important;min-width:0!important;white-space:normal!important}.theme-option b,.theme-option small{width:100%!important;overflow-wrap:anywhere!important;line-height:1.16!important}.theme-option small{margin:0!important}.theme-option[data-theme="castle"]{background:var(--theme-card)!important}.theme-option[data-theme="aurora"]{background:linear-gradient(135deg,#123f58,#1c1550)!important}.theme-option[data-theme="oasis"]{background:linear-gradient(135deg,#14575a,#9a6138)!important}.theme-option[data-theme="paper"]{background:linear-gradient(135deg,#fffdf6,#f0e4cf)!important;color:#263842!important}.theme-option[data-theme="paper"] small{color:#60767d!important}

body[class*="theme-"] #record,body[class*="theme-"] #score{background:var(--theme-card-2)!important;border:1px solid var(--theme-accent)!important;color:var(--theme-ink)!important;box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--theme-accent) 12%,transparent)!important}body[class*="theme-"] #record .pi,body[class*="theme-"] #score .pi,body[class*="theme-"] #record .sc-label,body[class*="theme-"] #score .sc-label{color:var(--theme-accent)!important}body[class*="theme-"] #recordVal,body[class*="theme-"] #scoreVal{color:var(--theme-accent)!important}body[class*="theme-"] .game-app #panel-collapse{background:var(--theme-card)!important;border-left:1px solid var(--theme-accent)!important;color:var(--theme-accent)!important;box-shadow:none!important}body[class*="theme-"] .game-app #panel-collapse:hover{background:var(--theme-accent-soft)!important;color:var(--theme-ink)!important}
body[class*="theme-"] html{scrollbar-color:var(--theme-accent) var(--theme-card-2)!important}body[class*="theme-"] ::-webkit-scrollbar-track{background:var(--theme-card-2)!important}body[class*="theme-"] ::-webkit-scrollbar-thumb{background:var(--theme-accent)!important;border-color:var(--theme-card-2)!important}body[class*="theme-"] ::-webkit-scrollbar-thumb:hover{background:var(--theme-ink)!important}body[class*="theme-"] ::-webkit-scrollbar-corner{background:var(--theme-card-2)!important}
body[class*="theme-"] .bonus-limit-note{color:var(--theme-accent)!important;background:var(--theme-accent-soft)!important;border-left:3px solid var(--theme-accent)!important;padding:7px 9px!important;border-radius:4px!important;margin:8px 0 10px!important}body[class*="theme-"] .balance-summary{background:var(--theme-accent-soft)!important;border-color:var(--theme-accent)!important}body[class*="theme-"] .balance-summary strong,body[class*="theme-"] .balance-summary span,body[class*="theme-"] .balance-summary small{color:var(--theme-ink)!important}body[class*="theme-"] .balance-summary strong{color:var(--theme-accent)!important}body[class*="theme-"] .bci-head h4,body[class*="theme-"] .bci-head .bci-size,body[class*="theme-"] .bci-table th,body[class*="theme-"] .bci-table td,body[class*="theme-"] .bci-note,body[class*="theme-"] .bci-details summary{color:var(--theme-ink)!important}body[class*="theme-"] .bci-scroll,body[class*="theme-"] .bci-table th,body[class*="theme-"] .bci-table td{border-color:var(--border)!important}body[class*="theme-"] .bci-chips span{background:var(--theme-accent-soft)!important;border-color:var(--theme-accent)!important;color:var(--theme-ink)!important}body[class*="theme-"] .secondary-btn{background:var(--theme-card)!important;border-color:var(--theme-accent)!important;color:var(--theme-ink)!important}

.theme-picker{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-auto-rows:66px!important;width:100%!important;gap:9px!important}.theme-option{width:100%!important;height:66px!important;min-height:66px!important;margin:0!important;display:flex!important;justify-content:center!important;align-items:flex-start!important}.theme-option b{font-size:13px!important;white-space:nowrap!important}.theme-option small{font-size:10.5px!important}.settings-layout .settings-group:nth-child(3){align-self:start!important}

body.theme-aurora .character-column{background-image:radial-gradient(circle at 22% 10%,#d7ffff70 0 1px,transparent 2px),radial-gradient(circle at 75% 24%,#8dfcff55 0 1px,transparent 2px),repeating-linear-gradient(135deg,#082c43 0 8px,#0d5368 9px 13px,#173e69 14px 20px)!important;background-size:32px 42px,46px 60px,100% 100%!important}body.theme-aurora .character-column:before{background-image:linear-gradient(135deg,#78f6e2 0 8%,#125469 9% 47%,#13275b 48% 100%)!important}body.theme-aurora .character-pedestal{background-image:repeating-linear-gradient(90deg,#08243a 0 12px,#1b6980 13px 16px,#0a344e 17px 28px)!important}
body.theme-oasis .character-column{background-image:repeating-linear-gradient(0deg,transparent 0 17px,#f7cf713b 18px 20px),repeating-linear-gradient(90deg,#16515a 0 23px,#286d68 24px 26px,#164c57 27px 48px)!important;background-size:100% 100%,100% 100%!important}body.theme-oasis .character-column:before{background-image:linear-gradient(165deg,#ffda70 0 9%,#2a7770 10% 56%,#175059 57% 100%)!important}body.theme-oasis .character-pedestal{background-image:linear-gradient(180deg,#ffd671 0 10%,#1f6665 11% 33%,#0f434e 34% 70%,#c98642 71% 100%)!important}
body.theme-paper .character-column{background-image:repeating-linear-gradient(0deg,transparent 0 18px,#e36d5d3b 19px 20px),repeating-linear-gradient(90deg,#eaf4f1 0 19px,#d1e2e1 20px 21px,#f8f3e7 22px 40px)!important;background-size:100% 100%,100% 100%!important}body.theme-paper .character-column:before{background-image:linear-gradient(160deg,#fff9eb 0 25%,#c6dedc 26% 74%,#f6e3d8 75% 100%)!important}body.theme-paper .character-pedestal{background-image:repeating-linear-gradient(90deg,#f8f3e7 0 12px,#c6dcda 13px 15px,#f4dfd6 16px 25px)!important}

body[class*="theme-"] .dd-list li.dd-checked::after{color:var(--theme-accent)!important}body[class*="theme-"] .dd-list li.dd-checked{color:var(--theme-accent)!important}body[class*="theme-"] .balance-icon{display:inline-block;color:var(--theme-accent)!important;font-weight:900!important;filter:drop-shadow(0 0 4px var(--theme-accent-soft))}body[class*="theme-"] .difficulty-levels,body[class*="theme-"] .difficulty-levels small,body[class*="theme-"] .difficulty-levels li{color:var(--theme-ink)!important}body[class*="theme-"] .difficulty-levels li{border-color:var(--theme-line)!important;background:color-mix(in srgb,var(--theme-card) 82%,transparent)!important}body[class*="theme-"] .difficulty-levels li b{color:var(--theme-accent)!important}body[class*="theme-"] .difficulty-levels li span{color:var(--theme-muted)!important}body[class*="theme-"] .theme-option[data-theme="castle"]{background:linear-gradient(135deg,#4a3420,#231a13)!important;border-color:#c88935!important;color:#ffe6b0!important;box-shadow:none!important}body[class*="theme-"] .theme-option[data-theme="castle"] small{color:#d3b07b!important}body[class*="theme-"] .theme-option[data-theme="castle"].active{border-color:#ffcf73!important;box-shadow:0 0 0 1px #ffcf73,0 4px 12px rgba(255,182,74,.28)!important}

body.theme-aurora .character-column{width:92px!important;clip-path:polygon(50% 0,91% 10%,81% 100%,19% 100%,9% 10%)!important;border-radius:0!important}body.theme-aurora .character-column:before{width:112px!important;height:42px!important;top:-18px!important;clip-path:polygon(50% 0,100% 52%,78% 100%,22% 100%,0 52%)!important;border-radius:0!important}body.theme-aurora .character-pedestal{width:142px!important;height:28px!important;bottom:-1px!important;border-radius:6px 6px 18px 18px!important;clip-path:polygon(6% 0,94% 0,100% 45%,92% 100%,8% 100%,0 45%)!important}
body.theme-oasis .character-column{width:76px!important;border-radius:34px 34px 6px 6px!important;clip-path:none!important;background-size:100% 100%!important}body.theme-oasis .character-column:before{width:110px!important;height:52px!important;top:-26px!important;border-radius:56px 56px 10px 10px!important;clip-path:none!important}body.theme-oasis .character-pedestal{width:150px!important;height:34px!important;bottom:-2px!important;border-radius:50% 50% 10px 10px!important;clip-path:none!important}
body.theme-paper .character-column{width:86px!important;border-radius:2px!important;clip-path:polygon(12% 0,100% 0,88% 100%,0 100%)!important;transform:translateX(-50%) rotate(-1deg)!important}body.theme-paper .character-column:before{width:104px!important;height:34px!important;top:-10px!important;border-radius:3px!important;clip-path:polygon(0 0,100% 5%,92% 100%,8% 94%)!important}body.theme-paper .character-pedestal{width:136px!important;height:40px!important;bottom:-3px!important;border-radius:2px!important;clip-path:polygon(4% 0,100% 8%,94% 100%,0 92%)!important}

body[class*="theme-"] #difficulty-indicator.level-1,body[class*="theme-"] #difficulty-indicator.level-2,body[class*="theme-"] #difficulty-indicator.level-3,body[class*="theme-"] #difficulty-indicator.level-4,body[class*="theme-"] #difficulty-indicator.level-5{background:linear-gradient(90deg,var(--theme-accent-soft),color-mix(in srgb,var(--theme-card) 92%,transparent) 68%)!important;border-color:var(--theme-accent)!important;color:var(--theme-ink)!important;clip-path:polygon(0 0,100% 0,94% 50%,100% 100%,0 100%)}body[class*="theme-"] #difficulty-indicator .di-stripe{background:var(--theme-accent)!important}body[class*="theme-"] #difficulty-indicator .di-chevs,body[class*="theme-"] #difficulty-indicator .pi{color:var(--theme-accent)!important}body[class*="theme-"] #difficulty-indicator.level-2{background:linear-gradient(90deg,color-mix(in srgb,var(--theme-accent) 23%,transparent),var(--theme-card) 68%)!important}body[class*="theme-"] #difficulty-indicator.level-3{background:linear-gradient(90deg,color-mix(in srgb,var(--theme-accent) 31%,transparent),var(--theme-card) 68%)!important}body[class*="theme-"] #difficulty-indicator.level-4{background:linear-gradient(90deg,color-mix(in srgb,var(--theme-accent) 39%,transparent),var(--theme-card) 68%)!important}body[class*="theme-"] #difficulty-indicator.level-5{background:linear-gradient(90deg,color-mix(in srgb,var(--theme-accent) 47%,transparent),var(--theme-card) 68%)!important}

body.theme-aurora .character-column,body.theme-oasis .character-column,body.theme-paper .character-column{width:80px!important;clip-path:none!important;border-radius:0!important;transform:translateX(-50%)!important;background-size:100% auto!important;background-position:center bottom!important;background-repeat:repeat-y!important}body.theme-aurora .character-column:before,body.theme-oasis .character-column:before,body.theme-paper .character-column:before{width:94px!important;height:28px!important;top:-6px!important;clip-path:none!important;border-radius:0!important}body.theme-aurora .character-pedestal,body.theme-oasis .character-pedestal,body.theme-paper .character-pedestal{width:120px!important;height:36px!important;bottom:-4px!important;clip-path:none!important;border-radius:0!important}

body.theme-aurora .character-column{background-image:repeating-linear-gradient(0deg,transparent 0 17px,#87fff126 18px 20px),linear-gradient(112deg,transparent 0 23%,#56f5dc55 24% 31%,transparent 32% 54%,#7e84ff5c 55% 63%,transparent 64%),linear-gradient(90deg,#06243a,#104e64 48%,#132a65)!important}body.theme-aurora .character-column:before{background-image:linear-gradient(150deg,#8fffe8 0 12%,#1b7880 13% 48%,#162a63 49% 100%)!important}body.theme-aurora .character-pedestal{background-image:repeating-linear-gradient(90deg,#071f35 0 14px,#4de1d340 15px 18px,#143d70 19px 28px)!important}

body.theme-oasis .character-column{background-image:repeating-linear-gradient(0deg,transparent 0 14px,#ffd56638 15px 17px),repeating-linear-gradient(90deg,#174d55 0 22px,#2f7d72 23px 26px,#19545a 27px 49px)!important}body.theme-oasis .character-column:before{background-image:linear-gradient(155deg,#ffdc76 0 15%,#2d8277 16% 56%,#174c55 57% 100%)!important}body.theme-oasis .character-pedestal{background-image:repeating-linear-gradient(90deg,#0f454f 0 12px,#d5964d 13px 16px,#23736c 17px 27px)!important}

body.theme-paper .character-column{background-image:repeating-linear-gradient(0deg,transparent 0 16px,#e96b5c3b 17px 18px),repeating-linear-gradient(90deg,#fffdf5 0 16px,#bfd7d8 17px 19px,#f7e8dd 20px 31px)!important}body.theme-paper .character-column:before{background-image:linear-gradient(155deg,#fffdf5 0 18%,#c8dfdf 19% 57%,#f1d9d1 58% 100%)!important}body.theme-paper .character-pedestal{background-image:repeating-linear-gradient(90deg,#fffdf5 0 12px,#c2dcda 13px 15px,#f2dcd3 16px 25px)!important}

body[class*="theme-"] svg [stroke="#ffb64a"]{stroke:var(--theme-accent)!important}
body[class*="theme-"] svg [fill="#ffb64a"]{fill:var(--theme-accent)!important}

body[class*="theme-"] [style*="color:#ffb64a"]{color:var(--theme-accent)!important}
body[class*="theme-"] [style*="--accent:#ffb64a"]{--accent:var(--theme-accent)}
body[class*="theme-"] [style*="rgba(255,182,74"]{background:var(--theme-accent-soft)!important;color:var(--theme-accent)!important}

body[class*="theme-"] :focus-visible{outline-color:var(--theme-accent)!important}
body[class*="theme-"] #game:focus-visible{outline-color:var(--theme-accent)!important}

body[class*="theme-"] #bombBar .bar-tip path,body[class*="theme-"] #lightningBar .bar-tip path{fill:var(--theme-ink)!important;stroke:none!important}

body[class*="theme-"] .ni [fill="#20190f"],body[class*="theme-"] .pi [fill="#20190f"]{fill:var(--theme-card)!important}

body[class*="theme-"] .profile-card code{color:var(--theme-accent)!important}

body.theme-aurora .character-column,body.theme-aurora .character-column:before,body.theme-aurora .character-pedestal{background:repeating-linear-gradient(0deg,#0d2c45 0 12px,#1a4a63 12px 22px,#2a6f86 22px 26px,rgba(118,243,220,.27) 26px 28px)!important;border:1px solid rgba(118,243,220,.4)!important}

body.theme-oasis .character-column,body.theme-oasis .character-column:before,body.theme-oasis .character-pedestal{background-image:repeating-linear-gradient(0deg,transparent 0 20px,#7d4a2077 20px 22px),repeating-linear-gradient(90deg,transparent 0 28px,#7d4a2055 28px 30px),linear-gradient(90deg,#c9964f,#e0b06a 46%,#b9834a)!important;background-size:auto!important;background-repeat:repeat!important;border:1px solid #ffcf5b80!important}

body.theme-paper .character-column,body.theme-paper .character-column:before,body.theme-paper .character-pedestal{background:linear-gradient(90deg,transparent 0 14px,rgba(233,108,92,.53) 14px 15.5px,transparent 15.5px),repeating-linear-gradient(0deg,transparent 0 17px,rgba(157,184,207,.53) 17px 18.5px),linear-gradient(180deg,#fffdf6,#f2ecdd)!important;border:1px solid #b9c6d1!important}

html.theme-aurora{scrollbar-color:#76f3dc #09243a!important}
html.theme-aurora::-webkit-scrollbar-track{background:#09243a!important}
html.theme-aurora::-webkit-scrollbar-thumb{background:#76f3dc!important;border:2px solid #09243a!important}
html.theme-aurora::-webkit-scrollbar-thumb:hover{background:#effaff!important}
html.theme-aurora::-webkit-scrollbar-corner{background:#09243a!important}
html.theme-oasis{scrollbar-color:#ffcf5b #104750!important}
html.theme-oasis::-webkit-scrollbar-track{background:#104750!important}
html.theme-oasis::-webkit-scrollbar-thumb{background:#ffcf5b!important;border:2px solid #104750!important}
html.theme-oasis::-webkit-scrollbar-thumb:hover{background:#fff6dc!important}
html.theme-oasis::-webkit-scrollbar-corner{background:#104750!important}
html.theme-paper{scrollbar-color:#e96c5c #dfe7e8!important}
html.theme-paper::-webkit-scrollbar-track{background:#dfe7e8!important}
html.theme-paper::-webkit-scrollbar-thumb{background:#e96c5c!important;border:2px solid #dfe7e8!important}
html.theme-paper::-webkit-scrollbar-thumb:hover{background:#c35243!important}
html.theme-paper::-webkit-scrollbar-corner{background:#dfe7e8!important}
body[class*="theme-"]{scrollbar-color:var(--theme-accent) var(--theme-card-2)!important}

body.theme-aurora #game-over-modal{background:rgba(1,12,27,.45)!important}
body.theme-oasis #game-over-modal{background:rgba(8,40,42,.4)!important}
body.theme-paper #game-over-modal{background:rgba(63,84,92,.28)!important}
body[class*="theme-"] #game-over-content{background:linear-gradient(color-mix(in srgb,var(--theme-card) 94%,transparent),color-mix(in srgb,var(--theme-card-2) 94%,transparent))!important;border:1px solid color-mix(in srgb,var(--theme-accent) 45%,transparent)!important;box-shadow:0 12px 42px var(--theme-shadow)!important;color:var(--theme-ink)!important}
body[class*="theme-"] #game-over-text{color:var(--theme-ink)!important}
body[class*="theme-"] .go-stat{background:var(--theme-accent-soft)!important;border:1px solid color-mix(in srgb,var(--theme-accent) 30%,transparent)!important}
body[class*="theme-"] .go-stat-value{color:var(--theme-accent)!important}
body[class*="theme-"] .go-stat-label{color:var(--theme-muted)!important;opacity:1!important}

body.theme-aurora #settings-content{background:linear-gradient(180deg,rgba(16,46,73,.93),rgba(9,32,57,.93))!important}
body.theme-oasis #settings-content{background:linear-gradient(180deg,rgba(28,96,101,.93),rgba(16,67,77,.93))!important}
body.theme-paper #settings-content{background:linear-gradient(180deg,rgba(255,253,246,.93),rgba(243,233,216,.93))!important}
body[class*="theme-"] .settings-layout .settings-group{background:color-mix(in srgb,var(--theme-card-2) 62%,transparent)!important}
body[class*="theme-"] .settings-layout .setting-item{background:color-mix(in srgb,var(--theme-card-2) 52%,transparent)!important}
body[class*="theme-"] .difficulty-levels li{background:color-mix(in srgb,var(--theme-card-2) 52%,transparent)!important}
body[class*="theme-"] .bonus-choice{background:color-mix(in srgb,var(--theme-card) 55%,transparent)!important}
body[class*="theme-"] #record,body[class*="theme-"] #score{background:color-mix(in srgb,var(--theme-card-2) 58%,transparent)!important}
body[class*="theme-"] #panel{background:linear-gradient(180deg,color-mix(in srgb,var(--theme-card) 94%,transparent),color-mix(in srgb,var(--theme-card-2) 94%,transparent))!important}
body[class*="theme-"] .secondary-btn{background:color-mix(in srgb,var(--theme-card) 80%,transparent)!important}
body[class*="theme-"] .settings-action-btn:not(.primary-btn){background:color-mix(in srgb,var(--theme-card) 80%,transparent)!important}
body[class*="theme-"] .settings-action-btn:not(.primary-btn):hover{background:var(--theme-accent-soft)!important;border-color:var(--theme-accent)!important}
body[class*="theme-"] .character-speech,body[class*="theme-"] .character-speech:after{background:color-mix(in srgb,var(--theme-card) 88%,transparent)!important}
body[class*="theme-"] .profile-card,body[class*="theme-"] .leaderboard-card,body[class*="theme-"] .feature-card,body[class*="theme-"] .rule-card,body[class*="theme-"] .btn-ghost{background:color-mix(in srgb,var(--theme-card) 94%,transparent)!important}
body.theme-aurora #siteNav .nav-links a,body.theme-aurora .sound-toggle-btn{background:rgba(13,51,75,.6)!important}
body.theme-oasis #siteNav .nav-links a,body.theme-oasis .sound-toggle-btn{background:rgba(21,85,90,.6)!important}
body.theme-paper #siteNav .nav-links a,body.theme-paper .sound-toggle-btn{background:rgba(255,253,246,.66)!important}
body.theme-aurora #siteNav .nav-links a:hover,body.theme-oasis #siteNav .nav-links a:hover,body.theme-paper #siteNav .nav-links a:hover{background:var(--theme-accent-soft)!important}

.theme-option[data-theme="castle"],.theme-option[data-theme="castle"] b{color:#ffe6b0!important}
.theme-option[data-theme="castle"] small{color:#d3b07b!important}
.theme-option[data-theme="aurora"],.theme-option[data-theme="aurora"] b{color:#effaff!important}
.theme-option[data-theme="aurora"] small{color:#a9d3df!important}
.theme-option[data-theme="oasis"],.theme-option[data-theme="oasis"] b{color:#fff6dc!important}
.theme-option[data-theme="oasis"] small{color:#ffe3ae!important}
.theme-option[data-theme="paper"],.theme-option[data-theme="paper"] b{color:#263842!important}
.theme-option[data-theme="paper"] small{color:#60767d!important}

body[class*="theme-"] .settings-x-btn{background:color-mix(in srgb,var(--theme-card) 72%,transparent)!important;border-color:color-mix(in srgb,var(--theme-accent) 55%,transparent)!important;color:var(--theme-accent)!important}
body[class*="theme-"] .settings-x-btn:hover{background:var(--theme-accent-soft)!important;border-color:var(--theme-accent)!important}

body[class*="theme-"] .demo-card{background:linear-gradient(135deg,var(--theme-card),var(--theme-card-2))!important;border-color:color-mix(in srgb,var(--theme-accent) 40%,transparent)!important}
body[class*="theme-"] .demo-card img,body[class*="theme-"] .demo-card video{border-color:color-mix(in srgb,var(--theme-accent) 25%,transparent)!important;background:var(--theme-card-2)!important}
body[class*="theme-"] .demo-card figcaption{color:var(--theme-muted)!important}
body[class*="theme-"] .demo-card figcaption b{color:var(--theme-accent)!important}

body.theme-aurora #siteNav .nav-links a[aria-current="page"]{background:rgba(118,243,220,.18)!important;border-color:#76f3dc!important;color:#76f3dc!important;box-shadow:0 0 12px rgba(118,243,220,.25)!important}
body.theme-oasis #siteNav .nav-links a[aria-current="page"]{background:rgba(255,207,91,.18)!important;border-color:#ffcf5b!important;color:#ffcf5b!important;box-shadow:0 0 12px rgba(255,207,91,.25)!important}
body.theme-paper #siteNav .nav-links a[aria-current="page"]{background:rgba(233,108,92,.14)!important;border-color:#e96c5c!important;color:#e96c5c!important;box-shadow:0 0 10px rgba(233,108,92,.22)!important}

body[class*="theme-"] .confirm-overlay{background:color-mix(in srgb,var(--bg) 62%,transparent)!important}
body[class*="theme-"] .confirm-dialog{background:linear-gradient(165deg,var(--theme-card),var(--theme-card-2))!important;border:1px solid color-mix(in srgb,var(--theme-accent) 55%,transparent)!important;box-shadow:0 24px 70px var(--theme-shadow),inset 0 1px 0 color-mix(in srgb,var(--theme-accent) 12%,transparent)!important}
body[class*="theme-"] .confirm-dialog h3{color:var(--theme-accent)!important}
body[class*="theme-"] .confirm-dialog p{color:var(--theme-muted)!important}
body[class*="theme-"] .confirm-icon{filter:drop-shadow(0 4px 12px var(--theme-accent-soft))!important}
body[class*="theme-"] .confirm-cancel{background:var(--theme-card-2)!important;border-color:var(--theme-line)!important;color:var(--theme-ink)!important}
body[class*="theme-"] .confirm-cancel:hover{background:var(--theme-accent-soft)!important;border-color:var(--theme-accent)!important}
body[class*="theme-"] .confirm-accept{background:linear-gradient(135deg,var(--theme-accent),color-mix(in srgb,var(--theme-accent) 60%,#8a2f22))!important;color:var(--bg)!important;box-shadow:0 6px 18px var(--theme-accent-soft)!important}
body.theme-paper .confirm-accept{color:#fff!important}

.bg-pickers{margin-top:12px}
.bg-strip{display:grid;grid-template-columns:repeat(10,1fr);gap:6px}
.bg-swatch{height:36px;min-width:0!important;border-radius:7px;border:1px solid var(--theme-line)!important;cursor:pointer;padding:0!important;position:relative;overflow:hidden;box-shadow:none!important;transition:transform .15s,border-color .15s,box-shadow .15s}
.bg-swatch:hover{transform:translateY(-2px);border-color:var(--theme-muted,#bfae93)!important}
.bg-swatch .bg-num{position:absolute;right:4px;bottom:2px;font-size:9px;font-weight:700;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.85);pointer-events:none}
.bg-swatch.active{outline:2px solid var(--theme-accent);outline-offset:1px;border-color:var(--theme-accent)!important}
@media(max-width:640px){.bg-strip{grid-template-columns:repeat(5,1fr)}.bg-swatch{height:32px}}

.bg-sw-c1{background:#17151a url('../img/castle-wall-bg.webp') repeat!important;background-size:120px auto!important}
.bg-sw-a2{background:linear-gradient(125deg,#071a2b,#1b0e42)!important}
.bg-sw-o2{background:linear-gradient(125deg,#103a48,#c46e37)!important}
.bg-sw-p2{background:linear-gradient(125deg,#eee6d7,#c8d9e7)!important}

body[class*="bg-"] .game-app,body[class*="bg-"] #game{background:transparent!important}

html.bg-c2 body,body.bg-c2,.bg-sw-c2{background:repeating-linear-gradient(0deg,transparent 0 44px,rgba(11,9,13,.8) 44px 47px),repeating-linear-gradient(90deg,transparent 0 74px,rgba(11,9,13,.6) 74px 77px),linear-gradient(180deg,#1b1720,#131017)!important}
html.bg-c3 body,body.bg-c3,.bg-sw-c3{background:repeating-linear-gradient(90deg,#241a10 0 42px,#2c2013 42px 44px,#1e150c 44px 86px,#160f08 86px 88px)!important}
html.bg-c4 body,body.bg-c4,.bg-sw-c4{background:repeating-linear-gradient(45deg,transparent 0 30px,rgba(255,182,74,.08) 30px 32px),repeating-linear-gradient(-45deg,transparent 0 30px,rgba(255,182,74,.08) 30px 32px),linear-gradient(180deg,#2a1215,#1a0c0e)!important}
html.bg-c5 body,body.bg-c5,.bg-sw-c5{background:radial-gradient(circle at 20% 18%,rgba(255,156,58,.13),transparent 30%),radial-gradient(circle at 80% 26%,rgba(255,156,58,.12),transparent 32%),radial-gradient(circle at 50% 78%,rgba(255,122,42,.08),transparent 36%),linear-gradient(180deg,#191218,#100b10)!important}
html.bg-c6 body,body.bg-c6,.bg-sw-c6{background:repeating-linear-gradient(0deg,transparent 0 88px,rgba(0,0,0,.35) 88px 92px),repeating-linear-gradient(90deg,transparent 0 120px,rgba(0,0,0,.25) 120px 124px),linear-gradient(135deg,#242028,#17141b)!important}
html.bg-c7 body,body.bg-c7,.bg-sw-c7{background:radial-gradient(circle at 50% 0%,rgba(122,42,85,.2),transparent 40%),linear-gradient(160deg,#241021,#150a14)!important}
html.bg-c8 body,body.bg-c8,.bg-sw-c8{background:repeating-linear-gradient(45deg,transparent 0 26px,rgba(0,0,0,.55) 26px 28px),repeating-linear-gradient(-45deg,transparent 0 26px,rgba(0,0,0,.55) 26px 28px),linear-gradient(180deg,#1d1c22,#121116)!important}
html.bg-c9 body,body.bg-c9,.bg-sw-c9{background:radial-gradient(circle,rgba(255,210,63,.18) 0 2px,transparent 3px) 0 0/180px 160px repeat,radial-gradient(circle,rgba(255,210,63,.14) 0 1.5px,transparent 2.5px) 90px 80px/220px 200px repeat,linear-gradient(180deg,#141426,#0d0d18)!important}
html.bg-c10 body,body.bg-c10,.bg-sw-c10{background:radial-gradient(circle at 30% 20%,rgba(58,44,26,.2),transparent 50%),radial-gradient(circle at 75% 70%,rgba(58,44,26,.18),transparent 45%),linear-gradient(180deg,#241c11,#1a140c)!important}

html.bg-a3 body,body.bg-a3,.bg-sw-a3{background:linear-gradient(115deg,transparent 0 18%,rgba(46,230,196,.13) 20% 30%,transparent 34% 52%,rgba(138,123,255,.15) 55% 66%,transparent 70%),linear-gradient(160deg,#06121f,#0a1c33 55%,#140f35)!important}
html.bg-a4 body,body.bg-a4,.bg-sw-a4{background:radial-gradient(circle,rgba(223,252,255,.4) 0 1.2px,transparent 2px) 0 0/140px 120px repeat,radial-gradient(circle,rgba(223,252,255,.3) 0 1px,transparent 1.8px) 70px 60px/180px 150px repeat,linear-gradient(180deg,#05101d,#0a1830)!important}
html.bg-a5 body,body.bg-a5,.bg-sw-a5{background:linear-gradient(135deg,#0d2c45 0 30%,#123a5a 30% 55%,#0a2238 55% 75%,#0f3350 75%)!important}
html.bg-a6 body,body.bg-a6,.bg-sw-a6{background:radial-gradient(ellipse at 50% 100%,rgba(15,74,94,.4),transparent 55%),linear-gradient(180deg,#040c18,#081a2e)!important}
html.bg-a1 body,body.bg-a1,.bg-sw-a1{background:repeating-linear-gradient(115deg,transparent 0 34px,rgba(159,217,230,.06) 34px 36px),repeating-linear-gradient(115deg,transparent 0 89px,rgba(159,217,230,.04) 89px 92px),linear-gradient(180deg,#081627,#0b1e36)!important}
html.bg-a7 body,body.bg-a7,.bg-sw-a7{background:repeating-linear-gradient(0deg,transparent 0 56px,rgba(58,214,207,.11) 56px 57px),repeating-linear-gradient(90deg,transparent 0 56px,rgba(58,214,207,.09) 56px 57px),linear-gradient(180deg,#071527,#0a1c33)!important}
html.bg-a8 body,body.bg-a8,.bg-sw-a8{background:radial-gradient(circle at 70% 20%,rgba(138,92,255,.2),transparent 40%),radial-gradient(circle at 25% 70%,rgba(74,47,158,.2),transparent 45%),linear-gradient(150deg,#0b0f2b,#150c33)!important}
html.bg-a9 body,body.bg-a9,.bg-sw-a9{background:radial-gradient(ellipse at 50% 0%,rgba(191,239,255,.15),transparent 45%),linear-gradient(90deg,#06111f 0 38%,#0c2440 50%,#06111f 62%)!important}
html.bg-a10 body,body.bg-a10,.bg-sw-a10{background:repeating-linear-gradient(180deg,#0a2036 0 64px,#0d2946 64px 66px,#08182b 66px 130px,#0b2440 130px 132px)!important}

html.bg-o3 body,body.bg-o3,.bg-sw-o3{background:radial-gradient(ellipse at 20% 110%,rgba(196,118,63,.25) 0 30%,transparent 52%),radial-gradient(ellipse at 75% 118%,rgba(168,92,50,.26) 0 34%,transparent 55%),linear-gradient(180deg,#0d3440,#144a52)!important}
html.bg-o4 body,body.bg-o4,.bg-sw-o4{background:radial-gradient(circle,rgba(255,207,91,.17) 0 3px,transparent 4px) 0 0/64px 64px repeat,radial-gradient(circle,rgba(255,207,91,.12) 0 2px,transparent 3px) 32px 32px/64px 64px repeat,linear-gradient(180deg,#0f3a44,#12444d)!important}
html.bg-o5 body,body.bg-o5,.bg-sw-o5{background:repeating-linear-gradient(90deg,transparent 0 90px,rgba(10,45,54,.4) 90px 108px),linear-gradient(180deg,#124049,#0e353f)!important}
html.bg-o6 body,body.bg-o6,.bg-sw-o6{background:linear-gradient(180deg,#123c47 0 42%,#7a4a30 70%,#c46e37 100%)!important}
html.bg-o7 body,body.bg-o7,.bg-sw-o7{background:repeating-linear-gradient(0deg,transparent 0 46px,rgba(255,207,91,.13) 46px 48px),repeating-linear-gradient(90deg,transparent 0 46px,rgba(255,207,91,.11) 46px 48px),linear-gradient(180deg,#11424c,#0e3841)!important}
html.bg-o1 body,body.bg-o1,.bg-sw-o1{background:repeating-linear-gradient(45deg,transparent 0 22px,rgba(255,207,91,.09) 22px 24px),repeating-linear-gradient(-45deg,transparent 0 22px,rgba(224,133,74,.11) 22px 24px),linear-gradient(180deg,#123e48,#0f3640)!important}
html.bg-o8 body,body.bg-o8,.bg-sw-o8{background:radial-gradient(circle at 50% 30%,rgba(58,214,207,.17),transparent 42%),radial-gradient(circle at 30% 75%,rgba(42,160,147,.16),transparent 40%),linear-gradient(180deg,#0e3d47,#0a303a)!important}
html.bg-o9 body,body.bg-o9,.bg-sw-o9{background:repeating-linear-gradient(105deg,transparent 0 48px,rgba(201,150,79,.1) 48px 56px),linear-gradient(160deg,#3f3020,#6b4526 60%,#8a552c)!important}
html.bg-o10 body,body.bg-o10,.bg-sw-o10{background:radial-gradient(circle at 78% 18%,rgba(255,233,173,.24) 0 26px,transparent 28px),radial-gradient(circle,rgba(255,207,91,.08) 0 2px,transparent 3px) 0 0/120px 110px repeat,linear-gradient(180deg,#082830,#0d3a44)!important}

html.bg-p3 body,body.bg-p3,.bg-sw-p3{background:repeating-linear-gradient(0deg,transparent 0 26px,rgba(157,184,207,.35) 26px 27px),repeating-linear-gradient(90deg,transparent 0 26px,rgba(157,184,207,.3) 26px 27px),linear-gradient(180deg,#f6efe2,#ede4d3)!important}
html.bg-p4 body,body.bg-p4,.bg-sw-p4{background:radial-gradient(circle at 30% 30%,rgba(169,117,47,.08),transparent 60%),linear-gradient(180deg,#e0c9a4,#d4b98f)!important}
html.bg-p5 body,body.bg-p5,.bg-sw-p5{background:radial-gradient(circle at 25% 25%,rgba(246,198,189,.35),transparent 40%),radial-gradient(circle at 75% 35%,rgba(188,217,227,.35),transparent 42%),radial-gradient(circle at 45% 80%,rgba(243,227,174,.35),transparent 45%),linear-gradient(180deg,#f7f1e4,#efe7d7)!important}
html.bg-p6 body,body.bg-p6,.bg-sw-p6{background:repeating-linear-gradient(0deg,transparent 0 10px,rgba(141,169,174,.19) 10px 11px,transparent 11px 50px,rgba(141,169,174,.35) 50px 51px),repeating-linear-gradient(90deg,transparent 0 10px,rgba(141,169,174,.17) 10px 11px,transparent 11px 50px,rgba(141,169,174,.32) 50px 51px),linear-gradient(#f4efe3,#f4efe3)!important}
html.bg-p7 body,body.bg-p7,.bg-sw-p7{background:repeating-linear-gradient(0deg,#efe6d4 0 18px,#e3d7c0 18px 36px)!important}
html.bg-p8 body,body.bg-p8,.bg-sw-p8{background:radial-gradient(circle,rgba(233,108,92,.19) 0 5px,transparent 6px) 0 0/56px 56px repeat,radial-gradient(circle,rgba(127,181,170,.19) 0 5px,transparent 6px) 28px 28px/56px 56px repeat,linear-gradient(180deg,#f6f0e3,#eee6d7)!important}
html.bg-p1 body,body.bg-p1,.bg-sw-p1{background:repeating-linear-gradient(45deg,transparent 0 30px,rgba(233,108,92,.15) 30px 31.5px),linear-gradient(180deg,#f6f0e3,#efe8da)!important}
html.bg-p9 body,body.bg-p9,.bg-sw-p9{background:linear-gradient(45deg,rgba(220,235,231,.4) 25%,transparent 25% 75%,rgba(220,235,231,.4) 75%) 0 0/48px 48px repeat,linear-gradient(-45deg,rgba(247,221,215,.4) 25%,transparent 25% 75%,rgba(247,221,215,.4) 75%) 0 0/48px 48px repeat,linear-gradient(180deg,#f5efe2,#ede5d5)!important}
html.bg-p10 body,body.bg-p10,.bg-sw-p10{background:repeating-linear-gradient(90deg,transparent 0 150px,rgba(38,56,66,.08) 150px 152px),repeating-linear-gradient(0deg,transparent 0 12px,rgba(38,56,66,.05) 12px 13px),linear-gradient(180deg,#f2ecdf,#eae2d1)!important}

body[class*="theme-"] #sound-settings-content{background:linear-gradient(180deg,var(--theme-card),var(--theme-card-2))!important;border-color:var(--theme-accent)!important;color:var(--theme-ink)!important}
#sound-settings-scroll{padding:22px 24px!important}
body[class*="theme-"] #sound-settings-header h2{color:var(--theme-accent)!important}
body[class*="theme-"] #sound-settings-scroll .settings-group{background:var(--theme-card-2)!important;border-color:var(--border)!important;color:var(--theme-ink)!important}
body[class*="theme-"] #sound-settings-scroll .settings-group h3{color:var(--theme-accent)!important}
body[class*="theme-"] #sound-settings-scroll .setting-item{background:color-mix(in srgb,var(--theme-card) 76%,transparent)!important;border:1px solid color-mix(in srgb,var(--border) 80%,transparent)!important;color:var(--theme-ink)!important}
body[class*="theme-"] #sound-settings-scroll .setting-item small,body[class*="theme-"] #sound-settings-scroll .settings-intro,body[class*="theme-"] .snd-row-head small{color:var(--theme-muted)!important}
body[class*="theme-"] .snd-row-head .setting-label{color:var(--theme-ink)!important}

body[class*="theme-"] .settings-footer .settings-action-btn:not(.primary-btn){background:color-mix(in srgb,var(--theme-card) 80%,transparent)!important;border-color:var(--theme-accent)!important;color:var(--theme-ink)!important}
body[class*="theme-"] .settings-footer .settings-action-btn:not(.primary-btn):hover{background:var(--theme-accent-soft)!important;border-color:var(--theme-accent)!important}

body[class*="theme-"] #sound-settings-header{border-color:color-mix(in srgb,var(--theme-accent) 45%,transparent)!important}

body[class*="theme-"] #sound-settings-scroll{scrollbar-color:var(--theme-accent) transparent!important}
body[class*="theme-"] #sound-settings-scroll::-webkit-scrollbar-thumb{background:var(--theme-accent)!important}

#sound-settings-scroll .setting-item{background:color-mix(in srgb,var(--theme-card) 76%,transparent)!important;border:1px solid color-mix(in srgb,var(--border) 80%,transparent)!important}

body[class*="theme-"] ::selection, body[class*="theme-"]::selection{background:color-mix(in srgb,var(--theme-accent) 35%,transparent);color:var(--theme-ink)}

body[class*="theme-"] .bci-note,body[class*="theme-"] .bci-details summary,body[class*="theme-"] .bci-table th,body[class*="theme-"] .bci-head .bci-size{color:var(--theme-muted)!important}
body[class*="theme-"] .bci-details summary:hover{color:var(--theme-accent)!important}
body[class*="theme-"] .bci-table tr.bci-current td{background:var(--theme-accent-soft)!important}
body[class*="theme-"] .bci-table tr.bci-current td:first-child{color:var(--theme-accent)!important}

body[class*="theme-"] th[data-sort].sort-active{color:var(--theme-accent)!important}
@media (hover:hover){ body[class*="theme-"] th[data-sort]:hover{color:var(--theme-accent)!important} }

body[class*="theme-"] .title-current b{color:var(--theme-ink)!important}
body[class*="theme-"] .title-shield-glow{--tsg:var(--theme-accent)}

body.theme-aurora{--tsi-tint:grayscale(1) sepia(.9) hue-rotate(125deg) saturate(1.1) brightness(.92)}
body.theme-oasis{--tsi-tint:grayscale(1) sepia(.9) hue-rotate(2deg) saturate(1.25) brightness(.9)}
body.theme-paper{--tsi-tint:grayscale(1) sepia(.6) hue-rotate(318deg) saturate(1.1) brightness(1.02)}

body[class*="theme-"] #characters-settings-content{background:linear-gradient(180deg,var(--theme-card),var(--theme-card-2))!important;border-color:var(--theme-accent)!important;color:var(--theme-ink)!important}
#characters-settings-scroll{padding:22px 24px!important}
body[class*="theme-"] #characters-settings-header h2{color:var(--theme-accent)!important}
body[class*="theme-"] #characters-settings-scroll .settings-group{background:var(--theme-card-2)!important;border-color:var(--border)!important;color:var(--theme-ink)!important}
body[class*="theme-"] #characters-settings-scroll .settings-group h3{color:var(--theme-accent)!important}
body[class*="theme-"] #characters-settings-scroll .setting-item{background:color-mix(in srgb,var(--theme-card) 76%,transparent)!important;border:1px solid color-mix(in srgb,var(--border) 80%,transparent)!important;color:var(--theme-ink)!important}
body[class*="theme-"] #characters-settings-scroll .setting-item small,body[class*="theme-"] #characters-settings-scroll .settings-intro{color:var(--theme-muted)!important}
body[class*="theme-"] #characters-settings-header{border-color:color-mix(in srgb,var(--theme-accent) 45%,transparent)!important}
body[class*="theme-"] #characters-settings-scroll{scrollbar-color:var(--theme-accent) transparent!important}
body[class*="theme-"] #characters-settings-scroll::-webkit-scrollbar-thumb{background:var(--theme-accent)!important}
#characters-settings-scroll .setting-item{background:color-mix(in srgb,var(--theme-card) 76%,transparent)!important;border:1px solid color-mix(in srgb,var(--border) 80%,transparent)!important}

body[class*="theme-"] .char-choice{background:color-mix(in srgb,var(--theme-card) 76%,transparent)!important;border-color:var(--border)!important;color:var(--theme-ink)!important}
body[class*="theme-"] .char-choice strong{color:var(--theme-ink)!important}
body[class*="theme-"] .char-choice small{color:var(--theme-muted)!important}
body[class*="theme-"] .char-choice:hover{border-color:var(--theme-accent)!important;background:var(--theme-accent-soft)!important}
body[class*="theme-"] .char-choice.active{border-color:var(--theme-accent)!important;background:var(--theme-accent-soft)!important;box-shadow:0 0 0 1px var(--theme-accent) inset,0 4px 14px var(--theme-shadow)!important}
body[class*="theme-"] .char-choice .char-check{color:var(--theme-accent)!important}

body[class*="theme-"].hero-wizard .title-shield-glow{--tsg:color-mix(in srgb,var(--theme-accent) 45%,#9b7bff)}

body.theme-aurora #sound-settings-modal,body.theme-aurora #characters-settings-modal{background:rgba(1,12,27,.56)!important}
body.theme-oasis #sound-settings-modal,body.theme-oasis #characters-settings-modal{background:rgba(8,40,42,.52)!important}
body.theme-paper #sound-settings-modal,body.theme-paper #characters-settings-modal{background:rgba(96,78,62,.24)!important}
body.theme-aurora #sound-settings-content,body.theme-aurora #characters-settings-content{background:linear-gradient(180deg,rgba(16,46,73,.93),rgba(9,32,57,.93))!important}
body.theme-oasis #sound-settings-content,body.theme-oasis #characters-settings-content{background:linear-gradient(180deg,rgba(28,96,101,.93),rgba(16,67,77,.93))!important}
body.theme-paper #sound-settings-content,body.theme-paper #characters-settings-content{background:linear-gradient(180deg,rgba(255,253,246,.93),rgba(243,233,216,.93))!important}

body[class*="theme-"] #pwa-install{border:1px solid color-mix(in srgb,var(--theme-accent) 55%,transparent)!important;box-shadow:0 8px 24px var(--theme-shadow)!important}
body[class*="theme-"] #pwa-install button{background:var(--theme-card)!important;color:var(--theme-ink)!important}
body[class*="theme-"] #pwa-install button:hover{background:var(--theme-accent-soft)!important}
body[class*="theme-"] #pwa-install-close{color:var(--theme-muted)!important;border-left:1px solid color-mix(in srgb,var(--theme-accent) 40%,transparent)!important}
body[class*="theme-"] #pwa-install-close:hover{color:var(--theme-accent)!important}

@media (max-width:860px){
body[class*="theme-"] .nav-links{background:var(--bg)!important;border-bottom:1px solid var(--border)!important;box-shadow:0 14px 28px var(--theme-shadow)!important}
body[class*="theme-"] .nav-links li{border-top-color:var(--border)!important}
body[class*="theme-"] #siteNav .nav-links a{background:var(--theme-card)!important}
}

body[class*="theme-"] .settings-note{background:var(--theme-accent-soft)!important;border-color:color-mix(in srgb,var(--theme-accent) 45%,transparent)!important;color:var(--theme-ink)!important}

.theme-picker{grid-auto-rows:minmax(66px,auto)!important}
.theme-option{height:auto!important;min-width:0!important;overflow:hidden!important}
.theme-option b{white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.15!important;text-align:center!important}
.theme-option small{white-space:normal!important;overflow-wrap:anywhere!important;line-height:1.2!important;text-align:center!important}

body[class*="theme-"] #rotate-overlay{background:var(--bg)!important;color:var(--theme-ink)!important}
body[class*="theme-"] #rotate-overlay p{color:var(--theme-muted)!important}

body[class*="theme-"] .vfooter .footer-logo{background:none!important;color:var(--theme-accent)!important;-webkit-text-fill-color:var(--theme-accent)!important;filter:none!important}
body[class*="theme-"] .vfooter .footer-logo img{filter:hue-rotate(145deg) saturate(1.25)!important}
body.theme-oasis .vfooter .footer-logo img{filter:hue-rotate(8deg) saturate(1.25)!important}
body.theme-paper .vfooter .footer-logo img{filter:hue-rotate(334deg) saturate(.85)!important}

body{isolation:isolate}
body::before{
  content:"";
  position:fixed;
  inset:0;
  z-index:-1;
  pointer-events:none;
  background:inherit;
  background-attachment:scroll!important;
}

body[class*="theme-"] .rules-page .chapter,body[class*="theme-"] .rules-page .demo-card{background:color-mix(in srgb,var(--theme-card) 94%,transparent)!important;border-color:var(--border)!important;box-shadow:0 10px 28px var(--theme-shadow)!important}

body[class*="theme-"] .ld-card{background:color-mix(in srgb,var(--theme-card) 94%,transparent)!important;border-color:var(--border)!important;box-shadow:0 10px 28px var(--theme-shadow)!important}

body.theme-paper th,body.theme-paper .profile-row input{background:#ede6d8!important}
body.theme-paper .option-tags span,body.theme-paper .bci-chips span{background:rgba(233,108,92,.09)!important}

body.theme-paper .sp-banner,body.theme-paper .about-contact{background:linear-gradient(180deg,#fffdf6,#f5ece5)!important;border-color:rgba(233,108,92,.38)!important}
body.theme-paper .sp-banner::before,body.theme-paper .about-contact::before{background:radial-gradient(ellipse at center,rgba(233,108,92,.12),transparent 70%)!important}
body.theme-paper .sp-banner:hover{border-color:rgba(233,108,92,.72)!important}

body[class*="theme-"] .note-callout a{color:var(--theme-accent)!important;text-decoration:underline!important;text-underline-offset:3px}
body[class*="theme-"] .chapter details>summary:hover{color:var(--theme-accent)!important}
