/* Fonts use local system fallbacks; the game makes no external font requests. */

:root{--paper:#f7f5ef;--surface:#fffefa;--ink:#262b30;--muted:#737772;--line:#e5e3d9;--gold:#bd8a43;--gold-light:#f3e8d2;--sidebar:#1e2228;--teal:#557a70;--danger:#a45142;--serif:'Cormorant Garamond',Georgia,serif;--sans:'DM Sans',system-ui,sans-serif;color-scheme:light;font-family:var(--sans);font-size:16px;color:var(--ink);background:var(--paper)}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button{color:inherit}a{color:inherit;text-decoration:none}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid var(--gold);outline-offset:4px}button{border:0}svg.icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.65;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}h1,h2,h3,p{margin:0}.eyebrow{font-size:.75rem;letter-spacing:.16em;font-weight:700;color:var(--muted)}.topbar{height:86px;background:var(--surface);display:flex;align-items:center;border-bottom:1px solid var(--line);padding:0 32px;gap:36px}.brand{display:flex;gap:13px;align-items:center;min-width:226px}.brand-mark{font-size:47px;line-height:1;color:var(--gold);font-family:Georgia,serif}.brand strong{font-family:var(--serif);font-size:1.5rem;letter-spacing:.16em;font-weight:600}.brand small{display:block;font-size:.625rem;letter-spacing:.22em;color:var(--gold);margin-top:2px}.dynasty-label{border-left:1px solid var(--line);padding-left:28px;display:grid;gap:4px;font-size:.875rem}.dynasty-label .eyebrow{font-size:.625rem}.header-actions{margin-left:auto;display:flex;align-items:center;gap:12px}.save-indicator{font-size:.75rem;color:var(--muted);margin-right:8px}.save-indicator::before{content:'';display:inline-block;width:5px;height:5px;border-radius:50%;background:var(--teal);margin-right:7px}.save-indicator.error{color:var(--danger)}.save-indicator.error::before{background:var(--danger)}.icon-button{background:transparent;width:38px;height:38px;display:grid;place-items:center;border-radius:7px}.icon-button:hover{background:var(--gold-light)}.resource-bar{background:var(--surface);display:grid;grid-template-columns:repeat(6,1fr);padding:19px 30px;border-bottom:1px solid var(--line);gap:20px}.resource-item{display:flex;align-items:center;gap:12px;border-right:1px solid var(--line);padding-right:12px}.resource-item:last-child{border:0}.resource-icon{width:40px;height:40px;display:grid;place-items:center;color:var(--gold);background:#f4eee1;border-radius:9px}.resource-icon.food{color:var(--teal);background:#eaf0e9}.resource-icon.faith{color:#8570a0;background:#f0eaf5}.resource-text{flex:1;min-width:0}.resource-text small{display:block;font-size:.75rem;color:var(--muted);margin-bottom:2px}.resource-number{font-size:1.125rem;font-weight:600;font-variant-numeric:tabular-nums}.resource-rate{font-size:.6875rem;color:var(--teal);margin-left:6px;white-space:nowrap}.resource-rate.negative{color:var(--danger)}.app-layout{display:grid;grid-template-columns:226px minmax(0,1fr);min-height:calc(100vh - 167px)}.sidebar{background:var(--sidebar);color:#c5c9c9;display:flex;flex-direction:column;padding:34px 18px 20px}.sidebar-caption{font-size:.625rem;letter-spacing:.19em;margin:0 14px 17px;color:#81888e}.nav-item{display:flex;align-items:center;gap:12px;background:transparent;border-radius:7px;padding:13px 14px;width:100%;text-align:left;font-size:.875rem;color:#a8b0b5;margin-bottom:4px}.nav-item.active{background:#343431;color:#ead2a7}.nav-item:hover{background:#2c3037;color:#f0e6d5}.nav-item .icon{width:19px;height:19px}.nav-badge{font-size:.6875rem;background:#46443b;color:#dcc69e;border-radius:5px;padding:2px 6px;margin-left:auto}.sidebar-separator{height:1px;background:#353940;margin:26px 13px}.kingdom-status{padding:0 13px}.status-title{display:flex;gap:6px;align-items:center;font-size:.75rem}.status-title .icon{width:15px;height:15px;color:#c2a577}.status-title strong{margin-left:auto;font-size:.75rem;color:#e6d8bd}.thin-progress{height:4px;border-radius:10px;background:#343a40;margin-top:12px;overflow:hidden}.thin-progress span{display:block;height:100%;background:#c6ab78;border-radius:10px;transition:width .4s}.kingdom-status p{color:#939b9f;font-size:.75rem;line-height:1.6;margin-top:10px}.cycle-card{display:flex;align-items:center;gap:10px;padding:20px 13px;line-height:1.5}.cycle-card>.icon{color:#c6ab78}.cycle-card strong{font-size:.75rem;font-weight:500}.cycle-card small{display:block;color:#828b93;font-size:.6875rem}.sidebar-footer{margin-top:auto;padding:40px 14px 8px;color:#838a90;text-align:center;font-size:.75rem;line-height:1.65}.tiny-star{display:block;font-size:20px;color:#b19260;margin-bottom:10px}main{padding:35px 36px 16px;min-width:0;max-width:1670px;width:100%}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:26px}h1{font-family:var(--serif);font-size:2.65rem;font-weight:600;margin:5px 0 4px;line-height:1.15}.page-heading p{font-size:.875rem;color:var(--muted);line-height:1.5}.season-pill{display:flex;align-items:center;gap:7px;font-size:.75rem;color:#8c744c;border:1px solid #dfd2b6;border-radius:20px;padding:7px 12px;white-space:nowrap}.season-pill .icon{width:15px;height:15px}.play-grid{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:22px}.card{border:1px solid var(--line);background:var(--surface);border-radius:10px;overflow:hidden}.card-header{display:flex;align-items:center;justify-content:space-between;padding:19px 21px;border-bottom:1px solid var(--line);gap:10px}.card-header h2{font-size:1rem;font-weight:600;display:flex;align-items:center;gap:9px}.card-header .icon{color:var(--gold);width:18px;height:18px}.mini-label{font-size:.6875rem;color:var(--muted);letter-spacing:.07em}.monument-card{position:relative}.scene{height:292px;position:relative;overflow:hidden;background:linear-gradient(180deg,#ded5c3,#efe4ca);isolation:isolate}.scene-bg{width:100%;height:100%;object-fit:cover;position:absolute;inset:0;object-position:center 56%;transition:filter 3s}.scene::after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,rgba(247,239,222,.06) 45%,rgba(70,49,32,.26));pointer-events:none;z-index:1}.scene.night .scene-bg{filter:brightness(.4) saturate(.5) hue-rotate(170deg)}.scene-drawing{position:absolute;inset:0;width:100%;height:100%;opacity:.8}.scene-top{position:absolute;z-index:2;top:20px;left:22px;right:22px;display:flex;justify-content:space-between;align-items:flex-start;gap:8px}.chapter-badge{display:flex;align-items:center;gap:7px;border:1px solid rgba(255,255,255,.45);border-radius:20px;padding:6px 10px;color:#fff8e9;background:rgba(46,39,31,.4);font-size:.6875rem;backdrop-filter:blur(8px)}.chapter-badge .icon{width:13px;height:13px}.scene-tag{font-size:.6875rem;background:rgba(255,251,238,.83);padding:6px 10px;border-radius:5px;color:#795e35}.scene-caption{position:absolute;z-index:2;left:22px;bottom:19px;color:#fff5df;text-shadow:0 1px 8px #624a30}.scene-caption .eyebrow{color:#eddfc5;font-size:.6875rem}.scene-caption h2{font-family:var(--serif);font-size:2.4rem;font-weight:500;line-height:1.1;margin:5px 0}.scene-caption p{font-size:.75rem;color:#eee3d0}.progress-panel{padding:20px 22px}.construction-header{display:flex;align-items:center;gap:10px;font-size:.8125rem;margin-bottom:11px}.construction-header strong{margin-left:auto;font-size:.875rem;font-weight:600}.progress-track{height:7px;background:#eeeadf;border-radius:20px;overflow:hidden}.progress-fill{display:block;height:100%;min-width:3px;background:linear-gradient(90deg,#c29a5f,#d9b573);border-radius:20px;transition:width .4s}.construction-numbers{display:flex;justify-content:space-between;margin-top:10px;font-size:.75rem;color:var(--muted)}.construction-numbers b{font-weight:500;color:var(--ink)}.stage-line{display:flex;margin-top:21px;gap:4px}.stage-segment{height:3px;flex:1;background:#e7e2d5}.stage-segment.active{background:var(--gold)}.construction-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:18px;padding-top:17px;border-top:1px solid var(--line)}.construction-stats small{display:block;font-size:.6875rem;color:var(--muted);margin-bottom:5px}.construction-stats strong{font-size:.875rem;font-weight:500;display:flex;gap:5px;align-items:center}.construction-stats .icon{width:14px;height:14px;color:var(--gold)}.quarry-card{margin-top:20px}.quarry-selector{display:flex;gap:7px}.quarry-pill{border:1px solid var(--line);border-radius:5px;padding:5px 9px;background:transparent;font-size:.6875rem;color:var(--muted)}.quarry-pill.selected{color:#9b733e;background:#f5ecda;border-color:#e0cda9}.quarry-body{display:flex;padding:22px;align-items:center;gap:25px}.quarry-info{flex:1}.quarry-info h3{font-size:.9375rem;font-weight:600;margin-bottom:7px}.quarry-info p{font-size:.8125rem;color:var(--muted);line-height:1.6}.small-note{font-size:.6875rem;color:var(--muted);margin-top:10px;display:flex;gap:5px;align-items:center}.small-note .icon{width:13px;height:13px}.extract-button{background:var(--sidebar);color:#fae8c7;min-width:200px;border-radius:8px;padding:17px 18px;position:relative;overflow:visible;box-shadow:0 3px 0 #11151b;transition:transform .1s,background .2s;user-select:none}.extract-button:hover{background:#333a41}.extract-button:active,.extract-button.pressed{transform:translateY(2px);box-shadow:0 1px 0 #11151b}.extract-button>span{display:flex;align-items:center;justify-content:center;gap:9px;font-size:.875rem;font-weight:600}.extract-button small{display:block;font-size:.6875rem;color:#b9afa0;margin-top:7px}.extract-button .icon{color:#dbb67b}.float-number{position:absolute;pointer-events:none;font-size:1.125rem;color:var(--gold);font-weight:700;left:45%;top:0;animation:float-up .85s ease-out forwards;white-space:nowrap}@keyframes float-up{to{transform:translateY(-70px);opacity:0}}.right-column{display:flex;flex-direction:column;gap:18px}.objective-card{padding:20px;background:#f1ebdd;border-color:#e5d6b9}.objective-card .eyebrow{color:#a1875e;font-size:.625rem}.objective-card h3{font-family:var(--serif);font-weight:600;font-size:1.55rem;margin:10px 0 7px}.objective-card p{font-size:.8125rem;line-height:1.6;color:#80725e}.objective-checklist{margin-top:15px;display:grid;gap:10px}.objective-line{display:flex;gap:9px;font-size:.75rem;align-items:center;color:#77664f}.check-box{width:16px;height:16px;border:1px solid #cbb993;display:grid;place-items:center;border-radius:3px;flex-shrink:0;font-size:12px}.objective-line.done .check-box{background:var(--gold);border-color:var(--gold);color:white}.objective-line.done{color:#5d704f}.objective-reward{border-top:1px solid #ded0b6;margin-top:17px;padding-top:13px;display:flex;align-items:center;justify-content:space-between;font-size:.75rem;color:#8f754b}.button{display:inline-flex;justify-content:center;align-items:center;gap:7px;border-radius:6px;min-height:38px;padding:9px 14px;font-size:.8125rem;font-weight:600;background:var(--gold);color:white;transition:background .2s,transform .1s}.button:hover{background:#a97734}.button:active{transform:translateY(1px)}.button.secondary{background:#f6f2e8;border:1px solid #dcd3c0;color:#8f7040}.button.secondary:hover{background:#eee5d2}.button.dark{background:var(--sidebar);color:#ead5b2}.button.danger{background:var(--danger)}.button.wide{width:100%}.button.small{min-height:30px;padding:5px 9px;font-size:.75rem}.objective-card .button{margin-top:14px}.crew-summary{padding:18px 20px;display:grid;gap:13px}.crew-row{display:flex;align-items:center;gap:9px;font-size:.8125rem}.crew-row .icon{color:#9c927e;width:16px;height:16px}.crew-row strong{margin-left:auto;font-weight:500}.card-bottom{padding:11px 20px;border-top:1px solid var(--line)}.text-button{background:none;padding:0;color:#9b7843;font-size:.75rem}.text-button:hover{text-decoration:underline}.blessing-card{padding:20px}.blessing-card>span>.icon{color:#bf9857;width:29px;height:29px}.blessing-card h3{font-family:var(--serif);font-size:1.4rem;font-weight:600;margin:9px 0 7px}.blessing-card p{font-size:.75rem;line-height:1.6;color:var(--muted);margin-bottom:14px}.journal-card{margin-top:20px}.journal-list{padding:7px 21px 13px;max-height:245px;overflow:auto}.journal-entry{display:flex;gap:13px;align-items:flex-start;padding-top:13px;font-size:.75rem;line-height:1.55}.journal-dot{width:6px;height:6px;background:#c1a272;transform:rotate(45deg);margin-top:6px;flex-shrink:0}.journal-entry p{color:#727771;flex:1}.journal-entry time{font-size:.6875rem;color:#a0a198;white-space:nowrap}.main-footer{display:flex;justify-content:space-between;gap:15px;padding:25px 2px 0;margin-top:20px;font-size:.6875rem;color:#999a8e}.main-footer>span:first-child{font-family:var(--serif);font-size:.9rem;color:#969078}.event-banner{display:flex;align-items:center;justify-content:space-between;background:#eee6d7;border:1px solid #d9c69f;border-radius:7px;padding:12px 15px;gap:15px;margin-bottom:20px;font-size:.8125rem;color:#795e35;line-height:1.5}.event-banner strong{font-weight:600}.event-banner .button{flex-shrink:0}.active-buffs{display:flex;gap:9px;flex-wrap:wrap;margin-bottom:18px}.buff-pill{font-size:.75rem;padding:7px 11px;border-radius:6px;background:#e8eee7;color:#5b7968;border:1px solid #d4dfd1}.content-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.content-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.info-card{padding:22px}.info-card h3{font-family:var(--serif);font-weight:600;font-size:1.55rem;margin:10px 0 7px}.info-card p{font-size:.8125rem;color:var(--muted);line-height:1.6}.info-card .button{margin-top:16px}.info-icon{display:flex;align-items:center;justify-content:space-between;color:var(--gold)}.info-icon>.icon{width:29px;height:29px}.info-icon .pill{font-size:.6875rem;color:var(--muted);border:1px solid var(--line);padding:4px 8px;border-radius:14px}.info-card .details{font-size:.75rem;color:#8f744b;background:#f7f2e8;border-radius:5px;padding:9px 11px;margin-top:13px;line-height:1.55}.section-intro{display:flex;align-items:center;justify-content:space-between;margin:28px 0 15px;gap:10px}.section-intro:first-child{margin-top:0}.section-intro h2{font-family:var(--serif);font-size:1.7rem;font-weight:600}.section-intro p{font-size:.8125rem;color:var(--muted)}.stat-strip{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:23px}.stat-tile{border-left:2px solid #ccb58b;padding:6px 15px}.stat-tile small{display:block;font-size:.75rem;color:var(--muted);margin-bottom:6px}.stat-tile strong{font-size:1.25rem;font-weight:500}.quantity-selector{display:flex;gap:4px;align-items:center}.quantity-selector button{font-size:.75rem;padding:5px 9px;border-radius:4px;background:transparent;color:var(--muted)}.quantity-selector button.active{background:var(--gold-light);color:#8b682c}.crew-controls{display:flex;gap:8px;margin-top:16px;align-items:center}.crew-controls .button{margin:0;flex:1}.crew-count{font-size:1.6rem;font-family:var(--serif)}.assignment-control{display:flex;align-items:center;gap:10px;margin-top:15px;padding-top:12px;border-top:1px solid var(--line);font-size:.75rem;color:var(--muted)}.step-button{width:30px;height:30px;background:#f4f0e6;border:1px solid var(--line);border-radius:5px;display:grid;place-items:center}.assignment-control strong{color:var(--ink);font-size:.875rem}.assignment-control .step-button:first-of-type{margin-left:auto}.tab-bar{display:flex;gap:7px;margin-bottom:20px;flex-wrap:wrap}.tab-button{font-size:.8125rem;border:1px solid var(--line);background:var(--surface);padding:8px 13px;border-radius:6px;color:var(--muted)}.tab-button.active{background:var(--sidebar);border-color:var(--sidebar);color:#e6d2b0}.god-card{position:relative}.god-symbol{font-size:2rem;font-family:var(--serif);color:#b38e52;line-height:1}.god-card .info-icon .pill.active{background:#ecf0e8;color:var(--teal)}.contract-progress{margin-top:15px}.contract-progress .construction-numbers{margin-top:7px}.contract-progress .progress-track{height:5px}.trade-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:19px 22px;border-bottom:1px solid var(--line)}.trade-row:last-child{border:0}.trade-copy{display:flex;gap:13px;align-items:center}.trade-copy>.icon{color:var(--gold)}.trade-copy h3{font-size:.875rem;font-weight:500}.trade-copy p{font-size:.75rem;margin-top:5px;color:var(--muted)}.notice{padding:16px 20px;border-radius:7px;background:#eeeade;color:#81715b;font-size:.8125rem;line-height:1.7;margin-bottom:20px;border:1px solid #e0d6c1}.notice.danger{color:#924c40;background:#f6eae4;border-color:#ebd3c8}.notice p+p{margin-top:7px}.campaign-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}.campaign-card{padding:24px;text-align:center}.campaign-card .number{font-family:var(--serif);font-size:3rem;color:#c5ac82}.campaign-card h3{font-family:var(--serif);font-size:1.8rem;font-weight:600;margin-top:10px}.campaign-card p{font-size:.8125rem;color:var(--muted);margin-top:8px}.campaign-card .pill{display:inline-block;margin-top:18px;font-size:.75rem;padding:5px 10px;border-radius:15px;background:#eee9dc;color:#957849}.campaign-card.completed{background:#eff2e9;border-color:#cedbc5}.campaign-card.completed .pill{color:var(--teal);background:#dfe9d9}.prestige-card{background:var(--sidebar);color:#ece2ce;padding:32px;margin-top:22px;position:relative;overflow:hidden}.prestige-card .eyebrow{color:#c1a575}.prestige-card h2{font-family:var(--serif);font-size:2.1rem;margin:10px 0;font-weight:500}.prestige-card p{font-size:.875rem;line-height:1.75;max-width:620px;color:#aeb2b5}.prestige-card .button{margin-top:20px}.achievement-card{display:flex;gap:14px;padding:18px}.achievement-card>.icon{width:27px;height:27px;color:#ab936e}.achievement-card h3{font-size:.875rem;font-weight:500;margin-bottom:5px}.achievement-card p{font-size:.75rem;line-height:1.55;color:var(--muted)}.achievement-card.earned{background:#f9f3e7;border-color:#dac69f}.achievement-card.earned>.icon{color:#bc8c3f}.cosmetic-selector{display:flex;gap:12px;flex-wrap:wrap;margin-top:16px}.cosmetic-button{border:1px solid #dfd4bc;padding:12px 18px;background:#fbf7ed;border-radius:7px;font-size:.8125rem}.cosmetic-button.selected{border-color:var(--gold);box-shadow:inset 0 0 0 1px var(--gold)}.toast-container{position:fixed;bottom:22px;right:22px;z-index:20;display:grid;gap:8px;max-width:min(370px,calc(100vw - 32px));pointer-events:none}.toast{padding:13px 18px;border:1px solid #d5c4a4;background:#fffdf7;box-shadow:0 5px 26px #262b3020;border-radius:8px;font-size:.8125rem;line-height:1.5;color:#66583e;animation:toast-in .2s ease-out}.toast.error{border-color:#d7b7ae;color:var(--danger)}@keyframes toast-in{from{opacity:0;transform:translateY(10px)}}dialog{border:1px solid #d5c4a4;border-radius:12px;background:var(--surface);padding:25px 28px;max-width:600px;width:calc(100% - 32px);max-height:85vh;color:var(--ink);box-shadow:0 20px 80px #0b10114d}dialog::backdrop{background:rgba(17,22,28,.58);backdrop-filter:blur(3px)}.dialog-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}dialog h2{font-family:var(--serif);font-size:2rem;font-weight:600;margin-bottom:12px}dialog p{font-size:.875rem;line-height:1.7;color:var(--muted)}.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:24px;flex-wrap:wrap}.guide-steps{padding-left:20px;font-size:.875rem;color:var(--muted);line-height:1.7}.guide-steps li{padding:5px 0}.guide-steps strong{color:var(--ink)}.settings-row{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:13px 0;border-bottom:1px solid var(--line);font-size:.875rem}.settings-row small{display:block;font-size:.75rem;color:var(--muted);line-height:1.5;margin-top:4px}.settings-row input[type=checkbox]{accent-color:var(--gold);width:20px;height:20px;flex-shrink:0}.settings-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}.settings-actions .button{font-size:.75rem}.dialog-error{font-size:.8125rem;background:#f6e8e1;border-radius:6px;padding:11px;margin-top:13px;color:var(--danger)}.offline-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:15px;padding:20px 0}.offline-stats div{border-left:2px solid var(--gold);padding-left:12px}.offline-stats small{display:block;color:var(--muted);font-size:.75rem;margin-bottom:5px}.offline-stats strong{font-size:1.1rem;font-weight:500}.skip-link{position:fixed;top:-80px;left:10px;background:var(--surface);padding:12px;z-index:40}.skip-link:focus{top:10px}[hidden]{display:none!important}.noscript{position:fixed;inset:0;background:var(--paper);display:grid;place-items:center;padding:30px}.muted{color:var(--muted)}.divider{border:0;border-top:1px solid var(--line);margin:22px 0}.full-span{grid-column:1/-1}body[data-skin=obsidienne]{--gold:#8e81aa;--gold-light:#eee9f5;--paper:#f3f2f6}body[data-skin=celeste]{--gold:#5189a0;--gold-light:#e3eff3;--paper:#f1f5f6}
.scene-ghost{filter:saturate(.35) brightness(1.02);opacity:.63}.scene-reveal{transition:clip-path 1s ease}.scene.night .scene-ghost{filter:brightness(.4) saturate(.3) hue-rotate(170deg);opacity:.75}.scene-progress-note{position:absolute;bottom:24px;right:22px;z-index:2;color:#f4ebd9;font-size:.6875rem;text-shadow:0 1px 5px #583c24}.bottleneck{font-size:.75rem;line-height:1.55;color:#8f805f;margin-top:15px;min-height:19px}.objective-line{flex-wrap:wrap}.objective-counter{font-size:.6875rem;margin-left:auto}.objective-reward{flex-wrap:wrap;gap:6px}.objective-reward strong{font-weight:500}.crew-morale{border-top:1px solid var(--line);padding-top:12px}.deity-link{margin-top:12px;display:block;text-align:center;width:100%}.rare-resources{display:flex;align-items:center;gap:20px;flex-wrap:wrap;font-size:.8125rem;color:var(--muted);padding:0 0 19px}.rare-resources span{display:flex;align-items:center;gap:7px}.rare-resources .icon{width:15px;height:15px;color:var(--gold)}.rare-resources strong{color:var(--ink);font-weight:500}.training-row{padding-top:12px;display:grid;gap:9px;margin-top:12px;border-top:1px solid var(--line)}.training-row>span{font-size:.75rem;color:var(--muted)}.training-row .text-button{text-align:left;font-size:.75rem;line-height:1.6}.assignment-section{margin-top:21px}.assignment-title{font-size:.8125rem;display:flex;align-items:center;justify-content:space-between;gap:10px}.assignment-control{margin-top:10px;padding-top:10px}.assignment-control .step-button:first-of-type{margin-left:auto}.assignment-control .step-button{flex-shrink:0}.assignment-control strong{min-width:18px;text-align:center}.policy-card.selected{border-color:#c6b084;box-shadow:inset 0 0 0 1px #c6b084}.inline-actions{display:flex;align-items:center;flex-wrap:wrap;gap:9px;margin-top:17px}.info-card .inline-actions .button{margin-top:0}.ethical-card{border-color:#ded0c2}.god-title{font-size:.75rem;color:#b29366;margin-bottom:11px}.contract-state{font-size:.75rem!important;padding-top:13px;line-height:1.6}.commerce-note{margin-top:24px}.artifact-card:not(.found){opacity:.65}.artifact-card.found{background:#f9f3e7;border-color:#dbcba8}.achievement-reward{display:block;font-size:.6875rem;color:#a18c64;margin-top:7px}.save-description{padding-top:20px}.save-description strong{font-size:.875rem;font-weight:500}.save-description p{margin-top:8px}.settings-meta{font-size:.75rem!important}.guide-note{margin:20px 0}.event-choices{display:grid;grid-template-columns:1fr 1fr;gap:13px;margin:20px 0}.event-choice{border:1px solid var(--line);padding:18px;border-radius:7px}.event-choice h3{font-family:var(--serif);font-size:1.35rem;line-height:1.2;font-weight:600;margin-bottom:10px}.event-choice p{font-size:.8125rem}.event-choice small{display:block;color:#99845f;font-size:.75rem;line-height:1.5;margin:12px 0}.event-choice .button{width:100%}.ethical-warning,.prestige-note{margin-top:20px}.completion-panel{border-top:1px solid #dccdae;padding:21px;background:#f5efdf;display:flex;gap:13px;align-items:flex-start;flex-wrap:wrap}.completion-panel>span .icon{color:var(--gold);width:25px;height:25px}.completion-panel>div{flex:1;min-width:200px}.completion-panel strong{font-family:var(--serif);font-size:1.5rem;font-weight:600}.completion-panel p{font-size:.8125rem;line-height:1.6;color:#8f805f;margin-top:7px}.completion-panel>.button{margin-left:38px}.event-banner.critical{background:#f4e8dc;border-color:#e1c7ab}.content-grid .info-card{display:flex;flex-direction:column}.info-card>.button{margin-top:auto;align-self:stretch}.info-card>.details{margin-bottom:16px}.info-card h3{line-height:1.2}.info-card>p{min-height:42px}.info-card .crew-controls{margin-top:0}.info-card .training-row+.assignment-section{margin-top:17px}
.scene-extract{position:absolute;z-index:3;right:20px;bottom:20px;min-width:195px;padding:14px 16px;background:#202630ed;box-shadow:0 3px 0 #10131880;backdrop-filter:blur(4px)}.scene-extract small{color:#c9bda9}.scene-extract .icon{width:17px;height:17px}.scene-caption{max-width:calc(100% - 245px)}.info-card p{font-size:.875rem}.card-header h2{font-size:1rem}.quarry-info p{font-size:.875rem}.scene-caption p{font-size:.8125rem}.crew-row{font-size:.875rem}.button{font-size:.875rem}.nav-item{font-size:.875rem}
.save-code-label{display:block;font-size:.875rem;font-weight:500;margin:20px 0 8px}.save-code{display:block;width:100%;resize:vertical;min-height:140px;max-height:300px;padding:12px;background:#f7f4ec;border:1px solid #d8cbb3;border-radius:6px;color:#5f5647;font-family:ui-monospace,monospace;font-size:.8125rem;line-height:1.6;overflow-wrap:anywhere}
@media(min-width:1600px){main{padding-left:50px;padding-right:50px}.scene{height:365px}.play-grid{grid-template-columns:minmax(0,1fr) 320px}}
@media(max-width:1180px){.app-layout{grid-template-columns:194px minmax(0,1fr)}.brand{min-width:190px}.topbar{padding:0 22px;gap:22px}main{padding:28px 24px 16px}.play-grid{grid-template-columns:minmax(0,1fr) 260px;gap:18px}.resource-bar{gap:12px;padding:16px 22px}.resource-icon{width:32px;height:32px}.resource-item{gap:8px}.resource-rate{display:block;margin:0;font-size:.625rem}.quarry-body{gap:13px}.extract-button{min-width:170px;padding:16px 12px}.quarry-selector{gap:4px}.quarry-pill{padding:5px 7px}.sidebar{padding-left:12px;padding-right:12px}.nav-item{padding:12px 10px;font-size:.8125rem}.content-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:960px){.app-layout{grid-template-columns:1fr}.sidebar{padding:10px 15px;background:var(--sidebar);display:block;position:sticky;top:0;z-index:10;box-shadow:0 2px 12px #0000000a}.sidebar-caption,.sidebar-separator,.kingdom-status,.cycle-card,.sidebar-footer{display:none}.sidebar nav{display:flex;gap:5px;overflow:auto;scrollbar-width:thin}.nav-item{justify-content:center;white-space:nowrap;padding:10px 13px;width:auto;flex:1;margin:0;font-size:.75rem}.nav-badge{display:none}.nav-item .icon{width:17px;height:17px}.topbar{height:76px}.resource-bar{padding-top:14px;padding-bottom:14px}.resource-text small{font-size:.6875rem}.resource-number{font-size:1rem}.resource-item{padding:0}.play-grid{grid-template-columns:minmax(0,1fr) 280px}.scene{height:305px}.save-indicator{display:none}.dynasty-label{margin-left:auto}.header-actions{margin-left:0}.main-footer{padding-bottom:18px}}
@media(max-width:720px){.topbar{padding:0 17px;gap:12px;height:72px}.brand{min-width:0;gap:9px}.brand strong{font-size:1.25rem}.brand small{font-size:.5625rem}.brand-mark{font-size:37px}.dynasty-label{padding-left:15px;font-size:.75rem}.dynasty-label .eyebrow{display:none}.header-actions{gap:1px}.icon-button{width:34px;height:34px}.resource-bar{grid-template-columns:repeat(3,1fr);gap:14px 17px;padding:15px 18px}.resource-item:nth-child(3){border:0}.resource-text small{font-size:.6875rem}.resource-rate{display:inline;margin-left:4px;font-size:.625rem}.resource-number{font-size:.9375rem}.resource-icon{width:29px;height:29px;border-radius:6px}.resource-icon .icon{width:17px;height:17px}.resource-item{gap:7px}.sidebar{padding:8px 11px}.sidebar nav{gap:4px}.nav-item{flex:none;padding:10px 12px}.nav-item .icon{display:none}main{padding:24px 18px 15px}.page-heading{margin-bottom:21px;gap:10px}.page-heading .eyebrow{font-size:.625rem;letter-spacing:.13em}h1{font-size:2.3rem}.page-heading p{font-size:.8125rem}.season-pill{font-size:.6875rem;padding:6px 9px}.play-grid{grid-template-columns:1fr}.scene{height:310px}.right-column{display:grid;grid-template-columns:1fr 1fr;gap:16px}.objective-card{grid-row:span 2}.blessing-card{padding:18px}.blessing-card p{font-size:.75rem}.crew-summary{padding:15px}.card-header{padding:16px 18px}.quarry-body{padding:20px;gap:15px}.content-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.info-card{padding:19px}.stat-strip{grid-template-columns:repeat(2,1fr);gap:18px}.campaign-grid{gap:10px}.campaign-card{padding:18px 10px}.campaign-card h3{font-size:1.5rem}.campaign-card p{font-size:.75rem}.campaign-card .number{font-size:2.5rem}.main-footer>span:nth-child(2){display:none}.event-banner{align-items:flex-start}.quarry-selector{gap:5px}.section-intro p{max-width:60%;text-align:right}.trade-row{padding:17px;gap:14px}.trade-copy{gap:9px}}
@media(max-width:430px){.dynasty-label{display:none}.header-actions{margin-left:auto}.resource-rate{display:block;margin-left:0}.resource-item{gap:6px}.resource-bar{gap:13px 12px}.resource-icon{width:26px;height:29px}.resource-number{font-size:.9375rem}.scene{height:268px}.scene-top{left:17px;right:17px}.scene-caption{left:18px}.scene-caption h2{font-size:2.1rem}.scene-tag{font-size:.625rem}.quarry-card .card-header{align-items:flex-start;flex-direction:column;gap:12px}.quarry-selector{width:100%}.quarry-pill{flex:1;padding:6px}.quarry-body{flex-direction:column;align-items:stretch;gap:17px;padding:18px}.extract-button{padding:18px}.right-column{display:flex}.objective-card{padding:20px}.content-grid,.content-grid.two{grid-template-columns:1fr}.section-intro{align-items:flex-start}.section-intro h2{font-size:1.6rem}.section-intro p{font-size:.75rem}.campaign-grid{grid-template-columns:1fr}.campaign-card{display:grid;grid-template-columns:48px 1fr;gap:5px 12px;text-align:left;align-items:center;padding:15px 18px}.campaign-card .number{grid-row:span 3}.campaign-card h3{margin:0}.campaign-card p{margin:0}.campaign-card .pill{margin:0;justify-self:start;font-size:.6875rem}.prestige-card{padding:25px}.prestige-card h2{font-size:1.8rem}.trade-row{align-items:flex-start}.trade-row .button{min-width:89px;font-size:.75rem;padding:8px 10px}.toast-container{right:16px;bottom:16px}dialog{padding:22px}.offline-stats{gap:8px}.offline-stats strong{font-size:.875rem}.construction-stats{gap:9px}.construction-stats small{font-size:.625rem}.construction-stats strong{font-size:.8125rem}.event-banner{flex-direction:column;gap:10px}}
@media(max-width:720px){.scene-progress-note{display:none}.rare-resources{gap:12px;font-size:.75rem}.info-card>.button{margin-top:15px}.completion-panel{padding:18px}.completion-panel>.button{margin-left:0}.main-footer .text-button{font-size:.75rem}.page-heading p{font-size:.875rem}}
@media(max-width:430px){.event-choices{grid-template-columns:1fr}.event-choice{padding:16px}.construction-numbers{font-size:.6875rem}.construction-header{font-size:.75rem}.objective-counter{font-size:.75rem}.objective-line{font-size:.8125rem}.objective-reward{font-size:.8125rem}.crew-row{font-size:.875rem}.blessing-card p,.quarry-info p,.info-card p{font-size:.875rem}.journal-entry{font-size:.8125rem}.quarry-info .small-note{font-size:.75rem}.scene-extract{right:15px;bottom:20px;min-width:0;width:154px;padding:13px 8px}.scene-extract>span{font-size:.8125rem;gap:5px}.scene-extract .icon{display:none}.scene-extract small{font-size:.6875rem}.scene-caption{max-width:calc(100% - 184px)}.scene-caption p{display:none}.scene-caption h2{font-size:1.85rem}.nav-item{font-size:.75rem}}
@media(max-width:960px){.app-layout{grid-template-columns:minmax(0,1fr)}.sidebar{min-width:0}.sidebar nav{min-width:0}}
@media(max-width:720px){.play-grid{grid-template-columns:minmax(0,1fr)}.right-column{min-width:0;grid-template-columns:repeat(2,minmax(0,1fr))}.construction-stats{grid-template-columns:repeat(3,minmax(0,1fr))}.construction-stats strong{flex-wrap:wrap}}
@media(max-width:360px){.scene-extract{width:138px}.scene-extract>span{font-size:.75rem}.scene-caption{max-width:calc(100% - 172px)}.scene-caption h2{font-size:1.6rem}.construction-numbers{flex-wrap:wrap;gap:6px}.resource-number{font-size:.875rem}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}body.reduce-motion *,body.reduce-motion *::before,body.reduce-motion *::after{animation:none!important;transition:none!important}
