body.has-world {background:#091719;color:#ebeee5}body.has-world .site-header {max-width:none;min-height:54px;padding:8px 18px;border-bottom:1px solid #49635466}body.has-world .brand {font-size:14px}body.has-world .brand-symbol {width:30px;height:30px;font-size:16px}body.has-world .site-nav {display:none}body.has-world .site-footer {display:none}body.has-world main {padding:0;max-width:none;width:100%}body.has-world .motion-note {display:none!important}
.world-shell {height:calc(100vh - 60px);height:calc(100dvh - 60px);max-height:1100px;max-width:1600px;margin:auto;padding:8px 12px max(8px,env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:6px;font:14px/1.35 system-ui,sans-serif;box-sizing:border-box}
.world-heading {display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:44px}.world-heading h1 {font:600 23px/1.15 system-ui,sans-serif;letter-spacing:-.4px;margin:2px 0;color:#f7f0d9;max-width:65vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.world-kicker {font:700 10px/1.2 system-ui,sans-serif;letter-spacing:1.5px;color:#aac8b1}.world-save-status {font-size:12px;color:#b9d4c2;margin:0;min-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.world-metrics {display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.world-stat {background:#16352f;border:1px solid #42604c;padding:5px 8px;border-radius:6px;min-width:0}.world-stat strong {font-size:18px;font-variant-numeric:tabular-nums;color:#fff2c4;display:block;white-space:nowrap}.world-stat span {font-size:11px;color:#b9cbbb;display:block;white-space:nowrap}.world-map {flex:1;min-height:120px;position:relative;overflow:hidden;border:1px solid #7b967260;border-radius:10px;background:#2d5d44;box-shadow:inset 0 0 36px #071d28}.world-map>canvas:first-child {width:100%;height:100%;display:block;touch-action:none;cursor:grab}.world-map>canvas:first-child:active {cursor:grabbing}.world-zoom {position:absolute;right:8px;top:8px;display:flex;flex-direction:column;gap:5px}.world-zoom button {width:44px;height:44px;font:25px system-ui;border:1px solid #80937b;background:#112a2aed;color:#fff3cf;border-radius:8px;touch-action:manipulation}.world-size {position:absolute;right:8px;bottom:8px;padding:4px 8px;background:#071c20da;font-size:11px;border-radius:4px;color:#dbe5c8}#world-minimap {position:absolute;left:8px;bottom:8px;width:76px;height:76px;border:2px solid #d9d9b0;border-radius:5px;cursor:crosshair;touch-action:manipulation;background:#20372d}.world-map-hint {position:absolute;left:8px;top:8px;padding:5px 8px;background:#0b2526d9;color:#e9f1d8;border-radius:4px;font-size:12px;pointer-events:none}.world-selection {font-size:13px;min-height:35px;display:flex;align-items:center;color:#e9e6d2;padding:0 4px}.world-actions {display:grid;grid-template-columns:1fr .8fr 1.2fr 1.25fr;gap:6px}.world-button,.world-sheet button {background:#203e36;color:#fff0d0;border:1px solid #759074;border-radius:7px;padding:10px 12px;min-height:46px;font:600 14px/1.2 system-ui,sans-serif;cursor:pointer;touch-action:manipulation}.world-button:disabled {opacity:.42;cursor:default}.world-button.world-primary {background:#c4e8aa;color:#153d2e;border-color:#e6f2c5}.world-button.world-danger {border-color:#c59478;color:#f7c8b1}.world-bottom {display:flex;align-items:center;justify-content:space-between;gap:4px;min-height:35px}.world-bottom button,.world-bottom a {font:12px system-ui;background:none;border:0;color:#c9d4ba;text-decoration:underline;text-underline-offset:3px;padding:8px 4px;min-height:35px;cursor:pointer}.world-bottom a {display:inline-flex;align-items:center}
.world-sheet {position:fixed;inset:auto 0 0;margin:0 auto;width:min(640px,100%);max-width:100%;max-height:min(76dvh,680px);border:1px solid #879f7a;border-radius:16px 16px 0 0;padding:16px 16px max(18px,env(safe-area-inset-bottom));background:#102a29;color:#e3ead7;box-shadow:0 -8px 40px #0008;overflow-y:auto;box-sizing:border-box;font:14px/1.5 system-ui,sans-serif}.world-sheet::backdrop {background:#0007}.world-sheet h2 {font:700 18px/1.3 system-ui,sans-serif;color:#fff1cc;margin:0 0 12px}.world-sheet p {font:14px/1.5 system-ui,sans-serif;margin:10px 0}.world-sheet-heading {display:flex;justify-content:space-between;align-items:center;gap:12px}.world-sheet-heading h2 {margin:0}.world-sheet-heading button {font-size:24px;width:44px;padding:0}.world-sheet>button {width:100%;margin:6px 0}.world-categories {display:flex;gap:7px;overflow-x:auto;padding:12px 0}.world-categories button {flex-shrink:0;min-height:42px;padding:8px 12px;font-size:13px}.world-categories button[aria-pressed=true] {background:#d0e2ac;color:#20362d}.world-catalog {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.world-catalog button {display:grid;grid-template-columns:52px 1fr;align-items:center;gap:7px;text-align:left;padding:8px;min-height:80px}.world-catalog canvas {width:52px;height:60px;grid-row:1/3}.world-catalog strong {font-size:14px;display:block;color:#f1e8bd}.world-catalog span {font-size:12px;display:block;color:#c6d6bd;margin-top:4px}.world-catalog small {display:block;font:11px/1.3 system-ui;color:#afc6b9;margin-top:3px}.world-fine {font-size:12px!important;color:#acc3b5}.world-name-form {display:flex;gap:8px;margin:6px 0 12px}.world-name-form input {min-width:0;flex:1;background:#081e20;color:#f4efd5;border:1px solid #789478;border-radius:7px;padding:10px;font:16px system-ui}.world-menu-grid {display:grid;grid-template-columns:1fr 1fr;gap:8px;margin:10px 0}.world-ticket {display:grid;grid-template-columns:1fr auto;gap:8px;margin:18px 0}.world-ticket input {grid-column:1/3;width:100%;min-height:44px;accent-color:#d9d983}.world-report-row {display:flex;justify-content:space-between;gap:12px;padding:7px 0;border-bottom:1px solid #49685b;font-size:14px}.world-report-tip {background:#294234;border-left:3px solid #d1d994;padding:12px;margin:12px 0}.world-sheet [hidden]{display:none!important}
@media(min-width:900px){.world-shell{padding:12px 24px;gap:9px}.world-heading h1{font-size:26px}.world-metrics{max-width:800px;align-self:center;width:100%}.world-actions,.world-bottom{max-width:760px;align-self:center;width:100%}.world-selection{justify-content:center}.world-map-hint{left:16px;top:16px}#world-minimap{width:112px;height:112px;left:16px;bottom:16px}.world-button{min-height:48px}.world-sheet{bottom:3vh;border-radius:14px;max-height:80vh}}
@media(max-width:380px){body.has-world .site-header{padding:6px 10px;min-height:48px}.world-shell{height:calc(100dvh - 52px);padding:5px 7px max(5px,env(safe-area-inset-bottom));gap:4px}.world-heading{min-height:36px}.world-heading h1{font-size:19px}.world-kicker{font-size:9px;letter-spacing:.7px}.world-button,.world-sheet button{font-size:12px;padding:8px;min-height:44px}.world-stat{padding:3px 5px}.world-stat strong{font-size:16px}.world-stat span{font-size:10px}.world-selection{font-size:12px;min-height:32px}.world-save-status{font-size:11px}.world-catalog{gap:6px}.world-catalog button{grid-template-columns:40px 1fr}.world-catalog canvas{width:40px;height:48px}.world-catalog strong{font-size:12px}.world-bottom button,.world-bottom a{font-size:11px}.world-zoom button{width:44px;height:44px}.world-sheet{padding:12px}.world-map-hint{font-size:11px;max-width:190px}#world-minimap{width:60px;height:60px}}
.world-save-status{white-space:normal;overflow:visible;line-height:1.3}
/* Keep every category, including Upgrade/Clear, visible without a sideways swipe. */
.world-categories{flex-wrap:wrap;overflow-x:visible}.world-categories button{min-height:44px}
@media(max-height:500px) and (min-width:600px){.world-shell{display:grid;grid-template-columns:minmax(0,1fr) 282px;grid-template-rows:38px 18px 44px minmax(28px,1fr) 92px 32px;gap:5px 10px;height:calc(100dvh - 60px);padding:6px 10px}.world-map{grid-column:1;grid-row:1/7;min-height:0}.world-heading{grid-column:2;grid-row:1;min-height:0}.world-heading h1{font-size:18px;max-width:170px}.world-heading>.world-button{font-size:12px;min-height:36px;padding:5px}.world-kicker{font-size:8px;letter-spacing:.4px}.world-save-status{grid-column:2;grid-row:2;font-size:10px;white-space:nowrap;overflow:hidden}.world-metrics{grid-column:2;grid-row:3}.world-stat{padding:3px 5px}.world-stat strong{font-size:14px}.world-stat span{font-size:9px}.world-selection{grid-column:2;grid-row:4;font-size:11px;min-height:0;line-height:1.2}.world-actions{grid-column:2;grid-row:5;grid-template-columns:1fr 1fr}.world-actions .world-button{min-height:44px;padding:6px;font-size:12px}.world-bottom{grid-column:2;grid-row:6;min-height:0}.world-bottom button,.world-bottom a{font-size:10px;min-height:30px;padding:4px}.world-size{font-size:10px}}
