/* The theme styles change surfaces and ink, never photographs or album artwork. */
html[data-theme=dark]{color-scheme:dark}
.jd-theme-switch{flex:0 0 auto;display:inline-grid;place-items:center;width:36px;height:36px;margin-left:8px;padding:0;border:1px solid #cab8ce66;border-radius:50%;background:#17151c;color:#edd6e8;cursor:pointer;font:21px/1 Arial,sans-serif}
.jd-theme-switch:hover{background:#352737;color:#fff}.jd-theme-switch:focus-visible{outline:2px solid #f7a3d8;outline-offset:4px}
body.playing .jd-theme-switch{display:none}
.jd-display-controls{display:flex;align-items:center;gap:8px;flex:none;margin-left:16px}.jd-display-controls .jd-language-switch{margin-left:0!important}.jd-display-controls .jd-theme-switch{margin-left:0}.jd-has-language>:is(.back-album,.site-link,.back){margin-left:auto}body.playing .jd-display-controls{display:none}
[data-theme-toggle=full]{gap:10px}[data-theme-toggle=full] span{font-size:19px}
html[data-theme=light]{color-scheme:light;--bg:#f5f1ed!important;--panel:#fffdfa!important;--paper:#302936!important;--text:#302936!important;--ink:#302936!important;--muted:#645967!important;--line:#75677848!important;--accent:#823666!important;--accent-rgb:130,54,102!important;--lime:#823666!important;--rose:#823666!important;--amber:#815319!important}
html[data-theme=light] body{--bg:#f5f1ed!important;--panel:#fffdfa!important;--paper:#302936!important;--text:#302936!important;--ink:#302936!important;--muted:#645967!important;--line:#75677848!important;--accent:#823666!important;--accent-rgb:130,54,102!important;--lime:#823666!important;--rose:#823666!important;--amber:#815319!important;background:#f5f1ed;color:#302936}
html[data-theme=light] :is(button,a,input,select,summary):focus-visible{outline-color:#823666}
html[data-theme=light] :is(.brand,.brand b,header>a){color:#302936}
html[data-theme=light] :is(.brand i,.spark){background:#823666;box-shadow:none}
html[data-theme=light] .jd-theme-switch{color:#823666;background:#fffdfa;border-color:#a391a3}
html[data-theme=light] .jd-theme-switch:hover{background:#ecdeea}
html[data-theme=light] .jd-language-switch{background:#fffdfa!important;color:#633954!important;border-color:#aa92a5!important}
html[data-theme=light] .jd-language-dialog{background:#fffaf7;color:#302936;border-color:#c9b7c5;box-shadow:0 24px 80px #44344322}
html[data-theme=light] .jd-language-dialog::backdrop{background:#f5f1edf5}
html[data-theme=light] .jd-language-card{background:radial-gradient(ellipse at 50% 0,#e8cddd66,transparent 70%)}
html[data-theme=light] .jd-language-card :is(h1,h1 em){color:#49344a!important}
html[data-theme=light] .jd-language-brand{color:#774f6c!important}
html[data-theme=light] .jd-language-options button{background:#f7eef4;color:#382d39;border-color:#c6afc0}
html[data-theme=light] .jd-language-options button:hover{background:#eedee9;border-color:#823666}
html[data-theme=light] .jd-language-options span,html[data-theme=light] .jd-language-note{color:#645967!important}
html[data-theme=light] .jd-language-close{color:#645967}
html[data-theme=light] :is(.button,.primary,.btn.primary,.play-main,.game-listen button){background:#823666!important;color:#fffafc!important;border-color:#823666!important}
html[data-theme=light] :is(.button,.primary,.btn.primary,.play-main,.game-listen button):hover{background:#692852!important;color:#fff!important}
html[data-theme=light] :is(.secondary,.btn,.icon,.icon-btn,.round,.remap,.game-choice,.tools button){background:#fffaf7;color:#493e4d;border-color:#ab94a8}
html[data-theme=light] :is(.secondary,.btn,.icon,.icon-btn,.round,.remap,.game-choice,.tools button):hover{background:#efe1ec;color:#632d51}
html[data-theme=light] :is(input:not([type=range]):not([type=checkbox]),select,textarea){background:#fffdfa;color:#302936;border-color:#ae98aa}
html[data-theme=light] :is(dialog,body:not(.playing) dialog){background:#fffaf7;color:#302936;border-color:#c9b7c5;box-shadow:0 25px 90px #44344333}
html[data-theme=light] dialog::backdrop{background:#eae2e8c9}
html[data-theme=light] dialog :is(p,.check,small){color:#645967}
html[data-theme=light] :is(.close,.empty,.notice,.toast){color:#493e4d}
html[data-theme=light] :is(.notice,.toast){background:#fffaf7;border:1px solid #ad8ca3}
html[data-theme=light] :is(.eyebrow,.section-kicker,.detail-index,.text-btn){color:#754b67}
html[data-theme=light] .button span{color:inherit}
/* Home and complete albums. Cover typography deliberately stays over the art. */
html[data-theme=light] .hero-art{background:#08090c;border-radius:6px;box-shadow:0 18px 45px #4d35441a}
html[data-theme=light] .art-label{color:#fff}
html[data-theme=light] .player-panel{background:#fffaf7}
html[data-theme=light] .player-panel audio{color-scheme:light}
html[data-theme=light] .experiences-feature{background:linear-gradient(135deg,#eee5eb,#f7f1ec)}
html[data-theme=light] .universe{background:#e9e0e9;color:#302936}
html[data-theme=light] .universe :is(.universe-copy,.eyebrow){color:#5d5061}
html[data-theme=light] :is(.track:hover,.track.active,.platforms a:hover){background:#e9dce7}
html[data-theme=light] .track.active .track-icon{color:#fffafc}
/* Listening, waveforms, song recognition. */
html[data-theme=light] :is(.view-tabs,.preset-toolbar,.reserve-panel,.wave-box,.game-board,.player,.transition-card,.history-note){background:#fffaf7;border-color:#c6b5c2}
html[data-theme=light] :is(.detail-panel,.arc-panel,.read-panel){background:linear-gradient(145deg,#f5e9f0,#fffaf7 55%);border-color:#c6b5c2}
html[data-theme=light] :is(.view-tab.active,.scenario-tab.active,.track-row.selected,.track-row:hover,.candidate-tag){background:#ecdfe9}
html[data-theme=light] .track-number{color:#75405f;opacity:1}
html[data-theme=light] .detail-concept{color:#443548}
html[data-theme=light] :is(.measure>small,.slider-ends,.detail-note-help,.pending-label,footer){color:#69566b}
html[data-theme=light] .waveform rect{fill:#823666;opacity:.8}
html[data-theme=light] #wave-position{stroke:#291e2f}
html[data-theme=light] .game-choice.correct{background:#e2eee1;color:#255139;border-color:#598461}
html[data-theme=light] .game-choice.wrong{background:#f5dfe6;color:#82314d;border-color:#b76b80}
html[data-theme=light] .game-clue{color:#765024;border-color:#a47c49}
html[data-theme=light] :is(.game-progress i,.progress,.track-line,.progress-track){background:#cdbdce}
html[data-theme=light] .game-progress i.done{background:#823666}
/* The platform game: legible menus and HUD over the light canvas palette. */
html[data-theme=light] .grain{background:none!important}
html[data-theme=light] :is(.subtitle,.scene-caption p,.chapter-message,.quick-rules p){color:#443548!important}
html[data-theme=light] :is(.intro,.menu-links,.back-album,.scene-caption,.menu-footer,.availability,.availability span,.room-goal,.keyboard-guide,.resonance small,.time-label,.control-note,.quick-controls small,.menu-footer b){color:#645367!important}
html[data-theme=light] :is(.quick-controls kbd,.quick-rules i,.headphone,.remap b){color:#823666}
html[data-theme=light] .quick-controls{border-color:#c9b7c5}
html[data-theme=light] :is(.descent-notice,.resonance-notice,.feedback){background:#fffaf7f5;color:#713252;border-color:#a97296;box-shadow:0 6px 22px #49344e1a}
html[data-theme=light] :is(.descent-notice span,.resonance-notice span){color:#58435c}
html[data-theme=light] .touch-controls button{background:#fffaf7ed;color:#70315a;border-color:#9f7c96}
html[data-theme=light] .touch-controls button:active{background:#dfc6d8}
html[data-theme=light] .beat-light{border-color:#823666!important;background:#82366616;box-shadow:none}
html[data-theme=light] .loading{background:#f5f1edf5}
html[data-theme=light] .loading p{color:#49334a}
html[data-theme=light] .leaderboard-page{background:radial-gradient(ellipse at 80% 10%,#e5d8e5,transparent 60%),#f5f1ed}
html[data-theme=light] .rank{background:#e9d6e5;color:#713252;border-color:#a47b97}
/* Existing garden artwork keeps its night setting; surrounding UI gains light surfaces. */
html[data-theme=light][data-surface=garden] #night-sky{opacity:.12}
html[data-theme=light][data-surface=garden] :is(.description,.small-note,.status-line,.garden-top,.garden-bottom,.chapter-overline,.journey-heading,.back,.edition,.arrival-label,.clock-copy span,.heart-card p,.legend,.track span,.timeline-label,.volume,.prototype,#failure-summary){color:#645367}
html[data-theme=light][data-surface=garden] :is(.heart-card,.section-clock){background:#fffaf7;border-color:#c9b7c5}
html[data-theme=light][data-surface=garden] :is(.intro,h1 em,.heart-card strong,.clock-copy strong,.hint-message,#journey-phrase){color:#703a5e}
html[data-theme=light][data-surface=garden] #encounter-results li{background:#fffaf7;color:#645367;border-color:#bba7b8}
html[data-theme=light][data-surface=garden] #encounter-results .success{background:#deedde;color:#28503a}
html[data-theme=light][data-surface=garden] #encounter-results .failed{background:#f2dce3;color:#7c2f4b}
html[data-theme=light][data-surface=scene] :is(header,footer){background:#fffaf7ed;color:#302936;border-color:#c6b5c2}
html[data-theme=light][data-surface=scene] :is(.panel,#chapter){background:#fffaf7ed;border:1px solid #c9b7c5;border-radius:18px;padding:22px;max-width:calc(100% - 40px)}
html[data-theme=light][data-surface=scene] :is(.panel p,.panel small,#instruction,.edition,.progress-copy,.song small,.volume){color:#645367;text-shadow:none}
html[data-theme=light][data-surface=scene] :is(.panel h1,#chapter h1){color:#302936;text-shadow:none}
html[data-theme=light][data-surface=scene] :is(.panel h1 em,#flowers,#flowers span){color:#823666}
@media(max-width:600px){.jd-theme-switch{width:31px;height:31px;font-size:18px;margin-left:0}html:not([data-surface=home]) .jd-has-language{flex-wrap:wrap;height:auto;min-height:76px;padding-top:12px;padding-bottom:12px;gap:10px}html:not([data-surface=home]) .jd-has-language .brand{margin-right:auto}html:not([data-surface=home]) .jd-has-language :is(.back-album,.site-link,.back){order:5;flex-basis:100%;text-align:right}html:not([data-surface=home]) body.playing .jd-has-language{flex-wrap:nowrap;min-height:65px}html:not([data-surface=home]) body.playing .jd-has-language .back-album{flex-basis:auto}.jd-has-language .jd-language-switch{margin-left:0!important}html[data-theme=light][data-surface=scene] .panel{left:5%;padding:18px}}

html[data-theme=light] [data-game-link]{color:#823666!important;border-color:#a16c91!important;background:#f0e2ed}
html[data-theme=light] :is(.jd-language-options button,.jd-language-switch,.jd-language-close):focus-visible{outline-color:#823666!important}

html[data-theme=dark] .universe .eyebrow{color:#626357}
html[data-theme=dark][data-surface=experiences] footer{color:#93889d}
html[data-surface=game] body:has(#menu){display:grid;grid-template-rows:auto minmax(0,1fr);height:100dvh}
html[data-surface=game] #menu{min-height:0}
