:root{font-family:Inter,system-ui,sans-serif;color:#f2eee3;background:#172521;font-synthesis:none;--gold:#d8b776;--muted:#b5b7a8;--red:#772d32;--line:rgba(218,199,156,.19);--panel:#1a2622;--serif:"Cormorant Garamond",Georgia,serif}*{box-sizing:border-box}body{margin:0;font-size:14px;line-height:1.5}button,a,input,select{-webkit-tap-highlight-color:transparent}button,select,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.45}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid var(--gold);outline-offset:4px}button{color:inherit;background:none;border:1px solid var(--line);border-radius:5px;min-height:44px;padding:10px 14px;transition:background .18s,border-color .18s}button:hover:not(:disabled){background:#dac79c1f;border-color:#dac79c80}button.active{border-color:var(--gold);background:#dac79c21}[hidden]{display:none!important}#app{position:relative;width:100%;height:100dvh;min-height:560px;overflow:hidden}#world{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;touch-action:none}.vignette{position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(180deg,rgba(13,24,23,.84) 0,rgba(13,24,23,.15) 23%,transparent 49%,rgba(13,24,23,.45) 100%);pointer-events:none}.topbar{position:absolute;left:0;right:0;top:0;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 32px;height:112px;border-bottom:1px solid var(--line);background:#111d1a99;-webkit-backdrop-filter:blur(15px);backdrop-filter:blur(15px);z-index:5}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:inherit;flex-shrink:0}.laurel{font-family:Georgia,serif;font-size:54px;color:var(--gold);transform:rotate(-25deg)}.brand small{display:block;font-size:12px;letter-spacing:.2em;color:var(--gold);margin-bottom:3px}.brand strong{font:600 32px/1 var(--serif);letter-spacing:-.02em}.brand em{font-style:normal;color:var(--gold)}.resources{display:flex;align-items:center;gap:30px}.resource{display:grid;grid-template-columns:22px auto;gap:3px 8px;align-items:center}.resource .symbol{grid-row:span 2;font:23px var(--serif);color:var(--gold)}.resource strong{font-size:17px;font-weight:500;line-height:1}.resource small{font-size:12px;line-height:1.3;color:var(--muted);text-transform:uppercase;letter-spacing:.03em}.resource.day{border-left:1px solid var(--line);padding-left:24px}.icon-button{font-size:20px;min-width:43px;padding:7px}.tabs{position:absolute;top:129px;left:32px;display:flex;gap:5px;z-index:5;background:#131f1ce3;border:1px solid var(--line);padding:4px;border-radius:6px;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.tabs button{min-width:105px;min-height:44px;border-color:transparent;font-size:14px;padding:9px 18px}.tabs button span{color:var(--gold);margin-right:8px;font-family:var(--serif)}.tabs button.active{border-color:var(--line);background:#dbba8124}.scene-heading{position:absolute;top:209px;left:38px;pointer-events:none;max-width:440px;text-shadow:0 2px 16px rgba(15,30,27,.7)}.scene-heading small{color:#f0d4a3;font-size:12px;letter-spacing:.22em}.scene-heading h1{font:500 44px/1.05 var(--serif);max-width:375px;margin:12px 0 10px}.scene-heading p{font-size:14px;color:#e5e6da;line-height:1.6;margin:0;max-width:345px}.panel{position:absolute;right:24px;top:129px;bottom:92px;width:380px;background:#182520f2;border:1px solid var(--line);border-radius:8px;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px);z-index:4;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#6d725b transparent;box-shadow:0 18px 70px #0b121040}.panel-top{padding:23px 23px 18px;border-bottom:1px solid var(--line)}.eyebrow{display:block;color:var(--gold);font-size:12px;letter-spacing:.17em;text-transform:uppercase}.panel h2{font:500 31px/1.1 var(--serif);margin:8px 0 7px;font-size:34px;line-height:1.15}.panel p{font-size:14px;line-height:1.6;color:var(--muted);margin:0}.panel-section{padding:18px 22px;border-bottom:1px solid var(--line)}.section-heading{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:14px;gap:12px}.section-heading h3{font-size:14px;font-weight:600;margin:0;letter-spacing:.04em;line-height:1.4}.section-heading small{color:var(--gold);font-size:12px;white-space:nowrap}.building-row{display:flex;gap:13px;width:100%;text-align:left;border:0;border-bottom:1px solid var(--line);border-radius:0;padding:13px 0;align-items:center}.building-row:last-child{border-bottom:0}.building-row:hover:not(:disabled){background:#dbba810f;border-color:var(--line)}.building-icon{width:41px;height:41px;display:grid;place-items:center;border:1px solid var(--line);color:var(--gold);font:24px var(--serif);flex-shrink:0}.building-info{flex:1;min-width:0}.building-info strong{font-size:15px;font-weight:500;display:block;margin-bottom:5px;line-height:1.4}.building-info small{font-size:12px;color:var(--muted);line-height:1.5}.building-info small.gold{color:var(--gold)}.row-arrow{color:var(--gold);font-size:18px}.primary{background:#d4b575;color:#202a22;border-color:#d4b575;font-size:14px;font-weight:600;letter-spacing:.03em}.primary:hover:not(:disabled){background:#e7c992;color:#202a22;border-color:#e7c992}.primary span{margin-left:18px}.wide{width:100%;margin-top:12px}.secondary{font-size:14px}.metric-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.metric-grid small{display:block;font-size:12px;color:var(--muted);margin-bottom:5px;line-height:1.4}.metric-grid strong{font:500 25px var(--serif);color:var(--gold)}.metric-grid span{font-size:12px;color:var(--muted)}.tip{padding:12px;border-left:2px solid var(--gold);background:#ceb27812;margin-top:13px!important;font-size:14px!important;line-height:1.6}.progress{height:6px;border-radius:3px;background:#d9d3b41f;overflow:hidden}.progress span{display:block;height:100%;background:var(--gold);transition:width .25s}.progress.red span{background:#b86159}.progress.green span{background:#86a087}.cohort{padding:18px 22px;border-bottom:1px solid var(--line)}.cohort-head{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:9px;gap:12px}.cohort h3{font:600 21px var(--serif);margin:0 0 4px;font-size:25px}.cohort small{font-size:12px;color:var(--muted)}.badge{display:inline-block;background:#dab9761a;color:var(--gold);border:1px solid var(--line);font-size:12px;letter-spacing:.06em;padding:4px 7px;border-radius:2px}.cohort-stats{display:flex;gap:6px 14px;font-size:12px;color:var(--muted);margin:12px 0;flex-wrap:wrap;line-height:1.5}.skill{display:grid;grid-template-columns:78px minmax(0,1fr) 36px;align-items:center;gap:10px;margin:12px 0;font-size:12px;color:var(--muted)}.skill strong{font-size:12px;color:var(--gold);text-align:right;font-weight:400}.training-select{width:100%;margin:14px 0;color:#f2eee3;background:#24362e;border:1px solid var(--line);padding:11px;font-size:16px;border-radius:4px;min-height:44px}.cohort-foot{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.cohort-foot label{display:flex;align-items:center;gap:6px;font-size:14px;color:var(--muted);min-height:44px;flex:1 1 165px}input[type=checkbox]{accent-color:var(--gold);width:19px;height:19px;flex-shrink:0}.cohort-foot button{font-size:14px;padding:8px;min-height:44px;flex:1 1 140px}.text-button{border:0;padding:8px 0;min-height:44px;color:var(--gold);font-size:14px;text-decoration:underline;text-underline-offset:4px}.back-button{font-size:14px;padding:0;border:0;min-height:44px;color:var(--gold);margin-bottom:8px}.detail-title{font:500 38px var(--serif)!important}.cost-line{display:flex;justify-content:space-between;font-size:14px;margin:16px 0;color:var(--gold);gap:12px;flex-wrap:wrap}.chronicle{margin:12px 0 0;padding:0;list-style:none}.chronicle li{font-size:14px;line-height:1.6;color:var(--muted);padding:9px 0;border-bottom:1px solid var(--line)}.bottom-bar{position:absolute;bottom:0;left:0;right:0;height:73px;display:flex;justify-content:space-between;gap:15px;align-items:center;padding:14px 32px;background:#111d1aed;border-top:1px solid var(--line);z-index:6}.bottom-bar>div{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted);line-height:1.4;min-width:0}.status-dot{width:5px;height:5px;border-radius:50%;background:#94ad80}.controls-hint{border-left:1px solid var(--line);padding-left:14px;margin-left:10px;color:#a3a99e;font-size:12px}.bottom-bar>.primary{min-width:165px;min-height:44px;font-size:14px}.scene-tools{position:absolute;left:32px;bottom:95px;display:flex;gap:5px;z-index:3}.scene-tools button{background:#16251ed6;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);font-size:14px;min-height:44px}.scene-tools button:not(:first-child){width:44px;padding:5px;font-size:20px}.world-labels{position:absolute;top:0;right:0;bottom:0;left:0;pointer-events:none}.world-label{position:absolute;transform:translate(-50%,-100%);background:#172620e6;border:1px solid rgba(218,185,118,.35);border-radius:3px;padding:7px 11px;min-height:40px;font-size:12px;box-shadow:0 4px 18px #14251a40;pointer-events:auto;white-space:nowrap}.world-label:after{content:"";position:absolute;left:50%;bottom:-12px;height:11px;width:1px;background:var(--gold)}.world-label span{color:var(--gold);margin-left:6px}.touch-pad{display:none;position:absolute;left:25px;bottom:143px;z-index:3;text-align:center}.touch-pad button{width:44px;height:44px;padding:0;font-size:22px;background:#16251ecc;touch-action:none}.touch-pad>div{display:flex;gap:4px;margin-top:4px}.toast{position:absolute;left:50%;bottom:91px;transform:translate(-50%);padding:14px 22px;max-width:520px;width:max-content;font-size:14px;line-height:1.6;border:1px solid var(--gold);background:#22352e;box-shadow:0 8px 30px #0005;z-index:12;border-radius:5px}.map-view{position:absolute;left:28px;right:425px;top:190px;bottom:95px;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:radial-gradient(ellipse at 50% 35%,#365149,#1b302a);z-index:3;box-shadow:0 20px 70px #10201850}.map-view svg{width:100%;height:100%;display:block}.map-title{font-family:var(--serif);font-size:22px;fill:#d7c294;letter-spacing:3px}.map-sea{fill:#70978b;font-size:12px;letter-spacing:3px}.map-land{fill:#79866a;stroke:#b5b492;stroke-width:1.5}.map-inland{fill:none;stroke:#526b54;stroke-width:1;stroke-dasharray:3 5}.map-road{stroke:#d5bb80;stroke-width:1;opacity:.6;stroke-dasharray:4 5}.province-node{cursor:pointer;outline:none}.province-node circle{fill:#213c30;stroke:#a6ad89;stroke-width:2;transition:fill .2s}.province-node text{font-family:var(--serif);font-size:22px;fill:#eee5ce;text-anchor:middle;paint-order:stroke;stroke:#20382c;stroke-width:3px;stroke-linejoin:round}.province-node .map-sub{font-family:Inter,sans-serif;font-size:12px;fill:#d0d0b6;stroke-width:2px}.province-node.owned circle{fill:#b69b5d;stroke:#eddbac}.province-node.selected circle{fill:#a0564f;stroke:#edd5ac;stroke-width:3}.province-node.locked{opacity:.6}.province-node:focus circle,.province-node:hover circle{stroke:#fff3cc;stroke-width:4}.map-legend{position:absolute;left:18px;bottom:15px;display:flex;gap:4px 14px;font-size:12px;color:#cacbb5;flex-wrap:wrap;line-height:1.4}.map-legend span:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#b69b5d;margin-right:6px}.map-legend span:last-child:before{background:#213c30;border:1px solid #a6ad89}.army-estimate{margin:15px 0}.army-estimate strong{font:500 28px var(--serif);color:var(--gold)}.army-estimate p{margin-top:5px}.terrain-tag{color:var(--gold);font-size:14px;display:block;margin:11px 0}.danger{color:#d89c8f!important}.positive{color:#a3c198!important}.button-pair{display:flex;gap:8px}.button-pair>*{flex:1}.button-pair button{padding:10px 8px;font-size:14px}.campaign-complete{padding:15px;border:1px solid var(--gold);background:#344833;margin:12px 0}.battle-hud{position:absolute;right:24px;top:129px;bottom:92px;width:380px;background:#182520f5;border:1px solid var(--line);border-radius:8px;z-index:5;overflow-y:auto;padding:22px}.battle-hud h2{font:500 29px var(--serif);margin:8px 0 12px}.battle-hud p{font-size:14px;line-height:1.6;color:var(--muted)}.battle-meter{margin:17px 0}.battle-meter>div:first-child{display:flex;justify-content:space-between;font-size:12px;color:var(--muted);margin-bottom:8px;gap:12px}.formation-buttons{display:flex;gap:6px;margin:15px 0}.formation-buttons button{flex:1;font-size:14px;padding:10px 4px}.battle-phase{background:#dab97614;padding:13px;border:1px solid var(--line);margin:18px 0}.battle-phase strong{font:500 22px var(--serif);color:var(--gold)}.battle-phase p{margin:7px 0 0;font-size:14px;line-height:1.6}.battle-hud .secondary{width:100%;margin-top:8px}.battle-hud .primary{width:100%;margin-top:10px}.battle-hud .cost-line{font-size:12px}.strike-button{margin-top:8px;width:100%;font-size:14px}.loading{position:absolute;top:0;right:0;bottom:0;left:0;background:#192b23;z-index:30;display:flex;flex-direction:column;justify-content:center;align-items:center}.loading-seal{display:grid;place-items:center;width:80px;height:80px;border:1px solid var(--gold);border-radius:50%;color:var(--gold);font:600 18px var(--serif);letter-spacing:.13em}.loading h2{font:500 43px var(--serif);margin:25px 0 8px}.loading p{font-size:14px;color:var(--muted);max-width:450px;text-align:center;padding:0 20px;line-height:1.6}.loading-line{height:2px;width:180px;background:var(--line);margin-top:25px;overflow:hidden}.loading-line:after{content:"";display:block;height:2px;width:60px;background:var(--gold);animation:load 2s ease-in-out infinite}@keyframes load{0%{transform:translate(-60px)}to{transform:translate(180px)}}dialog{background:#203129;color:#f2eee3;border:1px solid var(--gold);border-radius:9px;max-width:560px;width:calc(100% - 32px);max-height:88dvh;padding:32px;box-shadow:0 30px 100px #0008;overflow:auto}dialog::backdrop{background:#09130ebd;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}dialog h2{font:500 38px/1.1 var(--serif);margin:12px 0 17px}dialog h3{font:500 23px var(--serif);color:var(--gold)}dialog p,dialog li{font-size:14px;line-height:1.6;color:#c0c6b8}dialog ol{padding-left:22px}dialog .close{float:right;border:0;min-height:44px;min-width:44px;padding:3px 9px;font-size:22px}.modal-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}.modal-actions button{font-size:14px}.modal-table{width:100%;border-collapse:collapse;font-size:14px;margin:20px 0}.modal-table td{padding:11px 0;border-bottom:1px solid var(--line);color:var(--muted)}.modal-table td:last-child{text-align:right;color:var(--gold)}.settings-list{display:grid;gap:10px;margin-top:18px}.settings-list button{text-align:left;font-size:14px}.settings-list select{background:#2a3d32;color:#eee8d8;border:1px solid var(--line);padding:12px;border-radius:4px;font-size:16px;width:100%;min-width:0;min-height:44px}.settings-list label{font-size:14px;color:var(--muted)}.settings-list input[type=file]{width:100%;font-size:14px;color:var(--muted);min-height:44px}.report-seal{font:500 55px var(--serif);color:var(--gold);text-align:center;margin:5px 0 18px}.report-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:20px 0;text-align:center}.report-stats strong{display:block;font:500 30px var(--serif);color:var(--gold)}.report-stats small{font-size:12px;color:var(--muted)}@media (pointer:coarse){.touch-pad{display:block}.controls-hint{display:none;font-size:12px}.world-label{min-height:40px;font-size:12px}.scene-tools{bottom:92px}}@media (max-width:1100px){.topbar{padding:15px 22px;gap:12px}.resources{gap:17px}.resource.day{padding-left:15px}.panel,.battle-hud{right:16px;width:340px}.map-view{right:370px;left:20px}.scene-heading{left:26px;max-width:290px}.scene-heading h1{font-size:37px}.tabs{left:22px}.bottom-bar{padding:14px 22px}.controls-hint{display:none;font-size:12px}.resource strong{font-size:15px}.brand strong{font-size:28px}.scene-tools{left:22px}}@media (max-width:800px){.topbar{height:98px;padding:12px 16px}.brand strong{font-size:24px}.brand small{font-size:12px}.laurel{font-size:37px}.brand{gap:7px}.resources{gap:10px}.resource{gap:2px 4px;grid-template-columns:14px auto}.resource .symbol{font-size:17px}.resource small{font-size:12px;letter-spacing:0;overflow-wrap:anywhere}.resource strong{font-size:14px}.resource.renown{display:none}.resource.day{padding-left:10px}.tabs{top:110px;left:16px}.tabs button{min-width:86px;padding:8px 10px;font-size:14px}.panel,.battle-hud{top:168px;right:12px;bottom:82px;width:320px}.panel-top,.panel-section,.cohort{padding:16px}.scene-heading{top:181px;left:20px;max-width:220px}.scene-heading h1{font-size:32px;max-width:220px}.scene-heading p{font-size:14px;max-width:210px;line-height:1.6}.scene-heading small{font-size:12px}.map-view{left:12px;right:345px;top:168px;bottom:82px}.map-legend{font-size:12px;gap:4px 14px;left:10px;flex-wrap:wrap;line-height:1.4}.bottom-bar{height:65px;padding:10px 16px}.bottom-bar>.primary{min-width:150px;font-size:14px}.bottom-bar>div{font-size:12px;line-height:1.4;min-width:0}.scene-tools{bottom:82px;left:16px}.touch-pad{left:16px;bottom:132px}.world-label{font-size:12px;padding:7px;min-height:40px}.battle-hud{padding:16px}.formation-buttons button{font-size:14px}}@media (max-width:700px){#app{min-height:600px}.topbar{height:138px;display:block;padding:12px 16px}.brand{width:max-content}.brand strong{font-size:25px}.brand small{font-size:12px}.laurel{font-size:31px}.icon-button{position:absolute;right:16px;top:12px;min-height:44px;width:44px;font-size:17px}.resources{position:absolute;left:16px;right:16px;bottom:8px;display:grid;grid-template-columns:1.25fr 1.25fr 1fr .65fr;gap:8px;align-items:start}.resource{grid-template-columns:16px minmax(0,1fr);min-width:0}.resource small{font-size:12px;letter-spacing:0;overflow-wrap:anywhere}.resource strong{font-size:16px}.resource.day{border:0;padding:0}.tabs{top:149px;left:12px;right:12px;justify-content:space-between}.tabs button{flex:1;min-width:0;font-size:14px}.scene-heading{display:none}.scene-heading h1{font-size:31px;max-width:265px;margin-top:7px}.scene-heading p{max-width:260px;font-size:14px;line-height:1.6}.scene-heading small{font-size:12px}.panel{left:12px;right:12px;top:auto;bottom:77px;width:auto;height:40dvh;min-height:185px;background:#16241df7}.panel-top{padding:13px 16px}.panel h2{font-size:34px;margin:6px 0;line-height:1.15}.panel p{font-size:14px;line-height:1.6}.panel-section{padding:13px 16px}.building-row{padding:10px 0}.building-icon{width:32px;height:32px}.building-info strong{font-size:15px;line-height:1.4}.building-info small{font-size:12px;line-height:1.5}.scene-tools{bottom:calc(40dvh + 87px);left:12px}.touch-pad{bottom:calc(40dvh + 136px);left:12px}.touch-pad button{width:44px;height:44px;font-size:20px}.scene-tools button{min-height:44px;font-size:14px}.scene-tools button:not(:first-child){width:44px;font-size:17px}.world-label{font-size:12px;min-height:40px;padding:6px}.bottom-bar{height:65px;padding:10px 12px}.bottom-bar>div{font-size:12px;max-width:160px;line-height:1.4;min-width:0}.bottom-bar>.primary{min-width:150px;font-size:14px}.map-view{left:12px;right:12px;top:210px;bottom:calc(40dvh + 87px);min-height:150px}.map-legend{bottom:8px;font-size:12px;flex-wrap:wrap;gap:4px 14px;line-height:1.4}.map-title{font-size:22px;letter-spacing:3px}.toast{max-width:calc(100% - 30px);font-size:14px;bottom:80px;line-height:1.6}.battle-hud{left:12px;right:12px;top:auto;bottom:77px;width:auto;height:46dvh;min-height:235px;padding:14px 16px}.battle-hud h2{font-size:23px;margin:6px 0}.battle-meter{margin:9px 0}.battle-phase{margin:10px 0;padding:9px}.battle-phase strong{font-size:19px}.battle-phase p{font-size:14px;line-height:1.6}.formation-buttons{margin:9px 0}.formation-buttons button{font-size:14px}.battle-hud .primary,.battle-hud .secondary{min-height:44px;margin-top:6px;font-size:14px}.battle-hud p{font-size:14px;line-height:1.6}.battle-mode .scene-tools{bottom:calc(46dvh + 87px)}.battle-mode .touch-pad{bottom:calc(46dvh + 135px)}dialog{padding:24px}dialog h2{font-size:32px}dialog p,dialog li{font-size:14px;line-height:1.6}}@media (max-width:800px){.province-node .map-sub,.map-sea{display:none}.province-node text{font-size:30px}.province-node[data-province=cisalpina] text{transform:translateY(-13px)}.map-title{display:none}}@media (max-width:700px){.province-node text{font-size:32px}.map-legend{font-size:12px}.resource small{letter-spacing:0;overflow-wrap:anywhere}.touch-pad{bottom:calc(40dvh + 143px)}.battle-mode .touch-pad{bottom:calc(46dvh + 143px)}}@media (prefers-reduced-motion:reduce){*{transition:none!important}.loading-line:after{animation:none;width:180px}}.dialog-status{padding:12px 14px;border:1px solid var(--gold);background:#2c4133;color:#f1dbac!important;font-size:14px!important;margin-top:18px!important}.panel .interface-note,.battle-hud .interface-note,dialog .interface-note{font-size:14px;line-height:1.6;margin-top:12px}.battle-hud .interface-note{margin-bottom:12px}@media (max-height:600px){#app{min-height:0}}@media (max-height:600px) and (orientation:landscape) and (min-width:701px){.topbar{height:76px;padding:8px 16px;gap:12px}.brand{gap:8px}.brand strong{font-size:26px}.brand small{letter-spacing:.1em}.laurel{font-size:36px}.resources{gap:12px}.resource.day{padding-left:10px}.tabs{top:84px;left:16px}.tabs button{min-height:44px}.scene-heading{display:none}.panel,.battle-hud{top:84px;bottom:78px;right:12px;left:auto;width:320px;height:auto;min-height:0;overflow-y:auto}.panel-top,.panel-section,.cohort,.battle-hud{padding:16px}.map-view{top:144px;bottom:78px;left:12px;right:345px;min-height:0}.province-node .map-sub,.map-sea,.map-title{display:none}.province-node text{font-size:30px}.bottom-bar{height:65px;padding:10px 16px}.controls-hint{display:none}.scene-tools,.battle-mode .scene-tools{left:16px;bottom:82px}.touch-pad,.battle-mode .touch-pad{left:16px;bottom:136px}.toast{bottom:78px;max-height:calc(100dvh - 160px);overflow-y:auto}}@media (max-height:600px) and (orientation:landscape) and (max-width:700px){.topbar{height:76px;display:flex;align-items:center;padding:8px 12px;gap:8px}.brand{gap:6px;width:auto}.brand small{display:none}.brand strong{font-size:22px}.laurel{font-size:28px}.icon-button{position:static;min-width:44px;width:44px;height:44px;flex-shrink:0}.resources{position:static;display:grid;flex:1;min-width:0;grid-template-columns:1.25fr 1.25fr 1fr .65fr;gap:6px}.resource{grid-template-columns:14px minmax(0,1fr)}.resource strong{font-size:16px}.resource .symbol{font-size:17px}.tabs{top:84px;left:12px;right:auto;width:calc(100% - 308px)}.tabs button{padding:8px 5px;min-height:44px}.tabs button span{margin-right:4px}.panel,.battle-hud{top:84px;bottom:78px;right:12px;left:auto;width:280px;height:auto;min-height:0;overflow-y:auto}.panel-top,.panel-section,.cohort,.battle-hud{padding:14px}.map-view{top:154px;bottom:78px;left:12px;right:304px;min-height:0}.bottom-bar{height:65px;padding:10px 12px}.scene-tools,.battle-mode .scene-tools{left:12px;bottom:82px}.touch-pad,.battle-mode .touch-pad{left:12px;bottom:136px}.toast{bottom:78px;max-height:calc(100dvh - 160px);overflow-y:auto}}@media (max-height:600px) and (max-width:700px){.touch-pad,.battle-mode .touch-pad{top:160px;bottom:auto}.scene-tools,.battle-mode .scene-tools{top:160px;bottom:auto;left:164px;display:grid;grid-template-columns:44px 44px;gap:6px}.scene-tools button:first-child{grid-column:1 / -1;min-width:0;min-height:44px;padding:4px;line-height:16px}.world-labels{display:none}}
