@font-face{font-family:Chikn_Font_Fredoka;src:url(/assets/ui/Chikn_Font_Fredoka.ttf) format("truetype");font-weight:400;font-style:normal}html,body{width:100%;height:100%;margin:0;padding:0;overflow:hidden}body{background-color:#1a1a1a;font-family:Chikn_Font_Fredoka,Tahoma,Geneva,Verdana,sans-serif;color:#eee;user-select:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;-webkit-tap-highlight-color:transparent;overscroll-behavior:none;line-height:1.4;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}b,strong,h1,h2,h4,h5,.menu-button{text-shadow:0 0 1px rgba(0,0,0,.3)}#game-container{position:relative;width:100%;height:100%;overflow:hidden}canvas{display:block;width:100%;height:100%;position:absolute;top:0;left:0}button{font-family:inherit;cursor:pointer;border:none;padding:8px 16px;border-radius:4px;background-color:#444;color:#eee;transition:background-color .2s ease,transform .1s ease}button:hover:not(:disabled){background-color:#555}button:active:not(:disabled){transform:translateY(1px)}button:disabled{background-color:#333;color:#777;cursor:not-allowed;opacity:.7;transform:none}.hidden{display:none!important}.rarity-common,.tier-smol{color:#bdbdbd}.rarity-nice,.tier-normie{color:#81c784}.rarity-rare,.tier-bigr{color:#64b5f6}.rarity-elite,.tier-chonk{color:#ba68c8}.rarity-legendary,.tier-giga{color:#ffb74d;font-weight:700}.error-message{color:#ff6b6b;font-size:.9em;padding:8px;border-radius:4px;background-color:#c800001a;border:1px solid rgba(200,0,0,.3);margin-top:10px}.loading-gate{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000000bf;display:flex;justify-content:center;align-items:center;z-index:99999;color:#fff;font-size:2em;font-family:var(--font-family-display);opacity:0;transition:opacity .3s ease-in-out;pointer-events:none}.loading-gate.visible{opacity:1;pointer-events:all}:root{--z-game-canvas: 1;--z-hud-base: 80;--z-hud-elements: 90;--z-wave-theme-overlay: 100;--z-fullscreen-menu-base: 150;--z-modal-base: 200;--z-modal-sub-level: 210;--z-modal-detail-level: 225;--z-coqy-overlay: 8000;--z-tooltip: 300;--z-legal-panels: 9200;--z-splash-screen: 9000;--z-loading-bar: 9001}canvas{z-index:var(--z-game-canvas)}#inGameControlsContainer{z-index:var(--z-hud-base)}.hud-panel{z-index:var(--z-hud-elements)}#waveThemeOverlay{z-index:var(--z-wave-theme-overlay)}#mainMenuOverlay,#singleplayerSetupOverlay,#collectionsModalOverlay,#leaderboardModalOverlay{z-index:var(--z-fullscreen-menu-base)}#inGameMenuOverlay,#optionsMenuOverlay,#infoMenuOverlay,#legendLayersOverlay,#gameInfoModalOverlay,#riftForgeOverlay,#towerInteractionPanel,#playerProfileModal,#walletProfileModal,#pendingMintsOverlay,#tileDetailModal,#shadowUnearthModal,#kodex-modal,#codex-modal,.auth-modal,.highscore-modal{z-index:var(--z-modal-base)}#towerOverlayPanel{z-index:var(--z-modal-sub-level)}#collectionItemDetailModal{z-index:var(--z-modal-detail-level)}#towerTooltip{z-index:var(--z-tooltip)}.legal-panel{z-index:var(--z-legal-panels)}#splash-screen{z-index:var(--z-splash-screen)}#loading-progress-container{z-index:var(--z-loading-bar)}@font-face{font-family:Chikn_Font_Fredoka;src:url(/assets/ui/Chikn_Font_Fredoka.ttf) format("truetype");font-weight:400;font-style:normal}.game-overlay{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#000000bf;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px);display:none;flex-direction:column;align-items:center;justify-content:center;box-sizing:border-box;z-index:200;font-family:Chikn_Font_Fredoka,Tahoma,Geneva,Verdana,sans-serif;color:#e0e0e0;overscroll-behavior:contain}.game-overlay.visible,.modal-menu.visible,#kodex-modal.visible{display:flex!important}.highscore-modal{background-image:linear-gradient(#000000a6,#000000a6),url(/assets/ui/main-menu-background.png);background-size:cover;background-position:center}#leaderboardModalOverlay{background-image:linear-gradient(#000000a6,#000000a6),url(/assets/ui/main-menu-background.png);background-size:cover;background-position:center}#inGameMenuOverlay,#legendLayersOverlay,#infoMenuOverlay{background-color:#00000040!important;-webkit-backdrop-filter:none;backdrop-filter:none}#inGameMenuOverlay:not(.visible),#legendLayersOverlay:not(.visible),#infoMenuOverlay:not(.visible){display:none!important}.fullscreen-menu{padding-top:env(safe-area-inset-top,10px);padding-bottom:env(safe-area-inset-bottom,10px);padding-left:env(safe-area-inset-left,10px);padding-right:env(safe-area-inset-right,10px);justify-content:flex-start;align-items:center;overflow-y:auto;box-sizing:border-box}#mainMenuOverlay{justify-content:flex-start;align-items:center;padding-top:env(safe-area-inset-top,2vh);padding-bottom:env(safe-area-inset-bottom,3vh);background-image:url(/assets/ui/main-menu-background.png);background-size:cover;background-position:center;background-repeat:no-repeat}#mainMenuOverlay .main-menu-top-bar-simple{display:flex;flex-wrap:nowrap;justify-content:space-between;align-items:center;width:100%;padding:clamp(5px,1vh,8px) 0;box-sizing:border-box;flex-shrink:0;margin-bottom:clamp(15px,2vh,25px)}#mainMenuOverlay .main-menu-content-container{display:flex;flex-direction:column;align-items:center;width:100%;max-width:600px;flex-grow:1;min-height:0}#mainMenuOverlay .main-menu-top-bar-simple .menu-logo-image{max-width:clamp(160px,20vw,200px);max-height:clamp(60px,4.5vh,95px);margin-right:auto}#mainMenuOverlay .main-menu-top-bar-simple .connect-wallet-button{padding:clamp(8px,1.2vh,10px) clamp(15px,2.5vw,20px);font-size:clamp(.8em,2vw,.9em);min-width:auto;max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-shrink:0}#mainMenuOverlay .main-menu-actions-column{display:flex;flex-direction:column;align-items:stretch;gap:clamp(12px,2vh,15px);width:100%;max-width:320px}@media (max-width: 400px){#mainMenuOverlay .main-menu-top-bar-simple{flex-direction:column;align-items:center;gap:10px}#mainMenuOverlay .main-menu-top-bar-simple .menu-logo-image{margin-right:0;margin-bottom:8px}#mainMenuOverlay .main-menu-top-bar-simple .connect-wallet-button{align-self:center;width:90%;max-width:280px}}#mainMenuOverlay .main-menu-actions-column .menu-button{width:100%;padding:clamp(12px,2.2vh,18px);font-size:clamp(1em,2.8vw,1.2em)}.game-overlay.modal-menu:not(#kodex-modal){position:fixed;top:0;right:0;bottom:0;left:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:clamp(10px,2vh,20px);box-sizing:border-box}.game-overlay.modal-menu:not(#kodex-modal)>:is(.menu-header,.menu-content){width:calc(100% - 40px);max-width:800px;background:linear-gradient(180deg,#2a231ef2,#140f0afa);border:2px solid #5c4b3e;box-shadow:0 12px 40px #0000004d,inset 0 0 30px #0000004d;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);box-sizing:border-box}.game-overlay.modal-menu:not(#kodex-modal)>.menu-header{border-radius:10px 10px 0 0;border-bottom:2px solid #4a3b32;flex-shrink:0}.game-overlay.modal-menu:not(#kodex-modal)>.menu-content{border-radius:0 0 10px 10px;border-top:none;max-height:calc(85dvh - 60px);overflow-y:auto;flex-grow:0;flex-shrink:1}#collectionsModalOverlay.game-overlay.modal-menu:not(#kodex-modal)>:is(.menu-header,.menu-content),#leaderboardModalOverlay.game-overlay.modal-menu:not(#kodex-modal)>:is(.menu-header,.menu-content),#playerProfileModal.game-overlay.modal-menu:not(#kodex-modal)>:is(.menu-header,.menu-content),#riftForgeOverlay.game-overlay.modal-menu:not(#kodex-modal)>:is(.menu-header,.menu-content),#singleplayerSetupOverlay.game-overlay.modal-menu:not(#kodex-modal)>:is(.menu-header,.menu-content){max-width:1000px}#collectionsModalOverlay.game-overlay.modal-menu:not(#kodex-modal)>.menu-content,#leaderboardModalOverlay.game-overlay.modal-menu:not(#kodex-modal)>.menu-content,#playerProfileModal.game-overlay.modal-menu:not(#kodex-modal)>.menu-content,#riftForgeOverlay.game-overlay.modal-menu:not(#kodex-modal)>.menu-content,#singleplayerSetupOverlay.game-overlay.modal-menu:not(#kodex-modal)>.menu-content{max-height:calc(90dvh - 60px)}.modal-menu.visible{display:flex!important}.menu-header{display:flex;justify-content:space-between;align-items:center;width:100%;padding:15px clamp(15px,2.5vw,20px);box-sizing:border-box;border-bottom:2px solid #4a3b32;flex-shrink:0;position:relative}.menu-header h2,.menu-header h3,.menu-header h4{margin:0;font-size:clamp(1.3em,3.5vw,1.7em);color:#fc0}.close-menu-btn{background:none;border:none;color:#bdbdbd;font-size:1.8rem;cursor:pointer;line-height:1;padding:2px 6px;border-radius:8px;min-width:auto}.close-menu-btn:hover{color:#fff;background:#ffffff0f}.modal-menu .menu-content{width:100%;overflow-y:auto;flex-grow:1;min-height:0;display:flex;flex-direction:column;gap:clamp(10px,1.5vh,15px);padding:clamp(15px,2.5vw,20px);box-sizing:border-box}#collectionsModalOverlay .collections-modal-content{padding:15px;flex-grow:1;display:flex;flex-direction:column;width:100%;box-sizing:border-box}#collectionsModalOverlay .collection-dynamic-title{color:#fd4;font-size:clamp(1.2em,3vw,1.5em);text-align:center;margin-top:0;margin-bottom:clamp(10px,1.5vh,15px);padding-bottom:clamp(6px,1vh,10px);flex-shrink:0}#collectionsModalOverlay .collection-tabs{display:flex;gap:clamp(6px,1vw,10px);flex-wrap:wrap;justify-content:center;margin-bottom:clamp(15px,2vh,20px);flex-shrink:0;width:100%}.tabs .tab-button,#collectionsModalOverlay .collection-tabs .tab-button,#leaderboardModalOverlay .leaderboard-tabs .tab-button,#riftForgeOverlay .tabs .tab-button,.kodex__tabs button,.kodex__subtabs button{padding:clamp(6px,1vh,8px) clamp(14px,2.2vw,18px);font-size:clamp(.75em,1.7vw,.9em);min-width:120px;background-image:url(/assets/ui/button_primary_idle.png);background-color:transparent;background-size:100% 100%;background-repeat:no-repeat;background-position:center;border:none;border-bottom:3px solid transparent;text-align:center;box-shadow:0 2px 4px #00000040;transition:background-image .15s,transform .1s,border-bottom-color .2s}.tabs .tab-button:hover:not(.active):not(:disabled),#collectionsModalOverlay .collection-tabs .tab-button:hover:not(.active):not(:disabled),#leaderboardModalOverlay .leaderboard-tabs .tab-button:hover:not(.active):not(:disabled),#riftForgeOverlay .tabs .tab-button:hover:not(.active):not(:disabled),.kodex__tabs button:hover:not(.is-active):not(:disabled),.kodex__subtabs button:hover:not(.is-active):not(:disabled){background-image:url(/assets/ui/button_primary_hover.png);transform:translateY(-1px)}.tabs .tab-button.active,#collectionsModalOverlay .collection-tabs .tab-button.active,#leaderboardModalOverlay .leaderboard-tabs .tab-button.active,#riftForgeOverlay .tabs .tab-button.active,.kodex__tabs button.is-active,.kodex__subtabs button.is-active{background-image:url(/assets/ui/button_primary_hover.png);border-bottom-color:#fc0;color:#fff;font-weight:400}.tabs .tab-button:disabled,#collectionsModalOverlay .collection-tabs .tab-button:disabled,#leaderboardModalOverlay .leaderboard-tabs .tab-button:disabled,#riftForgeOverlay .tabs .tab-button:disabled,.kodex__tabs button:disabled,.kodex__subtabs button:disabled{background-image:url(/assets/ui/button_primary_disabled.png);opacity:.6;cursor:default;border-bottom-color:transparent}#collectionsModalOverlay .collection-display{background-color:#0003;padding:15px;border-radius:6px;width:100%;box-sizing:border-box;display:flex;flex-wrap:wrap;gap:clamp(12px,2vw,18px);justify-content:flex-start;align-content:flex-start;flex-grow:1;min-height:clamp(300px,45vh,400px);overflow-y:auto;border:1px solid #5c4b3e}.menu-button{margin:clamp(1px,1vh,1px);padding:clamp(10px,1.8vh,12px) clamp(20px,3vw,25px);font-size:clamp(.9em,2.2vw,1.1em);background-color:transparent;background-image:url(/assets/ui/button_primary_idle.png);background-size:100% 100%;background-repeat:no-repeat;background-position:center;color:#fff;border:none;border-radius:6px;cursor:pointer;min-width:180px;text-align:center;box-shadow:0 2px 5px #0003;transition:background-image .2s,transform .1s;box-sizing:border-box;text-shadow:1px 1px 2px rgba(0,0,0,.5)}.menu-button:hover:not(:disabled){background-image:url(/assets/ui/button_primary_hover.png);transform:translateY(-1px)}.menu-button.secondary-action{background-image:url(/assets/ui/button_primary_idle.png)}.menu-button.secondary-action:hover:not(:disabled){background-image:url(/assets/ui/button_primary_hover.png)}.menu-button.placeholder,.menu-button:disabled{background-image:url(/assets/ui/button_primary_disabled.png);color:#999;cursor:default;box-shadow:none;transform:none;opacity:.7}.menu-button.placeholder:hover{background-image:url(/assets/ui/button_primary_disabled.png)}.menu-button.full-width,.menu-button.simple-style{width:100%;max-width:none;min-width:auto;background-image:none;background-color:#4a3b32cc;border:2px solid #5c4b3e;border-radius:8px;padding:clamp(12px,2vh,16px) clamp(20px,3vw,30px);transition:background-color .2s,border-color .2s,transform .1s}.menu-button.full-width:hover:not(:disabled),.menu-button.simple-style:hover:not(:disabled){background-image:none;background-color:#5c4b3ee6;border-color:#6d5c4d;transform:translateY(-1px)}.menu-button.full-width:disabled,.menu-button.simple-style:disabled{background-image:none;background-color:#32282399;border-color:#4a3b32;opacity:.6}.warning-action{background-color:#ff9800!important}.warning-action:hover:not(:disabled){background-color:#f57c00!important}.neutral-action{background-image:none!important;background-color:#463a32e6!important;border:2px solid #5c4b3e!important;color:#f2e2c5!important}.neutral-action:hover:not(:disabled){background-color:#58483ef2!important;border-color:#6d5c4d!important;transform:translateY(-1px)}.danger-action{background-color:#f44336!important}.danger-action:hover:not(:disabled){background-color:#d32f2f!important}.menu-section{padding:clamp(12px,2.2vw,18px);background-color:#191c2059;border:1px solid rgba(255,255,255,.08);border-radius:6px;width:100%;box-sizing:border-box}.menu-section h4{margin-top:0;margin-bottom:clamp(12px,2vh,18px);color:#fc0;border-bottom:1px solid rgba(255,204,0,.2);padding-bottom:clamp(6px,1vh,10px);font-size:clamp(1.1em,3vw,1.4em);text-align:left}#singleplayerSetupOverlay .modal-style-content{align-items:center;max-width:950px;width:calc(100% - 20px)}#singleplayerSetupOverlay .setup-sections-container{display:flex;flex-direction:column;gap:clamp(15px,3vh,25px);width:100%}@media (min-width: 950px) and (orientation: landscape){#singleplayerSetupOverlay .setup-sections-container{flex-direction:row;align-items:flex-start}#singleplayerSetupOverlay .setup-sections-container .menu-section{flex:1;min-width:0}}#singleplayerSetupOverlay .radio-group div:has(>#fsId){display:flex;flex-wrap:wrap;align-items:center;row-gap:5px}#singleplayerSetupOverlay .radio-group div:has(>#fsId) label{flex-shrink:0;white-space:nowrap;margin-right:5px}#singleplayerSetupOverlay .radio-group div:has(>#fsId) #farmlandIdInputSP{flex-basis:100%;margin-left:25px;width:auto;max-width:100px;margin-top:5px}#chronicler-container{position:fixed;bottom:5%;left:50%;transform:translate(-50%) translateY(20px);z-index:1000;background:#0009;border-top:1px solid rgba(255,223,150,.4);border-bottom:1px solid rgba(255,223,150,.4);padding:8px 25px;border-radius:4px;max-width:60%;text-align:center;opacity:0;transition:opacity .5s ease-in-out,transform .5s ease-in-out;pointer-events:none}#chronicler-container.visible{opacity:1;transform:translate(-50%) translateY(0)}#chronicler-container p{margin:0;padding:0;font-family:Chikn_Font_Fredoka,sans-serif;font-size:1.1rem;color:#fda;text-shadow:1px 1px 3px rgba(0,0,0,.8);font-style:italic}#secureAccountPrompt{display:none;margin-top:20px;padding:8px 12px;border:1px solid #ffcc00;background-color:#322814b3;border-radius:8px;text-align:center;max-width:350px;margin-left:auto;margin-right:auto}#secureAccountPrompt.visible{display:block}#secureAccountPrompt p{margin:0;font-size:.85em;color:#eee}#secureAccountPrompt button{background:none;border:none;color:#fc0;text-decoration:underline;cursor:pointer;padding:0;font-size:1em;font-family:inherit}#secureAccountPrompt button:hover{color:#fff}#topLeftPanel .menu-button{margin-right:8px}#codex-modal{z-index:2000;position:fixed;top:0;left:0;width:100%;height:100%;background-color:#00000040;display:flex;align-items:center;justify-content:center;color:#eee;font-family:Chikn_Font_Fredoka,sans-serif;padding:clamp(8px,2vh,18px);box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain}#codex-modal[hidden]{display:none!important}.codex-layout{width:clamp(320px,92vw,1120px);height:min(94dvh,1040px);max-height:min(96dvh,1060px);background-color:#0f0f1459;border:1px solid rgba(255,204,0,.2);border-radius:10px;display:flex;flex-direction:row;overflow:hidden;box-shadow:0 5px 30px #000c;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);flex:1 1 auto}#codex-modal .codex-close{position:absolute;top:15px;right:25px;background:none;border:none;color:#fff;font-size:3rem;cursor:pointer;opacity:.7;transition:opacity .2s;z-index:2001}#codex-modal .codex-close:hover{opacity:1}.codex-list{width:320px;flex-shrink:0;border-right:2px solid #333;overflow-y:auto;background-color:#1a1a1a}.codex-category summary{display:flex;justify-content:space-between;align-items:center;padding:15px;font-weight:700;font-size:1.1em;background-color:#282828;border-bottom:1px solid #333;cursor:pointer;list-style:none;position:relative}.codex-category summary::-webkit-details-marker{display:none}.codex-category summary:before{content:"▶";transition:transform .2s;margin-right:10px}.codex-category[open]>summary:before{transform:rotate(90deg)}.codex-progress-chip{font-size:.8em;font-weight:400;background-color:#444;color:#ccc;padding:2px 8px;border-radius:10px}.codex-item{padding:10px 15px 10px 25px;border-bottom:1px solid #333;cursor:pointer;display:flex;align-items:center;transition:background-color .2s}.codex-item:hover{background-color:#2a2a2a}.codex-item.is-active{background-color:#3a4a5a}.codex-item.is-locked{opacity:.5;font-style:italic}.codex-thumb{width:35px;height:35px;margin-right:10px;border-radius:4px;object-fit:contain;border:1px solid #444;background-color:#111}.codex-detail{flex-grow:1;padding:30px;overflow-y:auto;display:flex;flex-direction:column}.codex-detail img[data-codex-image]{max-width:180px;max-height:180px;margin:0 auto 20px;display:block;border-radius:8px;border:2px solid #444;background-color:#000;object-fit:contain}.codex-detail h2{margin-top:0;color:#fff;border-bottom:1px solid #444;padding-bottom:10px;text-align:center}.codex-detail p[data-codex-desc]{line-height:1.6}.codex-stats-panel{margin-top:15px;border-top:1px solid #444;padding-top:15px;font-size:.9em}.codex-stats-panel h4{margin-top:0;margin-bottom:10px;color:#fc0;border-bottom:1px solid #444;padding-bottom:8px}.codex-stats-table{width:100%;border-collapse:collapse}.codex-stats-table td{padding:6px 4px;border-bottom:1px solid #333}.codex-stats-table td:first-child{font-weight:700;color:#aaa}.codex-stats-table td:last-child{text-align:right}.codex-stats-panel ul{list-style:none;padding:0;margin:0}.codex-stats-panel li{padding:4px 0}.codex-tip{margin-top:auto;padding:15px;background-color:#f0ad4e1a;border-left:4px solid #f0ad4e;font-style:italic;color:#ddd;flex-shrink:0}[data-codex-empty]{flex-grow:1;display:flex;align-items:center;justify-content:center;font-size:1.5em;color:#666}@media (max-width: 768px) and (orientation: portrait){#codex-modal{padding:env(safe-area-inset-top,12px) env(safe-area-inset-right,12px) env(safe-area-inset-bottom,12px) env(safe-area-inset-left,12px);align-items:center;justify-content:center}.codex-layout{flex-direction:column;width:100%;max-width:100%;height:auto;max-height:calc(100dvh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));border-radius:12px;margin:0;overflow-y:auto}.codex-list{width:100%;max-height:35vh;min-height:180px;flex-shrink:0;border-right:none;border-bottom:2px solid #333}.codex-detail{flex:1;min-height:0;padding:15px;overflow-y:auto}.codex-detail h2{font-size:1.3em}.codex-detail img[data-codex-image]{max-width:120px;max-height:120px}#codex-modal .codex-close{font-size:2.5rem;top:10px;right:15px}}#coqy-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:10000;pointer-events:none}#coqy-overlay.coqy--visible{display:block!important}#coqy-overlay .coqy-sprite{position:fixed;left:16px;bottom:12px;width:160px;height:160px;pointer-events:auto}#coqy-overlay .coqy-sprite canvas{display:block}.coqy-bubble{position:absolute;bottom:170px;left:40px;max-width:300px;padding:15px 20px;background:#fc0;color:#000;border-radius:20px;font-family:Chikn_Font_Fredoka,sans-serif;box-shadow:0 5px 15px #0000004d;pointer-events:auto;cursor:pointer;opacity:0;transform:translateY(20px);transition:opacity .3s,transform .3s}.coqy-bubble:after{content:"";position:absolute;bottom:-10px;left:30px;border-width:10px 10px 0;border-style:solid;border-color:#FFCC00 transparent}#coqy-overlay.coqy--visible .coqy-bubble{display:none;opacity:1;transform:translateY(0)}@keyframes pulsing-glow{0%{box-shadow:0 0 8px 3px #ffcc00b3,0 0 4px 2px #fc09 inset}50%{box-shadow:0 0 22px 10px #ffdf70,0 0 12px 6px #ffdf70e6 inset}to{box-shadow:0 0 8px 3px #ffcc00b3,0 0 4px 2px #fc09 inset}}.tutorial-highlight{animation:pulsing-glow 1.5s infinite ease-in-out;border-radius:8px;position:relative;z-index:10001}#waveThemeTextEl{font-size:clamp(3rem,8vw,5rem);font-weight:700;color:#fd4;text-shadow:2px 2px 8px rgba(0,0,0,.7);white-space:nowrap}@media (max-width: 768px){#waveThemeTextEl{font-size:clamp(1.5rem,10vw,2.2rem)}#waveThemeOverlay{padding-left:10px;padding-right:10px}}#video-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:20000;background-color:#000;display:flex;justify-content:center;align-items:center}#video-overlay.initially-hidden{display:none!important;visibility:hidden;pointer-events:none}#youtube-player-container{position:absolute;top:0;left:0;width:100%;height:100%}#youtube-player-container iframe{width:100%;height:100%}#video-control-overlay{position:absolute;top:0;right:0;bottom:0;left:0;cursor:pointer}#splash-options{margin-top:20px;display:flex;align-items:center;justify-content:center}#splash-options label{color:#fff;font-size:1rem;cursor:pointer;margin-left:8px;transition:color .2s;text-shadow:2px 2px 4px #000000}#splash-options label:hover{color:#252525}#playIntroCheckbox{accent-color:#352d10}@keyframes pulse-glow{0%,to{box-shadow:0 0 8px 2px #00bfffb3}50%{box-shadow:0 0 16px 6px #00bfff4d}}#summonBtnHTML.blinking{animation:pulse-glow 1.5s infinite ease-in-out}#kodex-modal{padding:clamp(16px,2.75vh,32px);display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:100%;height:100%}.kodex__backdrop{position:absolute;top:0;right:0;bottom:0;left:0;background:transparent;z-index:-1}.kodex__wrap{width:100%;max-width:1120px;height:min(94dvh,1040px);max-height:min(96dvh,1060px);display:flex;flex-direction:column;margin:0 auto;background:linear-gradient(180deg,#2a231efa,#140f0afc);border:3px solid #5c4b3e;border-radius:16px;box-shadow:0 12px 40px #00000080,inset 0 0 30px #0000004d;overflow:hidden;box-sizing:border-box;position:relative}.kodex__header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 20px;border-bottom:2px solid #4a3b32;flex-shrink:0;background:#0003}.kodex__header h1{font-size:clamp(1.5rem,2.5vw,2rem);color:gold;margin:0;text-shadow:2px 2px 0 #000}.kodex__close{background:none;border:none;color:#bdbdbd;font-size:2rem;cursor:pointer;line-height:1;padding:4px;transition:transform .1s,color .1s}.kodex__close:hover{color:#fff;transform:scale(1.1)}.kodex__tabs,.kodex__subtabs{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:10px 20px;border-bottom:1px solid #4a3b32;background:#0000001a;flex-shrink:0}.kodex__tabs [data-tab],.kodex__subtabs [data-sub]{padding:8px 16px;background-color:#4a3b32;border:1px solid #2a1f18;border-radius:20px;color:#ccc;cursor:pointer;font-size:.9rem;font-weight:700;transition:all .15s}.kodex__tabs [data-tab]:hover,.kodex__subtabs [data-sub]:hover{background-color:#5c4b3e;color:#fff}.kodex__tabs [data-tab].is-active,.kodex__subtabs [data-sub].is-active{background-color:#fc0;color:#2a1f18;border-color:#b38f00;box-shadow:0 0 8px #fc06}.kodex__subtabs{display:none}.kodex__subtabs.is-visible{display:flex}.kodex__progress{margin-left:auto;display:flex;gap:8px}.kodex__chip{background:#0006;color:gold;font-size:.8rem;padding:4px 8px;border-radius:8px;border:1px solid #5c4b3e}.kodex__main{display:flex;flex:1;min-height:0;overflow:hidden}.kodex__left{width:250px;background:#00000026;border-right:1px solid #4a3b32;padding:15px;display:flex;flex-direction:column;gap:15px;overflow-y:auto}.kodex__listwrap{width:300px;background:#0000001a;border-right:1px solid #4a3b32;display:flex;flex-direction:column}.kodex__list{list-style:none;margin:0;padding:10px;overflow-y:auto;flex:1}.kodex__detail{flex:1;padding:20px;overflow-y:auto;display:flex;flex-direction:column;align-items:center}.kodex__search input{width:100%;padding:8px;background:#2a1f18;border:1px solid #5c4b3e;color:#fff;border-radius:6px}.kodex__list li{display:flex;align-items:center;gap:10px;padding:8px;margin-bottom:4px;border-radius:6px;cursor:pointer;border:1px solid transparent;transition:background .1s}.kodex__list li:hover{background:#ffffff0d}.kodex__list li.is-active{background:#ffcc0026;border-color:#5c4b3e}.kodex__list li.is-locked{opacity:.5}.kodex__thumb{width:40px;height:40px;object-fit:contain;background:#0000004d;border-radius:4px;border:1px solid #444}.kodex__detail h2{color:#fc0;font-size:2em;margin:0 0 20px;text-shadow:2px 2px 0 #000}.kodex__media img{max-width:200px;max-height:200px;border:4px solid #4a3b32;background:#0006;border-radius:12px;box-shadow:0 5px 15px #00000080;margin-bottom:20px}.kodex__statsgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;width:100%;max-width:600px;margin-bottom:20px}.kodex__statsgrid .stat{background:#00000040;padding:10px;border-radius:6px;border:1px solid #444}.kodex__statsgrid .label{font-size:.8em;color:#aaa;display:block}.kodex__statsgrid .value{font-size:1.1em;color:#fff;font-weight:700}.kodex__lore{background:#0003;padding:15px;border-radius:8px;border-left:4px solid #ffcc00;line-height:1.6;color:#ccc;max-width:700px;text-align:left}.kodex__empty{padding:20px;text-align:center;color:#888}@media (max-width: 900px){.kodex__main{flex-direction:column}.kodex__left{width:100%;height:auto;max-height:150px;border-right:none;border-bottom:1px solid #4a3b32;flex-direction:row;flex-wrap:wrap}.kodex__listwrap{width:100%;height:200px;border-right:none;border-bottom:1px solid #4a3b32}.kodex__detail{width:100%}}@media (max-width: 600px){#kodex-modal{padding:clamp(10px,3.5vh,22px)}.kodex__wrap{width:100vw;height:min(96dvh,920px);max-height:min(98dvh,940px);border-radius:12px;border-width:2px;margin:0 auto}}@media (max-width: 600px) and (orientation: portrait){#kodex-modal{padding:0;align-items:flex-end}.kodex__wrap{height:100dvh;max-height:none;border-radius:0;border:none}.kodex__header h1{font-size:1.4rem}.kodex__tabs{padding:8px 12px;gap:6px}.kodex__tabs [data-tab]{padding:6px 12px;font-size:.8rem}.kodex__main{flex-direction:column;padding:0}.kodex__left{width:100%;height:auto;padding:10px;flex-grow:0;flex-shrink:0;border-bottom:2px solid #4a3b32;display:flex;flex-direction:row;align-items:center}.kodex__search{flex:1}.kodex__listwrap{width:100%;height:180px;flex-shrink:0;flex-grow:0;border-bottom:4px solid #4a3b32}.kodex__detail{flex:1;width:100%;overflow-y:auto;padding:15px;background:#00000026}.kodex__detail img{max-width:120px;max-height:120px}}#splash-screen{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#000;display:flex;justify-content:center;align-items:center;opacity:1;transition:opacity .6s ease-out;overflow:hidden}#splash-image{display:block;width:100%;height:100%;object-fit:contain;transform:scale(1);transition:transform 3s ease-out;will-change:transform}#splash-screen.hidden{opacity:0;pointer-events:none}#splash-image.zooming{transform:scale(1.1)}#loading-progress-container{position:fixed;bottom:10dvh;left:50%;transform:translate(-50%);width:80%;max-width:400px;background-color:#0009;border-radius:8px;padding:10px;box-shadow:0 2px 10px #00000080;flex-direction:column;align-items:center;display:none}#loading-progress-container.visible{display:flex}#loading-progress-bar-fill{width:0%;height:20px;background-color:#4caf50;border-radius:4px;transition:width .2s ease-out;margin-bottom:8px}#loading-progress-text{color:#fff;font-size:.9em;text-align:center;margin-bottom:4px}#loading-asset-name{color:#ccc;font-size:.75em;text-align:center;height:1.2em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}#splash-play-button{width:100%;padding:20px 40px;font-size:2em;font-family:Chikn_Font_Fredoka,Tahoma,Geneva,Verdana,sans-serif;color:#1a1a1a;background-color:#fc0;border:3px solid #EAA200;border-radius:12px;cursor:pointer;box-shadow:0 6px 20px #00000073;transition:background-color .2s ease,transform .15s ease-out;animation-name:pulse-animation-no-translate;animation-duration:1.8s;animation-timing-function:ease-in-out;animation-iteration-count:infinite;will-change:transform,box-shadow}@keyframes pulse-animation-no-translate{0%{transform:scale(1);box-shadow:0 6px 20px #00000073}50%{transform:scale(1.05);box-shadow:0 8px 25px #ffcc0080}to{transform:scale(1);box-shadow:0 6px 20px #00000073}}#splash-play-button:hover:not(:disabled){background-color:#ffe066;transform:scale(1.05);box-shadow:0 8px 25px #ffcc0080}#splash-play-button:active:not(:disabled){transform:scale(.98);background-color:#eaa200}@keyframes pulse-animation{0%{transform:translate(-50%) scale(1);box-shadow:0 6px 20px #00000073}50%{transform:translate(-50%) scale(1.08);box-shadow:0 10px 30px #fc09}to{transform:translate(-50%) scale(1);box-shadow:0 6px 20px #00000073}}#splash-info-container{position:fixed;bottom:1%;left:50%;transform:translate(-50%);display:flex;flex-direction:column;align-items:center;gap:8px;width:90%;z-index:1002}.age-gate-text{font-size:1.4em;color:#fff;text-shadow:1px 1px 2px rgba(0,0,0,.8);margin:0;text-align:center}.splash-info-button{font-size:1.1em;color:#fffc;background:none;border:none;text-decoration:underline;cursor:pointer;padding:2px}.splash-info-button:hover{color:#fff}#splash-play-button:disabled{background-color:#555;color:#999;cursor:not-allowed;animation-name:none;opacity:.7}.consent-checkbox-container{width:100%;display:flex;align-items:center;justify-content:center;gap:8px;background-color:#0006;padding:10px;border-radius:6px}.consent-checkbox-container label{font-size:1.1em;color:#ccc}.consent-checkbox-container label a{color:#87cefa;text-decoration:underline}#splash-controls-container{position:fixed;bottom:5dvh;left:50%;transform:translate(-50%);width:90%;max-width:350px;z-index:1002;display:flex;flex-direction:column;align-items:center;gap:20px}#splash-player-input-container{width:100%;max-width:320px;display:flex;flex-direction:column;align-items:center;gap:8px}#splash-player-input-container label{font-size:clamp(1.5em,2.5vw,1.4em);color:#fff;font-weight:400;text-shadow:2px 2px 4px #000}#splashNicknameInput{width:100%;padding:12px 15px;font-size:clamp(1em,3vw,1.2em);font-family:Chikn_Font_Fredoka,Fredoka,sans-serif;background-color:#ffffffe6;border:2px solid #555;border-radius:8px;text-align:center;color:#333;box-shadow:0 4px 10px #00000080;outline:none;transition:border-color .2s,box-shadow .2s}#splashNicknameInput:focus{border-color:#fc0;box-shadow:0 0 15px #ffcc00b3}#splash-play-button{bottom:15vh}.splash-error-message{color:#fff;font-size:.9em;padding:8px;border-radius:4px;background-color:#290000b3;border:1px solid #ff6b6b;margin-top:10px;text-align:center;text-shadow:1px 1px 2px rgba(0,0,0,.5)}@media (orientation: landscape) and (max-height: 480px){#splash-controls-container{flex-direction:column;flex-wrap:nowrap;justify-content:center;align-items:center;max-width:90vw;max-height:unset;gap:15px;bottom:15dvh}#splash-player-input-container{order:1;width:100%;max-width:300px;flex-grow:0}.consent-checkbox-container{order:2;width:100%;max-width:300px;flex-grow:0;padding:5px}.consent-checkbox-container label{font-size:.9em}#splash-play-button{order:3;width:100%;max-width:250px;flex-grow:0;padding:12px 20px;font-size:1.5em}}#startScreen{top:0;left:0;width:100%;min-height:100vh;padding-top:env(safe-area-inset-top,20px);padding-bottom:env(safe-area-inset-bottom,20px);padding-left:env(safe-area-inset-left,20px);padding-right:env(safe-area-inset-right,20px);box-sizing:border-box;background-color:#0a0a0af2;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;overflow-y:auto}#startScreen h1{margin-top:0;margin-bottom:30px;color:#fc0;font-size:clamp(1.8em,5vw,3em);text-shadow:3px 3px 5px rgba(0,0,0,.6);flex-shrink:0;max-width:90%;line-height:1.2}#startScreen .input-group{display:flex;flex-direction:column;align-items:center;justify-content:center;margin:20px 0;gap:10px;width:100%;max-width:300px}#startScreen input[type=number]{padding:12px 15px;font-size:1.1em;width:100%;border:2px solid #555;background-color:#282828;color:#fff;text-align:center;border-radius:5px;box-shadow:inset 0 1px 4px #0000004d;-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield;box-sizing:border-box}#startScreen input[type=number]::-webkit-inner-spin-button,#startScreen input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}#startScreen button{padding:12px 30px;font-size:1.2em;margin:10px 5px;background-color:#007bff;color:#fff;border-radius:5px;box-shadow:0 3px 6px #00000040;width:auto;min-width:180px;border:none}#startScreen button:hover:not(:disabled){background-color:#0056b3}#startScreen button:disabled{background-color:#555;box-shadow:none;transform:none}#startScreen p{margin:25px 0;color:#888;font-size:1.1em;font-style:italic;flex-shrink:0}#loadingMessage,#errorMessage{margin-top:25px;font-size:1.1em;display:none;padding:10px 15px;border-radius:5px;width:80%;max-width:400px;box-sizing:border-box}#errorMessage{color:#ff6b6b;background-color:#ff444426;border:1px solid #d00000}#loadingMessage{color:#ff9;background-color:#ffff991a;border:1px solid #AAAA00}.deprecated-feature{display:none!important}.main-menu-actions-wrapper{display:flex;flex-direction:column;align-items:center;gap:12px;margin-top:1vh;width:100%;max-width:100%;padding:0 10px;box-sizing:border-box}.main-menu-groups{display:flex;flex-direction:column;gap:10px;width:100%;max-width:600px;align-items:stretch}.menu-group{display:flex;flex-direction:column;gap:8px;width:100%}.menu-group .menu-button{width:100%;min-width:0;padding:12px 18px;font-size:clamp(.9em,3.5vw,1.05em);white-space:normal;overflow:visible;text-overflow:unset;line-height:1.15;display:flex;align-items:center;justify-content:center;text-align:center;min-height:2.4em}@media (orientation: landscape) and (min-width: 700px){.main-menu-groups{flex-direction:row;gap:22px;max-width:1000px;justify-content:center;align-items:stretch;margin:0 auto}.menu-group{display:flex;flex-direction:column;flex:1;gap:12px;max-width:300px}.group-play{flex:1.2}.group-play .menu-button{font-size:clamp(1.05em,2.1vw,1.25em);padding:18px 28px;min-height:3.1em;letter-spacing:.4px;box-shadow:0 0 10px #ffdc8c4d,0 0 4px #ffb45066 inset}.group-play .menu-button.placeholder{opacity:.55;box-shadow:none}.group-progress .menu-button,.group-info .menu-button{font-size:clamp(.78em,1.05vw,.88em);padding:10px 16px;min-height:2.4em;box-shadow:none}@media (min-width: 1200px){.main-menu-groups{max-width:1100px;gap:28px}.group-play .menu-button{font-size:1.3em;padding:20px 32px}}}#collectionsModalOverlay #collectionsSection{max-width:900px;width:100%;display:flex;flex-direction:column;flex-grow:1;padding:clamp(10px,1.5vw,15px)}#collectionsModalOverlay #collectionDisplayAreaInModal{min-height:clamp(250px,35vh,400px);padding:10px;display:flex;flex-wrap:wrap;justify-content:center;align-content:flex-start;flex-grow:1;min-height:clamp(300px,50vh,450px)}.collection-subcategory-title{width:100%;text-align:left;font-size:clamp(1em,2.5vw,1.3em);color:#fd4;margin-top:15px;margin-bottom:8px;padding-bottom:5px;border-bottom:1px solid rgba(255,204,0,.2);flex-basis:100%}.collection-subcategory-title:first-child{margin-top:0}.collection-item{padding:10px;display:flex;flex-direction:column;align-items:center;background-color:#2d3237bf;border:1px solid #555e68;border-radius:8px;width:clamp(160px,19vw,210px);min-height:220px;cursor:pointer;transition:background-color .2s,transform .15s,box-shadow .15s;box-sizing:border-box;overflow:hidden;box-shadow:0 2px 4px #0000004d}.collection-item:hover:not(.not-playable){background-color:#3c414bd9;transform:translateY(-3px);box-shadow:0 4px 8px #0006}.collection-item img{display:block;width:100%;height:120px;object-fit:cover;margin-bottom:8px;border-radius:4px;background-color:#2c2c34}.collection-item.animal-item img{height:180px;object-fit:cover}.collection-item.animal-item .multiplayer-note{font-size:.8em;font-style:italic;color:#81c784;text-align:center;margin-top:auto;padding-top:5px}.collection-item .item-name{font-size:clamp(.85em,2vw,.95em);font-weight:400;line-height:1.25;color:#f0f0f0;text-align:center;margin-bottom:6px;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;min-height:2.5em;width:100%}.collection-item .item-details-container{margin-top:auto;font-size:clamp(.75em,1.8vw,.8em);line-height:1.3;text-align:left;width:100%;padding:0 4px}.collection-item .item-detail{margin:1px 0;padding:1.5px 0;color:#c8c8d0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;justify-content:space-between}.collection-item .item-detail .detail-label{color:#98a0aa;margin-right:5px;flex-shrink:0}.collection-item .item-detail .detail-value{text-align:right;flex-grow:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}.collection-item.farmland-item{min-height:200px}.collection-item.farmland-item .farmland-details-container{font-size:clamp(.7em,1.7vw,.75em);line-height:1.25}.collection-item.farmland-item .item-detail.has-elite-tiles{color:#c388f3;font-weight:700}.collection-item.farmland-item .item-detail.has-legendary-tiles{color:#ffd966;font-weight:700}.collection-item.farmland-item .item-detail.playable-text{color:#81c784;text-align:center;margin-top:5px;font-weight:500}.collection-item.farmland-item.not-playable{opacity:.8}.collection-item.farmland-item .not-playable-text{font-size:.8em;color:#ff8080;margin-top:4px;font-style:italic;text-align:center}ul.tile-tower-list,ul.slot-list{list-style-type:none;padding-left:5px;margin:2px 0 5px}ul.tile-tower-list li,ul.slot-list li{margin-bottom:2px;padding-left:10px;position:relative;color:silver}.legendary-tile-highlight{color:#ffb74d!important}.elite-tile-highlight{color:#ba68c8!important}ul.tile-tower-list li:before,ul.slot-list li:before{content:"▹";position:absolute;left:0;color:#fc0;font-size:.8em;top:1px}.collection-item.tower-item-detailed{min-width:170px;max-width:200px;min-height:260px}.collection-item.tower-item-detailed img{height:100px;object-fit:contain;background-color:#00000040;padding:3px}.collection-item.tower-item-detailed .item-name{font-size:clamp(.85em,2.1vw,.95em)}.tower-overview-stats{font-size:clamp(.7em,1.8vw,.75em);display:flex;flex-direction:column;gap:4px;width:100%}.tower-overview-stats .quality-line{margin:1px 0;padding:1px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;justify-content:space-between;width:100%}.tower-overview-stats .quality-line .detail-label{color:#a0aec0;margin-right:5px}.tower-overview-stats .quality-line .detail-value{color:#e2e8f0;font-weight:700;text-align:right}.tower-overview-stats .stat-row{display:flex;justify-content:space-between;width:100%;margin-top:3px}.tower-overview-stats .stat-row .item-detail{margin:0 2px;padding:1px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;flex-direction:column;align-items:flex-start;flex-basis:30%}.tower-overview-stats .stat-row .item-detail:first-child{margin-left:0}.tower-overview-stats .stat-row .item-detail:last-child{margin-right:0}.tower-overview-stats .item-detail .detail-label{color:#9aabb8;margin-right:0;margin-bottom:1px;font-size:.9em}.tower-overview-stats .item-detail .detail-value{color:#cdd5dd;font-weight:500;text-align:left}.tower-overview-stats .mana-cost .detail-value{color:#fd4;font-weight:700}.rarity-tag,.tier-tag{padding:2px 5px;border-radius:4px;font-size:.9em;color:#111;line-height:1;display:inline-block;font-weight:700}.rarity-common{background-color:#b0bec5}.rarity-nice{background-color:#81d4fa}.rarity-rare{background-color:#ce93d8}.rarity-elite{background-color:#f48fb1}.rarity-legendary{background-color:#ffd54f}.tier-smol{background-color:#fff59d}.tier-normie{background-color:#a5d6a7}.tier-bigr{background-color:#90caf9}.tier-chonk{background-color:#b39ddb}.tier-giga{background-color:#ef9a9a}.simple-selector.selected{border-color:gold;box-shadow:0 0 10px gold}#ownedFarmlandsContainerSP{max-height:250px;overflow-y:auto;padding:10px;border-radius:8px;background-color:#0003}@media (max-width: 900px){.farmland-item.simple-selector{width:calc(33.33% - 7px)}}@media (orientation: portrait) and (max-width: 600px){#ownedFarmlandsContainerSP{flex-direction:column;flex-wrap:nowrap;max-height:25vh}.farmland-item.simple-selector{width:100%;flex-direction:row;align-items:center}.farmland-selector-content{flex-direction:row;width:100%;gap:10px}.farmland-selector-content img{width:40px;height:40px;flex-shrink:0}.farmland-selector-content p{font-size:1em;text-align:left}}.auth-modal-content{text-align:center}.auth-options-container{display:flex;flex-direction:column;gap:15px;align-items:stretch}.auth-option{border:1px solid #444;border-radius:8px;padding:20px;background-color:#0003;display:flex;flex-direction:column;justify-content:space-between}.auth-option h4{margin-top:0;color:#f2a900}.auth-option p{flex-grow:1;margin-bottom:20px}.auth-separator{font-weight:700;color:#888;margin:10px 0}@media (orientation: landscape) and (min-width: 700px){.main-menu-groups{flex-direction:row;gap:22px;max-width:1000px;justify-content:center;align-items:stretch;margin:0 auto}.menu-group{display:flex;flex-direction:column;flex:1;gap:12px;max-width:300px}.group-play{flex:1.2}.group-play .menu-button{font-size:clamp(1.1em,2.2vw,1.3em);padding:18px 28px;min-height:3.1em;letter-spacing:.4px;box-shadow:0 0 10px #ffdc8c4d,0 0 4px #ffb45066 inset}.group-play .menu-button.placeholder{opacity:.55;box-shadow:none}.group-progress .menu-button,.group-info .menu-button{font-size:clamp(.78em,1.1vw,.88em);padding:10px 16px;min-height:2.4em}.group-progress .menu-button,.group-info .menu-button{text-align:center}}#playerProfileModal .menu-content{gap:15px}#playerProfileModal .input-group{width:100%;max-width:350px}#playerProfileModal .modal-separator{width:80%;border:none;border-top:1px solid #444;margin:15px 0}.login-method-info{font-size:.9em;color:#ccc;text-align:center}.login-method-info strong{color:#fc0}.main-menu-animation-container{position:relative;display:flex;justify-content:center;align-items:center;flex-grow:1;width:100%;min-height:20px;pointer-events:none}.main-menu-animation-container.moved-below{flex-grow:1;margin-top:auto;margin-bottom:12px;min-height:80px;align-self:flex-end}.rift-image{position:absolute;width:100px;height:auto;opacity:0;transform:scale(0);filter:blur(2px);animation:rift-pulse 10s ease-in-out infinite}@keyframes rift-pulse{0%,to{transform:scale(0);opacity:0}10%,90%{transform:scale(1);opacity:1}50%{transform:scale(1.1);opacity:.8}}.roostr-runr-sprite{position:absolute;width:300px;height:300px;background-image:url(/assets/enemy/enemy_walk_2.png);background-repeat:no-repeat;opacity:0;transform:scale(.05);transform-origin:bottom center}.roostr-runr-sprite.running{animation:run-from-rift 1s ease-in forwards,walk-cycle .3s steps(6) infinite}@keyframes walk-cycle{to{background-position:-1800px 0}}@keyframes run-from-rift{0%{transform:scale(.01);opacity:0}20%{transform:scale(.04);opacity:1}30%{transform:scale(.1) rotate(-5deg)}40%{transform:scale(.1) rotate(5deg)}50%{transform:scale(.1) rotate(0);opacity:1}to{transform:translate(40vw) scale(.15) rotate(15deg);opacity:0}}.resistance-details h4{margin-top:12px;margin-bottom:4px;font-size:.9em;color:#ccc;border-bottom:1px solid #555;padding-bottom:2px}.resistance-details ul{list-style:none;padding:0;margin:0;font-size:.85em}.resistance-details li{display:flex;justify-content:space-between;padding:2px 0}.res-strong{color:#86e57f;font-weight:700}.res-weak{color:#ff6b6b;font-weight:700}.shadow-unearth-content{padding:24px;max-width:900px;margin:0 auto}.shadow-unearth-description{text-align:center;color:#bbb;margin-bottom:24px;font-size:16px;line-height:1.5}.shadow-unearth-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:16px}.shadow-unearth-card{background:linear-gradient(135deg,#1a1a2ee6,#16213ee6);border:2px solid #0f3460;border-radius:12px;padding:16px;display:flex;flex-direction:column;align-items:center;gap:12px;transition:all .3s ease}.shadow-unearth-card:hover{border-color:#8a2be2;box-shadow:0 0 20px #8a2be24d;transform:translateY(-2px)}.shadow-unearth-card.unearthed{opacity:.6;border-color:#2ecc71;background:linear-gradient(135deg,#2ecc711a,#27ae601a)}.shadow-card-icon{font-size:48px;filter:drop-shadow(0 0 8px rgba(138,43,226,.6))}.shadow-unearth-card.unearthed .shadow-card-icon{filter:drop-shadow(0 0 8px rgba(46,204,113,.4))}.shadow-card-name{font-size:18px;font-weight:700;color:#fff;text-align:center}.shadow-unearth-btn{width:100%;padding:10px 16px;background:linear-gradient(135deg,#8a2be2,#6a1bb2);border:2px solid #a855f7;color:#fff;border-radius:8px;font-size:14px;font-weight:700;cursor:pointer;transition:all .2s}.shadow-unearth-btn:hover:not(:disabled){background:linear-gradient(135deg,#a855f7,#8a2be2);box-shadow:0 0 15px #8a2be280;transform:scale(1.05)}.shadow-unearth-btn:disabled{background:linear-gradient(135deg,#2ecc71,#27ae60);border-color:#2ecc71;cursor:not-allowed;opacity:.8}.shadow-unearth-toast{position:fixed;top:20px;right:20px;padding:16px 24px;background:#1a1a2ef2;border:2px solid #0f3460;border-radius:8px;color:#fff;font-size:16px;font-weight:700;z-index:100000;opacity:0;transform:translate(400px);transition:all .3s ease}.shadow-unearth-toast.visible{opacity:1;transform:translate(0)}.shadow-unearth-toast-success{border-color:#2ecc71;box-shadow:0 0 20px #2ecc7180}.shadow-unearth-toast-error{border-color:#e74c3c;box-shadow:0 0 20px #e74c3c80}.shadow-unearth-toast-info{border-color:#00d4ff;box-shadow:0 0 20px #00d4ff80}@media (max-width: 768px){.shadow-unearth-grid{grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px}.shadow-card-icon{font-size:36px}.shadow-card-name{font-size:16px}}.wild-coq-category{width:100%;margin-bottom:15px;border:2px solid #8a7aa8;border-radius:8px;overflow:hidden;background-color:#140a1e99}.wild-coq-header{width:100%;height:72px;background-size:cover;background-position:center;position:relative;cursor:pointer;display:flex;align-items:center;justify-content:center;transition:filter .2s}.wild-coq-header:before{content:"";position:absolute;left:8px;top:0;width:240px;height:72px;background-image:url(/assets/precoqs/ui/wild_coq_category.png);background-repeat:no-repeat;background-size:contain;background-position:left center;pointer-events:none;filter:drop-shadow(0 2px 6px rgba(0,0,0,.5))}.wild-coq-header:hover{filter:brightness(1.2)}.wild-coq-text-overlay{background:none;padding:6px 16px 6px 248px;height:100%;width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;pointer-events:none}.tower-category-title{color:gold;font-size:1.2em;font-weight:700;text-shadow:0 2px 4px black;margin-bottom:2px}.tower-category-subtitle{color:#ddd;font-size:.9em;font-style:italic;text-align:right}.sp-setup-container{display:flex;flex-direction:column;gap:clamp(10px,2vh,15px);padding:0;width:100%}.sp-two-column-layout{display:grid;grid-template-columns:1fr 1fr;gap:clamp(12px,2.5vw,18px);width:100%;align-items:start}@media (orientation: portrait){.sp-two-column-layout{grid-template-columns:1fr}}.sp-left-column h3,.sp-right-column h3{font-size:clamp(.95em,2.8vw,1.15em);margin:0 0 clamp(8px,1.5vh,10px) 0;color:#f4d03f;text-align:center}.sp-left-column,.sp-right-column{display:flex;flex-direction:column;gap:clamp(8px,1.5vh,12px)}.sp-farmland-tabs{display:flex;gap:6px;flex-wrap:wrap}.sp-tab-button{flex:1;min-width:65px;padding:clamp(6px,1vh,8px) clamp(8px,1.5vw,10px);background:#191c2080;border:1px solid rgba(255,255,255,.15);border-radius:4px;color:#ccc;font-size:clamp(.75em,1.9vw,.85em);cursor:pointer;transition:all .2s ease}.sp-tab-button:hover:not(:disabled){background:#23262aa6;color:#fff;border-color:#ffffff40}.sp-tab-button.active{background:#f4d03f33;border-color:#f4d03f;color:#f4d03f;font-weight:700}.sp-tab-button:disabled{opacity:.4;cursor:not-allowed}#ownedFarmlandsContainerSP{background-color:#0a0c0f66;border-radius:6px;padding:8px;max-height:clamp(120px,22vh,180px);overflow-y:auto;border:1px solid rgba(255,255,255,.1)}.farmland-preview{background:#0f121666;border-radius:6px;padding:clamp(8px,1.5vw,10px);text-align:center;border:1px solid rgba(255,255,255,.1)}.farmland-preview img{max-width:100%;max-height:clamp(90px,18vh,130px);height:auto;border-radius:4px;margin-bottom:6px}.farmland-preview-details{display:flex;flex-direction:column;gap:3px}.farmland-preview-details p{margin:0;font-size:clamp(.75em,1.8vw,.85em);line-height:1.25}.sp-mode-buttons{display:flex;flex-wrap:wrap;justify-content:center;gap:clamp(10px,2vw,16px)}.sp-mode-buttons .menu-button{flex:0 1 220px;width:auto;min-width:160px;max-width:240px}@media (max-width: 520px){.sp-mode-buttons{flex-direction:column;align-items:center}.sp-mode-buttons .menu-button{width:100%;max-width:260px}}#singleplayerErrorMessage{background:#e74c3c26;border:1px solid rgba(231,76,60,.5);border-radius:4px;padding:clamp(6px,1.2vh,8px);font-size:clamp(.75em,1.8vw,.85em);text-align:center;margin-top:6px}#optionsMenuOverlay .menu-content{gap:clamp(12px,2vh,18px);overflow-x:hidden}#optionsMenuOverlay .option-item{display:flex;align-items:center;width:100%;max-width:450px}#optionsMenuOverlay .option-item label{min-width:10px;text-align:right;margin-right:10px;flex-shrink:0}#optionsMenuOverlay .option-item input[type=range]{flex-grow:1}#optionsMenuOverlay .option-item span{min-width:45px;text-align:left}#optionsMenuOverlay #musicTrackSelect{flex-grow:1;padding:clamp(6px,1vh,8px);font-size:clamp(.85em,2vw,.95em)}#infoMenuOverlay .menu-content{gap:15px}#infoMenuOverlay .menu-button.secondary-action{width:100%;max-width:250px}#singleplayerSetupOverlay .menu-content.modal-style-content{padding:clamp(12px,2.5vw,20px);width:95%;max-width:min(900px,95vw);align-items:stretch;gap:clamp(10px,2vh,15px);flex-grow:0}#inGameMenuOverlay .menu-button{width:100%;max-width:300px}#legendLayersOverlay .menu-content{gap:5px}#legendLayersOverlay .checkbox-item{padding:8px 5px}#enemyInfoOverlay .menu-content.scrollable-content{text-align:left;font-size:clamp(.8em,1.9vw,.9em)}#enemyInfoOverlay h4{margin-top:10px;margin-bottom:5px;color:#fc0;font-size:clamp(1em,2.5vw,1.3em)}#collectionItemDetailModal{max-width:750px;max-height:90dvh}#collectionItemDetailModalContent{align-items:center;gap:clamp(10px,1.5vh,15px);padding:10px 5px}#itemDetailModalImage{display:block;margin-left:auto;margin-right:auto;width:100%;max-height:clamp(400px,35vh,500px);object-fit:contain;border-radius:8px;background-color:#00000040;margin-bottom:10px;box-shadow:0 2px 8px #0000004d}@media screen and (orientation: landscape) and (min-width: 600px){#collectionItemDetailModal #itemDetailModalImage{max-height:clamp(250px,45vh,350px)}#collectionItemDetailModal{max-width:800px}}@media screen and (orientation: landscape) and (min-width: 1024px){#collectionItemDetailModal #itemDetailModalImage{max-height:clamp(300px,50vh,400px)}#collectionItemDetailModal{max-width:850px}}.item-stats-section,.item-attributes-section,.item-info-section{width:100%;padding:10px;background-color:#191c2066;border:1px solid rgba(255,255,255,.08);border-radius:6px;text-align:left;box-sizing:border-box}#collectionItemDetailModalContent>div>h4{color:#fd4;margin-top:0;margin-bottom:10px;padding-bottom:6px;border-bottom:1px solid rgba(255,221,68,.25);font-size:clamp(1.05em,2.8vw,1.3em)}.item-info-section h5{color:#fc0;font-size:clamp(.95em,2.3vw,1.1em);margin-top:12px;margin-bottom:6px;padding-bottom:4px;border-bottom:1px dotted rgba(255,204,0,.2)}table.details-table{width:100%;border-collapse:collapse;margin-top:5px;margin-bottom:15px;font-size:clamp(.8em,1.9vw,.9em)}table.details-table th{font-weight:700;color:#fc0;border-bottom-width:2px;border-bottom-color:#ffcc004d;text-align:left;padding:8px}table.details-table td{text-align:left;padding:5px 8px;border-bottom:1px solid rgba(255,255,255,.08);line-height:1.35;vertical-align:top}table.tile-breakdown-table td:nth-child(1){width:35%;font-weight:500;color:#dde2e8}table.tile-breakdown-table td:nth-child(2){width:30%;color:#c0c8d0}table.tile-breakdown-table td:nth-child(3){width:35%;color:#b0b8c8;line-height:1.4;white-space:normal}table.tile-breakdown-table td:nth-child(3) em{font-style:normal;color:#66d9ef}table.tile-breakdown-table tr.legendary-tile-highlight td{color:#ffb74d!important}table.tile-breakdown-table tr.elite-tile-highlight td{color:#ba68c8!important}table.details-table td:first-child{font-weight:500;color:#b0b8c8;width:35%;white-space:normal;padding-right:10px}table.details-table td:last-child{color:#dde2e8;word-break:break-word}table.tile-breakdown-table td:nth-child(1){width:38%;font-weight:500;color:#dde2e8}table.tile-breakdown-table td:nth-child(2){width:32%;color:#c0c8d0}table.tile-breakdown-table td:nth-child(3){width:30%;color:#a8b2c0;font-style:italic}table.tile-breakdown-table tr.legendary-tile-highlight td:nth-child(1){font-weight:700}table.tile-breakdown-table tr.elite-tile-highlight td:nth-child(1){font-weight:700}table.tile-breakdown-table tr.legendary-tile-highlight td:nth-child(3){color:#f0ad4e}table.tile-breakdown-table tr.elite-tile-highlight td:nth-child(3){color:#ae80d6}.item-info-section p{margin:5px 0 10px;font-size:clamp(.85em,2vw,.9em);line-height:1.45}.item-info-section p strong{color:#fc0}.item-info-section ul.evolution-steps{list-style-type:none;padding-left:0;margin-top:5px;margin-bottom:10px}.item-info-section ul.evolution-steps li{margin-bottom:5px;font-size:.85em;padding-left:20px;position:relative;line-height:1.4;color:#c5c5d0}.item-info-section ul.evolution-steps li:before{content:"▹";position:absolute;left:0;top:1px;color:#fc0;font-size:1em;font-weight:700}.item-info-section .note{font-style:italic;font-size:.8em;color:#999dac;margin-top:12px;padding-left:10px;border-left:2px solid #555c66}#itemDetailModalNftInfo a{color:#87cefa;text-decoration:none;font-weight:500}#itemDetailModalNftInfo a:hover{text-decoration:underline;color:#98d8ff}#modalPlayFarmlandBtn{display:block;margin:15px auto 5px;width:auto;padding:12px 25px}.version-info{font-size:clamp(.7em,1.5vw,.8em);color:#888;text-align:center;margin-top:15px;padding-top:10px;border-top:1px dashed #444}#riftForgeOverlay{max-width:650px}#riftForgeOverlay .upgrade-container{padding:15px;margin-bottom:15px;background-color:#14171bb3;border:1px solid #40454B;border-radius:6px}#riftForgeOverlay .upgrade-container h5{color:#fd4;margin:0 0 8px}#riftForgeOverlay .upgrade-description{font-size:.85em;color:#b0b8c8;margin:0 0 12px;line-height:1.5;max-width:90%}#riftForgeOverlay .upgrade-container p{font-size:.9em;color:#ddd;margin:0 0 10px}#riftForgeOverlay .upgrade-container .next-level-effect{font-style:italic;color:#66bb6a;font-size:.85em}#riftForgeOverlay .upgrade-container .max-level{font-weight:700;color:#fc0}.farmland-preview{margin-top:15px;margin-bottom:15px;padding:10px;background-color:#0003;border:1px solid #5c4b3e;border-radius:6px;display:flex;align-items:center;gap:15px}.farmland-preview img{width:100px;height:75px;object-fit:cover;border-radius:4px;flex-shrink:0}.farmland-preview .farmland-preview-details{font-size:.9em;text-align:left}.farmland-preview .farmland-preview-details p{margin:2px 0;color:#ccc}.farmland-preview .farmland-preview-details #farmlandPreviewNameSP{font-weight:400;color:#fff}#textureQualityOption label{font-weight:400}.option-item .radio-group.horizontal{display:flex;flex-direction:row;flex-wrap:wrap;gap:15px;justify-content:flex-start;flex-grow:1}.option-item .radio-group.horizontal div{display:flex;align-items:center}#textureQualityWarning{font-size:.8em;padding:5px;border-radius:4px;background-color:#ff64641a;border:1px solid rgba(255,100,100,.3)}.animal-collection-grid,.farmland-grid-inner{display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:15px;padding:10px 0;width:100%;justify-items:center}.farmland-category-section{width:100%;max-width:1200px;margin:0 auto 25px}.collection-item{background-color:#0000004d;border:1px solid #444;border-radius:8px;padding:10px;text-align:center;transition:transform .2s ease-in-out,border-color .2s ease-in-out;cursor:pointer;overflow:hidden;min-width:180px}.collection-subcategory-title{margin-bottom:5px;padding-bottom:5px;border-bottom:1px solid rgba(255,255,255,.2);font-size:1.1em;text-align:left}.collection-item:hover{transform:translateY(-5px);border-color:#fc0}.collection-item img{width:100%;height:120px;display:block;border-radius:4px;margin-bottom:10px}.farmland-item img,.simple-selector img{object-fit:cover;object-position:center 50%}.animal-item img{object-fit:contain}.tower-category-header{width:100%;margin:0 0 1px;padding:15px 20px;background:linear-gradient(135deg,#00000080,#140a2880);border:2px solid rgba(100,50,200,.4);border-radius:8px;cursor:pointer;transition:all .3s ease}.tower-category-header:hover{background:linear-gradient(135deg,#0a0514b3,#281450b3);border-color:#9664ff99;transform:translateY(-2px);box-shadow:0 4px 15px #6432c84d}.wild-coq-header{border-color:#50287880;background:none!important;position:relative;overflow:visible;padding:0!important}.wild-coq-header:hover{border-color:#7850b4b3;box-shadow:0 4px 20px #50287866;transform:translateY(-2px)}.wild-coq-text-overlay{position:absolute;right:20px;top:50%;transform:translateY(-50%);text-align:right;pointer-events:none;max-width:60%;padding-left:40%}.tower-category-title{font-size:1.3em;font-weight:700;color:#fff;margin-bottom:5px;text-shadow:0 2px 4px rgba(0,0,0,.5)}.tower-category-subtitle{font-size:.9em;color:#bbb;font-style:italic}.highscore-actions{display:flex;justify-content:center;gap:15px;margin-top:20px;width:100%}.highscore-actions .menu-button{flex-grow:1;max-width:220px}#walletProfileModal .menu-content{gap:20px;min-width:280px;width:90vw;max-width:650px}.wallet-address-display{display:flex;align-items:center;justify-content:center;gap:10px;background-color:#0f121640;padding:8px 12px;border-radius:20px;border:1px solid #5c4b3e;font-family:monospace;font-size:1.1em}.wallet-chain-icon{width:24px;height:24px}.wallet-nft-overview{width:100%;text-align:center}.wallet-nft-overview h4{margin-bottom:15px;color:#fc0}.nft-counts-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:15px;border:1px solid #5c4b3e;background-color:#0f121633;padding:15px;border-radius:8px}.nft-counts-grid.secondary-nfts{border-style:dashed;border-color:#4a3b32;margin-top:15px}.nft-count-item{display:flex;flex-direction:column;align-items:center;gap:8px;padding:10px;border-radius:6px;background-color:#0f121640;border:1px solid transparent;flex-grow:1;flex-basis:120px;max-width:150px}.nft-count-item.precoq-item{border-color:#8a2be2;box-shadow:0 0 10px #8a2be24d}.nft-count-item.coqbloq-item{border-color:#4682b4;box-shadow:0 0 10px #4682b44d}.nft-icon{width:48px;height:48px;object-fit:contain}.roostr-icon-style{filter:grayscale(1) brightness(1.5)}.farmland-icon-style{filter:sepia(1) hue-rotate(180deg)}.nft-label{font-size:.9em;color:#ccc;font-weight:700}.nft-count{font-size:1.4em;font-weight:700;color:#fff}.nft-count-item .nft-count:not(:empty):after{content:""}.nft-count-item .nft-count:empty:after{content:"..."}.nft-count-item .nft-count:is(:contains("N/A")){font-size:1em;font-style:italic;color:#777;font-weight:400}.wallet-actions{display:flex;flex-wrap:wrap;justify-content:center;gap:15px;width:100%}.wallet-actions .menu-button{flex-grow:1;flex-basis:150px}.modal-separator{width:80%;border:none;border-top:1px solid #4a3b32;margin:15px 0}.forget-me-section{width:100%;text-align:center;margin-top:10px}.forget-me-section h4{color:#ccc;font-size:1em;margin-bottom:10px}.anonymous-id-display{background-color:#0000004d;border:1px solid #4a3b32;padding:10px;border-radius:6px;margin-bottom:15px}.anonymous-id-display p{margin:0 0 8px;font-size:.85em;color:#aaa}.anonymous-id-value{font-family:monospace;font-size:.9em;color:#fc0;word-break:break-all;background:#222;padding:4px 8px;border-radius:4px}#forgetMeBtn{width:100%;max-width:350px}.leaderboard-modal-content{padding:0}.leaderboard-tabs{background-color:#0f12164d;padding:10px;border-bottom:2px solid #4a3b32}.leaderboard-display{padding:15px;min-height:300px;max-height:55vh;overflow-y:auto;position:relative}.leaderboard-list{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:8px}.leaderboard-entry{display:grid;grid-template-columns:60px 1fr 120px;align-items:center;gap:15px;padding:12px 15px;background-color:#0f121640;border-radius:6px;border:1px solid transparent;transition:background-color .2s,border-color .2s}.leaderboard-entry:hover{background-color:#191c2066;border-color:#5c4b3e}.leaderboard-entry .rank{font-size:1.4em;font-weight:700;color:#fc0;text-align:center;font-style:italic;text-shadow:1px 1px 2px rgba(0,0,0,.5)}.leaderboard-entry .name{font-size:1.1em;color:#e0e0e0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.leaderboard-entry .score{font-size:1.2em;font-weight:500;color:#fff;text-align:right;font-family:monospace}.leaderboard-entry:nth-child(1) .rank{color:gold;transform:scale(1.1)}.leaderboard-entry:nth-child(2) .rank{color:silver}.leaderboard-entry:nth-child(3) .rank{color:#cd7f32}.leaderboard-loading{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:#0f121659;z-index:10}.leaderboard-loading p{font-size:1.2em;color:#fc0}.my-rank-panel{padding:15px;background-color:#0f12164d;border-top:2px solid #ffcc00}.my-rank-panel h4{margin:0 0 10px;text-align:center;color:#fc0;font-size:1.2em}.my-rank-entry{background-color:#ffcc001a;border:1px solid rgba(255,204,0,.4);box-shadow:0 0 10px #fc03}.selector-title{margin:12px 0 6px;font-weight:600}.selector-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px;margin-bottom:12px}.selector-card{border-radius:12px;padding:10px;background:#0f121640;border:1px solid rgba(255,255,255,.08);cursor:pointer;display:flex;flex-direction:column;gap:6px;transition:transform .12s ease,border-color .12s ease}.selector-card:hover{transform:translateY(-1px);border-color:#ffffff2e}.selector-card.selected{outline:2px solid #ffd400;border-color:#ffd400}.selector-card .thumb{width:100%;height:72px;object-fit:cover;border-radius:8px;background:#00000040}.selector-card .label{font-size:.95rem;line-height:1.2}.selector-card .sub{font-size:.8rem;opacity:.7}.selector-badge{font-size:.72rem;opacity:.85;border-radius:8px;padding:2px 6px;background:#ffd40026;border:1px solid #ffd400;width:fit-content}.selector-actions{margin-top:10px;display:flex;justify-content:flex-end}.muted{opacity:.8;margin:0 0 8px}.ancients-grid{display:flex;flex-direction:column;gap:20px;padding:10px 0}.ancient-family-section{display:flex;flex-direction:column;gap:8px}.ancient-family-header{font-size:1.1em;font-weight:600;color:#ffd400;margin:0;padding:5px 10px;background:#ffd4001a;border-left:3px solid #ffd400;border-radius:4px}.ancient-tier-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:12px;padding:0 10px}.ancient-card{position:relative;min-height:150px;border-radius:8px;padding:12px;background:#191c2059;border:2px solid rgba(255,255,255,.1);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;transition:all .2s ease}.ancient-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #0000004d}.ancient-card.available{cursor:pointer;border-color:#64c8644d}.ancient-card.locked{opacity:.5;cursor:not-allowed}.ancient-card.selected{border-color:#ffd400;background:#ffd40026;box-shadow:0 0 15px #ffd40066}.ancient-card.f2p{border-color:#64c8ff66}.ancient-card.owned{border-color:#64ff6466}.ancient-card.whitelisted{border-color:#ffc86466}.ancient-status-badge{position:absolute;top:8px;right:8px;font-size:.7em;padding:3px 8px;border-radius:12px;font-weight:600;text-transform:uppercase}.ancient-status-badge.f2p{background:#64c8ff33;border:1px solid rgba(100,200,255,.6);color:#64c8ff}.ancient-status-badge.owned{background:#64ff6433;border:1px solid rgba(100,255,100,.6);color:#64ff64}.ancient-status-badge.whitelisted{background:#ffc86433;border:1px solid rgba(255,200,100,.6);color:#ffc864}.ancient-status-badge.locked{background:#96969633;border:1px solid rgba(150,150,150,.4);color:#999}.ancient-tier-label{font-size:.9em;font-weight:600;color:#e0e0e0;text-align:center}.ancient-protocol-info{font-size:.85em;color:#b0b0b0;text-align:center;line-height:1.2}.selection-status{margin:15px 0;padding:12px;background:#ffd4001a;border:1px solid rgba(255,212,0,.3);border-radius:6px;text-align:center}.selection-status p{margin:0;font-size:1em;color:#ffd400}.forge-action-container{margin-top:15px;display:flex;justify-content:center}.forge-action-container button{min-width:200px}.forge-preview-pane{background-color:#14171be6;border:1px solid #40454B;border-radius:8px;padding:15px;margin-bottom:15px;width:100%;box-sizing:border-box}.preview-stats h6{color:#fd4;margin:0 0 12px;font-size:1.1em;text-align:center;border-bottom:1px solid rgba(255,221,68,.2);padding-bottom:8px}.stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:15px}.stat-item{display:flex;justify-content:space-between;align-items:center;background:#ffffff0d;padding:8px 12px;border-radius:4px}.stat-item span{color:#b0b8c8;font-size:.9em}.stat-item strong{color:#fff;font-family:monospace;font-size:1.1em}.preview-traits{text-align:center;padding-top:10px;border-top:1px dashed rgba(255,255,255,.1);font-size:.9em;color:#ccc}.preview-traits strong{color:#66bb6a}button.confirm-mode{background:linear-gradient(135deg,#2e7d32,#1b5e20);border-color:#4caf50;box-shadow:0 0 15px #4caf5066;animation:pulse-green 2s infinite}button.confirm-mode:hover{background:linear-gradient(135deg,#388e3c,#2e7d32);transform:translateY(-2px)}@keyframes pulse-green{0%{box-shadow:0 0 #4caf5066}70%{box-shadow:0 0 0 10px #4caf5000}to{box-shadow:0 0 #4caf5000}}.price-quote{margin-bottom:15px;width:100%}.price-summary{background:#0000004d;border-radius:6px;padding:10px;border:1px solid #444}.price-row{display:flex;justify-content:space-between;padding:5px 0;color:#888;font-size:.9em}.price-row.selected{color:#fff;font-weight:500}.price-total{margin-top:8px;padding-top:8px;border-top:1px solid #555;display:flex;justify-content:space-between;align-items:center;font-size:1.1em}.price-total .highlight{color:#fd4}.pending-forge-banner{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;margin-bottom:10px;border-radius:6px;background:#ffd16614;border:1px solid rgba(255,209,102,.35)}.pending-forge-banner .pending-forge-text{display:flex;flex-direction:column;gap:2px;font-size:12px}.pending-forge-banner .pending-forge-text strong{font-size:13px}.pending-forge-banner .pending-forge-resume-btn{white-space:nowrap}.tier-picker,.asset-picker{display:flex;align-items:center;gap:10px;margin-bottom:10px;width:100%;justify-content:center}.tier-picker label,.asset-picker label{color:#ccc;font-size:.9em}.menu-select{background:#222;color:#fff;border:1px solid #444;padding:5px 10px;border-radius:4px;font-size:.9em}.forge-preview-loading{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:10px;font-size:.9em;color:#ccc;opacity:.9}.spinner{display:inline-block;width:12px;height:12px;border:2px solid rgba(255,255,255,.3);border-radius:50%;border-top-color:#fff;animation:spin 1s ease-in-out infinite;margin-right:8px;vertical-align:middle}@keyframes spin{to{transform:rotate(360deg)}}#character-viewer-ui{position:fixed;top:0;right:0;bottom:0;left:0;background-color:#14191e00;z-index:500;display:flex;flex-direction:column;color:#e0e0e0;font-family:Chikn_Font_Fredoka,sans-serif;padding:10px;box-sizing:border-box;gap:10px;pointer-events:none}.viewer-top-bar,.viewer-main-content,.viewer-bottom-bar{width:100%;flex-shrink:0;pointer-events:auto}.viewer-top-bar{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:15px;padding:5px;background-color:#0a0a0a80;border-radius:6px}.viewer-stats-toggle{display:flex;align-items:center;gap:10px}#toggleStatsBtn{padding:8px 12px;font-size:.9em}.viewer-tabs,.viewer-id-input{display:flex;align-items:center;gap:8px}.tab-button,.nav-arrow,.exit-button,#showCharacterBtn{padding:8px 16px;font-size:1em;background-color:#4a4a52;border:1px solid #666;color:#eee;border-radius:4px;cursor:pointer}.tab-button.active{background-color:#007bff;border-color:#0056b3}.exit-button{background-color:#c0392b;border-color:#a03024}#characterIdInput{padding:8px;font-size:1em;width:120px;background-color:#2c2c34;border:1px solid #555;color:#fff;border-radius:4px;text-align:center}.viewer-main-content{flex-grow:1;display:flex;align-items:center;justify-content:space-between;position:relative;overflow:hidden}.nav-arrow{font-size:1.5em;padding:10px;z-index:501;opacity:0;pointer-events:none;transition:opacity .3s ease-in-out}.viewer-main-content.arrows-visible .nav-arrow,.viewer-main-content:hover .nav-arrow{opacity:1;pointer-events:auto}.nav-arrow:hover{background-color:#3c3c3ce6}.left-arrow{margin-left:10px}.right-arrow{margin-right:10px}.character-display-area{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;justify-content:space-between;align-items:flex-start;padding:20px;pointer-events:none}.stats-panel{width:220px;max-height:80vh;overflow-y:auto;background-color:#0a0a0a99;padding:15px;border-radius:8px;border:1px solid #444;text-align:left;font-size:.9em;line-height:1.5;pointer-events:auto;opacity:0;transform:translateY(10px);transition:opacity .3s ease,transform .3s ease}#character-viewer-ui.stats-visible .stats-panel{opacity:1;transform:translateY(0)}#character-stats-left{transform:translate(-110%);transition:transform .4s ease-out}#character-stats-right{transform:translate(110%);transition:transform .4s ease-out}#character-viewer-ui.stats-visible #character-stats-left,#character-viewer-ui.stats-visible #character-stats-right{transform:translate(0)}.stats-panel h4{margin-top:0;margin-bottom:8px;color:#fc0;border-bottom:1px solid #555;padding-bottom:5px}.stats-panel p{margin:4px 0;display:flex;justify-content:space-between}.stats-panel p strong{color:#aaa}.viewer-bottom-bar{display:flex;justify-content:center;align-items:center;padding:5px;background-color:#0a0a0a80;border-radius:6px}.animation-toggles{display:flex;gap:20px}.animation-toggles label{font-size:1.1em;display:flex;align-items:center;gap:5px;cursor:pointer;transition:opacity .2s}.animation-toggles label.disabled{opacity:.5;cursor:not-allowed}.animation-toggles input[type=checkbox]{width:20px;height:20px;cursor:pointer}.animation-toggles label.disabled input[type=checkbox]{cursor:not-allowed}.error-message{color:#ff6b6b}#gameInfoModalOverlay .wave-section{margin-bottom:20px}#gameInfoModalOverlay .wave-section h5{color:#fd4;border-bottom:1px solid #444;padding-bottom:6px;margin-bottom:10px}#gameInfoModalOverlay .enemy-list{display:flex;flex-direction:column;gap:8px}#gameInfoModalOverlay .enemy-group-display{display:flex;align-items:center;gap:15px;padding:8px;background-color:#0f121640;border-radius:4px;border:1px solid rgba(255,255,255,.1);cursor:pointer;transition:background-color .2s ease,min-height .3s ease,transform .15s ease;overflow:hidden;min-height:80px}#gameInfoModalOverlay .enemy-group-display:not(.detailed-view-active):hover{background-color:#191c2066;transform:scale(1.02)}#gameInfoModalOverlay .enemy-group-display.dead-enemy{filter:grayscale(1);opacity:.5}#gameInfoModalOverlay .enemy-group-display.dead-enemy:hover{transform:none;background-color:#ffffff0d;cursor:default}.health-bar-container{width:100%;height:6px;background-color:#00000080;border:1px solid #222;border-radius:3px;margin-top:4px}.health-bar-fill{height:100%;background-color:#4caf50;border-radius:2px;transition:width .3s ease-out}.dead-enemy .health-bar-fill{background-color:#616161}#gameInfoModalOverlay .enemy-group-display .detailed-view{display:none}#gameInfoModalOverlay .enemy-group-display.detailed-view-active{background-color:#191c2073;min-height:140px;align-items:flex-start;cursor:default;transform:scale(1)}#gameInfoModalOverlay .enemy-group-display.detailed-view-active .summary-view{display:none}#gameInfoModalOverlay .enemy-group-display.detailed-view-active .detailed-view{display:grid;grid-template-columns:80px 1fr 1fr;gap:15px;width:100%;align-items:flex-start}#gameInfoModalOverlay .detailed-view .enemy-img-box{width:90px;height:90px;grid-row:1 / 3}#gameInfoModalOverlay .detailed-view .detailed-main-stats{grid-column:2 / 3}#gameInfoModalOverlay .detailed-view .resistance-details{grid-column:3 / 4}#gameInfoModalOverlay .detailed-view h4{grid-column:1 / -1;margin:0 0 8px;color:#fff;font-size:1.1em;border-bottom:1px solid #555;padding-bottom:4px}#gameInfoModalOverlay .detailed-view .detailed-main-stats p{display:flex;justify-content:space-between;margin:3px 0;font-size:.95em}#gameInfoModalOverlay .detailed-view .resistance-details ul{list-style:none;padding:0;margin:0}#gameInfoModalOverlay .detailed-view .resistance-details li{display:flex;justify-content:space-between;font-size:.9em;color:#a0c0ff}#gameInfoModalOverlay .summary-view{display:flex;align-items:center;gap:15px;width:100%}#gameInfoModalOverlay .summary-view .enemy-img-box{width:85px;height:85px}#gameInfoModalOverlay .enemy-img-box{background-color:#0000004d;border:1px solid #444;border-radius:3px;display:flex;align-items:center;justify-content:center;overflow:hidden;flex-shrink:0}#gameInfoModalOverlay .enemy-img-box img{max-width:90%;max-height:90%;object-fit:contain;image-rendering:pixelated;image-rendering:crisp-edges}#gameInfoModalOverlay .enemy-details{font-size:.9em;text-align:left;flex-grow:1;display:flex;flex-direction:column;gap:4px}#gameInfoModalOverlay .enemy-details strong{color:#fff;font-size:1.1em;margin-bottom:2px}#gameInfoModalOverlay .enemy-details .stat-line{display:flex;gap:15px;flex-wrap:wrap}#gameInfoModalOverlay .enemy-details span{color:#bbb;font-size:.9em;margin-right:0}#gameInfoModalOverlay .enemy-details .resistance-list{font-size:.85em;color:#a0c0ff;line-height:1.3}.wave-mana-cost-note{text-align:right;color:#999;font-size:.8em;margin-top:10px}#inGameControlsContainer{position:fixed;top:0;right:0;bottom:0;left:0;pointer-events:none;display:flex;justify-content:center;opacity:0;transition:opacity .3s ease-in-out}#inGameControlsContainer.visible{opacity:1}.hud-safe-area{width:100%;height:100%;max-width:1900px;position:relative;pointer-events:none}.in-game-hud{position:absolute;top:15px;right:15px;bottom:15px;left:15px;pointer-events:none;display:grid;grid-template-areas:"top-left    top-bar     top-right" ".           .           ." "bottom-left bottom-center bottom-right";grid-template-rows:auto 1fr auto;grid-template-columns:1fr auto 1fr}.hud-panel{display:flex;align-items:center;pointer-events:auto;flex-shrink:0}.hud-panel.top-left{grid-area:top-left;justify-self:start}.hud-panel.top-bar{grid-area:top-bar;background-color:#0f1419cc;border:1px solid rgba(120,150,180,.4);border-radius:8px;box-shadow:0 2px 8px #00000080;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);justify-content:center;flex-direction:column;gap:4px;height:auto;padding:8px 10px}.hud-panel.top-right{grid-area:top-right;justify-self:end}#totalEnemyHealthBarContainer{width:100%;max-width:250px;height:6px;background-color:#00000080;border:1px solid #333;border-radius:3px;overflow:hidden}#totalEnemyHealthBarFill{width:100%;height:100%;background-color:#d32f2f;border-radius:2px;transition:width .2s ease-out}#gameStatsDisplay{display:flex;gap:20px;align-items:center}.stat-item{display:flex;align-items:center;gap:6px;font-family:Chikn_Font_Fredoka,sans-serif;color:#fff;font-size:1.1em;font-weight:700}.stat-item img{width:24px;height:24px}.hud-panel.next-wave-timer{position:absolute;top:65px;left:50%;transform:translate(-50%);background-color:#0009;border:1px solid rgba(255,255,255,.1);padding:6px 15px;border-radius:8px;font-family:Chikn_Font_Fredoka,sans-serif;color:#fc0;font-size:1.1em;font-weight:700;text-shadow:1px 1px 2px rgba(0,0,0,.7);white-space:nowrap;transition:opacity .3s ease,transform .3s ease;opacity:0;pointer-events:none}.hud-panel.next-wave-timer:not(.initially-hidden){opacity:1;transform:translate(-50%) translateY(0)}.hud-panel.next-wave-timer.info-message{color:#fff;background-color:#325096b3;border-color:#6a8dff}.hud-panel.next-wave-timer.error-message{color:#fff;background-color:#b42828b3;border-color:#ff6b6b}.hud-panel.bottom-left{grid-area:bottom-left;justify-self:start;align-self:end;display:flex;flex-direction:column;gap:8px;align-items:center}#forgeProgressContainer{width:50px;height:6px;background-color:#00000080;border:1px solid #444;border-radius:3px;overflow:hidden}#forgeProgressContainer .progress-bar-fill{width:0%;height:100%;background-color:#fc0;border-radius:2px;transition:width .1s linear}.hud-panel.bottom-left .hud-button{width:70px;height:70px;border-radius:50%}.hud-panel.bottom-left .hud-button.initially-hidden{display:none!important}.hud-panel.center-bottom{grid-area:bottom-center;justify-self:center;align-self:end;opacity:0;transform:translateY(20px);transition:opacity .3s ease,transform .3s ease}.hud-panel.center-bottom.visible{opacity:1;transform:translateY(0)}.summon-menu{grid-area:bottom-right;justify-self:end;align-self:end;flex-direction:row;align-items:center}.build-options{display:flex;gap:10px;margin-right:10px;transition:all .3s cubic-bezier(.4,0,.2,1);transform:translate(20px);opacity:0;pointer-events:none}.summon-menu.expanded .build-options{transform:translate(0);opacity:1;pointer-events:auto}.hud-button{background-color:#28323ce6;border:1px solid rgba(120,150,180,.6);border-radius:8px;padding:6px;cursor:pointer;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#ddd;font-size:.65em;gap:3px;text-transform:uppercase;font-weight:700;letter-spacing:.5px;width:70px;height:66px;transition:background-color .2s ease,transform .15s ease;flex-shrink:0}.hud-button img{width:46px;height:46px}.hud-button span{line-height:1}.hud-button:hover:not(:disabled){background-color:#46505af2;border-color:#9fb8d0}.hud-button:disabled{opacity:.5;cursor:not-allowed;filter:grayscale(90%)}.hud-button.summon-button{border-radius:50%;width:70px;height:70px}.hud-button.summon-button img{width:46px;height:46px;transition:transform .3s ease}.summon-menu.expanded .summon-button img{transform:rotate(-135deg)}.hud-panel.top-left .hud-button,.hud-panel.top-right .hud-button,.hud-panel.center-bottom .hud-button{width:70px;height:70px;border-radius:50%}.hud-panel.top-left .hud-button img,.hud-panel.top-right .hud-button img,.hud-panel.center-bottom .hud-button img{width:46px;height:46px;margin-bottom:0}@media (orientation: portrait){.summon-menu{flex-direction:column;align-items:flex-end}.build-options{flex-direction:column;margin-right:0;margin-bottom:10px}.summon-menu:not(.expanded) .build-options{transform:translateY(20px);opacity:0}.summon-menu.expanded .build-options{transform:translateY(0);opacity:1}}.initially-hidden{display:none!important}.hud-panel.notification-area{position:absolute;top:65px;left:50%;transform:translate(-50%);background-color:#0009;border:1px solid rgba(255,255,255,.1);padding:6px 15px;border-radius:8px;font-family:Chikn_Font_Fredoka,sans-serif;color:#fff;font-size:1.1em;font-weight:700;text-shadow:1px 1px 2px rgba(0,0,0,.7);white-space:nowrap;transition:opacity .3s ease,transform .3s ease;opacity:0;pointer-events:none}.hud-panel.notification-area.info-message{background-color:#325096cc;border-color:#6a8dff}.hud-panel.notification-area.error-message{color:#fff;background-color:#b42828cc;border-color:#ff6b6b}.hud-panel.wave-countdown{position:absolute;top:110px;left:50%;transform:translate(-50%);background:none;border:none;font-family:Chikn_Font_Fredoka,sans-serif;color:#fc0;font-size:1.3em;text-shadow:1px 1px 3px rgba(0,0,0,.8);transition:opacity .3s ease;opacity:0;pointer-events:none}.hud-panel.notification-area.visible,.hud-panel.wave-countdown.visible{opacity:1}#tutorial-objective-container{position:absolute;top:120px;left:50%;transform:translate(-50%);background-color:#0a141ecc;border:1px solid #ffcc00;border-radius:8px;padding:10px 20px;width:90%;max-width:500px;text-align:center;box-shadow:0 4px 15px #00000080;pointer-events:none;z-index:var(--z-hud-elements)}#tutorial-objective-container h4{margin:0 0 8px;font-size:1.1em;color:#fc0;text-shadow:1px 1px 2px #000}#tutorial-objective-container p{margin:0;font-size:1em;color:#fff;line-height:1.4}@media (orientation: landscape) and (max-height: 500px){#tutorial-objective-container{top:70px;padding:6px 12px;max-width:85%}#tutorial-objective-container h4{font-size:.9em;margin-bottom:5px}#tutorial-objective-container p{font-size:.85em;line-height:1.3}}.wave-theme-overlay{position:fixed;top:25%;left:50%;padding:1.5rem 3rem;background-color:#000000bf;border:2px solid #ffcc00;border-radius:10px;color:#fff;font-family:Chikn_Font_Fredoka,Fredoka,sans-serif;text-align:center;pointer-events:none;opacity:0;transform:translate(-50%) scale(.8);transition:opacity .5s ease-out,transform .5s ease-out}.wave-theme-overlay.animate{animation:waveThemeFadeInOut 4s ease-in-out forwards}.wave-theme-overlay h2{margin:0;font-size:3rem;font-weight:700;text-shadow:2px 2px 4px #000;color:#fc0}@keyframes waveThemeFadeInOut{0%{opacity:0;transform:translate(-50%) scale(.8)}15%{opacity:1;transform:translate(-50%) scale(1.05)}25%{transform:translate(-50%) scale(1)}85%{opacity:1;transform:translate(-50%) scale(1)}to{opacity:0;transform:translate(-50%) scale(.9)}}#towerOverlayPanel{position:fixed;top:5%;left:1%;width:98%;height:90%;max-width:1200px;margin-left:auto;margin-right:auto;background-color:#0f121659;color:#e0e0e0;border:2px solid #555;border-radius:8px;display:none;flex-direction:column;padding:15px 20px;box-sizing:border-box;box-shadow:0 5px 20px #0009;overflow:hidden}#towerOverlayPanel.visible{display:flex}#towerOverlayHeader{display:flex;justify-content:space-between;align-items:center;margin-bottom:15px;padding-bottom:10px;border-bottom:1px solid #444;flex-shrink:0}#towerOverlayHeader h4{margin:0;color:#fc0;font-size:1.4em}#towerOverlayCloseButton{background:#666;color:#fff;border:none;border-radius:50%;cursor:pointer;width:30px;height:30px;line-height:30px;text-align:center;font-weight:700;font-size:18px;transition:background-color .2s ease;padding:0}#towerOverlayCloseButton:hover{background:#888}#towerOverlayContent{flex-grow:1;overflow-y:auto;padding-right:8px;margin-right:-8px}#towerOverlayContent::-webkit-scrollbar{width:8px}#towerOverlayContent::-webkit-scrollbar-track{background:#2a2a2a80;border-radius:4px}#towerOverlayContent::-webkit-scrollbar-thumb{background:#555;border-radius:4px;border:1px solid #2a2a2a}#towerOverlayContent::-webkit-scrollbar-thumb:hover{background:#777}.tower-accordion-section{margin-bottom:12px;border:1px solid #404045;border-radius:4px;background-color:#14161959}.tower-accordion-section summary{padding:12px 18px;cursor:pointer;font-weight:700;color:#ddd;background-color:#191c2073;border-bottom:1px solid #404045;border-radius:3px 3px 0 0;list-style:none;position:relative;transition:background-color .2s ease;font-size:1.1em}.tower-accordion-section summary:hover{background-color:#46464be6}.tower-accordion-section summary::-webkit-details-marker{display:none}.tower-accordion-section summary:before{content:"▶";position:absolute;left:10px;top:50%;transform:translateY(-50%) rotate(0);font-size:.8em;color:#888;transition:transform .2s ease}.tower-accordion-section[open]>summary{border-bottom:1px solid #404045;border-radius:3px 3px 0 0}.tower-accordion-section[open]>summary:before{transform:translateY(-50%) rotate(90deg)}.tower-section-content{padding:10px 5px 10px 10px}.tower-rarity-tier-row{margin-bottom:15px;padding-left:10px}.tower-rarity-tier-row:last-child{margin-bottom:5px}h5.tower-row-header{font-size:.9em;color:#ddd;margin:0 0 8px;padding:4px 10px;display:inline-block;border-radius:4px;text-transform:uppercase;letter-spacing:1px;font-weight:400}h5.rarity-common{background-color:#96969666;border-left:3px solid #ccc}h5.rarity-nice{background-color:#64b4ff66;border-left:3px solid #64b5f6}h5.rarity-rare{background-color:#7864dc80;border-left:3px solid #9575cd}h5.rarity-elite{background-color:#c83ce180;border-left:3px solid #f06292}h5.rarity-legendary{background-color:#ffb42899;color:#111;border-left:3px solid #ffb74d}h5.tier-smol{background-color:#c8c86466;border-left:3px solid #fff176}h5.tier-normie{background-color:#78c87866;border-left:3px solid #aed581}h5.tier-bigr{background-color:#6496dc80;border-left:3px solid #90caf9}h5.tier-chonk{background-color:#c864c880;border-left:3px solid #ce93d8}h5.tier-giga{background-color:#dc646499;color:#111;border-left:3px solid #ef9a9a}h5.rarity-unknown,h5.tier-unknown{background-color:#50505066;border-left:3px solid #999}.tower-horizontal-scroller{overflow-x:auto;white-space:nowrap;padding-bottom:10px}.tower-horizontal-scroller::-webkit-scrollbar{height:8px}.tower-horizontal-scroller::-webkit-scrollbar-track{background:#2a2a2a80;border-radius:4px}.tower-horizontal-scroller::-webkit-scrollbar-thumb{background:#555;border-radius:4px;border:1px solid #2a2a2a}.tower-horizontal-scroller::-webkit-scrollbar-thumb:hover{background:#777}.tower-button-html{display:inline-flex;flex-direction:column;align-items:center;width:105px;height:auto;min-height:170px;background-color:#191c2080;border:1px solid #555;border-radius:6px;padding:8px 5px 5px;margin:0 10px 5px 0;cursor:pointer;vertical-align:top;transition:background-color .2s ease,border-color .2s ease,transform .1s ease;box-sizing:border-box;text-align:center;white-space:normal;position:relative;overflow:hidden}.tower-button-html:hover:not(:disabled){background-color:#4c4c53;border-color:#888;transform:translateY(-2px)}.tower-button-html:disabled{cursor:not-allowed;opacity:.6;background-color:#28282d;filter:grayscale(80%);transform:none}.tower-button-name{font-size:11px;font-weight:700;color:#e8e8e8;width:100%;padding:0 2px;box-sizing:border-box;margin-bottom:4px;line-height:1.25;max-height:2.5em;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;line-clamp:2;flex-shrink:0}.tower-button-image{max-width:90%;max-height:75px;display:block;margin:0 auto 5px;object-fit:contain;flex-shrink:0}.tower-button-info{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;width:100%;flex-grow:1;flex-shrink:0;padding:2px 2px 0}.tower-rarity,.tower-tier{font-size:10px;font-weight:700;color:#fff;padding:2px 5px;border-radius:3px;width:fit-content;text-transform:uppercase;letter-spacing:.5px;margin-bottom:5px}.rarity-common{background-color:#969696b3}.rarity-nice{background-color:#64b4ffb3}.rarity-rare{background-color:#7864dccc}.rarity-elite{background-color:#c83ce1cc}.rarity-legendary{background-color:#ffb428e6;color:#111}.tier-smol{background-color:#c8c864b3}.tier-normie{background-color:#78c878b3}.tier-bigr{background-color:#6496dccc}.tier-chonk{background-color:#c864c8cc}.tier-giga{background-color:#dc6464e6;color:#111}.tower-stat-container{display:flex;align-items:center;width:100%;margin-bottom:3px;padding:0 5px;box-sizing:border-box;font-size:11px;color:#bcbcbc}.tower-stat-container:last-child{margin-bottom:0}.tower-stat-icon{width:13px;height:13px;object-fit:contain;flex-shrink:0;margin-right:5px}.tower-stat-container span{text-align:left;flex-grow:1}.tower-dps-container{margin-bottom:4px}.tower-dps-container span{font-size:12px;color:#ddd}.tower-cost-container{margin-bottom:6px}.tower-cost-container span{font-size:13px;font-weight:700;color:#fd4;order:1}.tower-cost-container .tower-stat-icon{order:2;margin-left:4px;margin-right:0}.tower-effect-icons{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;width:100%;padding:2px 5px;box-sizing:border-box;margin-top:4px;min-height:18px;flex-shrink:0;gap:3px}.tower-effect-icons img.tower-effect-icon{width:16px;height:16px;background-color:#0003;border-radius:3px;padding:1px;vertical-align:middle;margin:0}.no-towers-message{padding:20px;text-align:center;color:#888;font-style:italic}#towerInteractionPanel{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%);background-color:#2a2a2e;border:2px solid #555;border-radius:8px;padding:15px;min-width:250px;max-width:calc(100vw - 40px);box-shadow:0 4px 15px #0009;display:none;color:#eee;font-size:.9rem}#towerInteractionPanel.visible{display:block}#interactionPanelHeader{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px;border-bottom:1px solid #444;padding-bottom:5px}#interactionPanelHeader h4{margin:0;font-size:1.1em}#interactionPanelHeader #interactionPanelCloseButton{background:#666;color:#fff;border:none;border-radius:50%;cursor:pointer;width:26px;height:26px;line-height:26px;text-align:center;font-weight:700;font-size:16px;padding:0;transition:background-color .2s ease}#interactionPanelHeader #interactionPanelCloseButton:hover{background:#888}#interactionPanelContent{max-height:60vh;overflow-y:auto;padding-right:5px}#interactionPanelContent button{display:flex;align-items:center;width:100%;padding:8px 10px;margin-bottom:8px;background-color:#3a3a3e;color:#fff;border:1px solid #555;border-radius:4px;cursor:pointer;text-align:left;transition:background-color .2s;box-sizing:border-box;overflow:hidden}#interactionPanelContent button:hover:not(:disabled){background-color:#4caf50;border-color:#4caf50}#interactionPanelContent button.recycle-button{background-color:#70342e}#interactionPanelContent button.recycle-button:hover:not(:disabled){background-color:#f44336;border-color:#f44336}#interactionPanelContent button:disabled{background-color:#424242;color:#888;border-color:#505050;cursor:not-allowed;opacity:.7}#interactionPanelError{color:#ff6b6b;font-size:.85em;margin-top:10px;text-align:center;padding:5px;border-radius:3px;background-color:#c800001a}.tower-info-section{margin-bottom:15px;padding-bottom:10px;border-bottom:1px solid #444}.tower-info-section:last-of-type{border-bottom:none;margin-bottom:10px}.tower-info-section h5{margin-top:0;margin-bottom:8px;font-size:1em;color:#ccc}.tower-info-section strong{display:block;margin-bottom:3px;color:#fff;font-size:1.05em}.tower-info-section ul{list-style-type:none;padding-left:10px;margin:2px 0 5px;font-size:.9em}.tower-info-section li{padding-bottom:2px;color:#bbb}.tower-info-section li.tile-bonus-stat{color:#66bb6a;font-style:italic}#interactionPanelContent button{display:flex;align-items:center}#interactionPanelContent button img{width:auto;height:100%;margin-right:8px;flex-shrink:0}#interactionPanelContent button.upgrade-button:hover:not(:disabled){background-color:#4caf50;border-color:#4caf50}#legal-footer{bottom:10px;left:10px}#legal-footer button{padding:6px 12px;background-color:#323232b3;color:#ccc;border:1px solid #555;border-radius:4px;cursor:pointer;font-size:12px;margin-right:10px;transition:background-color .2s ease}#legal-footer button:hover:not(:disabled){background-color:#555c}.legal-panel{position:fixed;bottom:0;left:0;width:100%;background-color:#0f0f0ff7;color:#ccc;padding:25px 35px 30px;box-sizing:border-box;font-size:13px;max-height:85vh;overflow-y:auto;visibility:hidden;opacity:0;transition:opacity .3s ease-in-out,visibility 0s .3s;line-height:1.5;border-top:3px solid #505050;box-shadow:0 -3px 15px #0006}.legal-panel.visible{visibility:visible;opacity:1;transition:opacity .3s ease-in-out,visibility 0s 0s}.legal-panel h4{margin-top:0;margin-bottom:15px;color:#eee;border-bottom:1px solid #555;padding-bottom:10px;font-size:1.3em}.legal-panel p{margin:1em 0}.legal-panel a{color:#9cf;text-decoration:none}.legal-panel a:hover{text-decoration:underline}.legal-panel pre{white-space:pre-wrap;word-wrap:break-word;font-family:Consolas,Courier New,monospace;font-size:.9em;background-color:#28282899;padding:15px;border-radius:4px;border:1px solid #383838;color:#bbb}.legal-panel .close-button{position:absolute;top:18px;right:22px;background:#777;color:#fff;border:none;border-radius:50%;cursor:pointer;width:28px;height:28px;line-height:28px;text-align:center;font-weight:700;font-size:18px;transition:background-color .2s ease,transform .1s ease;padding:0}.legal-panel .close-button:hover{background:#999;transform:scale(1.1)}#towerTooltip{position:fixed;display:none;background-color:#0f0f19f5;color:#ddd;border:1px solid #778;border-radius:6px;padding:12px 18px;font-size:12px;pointer-events:none;max-width:300px;white-space:normal;box-shadow:3px 3px 10px #00000080;line-height:1.45;transition:opacity .1s ease-in-out;opacity:1}#towerTooltip h5{margin:0 0 10px;padding-bottom:8px;border-bottom:1px solid #556;color:#fd4;font-size:1.15em}#towerTooltip strong{color:#e0e0e0;display:block;margin-top:6px;margin-bottom:2px}#towerTooltip ul{margin:2px 0 8px;padding-left:0;list-style-type:none;color:#ccc}#towerTooltip ul li{margin-bottom:3px}#towerTooltip ul ul{margin-top:4px;margin-bottom:4px;margin-left:15px;list-style-type:circle;color:#aaa;font-size:.95em}#towerTooltip hr{border:none;border-top:1px dashed #445;margin:10px 0}.rarity-common span,.tier-smol span{color:#bdbdbd}.rarity-nice span,.tier-normie span{color:#81c784}.rarity-rare span,.tier-bigr span{color:#64b5f6}.rarity-elite span,.tier-chonk span{color:#ba68c8}.rarity-legendary span,.tier-giga span{color:#ffb74d;font-weight:700}span.rarity-legendary,span.tier-giga{background-color:#ffb42826;padding:1px 4px;border-radius:3px}#manaInfoModalOverlay .menu-content{text-align:left;font-size:clamp(.8em,1.9vw,.9em)}#manaInfoModalOverlay h4{color:#fc0;font-size:clamp(1em,2.5vw,1.2em);margin-top:15px;margin-bottom:8px;padding-bottom:5px;border-bottom:1px solid rgba(255,204,0,.2)}#manaInfoModalOverlay h4:first-child{margin-top:0}#manaInfoModalOverlay .mana-source-list{list-style-type:none;padding-left:0;margin-bottom:15px}#manaInfoModalOverlay .mana-source-list li{padding:4px 0;border-bottom:1px dotted #444950;display:flex;justify-content:space-between;align-items:center}#manaInfoModalOverlay .mana-source-list li:last-child{border-bottom:none}#manaInfoModalOverlay .mana-source-list .source-name{font-weight:500;color:#e0e0e0}#manaInfoModalOverlay .mana-source-list .source-rate{color:#76c7c0;font-weight:700}#manaInfoModalOverlay .total-mana-rate{font-size:1.1em;font-weight:700;color:#fd4;text-align:right;padding-top:10px;margin-top:10px;border-top:1px solid #555c66}#tileDetailModal .modal-content{width:95vw;max-width:700px;max-height:85dvh;padding:0}#tileDetailModal .close-menu-btn{position:absolute;top:10px;right:10px;z-index:10}#tileDetailModal .menu-header{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:5px 15px;padding-right:45px}#tileDetailModal .menu-header h2{flex-grow:1}#tileDetailInfoPanel{order:3;width:100%;padding:5px 15px 12px;text-align:center;background:none;border:none;border-top:1px solid #4a4a52}#tileDetailInfoPanel h4{display:none}#tileDetailInfoPanel p{margin:2px 0;font-size:.9em;color:#ccc}.tile-info-panel .bonus{color:#fc0;font-weight:700}.tile-detail-layout{display:flex;flex-direction:column;align-items:center;gap:15px;padding:15px;width:100%;box-sizing:border-box}.sub-slot-container{display:grid;grid-template-columns:repeat(3,65px);grid-template-rows:repeat(3,65px);grid-template-areas:". top ." "left . right" ". bottom .";gap:10px;width:215px;height:215px;flex-shrink:0}.action-panel-container{width:100%;flex-grow:1;min-height:200px;max-height:45vh;overflow-y:auto;background-color:#0f121640;border-radius:8px;padding:15px;display:flex;flex-direction:column}#tileDetailModal .modal-footer{margin-top:auto;padding:15px 0 0;border-top:1px solid #444;background:none;flex-shrink:0}@media (min-width: 768px){#tileDetailModal .modal-content{padding:0}#tileDetailModal .menu-header{flex-wrap:nowrap}#tileDetailInfoPanel{order:2;width:auto;text-align:left;border:none;padding:0 20px}.tile-detail-layout{flex-direction:row;align-items:flex-start;gap:20px;padding:20px;margin-top:0}.sub-slot-container{width:270px;height:270px;grid-template-columns:repeat(3,80px);grid-template-rows:repeat(3,80px);gap:15px}.action-panel-container{width:auto;min-height:280px;max-height:60vh}}.sub-slot-button{background-color:#0f12164d;border:2px solid #555;border-radius:12px;cursor:pointer;transition:all .2s ease-in-out;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:8px;position:relative;overflow:hidden}.sub-slot-button:hover{background-color:#ffffff1a;border-color:#999}.sub-slot-button.selected{border-color:#fc0;box-shadow:0 0 10px #ffcc00b3}.sub-slot-button h4{margin:0 0 5px;font-size:1em;color:#ccc;pointer-events:none}.sub-slot-button span{font-size:.8em;color:#999;pointer-events:none}.sub-slot-button.placeable{border-color:#28a745}.sub-slot-button.placeable:hover{background-color:#28a7454d}.sub-slot-button.not-placeable{border-color:#dc3545;cursor:not-allowed;opacity:.6}.sub-slot-button.occupied img{width:90%;height:90%;object-fit:contain;pointer-events:none}.sub-slot-button .stack-count{position:absolute;bottom:5px;right:8px;background-color:#000c;color:#fff;padding:2px 8px;border-radius:12px;font-size:.9em;font-weight:700;border:1px solid #555;pointer-events:none}.action-panel-container .placeholder-text{text-align:center;color:#888;margin-top:50px;font-style:italic}.tower-build-list-in-modal{display:flex;flex-direction:column;gap:15px}.tower-build-category h5{margin:15px 0 8px;padding-bottom:5px;border-bottom:1px solid #555;text-transform:capitalize;color:#ddd}.tower-build-category:first-child h5{margin-top:0}.tower-build-button{background:#2a2a2a;border:1px solid #555;color:#fff;padding:8px;border-radius:8px;cursor:pointer;display:flex;align-items:center;gap:10px;width:100%;text-align:left;transition:background-color .2s,border-color .2s}.tower-build-button:hover:not(:disabled){background:#383838}.tower-build-button:disabled{opacity:.4;cursor:not-allowed}.tower-build-button img{width:40px;height:40px;object-fit:contain;flex-shrink:0}.tower-build-button .tower-name{font-size:.9em;flex-grow:1}.tower-build-button .cost{font-weight:700;color:#fc0;font-size:1em}.tower-build-button.tutorial-disabled{opacity:.3;cursor:not-allowed;filter:grayscale(100%)}.tower-build-button.tutorial-disabled:hover{background-color:#2a2a2a}.action-button{margin-top:10px;width:100%}.action-button.recycle-button{background-color:#5a2d2d;border-color:#8f4848}.action-button.recycle-button:hover{background-color:#7a3c3c}.confirmation-container{display:flex;justify-content:flex-end;align-items:center;gap:15px;padding:15px;border-top:1px solid #444;background-color:#0f12164d}.confirmation-container .menu-button{padding:0;font-size:2em;min-width:80px;height:50px;border-radius:8px;line-height:50px;text-align:center}.confirmation-container .confirm-button{background-color:#28a745;border-color:#1e7e34}.confirmation-container .confirm-button:hover{background-color:#218838}.confirmation-container .cancel-button{background-color:#dc3545;border-color:#b21f2d}.confirmation-container .cancel-button:hover{background-color:#c82333}.confirmation-container .confirm-button span:before{content:"✓"}.confirmation-container .cancel-button span:before{content:"×"}.confirmation-container .menu-button span{font-family:Arial,sans-serif}#tileDetailModal.tile-entity-mode .sub-slot-container{display:none}#tileDetailModal.tile-entity-mode .action-panel-container{width:100%;max-height:65vh}#tileDetailModal.giga-mode .sub-slot-container{grid-template-columns:1fr;grid-template-rows:1fr;grid-template-areas:"main"}#tileDetailModal.giga-mode .giga-display{border-color:#fc0;box-shadow:0 0 15px #fc0,inset 0 0 10px #ffcc0080;cursor:default;background:radial-gradient(circle,#fc03,#00000080 70%)}#tileDetailModal.giga-mode .giga-display:hover{background:radial-gradient(circle,#ffcc0040,#00000080 70%)}#tileDetailModal.giga-mode .giga-display img{transform:scale(1.1)}.modal-footer{padding:10px 20px;border-top:1px solid #444;background-color:#0f121640;margin-top:auto}.auto-close-container{display:flex;align-items:center;gap:8px;font-size:.9em;color:#ccc}.auto-close-container input{cursor:pointer;width:16px;height:16px}.auto-close-container label{cursor:pointer;-webkit-user-select:none;user-select:none}.forge-progress-container{margin-bottom:12px;padding:8px;background-color:#0f12164d;border-radius:6px;border:1px solid #444}.progress-labels{display:flex;justify-content:space-between;font-size:.8em;color:#ccc;margin-bottom:6px;padding:0 2px}.progress-labels.tier-labels{font-weight:700;font-size:.9em}.progress-labels .current-tier{color:#b0b8c8}.progress-labels .next-tier{color:#fc0}.progress-labels.mana-values{justify-content:center;font-size:.85em;margin-top:6px;margin-bottom:0;color:#e0e0e0}.progress-bar{width:100%;height:12px;background-color:#222;border-radius:6px;overflow:hidden;border:1px solid #111}.progress-bar-fill{height:100%;background:linear-gradient(90deg,#eaa200,#fd4);transition:width .4s ease-out;border-radius:5px}.note.forge-warning{font-size:.8em;font-style:italic;color:#ff9800;margin:8px 0;padding:6px;background-color:#5032004d;border-left:3px solid #ff9800}
