:root{color:#242a24;--ink:#242a24;--muted:#565e54;--forest:#293d32;--brass:#e4c283;--border:#d6d3c4;--paper:#faf8f0;background:#eeece3;font-family:Segoe UI,system-ui,sans-serif;line-height:1.45}*{box-sizing:border-box}body{min-width:290px;margin:0}p,h1,h2,h3{margin:0}button{font:inherit;cursor:pointer}button:focus-visible{outline-offset:3px;outline:3px solid #aa631e}button:disabled{cursor:default}.frame{width:min(100% - 48px,1120px);margin-inline:auto}h1,h2,h3,.identity{font-family:Georgia,Times New Roman,serif;font-weight:600;line-height:1.15}h1{letter-spacing:-.055em;font-size:clamp(1.7rem,4vw,2.8rem)}h2{letter-spacing:-.026em;font-size:1.6rem}h3{letter-spacing:-.02em;font-size:1.38rem}.context{color:#555e4d;letter-spacing:.13em;text-transform:uppercase;font-size:.73rem;font-weight:700}.meta{color:var(--muted);font-size:.79rem}button{background:var(--forest);border:1px solid var(--forest);color:#fffdf5;border-radius:5px;padding:.5rem .76rem;font-size:.83rem;font-weight:650}button:where(:not(.plot)):hover:not(:disabled){background:#3a5545;border-color:#3a5545}button:disabled{color:#63685e;background:#e9e6da;border-color:#dedacd}.secondary{color:#2e4637;background:0 0;border-color:#a7ad9e}.secondary:hover:not(:disabled){background:#e4e9dc;border-color:#536e59}.masthead{z-index:1;color:#f9f4e5;background:#252a22;border-bottom:2px solid #a68d58;position:sticky;top:0}.topline{border-bottom:1px solid #4b5044;grid-template-columns:1fr auto 1fr;align-items:center;gap:1rem;min-height:46px;display:grid}.identity{white-space:nowrap;align-items:center;gap:.75rem;font-size:1.35rem;display:flex}.seal{border:1px solid #d5ba7b;place-content:center;width:23px;height:23px;display:grid;transform:rotate(45deg)}.seal:after{content:"";border:1px solid #d5ba7b;width:8px;height:8px}.setting{color:#dbd3bc;justify-self:end;font-size:.82rem}.topline nav{gap:4px;display:flex}.topline nav button{color:#ded9c8;background:0 0;border-color:#0000;padding-inline:1.05rem}.topline nav button[aria-current]{color:#fff5d8;background:#3d4738;border-color:#5b614d}.topline nav button:hover{background:#3d4738;border-color:#5b614d}.readouts{justify-content:space-between;align-items:stretch;gap:1rem;padding-block:.44rem;display:flex}.stocks{flex:1;grid-template-columns:repeat(3,1fr);gap:1.15rem;display:grid}.stock{align-items:center;gap:.7rem;line-height:1.18;display:flex}.material{background:#41483d;border:1px solid #70796d;border-radius:6px;flex:none;width:34px;height:34px;position:relative}.material:before,.material:after{content:"";background:#a9a89a;border-radius:2px;position:absolute;inset:9px;transform:rotate(-12deg)}.material.art--blocks:after{background:#d5c6a9;inset:9px 5px 13px 15px;transform:rotate(0)}.material.art--blocks:before{background:#968a73;inset:14px 12px 8px 6px;transform:rotate(0)}.material.art--wood:before,.material.art--wood:after{background:#c59e68;inset:9px 6px 17px;transform:rotate(-18deg)}.material.art--wood:after{background:#a37a49;inset:16px 6px 10px}.stock-name,.stock small{color:#dfdac9;white-space:nowrap;font-size:.7rem;display:block}.stock small{color:#c9c1ab;margin-top:.13rem}.stock-numbers{color:#dfdac9;white-space:nowrap;font-size:.78rem}.stock-numbers strong{color:#fff7df;font-variant-numeric:tabular-nums;font-size:1.13rem}.trend{color:#dbd3be;margin-left:.55rem;font-size:.72rem}.trend.rising{color:#b6d2a0}.trend.falling{color:#f0b796}.family-total{text-align:left;color:#f2e8cc;background:#343c30;border-color:#60654f;align-items:center;gap:.75rem;padding:.18rem .85rem;line-height:1.13;display:flex}.family-total.available{border-color:#b29b68}.family-total>strong{color:var(--brass);font-family:Georgia,serif;font-size:1.9rem}.family-total small{font-size:.71rem;font-weight:400;display:block}.chapter{color:#343c30;background:#e3decc;border-bottom:1px solid #cac5b4;justify-content:center;align-items:center;gap:.55rem;min-height:34px;padding:.16rem .6rem;font-size:.79rem;line-height:1.12;display:flex}.chapter-title{white-space:nowrap;font-family:Georgia,serif;font-weight:700}.chapter-progress{color:#3c523d;font-variant-numeric:tabular-nums;background:#f5f1e4;border:1px solid #b2b39f;border-radius:100px;padding:.2em .46em}.objective,.chapter-recap{color:#2e4637;font-size:inherit;text-align:left;background:0 0;border-color:#0000;padding:.36rem .3rem;line-height:1.15}.objective:hover:not(:disabled),.chapter-recap:hover:not(:disabled){background:#f6f1e4;border-color:#c6c1ae}.chapter-recap{border-color:#b2b39f}.page{padding-block:.45rem .7rem}.page-heading{justify-content:space-between;align-items:center;gap:.5rem;margin-bottom:.42rem;display:flex}.queue{color:var(--forest);flex-wrap:wrap;align-items:baseline;gap:.15rem .5rem;font-size:.76rem;display:flex}.queue span{color:var(--muted)}time{white-space:nowrap;font-variant-numeric:tabular-nums}.queue time{background:#faf8ed;border:1px solid #d6d3c4;border-radius:3px;padding:0 .4em}.page--region .page-heading{margin-bottom:.8rem}.tiles{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;display:grid}.tile{background:var(--paper);border:1px solid var(--border);border-radius:6px;min-width:0;overflow:hidden}.tile.featured{grid-column:1/-1;grid-template-columns:34% minmax(0,1fr);display:grid}.tile-body{padding:.9rem 1rem 1rem}.tile-body h3{margin:.2rem 0 .45rem}.tile-body p{font-size:.87rem}.tile-body .context{font-size:.68rem}.tile .build-option>div>p,.tile .production p{font-size:.77rem}.build-option{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.5rem;margin-top:.65rem;display:flex}.build-option+.build-option{border-top:1px solid var(--border);padding-top:.55rem}.build-option strong{font-size:.86rem;display:block}.problem{color:#853b26;margin-top:.18rem}.working,.complete{color:#36583f;font-weight:650}.production{color:var(--muted);flex-wrap:wrap;gap:.18rem .55rem;margin-bottom:.55rem;font-size:.8rem;display:flex}.production strong{color:var(--ink)}.production p{flex-basis:100%}.placeholder{border-bottom:1px solid var(--border);isolation:isolate;background:#e4e4d5;justify-content:center;align-items:end;gap:7px;min-height:80px;padding:18px;display:flex;position:relative;overflow:hidden}.featured .placeholder{border-bottom:0;border-right:1px solid var(--border);align-items:center;min-height:130px;padding-top:35px}.placeholder:before{content:"";z-index:-1;background:repeating-linear-gradient(45deg,#0000 0 13px,#38403309 13px 14px);position:absolute;inset:0}.placeholder i{background:#a69e84;border:1px solid #655e4e;border-radius:1px;width:24px;height:26px;display:block}.placeholder i:nth-child(2){background:#c3ae88;width:49px;height:35px}.placeholder i:nth-child(3){background:#84796b;width:18px;height:22px}.art--quarry{background-color:#dddccf}.art--quarry i{clip-path:polygon(25% 7%,70% 0%,96% 28%,100% 84%,65% 100%,3% 84%,0% 50%)}.art--quarry i:nth-child(2){background:#a1a295;width:65px;height:45px}.art--forest{background:#dce5d2}.art--forest i{clip-path:polygon(50% 0,100% 84%,58% 84%,58% 100%,42% 100%,42% 84%,0 84%);background:#72866c;border:0;width:29px;height:37px}.art--forest i:nth-child(2){background:#526f58;width:45px;height:53px}.art--forest i:nth-child(3){background:#819275;width:21px;height:30px}.settlement-plan{--hex-width:clamp(54px, min(10vw, (100dvh - 373px) / 2.65), 120px);background:#d3cbb6;border:1px solid #bfb79f;border-radius:7px;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;padding:7px;display:grid}.district{--land:#e5e5d6;--edge:#b2b49d;--tile-edge:#a7ab96;--tile-fill:#f3f1e5;border:1px solid var(--edge);background:repeating-linear-gradient(130deg, transparent 0 15px, #514c3008 15px 16px), var(--land);border-radius:4px;align-content:start;gap:4px;min-width:0;padding:5px 5px 8px;display:grid}.district--court{--land:#dce5d5;--edge:#95a58d;--tile-edge:#a0ad98;--tile-fill:#edf0e3;grid-column:1/-1}.district--craft{--land:#ece0cb;--edge:#baaa8c;--tile-edge:#b2a183;--tile-fill:#f6ecda;grid-column:1/-1}.district--civic{--land:#e9e3d6;--edge:#bcb29b;--tile-edge:#b3a68e}.district-heading{justify-content:center;align-items:center;gap:.48rem;min-height:22px;display:flex}.district-heading h2{color:#364033;font-size:clamp(.88rem,1.65vw,1.19rem)}.district-heading span{border:1px solid var(--edge);color:#485043;white-space:nowrap;background:#faf8efb3;border-radius:100px;padding:.08rem .36rem;font-size:clamp(.64rem,1.1vw,.73rem);font-weight:600}.district-plots{flex-wrap:wrap;justify-content:center;align-items:center;gap:4px clamp(4px,.7vw,10px);width:100%;margin-inline:auto;display:flex}.plot{--hexagon:polygon(25% 0, 75% 0, 100% 50%, 75% 100%, 25% 100%, 0 50%);isolation:isolate;flex:0 0 var(--hex-width);width:var(--hex-width);aspect-ratio:1.15;padding:4px calc(var(--hex-width) * .1);color:#3b453a;text-align:center;background:0 0;border:0;border-radius:0;flex-direction:column;justify-content:center;align-items:center;gap:2px;font-size:clamp(.65rem,1.18vw,.85rem);line-height:1.05;display:flex;position:relative}.plot:before,.plot:after{content:"";z-index:-1;clip-path:var(--hexagon);position:absolute}.plot:before{background:var(--tile-edge);inset:0}.plot:after{background:var(--tile-fill);inset:1px}.plot:hover:before,.plot:focus-visible:before{background:#506750}.plot:hover:after,.plot:focus-visible:after{inset:2px}.plot:focus-visible{outline-offset:-2px}.plot--available{--tile-edge:#678d66;--tile-fill:#e6efdd;color:#234a2b}.plot--built{--tile-edge:#647d65;--tile-fill:#dce9d5;color:#273f2e}#plot-central:not(.plot--working){--tile-edge:#66774f;--tile-fill:#e9e5c4}.plot--working{--tile-edge:#a1864e;--tile-fill:#f5e8c9}.plot strong{max-width:100%}.plot small{color:#4a5447;font-variant-numeric:tabular-nums;white-space:nowrap;font-size:clamp(.6rem,1.05vw,.74rem);font-weight:600}.hex-art{color:#656c61;place-items:center;height:clamp(15px,2.7vw,28px);font-size:clamp(1.25rem,2.9vw,2rem);font-weight:400;line-height:.8;display:grid;position:relative}.plot--available .hex-art{color:#2f6938;font-weight:650}.hex-art--central,.hex-art--house,.hex-art--masonry,.hex-art--workshop{background:#ac9470;border:1px solid #77674a;border-radius:2px;width:clamp(17px,2.6vw,31px);height:clamp(12px,2vw,22px);margin:3px 0}.hex-art--central:before,.hex-art--house:before{content:"";clip-path:polygon(50% 0,100% 100%,0 100%);background:#48604a;height:45%;position:absolute;inset:-35% -19% auto}.hex-art--central:after,.hex-art--house:after{content:"";background:#564f3e;border-radius:5px 5px 0 0;height:55%;position:absolute;inset:auto 34% 0}.hex-art--masonry{background:repeating-linear-gradient(#807663 0 2px,#c0b49a 2px 6px)}.hex-art--workshop{background:repeating-linear-gradient(#856240 0 2px,#bc975e 2px 5px)}.hex-art--work{background:0 0;border:1.5px solid #846d41;border-radius:50%;width:clamp(13px,1.9vw,20px);height:clamp(13px,1.9vw,20px);margin:1px 0}.hex-art--work:after{content:"";background:0 0;border-bottom:1.5px solid #846d41;border-left:1.5px solid #846d41;border-radius:0;height:auto;position:absolute;inset:18% 24% 43% 46%}.hex-art--work:before{content:none}#game-dialog{background:var(--paper);width:min(440px,100% - 24px);max-height:calc(100dvh - 24px);color:var(--ink);border:1px solid #a19a82;border-radius:8px;padding:0;box-shadow:0 18px 56px #22291c52}#game-dialog::backdrop{background:#232b256b}.dialog-body{padding:1rem 1.15rem 1.16rem;position:relative}.dialog-body #dialog-title{margin:.25rem 2rem .6rem 0}.dialog-body p{font-size:.88rem}.dialog-close{place-items:center;width:34px;height:34px;padding:0;font-size:1.35rem;line-height:1;display:grid;position:absolute;top:.7rem;right:.7rem}.plot-question,#plot-details+.roster{border-top:1px solid var(--border);margin-top:.75rem;padding-top:.7rem}.plot-question{color:#5b4b37}.plot-question strong{font-size:.8rem}.plot-options{margin:.45rem 0;padding-left:1.2rem;font-size:.87rem}.roster h3{margin-bottom:.3rem}.family{border-top:1px solid var(--border);margin-top:.55rem;padding-top:.55rem}.family p,.family small{color:var(--muted);font-size:.76rem}.family-actions{flex-wrap:wrap;gap:.3rem;margin-top:.35rem;display:flex}.family-actions button{padding:.28rem .48rem}.result p+p{margin-top:.4rem}.result h3{margin-top:.75rem;font-size:1.15rem}.summary-list{margin:.45rem 0 .75rem;padding-left:1.25rem}.feedback{background:#f3ead7;border:1px solid #d5bc8a;border-radius:5px;padding:.45rem .6rem;font-size:.8rem}#status{z-index:2;width:max-content;max-width:calc(100% - 24px);position:fixed;bottom:.7rem;left:50%;transform:translate(-50%)}#dialog-status{margin-top:.65rem}.error{padding-block:2rem}.error p{margin-block:1rem}.stocks--expanded{grid-template-columns:repeat(4,minmax(0,1fr));gap:.45rem}.development-plan{grid-template-columns:repeat(2,minmax(0,1fr))}.development-plan .district{grid-template-columns:minmax(0,1fr);align-content:start;min-width:0}.development-plan .district-heading{text-align:left;flex-direction:row}.development-plan .district-plots{flex-wrap:wrap;justify-content:center;max-width:none;display:flex}.development-plan .plot{position:relative}.decision-mark{color:#a12113;font-size:.95rem;font-weight:800;position:absolute;top:.18rem;right:24%}.plot--decision,.decision-button{box-shadow:inset 0 0 0 2px #a12113}.decision-button{color:#8d2116;background:#fff3e6}.decision-text{color:#8d2116;font-weight:680}.family-choice{border:0;margin:.7rem 0;padding:0}.family-choice legend{margin-bottom:.3rem}.choice-family{border-top:1px solid var(--border);cursor:pointer;align-items:start;gap:.55rem;padding:.38rem 0;display:flex}.choice-family small{color:var(--muted);display:block}.replacement-heading{margin-top:.9rem}.result [data-continue]{margin-top:.65rem}@media (width<=560px){.development-plan{grid-template-columns:minmax(0,1fr)}.development-plan .plot{width:var(--hex-width)}.stocks--expanded .stock{min-width:0}.stocks--expanded .stock-name{overflow-wrap:anywhere}}@media (width<=760px){.frame{width:calc(100% - 24px)}.topline{grid-template-columns:1fr auto}.setting{display:none}}@media (width<=560px){.settlement-plan{--hex-width:clamp(41px, min((100vw - 52px) / 4, (100dvh - 302px) / 5.3), 91px);grid-template-columns:1fr;gap:4px;padding:4px}.district{gap:2px;padding:2px 3px 4px}.district-heading{min-height:20px}.district-plots{max-width:calc(4 * var(--hex-width) + 12px);gap:3px 4px}}@media (width<=500px){.frame{width:calc(100% - 16px)}.identity{gap:.48rem;font-size:1.05rem}.seal{width:14px;height:14px}.topline{gap:.35rem;min-height:41px}.topline nav button{padding:.36rem .5rem}.readouts{gap:.35rem;padding-block:.33rem}.stocks{gap:.24rem}.stock{gap:0}.material{display:none}.stock-name,.stock small{font-size:.61rem}.stock-numbers{font-size:.64rem}.stock-numbers strong{font-size:.92rem}.trend{margin-left:.15rem;font-size:.6rem}.family-total{text-align:center;justify-content:center;gap:.2rem;padding:.15rem .28rem;font-size:.58rem;line-height:1.12}.family-total>strong{font-size:1.16rem}.family-total small{font-size:.56rem}.chapter{gap:.25rem;min-height:31px;font-size:.69rem}.chapter strong{text-align:center}.objective,.chapter-recap{padding-block:.16rem}.page{padding-block:.34rem .45rem}.page-heading{margin-bottom:.34rem}.queue{text-align:end;justify-content:end;gap:.04rem .25rem;font-size:.64rem}.queue span{display:none}.queue:has(time) span{display:inline}.plot{gap:1px}.plot strong{font-weight:660}.tiles,.tile.featured{grid-template-columns:1fr}.featured .placeholder{border-right:0;border-bottom:1px solid var(--border);min-height:85px}}@media (width<=360px){.readouts{gap:.22rem}.family-total{padding-inline:.2rem}.plot small{font-size:.53rem}}@media (width<=560px) and (height<=680px){.page-heading h1{font-size:1.35rem}.district{padding-block:1px 2px}.district-heading{min-height:18px}.plot{height:calc(var(--hex-width) / 1.15);padding:2px 3px;font-size:.61rem}.hex-art{height:12px}.hex-art--central,.hex-art--house{margin-block:2px 1px}}@media (height<=530px) and (width>=570px){.topline{min-height:36px}.readouts{padding-block:.2rem}.chapter{min-height:29px}.page{padding-block:.3rem}.page-heading h1{font-size:1.45rem}.settlement-plan{--hex-width:clamp(41px, min((100vw - 203px) / 8.5, (100dvh - 231px) / 2.65), 87px);grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px}.district{gap:2px;padding-block:1px 3px}.district--court,.district--craft{grid-template-columns:128px 1fr;align-items:center}.district--court .district-heading,.district--craft .district-heading{text-align:center;flex-direction:column;gap:.18rem}.district-heading h2{font-size:.79rem}.district-heading span{font-size:.62rem}.district-plots{gap:3px;max-width:none}.plot{height:calc(var(--hex-width) / 1.15);padding:2px 3px;font-size:.61rem}.plot small{font-size:.56rem}.hex-art{height:12px;font-size:1.25rem}}
