*{box-sizing:border-box}#root,*,body,html{margin:0;padding:0}#root,body,html{height:100%;min-height:100%;overflow:hidden;width:100%}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:#1a1a1a;color:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}code{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}@media (max-width:768px){#root,body,html{height:auto;overflow:auto}}.battlefield{background:linear-gradient(180deg,#4a90e2,#357abd);display:flex;flex:1 1;flex-direction:column;min-height:60vh;position:relative}.game-timer{background:#000000b3;border:2px solid gold;border-radius:20px;color:#fff;font-size:24px;font-weight:700;left:50%;min-width:80px;padding:8px 16px;position:absolute;text-align:center;text-shadow:0 0 3px #00000080;top:20px;transform:translateX(-50%);z-index:10}.player-side{align-items:center;display:flex;height:25%;justify-content:space-around;padding:10px}.battlefield-center{flex:1 1;overflow:hidden;position:relative}.battlefield-grid{display:grid;grid-template-columns:repeat(6,1fr);grid-template-rows:repeat(8,1fr);height:100%;left:0;position:absolute;top:0;width:100%}.grid-cell{background-color:#0000000a;border:1px solid #ffffff2e;cursor:pointer;transition:background-color .2s}.grid-cell.placeable{border-color:#ffffff4d}.grid-cell.placeable:hover{background-color:#4caf504d}.grid-cell.show-placeable.placeable{background-color:#4caf501a}@media (min-width:769px){.grid-cell{background-color:#ffffff0d;border-color:#ffffff4d}.grid-cell.placeable{border-color:#fff6}}.game-unit{align-items:center;background-color:#fff;border-radius:50%;display:flex;flex-direction:column;height:40px;pointer-events:none;position:absolute;transform:translate(-50%,-50%);transition:all .3s ease;width:40px}.game-unit .unit-name{color:#fff;font-size:12px;margin-top:-20px;text-shadow:0 0 3px #000;white-space:nowrap}.health-bar{bottom:-10px;left:50%;transform:translateX(-50%)}.tower{align-items:flex-end;background-color:#d4d4d4;border:3px solid #333;border-radius:12px;display:flex;height:120px;justify-content:center;padding-bottom:5px;position:relative;width:80px}.player-top .tower{background-color:#f44}.player-bottom .tower{background-color:#4f4}.tower-health{color:#fff;font-size:16px;font-weight:700;text-shadow:1px 1px 2px #00000080}.main-tower:before{content:"👑";font-size:24px;position:absolute;top:-25px}.unit{align-items:center;border-radius:50%;box-shadow:0 2px 4px #0003;color:#fff;display:flex;flex-direction:column;font-size:12px;height:40px;justify-content:center;pointer-events:none;position:absolute;text-shadow:1px 1px 2px #00000080;transform:translate(-50%,-50%);transition:all .3s linear;width:40px;z-index:1}.unit.bottom{background-color:#4f4}.unit.top{background-color:#f44}.unit:before{border-radius:50%;bottom:0;box-shadow:inset 0 -2px 4px #0003;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.unit-name{font-weight:700;margin-bottom:2px}.unit-stars{color:gold;font-size:11px;margin-bottom:2px;text-shadow:0 0 2px #0009}.health-bar{background-color:red;border-radius:2px;bottom:-8px;height:4px;left:-15px;overflow:hidden;position:absolute;width:30px}.health-fill{background-color:#0f0;height:100%;transition:width .3s ease}.game-end-overlay{align-items:center;animation:fadeIn .5s ease-out;background-color:#000000b3;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0;z-index:100}.game-end-message{animation:scaleIn .5s ease-out;color:#fff;font-size:48px;font-weight:700;text-shadow:2px 2px 4px #00000080}.game-end-overlay.victory .game-end-message{color:#4f4}.game-end-overlay.defeat .game-end-message{color:#f44}.ai-info{align-items:center;background:#00000080;border-radius:8px;flex-direction:column;left:50%;max-width:400px;padding:10px;position:absolute;top:10px;transform:translateX(-50%);width:80%;z-index:2}.ai-deck,.ai-info{display:flex;gap:10px}.ai-deck{justify-content:center}.ai-card{background:#333;border:1px solid #666;border-radius:5px;color:#fff;font-size:12px;min-width:80px;padding:5px 10px;position:relative;text-align:center}.ai-card.current{background:#444;border-color:#f44;box-shadow:0 0 5px #ff444480}.ai-card.on-cooldown{background:#222;opacity:.7}.ai-cooldown-overlay{align-items:center;background:#00000080;border-radius:5px;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.ai-cooldown-text{color:#fff;font-size:16px;font-weight:700;text-shadow:1px 1px 2px #000c}.ai-card-cost{align-items:center;background:#f44;border-radius:50%;display:flex;font-size:12px;font-weight:700;height:20px;justify-content:center;position:absolute;right:-8px;top:-8px;width:20px}.elixir-bar{background:#333;border-radius:6px;height:12px;width:100%}.elixir-bar.ai{border:1px solid #f44}.elixir-fill{background:linear-gradient(90deg,#f44,#f66)}.elixir-text{font-size:10px;left:50%;top:50%;transform:translate(-50%,-50%)}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes scaleIn{0%{transform:scale(.5)}to{transform:scale(1)}}.player-cheats{position:absolute;right:20px;top:20px;z-index:15}.infinite-elixir-button{background:linear-gradient(135deg,#7e57c2,#5e35b1);border:none;border-radius:12px;box-shadow:0 8px 16px #00000059;color:#fff;cursor:pointer;font-weight:600;padding:10px 18px;transition:transform .2s ease,opacity .2s ease}.infinite-elixir-button:hover{transform:translateY(-1px)}.infinite-elixir-button:disabled{cursor:default;opacity:.6;transform:none}@media (max-width:1024px){.battlefield{min-height:58vh}.game-timer{font-size:20px;padding:6px 12px;top:16px}.tower{height:105px;width:70px}}@media (max-width:768px){.battlefield{min-height:60vh}.game-timer{font-size:18px;padding:6px 12px;top:12px}.player-side{gap:12px;height:auto;padding:8px 6px}.tower{border-width:2px;height:90px;width:60px}.tower-health{font-size:14px}.game-unit,.unit{height:32px;width:32px}.game-unit .unit-name,.unit-name{font-size:10px;margin-top:-16px}.unit-stars{font-size:9px}.game-unit .health-bar,.unit .health-bar{bottom:-6px;width:26px}.ai-info{bottom:12px;gap:6px;max-width:none;padding:8px;top:auto;width:90%}.ai-deck{flex-wrap:wrap;gap:6px}.ai-card{font-size:11px;min-width:68px;padding:4px 8px}.ai-card-cost{font-size:10px;height:18px;width:18px}.ai-cooldown-text{font-size:13px}.player-cheats{margin:10px auto 0;position:static}.infinite-elixir-button{width:100%}}@media (max-width:480px){.battlefield{min-height:55vh}.game-timer{font-size:16px;padding:4px 10px;top:8px}.tower{height:80px;width:52px}.tower-health{font-size:12px}.player-side{flex-wrap:wrap;justify-content:center}.ai-card{font-size:10px;min-width:60px}.ai-info{gap:4px}}.card-deck{background-color:#333;display:flex;flex-direction:column;height:150px;padding:10px}.cards-container{display:flex;gap:10px;justify-content:center;margin-bottom:10px}.card{background-color:#555;border:2px solid #666;border-radius:8px;cursor:pointer;display:flex;flex-direction:column;height:90px;padding:5px;position:relative;transition:all .2s ease;width:70px}.card.selected{border-color:#4caf50;transform:translateY(-5px)}.card.disabled{cursor:not-allowed;opacity:.6}.card.on-cooldown{position:relative}.cooldown-overlay{align-items:center;background:#000000b3;border-radius:6px;bottom:0;display:flex;justify-content:center;left:0;position:absolute;right:0;top:0}.cooldown-text{color:#fff;font-size:24px;font-weight:700;text-shadow:0 0 3px #000}.card:hover:not(.disabled){border-color:#888;transform:translateY(-2px)}.card-cost{align-items:center;background-color:#4caf50;border:2px solid #333;border-radius:50%;color:#fff;display:flex;height:25px;justify-content:center;position:absolute;right:-10px;top:-10px;width:25px}.card-name{color:#fff;font-size:12px;margin-bottom:auto;margin-top:auto;text-align:center}.elixir-bar{background-color:#666;border-radius:10px;height:20px;margin-top:auto;overflow:hidden;position:relative}.elixir-fill{background:linear-gradient(90deg,#8a2be2,#9400d3);height:100%;transition:width .3s ease;width:50%}.elixir-text{color:#fff;font-weight:700;line-height:20px;position:absolute;text-align:center;text-shadow:1px 1px 2px #00000080;width:100%}@media (max-width:1024px){.card-deck{height:auto}}@media (max-width:768px){.card-deck{padding:10px 8px}.cards-container{flex-wrap:wrap;justify-content:center}.card{height:82px;width:64px}.cooldown-text{font-size:18px}}@media (max-width:480px){.card{height:76px;width:58px}.card-name{font-size:11px}.cooldown-text{font-size:16px}.card-cost{font-size:12px;height:22px;width:22px}}.main-menu{background:linear-gradient(135deg,#1a1a1a,#2a2a2a);color:#fff;display:flex;flex-direction:column;height:100%;padding:20px;width:100%}.menu-header{align-items:center;background:#0000004d;border-radius:10px;display:flex;justify-content:space-between;margin-bottom:20px;padding:10px}.header-actions{align-items:flex-start;display:flex;gap:12px;position:relative}.custom-mode-top-button{align-items:center;background:linear-gradient(135deg,#4a4a4a,#333);border:none;border-radius:18px;box-shadow:0 4px 12px #0000004d;color:#fff;cursor:pointer;display:flex;font-size:16px;gap:8px;height:100%;padding:10px 18px;transition:transform .2s ease,box-shadow .2s ease}.custom-mode-top-button:hover{box-shadow:0 6px 16px #00000059;transform:translateY(-1px)}.custom-mode-top-button:active{transform:translateY(0)}.custom-mode-top-button.locked{box-shadow:none;cursor:not-allowed;opacity:.65}.custom-mode-top-button.locked:hover{transform:none}.custom-mode-lock-text{color:#ffc107;display:block;font-size:12px}.daily-reward-card{align-items:center;background:#00000059;border:1px solid #ffffff14;border-radius:12px;display:flex;gap:12px;justify-content:space-between;margin-bottom:20px;padding:16px}.daily-reward-card.available{border-color:#8bc34abf;box-shadow:0 6px 18px #8bc34a33}.daily-reward-info{display:flex;flex-direction:column;gap:6px}.daily-reward-title{color:#ffd54f;font-weight:700}.daily-reward-label{font-size:16px}.daily-reward-hint{color:#ffffffb3;font-size:13px}.daily-reward-button{background:linear-gradient(135deg,#4caf50,#2e7d32);border:none;border-radius:14px;color:#fff;cursor:pointer;font-weight:600;padding:10px 20px;transition:transform .2s ease,box-shadow .2s ease}.daily-reward-button:hover:not(:disabled){box-shadow:0 6px 16px #0000004d;transform:translateY(-1px)}.daily-reward-button:disabled{box-shadow:none;cursor:default;opacity:.55}.profile-section{align-items:center;display:flex;gap:15px}.profile-icon{height:60px;position:relative;width:60px}.profile-image{background-color:#444;border:2px solid gold;border-radius:50%;height:100%;width:100%}.level-badge{align-items:center;background:linear-gradient(135deg,gold,orange);border:2px solid #000;border-radius:50%;bottom:-5px;display:flex;font-size:12px;font-weight:700;height:24px;justify-content:center;position:absolute;right:-5px;width:24px}.profile-info{display:flex;flex-direction:column;gap:5px}.player-name{font-size:18px;font-weight:700}.trophy-count{align-items:center;color:gold;display:flex;gap:5px}.resources{display:flex;gap:15px}.code-controls{position:relative}.code-button{background:linear-gradient(135deg,#5c6bc0,#3949ab);border:none;border-radius:12px;color:#fff;cursor:pointer;font-weight:600;padding:8px 18px;transition:transform .2s ease}.code-button:hover{transform:translateY(-1px)}.code-panel{background:#000000d9;border-radius:12px;box-shadow:0 12px 24px #00000073;display:flex;flex-direction:column;gap:10px;padding:16px;position:absolute;right:0;top:110%;width:240px;z-index:5}.code-label{font-size:14px;font-weight:600}.code-input{background:#ffffff14;border:1px solid #ffffff26;border-radius:8px;color:#fff;outline:none;padding:8px 10px}.code-input:focus{border-color:#5c6bc0;box-shadow:0 0 0 2px #5c6bc059}.code-panel-actions{display:flex;gap:8px}.redeem-button,.reset-button{border:none;border-radius:10px;color:#fff;cursor:pointer;flex:1 1;font-weight:600;padding:8px 0;transition:transform .2s ease,opacity .2s ease}.redeem-button{background:linear-gradient(135deg,#4caf50,#2e7d32)}.reset-button{background:linear-gradient(135deg,#ff9800,#f57c00)}.redeem-button:hover,.reset-button:hover{transform:translateY(-1px)}.code-feedback{border-radius:8px;font-size:13px;padding:6px 10px}.code-feedback.success{background:#4caf5033;color:#8bc34a}.code-feedback.error{background:#ff525233;color:#ff8a80}.resource{align-items:center;background:#0000004d;border-radius:15px;display:flex;gap:5px;padding:5px 10px}.resource.gold{color:gold}.resource.gems{color:#00ff9d}.star-books-button{align-items:center;background:linear-gradient(135deg,#ffd54f,#ffb300);border:none;border-radius:15px;box-shadow:0 4px 12px #00000040;color:#3b2400;cursor:pointer;display:flex;font-weight:600;gap:6px;padding:6px 16px;transition:transform .2s ease,box-shadow .2s ease}.star-books-button:hover{box-shadow:0 6px 16px #00000059;transform:translateY(-1px)}.star-books-button:active{transform:translateY(0)}.menu-buttons{flex-direction:column;gap:20px;margin-top:40px}.battle-button,.menu-buttons{align-items:center;display:flex}.battle-button{background:linear-gradient(135deg,#ff4646,#ff1a1a);border:none;border-radius:30px;color:#fff;cursor:pointer;font-size:24px;gap:10px;height:60px;justify-content:center;transition:transform .2s;width:200px}.battle-button:hover{transform:scale(1.05)}.instant-win-button{align-items:center;background:linear-gradient(135deg,#7b1fa2,#512da8);border:none;border-radius:24px;color:#f5e9ff;cursor:pointer;display:flex;flex-direction:column;font-weight:600;gap:6px;padding:12px 0;transition:transform .2s;width:200px}.instant-win-button:hover{transform:scale(1.03)}.instant-win-button .button-icon{font-size:26px}.button-subtext.instant{color:#d1c4e9;font-size:13px;opacity:1}.secondary-buttons{display:flex;gap:15px}.menu-button{align-items:center;background:linear-gradient(135deg,#4a4a4a,#333);border:none;border-radius:20px;color:#fff;cursor:pointer;display:flex;font-size:18px;gap:8px;padding:15px 30px;transition:transform .2s}.menu-button:hover{transform:scale(1.05)}.victory-rewards-button{align-items:stretch;flex-direction:column;gap:6px;width:240px}.victory-rewards-button .button-header{align-items:center;display:flex;gap:8px;justify-content:center}.victory-rewards-button .button-title{font-weight:700}.victory-rewards-button .button-icon{font-size:28px}.victory-rewards-count{background:linear-gradient(135deg,#4caf50,#2e7d32);border-radius:999px;color:#e8ffe8;font-size:12px;font-weight:700;padding:2px 10px}.menu-button .button-subtext{display:block;font-size:14px;margin-top:4px;opacity:.8}.menu-button .button-subtext.ready{color:#8bc34a;opacity:1}.menu-button .button-subtext.bonus{color:#64b5f6;font-size:13px;opacity:1}.button-icon{font-size:24px}.pass-royale{background:#00000059;border-radius:12px;cursor:pointer;display:flex;flex-direction:column;gap:10px;margin-bottom:20px;padding:15px;transition:box-shadow .2s ease,transform .2s ease}.pass-royale:hover{box-shadow:0 6px 18px #00000059;transform:translateY(-2px)}.pass-royale:focus-visible{outline:2px solid #ffd54f;outline-offset:4px}.pass-header{align-items:center;display:flex;font-weight:700;justify-content:space-between}.pass-title{font-size:18px}.pass-tier{color:gold}.pass-progress{background:#ffffff1a;border-radius:8px;height:12px;overflow:hidden}.pass-progress-fill{background:linear-gradient(135deg,gold,#ff9a00);height:100%;transition:width .3s ease}.pass-footer{font-size:14px;justify-content:space-between}.pass-actions,.pass-footer{align-items:center;display:flex}.pass-actions{gap:8px}.claim-button{background:linear-gradient(135deg,#4caf50,#2e7d32);border:none;border-radius:20px;color:#fff;cursor:pointer;padding:6px 14px;transition:opacity .2s}.claim-button:disabled{cursor:not-allowed;opacity:.5}.claim-all-button{background:linear-gradient(135deg,#2196f3,#1976d2);border:none;border-radius:20px;color:#fff;cursor:pointer;padding:6px 14px;transition:transform .2s ease;white-space:nowrap}.claim-all-button:hover{transform:translateY(-1px)}.menu-footer{margin-top:auto;padding:20px}.current-deck{background:#0000004d;border-radius:15px}.current-deck h3{color:gold;margin:0 0 15px}.deck-card{aspect-ratio:3/4;background:#444;border-radius:8px;overflow:hidden;transition:transform .2s}.deck-card:hover{transform:scale(1.05)}.deck-card img{height:100%;object-fit:cover;width:100%}.chests-section{background:#0000004d;border-radius:12px;margin-top:30px;padding:15px}.chests-section h3{margin-bottom:10px;margin-top:0}.chests-grid{grid-gap:12px;display:grid;gap:12px;grid-template-columns:repeat(auto-fill,minmax(160px,1fr))}.chest-card{align-items:flex-start;background:#ffffff14;border-radius:10px;display:flex;flex-direction:column;gap:10px;padding:12px}.chest-name{font-weight:700}.open-chest-button{align-self:stretch;background:linear-gradient(135deg,#ffb347,#ff7b54);border:none;border-radius:8px;color:#fff;cursor:pointer;padding:8px 12px}.empty-chests{color:#ccc;font-size:14px}.notifications{display:flex;flex-direction:column;gap:8px;margin-top:20px}.notification-item{background:#00000073;border-radius:8px;font-size:14px;padding:10px 12px}@media (max-width:1024px){.main-menu{padding:18px}.menu-header{align-items:stretch;flex-direction:column;gap:14px}.header-actions,.profile-section{flex-wrap:wrap;justify-content:space-between;width:100%}.profile-section{gap:12px}.resources{flex-wrap:wrap;gap:10px}.code-controls{margin-left:auto}}@media (max-width:768px){.main-menu{padding:16px 12px}.daily-reward-card{align-items:stretch;flex-direction:column;gap:14px}.daily-reward-button{padding:12px 0;width:100%}.header-actions{gap:10px;justify-content:center}.code-button,.custom-mode-top-button,.star-books-button{justify-content:center;width:100%}.menu-buttons{gap:16px;margin-top:24px;width:100%}.battle-button,.instant-win-button,.menu-button,.victory-rewards-button{width:100%}.instant-win-button{flex-direction:row;justify-content:space-between;padding:12px 16px}.secondary-buttons{flex-direction:column;width:100%}.menu-footer{padding:16px 0}.deck-cards{gap:12px;grid-template-columns:repeat(2,minmax(0,1fr))}.chests-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}}@media (max-width:480px){.main-menu{padding:12px 10px}.menu-header{gap:12px;padding:8px}.profile-icon{height:50px;width:50px}.player-name{font-size:16px}.daily-reward-label{font-size:15px}.daily-reward-hint{font-size:12px}.battle-button{font-size:20px;height:54px}.instant-win-button{font-size:16px;gap:10px}.menu-button{font-size:16px;padding:12px 20px}.deck-cards{grid-template-columns:repeat(2,minmax(0,1fr))}}.cards-collection-overlay{align-items:center;background-color:#000c;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:1000}.cards-collection-container{background:linear-gradient(135deg,#1a1a1a,#2a2a2a);border-radius:12px;color:#fff;display:flex;flex-direction:column;gap:20px;height:90vh;max-width:1200px;padding:20px;width:90%}.cards-collection-header{align-items:center;border-bottom:2px solid #333;display:flex;justify-content:space-between;padding-bottom:10px}.header-controls{align-items:center;display:flex;gap:20px}.selected-count{color:#4caf50;font-size:18px}.close-button{color:#f44;font-size:32px;line-height:1;padding:0;transition:color .2s}.close-button:hover{color:red}.current-deck{background:#333;border-radius:8px;padding:15px}.current-deck h3{margin:0 0 10px}.deck-cards{grid-gap:10px;display:grid;gap:10px;grid-template-columns:repeat(4,1fr)}.deck-slot{align-items:center;background:#222;border:2px dashed #4caf50;border-radius:6px;cursor:pointer;display:flex;height:50px;justify-content:center;position:relative;transition:all .2s}.deck-slot.empty{border-style:dashed;cursor:default}.deck-slot.filled{background:#4caf50;border-style:solid}.deck-slot.filled:hover{background:#45a049}.scroll-container{flex-grow:1;margin-right:-10px;overflow-y:auto;padding-right:10px}.cards-grid{grid-gap:20px;display:grid;gap:20px;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));padding:20px}.rarity-common{border-color:#aaa}.rarity-rare{border-color:#48f}.rarity-epic{border-color:#b026ff}.rarity-legendary{border-color:gold}.card-header{align-items:center;display:flex;justify-content:space-between}.card-name{font-size:16px;font-weight:700}.card-cost{background:#4caf50;border-radius:15px;font-weight:700;padding:5px 10px}.card-level{color:gold}.card-content{text-align:center}.card-stats{color:#aaa;display:flex;font-size:.9em;gap:5px;justify-content:space-around}.empty-slot{color:#666;font-style:italic}.remove-card{align-items:center;background:#f44;border-radius:50%;color:#fff;display:flex;font-size:14px;height:20px;justify-content:center;opacity:0;position:absolute;right:-8px;top:-8px;transition:opacity .2s;width:20px}.deck-slot.filled:hover .remove-card{opacity:1}.scroll-container::-webkit-scrollbar{width:8px}.scroll-container::-webkit-scrollbar-track{background:#222;border-radius:4px}.scroll-container::-webkit-scrollbar-thumb{background:#444;border-radius:4px}.scroll-container::-webkit-scrollbar-thumb:hover{background:#4caf50}.cards-collection-footer{border-top:2px solid #333;display:flex;gap:15px;justify-content:flex-end;padding-top:15px}.cancel-button,.save-button{border:none;border-radius:5px;cursor:pointer;font-size:16px;padding:10px 20px;transition:background-color .2s}.cancel-button{background-color:#f44;color:#fff}.save-button{background-color:#4caf50;color:#fff}.save-button:disabled{background-color:#666;cursor:not-allowed}.cancel-button:hover{background-color:red}.save-button:hover:not(:disabled){background-color:#45a049}.collection-card{background:#333;border:2px solid;border-radius:10px;cursor:pointer;display:flex;flex-direction:column;gap:10px;padding:15px;position:relative;transition:transform .2s,box-shadow .2s}.collection-card:hover{box-shadow:0 5px 15px #0000004d;transform:translateY(-5px)}.collection-card.selected{border-color:#4caf50!important;box-shadow:0 0 15px #4caf50}.collection-card.locked{box-shadow:none;cursor:not-allowed;opacity:.45}.collection-card.locked:hover{transform:none}.card-locked{background:#000000bf;border-radius:12px;bottom:12px;font-size:12px;letter-spacing:1px;padding:4px 10px;position:absolute;right:12px;text-transform:uppercase}.shop-section{background:linear-gradient(135deg,#1a1a1a,#2a2a2a);color:#fff;height:100%;padding:20px;width:100%}.section-header{gap:15px}.back-button{background:none;border:none;color:#fff;cursor:pointer;font-size:28px}.shop-content{display:flex;flex-direction:column}.section-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:20px}.shop-resources{display:flex;font-weight:700;gap:12px}.shop-content{grid-gap:20px;display:grid;gap:20px}.shop-special-grid{grid-gap:16px;display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.shop-item-card.compact{gap:10px;padding:16px}.shop-item-card.compact .item-header h3{font-size:1.1rem}.shop-item-card.compact .item-icon{font-size:28px}.shop-item-card.compact p{font-size:.95rem}.shop-item-card{background:#00000059;border-radius:12px;display:flex;flex-direction:column;gap:12px;padding:20px}.shop-item-card.special{border:1px solid #ff6f61a6;box-shadow:0 10px 24px #ff6f6140}.shop-item-card .unlock-requirement{color:#ffb347;font-size:.9rem;margin:0}.item-header{align-items:center;color:gold;display:flex;gap:10px}.item-icon{font-size:32px}.buy-button{align-self:flex-start;background:linear-gradient(135deg,#4caf50,#45a049);border:none;border-radius:15px;color:#fff;cursor:pointer;padding:10px 18px;transition:transform .2s}.buy-button:disabled{cursor:not-allowed;opacity:.4;transform:none}.buy-button:hover:not(:disabled){transform:scale(1.05)}.chest-rewards-overlay{align-items:center;background:#000000a6;display:flex;inset:0;justify-content:center;position:fixed;z-index:2000}.chest-rewards-modal{background:linear-gradient(135deg,#1f1f1f,#2c2c2c);border-radius:16px;box-shadow:0 20px 40px #0006;color:#fff;max-width:420px;padding:24px;text-align:center;width:90%}.chest-rewards-modal h2{color:#ffd36b;margin-bottom:16px;margin-top:0}.chest-rewards-modal ul{display:flex;flex-direction:column;gap:10px;list-style:none;margin:0 0 20px;padding:0}.chest-rewards-modal li{background:#ffffff14;border-radius:10px;padding:12px}.close-rewards-button{background:linear-gradient(135deg,#4caf50,#2e7d32);border:none;border-radius:8px;color:#fff;cursor:pointer;font-size:16px;padding:10px 24px}.close-rewards-button:hover{filter:brightness(1.1)}.reward-highlight-overlay{align-items:center;display:flex;inset:0;justify-content:center;pointer-events:none;position:fixed;z-index:2500}.reward-highlight-card{animation:reward-pop .3s ease-out;background:#000000d9;border:2px solid #ffd700b3;border-radius:16px;box-shadow:0 20px 40px #00000073;color:#fff;max-width:520px;padding:32px 40px;text-align:center;width:90%}.reward-highlight-card h2{color:#ffd36b;font-size:32px;letter-spacing:1px;margin:0 0 20px;text-transform:uppercase}.reward-highlight-card ul{display:flex;flex-direction:column;font-size:20px;font-weight:600;gap:12px;list-style:none;margin:0;padding:0}.reward-highlight-card li{text-shadow:0 0 8px #000000b3}@keyframes reward-pop{0%{opacity:0;transform:scale(.9)}to{opacity:1;transform:scale(1)}}.pass-rewards-overlay{align-items:center;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);background:#07091bb8;display:flex;inset:0;justify-content:center;position:fixed;z-index:1200}.pass-rewards-modal{background:#1e2140;border-radius:18px;box-shadow:0 18px 50px #00000073;color:#f8f9ff;display:flex;flex-direction:column;max-height:82vh;padding:24px;width:min(680px,92vw)}.pass-rewards-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:12px}.pass-rewards-header h2{font-size:1.6rem;margin:0}.pass-rewards-close{background:#0000;border:1px solid #f8f9ff66;border-radius:999px;color:#f8f9ff;cursor:pointer;padding:8px 16px;transition:background .2s ease,color .2s ease}.pass-rewards-close:hover{background:#f8f9ff26}.pass-rewards-legend{display:flex;font-size:.85rem;gap:16px;margin-bottom:12px;opacity:.85}.legend-item{padding-left:18px;position:relative}.legend-item:before{border-radius:50%;content:"";height:10px;left:0;position:absolute;top:50%;transform:translateY(-50%);width:10px}.legend-item.claimed:before{background:#4caf50}.legend-item.pending:before{background:#ffca28}.legend-item.locked:before{background:#607d8b}.pass-rewards-list{display:flex;flex-direction:column;gap:10px;margin:0;overflow-y:auto;padding:4px}.pass-reward-item{grid-gap:12px;align-items:center;background:#ffffff0f;border:1px solid #0000;border-radius:12px;display:grid;gap:12px;grid-template-columns:140px 1fr 130px;padding:12px 16px;transition:transform .15s ease,border .15s ease}.pass-reward-item:hover{transform:translateY(-2px)}.pass-reward-item.claimed{background:#4caf501f;border-color:#4caf508c}.pass-reward-item.pending{background:#ffca2826;border-color:#ffca28a6}.pass-reward-item.locked{border-color:#607d8b59}.pass-reward-item.milestone{border-color:#7c4dff;border-width:2px;box-shadow:0 0 12px #7c4dff4d}.pass-reward-tier{display:flex;flex-direction:column;font-weight:700;gap:6px}.pass-reward-milestone{background:linear-gradient(135deg,#7c4dff,#ff80ab);border-radius:999px;color:#fff;font-size:.75rem;padding:4px 8px;width:-webkit-fit-content;width:fit-content}.pass-reward-description{font-size:.95rem;line-height:1.35;opacity:.92}.pass-reward-status{border-radius:999px;font-size:.85rem;justify-self:flex-end;letter-spacing:.05em;padding:6px 10px;text-align:center;text-transform:uppercase}.pass-reward-status.claimed{background:#4caf5033;color:#a5d6a7}.pass-reward-status.pending{background:#ffca2840;color:#ffe082}.pass-reward-status.locked{background:#607d8b33;color:#b0bec5}@media (max-width:640px){.pass-reward-item{gap:8px;grid-template-columns:1fr;text-align:left}.pass-reward-status{justify-self:start}}.star-book-overlay{align-items:center;background:#0009;bottom:0;display:flex;justify-content:center;left:0;position:fixed;right:0;top:0;z-index:120}.star-book-modal{background:linear-gradient(180deg,#1e1e1e,#2c2c2c);border-radius:16px;box-shadow:0 24px 48px #00000059;color:#fff;display:flex;flex-direction:column;max-height:80vh;padding:24px;width:480px}.star-book-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:16px}.star-book-header h2{margin:0}.star-book-close{background:#0000;border:1px solid #fff3;border-radius:12px;color:#fff;cursor:pointer;padding:6px 12px;transition:background .2s ease}.star-book-close:hover{background:#ffffff1a}.star-book-balance{align-items:center;display:flex;font-size:20px;font-weight:600;gap:8px;margin-bottom:8px}.star-book-icon{font-size:24px}.star-book-count{color:#ffd54f}.star-book-label{font-size:16px;opacity:.8}.star-book-description{font-size:14px;margin-bottom:16px;opacity:.8}.star-book-list{display:flex;flex:1 1;flex-direction:column;gap:12px;overflow-y:auto}.star-book-item{grid-gap:12px;align-items:center;background:#ffffff0f;border-radius:12px;display:grid;gap:12px;grid-template-columns:2fr 1fr auto;padding:12px}.star-book-card-name{font-size:16px;font-weight:600}.star-book-card-stars{align-items:center;color:#ffd54f;display:flex;font-size:14px;gap:8px}.star-display{font-size:18px}.star-count{font-size:13px;opacity:.8}.star-book-card-info{display:flex;flex-direction:column;font-size:13px;gap:4px}.bonus-line{color:#8bc34a}.next-bonus{color:#ffb74d}.star-book-upgrade{background:linear-gradient(135deg,#ffd54f,#ffb300);border:none;border-radius:12px;color:#3b2400;cursor:pointer;font-weight:600;padding:8px 14px;transition:transform .2s ease,opacity .2s ease}.star-book-upgrade:hover:not(:disabled){transform:translateY(-1px)}.star-book-upgrade:disabled{cursor:not-allowed;opacity:.5}.star-book-empty{opacity:.75;padding:24px;text-align:center}.victory-rewards-modal-backdrop{align-items:center;background:#000000a6;display:flex;inset:0;justify-content:center;position:fixed;z-index:1200}.victory-rewards-modal{background:linear-gradient(135deg,#1f1f1f,#2a2a2a);border-radius:18px;box-shadow:0 18px 48px #00000080;display:flex;flex-direction:column;gap:18px;max-height:80vh;padding:24px;width:min(440px,92vw)}.victory-rewards-header{align-items:center;display:flex;justify-content:space-between}.victory-rewards-header h2{color:#fff5c0;font-size:24px;margin:0}.victory-rewards-close{background:#ffffff14;border:none;border-radius:50%;color:#fff;cursor:pointer;font-size:20px;height:36px;transition:transform .2s ease,background .2s ease;width:36px}.victory-rewards-close:hover{background:#ffffff26;transform:scale(1.05)}.victory-rewards-intro{color:#fffc;font-size:15px;margin:0}.victory-rewards-status{color:#ffffffd9;font-size:14px;margin:0}.victory-rebirth-banner{align-items:center;display:flex;flex-wrap:wrap;gap:12px;justify-content:space-between}.victory-rebirth-info{color:#ffffffbf;font-size:13px}.victory-rebirth-button{background:linear-gradient(135deg,#42a5f5,#1e88e5);border:none;border-radius:999px;color:#e8f4ff;cursor:pointer;font-weight:600;padding:8px 16px;transition:transform .2s ease,opacity .2s ease}.victory-rebirth-button:hover{transform:translateY(-1px)}.victory-rewards-actions{display:flex;flex-wrap:wrap;gap:10px}.victory-rewards-claim{border:none;border-radius:999px;cursor:pointer;font-weight:600;padding:8px 18px;transition:transform .2s ease,opacity .2s ease}.victory-rewards-claim.primary{background:linear-gradient(135deg,#ffd54f,#ffb300);color:#2a1b00}.victory-rewards-claim.secondary{background:linear-gradient(135deg,#66bb6a,#2e7d32);color:#e8ffe8}.victory-rewards-claim:disabled{cursor:not-allowed;opacity:.5}.victory-rewards-claim:not(:disabled):hover{transform:translateY(-1px)}.victory-rewards-list{display:flex;flex-direction:column;gap:10px;list-style:none;margin:0;max-height:55vh;overflow-y:auto;padding:0}.victory-reward-item{grid-gap:12px;align-items:center;background:#00000059;border:1px solid #0000;border-radius:12px;color:#fff;display:grid;gap:12px;grid-template-columns:64px 36px 1fr auto;padding:10px 14px}.victory-reward-item .reward-step{color:#ffd54f;font-weight:700;text-align:right;width:48px}.victory-reward-item .reward-icon{font-size:22px;text-align:center}.victory-reward-item .reward-label{font-size:16px}.victory-reward-item.next{border-color:#ffca28bf;box-shadow:0 6px 18px #ffca2840}.victory-reward-item.pending{border-color:#66bb6abf;box-shadow:0 6px 18px #66bb6a40}.victory-reward-item .reward-badges{display:flex;gap:6px;margin-left:12px}.victory-reward-item .reward-badge{border-radius:999px;font-size:12px;font-weight:700;padding:4px 10px}.victory-reward-item .reward-badge.next{background:linear-gradient(135deg,#ffca28,#ff9800);color:#2a1b00}.victory-reward-item .reward-badge.ready{background:linear-gradient(135deg,#66bb6a,#2e7d32);color:#e8ffe8}.custom-mode-modal-backdrop{align-items:center;background:#000000a6;display:flex;inset:0;justify-content:center;position:fixed;z-index:1000}.custom-mode-modal{background:#151529;border-radius:12px;box-shadow:0 20px 40px #00000073;color:#f5f5f5;display:flex;flex-direction:column;gap:24px;max-height:90vh;max-width:95vw;overflow:hidden;padding:24px;width:960px}.custom-mode-header{align-items:center;display:flex;justify-content:space-between}.custom-mode-header h2{font-size:1.5rem;margin:0}.custom-mode-body{display:flex;gap:24px;min-height:460px}.close-button{background:#0000;font-size:1.25rem}.custom-mode-slots{background:#0f0f1ecc;border-radius:10px;display:flex;flex-direction:column;gap:12px;overflow-y:auto;padding:16px;width:260px}.custom-mode-slots h3{font-size:1.125rem;margin:0 0 8px}.custom-mode-slots ul{display:flex;flex-direction:column;gap:12px;list-style:none;margin:0;padding:0}.custom-mode-slot{background:#282846a6;border-radius:8px;display:flex;flex-direction:column;gap:8px;padding:12px}.custom-mode-slot.active{outline:2px solid #ffb347}.slot-select{background:#0000;border:none;color:inherit;cursor:pointer;display:flex;flex-direction:column;gap:4px;text-align:left}.slot-select .slot-title{font-weight:600}.slot-select .slot-subtext{color:#9aa0d0;font-size:.85rem}.slot-actions{display:flex;gap:8px}.slot-button{border:none;border-radius:6px;cursor:pointer;flex:1 1;font-weight:600;padding:6px 0}.slot-button.play{background:#3aa9ff;color:#0b1630}.slot-button.delete:disabled,.slot-button.play:disabled{cursor:not-allowed;opacity:.4}.slot-button.delete{background:#ff6464;color:#1c0b0b}.custom-mode-editor{display:flex;flex:1 1;flex-direction:column;gap:16px;overflow:hidden}.mode-name-field{display:flex;flex-direction:column;gap:6px}.mode-name-field input{background:#141428cc;border:1px solid #ffffff26;border-radius:6px;color:inherit;font-size:1rem;padding:8px 10px}.editor-columns{gap:16px}.deck-editor,.editor-columns{display:flex;flex:1 1;overflow:hidden}.deck-editor{background:#14142899;border-radius:10px;flex-direction:column;gap:12px;padding:16px}.deck-editor h3{font-size:1.1rem;margin:0}.deck-editor-section{display:flex;flex-direction:column;gap:12px}.deck-editor-field{display:flex;flex-direction:column;gap:6px}.deck-editor-field input,.deck-editor-field select{background:#0a0a19d9;border:1px solid #ffffff26;border-radius:6px;color:inherit;padding:8px 10px}.custom-card-grid{grid-gap:8px;display:grid;gap:8px;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));max-height:180px;overflow-y:auto;padding-right:4px}.custom-card-option{background:#1e1e3c99;border-radius:8px;cursor:pointer;display:flex;flex-direction:column;gap:4px;padding:8px}.custom-card-option input{align-self:flex-start}.custom-card-option.selected{outline:2px solid #ffb347}.custom-card-option.disabled{opacity:.4}.card-name{font-weight:600}.card-meta{color:#9aa0d0;font-size:.8rem}.custom-card-stars{display:flex;flex-direction:column;gap:8px}.star-override{align-items:center;background:#23233c99;border-radius:8px;display:flex;justify-content:space-between;padding:6px 8px}.star-override input{background:#0a0a19d9;border:1px solid #ffffff26;border-radius:6px;color:inherit;padding:4px 6px;width:60px}.deck-editor-subtitle{font-size:.95rem;font-weight:600}.deck-editor-note{color:#9aa0d0;font-size:.85rem}.deck-preview{display:flex;flex-direction:column;gap:6px;list-style:none;margin:0;padding:0}.deck-preview li{background:#1e1e3c99;border-radius:8px;display:flex;justify-content:space-between;padding:6px 10px}.preview-meta{color:#ffb347;font-weight:600}.editor-actions{align-items:center;display:flex;gap:12px}.delete-button,.play-button,.save-button{border:none;border-radius:6px;cursor:pointer;font-weight:700;padding:10px 16px}.save-button{background:#4cd964;color:#041407}.delete-button{background:#ff6464;color:#1c0b0b}.delete-button:disabled,.play-button:disabled{cursor:not-allowed;opacity:.4}.play-button{background:#3aa9ff;color:#0b1630}.save-status{color:#ffb347;font-size:.9rem}@media (max-width:1024px){.custom-mode-modal{padding:20px;width:90vw}.custom-mode-body{min-height:380px}.custom-card-grid{max-height:220px}}@media (max-width:768px){.custom-mode-modal-backdrop{align-items:flex-start;overflow-y:auto;padding:24px 12px}.custom-mode-modal{border-radius:10px;height:auto;max-height:none;max-width:640px;width:100%}.custom-mode-body{flex-direction:column;gap:16px;min-height:0;min-height:auto}.custom-mode-slots{max-height:240px;width:100%}.custom-mode-editor{flex:initial}.editor-columns{flex-direction:column}.editor-actions{flex-wrap:wrap;justify-content:center}.editor-actions button{flex:1 1 140px}.save-status{flex-basis:100%;text-align:center}}@media (max-width:480px){.custom-mode-modal-backdrop{padding:16px 10px}.custom-mode-modal{border-radius:8px;padding:16px}.custom-mode-header h2{font-size:1.25rem}.custom-mode-slots{max-height:200px;padding:12px}.custom-mode-slot{padding:10px}.deck-editor{padding:12px}.custom-card-grid{grid-template-columns:repeat(auto-fill,minmax(140px,1fr))}.delete-button,.play-button,.save-button{padding:9px 12px}}.custom-unit-modal-backdrop{align-items:center;background:#000000b3;display:flex;inset:0;justify-content:center;padding:24px;position:fixed;z-index:1100}.custom-unit-modal{background:linear-gradient(135deg,#0e0e1c,#1a1a2d);border-radius:14px;box-shadow:0 18px 48px #00000073;color:#f5f5f5;display:flex;flex-direction:column;gap:20px;padding:24px;width:min(720px,100%)}.custom-unit-header{align-items:center;display:flex;gap:16px;justify-content:space-between}.custom-unit-header h2{font-size:1.6rem;margin:0}.close-button{background:none;border:none;color:#f5f5f5;cursor:pointer;font-size:1.5rem;transition:color .2s ease}.close-button:hover{color:#ffb347}.custom-unit-section{display:flex;flex-direction:column;gap:12px}.custom-unit-section.two-column{grid-gap:16px;display:grid;gap:16px;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.field{display:flex;flex-direction:column;gap:6px}.field span{font-size:.95rem;font-weight:600}.field input{background:#ffffff14;border:1px solid #fff3;border-radius:8px;color:inherit;font-size:1rem;padding:10px}.attack-mode-grid{grid-gap:12px;display:grid;gap:12px;grid-template-columns:repeat(auto-fit,minmax(200px,1fr))}.attack-mode-card{background:#ffffff14;border:1px solid #0000;border-radius:10px;color:inherit;cursor:pointer;padding:12px;text-align:left;transition:transform .2s ease,border .2s ease,background .2s ease}.attack-mode-card:hover{transform:translateY(-2px)}.attack-mode-card.active{background:#00bcd426;border-color:#00bcd4}.attack-mode-label{display:block;font-weight:600;margin-bottom:6px}.attack-mode-description{color:#ffffffbf;font-size:.9rem}.stat-control{background:#ffffff0a;border:1px solid #ffffff14;border-radius:12px;display:flex;flex-direction:column;gap:10px;padding:12px}.stat-control.disabled{opacity:.6}.stat-header{align-items:center;display:flex;font-weight:600;justify-content:space-between}.stat-level{color:#00bcd4;font-size:.9rem}.stat-buttons{display:flex;gap:10px}.stat-buttons button{background:linear-gradient(135deg,#4caf50,#388e3c);border:none;border-radius:8px;color:#fff;cursor:pointer;flex:1 1;font-weight:600;padding:10px;transition:transform .2s ease,opacity .2s ease}.stat-buttons button:disabled{cursor:not-allowed;opacity:.4;transform:none}.stat-buttons button:hover:not(:disabled){transform:translateY(-1px)}.stat-note{color:#ffffffb3;font-size:.85rem}.preview-card{background:#ffffff0d;border-radius:12px;display:flex;flex-direction:column;gap:10px;padding:16px}.preview-header{align-items:center;display:flex;font-weight:600;justify-content:space-between}.preview-stats{grid-gap:8px;display:grid;font-size:.95rem;gap:8px;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.preview-note{color:#00e1ffcc;font-size:.9rem}.custom-unit-footer{align-items:center;display:flex;gap:16px;justify-content:space-between}.primary-button,.reset-button,.secondary-button{border:none;border-radius:10px;cursor:pointer;font-weight:600;padding:10px 18px;transition:transform .2s ease,opacity .2s ease}.reset-button{background:#ffffff26;color:#fff}.secondary-button{background:#ffffff1a;color:#fff}.primary-button{background:linear-gradient(135deg,#00bcd4,#008fa1);color:#fff}.primary-button:hover,.reset-button:hover,.secondary-button:hover{transform:translateY(-1px)}.footer-actions{display:flex;gap:10px}@media (max-width:600px){.custom-unit-modal{padding:18px}.custom-unit-footer{align-items:stretch;flex-direction:column}.footer-actions{flex-direction:column;width:100%}.primary-button,.reset-button,.secondary-button{width:100%}}.app{align-items:center;background-color:#1a1a1a;box-sizing:border-box;justify-content:center;min-height:100vh;padding:20px}.app,.game-container{display:flex;width:100%}.game-container{background-color:#2a2a2a;border-radius:8px;box-shadow:0 0 20px #00000080;flex:1 1;flex-direction:column;height:100%;max-height:90vh;max-width:800px;overflow:hidden}@media (max-width:1024px){.game-container{max-height:none;max-width:90%}}@media (max-width:768px){.app{align-items:stretch;padding:12px}.game-container{border-radius:6px;box-shadow:0 0 12px #0006;min-height:calc(100vh - 24px)}}@media (max-width:480px){.app{padding:8px}.game-container{border-radius:0;box-shadow:none}}
/*# sourceMappingURL=main.1792375d.css.map*/