:root{color-scheme:dark;font:14px/1.5 system-ui,sans-serif;background:#081f29;color:#f2eedc}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 10% 0,#284e45,transparent 55%),radial-gradient(ellipse at 100% 40%,#213d59,transparent 65%),#081f29}[hidden]{display:none!important}button,select,input{font:inherit}button,select{min-height:44px;border:1px solid #9bb7a552;border-radius:8px;padding:7px 10px;background:linear-gradient(#244c46,#153632);color:#f4dfb5;cursor:pointer}button:disabled{opacity:.45;cursor:default}button:hover:enabled{border-color:#f4d496;filter:brightness(1.12)}button:focus-visible,select:focus-visible,a:focus-visible,canvas:focus-visible,summary:focus-visible{outline:3px solid #ffe19d;outline-offset:3px}a{color:#ebd196;text-decoration:none}.divine-shell{max-width:1080px;margin:auto;padding:10px 16px}.game-header{display:flex;gap:14px;align-items:center;border-bottom:1px solid #b6ba922f;padding-bottom:9px}.game-header>a{font-size:12px}.game-header>div{margin-right:auto}.eyebrow{font-size:8px;letter-spacing:.15em;font-weight:650;color:#d8bf80}.game-header h1{font:500 28px/1.15 Georgia,serif;margin:3px 0;color:#fff0ce;letter-spacing:-.02em}.game-header nav{display:flex;gap:5px;flex-wrap:wrap}.game-header nav button{font-size:11px}.world-heading{display:flex;justify-content:space-between;align-items:center;gap:9px;margin:12px 0 9px}.world-heading p{margin:0}.world-heading h2{font:24px/1.2 Georgia,serif;margin:3px 0;color:#e2f0d7}.world-options{display:flex;gap:8px;align-items:center}.world-options label{display:grid;gap:2px;font-size:9px;color:#b9cec3}.world-options select{font-size:12px;padding:6px 9px}.world-options>span{font-size:12px;color:#efd195;min-width:44px;font-variant-numeric:tabular-nums}.faith-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.faith-stats>div{display:grid;grid-template-columns:1fr auto;gap:1px 8px;padding:9px 12px;border:1px solid #9dbeab36;border-radius:9px;background:linear-gradient(130deg,#163d3b,#0b2930);align-items:center}.faith-stats span{font-size:8px;letter-spacing:.08em;color:#c2d2c8}.faith-stats strong{grid-column:2;grid-row:1/3;font-size:23px;color:#9af4d6;font-variant-numeric:tabular-nums}.faith-stats>div:nth-child(2) strong{color:#ffacb8}.faith-stats small{font-size:9px;color:#a2c0b7}.faith-stats .mana-stat strong{font-size:19px;color:#ffe0a1}.mana-meter{height:4px;width:100%;background:#082025;border-radius:8px;overflow:hidden}.mana-meter i{height:100%;display:block;background:linear-gradient(90deg,#b697ff,#ffe0a1);border-radius:8px}.status{margin:8px 0;font-size:12px;color:#ffe0a1;min-height:18px}.divine-layout{display:grid;grid-template-columns:minmax(0,1fr) 285px;gap:10px;align-items:start}.world-panel,.command-panel{border:1px solid #c3bd843d;border-radius:13px;background:linear-gradient(135deg,#18433d,#0d2d32);box-shadow:0 12px 30px #0003;overflow:hidden}.world-panel{padding:9px}.map-toolbar{display:flex;justify-content:space-between;gap:8px;align-items:center;font-size:9px;color:#b8cfbf;margin-bottom:7px}.map-toolbar button{min-height:44px;font-size:10px;padding:5px 9px}.map-scroll{overflow:auto;border:1px solid #8dbbaf44;border-radius:10px;background:radial-gradient(ellipse at 45% 30%,#306b7c,#153848);overscroll-behavior:contain;scrollbar-color:#b7c69b #12343d;max-height:460px}canvas{display:block;width:100%;height:390px;touch-action:pan-x pan-y;image-rendering:pixelated}.tile-readout{min-height:27px;padding:7px 5px 2px;font-size:11px;color:#d6e3cb}.tile-readout b{color:#f4d99c}.mission{font-size:11px;line-height:1.5;color:#bdd3c3;margin:6px 4px}.command-panel{padding:12px}.panel-heading h2{font:21px Georgia,serif;margin:3px 0 11px;color:#f5ddb1}.follower-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.follower-modes button{padding:8px 3px;font-size:11px}.follower-modes small{display:block;font-size:8px;color:#bdd1bf;line-height:1.2;margin-top:4px}.follower-modes button[aria-pressed=true]{border-color:#99ecc8;background:#256553;color:#d5ffe9}.command-panel h3{font-size:12px;margin:15px 0 8px;color:#ebd2a1;display:flex;justify-content:space-between;align-items:center}.command-panel h3 span{font-size:9px;color:#a9c6b7;font-weight:400}.powers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.powers button{display:grid;justify-items:center;gap:2px;padding:7px 3px;font-size:9px;position:relative}.powers button .power-icon{font-size:20px;line-height:1.1;filter:drop-shadow(0 2px 2px #0004)}.powers button small{font-size:8px;color:#bfcdb6}.powers button[aria-pressed=true]{background:linear-gradient(135deg,#ffe4a5,#dfb569);color:#173a30;border-color:#ffedbb;box-shadow:0 0 14px #f8cb6722}.powers button[aria-pressed=true] small{color:#28513c}.powers button:disabled[aria-pressed=true]{opacity:.8}.tool-description{font-size:11px;color:#ffe0a1;background:#07272d99;border:1px solid #9cb1a536;padding:8px;border-radius:8px;min-height:53px;margin:9px 0}.micro-copy{font-size:10px;color:#b6cdbf;line-height:1.5}.power-unlocks{border-top:1px solid #aab98c33;padding-top:5px;font-size:10px;color:#b4cabc}.power-unlocks summary{min-height:44px;display:flex;align-items:center;cursor:pointer}.power-unlocks p{margin:5px 0;color:#c5d4b9}.power-unlocks b{color:#f0d097}.level-result{border:1px solid #e1ca8b88;background:#183f32;padding:12px;margin-top:10px;border-radius:9px}.level-result strong{font:22px Georgia,serif;color:#ffe2a1}.level-result p{font-size:11px;margin:7px 0}.level-result button{margin-right:5px}.primary{background:linear-gradient(#ffe6a6,#dfb469);color:#19352a;border-color:#fff0b9;font-weight:750}.chronicle{padding:6px 12px;margin-top:10px;border:1px solid #adc59c33;border-radius:9px;background:#0e302e;font-size:11px;color:#b9ccbd}.chronicle summary{min-height:36px;display:flex;align-items:center;cursor:pointer;color:#e9ce93}.chronicle ol{list-style:none;padding:0;margin:6px 0;max-height:155px;overflow:auto}.chronicle li{padding:5px 0;border-bottom:1px solid #acc19822}.chronicle time{color:#d3ba82;margin-right:8px}.save-note{font-size:10px;text-align:center;color:#a7bfb1;margin:8px 0}dialog{width:min(720px,calc(100vw - 24px));max-height:87dvh;overflow:auto;background:#123735;color:#e8edd8;border:1px solid #d5c38c88;border-radius:14px;padding:22px;box-shadow:0 30px 90px #0009}dialog::backdrop{background:#03191ede;backdrop-filter:blur(3px)}dialog h2{font:28px Georgia,serif;color:#ffe1a3;margin:5px 40px 13px 0}dialog h3{font-size:14px;color:#f5dcb0}dialog p{font-size:13px;color:#c6d6c6}.close{float:right;font-size:23px;min-width:44px;padding:3px}.level-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:13px 0}.level-grid button{display:grid;text-align:left;gap:3px;padding:10px}.level-grid button b{font-size:12px}.level-grid button>span{font-size:9px;letter-spacing:.1em;color:#f1d28b}.level-grid button small{font-size:9px;color:#bbd2c2}.level-grid button.current{border-color:#f4dba1;background:#2c5e4c}.campaign-buttons{display:flex;gap:7px;flex-wrap:wrap}.divine-shell:fullscreen{width:100%;max-width:none;background:#081f29;overflow:auto}.divine-shell:fullscreen>*{max-width:1100px;margin-inline:auto}
@media(max-width:760px){.divine-shell{padding:8px}.game-header{gap:8px;flex-wrap:wrap;padding-bottom:7px}.game-header h1{font-size:24px}.game-header nav{width:100%;display:grid;grid-template-columns:1.5fr repeat(4,1fr);gap:4px}.game-header nav button{font-size:10px;padding:5px 3px;min-width:0}.world-heading{margin:9px 0 7px}.world-heading h2{font-size:20px}.world-options{gap:5px}.world-options label{font-size:8px}.world-options select{font-size:11px;padding:5px;min-height:38px}.world-options>span{font-size:10px;min-width:32px}.faith-stats{gap:5px}.faith-stats>div{display:flex;flex-direction:column;align-items:flex-start;padding:7px;gap:1px}.faith-stats span{font-size:7px}.faith-stats strong{font-size:22px;line-height:1.2}.faith-stats .mana-stat strong{font-size:17px}.faith-stats small{font-size:8px}.mana-meter{margin-top:5px}.divine-layout{grid-template-columns:1fr;gap:8px}.world-panel{padding:7px}.map-scroll{max-height:350px}canvas{height:300px}.tile-readout{font-size:10px}.mission{font-size:10px;margin:5px 3px}.status{font-size:11px;margin:7px 0}.command-panel{padding:10px}.panel-heading{display:none}.follower-modes button{font-size:12px;min-height:45px}.follower-modes small{font-size:9px}.command-panel h3{margin:10px 0 7px}.powers{grid-template-columns:repeat(4,minmax(0,1fr));gap:5px}.powers button{font-size:10px;padding:6px 3px;min-height:61px}.powers button small{font-size:9px}.tool-description{margin:7px 0;min-height:0;padding:7px;font-size:11px}.command-panel>.micro-copy{margin:6px 0;font-size:10px}.power-unlocks summary{min-height:36px}.level-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.level-grid button{padding:8px}.level-result strong{font-size:20px}dialog{padding:17px}.chronicle{margin-top:8px}.save-note{font-size:9px}}
@media(max-width:360px){.world-heading h2{font-size:18px}.world-options label{font-size:7px}.world-options select{font-size:10px}.world-options>span{display:none}.map-toolbar{font-size:8px}.powers button{font-size:9px}}
@media(orientation:landscape) and (max-height:550px){.divine-layout{grid-template-columns:minmax(0,1fr) 265px}.game-header nav{width:auto;display:flex;margin-left:auto}.faith-stats>div{display:grid;padding:6px 9px}.faith-stats strong{font-size:20px}.map-scroll{max-height:340px}canvas{height:310px}.powers{grid-template-columns:repeat(3,minmax(0,1fr))}.powers button{min-height:54px}.panel-heading{display:none}.world-heading{margin:7px 0}.command-panel{padding:9px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}
/* Character portraits and clearer classic isometric world framing. */
.heroes-strip{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:8px}.hero-card{display:flex;align-items:center;gap:8px;border:1px solid #9dc9b944;border-radius:10px;padding:7px 9px;background:linear-gradient(125deg,#184942,#0e2d35);min-width:0}.hero-card>div{flex:1;min-width:0}.hero-portrait{width:43px;height:43px;flex:0 0 43px;border:1px solid #9ee4cf77;border-radius:10px;box-shadow:0 3px 8px #0003}.hero-card strong{display:block;font-size:12px;color:#cfffea}.hero-card span{display:block;font-size:10px;color:#c4d8c4;font-variant-numeric:tabular-nums}.hero-health{height:4px;background:#081f2c;border-radius:4px;overflow:hidden;margin-top:5px}.hero-health i{display:block;height:100%;width:100%;background:linear-gradient(90deg,#36bba4,#9dffe1)}.queen-card{background:linear-gradient(125deg,#502c43,#242d3c);border-color:#e69bad44}.queen-card .hero-portrait{border-color:#e69bad88}.queen-card strong{color:#ffbacb}.queen-card .hero-health i{background:linear-gradient(90deg,#c33964,#ff9fb9)}.queen-card .queen-role{font-size:8px;letter-spacing:.08em;color:#e5afbd;max-width:90px;text-align:right}.hero-card button{font-size:11px;padding:6px 10px;min-width:44px}.hero-card #move-shaman[aria-pressed=true]{background:linear-gradient(#b4f2d8,#77cbbd);color:#14382f;border-color:#d6ffe9;font-weight:750}.world-panel{border-color:#d9c79570;background:linear-gradient(140deg,#285850,#173945);box-shadow:inset 0 1px #ffefd622,0 14px 32px #0004}.map-scroll{border-color:#a6d2c766;background:radial-gradient(ellipse at 40% 20%,#3c8295,#244d68 65%,#16344a);box-shadow:inset 0 0 38px #08243366}.map-toolbar{color:#d8e7d5}.world-heading h2{color:#ffe7b7}.command-panel{background:linear-gradient(135deg,#254f42,#153a38);border-color:#c8c39855}.powers button{border-color:#b3caa255;box-shadow:inset 0 1px #ffffff0d}.powers button[aria-pressed=true]{box-shadow:0 0 0 1px #f4dda326,0 4px 12px #d9aa4333}.mission{color:#d1dfc7}.tile-readout{color:#d8e6d6}.status{line-height:1.4}.game-header h1{color:#fff1cd;text-shadow:0 2px 10px #091f2677}
@media(max-width:760px){.heroes-strip{gap:5px;margin-top:7px}.hero-card{gap:5px;padding:6px}.hero-portrait{width:33px;height:33px;flex-basis:33px;border-radius:8px}.hero-card strong{font-size:10px}.hero-card span{font-size:9px}.hero-card button{font-size:10px;padding:5px;min-height:44px;min-width:38px}.shaman-card{grid-column:1/-1}.queen-card{grid-column:1/-1}.queen-card .queen-role{max-width:none;font-size:8px}.hero-card #find-shaman{min-width:44px}.hero-health{max-width:210px}.queen-card .hero-portrait{width:30px;height:30px;flex-basis:30px}.map-scroll{max-height:390px}canvas{height:325px}.tool-description{font-size:11px}}
@media(min-width:480px) and (max-width:760px){.heroes-strip{grid-template-columns:1.2fr 1fr}.shaman-card,.queen-card{grid-column:auto}.queen-card .queen-role{display:none}}
@media(orientation:landscape) and (max-height:550px){.heroes-strip{grid-template-columns:1fr 1fr}.shaman-card,.queen-card{grid-column:auto}.queen-card .queen-role{display:none}}
