@font-face{font-family:Noto Sans Runic;font-style:normal;font-display:swap;font-weight:400;src:url(./noto-sans-runic-runic-400-normal-BZc_rAOQ.woff2) format("woff2"),url(./noto-sans-runic-runic-400-normal-DYBj2eoI.woff) format("woff")}:root{color-scheme:dark;--panel-bg: rgba(24, 26, 29, .82);--panel-border: rgba(255, 255, 255, .14);--text: #e6e4df;--muted: #a3a19b;--accent: #c9a25a}*{box-sizing:border-box}html,body{margin:0;height:100%;overflow:hidden;background:#1b1c1e;color:var(--text);font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;font-size:14px}#game{position:fixed;inset:0;width:100%;height:100%;display:block;cursor:crosshair;touch-action:none}#hud{position:fixed;top:10px;left:10px;right:10px;display:flex;gap:10px;align-items:flex-start;justify-content:space-between;pointer-events:none}.panel{pointer-events:auto;background:var(--panel-bg);border:1px solid var(--panel-border);border-radius:6px;padding:8px 12px;backdrop-filter:blur(4px)}#title-panel{display:flex;flex-direction:column;gap:2px;width:232px}#title{font-family:Georgia,Times New Roman,serif;font-size:20px;letter-spacing:.06em;color:var(--accent)}#date,#hover{color:var(--muted);font-variant-numeric:tabular-nums}#speed-panel{display:flex;gap:4px;padding:6px}#speed-panel button{min-width:44px;height:32px;border:1px solid var(--panel-border);border-radius:4px;background:transparent;color:var(--text);font-size:12px;cursor:pointer}#speed-panel button:hover{background:#ffffff14}#speed-panel button.active{background:var(--accent);border-color:var(--accent);color:#1b1c1e}#info-panel{min-width:230px;text-align:right;font-variant-numeric:tabular-nums;line-height:1.45}#hover{margin-top:4px;padding-top:4px;border-top:1px solid var(--panel-border)}#gains{margin-top:4px;padding-top:4px;border-top:1px solid var(--panel-border);font-size:13px;line-height:1.5;color:var(--muted)}#gains .gain{display:block}#gains .gain b{color:var(--text);font-weight:600}#gains .gain .effect{opacity:.85}#gains .gain.want{color:#e0a07c}.warn{color:#e0705c!important}#bottom{position:fixed;left:0;right:0;bottom:8px;display:flex;flex-direction:column;align-items:center;gap:6px;pointer-events:none}#build-bar{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;padding:6px;max-width:calc(100vw - 20px)}#build-bar button{display:flex;flex-direction:column;align-items:center;gap:1px;min-width:92px;padding:5px 10px;border:1px solid var(--panel-border);border-radius:4px;background:transparent;color:var(--text);font:inherit;cursor:pointer}#build-bar button .cost{font-size:11px;color:var(--muted)}#build-bar button:hover{background:#ffffff14}#build-bar button.active{background:var(--accent);border-color:var(--accent);color:#1b1c1e}#build-bar button.active .cost{color:#3a2f18}#build-bar button.unaffordable:not(.active){opacity:.5}#help{color:var(--muted);font-size:12px;text-align:center;text-shadow:0 1px 2px #000}#season{color:var(--muted);font-size:12px;font-variant-numeric:tabular-nums}#left-stack{display:flex;flex-direction:column;align-items:flex-start;gap:8px;pointer-events:none}#log{display:flex;flex-direction:column;gap:3px;max-width:320px;pointer-events:none;font-size:13px;text-shadow:0 1px 2px #000}#log div{background:#181a1d99;border-left:3px solid var(--muted);border-radius:3px;padding:3px 8px}#log div.good{border-left-color:#7fae5a}#log div.bad{border-left-color:#e0705c;color:#f0b3a8}#log div:nth-last-child(n+3){opacity:.6}#overlay{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;background:#0a0b0c99;padding:20px}#overlay[hidden]{display:none}#overlay .card{max-width:460px;background:#222427;border:1px solid var(--panel-border);border-radius:8px;padding:24px 28px;box-shadow:0 12px 40px #00000080}#overlay h2{margin:0 0 12px;font-family:Georgia,Times New Roman,serif;font-weight:400;font-size:26px;letter-spacing:.04em;color:var(--accent)}#overlay p{margin:0 0 10px;line-height:1.5}#overlay-buttons{display:flex;gap:8px;justify-content:flex-end;margin-top:18px}#overlay-buttons button{padding:8px 16px;border:1px solid var(--panel-border);border-radius:4px;background:transparent;color:var(--text);font:inherit;cursor:pointer}#overlay-buttons button:hover{background:#ffffff14}#overlay-buttons button.primary{background:var(--accent);border-color:var(--accent);color:#1b1c1e}#action-row{display:flex;align-items:stretch;justify-content:center;gap:8px;max-width:calc(100vw - 20px)}#build-bar button{min-width:80px;padding:5px 8px}#bell{color:var(--text);font:inherit;cursor:pointer;border-color:#e0705c99;white-space:nowrap}#bell:hover{background:#783228d9}#bell.active{background:#b23a2e;border-color:#e0705c;color:#fff}#speed-panel #mute{min-width:78px;margin-left:6px}#speed-panel #mute.off{color:var(--muted)}#info-panel{min-width:270px}#place{font-family:Georgia,Times New Roman,serif;font-style:italic;color:var(--text)}#guide{position:fixed;top:62px;left:50%;transform:translate(-50%);max-width:min(520px,calc(100vw - 620px));min-width:300px;background:#1e201ce0;border:1px solid rgba(201,162,90,.5);border-radius:6px;padding:7px 12px;font-size:13px;line-height:1.4;pointer-events:none}#guide[hidden]{display:none}#guide .tag{color:var(--accent);font-size:11px;letter-spacing:.08em;text-transform:uppercase;margin-right:8px}#overlay .subtitle{margin-top:-6px;color:var(--muted);font-family:Georgia,Times New Roman,serif;font-style:italic}#overlay .card.title{text-align:center;padding:34px 36px 28px;border-color:#c9a25a73}#overlay .card.title h2{font-size:56px;letter-spacing:.14em;margin-bottom:14px;padding-bottom:12px;border-bottom:1px solid rgba(201,162,90,.4)}#overlay .card.title #overlay-buttons{justify-content:center}#overlay .card.title #overlay-buttons button{padding:10px 28px;font-size:16px}#overlay .field{display:flex;flex-direction:column;gap:6px;margin-top:16px;color:var(--muted);font-size:12px;letter-spacing:.06em;text-transform:uppercase}#overlay .field input{padding:8px 10px;border:1px solid var(--panel-border);border-radius:4px;background:#17181a;color:var(--text);font-family:Georgia,Times New Roman,serif;font-size:18px;text-align:center}#overlay .field input:focus{outline:none;border-color:var(--accent)}#overlay .card.choice #overlay-buttons{flex-direction:column}#overlay-buttons button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left}#overlay .card.title #overlay-buttons button,#overlay .card:not(.choice) #overlay-buttons button{align-items:center}#overlay-buttons .detail{color:var(--muted);font-size:12px}#overlay .card.choice #overlay-buttons button:hover{border-color:var(--accent)}#build-bar button{min-width:74px;padding:4px 6px 5px}#build-bar button img{width:30px;height:37px;pointer-events:none}#build-bar button .name{font-size:12px;white-space:nowrap}#build-bar button.unaffordable:not(.active) img{filter:grayscale(1)}#tooltip{position:fixed;transform:translate(-50%);max-width:300px;background:#181a1df5;border:1px solid rgba(201,162,90,.5);border-radius:6px;padding:8px 12px;font-size:13px;line-height:1.45;pointer-events:none;z-index:5}#tooltip[hidden]{display:none}#tooltip strong{display:block;color:var(--accent);font-weight:600;margin-bottom:3px}#tooltip div+div{color:var(--muted)}#overlay .card.saga{max-width:620px;width:100%}#overlay .card.saga #overlay-body{max-height:56vh;overflow-y:auto;padding-right:10px;font-family:Georgia,Times New Roman,serif;font-size:15px;line-height:1.6;user-select:text}#overlay .card.saga #overlay-body p:first-child:first-letter{font-size:2.6em;line-height:.9;float:left;padding:4px 6px 0 0;color:var(--accent)}#speed-panel #music{min-width:78px}#speed-panel #music.off{color:var(--muted)}#guide{top:64px}#map-corner{position:fixed;right:10px;bottom:calc(var(--bottom-height, 92px) + 18px);display:flex;align-items:flex-end;gap:8px;pointer-events:none}#zoom-panel{display:flex;flex-direction:column;gap:4px;padding:6px;pointer-events:auto}#zoom-panel button{width:36px;height:32px;border:1px solid rgba(201,162,90,.3);border-radius:4px;background:#ffe8be0d;color:var(--text);font-size:20px;line-height:1;cursor:pointer}#zoom-panel button:hover{background:#ffe2aa24}#minimap{display:block;width:clamp(220px,21vw,300px);height:auto;pointer-events:auto;border:1px solid var(--panel-border);border-radius:4px;background:#1b1c1e;cursor:pointer;image-rendering:pixelated;touch-action:none}@media (max-width: 900px),(max-height: 560px){#minimap{display:none}}#overlay .options{display:flex;gap:6px;justify-content:center}#overlay .options button{flex:1;padding:7px 10px;border:1px solid var(--panel-border);border-radius:4px;background:transparent;color:var(--text);font:inherit;font-size:14px;letter-spacing:0;text-transform:none;cursor:pointer}#overlay .options button.active{background:var(--accent);border-color:var(--accent);color:#1b1c1e}#overlay .field .blurb{text-transform:none;letter-spacing:0;font-size:13px;min-height:1.3em}#overlay-buttons button:disabled{opacity:.4;cursor:not-allowed}#overlay .card.title{max-height:94vh;overflow-y:auto;padding:26px 34px 22px}#overlay .card.title h2{font-size:50px;margin-bottom:10px;padding-bottom:8px}#title,#place,#overlay h2{font-family:Georgia,Times New Roman,Noto Sans Runic,Segoe UI Historic,serif}#overlay h2.runes{letter-spacing:.08em}#overlay .option-rows{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}#overlay .option-rows .field:first-child{grid-column:1 / -1}#overlay .option-rows .field{margin-top:12px}#overlay .card.title{max-width:500px}#overlay .card.title p{margin-bottom:7px;font-size:13.5px}#overlay .options select{flex:1;min-width:0;padding:7px 8px;border:1px solid var(--panel-border);border-radius:4px;background:#17181a;color:var(--text);font:inherit;font-size:14px;cursor:pointer}#overlay .options select.active{border-color:var(--accent);color:var(--accent)}#overlay .before-after{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:4px 0 16px}#overlay .before-after figure{margin:0}#overlay .before-after canvas{display:block;width:100%;height:auto;image-rendering:pixelated;border:1px solid var(--panel-border);border-radius:4px}#overlay .before-after figcaption{margin-top:6px;font-size:12px;letter-spacing:.06em;text-transform:uppercase;text-align:center;opacity:.7}:root{--panel-bg: linear-gradient(180deg, rgba(52, 38, 27, .94), rgba(31, 23, 17, .94));--panel-border: rgba(201, 162, 90, .42);--text: #f1e8d6;--muted: #b9a98d;--accent: #e0b45c;--red: #b8402e;--sea: #3d7f97;--green: #86b75c;--braid: repeating-linear-gradient( 90deg, #2a5f7c 0 16px, #f2ede0 16px 19px, #b8402e 19px 25px, #f2ede0 25px 28px )}.panel,#overlay .card,#tooltip{position:relative;background:var(--panel-bg);border:1px solid var(--panel-border);box-shadow:inset 0 1px #ffe2aa1a,0 6px 18px #00000073}.panel:before,#overlay .card:before{content:"";position:absolute;left:-1px;right:-1px;top:-1px;height:4px;border-radius:6px 6px 0 0;background:var(--braid)}.panel{padding-top:11px}#title{font-size:22px;text-shadow:0 1px 0 rgba(0,0,0,.5)}#year{--summer: 60%;position:relative;height:7px;margin-top:6px;min-width:170px;border-radius:4px;background:linear-gradient(90deg,#6fa64a 0,#d9b24c calc(var(--summer) - 6%),#9fc4d8 calc(var(--summer) + 2%),#e6f0f5);box-shadow:inset 0 0 0 1px #00000059}#year-now{position:absolute;top:-3px;width:4px;height:13px;margin-left:-2px;border-radius:2px;background:#fff8e6;box-shadow:0 0 0 1px #0009}#info-panel{text-align:left;width:272px;min-width:0;max-width:calc(100vw - 20px)}.stock{display:flex;align-items:center;gap:8px;padding:2px 0;font-size:15px;font-variant-numeric:tabular-nums}.stock:before{content:"";flex:none;width:20px;height:20px;background:center / contain no-repeat}.stock .rate{margin-left:auto;padding-left:12px;font-size:13px;color:var(--green)}.stock .rate.warn{color:#f08a72!important}.stock.food:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M2 10c3-5 9-5 12 0-3 5-9 5-12 0z' fill='%23e9a13b'/%3E%3Cpath d='M13 10l5-4v8z' fill='%23d98a2b'/%3E%3Ccircle cx='5.5' cy='9' r='1' fill='%232a1c10'/%3E%3C/svg%3E")}.stock.wood:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Crect x='2' y='4' width='15' height='5.5' rx='2.7' fill='%23a8703c'/%3E%3Ccircle cx='15' cy='6.75' r='2.2' fill='%23e3c08a'/%3E%3Crect x='3' y='11' width='15' height='5.5' rx='2.7' fill='%238a5a2e'/%3E%3Ccircle cx='16' cy='13.75' r='2.2' fill='%23e3c08a'/%3E%3C/svg%3E")}.stock.settlers:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Ccircle cx='10' cy='5.5' r='3.3' fill='%23e8c9a0'/%3E%3Cpath d='M4 18c0-5 2.5-8 6-8s6 3 6 8z' fill='%234f8fb0'/%3E%3C/svg%3E")}.stock.land:before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M1 17c3-6 6-8 9-8s6 2 9 8z' fill='%2378a94e'/%3E%3Crect x='9.3' y='2' width='1.4' height='9' fill='%23e8dcc0'/%3E%3Cpath d='M10.7 2.4l6 2-6 2.2z' fill='%23b8402e'/%3E%3C/svg%3E")}#hover{margin-top:6px;padding-top:6px;font-size:13px}#speed-panel button{background:#ffe8be0d;border-color:#c9a25a4d}#speed-panel button:hover,#build-bar button:hover{background:#ffe2aa24}#speed-panel button.active,#build-bar button.active,#overlay-buttons button.primary,#overlay .options button.active{background:linear-gradient(180deg,#ecc571,#c9973f);border-color:#f3d58e;color:#2a1c0e}#build-bar button{background:#ffe8be0d;border-color:#c9a25a47}#build-bar button .cost{color:#d9b98a}#build-bar button.active .cost{color:#4a3414}#build-bar button.unaffordable:not(.active){opacity:1}#build-bar button.unaffordable:not(.active) .name{color:var(--muted)}#build-bar button.unaffordable:not(.active) .cost{color:#f08a72}#bell{background:linear-gradient(180deg,#8d3125,#5e1f18);border-color:#d9705c;color:#ffe9c9;font-weight:600;padding-left:18px;padding-right:18px}#bell:hover{background:linear-gradient(180deg,#a63b2d,#71261d)}#bell.active{background:linear-gradient(180deg,#e0503c,#b23a2e);border-color:#ffd0a8;animation:bell-ring .9s ease-in-out infinite}@keyframes bell-ring{50%{box-shadow:0 0 0 6px #e0503c4d}}#speed-panel button.waiting{border-color:#ffd0a8;color:#fff3df;animation:play-waiting 1.1s ease-in-out infinite}@keyframes play-waiting{50%{box-shadow:0 0 0 5px #c9a25a59;background:linear-gradient(180deg,#8a6a32,#5f4722)}}@media (prefers-reduced-motion: reduce){#bell.active,#speed-panel button.waiting{animation:none}#speed-panel button.waiting{box-shadow:0 0 0 3px #c9a25a73}}#guide{background:linear-gradient(180deg,#f0e3c6,#e2d1ac);border:1px solid #b89a5e;color:#2c2015;box-shadow:0 4px 14px #00000073}#guide .tag{color:#a23a28;font-weight:700}#log div{background:#261c14db;border-left-color:#c9a25a}#log div.good{border-left-color:var(--green)}#help{color:#e8dcc0;opacity:.85}#minimap{border:2px solid rgba(201,162,90,.6);box-shadow:0 6px 18px #00000073}#tooltip{position:fixed}#overlay{background:#0e0a089e}#overlay .card{border-color:#e0b45c8c;overflow:hidden}#overlay .card:before{height:6px}#overlay-buttons button,#overlay .options button,#overlay .options select{background:#ffe8be0f;border-color:#c9a25a66}#overlay .field input{background:#0000004d;border-color:#c9a25a66}#overlay .banner{margin:4px -36px 16px;height:132px;border-top:1px solid rgba(224,180,92,.5);border-bottom:1px solid rgba(224,180,92,.5)}#overlay .banner svg{display:block;width:100%;height:100%}#overlay .card.title h2{border-bottom:none;margin-bottom:6px;padding-bottom:0;text-shadow:0 2px 0 rgba(0,0,0,.45)}#overlay .card.title .subtitle{margin-top:0}#overlay .card.saga{background:linear-gradient(180deg,#f1e5c9,#e0cfa8);color:#2c2015;border-color:#b89a5e}#overlay .card.saga h2{color:#8f2f20}#overlay .card.saga #overlay-body p:first-child:first-letter{color:#a23a28}#overlay .card.saga #overlay-buttons button:not(.primary){color:#2c2015;border-color:#9c7f48;background:#5a3c1414}@media (max-width: 1180px){#build-bar{flex-wrap:nowrap;gap:3px;padding:9px 5px 5px}#build-bar button{min-width:0;flex:1 1 0;padding:3px 4px 4px}#build-bar button .name{font-size:11px}#build-bar button .cost{font-size:10px;white-space:nowrap}#bell{white-space:normal;max-width:110px;padding-left:10px;padding-right:10px}#help{display:none}#info-panel{min-width:210px}#guide{max-width:min(420px,calc(100vw - 520px));min-width:240px}}@media (max-width: 900px),(max-height: 600px){#minimap{display:none}}#overlay .card.credits{max-width:560px;width:100%}#overlay .card.credits #overlay-body{max-height:60vh;overflow-y:auto;padding-right:10px;user-select:text}#overlay .card.credits section+section{margin-top:14px}#overlay .card.credits h3{margin:0 0 4px;font-family:Georgia,Times New Roman,serif;font-weight:400;font-size:17px;color:var(--accent)}#overlay .card.credits p{margin:0 0 4px;font-size:14px}#overlay .card.credits .links{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:13px}#overlay .card.credits a{color:var(--accent)}#overlay .card.credits a:hover{color:var(--text)}#coach{position:fixed;transform:translate(-50%);width:max-content;max-width:min(320px,calc(100vw - 16px));background:linear-gradient(180deg,#f0e3c6,#e2d1ac);border:1px solid #b89a5e;border-radius:6px;color:#2c2015;box-shadow:0 4px 14px #00000073;padding:8px 12px;font-size:13px;line-height:1.4;z-index:4}#coach[hidden]{display:none}#coach:after{content:"";position:absolute;top:100%;left:var(--arrow, 50%);transform:translate(-50%);border:8px solid transparent;border-top-color:#e2d1ac}#coach .tag{display:block;color:#8a5a1c;font-size:11px;letter-spacing:.08em;text-transform:uppercase}#coach p{margin:2px 0 6px}#coach .coach-buttons{display:flex;justify-content:flex-end;gap:6px}#coach button{font:inherit;font-size:12px;padding:2px 9px;border-radius:4px;border:1px solid #b89a5e;background:transparent;color:#5a4426;cursor:pointer}#coach button.primary{background:#5f4722;border-color:#5f4722;color:#f1e8d6}#coach button:hover{filter:brightness(1.12)}#build-bar button.coached:not(.active),#bell.coached{animation:coached 1.4s ease-in-out infinite}@keyframes coached{50%{box-shadow:0 0 0 4px #e0b45c8c}}@media (prefers-reduced-motion: reduce){#build-bar button.coached:not(.active),#bell.coached{animation:none;box-shadow:0 0 0 3px #e0b45c8c}}
