/* Alternate palettes. The original theme colors remain fallbacks. */
body.mode-screen.theme-monogatari.mn-night .sh-body {background:#211826!important;color:#f1e3d1!important}
body.mode-screen.theme-monogatari.mn-night :is(.profile-avatar,.friend-av) {background:#51323c!important;color:#f1dfae!important;border-color:#bc936d!important}
body.mode-screen.theme-monogatari.mn-night :is(.crit-edit,.crit-view,.note-box,.calc,.score3,.voter,.sw,.ac-drop,.ac-item) {background:#342438!important;color:#f1e3d1!important;border-color:#866671!important}
body.mode-screen.theme-monogatari.mn-night :is(.sc-head .ico,.profile-action i) {color:#e8c785!important}
body.mode-screen.theme-monogatari.mn-night .sheet svg text {fill:#e8d7c1!important}
body.mode-screen.theme-monogatari.mn-night .field select option {background:#211826;color:#f1e3d1}
body.mode-screen.theme-monogatari.mn-night .cv-line .track {background:#674756!important}
body.mode-screen.theme-monogatari.mn-night .cv-line .track i {background:#dfb46e!important}
body.theme-persona.p3-dark-hour .p3-scene {background-image:url('./persona-tartarus-v1.png');background-color:#06130b}
body.theme-persona.p3-dark-hour .p3-scene::before {background:linear-gradient(90deg,#020a0780,transparent 75%)}
body.theme-persona.p3-dark-hour :is(.p3-caustics,.p3-orbit,.p3-bubbles) {display:none}
body.theme-persona.p3-dark-hour .p3-shards i {background:#ddc570;clip-path:polygon(40% 0,60% 0,100% 100%,0 100%);opacity:.5}
body.theme-persona.p3-dark-hour .app-nav,body.theme-persona.p3-dark-hour .app-nav::before {background:#08170f!important;color:#e7d99d!important}
body.theme-persona.p3-dark-hour .app-nav {box-shadow:2px 0 0 #9f8c4b}
body.theme-persona.p3-dark-hour .brand-logo {filter:brightness(0) invert(1) sepia(.5)}
body.theme-persona.p3-dark-hour :is(.app-nav-btn,.nav-user b,.nav-user span,.nav-label,.app-nav::after) {color:#e7d99d!important}
body.theme-persona.p3-dark-hour .app-nav-btn.on {background:#c6b568!important;color:#07150b!important;box-shadow:4px 4px 0 #408d4a}
body.theme-persona.p3-dark-hour .app-nav-btn.on::after {background:#c6b568}
body.theme-persona.p3-dark-hour .nav-account {background:#0c2415!important;border-color:#766a3d!important}
body.theme-persona.p3-dark-hour .app-nav :is(button,input,a):focus-visible {outline-color:#f0d77c!important}
body.theme-persona.p3-dark-hour header::after {content:'TARTARUS / THE HIDDEN HOUR';color:#e8d588}
body.theme-persona.p3-dark-hour .p3-time {border-right:3px solid #e8cd6b;background:#05140de8}
body.theme-persona.p3-dark-hour .p3-hour {background:#d3bd6c!important;color:#07140c!important;border-color:#f1dd97!important}
body.theme-persona.p3-dark-hour .hero808 .h-title::after {content:' / TARTARUS';font-size:.75em}

/* Zero chapter: the screen archive after the last frame. */
body.mode-screen.theme-monogatari.mn-night {--mn-red:#a32c43;--mn-black:#100b13;--mn-paper:#ebddc7;--ink:#f5e7d5;--cream:#f5e7d5;--mut:#cdbcc5;--faint:#bfa8b5;--lime:#e3bc72;background:#100b13!important;color:#f5e7d5!important}
body.mode-screen.theme-monogatari.mn-night .app-main {background:linear-gradient(#100b1396,#100b13ed),url('./monogatari-shrine-night-v1.png') right top/cover fixed!important}
body.mode-screen.theme-monogatari.mn-night .app-nav {background:#120b16!important;border-color:#80634c}
body.mode-screen.theme-monogatari.mn-night .app-nav-btn.on {background:#943148!important;border-left:3px solid #e3bc72!important}
body.mode-screen.theme-monogatari.mn-night .mn-title-block {background:linear-gradient(145deg,#471c30,#180e20);border-right:1px solid #946948;color:#eed69c}
body.mode-screen.theme-monogatari.mn-night .mn-title {font-size:clamp(29px,3.5vw,56px);letter-spacing:-.055em}
body.mode-screen.theme-monogatari.mn-night .mn-signature {color:#a8495366}
body.mode-screen.theme-monogatari.mn-night .mn-still::before {background-image:url('./monogatari-shrine-night-v1.png');background-position:80% 45%;transform-origin:80% 45%}
body.mode-screen.theme-monogatari.mn-night .mn-dialog-art {background-image:url('./monogatari-shrine-night-v1.png');background-position:80% center}
body.mode-screen.theme-monogatari.mn-night .mn-still-label {color:#f2d696}
body.mode-screen.theme-monogatari.mn-night .mn-chapter-strip {background:#211526;color:#e9d9c7;border-top:1px solid #80634c}
body.mode-screen.theme-monogatari.mn-night :is(.mn-controls button,.mn-chapter b,.mn-chapter-prefix) {color:#e8c785}
body.mode-screen.theme-monogatari .mn-controls {flex-wrap:wrap;justify-content:flex-end}
body.mode-screen.theme-monogatari.mn-night .mn-cut {background:#1b101e;color:#eed399}
body.mode-screen.theme-monogatari.mn-night .mn-cut-mark {color:#ff8090}
body.mode-screen.theme-monogatari.mn-night :is(.showcase,.hero808,.profile-hero,.profile-panel,.friend-card,.quest-panel,.quest-create,.wait-form,.wait-game,.avatar-product,.theme-product,.section-head,.admin-bank,.row,.game-card,.sheet,.marathon-card,.marathon-admin,.marathon-empty) {background:#211826f2!important;color:#f1e3d1!important;border-color:#70515e!important;--ink:#f1e3d1;--cream:#f1e3d1;--mut:#c5b2bd;--faint:#bfa9b4;--lime:#e6bf79;--line:#70515e;--brd:#70515e;--glass:#332337;--glass2:#332337}
body.mode-screen.theme-monogatari.mn-night :is(.showcase,.hero808,.profile-hero,.profile-panel,.friend-card,.quest-panel,.quest-create,.wait-form,.wait-game,.avatar-product,.theme-product,.section-head,.admin-bank,.row,.game-card,.sheet,.marathon-card,.marathon-admin) :is(h1,h2,h3,p,b,span,small,label,div) {color:inherit!important;-webkit-text-fill-color:currentColor!important}
body.mode-screen.theme-monogatari.mn-night :is(.row:hover,.profile-stat,.trophy-medal,.quest-item,.score3 .c,.calc .c,.cv,.cv-box,.review-card,.ach,.ach.locked,.award-row,.marathon-card-head,.marathon-card-foot,.marathon-number,.marathon-route,.marathon-stop) {background:#342438!important;color:#f1e3d1!important;border-color:#866671!important}
body.mode-screen.theme-monogatari.mn-night :is(.row .rnk,.sc-cell b,.profile-stat b,.profile-level b,.score3 .c b,.calc .c b,.page-kicker,.profile-panel-title,.profile-handle,.marathon-kicker,.marathon-number b,.h-title) {color:#e8c785!important;-webkit-text-fill-color:#e8c785!important}
body.mode-screen.theme-monogatari.mn-night :is(.row .meta-row,.section-head p,.profile-bio,.theme-product p,.avatar-product p,.h-desc,.h-metrics,.marathon-admin-head p,.marathon-card-desc,.marathon-reward-note) {color:#cfbac5!important}
body.mode-screen.theme-monogatari.mn-night :is(.toolbar,.search) {background:transparent!important}
body.mode-screen.theme-monogatari.mn-night :is(input:not([type=range]):not([type=checkbox]),textarea,select,.search input,.flt) {background:#1a1120!important;color:#eee0ce!important;border-color:#866671!important;color-scheme:dark}
body.mode-screen.theme-monogatari.mn-night :is(input,textarea)::placeholder {color:#bda6b2!important}
body.mode-screen.theme-monogatari.mn-night .search i {color:#d3bfb2!important}
body.mode-screen.theme-monogatari.mn-night :is(.sh-head,.sh-foot,.profile-action,.quest-board,.mn-dialog,.mn-dialog-close) {background:#180e1e!important;color:#eddec8!important;border-color:#80634c!important}
body.mode-screen.theme-monogatari.mn-night .sc-head {border-color:#80634c}
body.mode-screen.theme-monogatari.mn-night :is(.sh-head h2,.mn-dialog-copy h2,.mn-dialog-copy p) {color:#f2dfb8!important}
body.mode-screen.theme-monogatari.mn-night :is(.mn-dialog-resume,.add-btn,.quest-submit,.save-btn,.award-save,.avatar-buy,.marathon-action) {background:#9c3047!important;color:#fff3de!important;border-color:#ce7484!important}
body.mode-screen.theme-monogatari.mn-night :is(.theme-preview-btn,.showcase-edit,.badge,.tchip,.marathon-member,.marathon-preset) {background:#382538!important;color:#efcf94!important;border-color:#987351!important}
body.mode-screen.theme-monogatari.mn-night .avatar-buy.equipped {background:#59473a!important;color:#ffe6ac!important;border-color:#c8a365!important}
body.mode-screen.theme-monogatari.mn-night :is(.dot-matrix,.ach .pg,.ach-bar) {background:#150f1d!important;border-color:#70515e}
body.mode-screen.theme-monogatari.mn-night .dot-matrix i {background:#473044}
body.mode-screen.theme-monogatari.mn-night :is(.dot-matrix i.fill,.ach .pg i,.ach-bar i,.marathon-meter span) {background:#d9ad66!important}
body.mode-screen.theme-monogatari.mn-night :is(.ach.unlocked,.trophy-medal.r-special) {background:#30212e!important;border-color:#d9ad66!important}
body.mode-screen.theme-monogatari.mn-night .trophy-medal.r-special :is(i,b) {color:#e8c785!important;-webkit-text-fill-color:#e8c785!important}
body.mode-screen.theme-monogatari.mn-night .ach .ic {background:#4b3340!important}
body.mode-screen.theme-monogatari.mn-night .ach .ic i {color:#e8c785!important;-webkit-text-fill-color:#e8c785!important}
body.mode-screen.theme-monogatari.mn-night .quest-board::before {content:'Письма из нулевой главы';color:#edd29b!important}
body.mode-screen.theme-monogatari.mn-night .marathon-stop.engine {background:#51323c!important;border-color:#c59668!important}
body.mode-screen.theme-monogatari.mn-night .marathon-stop .engine-cab span {color:#edcc96!important}
body.mode-screen.theme-monogatari.mn-night .marathon-stop .stop-dot {background:#e3bd79;border-color:#331c31}
@media(max-width:600px) {
  body.mode-screen.theme-monogatari .mn-controls {gap:10px;justify-content:space-between}
  body.mode-screen.theme-monogatari .mn-controls button {font-size:11px}
  body.mode-screen.theme-monogatari.mn-night .mn-title {font-size:clamp(18px,5.6vw,32px);margin-top:40px}
  body.mode-screen.theme-monogatari.mn-night .app-main {background-attachment:scroll!important}
}
body.theme-persona.p3-dark-hour {
  --p3-tone-000b34bb: #061b0bbb;
  --p3-tone-001952: #0a2b11;
  --p3-tone-002065: #0c3415;
  --p3-tone-00217d: #0f411a;
  --p3-tone-0038d466: #1a6e2c66;
  --p3-tone-0042b9: #166027;
  --p3-tone-020c3cdd: #08200ddd;
  --p3-tone-021c62: #0c3415;
  --p3-tone-03175e66: #0c321466;
  --p3-tone-03187922: #0f401a22;
  --p3-tone-03259418: #124e2018;
  --p3-tone-0343c1: #186629;
  --p3-tone-041e68: #0d3817;
  --p3-tone-041e69: #0d3917;
  --p3-tone-041e77: #0f401a;
  --p3-tone-044778: #0f401a;
  --p3-tone-051b60: #0c3415;
  --p3-tone-051b73: #0f3e19;
  --p3-tone-051e7355: #0f3e1955;
  --p3-tone-05216ecc: #0e3c18cc;
  --p3-tone-05237680: #0f401a80;
  --p3-tone-052573f2: #0f3e19f2;
  --p3-tone-05266e: #0e3c18;
  --p3-tone-05296d: #0e3b18;
  --p3-tone-0533bc: #176428;
  --p3-tone-061b5b: #0c3214;
  --p3-tone-061e69: #0d3a17;
  --p3-tone-061f68: #0d3917;
  --p3-tone-062479f2: #0f421bf2;
  --p3-tone-062573: #0f3f19;
  --p3-tone-06266c: #0e3b18;
  --p3-tone-06267ddd: #10441bdd;
  --p3-tone-06267deb: #10441beb;
  --p3-tone-06336c: #0e3b18;
  --p3-tone-063fc4: #19692a;
  --p3-tone-064cdd: #1c762f;
  --p3-tone-071647: #092810;
  --p3-tone-071e65: #0d3817;
  --p3-tone-072461: #0d3616;
  --p3-tone-073288: #114a1e;
  --p3-tone-0748d9: #1b742f;
  --p3-tone-0749d4: #1b722e;
  --p3-tone-0754df: #1c7730;
  --p3-tone-0754eb: #1d7d33;
  --p3-tone-082368: #0e3a17;
  --p3-tone-08276c: #0e3c18;
  --p3-tone-082864: #0d3817;
  --p3-tone-082879f2: #10431bf2;
  --p3-tone-082a8ee8: #124e1fe8;
  --p3-tone-0856c955: #196c2c55;
  --p3-tone-092668: #0e3b18;
  --p3-tone-092978: #10431b;
  --p3-tone-092b79: #10431b;
  --p3-tone-092b83: #11491d;
  --p3-tone-09409d: #145623;
  --p3-tone-0a2b78: #10431b;
  --p3-tone-0a3c92: #135121;
  --p3-tone-0b307d: #11471c;
  --p3-tone-0b3379: #10441c;
  --p3-tone-0c54d9: #1c7730;
  --p3-tone-0d3281: #114a1e;
  --p3-tone-0f49a3: #165c25;
  --p3-tone-104395: #145622;
  --p3-tone-104589: #134f20;
  --p3-tone-113a9c: #155a24;
  --p3-tone-123575: #10461c;
  --p3-tone-124293: #145622;
  --p3-tone-1244bc: #196b2b;
  --p3-tone-143773: #10461c;
  --p3-tone-143c83: #124e20;
  --p3-tone-15428b: #135321;
  --p3-tone-163a8c: #145422;
  --p3-tone-16408c: #145422;
  --p3-tone-164798: #155a24;
  --p3-tone-173f8c: #145422;
  --p3-tone-234b8d: #165a25;
  --p3-tone-244487: #175625;
  --p3-tone-244d7b: #174f23;
  --p3-tone-28e5ff22: #d9bf4e22;
  --p3-tone-2f63b9: #1e7632;
  --p3-tone-31538f: #1f5c2d;
  --p3-tone-365582: #23532d;
  --p3-tone-375682: #23532e;
  --p3-tone-3b5f9e: #266534;
  --p3-tone-426399: #2a6236;
  --p3-tone-42639e: #2a6537;
  --p3-tone-426ac2: #297e3b;
  --p3-tone-447ccb: #26883b;
  --p3-tone-4873bf: #2c7d3d;
  --p3-tone-4979c1: #2b7f3e;
  --p3-tone-4f7dbb: #2f7b40;
  --p3-tone-506b94: #335f3d;
  --p3-tone-518cce: #d8bc47;
  --p3-tone-518ddd: #dbc153;
  --p3-tone-52a7c0: #2f8141;
  --p3-tone-577fc0: #318243;
  --p3-tone-589cde: #dcc35a;
  --p3-tone-5bc4f5: #e1cb6f;
  --p3-tone-6999d2: #ddc55e;
  --p3-tone-6af9ff66: #e5d38466;
  --p3-tone-6da0dc: #dfc96a;
  --p3-tone-6feaff80: #e6d48880;
  --p3-tone-74cfff: #e6d489;
  --p3-tone-761b46: #77621a;
  --p3-tone-77b6f3: #e5d385;
  --p3-tone-7897c5: #ddc560;
  --p3-tone-79d2ff: #e6d489;
  --p3-tone-79f6ff: #e6d489;
  --p3-tone-7aceff: #e6d489;
  --p3-tone-80a2cc: #e0ca6c;
  --p3-tone-80f4ff99: #e6d48999;
  --p3-tone-80fbff0a: #e6d4890a;
  --p3-tone-80fbff33: #e6d48933;
  --p3-tone-8aeeff: #e6d489;
  --p3-tone-8cf7ff: #e6d489;
  --p3-tone-8dffff: #e6d489;
  --p3-tone-8fd3ff: #e6d8a8;
  --p3-tone-94feff14: #e7daac14;
  --p3-tone-95faff: #e7daad;
  --p3-tone-97b4df: #e6d489;
  --p3-tone-9fcaff: #e9deb5;
  --p3-tone-a0b8df: #e6d489;
  --p3-tone-a2faff: #eadfb7;
  --p3-tone-a2faff24: #eadfb724;
  --p3-tone-a2faff48: #eadfb748;
  --p3-tone-a3faff: #eadfb8;
  --p3-tone-a6faff: #ebe0ba;
  --p3-tone-a9ceff: #ece1bc;
  --p3-tone-aafaff: #ece2bd;
  --p3-tone-abfcff: #ece2be;
  --p3-tone-adffff: #ede3bf;
  --p3-tone-b1fbff88: #ede4c388;
  --p3-tone-b4ffff: #eee5c5;
  --p3-tone-b8d4fb: #eee5c5;
  --p3-tone-b8fcff: #efe6c8;
  --p3-tone-baffff: #efe7ca;
  --p3-tone-bcd6ff: #f0e8cb;
  --p3-tone-bdd2ef: #ede3bf;
  --p3-tone-c3deff: #f2ead0;
  --p3-tone-c5ddff: #f2ebd2;
  --p3-tone-c6e2ff: #f2ebd3;
  --p3-tone-c6fbff: #f2ebd3;
  --p3-tone-c7e3ff: #f2ecd4;
  --p3-tone-c9e3ff: #f3ecd5;
  --p3-tone-cefcff: #f4eed9;
  --p3-tone-cefdff: #f4eed9;
  --p3-tone-d2ebff: #f5efdc;
  --p3-tone-d3e5ff: #f5f0dd;
  --p3-tone-d4eaff: #f5f0de;
  --p3-tone-d6ebff: #f6f1df;
  --p3-tone-d9efff: #f6f2e2;
  --p3-tone-d9faff: #f6f2e2;
  --p3-tone-defcff: #f8f4e5;
  --p3-tone-dfeeff: #f8f4e6;
  --p3-tone-dfffff: #f8f4e6;
  --p3-tone-e1edff: #f8f5e8;
  --p3-tone-e1efff: #f8f5e8;
  --p3-tone-e3f3ff: #f9f5e9;
  --p3-tone-e3faff: #f9f5e9;
  --p3-tone-e4f6ff: #f9f6ea;
  --p3-tone-e5677b: #dfc66d;
  --p3-tone-e5f3ff: #f9f6eb;
  --p3-tone-e6f5ff: #f9f6ec;
  --p3-tone-e8fcff: #faf7ed;
  --p3-tone-e92443: #d4b239;
  --p3-tone-ecf7ff: #fbf8f0;
  --p3-tone-ed2849: #d5b440;
  --p3-tone-effbff: #fbf9f3;
  --p3-tone-f5fdff: #fdfcf7;
  --p3-tone-f6fdff: #fdfcf8;
  --p3-tone-ffcdd6: #f4eed8;
  --p3-tone-fff2a7: #ebe1bb;
}
