:root{--bg-dark: #1a1a2e;--bg-darker: #0f0f1a;--bg-card: #252542;--accent: #e94560;--accent-hover: #ff6b6b;--text: #eaeaea;--text-dim: #888;--energy: #ffd700;--hp-high: #4ade80;--hp-mid: #fbbf24;--hp-low: #ef4444;--player1: #3b82f6;--player2: #ef4444;--neutral: #6b7280;--control-point: #a855f7;--grid-line: #333;--cell-size: min(7vw, 40px)}*{box-sizing:border-box;margin:0;padding:0}html,body{height:100%;overflow:hidden}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg-dark);color:var(--text);touch-action:manipulation}#app{height:100%;display:flex;flex-direction:column}.screen{flex:1;display:flex;flex-direction:column;padding:1rem;overflow-y:auto}.hidden{display:none!important}.btn{padding:.75rem 1.5rem;border:none;border-radius:8px;font-size:1rem;font-weight:600;cursor:pointer;transition:transform .1s,background .2s;touch-action:manipulation;min-height:44px}.btn:active{transform:scale(.98)}.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-hover)}.btn-small{padding:.5rem 1rem;font-size:.875rem}.btn-large{padding:1rem 2rem;font-size:1.125rem}#auth-screen{justify-content:center;align-items:center;gap:2rem;text-align:center}.logo h1{font-size:2.5rem;font-weight:800;background:linear-gradient(135deg,var(--accent),#ff9a9e);-webkit-background-clip:text;-webkit-text-fill-color:transparent;background-clip:text}.tagline{color:var(--text-dim);margin-top:.5rem}.auth-info{color:var(--text-dim);font-size:.875rem;max-width:280px}.lobby-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:1.5rem}.loadout-section{flex:1;display:flex;flex-direction:column;gap:1rem}.loadout-section h3{font-size:.875rem;color:var(--text-dim);text-transform:uppercase;letter-spacing:.05em}#system-prompt{width:100%;min-height:120px;padding:1rem;background:var(--bg-card);border:1px solid var(--grid-line);border-radius:8px;color:var(--text);font-family:inherit;font-size:1rem;resize:vertical}.ultimate-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:.75rem}.ultimate-option{padding:.75rem;background:var(--bg-card);border:2px solid transparent;border-radius:8px;cursor:pointer;transition:border-color .2s;min-height:44px}.ultimate-option.selected{border-color:var(--accent)}.ultimate-option .name{font-weight:600;font-size:.875rem}.ultimate-option .desc{font-size:.75rem;color:var(--text-dim);margin-top:.25rem}.queue-status{display:flex;align-items:center;justify-content:center;gap:1rem;padding:1rem;background:var(--bg-card);border-radius:8px;margin-top:1rem}.spinner{width:20px;height:20px;border:2px solid var(--text-dim);border-top-color:var(--accent);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#game-screen{padding:.5rem;gap:.5rem}.game-header{display:flex;justify-content:space-between;align-items:center;padding:.5rem;background:var(--bg-darker);border-radius:8px}.player-info{display:flex;flex-direction:column;align-items:center;gap:.25rem;font-size:.75rem}.player-label{font-weight:600;text-transform:uppercase;letter-spacing:.05em}.player-info-you .player-label{color:var(--player1)}.player-info-enemy .player-label{color:var(--player2)}.resource-display,.base-hp{display:flex;align-items:center;gap:.25rem}.energy-icon{color:var(--energy)}.turn-display{display:flex;flex-direction:column;align-items:center;font-size:.875rem}#turn-number{font-size:1.5rem;font-weight:700}.game-grid{display:grid;grid-template-columns:repeat(12,var(--cell-size));grid-template-rows:repeat(12,var(--cell-size));gap:1px;background:var(--grid-line);border-radius:4px;overflow:hidden;justify-content:center;margin:0 auto}.cell{background:var(--bg-darker);position:relative;display:flex;align-items:center;justify-content:center}.cell.control-point{background:#a855f726}.cell.control-point:before{content:"";position:absolute;width:6px;height:6px;background:var(--control-point);border-radius:50%;opacity:.6}.cell.control-point.owned-you:before{background:var(--player1);opacity:1}.cell.control-point.owned-enemy:before{background:var(--player2);opacity:1}.unit{width:80%;height:80%;border-radius:4px;display:flex;align-items:center;justify-content:center;font-size:calc(var(--cell-size) * .5);font-weight:700;position:relative}.unit.player1{background:var(--player1);color:#fff}.unit.player2{background:var(--player2);color:#fff}.unit.scout{font-size:calc(var(--cell-size) * .4)}.unit.heavy{border-radius:2px}.unit:after{content:"";position:absolute;bottom:-2px;left:10%;width:80%;height:3px;background:var(--hp-high);border-radius:1px}.unit.hp-mid:after{background:var(--hp-mid)}.unit.hp-low:after{background:var(--hp-low)}.base{width:90%;height:90%;border-radius:2px;display:flex;align-items:center;justify-content:center;font-size:calc(var(--cell-size) * .5);border:2px solid}.base.player1{background:#3b82f64d;border-color:var(--player1)}.base.player2{background:#ef44444d;border-color:var(--player2)}.ultimate-bar{display:flex;gap:.5rem;justify-content:center}.ultimate-slot{flex:1;max-width:150px;padding:.5rem;background:var(--bg-card);border-radius:6px;text-align:center;font-size:.75rem}.ultimate-name{display:block;font-weight:600}.ultimate-cooldown{color:var(--text-dim)}.ultimate-slot.ready{border:1px solid var(--accent)}.ultimate-slot.ready .ultimate-cooldown{color:var(--hp-high)}.game-log{flex:1;min-height:80px;max-height:120px;background:var(--bg-darker);border-radius:6px;overflow-y:auto;font-family:monospace;font-size:.75rem;padding:.5rem}.log-content{display:flex;flex-direction:column;gap:.25rem}.log-entry{color:var(--text-dim)}.log-entry.important{color:var(--accent)}.modal{position:fixed;top:0;right:0;bottom:0;left:0;background:#000c;display:flex;align-items:center;justify-content:center;padding:1rem;z-index:100}.modal-content{background:var(--bg-card);padding:1.5rem;border-radius:12px;max-width:400px;width:100%;text-align:center}.modal-content h2,.modal-content h3{margin-bottom:1rem}.modal-content textarea{width:100%;min-height:100px;padding:.75rem;background:var(--bg-darker);border:1px solid var(--grid-line);border-radius:6px;color:var(--text);font-family:inherit;margin-bottom:1rem}.modal-content .btn{margin:.25rem}@media (min-width: 600px){:root{--cell-size: 36px}.game-header{padding:.75rem 1rem}.player-info{flex-direction:row;gap:1rem}.game-log{max-height:150px}}@media (min-width: 900px){:root{--cell-size: 42px}#game-screen{max-width:800px;margin:0 auto}}
