:root{--ink:#263f35;--ink-soft:#64746a;--paper:#f7f6ee;--line:#dce0d1;--gold:#b28b50;--forest:#29483b;--mint:#e9eee3;--shadow:0 15px 50px #243b3320;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer;color:inherit;border:0;background:none}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,[tabindex]:focus-visible{outline:3px solid #b58e50;outline-offset:3px}button:hover{filter:brightness(.95)}[hidden]{display:none!important}svg.icon{width:19px;height:19px;display:inline-block;vertical-align:middle;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}a{color:inherit}select{border:1px solid var(--line);background:var(--paper);color:var(--ink);border-radius:7px;padding:7px 26px 7px 10px;font-size:12px}h1,h2,h3,p{margin:0}h1,h2,h3,.serif{font-family:Georgia,"Times New Roman",serif;font-weight:400}h2{font-size:30px;letter-spacing:-.7px}p{line-height:1.6}button{transition:background .15s,border-color .15s,box-shadow .15s}.app-header{height:82px;display:flex;align-items:center;justify-content:space-between;padding:0 32px;border-bottom:1px solid var(--line);gap:22px}.brand{display:flex;align-items:center;gap:12px;text-decoration:none;white-space:nowrap}.brand-mark{width:43px;height:47px;background:var(--ink);color:#e3d7b9;display:grid;place-items:center;border-radius:19px 19px 7px 7px}.brand-mark svg{width:30px;height:30px;stroke-width:1.3}.brand strong{display:block;font:25px Georgia,serif;letter-spacing:-1px}.brand small{display:block;font-size:8px;letter-spacing:2.4px;margin-top:6px;color:var(--ink-soft)}.colon{color:var(--gold)}.main-nav{display:flex;height:100%;gap:30px;align-items:stretch}.nav-button{font-size:12px;font-weight:600;border-bottom:2px solid transparent;padding:0 5px;color:#768277}.nav-button.active{border-color:var(--forest);color:var(--ink)}.tiny-dot{display:inline-block;width:4px;height:4px;background:var(--gold);border-radius:50%;margin-left:4px;vertical-align:middle}.header-right{display:flex;align-items:center;gap:12px}.build-tag{font-size:9px;letter-spacing:1.6px;color:var(--ink-soft);white-space:nowrap}.build-tag i{font-style:normal;color:#9d9f88;margin-left:7px}.icon-button{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:7px}.icon-button:hover{background:#e7eade}.world-toolbar{height:64px;display:flex;align-items:center;gap:24px;padding:0 32px;border-bottom:1px solid var(--line);background:#fbfaf5}.subtle-button{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:600}.count-pill{font-size:10px;background:#e7ecdf;color:#64705f;border-radius:4px;padding:2px 5px}.clock-block{display:flex;align-items:center;gap:10px;border-left:1px solid var(--line);padding-left:24px}.clock-block>span{color:#b38e51}.clock-block>span svg{height:27px;width:27px}.clock-block strong{display:block;font-size:12px}.clock-block div>span{font-size:10px;color:var(--ink-soft);display:block;margin-top:3px;min-width:89px}.time-controls{display:flex;align-items:center;gap:3px;background:#eeefe6;border:1px solid #e0e4d8;padding:3px;border-radius:8px}.control-button{width:30px;height:29px;display:grid;place-items:center;border-radius:5px}.main-control{background:var(--forest);color:white}.main-control:hover{background:#466555}.speed-button{font-size:11px;padding:7px 8px;border-radius:5px;color:#728071}.speed-button.active{background:#fbfbf6;color:var(--ink);box-shadow:0 1px 3px #223d3310}.control-divider{height:17px;width:1px;background:var(--line);margin:0 2px}.simulation-status{font-size:10px;color:var(--ink-soft)}.influence{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:11px;color:var(--ink-soft);white-space:nowrap}.influence svg{color:#aa8548}.influence strong{font-size:16px;color:var(--ink);font-variant-numeric:tabular-nums}.game-layout{display:grid;grid-template-columns:minmax(0,1fr) 312px;grid-template-rows:minmax(560px,calc(100vh - 291px)) 110px}.world-area{position:relative;min-width:0;background:#e9e7d6;overflow:hidden;display:flex;flex-direction:column;border-right:1px solid var(--line)}.map-topline{position:absolute;top:22px;left:28px;right:24px;z-index:2;display:flex;justify-content:space-between;align-items:flex-start;pointer-events:none}.map-topline>*{pointer-events:auto}.eyebrow{font-size:9px;letter-spacing:2px;font-weight:600;color:var(--ink-soft)}.map-heading h1{font-size:30px;letter-spacing:-.8px;margin-top:5px;color:#374c3c}.map-filter{display:flex;gap:9px;align-items:center;font-size:10px;color:var(--ink-soft);background:#f7f6eeaa;border-radius:8px;padding:4px 6px}.map-filter select{background:#f9f8efda;border-color:#cfceb9}.map-stage{position:relative;flex:1;min-height:460px;overflow:hidden;background:#e8e4cf}#world-map{display:block;width:100%;height:100%;min-height:460px;touch-action:none;user-select:none}#camera{transform-origin:0 0}.map-location{cursor:pointer}.map-location .loc-ring{fill:#f7f4e7;stroke:#9eaa8c;stroke-width:1.5;transition:fill .15s}.map-location:hover .loc-ring{fill:#fffaf0;stroke:#647d61;stroke-width:2.5}.map-location text{font:15px Georgia,serif;fill:#435d4b;paint-order:stroke;stroke:#eee9d7;stroke-width:4px;stroke-linejoin:round}.map-location.camp text{font-size:17px;font-weight:bold}.map-location.camp .loc-ring{fill:#f8f4e6;stroke-width:2}.map-location .loc-symbol{fill:none;stroke:#556c53;stroke-width:1.6;stroke-linejoin:round;stroke-linecap:round}.cat-token{cursor:grab;outline:none}.cat-token:active{cursor:grabbing}.cat-token .token-ring{fill:#f9f5e9;stroke-width:2;filter:drop-shadow(0 2px 2px #34392c22)}.cat-token.selected .token-ring{stroke:#d3a24f!important;stroke-width:3.5;fill:#fff9e7}.cat-token:hover .token-ring,.cat-token:focus .token-ring{stroke-width:3;fill:white}.cat-token .cat-shape{stroke:#f8f4e9;stroke-width:.4}.cat-token .cat-label{opacity:0;font:600 10px system-ui;fill:#fff;background:#233e33;pointer-events:none;transition:opacity .15s}.cat-token .label-bg{opacity:0;fill:#2c4638;pointer-events:none;transition:opacity .15s}.cat-token.selected .cat-label,.cat-token.selected .label-bg,.cat-token:hover .cat-label,.cat-token:hover .label-bg,.cat-token:focus .cat-label,.cat-token:focus .label-bg{opacity:1}.cat-token.dimmed{opacity:.16;pointer-events:none}.cat-token .fight-mark{fill:#ba5a47;stroke:#f9f5e9;stroke-width:1}.cat-token .health-ring{fill:none;stroke:#c27656;stroke-width:2;stroke-linecap:round}.target-path{stroke:#b78d4c;stroke-width:1.8;stroke-dasharray:5 7;fill:none;pointer-events:none}.destination-marker{fill:#dec28755;stroke:#ac864a;stroke-dasharray:4 4;stroke-width:2;pointer-events:none}.map-bottom{position:absolute;bottom:13px;left:22px;right:18px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.map-bottom>*{pointer-events:auto}.map-note{font-size:9px;color:#747e67;background:#f1eddfb8;padding:5px 8px;border-radius:6px}.map-note span{margin:0 4px}.map-note i{display:inline-block;width:5px;height:5px;background:#9ca886;border-radius:50%;margin-right:5px}.map-controls{display:flex;gap:2px;background:#f7f5e9e8;border:1px solid #cdd0bb;border-radius:9px;padding:3px;box-shadow:0 3px 12px #293c3110}.map-fit{font-size:10px;min-width:30px}.map-tip{position:absolute;bottom:57px;left:50%;transform:translateX(-50%);font-size:11px;white-space:nowrap;padding:10px 17px;background:#f9f7edee;border:1px solid #d5d3bb;border-radius:24px;box-shadow:0 3px 15px #243b3310;transition:opacity .5s}.clan-strip{height:54px;background:#f7f6eefa;border-top:1px solid #d4d9c7;display:grid;grid-template-columns:repeat(4,1fr);z-index:3;flex-shrink:0}.clan-chip{display:flex;justify-content:center;align-items:center;gap:8px;border-right:1px solid #e1e3d6;padding:7px 5px;min-width:0}.clan-chip:last-child{border:0}.clan-chip.selected{background:#eceee3}.clan-dot{height:7px;width:7px;border-radius:50%;background:var(--clan);flex-shrink:0}.clan-chip strong{display:block;font-size:10px}.clan-chip small{display:block;margin-top:4px;font-size:9px;color:var(--ink-soft)}.clan-chip .food-stat{font-size:10px;margin-left:10px;white-space:nowrap;color:var(--ink-soft);display:flex;gap:4px;align-items:center}.clan-chip svg{height:14px;width:14px}.inspector{overflow-y:auto;background:#faf9f3;scrollbar-width:thin;scrollbar-color:#d6d9ca transparent}.cat-panel-inner{padding:23px 22px 0}.inspector-heading{display:flex;justify-content:space-between;align-items:center;font-size:9px;color:var(--ink-soft);letter-spacing:1.5px}.inspector-heading button{font-size:10px;letter-spacing:0}.portrait-section{display:flex;align-items:center;gap:12px;margin:21px 0 16px}.cat-portrait{width:68px;height:68px;border:1px solid #d8dacb;border-radius:50%;position:relative;background:var(--portrait-bg,#e7e7d9);display:flex;align-items:center;justify-content:center;flex-shrink:0}.cat-portrait svg{height:49px;width:49px;stroke-width:1.3}.portrait-section h2{font-size:25px;letter-spacing:-1px}.cat-role{font-size:10px;margin-top:6px;color:var(--ink-soft)}.cat-role b{font-weight:500;color:var(--clan)}.lives-badge{font-size:9px;background:#f1e7ce;border:1px solid #e4d3ad;border-radius:5px;padding:4px 7px;margin-top:6px;color:#8b713e;display:inline-flex;gap:5px;align-items:center}.lives-badge svg{height:12px;width:12px}.personality-tags{display:flex;flex-wrap:wrap;gap:5px;margin-bottom:13px}.personality-tags span{font-size:9px;border:1px solid #dce0d1;border-radius:4px;padding:4px 6px;color:#657460;background:#f0f2e8}.cat-bio{font-size:11px;color:#7a8374;line-height:1.65;margin-bottom:15px}.state-block{background:#eef0e5;border-radius:8px;padding:11px 12px;margin:13px 0 16px;border:1px solid #e1e4d5}.state-label{display:flex;gap:7px;align-items:center;font-size:11px;font-weight:600}.state-label svg{width:14px;height:14px}.state-block p{font-size:10px;line-height:1.5;color:#77816f;margin-top:5px}.needs{display:grid;gap:9px;margin-bottom:19px}.need-row{display:grid;grid-template-columns:48px 1fr 33px;align-items:center;gap:8px;font-size:10px;color:#64715f}.need-track{height:4px;border-radius:9px;background:#e1e6d7;overflow:hidden}.need-fill{height:100%;border-radius:9px;background:#79936c;transition:width .3s}.need-fill.health{background:#79a08c}.need-fill.energy{background:#c3a166}.need-value{text-align:right;font-size:9px;font-variant-numeric:tabular-nums}.stats{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:12px 0;margin-bottom:18px}.stat{text-align:center}.stat small{display:block;color:#7f897a;font-size:8px;letter-spacing:.5px}.stat strong{display:block;font-family:Georgia,serif;font-weight:400;font-size:21px;margin:5px 0 0}.stat strong.boost{color:#b08b44}.section-title{display:flex;justify-content:space-between;align-items:center;font-size:8px;letter-spacing:1.5px;color:#798573;margin-bottom:10px}.section-title span:last-child{letter-spacing:0}.command-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.command{padding:10px 7px;border:1px solid #d8dfce;border-radius:6px;font-size:10px;display:flex;gap:7px;align-items:center;justify-content:center;background:#fbfbf5}.command:hover{background:#e8eddf;border-color:#c0cbb5}.command svg{height:15px;width:15px}.command.primary{background:var(--forest);border-color:var(--forest);color:#f8f5eb;grid-column:1/-1;padding:11px}.command.primary:hover{background:#3a5b49}.command.danger{color:#a96650}.intent-select{width:100%;margin-top:8px;font-size:10px}.order-feedback{min-height:28px;font-size:9px;color:#8c8e7a;line-height:1.5;margin:10px 0 14px}.cat-conversation{display:flex;width:100%;justify-content:space-between;padding:13px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);font-size:11px;color:#4d644c}.nearby-panel{padding:20px 22px}.nearby-empty{font-size:10px;color:#929a89;line-height:1.6}.nearby-cat{width:100%;display:flex;align-items:center;gap:8px;padding:8px 0;text-align:left}.mini-avatar{width:27px;height:27px;border-radius:50%;display:grid;place-items:center;background:var(--clan-light,#e7eadf);color:var(--clan);flex-shrink:0}.mini-avatar svg{height:19px;width:19px}.nearby-cat strong{font-size:10px;font-weight:500;display:block}.nearby-cat small{font-size:8px;color:#8c9585;display:block;margin-top:2px}.relationship-indicator{font-size:9px;margin-left:auto;color:#7f9772}.relationship-indicator.negative{color:#b47663}.activity-bar{grid-column:1/-1;background:#fbfaf4;border-top:1px solid var(--line);padding:14px 25px 10px}.activity-title{display:flex;gap:8px;align-items:center;font-size:10px}.activity-title strong{font-weight:600}.live-dot{height:6px;width:6px;border-radius:50%;background:#9ba984}.log-filter{margin-left:7px;font-size:9px;color:#8b947d;border:1px solid #dce1d1;border-radius:4px;padding:3px 7px}.text-button{margin-left:auto;font-size:10px;color:#6c7b64}.recent-log{display:grid;grid-template-columns:repeat(3,1fr);gap:23px;margin-top:11px}.log-mini{border-left:2px solid #d5dbc8;padding-left:10px;font-size:10px;line-height:1.5;color:#6a7863;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.log-mini.combat{border-color:#b6755d}.log-mini.social{border-color:#88a19b}.log-mini.event{border-color:#b7a16a}.log-mini time{font-size:9px;color:#a1a491;margin-right:6px}.app-footer{display:flex;justify-content:space-between;align-items:center;height:35px;padding:0 25px;border-top:1px solid #e1e4d7;color:#9a9f8e;font-size:9px}.app-footer button{font-size:9px;color:#7e8a74}.roster-drawer{position:absolute;z-index:6;left:18px;top:100px;bottom:65px;width:280px;background:#fcfbf3f7;backdrop-filter:blur(16px);box-shadow:var(--shadow);border:1px solid #d6dbc8;border-radius:12px;padding:10px 12px;display:flex;flex-direction:column}.drawer-title{display:flex;align-items:center;justify-content:space-between;padding-bottom:6px}.drawer-title strong{font:17px Georgia,serif}.search-field{display:flex;gap:6px;align-items:center;border:1px solid #d9ddce;padding:8px;border-radius:6px;background:#fffefa;margin:0 0 7px}.search-field svg{height:14px;width:14px;color:#819078}.search-field input{width:100%;border:0;background:none;font-size:11px;outline:none;color:var(--ink);min-width:0}.roster-drawer>select{width:100%;font-size:10px;margin-bottom:9px}.roster-list{overflow-y:auto;flex:1;scrollbar-width:thin}.roster-cat{display:flex;width:100%;align-items:center;gap:8px;text-align:left;padding:9px 6px;border-radius:6px;cursor:grab}.roster-cat:hover,.roster-cat.selected{background:#e9eddf}.roster-cat strong{font-size:11px;display:block;font-weight:500}.roster-cat small{font-size:9px;display:block;color:#8b957e;margin-top:2px}.roster-cat .status-pip{margin-left:auto;width:5px;height:5px;border-radius:50%;background:#90a47f}.location-card{position:absolute;z-index:5;left:24px;bottom:68px;width:255px;background:#fffdf3f5;border:1px solid #d4d7c0;border-radius:10px;box-shadow:var(--shadow);padding:15px}.location-card h3{font-size:21px;margin:5px 0 7px}.location-card p{font-size:11px;color:#7b846e;margin-bottom:12px}.location-card .close-location{position:absolute;right:5px;top:5px}.location-card .command{width:100%}.event-banner{position:absolute;top:103px;left:50%;transform:translateX(-50%);z-index:5;display:flex;gap:11px;align-items:center;padding:13px 15px;background:#fcf5e2;border:1px solid #c7ad74;border-radius:9px;box-shadow:var(--shadow);min-width:370px}.event-banner>span{color:#b28d4a}.event-banner small{display:block;font-size:8px;letter-spacing:1.5px;color:#9d8659;margin-bottom:5px}.event-banner strong{font-family:Georgia,serif;font-weight:400;font-size:19px;white-space:nowrap}.event-banner button{margin-left:auto;background:#8d753f;color:#fff9ed;padding:9px 11px;border-radius:5px;font-size:11px;white-space:nowrap}.toast{position:fixed;z-index:30;bottom:45px;left:50%;transform:translateX(-50%);padding:13px 20px;max-width:min(560px,90vw);border-radius:9px;background:#273f34;color:#f6f1df;box-shadow:0 8px 30px #15291d30;font-size:12px;line-height:1.5;animation:fade-in .2s ease}.toast.error{background:#835442}@keyframes fade-in{from{opacity:0;transform:translate(-50%,6px)}to{opacity:1;transform:translate(-50%,0)}}dialog{border:1px solid #d4dac7;border-radius:15px;background:#faf9f1;color:var(--ink);padding:22px 28px 28px;width:min(650px,calc(100% - 28px));max-height:85vh;box-shadow:0 30px 100px #10251b44}dialog::backdrop{background:#19352866;backdrop-filter:blur(4px)}.modal-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.modal-top .icon-button{margin-right:-8px;margin-top:-8px}#modal-content h2{margin-bottom:12px}#modal-content>p{font-size:13px;color:#75816b;margin-bottom:16px}.modal-lead{font:19px/1.55 Georgia,serif!important;color:#52664c!important}.guide-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:20px 0}.guide-item{padding:15px;border:1px solid #dce2d1;border-radius:8px;background:#f1f3e8}.guide-item span{color:#a48a4d;font:24px Georgia,serif}.guide-item h3{font-size:19px;margin:7px 0}.guide-item p{font-size:11px;color:#74816a;line-height:1.6}.modal-primary{padding:12px 18px;background:#304e3e;color:#fcf8e9;border-radius:7px;font-size:12px}.modal-secondary{padding:11px 16px;border:1px solid #cdd7c2;border-radius:7px;font-size:12px}.modal-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:20px}.muted-note{font-size:10px!important;line-height:1.65!important;color:#929a85!important;margin:15px 0}.destination-list{display:grid;grid-template-columns:1fr 1fr;gap:8px}.destination{padding:13px;border:1px solid #d8decc;border-radius:8px;text-align:left;background:#f4f5eb}.destination:hover{background:#e6eddb}.destination strong{display:block;font-size:12px;font-weight:600}.destination small{display:block;color:#8b957d;font-size:10px;margin-top:5px}.clan-modal-tabs{display:flex;gap:5px;margin:18px 0;flex-wrap:wrap}.clan-modal-tabs button{font-size:11px;border:1px solid #d7dfcb;border-radius:6px;padding:8px 10px}.clan-modal-tabs button.active{background:#e6ebdd;border-color:#95a881}.camp-stats{display:flex;gap:25px;margin-bottom:20px;padding:14px;background:#edf1e3;border-radius:8px}.camp-stats strong{display:block;font:25px Georgia,serif}.camp-stats small{display:block;font-size:10px;color:#899378;margin-top:4px}.upgrade-row{display:flex;gap:20px;align-items:center;padding:16px 0;border-bottom:1px solid #dce2d1}.upgrade-row h3{font-size:20px}.upgrade-row p{font-size:11px;color:#818e74;margin-top:5px}.upgrade-row button{white-space:nowrap;font-size:11px;border:1px solid #c9d4b9;padding:9px 12px;border-radius:6px;margin-left:auto}.upgrade-level{font-size:9px;color:#a0956b;margin-left:8px;font-family:system-ui}.diplomacy-list{margin-top:18px}.diplomacy-row{display:flex;align-items:center;gap:10px;font-size:11px;padding:6px 0}.diplomacy-row strong{font-weight:500;min-width:95px}.tension-track{height:5px;background:#e5e8da;flex:1;border-radius:5px;overflow:hidden}.tension-track span{display:block;height:100%;background:#b29d69}.diplomacy-row small{width:64px;text-align:right;font-size:9px;color:#8a957b}.chronicle-controls{display:flex;gap:9px;margin:15px 0}.chronicle-controls select{flex:1}.chronicle-list{max-height:48vh;overflow:auto;padding-right:7px}.chronicle-entry{border-bottom:1px solid #e0e5d6;padding:12px 0;display:flex;gap:12px;font-size:12px;line-height:1.6}.chronicle-entry time{white-space:nowrap;color:#97a189;min-width:67px;font-size:10px}.chronicle-entry.combat{color:#a3654f}.chronicle-entry.event{color:#9b824a}.choice-list{display:grid;gap:9px;margin:18px 0}.choice-button{border:1px solid #d2ddc3;border-radius:8px;padding:14px;text-align:left;background:#f0f4e6}.choice-button:hover{border-color:#8fa575;background:#e7eedc}.choice-button strong{display:block;font-size:12px;font-weight:600}.choice-button small{display:block;color:#889774;font-size:11px;margin-top:5px;line-height:1.5}.dialogue-quote{font:20px/1.6 Georgia,serif;padding:20px;background:#edf1e3;border-left:3px solid #9eac87;margin:20px 0;border-radius:0 8px 8px 0}.save-status-detail{padding:15px;border:1px solid #d7e0c9;border-radius:8px;background:#edf1e5;font-size:12px;color:#728367;margin:18px 0}.reset-area{border-top:1px solid #dce2d1;margin-top:25px;padding-top:18px}.reset-area button{color:#a56a55;font-size:11px}.reset-area p{font-size:10px;color:#98a18b;margin-top:7px}.boot{height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:15px;background:#e8ecdf}.boot h1{font-size:34px}.boot p{font-size:12px;color:#839575}.boot-cat{font:50px Georgia,serif;color:#9eae87}.boot.error p{max-width:500px;text-align:center;line-height:1.6}.keyboard-hint{font-size:9px;color:#99a08e;margin-left:8px}.small-link{font-size:11px;color:#688357}.warning-note{background:#f4eadd;border:1px solid #e1d2bb;padding:12px;border-radius:6px;font-size:11px;line-height:1.6;color:#917555}.drag-ghost{position:fixed;z-index:50;pointer-events:none;width:38px;height:38px;border-radius:50%;background:#fcf3d9;border:2px solid #b18a4a;display:grid;place-items:center;box-shadow:0 3px 15px #273d3330}.drag-ghost svg{width:25px;height:25px}.follow-button.on{background:#e0e8d2;color:#5b7648}.empty-message{text-align:center;padding:25px;font-size:12px;color:#8e9b7d}.stat-note{font-size:10px;color:#98a188;margin:8px 0 16px}
@media(min-width:1750px){.game-layout{grid-template-columns:minmax(0,1fr) 350px}.cat-panel-inner,.nearby-panel{padding-left:28px;padding-right:28px}.map-heading h1{font-size:35px}}
@media(max-width:1150px){.app-header{padding:0 20px}.brand strong{font-size:22px}.main-nav{gap:15px}.build-tag{display:none}.world-toolbar{padding:0 20px;gap:16px}.simulation-status{display:none}.game-layout{grid-template-columns:minmax(0,1fr) 282px}.cat-panel-inner{padding-left:17px;padding-right:17px}.nearby-panel{padding-left:17px;padding-right:17px}.map-heading h1{font-size:25px}.map-topline{left:20px;top:20px}.map-filter{flex-direction:column;align-items:flex-end;gap:0}.map-filter label{display:none}.map-tip{font-size:10px;padding:9px 12px}.clan-chip .food-stat{display:none}.clan-chip strong{font-size:9px}.clan-chip small{font-size:8px}.portrait-section h2{font-size:23px}.cat-portrait{width:58px;height:58px}.cat-portrait svg{height:43px;width:43px}}
@media(max-width:800px){.app-header{height:68px;padding:0 15px;gap:10px}.brand strong{font-size:20px}.brand small{font-size:6px;letter-spacing:1.7px}.brand-mark{height:38px;width:34px;border-radius:14px 14px 5px 5px}.brand-mark svg{height:25px;width:25px}.main-nav{gap:6px;margin-left:auto}.nav-button{font-size:10px;padding:0 6px}.header-right{gap:0}.header-right #guide-button{display:none}.world-toolbar{height:61px;padding:0 13px;gap:11px;flex-wrap:nowrap}.subtle-button{font-size:10px;gap:5px}.subtle-button .count-pill{display:none}.clock-block{padding-left:12px;gap:5px}.clock-block>span svg{height:22px;width:22px}.time-controls{gap:0}.speed-button{padding:6px}.influence{font-size:0;gap:2px}.influence strong{font-size:14px}.influence svg{height:16px;width:16px}.game-layout{grid-template-columns:1fr;grid-template-rows: minmax(480px,63vh) auto auto}.world-area{border-right:0}.inspector{border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 240px;max-height:none}.cat-panel-inner{padding:18px 20px}.nearby-panel{padding:24px 20px;border-left:1px solid var(--line)}.portrait-section{margin-top:14px}.cat-bio{max-width:500px}.needs{gap:8px}.stats{margin-bottom:12px}.command-grid{grid-template-columns:repeat(3,1fr)}.command.primary{grid-column:1/-1}.activity-bar{padding:14px 18px}.recent-log{gap:13px}.app-footer{padding:0 15px}.app-footer>span:nth-child(2){display:none}.map-stage,#world-map{min-height:400px}.map-topline{top:16px}.roster-drawer{top:80px}.map-heading h1{font-size:27px}.map-note{font-size:8px}.clan-strip{height:50px}.map-tip{bottom:54px}.event-banner{top:90px;min-width:330px;padding:10px}.event-banner strong{font-size:17px}}
@media(max-width:520px){.app-header{padding:0 10px}.brand{gap:7px}.brand strong{font-size:18px}.brand small{font-size:5.5px;letter-spacing:1.5px}.brand-mark{width:29px;height:34px}.brand-mark svg{width:23px;height:23px}.main-nav{gap:1px}.nav-button{font-size:9px;padding:0 5px}.header-right{display:none}.world-toolbar{padding:0 9px;gap:7px}.subtle-button>span:nth-child(2){display:none}.subtle-button svg{height:20px;width:20px}.clock-block{padding-left:8px}.clock-block strong{font-size:11px}.clock-block div>span{font-size:9px;min-width:76px}.clock-block>span{display:none}.control-button{width:26px}.time-controls{margin-left:auto}.speed-button{padding:6px 5px}.influence{margin-left:2px}.game-layout{grid-template-rows:470px auto auto}.map-heading h1{font-size:24px}.eyebrow{font-size:7px}.map-topline{left:15px;right:12px;top:15px}.map-filter select{font-size:9px;padding:6px;width:100px}.map-note{max-width:180px;line-height:1.5}.map-bottom{left:11px;right:10px}.map-tip{font-size:9px;max-width:90%;white-space:normal;text-align:center;bottom:60px;padding:8px 14px}.clan-chip{gap:5px}.clan-chip strong{font-size:8px}.clan-chip small{font-size:7px}.clan-dot{height:5px;width:5px}.inspector{grid-template-columns:1fr}.nearby-panel{border:0;border-top:1px solid var(--line);padding:16px 20px}.nearby-panel #nearby-list{display:grid;grid-template-columns:1fr 1fr;gap:0 16px}.cat-panel-inner{padding-top:20px}.portrait-section h2{font-size:30px}.cat-portrait{width:70px;height:70px}.cat-portrait svg{width:50px;height:50px}.cat-bio{font-size:12px}.needs{margin:17px 0}.need-row{font-size:11px}.stats{padding:14px 0}.command{font-size:11px;padding:12px 8px}.order-feedback{font-size:10px}.recent-log{grid-template-columns:1fr;gap:8px}.log-mini:nth-child(n+3){display:none}.activity-bar{min-height:135px}.activity-title{font-size:10px}.text-button{font-size:9px}.app-footer{font-size:8px}.roster-drawer{left:12px;right:12px;width:auto;top:81px;bottom:63px}.event-banner{left:13px;right:13px;transform:none;min-width:0;gap:7px}.event-banner strong{font-size:15px;white-space:normal}.event-banner small{font-size:6px}.event-banner button{font-size:10px;padding:9px}.location-card{left:13px;bottom:69px}.guide-grid,.destination-list{grid-template-columns:1fr}dialog{padding:17px 20px 22px;max-height:90vh}.modal-actions{gap:7px}.chronicle-entry{font-size:11px;gap:8px}.chronicle-entry time{font-size:9px;min-width:58px}.clan-modal-tabs{gap:4px}.clan-modal-tabs button{font-size:9px;padding:7px}.camp-stats{gap:19px}.upgrade-row{gap:10px}.upgrade-row h3{font-size:18px}.upgrade-row p{font-size:10px}.upgrade-row button{font-size:10px;padding:8px}.toast{font-size:11px;bottom:15px}.guide-item h3{font-size:21px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

/* Starfall: a window into night above the parchment atlas. */
.star-nav{color:#9b7b43;white-space:nowrap}.star-nav .icon{width:15px;height:15px;margin-right:3px}.main-nav{gap:22px}
.life-detail{font-size:11px;line-height:1.6;color:#657567}.life-detail:empty{display:none}.life-detail:not(:empty){padding:11px 0;border-top:1px solid var(--line)}.life-detail p{margin:3px 0}.life-detail .icon{width:13px;height:13px;margin-right:3px}.life-origin{display:block;color:#8d714a;font-size:10px;font-weight:650}.expecting{color:#86713d}.gift-tags{display:flex;flex-wrap:wrap;gap:5px;margin-top:7px}.gift-tags span{border-radius:4px;background:#eee7d6;color:#8b713c;padding:3px 6px;font-size:9px}.cat-token.blessed .token-ring{filter:drop-shadow(0 0 3px #e0ba69);stroke-width:2.3}
.divine-effect .effect-glow{fill:#ffefa34d;stroke:#e2bf6a;stroke-width:2}.effect-label{font-size:11px;letter-spacing:2px;fill:#634a35;paint-order:stroke;stroke:#faf3d9;stroke-width:3px}.wind-rings{filter:drop-shadow(0 2px 3px #37577788);animation:wind-sway 1.8s ease-in-out infinite alternate}.divine-effect.lightning,.divine-effect.meteor{animation:star-arrive .8s ease-out}.log-mini.death,.chronicle-entry.death{border-left-color:#8b7797}.log-mini.birth,.chronicle-entry.birth{border-left-color:#86a06a}.log-mini.divine,.chronicle-entry.divine{border-left-color:#bb9a56}
#modal.starclan-modal{width:min(840px,calc(100vw - 28px));max-width:840px;padding:0;background:#192a36;color:#e9e6dc;border:1px solid #52606a;border-radius:16px;box-shadow:0 35px 100px #08121f80;--line:#52606a;--ink:#ece8dc;--paper:#213440;--ink-soft:#acbbc1;--forest:#ddc38a}
.starclan-modal .modal-top{padding:19px 26px 0;margin:0;color:#b4c3cc}.starclan-modal .modal-top .eyebrow{color:#9eaeb8;letter-spacing:2.5px;font-size:9px}.starclan-modal .icon-button:hover{background:#40515e}
.star-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:32px 36px 30px;background:radial-gradient(circle at 72% 30%,#e7d4a155 0 1px,transparent 2px),radial-gradient(circle at 90% 60%,#dce3ed88 0 1px,transparent 2px),radial-gradient(circle at 57% 62%,#e8e2d455 0 1px,transparent 2px),radial-gradient(ellipse at 78% 30%,#43515b66,transparent 55%)}.star-kicker{font-size:9px;letter-spacing:2.4px;color:#c5b383}.star-hero h2{font-size:55px;letter-spacing:-1.6px;margin:5px 0 8px;color:#f0e7d0}.star-hero p{font-size:13px;color:#aabdc7}
.star-balance{display:grid;grid-template-columns:22px auto;align-items:center;gap:3px 8px;padding:19px;border:1px solid #8d805b66;border-radius:60px 60px 14px 14px;text-align:center;color:#e3c78a;min-width:100px;background:#24384380}.star-balance strong{font:34px Georgia,serif}.star-balance span{grid-column:1/-1;font-size:8px;letter-spacing:1.8px}
.star-tabs{display:flex;gap:6px;padding:0 28px;border-bottom:1px solid #4b5d6855;background:#16253055;overflow-x:auto}.star-tabs button{color:#9caeb9;font-size:12px;padding:15px 13px;border-bottom:2px solid transparent;white-space:nowrap}.star-tabs button.active{color:#e5cd96;border-bottom-color:#d6bb81}.star-tabs button:hover{background:#334955}.star-body{padding:26px 32px 30px;min-height:300px}
.star-intro h3{font-size:24px;color:#eae3cf;margin-bottom:9px}.star-intro>p{color:#a8bbc5;font-size:12px;max-width:690px}.star-form{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:23px 0 18px}.star-field{display:flex;flex-direction:column;gap:8px;margin:18px 0;font-size:11px;color:#b8c5c9}.star-form .star-field{margin:0}.star-field>span{font-size:10px;letter-spacing:.4px}.star-field select{width:100%;background:#233945;color:#e4e6de;border:1px solid #526570;border-radius:7px;padding:10px 30px 10px 12px;font-size:12px;min-height:40px}.star-field option{background:#233945}
.power-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0}.power-grid.two{grid-template-columns:1fr 1fr}.power-card{padding:18px;background:#24394480;border:1px solid #62778555;border-radius:10px;display:flex;flex-direction:column;align-items:flex-start}.power-icon{height:32px;color:#d7bd7f}.power-icon .icon{width:24px;height:24px}.power-card h3{font-size:21px;color:#e4decf;margin:7px 0 9px}.power-card p{font-size:11px;color:#acbdc6;line-height:1.7;flex:1;margin:0 0 18px}
.star-button{display:flex;justify-content:space-between;align-items:center;gap:9px;font-size:11px;font-weight:600;line-height:1.4;border-radius:6px;border:1px solid #9b8c6580;background:#d7bd81;color:#20333d;min-height:38px;padding:9px 11px;text-align:left}.star-button span{font-size:10px;display:flex;align-items:center;gap:4px;white-space:nowrap}.star-button .icon{width:13px;height:13px}.power-card .star-button{width:100%;margin-top:auto}.star-button:disabled{background:#4e6066;color:#b0bdc2;border-color:#72868b50;opacity:.65}.star-button:hover:not(:disabled){background:#e9ce91;filter:none}
.aid-card{display:grid;grid-template-columns:1fr 190px;gap:5px 20px;margin-top:22px;padding:20px;border:1px solid #62778555;border-radius:10px;background:#334d5140;align-items:center}.aid-card>div{grid-row:span 2}.aid-card h3,.heal-card h3{font-size:22px;color:#e9e1cd;margin-bottom:9px}.aid-card p,.heal-card p{font-size:11px;color:#afc0c5}.aid-card .star-field{margin:0}
.star-section-label{display:block;font-size:9px;letter-spacing:1.9px;color:#c5b98f;margin:25px 0 12px}.decree-row{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #62778540;font-size:12px}.decree-row small{display:block;margin-top:5px;color:#9cbdc7;font-size:11px}.star-text-button{color:#dfc78e;font-size:11px;text-decoration:underline;text-underline-offset:4px;padding:8px 4px}.star-footnote{font-size:11px;line-height:1.8;color:#95aab5;margin-top:23px}
.star-footer{display:flex;align-items:center;justify-content:space-between;gap:15px;border-top:1px solid #62778555;padding:16px 32px;color:#8da3ae;font-size:10px;background:#14242e40}.star-footer button{display:flex;gap:7px;align-items:center;color:#e1ca91;font-size:11px}.star-notice{display:flex;gap:10px;align-items:flex-start;padding:13px 15px;border-radius:7px;background:#47615b50;border:1px solid #899d7660;color:#d9dfbd;font-size:12px;line-height:1.6;margin-bottom:22px}.star-notice .icon{flex-shrink:0}
.star-cat-summary{display:flex;align-items:center;gap:15px;margin:22px 0}.star-cat-summary .cat-portrait{width:54px;height:60px}.star-cat-summary .cat-portrait .icon{width:34px}.star-cat-summary h3{font-size:26px;margin-bottom:5px}.star-cat-summary p{font-size:11px;color:#adbdc5}.heal-card{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0}.heal-card .star-button{min-width:150px}.gift-removals{display:flex;gap:8px;flex-wrap:wrap}.gift-removals button{display:flex;gap:10px;align-items:center;padding:7px 10px;border:1px solid #8b805460;border-radius:5px;color:#d8c487;font-size:11px}.gift-removals .icon{width:12px;height:12px}
.nursery-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:22px 0}.nursery-stats>div{border:1px solid #62778555;border-radius:8px;padding:15px;background:#2c424c66}.nursery-stats strong{display:block;font:30px Georgia,serif;color:#e3d8bc}.nursery-stats span{font-size:10px;color:#a1b5bd;display:block;margin-top:7px}.family-list{max-height:330px;overflow:auto}.family-row{display:flex;gap:18px;justify-content:space-between;align-items:center;padding:13px 0;border-bottom:1px solid #62778540}.family-row b{font-size:12px;color:#dfded2}.family-row small{display:block;font-size:10px;color:#9db4bf;margin-top:6px;max-width:420px;line-height:1.6}.family-row .star-button{min-width:136px;flex-shrink:0}
.young-list{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;max-height:270px;overflow:auto}.young-list button{padding:12px;border:1px solid #62778550;border-radius:6px;text-align:left}.young-list button:hover{background:#2a424e}.young-list button>span{display:flex;gap:7px;align-items:center;color:#d2d9cd;font-size:11px}.young-list .icon{width:16px;height:16px;color:#c7ba86}.young-list small{display:block;color:#94adb7;font-size:10px;line-height:1.8;margin-top:6px}
.memorial-row{display:flex;align-items:center;gap:15px;border-bottom:1px solid #62778544;padding:18px 0}.memorial-row>div{flex:1}.memorial-star{color:#c8b888}.memorial-name{display:block;color:#e9e3d2;font:23px Georgia,serif;padding:0}.memorial-name:hover{text-decoration:underline}.memorial-row small{display:block;font-size:10px;color:#96adb9;margin-top:5px}.memorial-row p{font-size:11px;color:#b6bfbb;margin-top:6px}.memorial-row .star-button{min-width:110px}.empty-stars{text-align:center;padding:55px 15px 35px}.empty-stars>.icon{width:48px;height:48px;color:#c2b589;stroke-width:1;margin-bottom:20px}.empty-stars h3{font-size:27px;color:#e0d7c0}.empty-stars p{font-size:12px;color:#93abb8;margin-top:11px}
.disaster-confirm{border:1px solid #bc8c6680;background:#6e453a40;border-radius:10px;padding:20px;margin-top:22px}.disaster-confirm .star-section-label{margin:0 0 9px;color:#e4b58c}.disaster-confirm h3{font-size:25px}.disaster-confirm p{font-size:12px;color:#d3c4b6;margin:12px 0;line-height:1.7}.disaster-confirm>div{display:flex;gap:18px;align-items:center}.star-button.destructive{background:#c59474;border-color:#e0ac88;color:#322920}.star-button.destructive:hover{background:#e4b08b}
@keyframes star-arrive{from{opacity:0;filter:brightness(3)}to{opacity:1;filter:brightness(1)}}@keyframes wind-sway{from{transform:translateX(-7px) skewX(5deg)}to{transform:translateX(7px) skewX(-5deg)}}
@media(max-width:1050px){.main-nav{gap:10px}.app-header{padding:0 20px;gap:12px}.build-tag{display:none}}
@media(max-width:650px){.star-hero{padding:22px}.star-hero h2{font-size:43px}.star-hero p{font-size:11px;max-width:210px}.star-balance{min-width:82px;padding:13px}.star-body{padding:22px 18px}.star-tabs{padding:0 12px;gap:0}.star-tabs button{font-size:11px;padding:13px 11px}.power-grid{grid-template-columns:1fr}.power-grid.two{grid-template-columns:1fr 1fr}.power-card{padding:14px}.power-card h3{font-size:20px}.star-form{grid-template-columns:1fr}.aid-card{grid-template-columns:1fr}.aid-card>div{grid-row:auto}.aid-card .star-field{margin-top:12px}.star-footer{padding:15px 18px}.star-footer>span{max-width:130px;line-height:1.5}.young-list{grid-template-columns:1fr 1fr}.family-row{align-items:flex-start;gap:10px}.family-row .star-button{min-width:112px;font-size:10px}.heal-card{align-items:flex-start}.heal-card .star-button{min-width:125px}.star-nav .icon{display:none}.memorial-name{font-size:20px}.memorial-row{gap:9px}.memorial-row .star-button{min-width:92px;font-size:10px}.star-intro h3{font-size:22px}.starclan-modal .modal-top{padding:14px 18px 0}}
@media(prefers-reduced-motion:reduce){.wind-rings,.divine-effect.lightning,.divine-effect.meteor{animation:none}}

/* Sex is prominent in the profile; symbol and text keep it readable without color. */
.cat-identity{min-width:0;flex:1}.profile-name{display:flex;align-items:center;flex-wrap:wrap;gap:7px 8px}.profile-name h2{overflow-wrap:anywhere}.sex-badge{display:inline-flex;align-items:center;gap:5px;flex-shrink:0;white-space:nowrap;padding:3px 7px;border:1px solid;border-radius:6px;font:600 11px/1.3 system-ui,sans-serif;letter-spacing:0}.sex-symbol{font-size:20px;font-weight:700;line-height:1}.sex-badge.male{color:#315b85;background:#eaf1f8;border-color:#bdd0e3}.sex-badge.female{color:#8c3d61;background:#f8eaf0;border-color:#dfbdcd}
