@import url('https://fonts.googleapis.com/css2?family=BIZ+UDPGothic&family=DotGothic16&display=swap');
/* Shared HOME materials; each world's existing composition remains in charge. */
:root{--home-paper:#e2e9e2;--home-desk:#c7d4cb;--home-ink:#364c45;--home-sub:#687d70;--home-edge:#8fa69877;--home-pixel:'DotGothic16',monospace;--home-body:'BIZ UDPGothic',sans-serif;--paper:var(--home-paper);--ink:var(--home-ink);--line:var(--home-edge);--accent:#9eb8a8;--display:var(--home-pixel);--body:var(--home-body)}
body{background-color:var(--home-paper)}body::after{content:"";position:fixed;inset:0;z-index:70;pointer-events:none;opacity:.075;background:repeating-linear-gradient(0deg,transparent 0 3px,#8fa69833 3px 4px)}button,a,input{accent-color:#a5bfac}button:not([aria-pressed=true]),a{border-radius:0}button:focus-visible,a:focus-visible,input:focus-visible{outline:2px dotted #8eaf9e;outline-offset:4px}
/* SEIAS */
.screen-site{--paper:var(--home-paper);--ink:var(--home-ink);--line:var(--home-edge);--display:var(--home-pixel);--body:var(--home-body)}.screen-site .site-nav{background:#dbe5dfed;border-bottom:1px dotted var(--home-edge)}.screen-site .site-logo{font:23px var(--home-pixel);letter-spacing:-.04em}.screen-site .site-nav nav{font:11px var(--home-pixel);letter-spacing:.02em;gap:15px}.screen-site .site-nav nav>a,.screen-site .music-toggle{padding:9px 12px;border:1px dotted var(--home-edge);background:#eef2ea55}.screen-site .masthead{background-color:#d5e1d9;background-image:linear-gradient(#a3b9ab15 1px,transparent 1px),linear-gradient(90deg,#a3b9ab15 1px,transparent 1px);border-bottom-style:dotted}.screen-site .masthead-title{font:clamp(42px,7vw,100px)/1.05 var(--home-pixel);letter-spacing:.01em}.screen-site .masthead-note{font:9px var(--home-pixel)}.screen-site .masthead-number{font:21px var(--home-pixel)}.screen-site .section-heading{border-bottom-style:dotted}.screen-site .section-heading h2{font:clamp(23px,3vw,40px)/1.2 var(--home-pixel);letter-spacing:.02em}.screen-site .world-stage{background-color:#dce5de}.screen-site .world-era-controls,.screen-site .stage-controls{border-bottom-style:dotted}.screen-site .world-era-controls button,.screen-site .era-switch button,.screen-site .faction-switch button,.screen-site .view-switch button{font-family:var(--home-pixel);border-style:dotted}.screen-site .world-era-controls button[aria-pressed=true]{background:#415c50;color:#edf1e8}.screen-site .world-chapter{background-color:#d6e2d9}.screen-site .world-scene{filter:saturate(.45)}.screen-site .world-read-more,.screen-site .record-button{border-style:dotted;font-family:var(--home-pixel)}.screen-site .nation{border:1px dotted #90a59866}.screen-site .nation.empire{background:#41584f;color:#e2ebe2}.screen-site .nation.kingdom{background:#e8ede3;color:#3b5043}.screen-site .character-stage{--stage:#3b534b;--text:#edf1e7;--soft:#c0d0c2;--edge:#b8cbbb66;--spot:#aec5b6}.screen-site .character-stage[data-side=kingdom]{--stage:#dce5d8;--text:#364c3e;--soft:#6a806b;--edge:#859c7d66;--spot:#a6b797}.screen-site .character-stage[data-side=neutral]{--stage:#c1d2cb;--text:#354f49;--soft:#6a8277;--edge:#7e9a8f66;--spot:#93b1a5}.screen-site .selected-roman{font-family:var(--home-pixel);font-size:clamp(30px,6vw,85px);line-height:1.1;letter-spacing:-.03em}.screen-site .entry-no,.screen-site .poster-stamp,.screen-site .portrait-choice,.screen-site .world-mini{font-family:var(--home-pixel)}.screen-site .portrait-choice{border-style:dotted}.screen-site .world-mini{background:#dce7dfed;border-top-style:dotted;color:#3b5349}.screen-site .dialog{background:var(--home-paper);border:1px dotted #8fa698}.screen-site .chat-section,.screen-site .soundtrack-section{background-color:#d8e3db}
/* ELDIAS */
body:has(.fantasy-world){--paper:#e2e9df;--paper-deep:#cedbce;--ink:#364e40;--sub:#6c806d;--gold:#9fbaa7;--gold-light:#d2e2cf;--deep:#3e564a;--night:#30483f;--line:#a9c2ae66;--body:var(--home-body);--display:var(--home-pixel);background:var(--night);color:var(--paper)}
.fantasy-world~.world-footer{background:#30483f;border-top-style:dotted}.fantasy-world .cover{background:#4c6556}.fantasy-world .continent-scene{filter:saturate(.55)}.fantasy-world .cover::before{background:linear-gradient(#34483b55,#354b4255 30%,#304b3bbd 80%,#30483f)}.fantasy-world .cover h1{font-family:var(--home-pixel);font-weight:400;letter-spacing:.04em;text-shadow:0 3px 15px #243b2c}.fantasy-world .line-link{border-style:dotted;background:#718d7555;color:var(--gold-light);font-family:var(--home-pixel)}.fantasy-world .line-link::before{border-style:dotted;opacity:.55}.fantasy-world .section-head h2,.fantasy-world .character-file h3{font-family:var(--home-pixel);font-weight:400;letter-spacing:.04em}.fantasy-world .section-mark{font-family:var(--home-pixel);opacity:.055}.fantasy-world #overview,.fantasy-world #heroes{background-color:#dce6dc;background-image:repeating-linear-gradient(0deg,transparent 0 3px,#93a78d09 3px 4px);color:#38503e}.fantasy-world .large-note{border-style:dotted;background:#edf2e34a;box-shadow:5px 6px #647b5d0d}.fantasy-world .large-note::before{border-style:dotted;opacity:.45}.fantasy-world .note-stack article{border-bottom-style:dotted}.fantasy-world .note-stack article::before{color:#7f997c}.fantasy-world #magic{background:radial-gradient(ellipse at 15% 35%,#59765e,#3d5a4d 65%,#344e43)}.fantasy-world .price-sheet{background:#e0e8d9;border-style:dotted;outline-style:dotted;box-shadow:6px 8px #253b2c22}.fantasy-world #places{background:#385348}.fantasy-world .city-preview,.fantasy-world .city-choice,.fantasy-world .tabs button{border-style:dotted}.fantasy-world .city-scene{filter:saturate(.65)}.fantasy-world .city-preview::after{background:linear-gradient(0deg,#2c483ff0,transparent 80%)}.fantasy-world .city-description h3{color:#e6eddb}.fantasy-world .character-screen{background:radial-gradient(ellipse at 75% 40%,#93af8d33,transparent 65%),#354e42}.fantasy-world .facts,.fantasy-world .character-tabs,.fantasy-world .character-tabs button,.fantasy-world .image-modes button{border-style:dotted}.fantasy-world .character-tabs button,.fantasy-world .image-modes button{background:#496553}.fantasy-world .independent-note,.fantasy-world .role{color:#c0d3bd}.fantasy-world .character-file>p:last-of-type{color:#d0ddc8}body:has(.fantasy-world)>header{background:#344d42eb;border-bottom:1px dotted #a1b69c55}body:has(.fantasy-world) .brand{font:23px var(--home-pixel);letter-spacing:-.04em}body:has(.fantasy-world) .area-nav{background:#3c5749e8;border-style:dotted}body:has(.fantasy-world) .eldias-audio-dock{background:#344f42f5;border-top-style:dotted}body:has(.fantasy-world) .eldias-audio-dock button{border-style:dotted}body:has(.fantasy-world) dialog{background:#e0e8d9;border-style:dotted;outline-style:dotted}body:has(.fantasy-world) .dialog-head{background:#e0e8d9;border-bottom-style:dotted}.magic-burst{color:#d2e9c4}
@media(max-width:800px){.screen-site .site-logo{font-size:20px}.screen-site .site-nav nav{font-size:9px;gap:8px}.screen-site .site-nav nav>a,.screen-site .music-toggle{padding:8px}.screen-site .masthead-title{font-size:43px}.screen-site .masthead-note{font-size:7px}.screen-site .selected-roman{font-size:clamp(28px,8vw,45px)}.fantasy-world .cover h1{font-size:clamp(26px,7vw,43px)}body:has(.fantasy-world) .brand{font-size:20px}.fantasy-world .character-file h3{font-size:21px}}

.screen-site .masthead-title{font-size:clamp(38px,5vw,64px);line-height:1.15}.fantasy-world .facts{border-width:1px 0}.fantasy-world .character-tabs{border-width:1px 0 0}@media(max-width:800px){.screen-site .masthead-title{font-size:36px}}

/* Keep pixel-font ascenders inside the fixed masthead. */
.screen-site .masthead{align-items:center;padding-top:8px;padding-bottom:8px}
.screen-site .masthead-title{font-size:40px;line-height:1.1}
.screen-site .masthead-note{font-size:8px;line-height:1.25;margin-top:3px}
@media(max-width:700px){.screen-site .masthead-title{font-size:30px;line-height:1.1}.screen-site .masthead-note{font-size:7px;line-height:1.2;margin-top:3px}}

/* Light paper sections need dark text after the HOME palette change. */
.screen-site .soundtrack-section,.screen-site .chat-section{color:var(--home-ink)}
.screen-site .soundtrack-section .section-heading,.screen-site .soundtrack-section .soundtrack-name,.screen-site .soundtrack-section .section-heading span,.screen-site .chat-section h2,.screen-site .chat-section p{color:var(--home-ink)}
.screen-site .soundtrack-section .section-heading{border-bottom-color:var(--home-edge)}
.screen-site .selected-name,.screen-site .selected-roman{overflow-wrap:anywhere}
