:root{--bg-primary: #0a0e17;--bg-surface: #111827;--bg-card: #182234;--bg-card-hover: #1e293b;--border-subtle: #24344d;--border-focus: #3b82f6;--text-main: #f8fafc;--text-muted: #94a3b8;--text-dim: #64748b;--accent-gold: #fbbf24;--accent-gold-glow: rgba(251, 191, 36, .2);--accent-blue: #3b82f6;--accent-blue-glow: rgba(59, 130, 246, .25);--accent-red: #ef4444;--accent-red-glow: rgba(239, 68, 68, .25);--accent-green: #10b981;--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif}*{box-sizing:border-box;margin:0;padding:0;-webkit-tap-highlight-color:transparent}html,body{background-color:var(--bg-primary);color:var(--text-main);font-family:var(--font-family);height:100%;width:100%;overflow:hidden;position:fixed;-webkit-font-smoothing:antialiased}#root{height:100%;width:100%}.mobile-app-root{display:flex;flex-direction:column;height:100dvh;max-height:100dvh;width:100%;max-width:480px;margin:0 auto;background-color:var(--bg-primary);overflow:hidden;position:relative}.mobile-header{height:48px;min-height:48px;display:flex;align-items:center;justify-content:space-between;padding:0 12px;background:linear-gradient(180deg,#162032,#0d1422);border-bottom:1px solid var(--border-subtle);z-index:20}.brand{display:flex;align-items:center;gap:8px}.brand .logo-icon{font-size:1.25rem}.brand .title{font-size:.95rem;font-weight:700;letter-spacing:-.02em;background:linear-gradient(90deg,#fbbf24,#f59e0b);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.quick-sim-btn{background:linear-gradient(135deg,#2563eb,#1d4ed8);color:#fff;border:none;font-size:.75rem;font-weight:600;padding:5px 10px;border-radius:6px;cursor:pointer;box-shadow:0 2px 8px var(--accent-blue-glow)}.mobile-tabs{height:40px;min-height:40px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));background-color:#0b111c;border-bottom:1px solid var(--border-subtle);padding:3px 6px;gap:4px}.tab-btn{background:transparent;color:var(--text-muted);border:none;border-radius:6px;font-size:.75rem;font-weight:600;cursor:pointer;display:flex;align-items:center;justify-content:center;gap:4px;transition:all .15s ease}.tab-btn.active{background-color:var(--bg-card);color:#fff;box-shadow:0 1px 4px #0006}.mobile-content{flex:1;overflow-y:auto;overflow-x:hidden;padding:8px 10px;display:flex;flex-direction:column}.mobile-content::-webkit-scrollbar,.log-scroll-area::-webkit-scrollbar{width:4px}.mobile-content::-webkit-scrollbar-thumb,.log-scroll-area::-webkit-scrollbar-thumb{background:var(--border-subtle);border-radius:2px}.kadro-view{display:flex;flex-direction:column;height:100%;gap:8px}.army-side-switcher{display:grid;grid-template-columns:1fr 1fr;gap:6px}.side-switch-btn{padding:8px 6px;border-radius:8px;border:1px solid var(--border-subtle);background:var(--bg-surface);color:var(--text-muted);font-size:.8rem;font-weight:700;cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px;transition:all .2s ease}.side-switch-btn .sub-cap{font-size:.7rem;font-weight:500;opacity:.8}.side-switch-btn.blue.active{background:linear-gradient(135deg,#2563eb40,#1e3a8a4d);border-color:#3b82f6;color:#60a5fa;box-shadow:0 0 12px var(--accent-blue-glow)}.side-switch-btn.red.active{background:linear-gradient(135deg,#ef444440,#991b1b4d);border-color:#ef4444;color:#f87171;box-shadow:0 0 12px var(--accent-red-glow)}.army-card{background-color:var(--bg-card);border-radius:10px;padding:10px;display:flex;flex-direction:column;gap:8px;border:1px solid var(--border-subtle)}.army-card.blue-border{border-left:3px solid #3b82f6}.army-card.red-border{border-left:3px solid #ef4444}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:8px}.form-col{display:flex;flex-direction:column;gap:3px}.field-label{font-size:.7rem;color:var(--text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.03em}.text-gold{color:var(--accent-gold)}.label-with-badge{display:flex;align-items:center;justify-content:space-between;margin-bottom:3px}.badge-gold{font-size:.65rem;background:#fbbf2426;color:var(--accent-gold);border:1px solid rgba(251,191,36,.3);padding:1px 5px;border-radius:4px}.select-input{background-color:var(--bg-surface);color:var(--text-main);border:1px solid var(--border-subtle);border-radius:6px;padding:6px 8px;font-size:.75rem;font-weight:600;outline:none;width:100%}.chip-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:4px}.chip-btn{background-color:var(--bg-surface);border:1px solid var(--border-subtle);color:var(--text-muted);font-size:.7rem;font-weight:600;padding:6px 2px;border-radius:6px;cursor:pointer;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chip-btn.active{background-color:#2563eb;color:#fff;border-color:#3b82f6}.chip-btn.active.red{background-color:#dc2626;border-color:#ef4444;color:#fff}.chip-btn.mini{padding:4px 2px;font-size:.65rem}.chip-btn.active-gold{background-color:#d97706;border-color:#fbbf24;color:#fff}.sub-behemoth-box{background:#00000040;padding:6px;border-radius:6px;border:1px dashed rgba(251,191,36,.4)}.tier-chips{display:grid;grid-template-columns:repeat(6,1fr);gap:4px}.tier-chip{background-color:var(--bg-surface);border:1px solid var(--border-subtle);color:var(--text-muted);font-size:.75rem;font-weight:700;padding:5px 0;border-radius:6px;cursor:pointer;text-align:center}.tier-chip.active{background:linear-gradient(135deg,#2563eb,#1d4ed8);border-color:#60a5fa;color:#fff}.tier-chip.active.red{background:linear-gradient(135deg,#dc2626,#b91c1c);border-color:#f87171;color:#fff}.action-pill-btn{background:#2563eb33;color:#93c5fd;border:1px solid rgba(59,130,246,.4);font-size:.7rem;font-weight:600;padding:6px 4px;border-radius:6px;cursor:pointer;text-align:center;white-space:nowrap}.action-pill-btn.red{background:#dc262633;color:#fca5a5;border-color:#ef444466}.start-battle-bar{margin-top:auto;padding:6px 0}.huge-battle-btn{width:100%;background:linear-gradient(135deg,#eab308,#ca8a04);color:#000;font-size:.9rem;font-weight:800;letter-spacing:.02em;padding:12px;border:none;border-radius:10px;cursor:pointer;box-shadow:0 4px 16px #eab30859;display:flex;align-items:center;justify-content:center;gap:8px;transition:transform .1s ease}.huge-battle-btn:active{transform:scale(.98)}.savas-view{display:flex;flex-direction:column;height:100%;gap:8px}.clash-hud{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:6px;background-color:var(--bg-card);padding:8px 10px;border-radius:10px;border:1px solid var(--border-subtle)}.army-hud-side{display:flex;flex-direction:column;gap:4px}.hud-title-row{display:flex;justify-content:space-between;align-items:center}.hud-name{font-size:.8rem;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:90px}.hud-troops{font-size:.75rem;font-weight:600;color:var(--accent-gold)}.progress-bar-bg{height:8px;background-color:#0b111c;border-radius:4px;overflow:hidden}.progress-fill{height:100%;transition:width .3s ease}.progress-fill.blue{background:linear-gradient(90deg,#3b82f6,#60a5fa)}.progress-fill.red{background:linear-gradient(90deg,#ef4444,#f87171)}.rage-bar-bg{height:4px;background-color:#0b111c;border-radius:2px;overflow:hidden}.rage-fill.gold{height:100%;background:#fbbf24;transition:width .3s ease}.clash-vs-badge{display:flex;flex-direction:column;align-items:center;padding:0 4px}.vs-sec{font-size:.65rem;font-weight:700;color:var(--text-dim)}.vs-text{font-size:.85rem;font-weight:800;color:var(--text-muted)}.winner-banner{padding:8px;border-radius:8px;text-align:center;border:1px solid transparent}.winner-banner.blue{background:linear-gradient(135deg,#2563eb33,#1e3a8a4d);border-color:#3b82f6}.winner-banner.red{background:linear-gradient(135deg,#ef444433,#991b1b4d);border-color:#ef4444}.winner-headline{font-size:.85rem;font-weight:800;letter-spacing:.02em}.winner-banner.blue .winner-headline{color:#60a5fa}.winner-banner.red .winner-headline{color:#f87171}.winner-sub{font-size:.7rem;color:var(--text-muted);margin-top:2px}.playback-controls{display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px}.control-btn{background-color:var(--bg-card);border:1px solid var(--border-subtle);color:var(--text-main);padding:6px;border-radius:6px;font-size:.75rem;font-weight:600;cursor:pointer}.live-event-feed{flex:1;background-color:var(--bg-card);border-radius:8px;border:1px solid var(--border-subtle);display:flex;flex-direction:column;overflow:hidden;min-height:120px}.feed-header{padding:6px 8px;background:var(--bg-surface);border-bottom:1px solid var(--border-subtle);display:flex;justify-content:space-between;font-size:.7rem;font-weight:700}.feed-tag{color:var(--accent-gold)}.feed-body{flex:1;overflow-y:auto;padding:6px 8px;display:flex;flex-direction:column;gap:4px}.feed-line{font-size:.72rem;line-height:1.35;color:var(--text-muted)}.feed-line.skill-highlight{color:#fff;font-weight:600;background:#fbbf241a;padding:3px 6px;border-radius:4px;border-left:2px solid var(--accent-gold)}.analiz-view{display:flex;flex-direction:column;height:100%;gap:8px}.stat-card{background-color:var(--bg-card);border-radius:8px;padding:8px;border:1px solid var(--border-subtle)}.stat-card-title{font-size:.75rem;font-weight:700;color:var(--text-main);margin-bottom:6px}.stat-table{display:flex;flex-direction:column;gap:3px}.stat-row{display:grid;grid-template-columns:2fr 1fr 1fr;font-size:.7rem;padding:3px 4px;border-radius:4px}.stat-row.header{font-weight:700;color:var(--text-dim);border-bottom:1px solid var(--border-subtle);padding-bottom:4px}.text-blue{color:#60a5fa}.text-red{color:#f87171}.stat-val{font-weight:600;text-align:right}.stat-val.blue{color:#93c5fd}.stat-val.red{color:#fca5a5}.stat-row.highlight-heal{background:#10b98114;border-radius:4px}.stat-val.green-blue{color:#34d399;font-weight:800;text-shadow:0 0 8px rgba(52,211,153,.3)}.stat-val.green-red{color:#a7f3d0;font-weight:800;text-shadow:0 0 8px rgba(52,211,153,.3)}.log-card{flex:1;background-color:var(--bg-card);border-radius:8px;border:1px solid var(--border-subtle);display:flex;flex-direction:column;overflow:hidden;min-height:120px}.log-card-header{padding:6px 8px;background-color:var(--bg-surface);border-bottom:1px solid var(--border-subtle);display:flex;justify-content:space-between;align-items:center;font-size:.7rem;font-weight:700}.log-filter-chips{display:flex;gap:4px}.filter-chip{background:transparent;border:1px solid var(--border-subtle);color:var(--text-muted);font-size:.65rem;font-weight:600;padding:2px 6px;border-radius:4px;cursor:pointer}.filter-chip.active{background:var(--accent-gold);color:#000;border-color:var(--accent-gold)}.log-scroll-area{flex:1;overflow-y:auto;padding:6px 8px;display:flex;flex-direction:column;gap:4px}.log-entry{display:flex;gap:6px;font-size:.7rem;line-height:1.35;padding:4px 6px;border-radius:4px;background:#ffffff05;border-left:2px solid transparent}.log-entry.team-A{border-left:3px solid #3b82f6;background:#3b82f614}.log-entry.team-B{border-left:3px solid #ef4444;background:#ef444414}.log-entry.team-neutral{border-left:3px solid #fbbf24;background:#fbbf240f}.army-summary-duo{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:8px}.army-summary-box{background:linear-gradient(145deg,#131c2d,#0d1422);border-radius:10px;padding:8px;display:flex;flex-direction:column;position:relative;border:1px solid #2a3a54;box-shadow:0 2px 8px #00000059}.army-summary-box.blue{border-color:#2563eb;background:linear-gradient(145deg,#0f1c33,#0a1324)}.army-summary-box.blue.winner{box-shadow:0 0 12px #3b82f666;border-color:#60a5fa}.army-summary-box.red{border-color:#dc2626;background:linear-gradient(145deg,#2b1115,#170a0d)}.army-summary-box.red.winner{box-shadow:0 0 12px #ef444466;border-color:#f87171}.box-badge{font-size:.65rem;font-weight:800;padding:2px 6px;border-radius:4px;margin-bottom:6px;display:inline-block}.box-badge.blue{color:#93c5fd;background:#3b82f633}.box-badge.red{color:#fca5a5;background:#ef444433}.box-heroes{display:flex;align-items:center;justify-content:center;gap:6px;margin-bottom:6px}.hero-thumb{display:flex;flex-direction:column;align-items:center;max-width:50px}.hero-thumb img{width:34px;height:44px;border-radius:6px;object-fit:cover;border:1px solid #fbbf24;background:#000}.hero-thumb span{font-size:.6rem;font-weight:700;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:50px;margin-top:2px}.box-heroes .plus{color:var(--text-dim);font-size:.75rem;font-weight:800}.box-status{text-align:center;background:#00000040;border-radius:6px;padding:4px}.status-label{font-size:.58rem;color:var(--text-muted)}.status-val{font-size:.72rem;font-weight:800}.status-val.blue{color:#60a5fa}.status-val.red{color:#f87171}.status-percent{font-size:.62rem;font-weight:700;color:#34d399;margin-top:2px}.stat-row.total-highlight{background:#fbbf241a;border-radius:4px}.stat-val.bold{font-weight:800}.log-time{color:var(--text-dim);font-weight:700;min-width:24px}.log-text{color:var(--text-muted)}.mobile-footer{height:48px;min-height:48px;display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:6px 10px;background-color:#0b111c;border-top:1px solid var(--border-subtle);z-index:20}.footer-action-btn{background-color:var(--bg-card);border:1px solid var(--border-subtle);color:var(--text-main);border-radius:8px;font-size:.75rem;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center}.footer-action-btn.primary{background:linear-gradient(135deg,#2563eb,#1d4ed8);border-color:#3b82f6;color:#fff;box-shadow:0 2px 8px var(--accent-blue-glow)}.commander-picker-row{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:10px}.commander-slot-box{background:linear-gradient(145deg,#131c2d,#0d1422);border:1px solid #2a3a54;border-radius:10px;padding:8px 6px;display:flex;flex-direction:column;align-items:center;position:relative;cursor:pointer;transition:all .2s cubic-bezier(.4,0,.2,1);box-shadow:0 2px 6px #0000004d}.commander-slot-box:active{transform:scale(.97);border-color:var(--accent-gold)}.slot-badge{font-size:.62rem;font-weight:700;color:var(--accent-gold);background:#fbbf241f;padding:2px 6px;border-radius:4px;margin-bottom:6px;letter-spacing:-.01em}.slot-avatar-wrap{width:58px;height:74px;border-radius:8px;overflow:hidden;border:2px solid #fbbf24;box-shadow:0 0 10px #fbbf2459;background:#000;display:flex;align-items:center;justify-content:center}.slot-avatar-img{width:100%;height:100%;object-fit:cover;display:block}.slot-info{margin-top:6px;text-align:center}.slot-name{font-size:.78rem;font-weight:800;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100px}.slot-role{font-size:.65rem;color:var(--text-muted)}.slot-change-pill{margin-top:4px;font-size:.6rem;font-weight:600;color:#60a5fa;background:#60a5fa1f;padding:2px 8px;border-radius:12px}.hero-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#000000c7;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);z-index:100;display:flex;align-items:flex-end;justify-content:center;animation:fadeIn .2s ease-out}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}.hero-modal-sheet{background:linear-gradient(180deg,#131c2d,#090e18);border-top-left-radius:16px;border-top-right-radius:16px;border:1px solid #2d3f5e;border-bottom:none;width:100%;max-width:480px;height:82vh;max-height:82vh;display:flex;flex-direction:column;animation:slideUp .25s cubic-bezier(.16,1,.3,1);box-shadow:0 -8px 25px #0009;overflow:hidden}@keyframes slideUp{0%{transform:translateY(100%)}to{transform:translateY(0)}}.modal-header{padding:12px 14px;border-bottom:1px solid var(--border-subtle);display:flex;justify-content:space-between;align-items:center;background-color:#0d1523}.modal-title{font-size:.88rem;font-weight:800;color:#fff;display:flex;align-items:center;gap:6px}.modal-close-btn{background:#1e293b;border:1px solid #334155;color:var(--text-muted);width:28px;height:28px;border-radius:50%;font-size:.85rem;display:flex;align-items:center;justify-content:center;cursor:pointer}.modal-filter-row{display:flex;gap:6px;padding:8px 12px;background-color:#0b111c;border-bottom:1px solid #1f2b3e;overflow-x:auto}.modal-filter-btn{background:#151f30;border:1px solid #28374d;color:var(--text-muted);font-size:.7rem;font-weight:600;padding:4px 10px;border-radius:6px;cursor:pointer;white-space:nowrap}.modal-filter-btn.active{background:#2563eb;border-color:#3b82f6;color:#fff}.hero-grid-scroll{flex:1;overflow-y:auto;padding:10px 8px 24px}.hero-grid-scroll::-webkit-scrollbar{width:4px}.hero-grid-scroll::-webkit-scrollbar-thumb{background:#2a3c58;border-radius:4px}.hero-4col-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px 6px}.hero-card-cell{display:flex;flex-direction:column;align-items:center;cursor:pointer;padding:4px 2px;border-radius:8px;transition:all .15s ease;position:relative}.hero-card-cell:active{transform:scale(.94)}.hero-card-img-wrap{width:100%;aspect-ratio:92 / 120;border-radius:8px;overflow:hidden;position:relative;background:#000;border:2px solid transparent;box-shadow:0 2px 6px #0006}.hero-card-cell.legendary .hero-card-img-wrap{border-color:#fbbf24;box-shadow:0 0 8px #fbbf2466}.hero-card-cell.epic .hero-card-img-wrap{border-color:#c084fc;box-shadow:0 0 8px #c084fc59}.hero-card-cell.rare .hero-card-img-wrap{border-color:#60a5fa;box-shadow:0 0 8px #60a5fa59}.hero-card-img{width:100%;height:100%;object-fit:cover;display:block}.hero-card-order-badge{position:absolute;top:3px;left:3px;background:#000000bf;color:#fbbf24;font-size:.58rem;font-weight:800;padding:1px 4px;border-radius:3px;line-height:1}.hero-card-caption{margin-top:4px;text-align:center;width:100%}.hero-card-name{font-size:.68rem;font-weight:700;color:#fff;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hero-card-troop{font-size:.58rem;color:var(--text-muted);display:block;line-height:1.1}.hud-avatar-icon{width:28px;height:36px;border-radius:4px;overflow:hidden;border:1px solid #fbbf24;box-shadow:0 0 6px #fbbf244d;display:inline-block;vertical-align:middle}.hud-avatar-icon img{width:100%;height:100%;object-fit:cover;display:block}.skill-level-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px}.skill-level-cell,.bonus-cell{display:flex;flex-direction:column;gap:3px;min-width:0}.skill-level-name,.bonus-cell span{font-size:10px;color:var(--text-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.select-input.mini{padding:5px 2px;font-size:12px;min-width:0;width:100%}.bonus-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.winner-odds{margin-top:4px;font-size:12px;color:var(--text-muted)}.model-note{margin:10px 0;padding:8px 10px;font-size:11px;line-height:1.45;color:var(--text-dim)}.hud-text-col{flex-direction:column;align-items:flex-start;gap:1px;min-width:0}.hud-text-col.right{align-items:flex-end}.lang-switch{display:flex;flex-shrink:0;margin-left:auto;margin-right:8px;border:1px solid var(--border-subtle);border-radius:8px;overflow:hidden}.lang-btn{padding:6px 8px;font-size:11px;font-weight:700;color:var(--text-muted);background:transparent;border:none;cursor:pointer}.lang-btn.active{color:var(--text-main);background:var(--accent-blue)}@media(max-width:400px){.mobile-header .title{font-size:13px}}.support-card{display:flex;flex-direction:column;gap:10px}.support-text{font-size:13px;line-height:1.5;color:var(--text-muted)}.support-address{padding:10px;text-align:center;font-size:15px;font-weight:700;color:var(--accent-gold);background:var(--bg-surface);border:1px solid var(--border-subtle);border-radius:8px;-webkit-user-select:all;user-select:all;overflow-wrap:anywhere}.support-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.support-btn{display:flex;align-items:center;justify-content:center;text-align:center;text-decoration:none}.support-help-title{font-size:12px;font-weight:700;color:var(--text-main)}.support-list{padding-left:18px;font-size:12px;line-height:1.6;color:var(--text-muted)}.mobile-tabs{overflow-x:hidden}.mobile-tabs .tab-btn{flex:1 1 0;min-width:0;padding-left:2px;padding-right:2px;white-space:nowrap}
