.game-loading-screen{--loading-duration: 5s;position:relative;display:grid;width:100%;min-height:min(76vh,720px);overflow:hidden;place-items:center;isolation:isolate;border:1px solid rgba(255,255,255,.22);border-radius:clamp(18px,3vw,28px);background:#12384c;box-shadow:0 26px 70px #00000061;color:#f8fdff;animation:loading-background var(--loading-duration) linear both}.game-loading-ball{position:absolute;z-index:3;top:50%;left:50%;width:clamp(46px,8vmin,82px);aspect-ratio:1;border-radius:50%;background:#fff;box-shadow:inset -7px -9px 15px #6f889747,0 12px 20px #00000042;transform:translate(-50%,-50%) scale(32);animation:loading-ball-kick var(--loading-duration) linear both}.game-loading-paddle{position:absolute;z-index:4;top:50%;left:-40vw;width:min(37vw,330px);height:min(9vw,76px);border:7px solid #e9f8ed;border-radius:50%;background:#d95749;box-shadow:inset 10px 8px #fff3,0 10px 18px #00000047;opacity:0;transform:translateY(-50%) rotate(-11deg) skewY(-7deg);animation:loading-paddle-strike var(--loading-duration) linear both}.game-loading-paddle i{position:absolute;top:56%;right:-35%;width:45%;height:24%;border-radius:999px;background:#a66c4d;transform:rotate(9deg);transform-origin:left center}.game-loading-content{position:absolute;z-index:2;top:50%;left:50%;padding:24px;opacity:1;transform:translate(-50%,-50%);clip-path:inset(0 100% 0 0);animation:loading-brand-reveal var(--loading-duration) linear both}.game-loading-wordmark{display:block;width:clamp(220px,38vw,390px);max-width:calc(100vw - 64px);height:auto;filter:drop-shadow(0 12px 20px rgba(7,20,48,.28))}@keyframes loading-background{0%,8%{background:#fff}15%,to{background:#12384c}}@keyframes loading-ball-kick{0%{transform:translate(-50%,-50%) scale(32);opacity:1}20%{transform:translate(-50%,-50%) scale(1)}23%{transform:translate(-50%,-50%) scale(16)}34%{transform:translate(-50%,-50%) scale(1)}37%{transform:translate(-50%,-50%) scale(8)}46%{transform:translate(-50%,-50%) scale(1)}49%{transform:translate(-50%,-50%) scale(4)}56%{transform:translate(-50%,-50%) scale(1)}59%{transform:translate(-50%,-50%) scale(2)}70%,71%{transform:translate(-50%,-50%) scale(1);opacity:1}74%{transform:translate(calc(-50% + 78vw),-50%) scale(1);opacity:1}to{transform:translate(calc(-50% + 78vw),-50%) scale(1);opacity:0}}@keyframes loading-paddle-strike{0%,64%{opacity:0;transform:translate(-30vw,-50%) rotate(-11deg) skewY(-7deg)}66%{opacity:1;transform:translate(-30vw,-50%) rotate(-11deg) skewY(-7deg)}70%{opacity:1;transform:translate(52vw,-50%) rotate(-2deg) skewY(-7deg)}74%,to{opacity:0;transform:translate(130vw,-50%) rotate(7deg) skewY(-7deg)}}@keyframes loading-brand-reveal{0%,69%{clip-path:inset(0 100% 0 0)}73%,to{clip-path:inset(0 0 0 0)}}@media(prefers-reduced-motion:reduce){.game-loading-screen{animation:none;background:#12384c}.game-loading-ball,.game-loading-paddle{display:none}.game-loading-content{position:relative;opacity:1;transform:none;clip-path:none;animation:none}}@media(max-width:640px){.game-loading-screen{min-height:min(76vh,640px);border-radius:16px}.game-loading-content{padding:16px}.game-loading-wordmark{max-width:calc(100vw - 48px)}.game-loading-paddle{width:46vw;height:12vw}}:root{color:#eef6ff;background:#060912;font-family:system-ui,sans-serif;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-width:320px;background:radial-gradient(circle at 20% 0%,rgba(104,52,196,.22),transparent 32rem),radial-gradient(circle at 100% 30%,rgba(31,192,255,.12),transparent 28rem),#060912}button,select{font:inherit}button:disabled{cursor:not-allowed;opacity:.42}.phaser-game-shell{width:min(1500px,100%);min-height:100vh;margin:auto;padding:14px 20px}.level-selector{display:grid;grid-template-columns:minmax(220px,.75fr) minmax(0,1.25fr);gap:22px;align-items:center;padding:24px;margin-bottom:18px;border:1px solid rgba(112,157,221,.24);border-radius:12px;background:#0c1325d1;box-shadow:0 16px 45px #0000003d}.defense-level-menu{grid-template-columns:minmax(230px,.68fr) minmax(0,1.32fr);background:linear-gradient(135deg,#0d1c37f2,#0f0c26e6),radial-gradient(circle at 15% 15%,rgba(85,223,255,.12),transparent 18rem)}.level-menu-intro{align-self:start}.level-menu-progress{display:inline-block;margin-top:22px;padding:7px 10px;color:#73f9bb;border:1px solid rgba(115,249,187,.35);border-radius:999px;font-family:Space Mono,monospace;font-size:.68rem;letter-spacing:.04em}.defense-level-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.defense-level-menu .level-card{grid-template-columns:30px 76px minmax(0,1fr);min-height:98px;padding:10px;background:linear-gradient(145deg,#152640,#11182d);transition:border-color .16s,transform .16s,box-shadow .16s}.defense-level-menu .level-card:hover{border-color:#55dfff;box-shadow:0 0 20px #55dfff24;transform:translateY(-2px)}.defense-level-menu .level-card b{grid-column:3;color:#ffcf5d;font-family:Space Mono,monospace;font-size:.62rem;letter-spacing:.02em;text-align:right}.level-map-preview{display:grid;gap:2px;width:76px;height:52px;padding:3px;background:#080d1c;border:1px solid #294365;border-radius:5px}.level-map-preview i{display:block;min-width:0;min-height:0;border-radius:1px;background:#17233a}.level-map-preview i.is-path{background:#814ac2;box-shadow:0 0 3px #a25bffcc}.level-map-preview i.is-base{background:#55dfff;box-shadow:0 0 5px #55dfff}.level-selector h2{margin:4px 0 8px;font-family:Space Grotesk,sans-serif;font-size:clamp(1.45rem,3vw,2rem)}.level-selector p:not(.eyebrow){margin:0;color:#94accb}.level-list{display:grid;gap:9px}.level-card{display:grid;grid-template-columns:38px 1fr auto;gap:12px;align-items:center;width:100%;padding:12px;color:#e9f4ff;text-align:left;background:#121d33;border:1px solid #233b5f;border-radius:8px}.level-card:hover{border-color:#55dfff;transform:translateY(-1px)}.level-number{color:#55dfff;font-family:Space Mono,monospace;font-size:.8rem}.level-card strong,.level-card small{display:block}.level-card small{margin-top:3px;color:#94accb;font-size:.78rem}.level-card b{color:#ffcf5d;font-size:.78rem}.level-change-button{display:block;margin:12px auto 0;padding:8px 13px;color:#b9d9f5;background:#182540;border:1px solid #37557e;border-radius:7px}.level-change-button:hover{border-color:#55dfff}.brand-header,.hud,.game-layout{display:flex;gap:16px}.brand-header{justify-content:space-between;align-items:center;margin-bottom:10px}.eyebrow,.panel-title,.resource-card span,.resource-card small{color:#82a0c9;font-family:Space Mono,monospace;font-size:.68rem;letter-spacing:.11em}.brand-header h1{margin:0;font-size:clamp(1.4rem,2.4vw,2.2rem);line-height:1;text-transform:uppercase}.brand-header h1 span{color:#4ee4ff;text-shadow:0 0 20px rgba(78,228,255,.6)}.status-dot{display:flex;align-items:center;gap:7px;color:#73f9bb;font-family:Space Mono,monospace;font-size:.72rem}.status-dot span{width:8px;height:8px;background:#73f9bb;border-radius:50%;box-shadow:0 0 14px #73f9bb}.hud,.panel{border:1px solid rgba(112,157,221,.24);background:#0c1325d1;box-shadow:0 16px 45px #0000003d;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.hud{align-items:stretch;padding:12px;margin-bottom:16px;border-radius:12px}.resource-card{min-width:120px;display:grid;gap:3px;padding:4px 16px;border-right:1px solid rgba(112,157,221,.2)}.resource-card strong{font-size:1.4rem}.energy{color:#ffca5e}.health-track{width:100%;height:5px;overflow:hidden;border-radius:10px;background:#1e2942}.health-track i{display:block;height:100%;background:linear-gradient(90deg,#ff5578,#65f4bb)}.hud-actions{display:flex;align-items:center;gap:8px;margin-left:auto}.primary-button,.small-button,.danger-button,.tutorial button{border:1px solid transparent;border-radius:7px;padding:10px 14px;color:#07111d;font-weight:700}.primary-button{background:linear-gradient(135deg,#51e5ff,#a68aff)}.small-button{min-width:38px;color:#d7efff;background:#182540;border-color:#37557e}.danger-button{color:#ffdbe3;background:#4a1b31;border-color:#b94c71}.game-layout{align-items:flex-start}.dig-layout{align-items:stretch}.dig-panel{width:245px;min-width:0}.dig-panel p{margin:0 0 9px;color:#94accb;font-size:.82rem;line-height:1.25}.cargo-summary{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin-bottom:12px;padding:8px 10px;color:#94accb;background:#101b30;border:1px solid #233b5f;border-radius:7px}.cargo-summary span{font-family:Space Mono,monospace;font-size:.62rem;letter-spacing:.06em}.cargo-summary strong{color:#e9f4ff;font-size:.82rem;white-space:nowrap}.inventory-row{padding:7px 10px;color:#e9f4ff;background:#101b30a6;border-bottom:1px solid rgba(112,157,221,.12);font-size:.82rem}.dig-section-title{margin-top:18px;padding-top:14px;border-top:1px solid rgba(112,157,221,.2)}.dig-shop-actions,.upgrade-list{display:grid;gap:8px}.dig-shop-actions button{width:100%}.upgrade-list{margin-top:2px}.upgrade-card{width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;padding:10px;color:#e9f4ff;text-align:left;background:#121d33;border:1px solid #233b5f;border-radius:8px}.upgrade-card:hover:not(:disabled){border-color:#55dfff;transform:translateY(-1px)}.upgrade-card>span{min-width:0;display:grid;gap:4px}.upgrade-card strong,.upgrade-card small{display:block;white-space:normal}.upgrade-card strong{color:#e9f4ff;font-size:.88rem;line-height:1.1}.upgrade-card small{color:#94accb;font-size:.74rem;line-height:1.2}.upgrade-card b{color:#ffcf5d;font-size:.78rem;white-space:nowrap}.dig-price-note{margin-top:12px!important;color:#7894b8!important;font-size:.72rem!important}.station-warning{color:#ffca72!important}.panel{width:245px;padding:14px;border-radius:12px}.panel-title{display:flex;justify-content:space-between;margin-bottom:12px}.tower-list{display:grid;gap:8px}.tower-card{width:100%;display:grid;grid-template-columns:30px 1fr auto;gap:8px;align-items:center;padding:9px;text-align:left;color:#e9f4ff;background:#121d33;border:1px solid #233b5f;border-radius:8px}.tower-card:hover:not(:disabled){border-color:#55dfff;transform:translateY(-1px)}.tower-card small,.inspector p{display:block;color:#94accb;font-size:.78rem;line-height:1.05}.tower-card b{color:#ffcf5d;font-size:.82rem}.tower-icon{display:grid;width:27px;height:27px;place-items:center;border:2px solid;border-radius:50%}.battle-wrap{position:relative;flex:1;min-width:0;overflow:hidden;border:1px solid rgba(109,158,232,.35);border-radius:12px;box-shadow:0 0 40px #5c49e626}.phaser-host{width:100%;aspect-ratio:3 / 2;background:#080b14}.dig-phaser-host{aspect-ratio:6 / 5;touch-action:none}.phaser-host canvas{display:block;width:100%!important;height:100%!important;touch-action:none}.defense-gameplay{display:block}.defense-stage{width:100%;min-height:min(760px,calc(100vh - 52px));isolation:isolate}.defense-stage .phaser-host{min-height:inherit;aspect-ratio:auto}.defense-stage>.hud{position:absolute;z-index:3;top:14px;left:14px;right:230px;width:auto;margin:0;padding:7px 10px;background:#080e1dc7;box-shadow:0 8px 24px #00000047;pointer-events:none}.defense-stage>.hud button{pointer-events:auto}.defense-stage .resource-card{min-width:72px;padding:2px 10px}.defense-stage .resource-card span{font-family:inherit;font-size:1rem;letter-spacing:0}.defense-stage .resource-card strong{font-size:1.08rem}.defense-stage .resource-card small{font-size:.62rem;letter-spacing:.03em}.defense-stage .hud-actions{gap:5px}.defense-stage .primary-button,.defense-stage .small-button{min-width:32px;padding:7px 9px}.defense-stage>.tower-catalog{position:absolute;z-index:3;top:0;right:0;bottom:0;width:216px;max-height:none;overflow-y:auto;padding:68px 9px 10px;border:0;border-left:1px solid rgba(112,157,221,.3);border-radius:0;background:linear-gradient(90deg,#080e1dd6,#080e1df0);box-shadow:-12px 0 30px #0000003d}.defense-stage>.tower-catalog .panel-title{margin:0 4px 8px}.defense-stage>.tower-catalog .tower-list{gap:6px}.defense-stage>.tower-catalog .tower-card{padding:7px}.defense-stage>.inspector{position:absolute;z-index:4;bottom:14px;left:14px;width:min(320px,calc(100% - 260px));max-height:calc(100% - 110px);overflow-y:auto;padding:12px;background:#080e1deb;box-shadow:0 10px 28px #00000052}.defense-stage>.empty-inspector{display:none}.defense-stage .game-overlay{z-index:6}.defense-stage .toast{z-index:7;bottom:16px}@media(max-width:700px){.defense-stage{min-height:max(500px,calc(100dvh - 24px))}.defense-stage>.hud{top:8px;left:8px;right:132px;gap:3px;padding:5px}.defense-stage .resource-card{min-width:0;padding:1px 5px}.defense-stage .resource-card strong{font-size:.82rem}.defense-stage .resource-card small{display:none}.defense-stage .hud-actions{gap:2px}.defense-stage .primary-button,.defense-stage .small-button{min-width:25px;padding:5px;font-size:.72rem}.defense-stage>.tower-catalog{width:124px;padding:54px 5px 6px}.defense-stage>.tower-catalog .panel-title small,.defense-stage>.tower-catalog .tower-card small{display:none}.defense-stage>.tower-catalog .tower-card{grid-template-columns:24px 1fr auto;gap:4px;padding:5px 3px;font-size:.7rem}.defense-stage .tower-icon{width:22px;height:22px}.defense-stage>.inspector{bottom:8px;left:8px;width:calc(100% - 148px);max-height:47%}}.rome-defense-layout{display:flex;justify-content:center}.rome-campaign-menu,.rome-empire-screen{width:min(900px,calc(100% - 32px));min-height:520px;margin:32px auto;padding:32px;color:#edf4ff;text-align:center;background:radial-gradient(circle at center,#263c58 0,#263c58 12%,#111d32 13%,#111d32);border:1px solid #53749a;border-radius:18px}.rome-campaign-grid{position:relative;display:grid;grid-template-columns:repeat(3,1fr);grid-template-areas:". north ." "west empire east" ". south .";gap:18px;align-items:center;margin-top:32px}.rome-gate,.rome-empire,.rome-buildings button{min-height:92px;padding:14px;color:#eef7ff;background:#172b45;border:1px solid #5b86b2;border-radius:10px;font:inherit}.rome-gate small,.rome-empire small,.rome-buildings small{display:block;margin-top:7px;color:#b5cbe2}.rome-gate:disabled,.rome-empire:disabled{color:#8998a5;background:#172027;border-color:#3e4d58}.rome-gate.north{grid-area:north}.rome-gate.south{grid-area:south}.rome-gate.east{grid-area:east}.rome-gate.west{grid-area:west}.rome-empire{grid-area:empire;min-height:140px;color:#ffdc80;background:#3c2a21;border-color:#d6a957}.rome-empire-fort{position:relative;display:grid;width:min(520px,100%);height:300px;place-items:center;margin:30px auto;background:radial-gradient(circle,#765438 0,#765438 20%,#324c36 21%,#324c36 55%,#243748 56%);border-radius:48%}.rome-empire-fort strong{padding:22px;background:#553c2a;border:3px solid #d6a957;border-radius:50%}.rome-empire-fort span{position:absolute;font-size:.8rem}.gate-n{top:15px}.gate-s{bottom:15px}.gate-e{right:12px}.gate-w{left:12px}.rome-buildings{display:flex;justify-content:center;gap:14px;margin:18px 0}.rome-buildings button{cursor:pointer}.rome-battle-wrap{width:min(1344px,100%);flex:0 1 1344px}.rome-battle-wrap .phaser-host{aspect-ratio:7 / 4}.rome-hud{position:absolute;z-index:3;top:0;right:0;bottom:0;left:0;padding:14px 220px 0 16px;color:#fff;font-family:Courier New,monospace;font-size:clamp(.82rem,1.5vw,1.2rem);font-weight:700;line-height:1;text-shadow:-1px -1px 0 #000,1px -1px 0 #000,-1px 1px 0 #000,1px 1px 0 #000,0 0 5px #000;pointer-events:none}.rome-hud-stat{display:inline-block;margin-right:12px;white-space:nowrap}.rome-hud-controls{position:absolute;z-index:4;right:12px;top:14px;display:grid;grid-template-columns:repeat(3,42px);gap:8px;pointer-events:auto}.rome-icon-button{display:grid;width:42px;height:38px;place-items:center;padding:0;color:#dffaff;background:#111b31;border:1px solid #365986;border-radius:6px;font-size:1.35rem}.rome-icon-button:hover{border-color:#55dfff;color:#fff}.rome-speed-active{background:#9b4d1d;border-color:#ffd05e;color:#fff4c7}.rome-tower-catalog{position:absolute;z-index:2;top:0;right:0;bottom:0;width:192px;padding:72px 12px 12px;background:#070d1ce6;border-left:1px solid rgba(109,158,232,.4)}.rome-tower-catalog .tower-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.rome-tower-catalog .tower-card{display:grid;grid-template-columns:1fr;gap:3px;place-items:center;padding:7px 3px 5px;text-align:center}.rome-tower-catalog .tower-card img{width:42px;height:42px;object-fit:contain}.rome-tower-symbol{display:grid;width:42px;height:42px;place-items:center;color:#fff5d3;border:2px solid #3d2a1e;border-radius:3px 3px 0 0;box-shadow:inset 0 -8px #2d1f1459;font-size:1.35rem}.rome-tower-catalog .tower-card b{color:#ffcf5d;font-family:Courier New,monospace;font-size:.7rem}.rome-game-menu{position:absolute;z-index:5;top:60px;right:12px;display:grid;width:168px;gap:5px;padding:8px;background:#080f1ff5;border:1px solid #42698d;border-radius:7px;box-shadow:0 10px 28px #00000073;pointer-events:auto}.rome-game-menu button,.rome-game-menu a{padding:8px;color:#e9f4ff;text-align:left;background:#17243d;border:1px solid #2a466b;border-radius:4px;font:inherit;font-size:.7rem;text-decoration:none}.rome-game-menu label{display:grid;gap:3px;color:#c9dbef;font-size:.7rem}.rome-game-menu strong{color:#ffdb72;font-size:.85rem}.rome-game-menu span{color:#a7bdd4;font-size:.68rem}.rome-inspector{position:absolute;z-index:4;top:0;right:192px;width:min(290px,calc(100% - 192px));min-height:100%;padding:15px;color:#e9f4ff;background:#0a1223f5;border-left:1px solid #42698d;box-shadow:-12px 0 25px #00000047}.rome-inspector-close{width:25px;height:25px;padding:0;color:#e9f4ff;background:transparent;border:1px solid #53749a;border-radius:4px;font-size:1.1rem;line-height:1}.rome-inspector h2{margin:0;font-size:1.25rem}.rome-inspector h2 span{color:#5deaff;font-size:.85rem}.rome-inspector p{color:#94accb;font-size:.78rem;line-height:1.25}.rome-inspector label{display:grid;gap:5px;color:#9cb9dc}.rome-inspector select{padding:8px;color:#fff;background:#101b30;border:1px solid #35557d;border-radius:5px}.rome-inspector .tower-stats span{background:#101b30}.rome-screen{width:min(1344px,calc(100% - 32px));min-height:min(768px,calc(100vh - 48px));padding:28px;background-color:#202f27;background-image:linear-gradient(30deg,rgba(255,255,255,.035) 12%,transparent 12.5%,transparent 87%,rgba(255,255,255,.035) 87.5%),linear-gradient(150deg,rgba(0,0,0,.08) 12%,transparent 12.5%,transparent 87%,rgba(0,0,0,.08) 87.5%);background-size:48px 48px;border-color:#9f7c48;border-radius:4px}.rome-screen header{max-width:700px;margin:0 auto;padding:10px 18px;background:#291d15e0;border:2px solid #b99456}.rome-screen header h1{margin:0;color:#f0ce88}.rome-screen header p{margin:6px 0 0;color:#e9dac0}.rome-campaign-grid{max-width:900px;margin:70px auto 0}.rome-gate,.rome-empire{box-shadow:inset 0 0 0 3px #ffd78921,0 8px #302318;border-radius:2px;background:#5d4832}.rome-gate em{display:block;margin-top:6px;color:#eac26e;font-size:.72rem}.rome-new-game{margin-top:12px;padding:7px 12px;color:#ffdc80;background:#3c2a21;border:1px solid #d6a957;border-radius:3px;font:inherit}.rome-gate.complete{background:#29372a;border-color:#78915f}.rome-empire-screen{position:relative;padding:16px;overflow:hidden}.empire-status{position:absolute;z-index:2;top:24px;left:24px;color:#fff;font:700 1.1rem Courier New,monospace;text-shadow:0 2px 2px #000}.empire-back{position:absolute;z-index:2;top:17px;right:18px;width:34px;height:34px;padding:0;color:#fff;background:#172b45;border:1px solid #5b86b2;border-radius:3px;font-size:2rem;line-height:25px}.empire-layout{display:flex;min-height:620px;padding:52px 8px 12px;gap:16px;align-items:center;justify-content:center}.empire-board{display:grid;grid-template-columns:repeat(40,minmax(0,1fr));width:min(1056px,calc(100vw - 260px));aspect-ratio:40 / 29;background:#0d1525;box-shadow:0 0 0 2px #567493}.empire-cell{display:grid;min-width:0;aspect-ratio:1;padding:0;place-items:center;color:#f8e7bd;background:#263c58;border:1px solid #567493;border-radius:0;font:700 clamp(.5rem,1vw,.72rem) "Courier New",monospace;opacity:1}.empire-cell:disabled{color:#f8e7bd;opacity:1}.empire-cell.wall{background:#6b604b;border-color:#998661;box-shadow:inset 0 -4px #4d3d30}.empire-cell.gate{border-color:#d7e2eb;box-shadow:inset 0 -4px #00000040}.empire-cell.gate.portao-norte{background:#78423c}.empire-cell.gate.portao-sul{background:#496b78}.empire-cell.gate.portao-leste{background:#6d5c3d}.empire-cell.gate.portao-oeste{background:#4d6e4b}.empire-cell.gate span{color:#fff;text-shadow:0 1px 1px #000;font-size:clamp(.38rem,.65vw,.62rem);white-space:nowrap}.empire-cell.castle{background:#71503a;border-color:#e0ba6c;box-shadow:inset 0 0 0 2px #b99456}.empire-cell.castle span{grid-column:1 / 3;grid-row:1 / 3}.empire-cell.placed.workshop{background:#8b4c33}.empire-cell.placed.blacksmith{background:#4d3d30}.empire-cell.placed.university{background:#71503a}.empire-cell.placed.tower{background:#94744e;box-shadow:inset 0 0 0 3px #e0ba6c}.empire-cell:not(:disabled):hover{border-color:#dffaff;box-shadow:inset 0 0 0 2px #dffaff}.empire-catalog{display:grid;align-content:start;width:192px;max-height:540px;gap:9px;padding:12px;overflow-y:auto;background:#070d1ce6;border-left:1px solid rgba(109,158,232,.4)}.empire-catalog button:disabled{opacity:.45}.empire-catalog button.selected{border-color:#dffaff;background:#284666}.empire-catalog i{width:42px;height:42px;border:2px solid #3d2a1e;border-radius:3px 3px 0 0;box-shadow:inset 0 -8px #2d1f1459}.empire-catalog.tower-list{grid-template-columns:repeat(2,minmax(0,1fr));width:192px}.rome-tower-catalog .tower-card,.empire-catalog .tower-card{display:grid;grid-template-columns:1fr;gap:3px;place-items:center;padding:7px 3px 5px;text-align:center;border-radius:3px;font:700 .7rem Courier New,monospace}.rome-tower-catalog .tower-card b,.empire-catalog .tower-card b{color:#ffcf5d;font-family:Courier New,monospace;font-size:.7rem}.empire-defense-button{display:block;margin:0 auto 16px}.rome-building-dialog{position:relative;max-width:360px}.rome-building-dialog .rome-inspector-close{position:absolute;top:12px;right:12px}.rome-result-stats{display:grid;gap:8px;margin:18px 0;text-align:left}.rome-result-stats span{display:flex;justify-content:space-between;gap:20px;padding:8px;background:#0003}@media(max-width:640px){.rome-tower-catalog{width:132px;padding:62px 7px 7px}.rome-tower-catalog .tower-card img{width:31px;height:31px}.rome-inspector{right:132px;width:min(250px,calc(100% - 132px));padding:10px}.rome-hud{padding:9px 142px 0 9px;font-size:.72rem}.rome-hud-stat{margin-right:7px}.rome-hud-controls{right:8px;top:17px;grid-template-columns:repeat(3,32px);gap:4px}.rome-icon-button{width:32px;height:31px;font-size:1rem}.rome-game-menu{right:8px;top:55px;width:132px}}.inspector h2{margin:0;font-size:1.4rem}.inspector h2 span{color:#5deaff;font-size:.9rem}.tower-stats{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:14px 0}.tower-stats span{padding:7px;color:#8ca9ca;background:#101b30;border-radius:5px}.tower-stats b{float:right;color:#e8f5ff}.inspector label{display:grid;gap:5px;color:#9cb9dc}.inspector select{padding:8px;color:#fff;background:#101b30;border:1px solid #35557d;border-radius:5px}.inspector-actions{display:grid;gap:8px;margin-top:14px}.empty-inspector p{color:#8ca9ca}.toast{position:absolute;bottom:14px;left:50%;max-width:calc(100% - 28px);padding:8px 14px;color:#dffaff;font-family:Space Mono,monospace;font-size:.68rem;text-align:center;background:#060b17e0;border:1px solid #42698d;border-radius:20px;transform:translate(-50%);pointer-events:none}.game-overlay{position:absolute;top:0;right:0;bottom:0;left:0;display:grid;place-items:center;padding:20px;background:#040710c2}.overlay-card{width:min(370px,100%);padding:28px;text-align:center;background:#111b31;border:1px solid #58dcff;border-radius:13px;box-shadow:0 0 45px #4fdcff40}.overlay-card h2{margin:8px 0;font-size:2rem}.overlay-card p{color:#aac1dd}.tutorial{display:flex;gap:12px;align-items:center;margin-top:16px;padding:12px 16px;color:#d9efff;background:#1b1838e6;border:1px solid #7357d8;border-radius:9px}.tutorial span{color:#adc1dc}.tutorial button{margin-left:auto;background:#b28dff}footer{margin:24px 0 4px;color:#60799e;font-family:Space Mono,monospace;font-size:.65rem;text-align:center}@media(max-width:1050px){.game-layout{display:grid;grid-template-columns:1fr}.tower-catalog,.inspector{width:100%}.tower-list{grid-template-columns:repeat(2,1fr)}.tower-catalog{order:2}.battle-wrap{order:1}.dig-panel{width:100%}.dig-controls{order:2}.dig-shop,.inspector{order:3}}@media(max-width:640px){.phaser-game-shell{padding:10px 12px}.brand-header,.hud,.tutorial,.level-selector{align-items:stretch;flex-direction:column}.status-dot{align-self:flex-start}.hud-actions{margin-left:0}.level-card{grid-template-columns:30px 1fr}.defense-level-grid{grid-template-columns:1fr}.defense-level-menu .level-card{grid-template-columns:30px 76px minmax(0,1fr)}.level-card b{grid-column:2}.resource-card{border-right:0;border-bottom:1px solid rgba(112,157,221,.2)}.tower-list{grid-template-columns:1fr}.primary-button{flex:1}.tutorial button{margin-left:0}}.neon-defense-stage{display:grid;grid-template-columns:minmax(0,1fr) minmax(208px,248px);align-items:stretch;min-height:min(760px,calc(100dvh - 52px));background:#080b14}.neon-defense-playfield{position:relative;min-width:0;min-height:inherit;overflow:hidden}.neon-defense-playfield .phaser-host{height:100%;min-height:inherit;aspect-ratio:auto}.neon-defense-stage>.tower-catalog{position:static;z-index:1;width:auto;max-height:none;padding:82px 12px 14px;overflow-y:auto;border:0;border-left:1px solid rgba(112,157,221,.3);border-radius:0;background:linear-gradient(180deg,#0e1d36fa,#080e1dfa),radial-gradient(circle at 50% 0%,rgba(85,223,255,.1),transparent 11rem);box-shadow:-16px 0 32px #0000003d}.neon-defense-stage>.tower-catalog .panel-title{padding-bottom:9px;border-bottom:1px solid rgba(85,223,255,.18)}.neon-defense-playfield>.neon-hud{position:absolute;z-index:3;top:14px;right:14px;left:14px;display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:7px 8px 7px 12px;pointer-events:none;border:1px solid rgba(92,219,255,.34);border-radius:10px;background:linear-gradient(100deg,#061022e8,#0d1a34c4);box-shadow:0 10px 28px #00000052,inset 0 1px #adefff14;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.neon-defense-playfield>.neon-hud button{pointer-events:auto}.neon-hud .hud-metrics,.neon-hud .hud-actions{display:flex;align-items:center}.neon-hud .hud-metrics{min-width:0;gap:3px}.neon-hud .resource-card{position:relative;display:flex;align-items:center;min-width:0;gap:7px;padding:2px 12px 2px 0;border:0;border-right:1px solid rgba(126,172,222,.2)}.neon-hud .resource-card:last-child{padding-right:0;border-right:0}.neon-hud .hud-icon{display:grid;width:27px;height:27px;flex:0 0 27px;place-items:center;color:#7cecff;border:1px solid rgba(124,236,255,.28);border-radius:8px;background:#3882af29;box-shadow:inset 0 0 13px #4fdfff1f}.neon-hud .hud-icon-energy{color:#ffd166;border-color:#ffd1664d;background:#ffb4451a}.neon-hud .hud-icon-wave{color:#c692ff;border-color:#c692ff4d;background:#a367f01c}.neon-hud .hud-icon svg,.neon-hud .hud-pause-button svg,.neon-hud .hud-wave-button svg,.neon-hud small svg{width:15px;height:15px;fill:currentColor}.neon-hud .hud-metric>div:not(.health-track){display:grid;gap:1px}.neon-hud .resource-card strong{color:#f4fbff;font-family:Space Mono,monospace;font-size:.95rem;line-height:1;letter-spacing:-.05em;text-shadow:0 0 12px rgba(114,234,255,.36)}.neon-hud .resource-card .energy{color:#ffd166;text-shadow:0 0 12px rgba(255,200,86,.36)}.neon-hud .hud-metric-label{color:#87a6c8;font-family:Space Mono,monospace;font-size:.51rem;line-height:1;letter-spacing:.08em;text-transform:uppercase}.neon-hud .hud-integrity{padding-bottom:8px}.neon-hud .health-track{position:absolute;right:12px;bottom:1px;left:34px;width:auto;height:2px;background:#87a6c838}.neon-hud .health-track i{background:linear-gradient(90deg,#ff6e87,#7effc6);box-shadow:0 0 8px #7effc6a6}.neon-hud .resource-card small{display:flex;align-items:center;gap:3px;margin-left:1px;color:#bdcde3;font-family:Space Mono,monospace;font-size:.58rem;letter-spacing:0}.neon-hud .resource-card small svg{width:10px;height:10px;fill:none;stroke:currentColor;stroke-width:2}.neon-hud .hud-actions{flex:0 0 auto;gap:4px;margin-left:0;padding-left:8px;border-left:1px solid rgba(126,172,222,.2)}.neon-hud .primary-button,.neon-hud .small-button{display:grid;width:32px;min-width:32px;height:32px;padding:0;place-items:center;border-radius:7px;font-family:Space Mono,monospace;font-size:.64rem;transition:border-color .16s,background .16s,box-shadow .16s,transform .16s}.neon-hud .hud-wave-button{color:#06111d;background:linear-gradient(135deg,#5de6ff,#8fa7ff);box-shadow:0 0 18px #5de6ff47}.neon-hud .small-button{color:#b7d5ef;border-color:#65a6dc59;background:#122746d1}.neon-hud .small-button.is-active{color:#dffaff;border-color:#5de6ff;background:#2a75a1a3;box-shadow:inset 0 0 12px #5de6ff33,0 0 12px #5de6ff29}.neon-hud .primary-button:hover:not(:disabled),.neon-hud .small-button:hover:not(:disabled){transform:translateY(-1px)}@media(max-width:700px){.neon-defense-stage{grid-template-columns:minmax(0,1fr);min-height:0}.neon-defense-playfield,.neon-defense-playfield .phaser-host{min-height:0;aspect-ratio:3 / 2}.neon-defense-stage>.tower-catalog{min-height:0;padding:9px 8px 10px;overflow:visible;border-top:1px solid rgba(112,157,221,.3);border-left:0;box-shadow:none}.neon-defense-stage>.tower-catalog .panel-title{margin:0 2px 7px;padding-bottom:6px}.neon-defense-stage>.tower-catalog .tower-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.neon-defense-stage>.tower-catalog .tower-card{grid-template-columns:23px minmax(0,1fr) auto;gap:5px;min-height:37px;padding:5px}.neon-defense-stage>.tower-catalog .tower-card small{display:none}.neon-defense-playfield>.neon-hud{top:7px;right:7px;left:7px;flex-direction:row;gap:5px;padding:5px 6px;border-radius:8px}.neon-hud .hud-metrics{gap:2px}.neon-hud .resource-card{gap:3px;padding:1px 5px 1px 0}.neon-hud .hud-icon{width:21px;height:21px;flex-basis:21px;border-radius:6px}.neon-hud .hud-icon svg{width:12px;height:12px}.neon-hud .resource-card strong{font-size:.68rem}.neon-hud .hud-metric-label,.neon-hud .resource-card small,.neon-hud .health-track{display:none}.neon-hud .hud-actions{gap:2px;padding-left:5px}.neon-hud .primary-button,.neon-hud .small-button{width:25px;min-width:25px;height:25px;font-size:.53rem}.neon-hud .hud-pause-button svg,.neon-hud .hud-wave-button svg{width:12px;height:12px}.neon-defense-playfield>.inspector{right:7px;bottom:7px;left:7px;width:auto;max-height:46%}}@media(max-width:640px){.level-selector.defense-level-menu{grid-template-columns:minmax(0,1fr);gap:16px;padding:20px}.defense-level-menu .level-menu-progress{margin-top:16px}}@media(min-width:390px)and (max-width:700px){.neon-defense-playfield>.neon-hud{padding:6px 7px}.neon-hud .hud-actions{gap:3px;padding-left:6px}.neon-hud .primary-button,.neon-hud .small-button{width:32px;min-width:32px;height:32px;font-size:.62rem}.neon-hud .hud-pause-button svg,.neon-hud .hud-wave-button svg{width:14px;height:14px}.neon-defense-stage>.tower-catalog .tower-list{gap:6px}.neon-defense-stage>.tower-catalog .tower-card{min-height:44px;padding:6px}}html{background:#090b14}a{color:inherit;text-decoration:none}button{cursor:pointer}button:focus-visible,input:focus-visible,a:focus-visible{outline:3px solid #22d3ee;outline-offset:3px}.app-shell{min-height:100vh;padding-top:74px;padding-left:68px;-webkit-user-select:none;user-select:none}.app-shell input,.app-shell textarea,.app-shell select{-webkit-user-select:text;user-select:text}.app-shell a,.app-shell button{touch-action:manipulation}.site-header{position:fixed;z-index:20;inset:0 0 auto;height:74px;display:flex;align-items:center;gap:28px;padding:0 28px;background:#090b14e6;border-bottom:1px solid rgba(148,163,184,.12);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px)}.site-header .header-status{order:1}.site-header .language-selector{order:2}.site-header .search-box{order:3;flex:1 1 auto;max-width:none;margin-left:auto}.site-header .brand{order:4;justify-content:flex-end;text-align:right}.brand{min-width:150px;display:flex;align-items:center;color:#fff;border:0;background:transparent;text-align:left}.brand-mark{display:grid;width:38px;height:38px;place-items:center;border-radius:12px;background:linear-gradient(135deg,#8b5cf6,#22d3ee);color:#fff;font-size:28px;box-shadow:0 8px 24px #7c3aed59}.brand strong,.brand small{display:block;line-height:1}.brand strong{font-size:17px;font-weight:400}.brand-logo{display:block;width:150px;max-height:50px;object-fit:contain}.search-box{flex:1;max-width:520px;display:flex;align-items:center;gap:10px;padding:10px 14px;border:1px solid rgba(148,163,184,.15);border-radius:12px;background:#121622;color:#64748b}.search-box input{width:100%;border:0;outline:0;background:transparent;color:#fff}.search-box input::placeholder{color:#64748b}.header-status{display:flex;align-items:center;gap:8px;margin-left:auto;color:#94a3b8;font-size:13px}.status-dot{width:8px;height:8px;border-radius:50%;background:#4ade80;box-shadow:0 0 10px #4ade80}.language-selector select{padding:8px 10px;border:1px solid rgba(148,163,184,.2);border-radius:8px;background:#121622;color:#e2e8f0}.sidebar{position:fixed;z-index:15;top:74px;bottom:0;left:0;width:68px;overflow:hidden auto;padding:22px 10px;border-right:1px solid rgba(148,163,184,.12);background:#0c0f1bf0;transition:width .22s ease,padding .22s ease}.sidebar:hover,.sidebar:focus-within{width:270px;padding-inline:15px}.sidebar.sidebar-collapsed{width:68px;padding-inline:10px}.sidebar-mobile-top,.mobile-menu-button{display:none}.sidebar-home,.category-title,.category-toggle,.category-games button{border:0;color:#cbd5e1;background:transparent}.sidebar-home{width:100%;display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:10px;text-align:left;font-weight:700;white-space:nowrap}.sidebar-label{margin:28px 12px 11px;color:#64748b;font-size:10px;font-weight:700;letter-spacing:.16em}.sidebar-item-label,.sidebar-label,.category-title small,.category-toggle,.category-games{opacity:0;pointer-events:none;transition:opacity .12s ease}.sidebar:hover .sidebar-item-label,.sidebar:hover .sidebar-label,.sidebar:hover .category-title small,.sidebar:hover .category-toggle,.sidebar:hover .category-games,.sidebar:focus-within .sidebar-item-label,.sidebar:focus-within .sidebar-label,.sidebar:focus-within .category-title small,.sidebar:focus-within .category-toggle,.sidebar:focus-within .category-games{opacity:1;pointer-events:auto}.category-group{margin-bottom:4px}.category-row{display:flex;align-items:center}.category-title{flex:1;display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:9px;text-align:left;font-size:14px;font-weight:600;white-space:nowrap}.category-toggle{padding:9px}.category-games{display:grid;gap:2px;margin:3px 0 7px 19px;padding-left:15px;border-left:1px solid rgba(148,163,184,.18)}.category-games button{display:flex;align-items:center;gap:9px;padding:8px 4px;border-radius:6px;text-align:left;font-size:12px}.main-content{min-height:calc(100vh - 132px);max-width:1500px;margin:0 auto;padding:0 42px 62px}.hero{position:relative;min-height:340px;display:flex;align-items:center;justify-content:space-between;padding:52px 60px;overflow:hidden;border:1px solid rgba(139,92,246,.32);border-radius:24px;background:linear-gradient(105deg,#231348f2,#0e142ad9),#15142d}.hero-copy{position:relative;z-index:1;max-width:620px}.eyebrow{display:inline-block;margin-bottom:12px;color:#a78bfa;font-size:11px;font-weight:700;letter-spacing:.16em}.hero h1,.category-page h1,.game-page-header h1{margin:0;font-size:clamp(34px,4vw,56px);line-height:1.04}.hero p{max-width:550px;margin:18px 0 25px;color:#cbd5e1;line-height:1.7}.hero-art{position:relative;width:290px;height:250px}.hero-controller{position:absolute;top:59px;left:68px;font-size:130px;transform:rotate(-13deg)}.content-section{margin-top:54px}.section-header{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}.section-header h2,.browse-banner h2{margin:0;font-size:26px}.section-header p,.page-description{margin:6px 0 0;color:#94a3b8}.section-count{color:#64748b;font-size:13px}.game-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}.content-section .game-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.game-card{overflow:hidden;border:1px solid rgba(148,163,184,.13);border-radius:16px;background:#121622}.game-thumbnail{display:grid;place-items:center;position:relative;aspect-ratio:1;overflow:hidden;color:#fff}.game-cover{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;object-fit:cover}.thumbnail-symbol{position:relative;z-index:1;font-size:72px;font-weight:700}.game-card-content{padding:14px}.game-title-row{display:flex;justify-content:space-between;gap:10px}.game-title-row h3{margin:0;font-size:16px}.play-count{color:#94a3b8;font-size:11px}.featured-badge,.new-badge{position:absolute;z-index:2;top:12px;left:12px;padding:5px 8px;border-radius:999px;background:#090b14bd;color:#facc15;font-size:10px;font-weight:700}.new-badge{left:auto;right:12px;color:#a7f3d0}.play-circle{position:absolute;z-index:2;right:12px;bottom:12px;display:grid;width:37px;height:37px;place-items:center;border-radius:50%;background:#fff;color:#111827}.tag-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}.tag-list span,.tag-list a{display:inline-flex;align-items:center;padding:4px 7px;border-radius:6px;background:#1e293b;color:#cbd5e1;font-size:10px;font-weight:700}.play-link{display:inline-flex;min-height:32px;margin-top:14px;padding:6px 8px;border:0;background:transparent;color:#a78bfa;font-size:12px;font-weight:700}.browse-banner{display:flex;align-items:center;justify-content:space-between;gap:25px;margin-top:54px;padding:34px 40px;border:1px solid rgba(34,211,238,.15);border-radius:20px;background:linear-gradient(100deg,#0891b226,#7c3aed21)}.browse-banner p{margin:8px 0 0;color:#94a3b8}.browse-icons{display:flex;gap:13px}.browse-icons span{display:grid;width:52px;height:52px;place-items:center;border-radius:15px;background:#0f172a8c;font-size:24px}.category-page,.game-page{padding-top:18px}.category-page h1{font-size:46px}.page-description{margin-bottom:30px}.game-page-header{display:flex;justify-content:space-between;gap:30px;margin-bottom:28px}.game-page-header h1{font-size:44px}.game-page-header p{max-width:700px;color:#cbd5e1;line-height:1.65}.game-page-play,.game-page-details{width:100%}.game-page-play{margin-bottom:30px}.related-section{margin-top:48px}.site-footer{display:flex;justify-content:space-between;gap:20px;padding:22px 42px;border-top:1px solid rgba(148,163,184,.1);color:#64748b;font-size:12px}.site-footer strong{color:#c4b5fd}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:850px){.app-shell{padding-left:0}.mobile-menu-button{display:inline-grid;width:40px;min-width:40px;height:40px;place-items:center;padding:0;border:0;border-radius:10px;background:transparent;color:#fff;font-size:23px}.mobile-menu-button:hover{background:#94a3b824}.sidebar{display:block;z-index:30;top:0;width:min(300px,85vw);padding-top:18px;overscroll-behavior:contain;transform:translate(-105%);transition:transform .25s ease}.sidebar:hover,.sidebar:focus-within,.sidebar.sidebar-collapsed,.sidebar.sidebar-collapsed:hover,.sidebar.sidebar-collapsed:focus-within{width:min(300px,85vw);padding-inline:10px}.sidebar .sidebar-item-label,.sidebar .sidebar-label,.sidebar .category-title small,.sidebar .category-toggle,.sidebar .category-games{opacity:1;pointer-events:auto}.sidebar.sidebar-open{transform:translate(0)}.sidebar-mobile-top{display:flex;align-items:center;justify-content:space-between;margin:0 7px 20px;color:#fff;font-weight:700}.sidebar-mobile-top button{border:0;background:transparent;color:#fff;font-size:26px}.backdrop{position:fixed;z-index:25;top:0;right:0;bottom:0;left:0;display:block;border:0;background:#00000094}.main-content{padding-inline:24px}.hero{padding:35px}.hero-art{display:none}}@media(max-width:640px){.site-header{height:62px;gap:8px;padding:0 12px}.app-shell{padding-top:62px}.site-header .brand{display:flex;min-width:0;flex:0 0 auto}.brand-logo{width:105px;max-height:42px}.language-selector{display:none}.site-header .search-box{min-width:0;margin-left:0;padding:8px 9px}.search-box input{min-width:0}.main-content{padding:0 15px 42px}.game-grid,.content-section .game-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.hero{min-height:260px;padding:31px 24px}.hero h1{font-size:35px}.section-header,.browse-banner{align-items:start;flex-direction:column}.browse-banner{padding:28px 24px}.category-page h1,.game-page-header h1{font-size:36px}.game-page-header{flex-direction:column}.site-footer{flex-direction:column;padding:20px 16px}}
