.sheet-overlay{top:0;background-color:rgba(0,0,0,.5);z-index:999;animation:fadeIn .3s ease-out}.cypher-info-sheet,.sheet-overlay{position:fixed;left:0;right:0;bottom:0}.cypher-info-sheet{background-color:#2a2a2a;border-top-left-radius:20px;border-top-right-radius:20px;max-height:80vh;min-height:60vh;z-index:1000;transform:translateY(100%);transition:transform .4s cubic-bezier(.25,.46,.45,.94);overflow:hidden;display:flex;flex-direction:column}.cypher-info-sheet.open:not(.dragging){transform:translateY(0)}.cypher-info-sheet.dragging{transition:none}.sheet-handle{width:40px;height:4px;background-color:#666;border-radius:2px;cursor:grab;padding:6px;margin:4px auto;transition:background-color .2s ease}.sheet-handle:hover{background-color:#888}.sheet-handle:active{cursor:grabbing;background-color:#aaa}.sheet-content{padding:20px;flex:1;overflow-y:auto;position:relative;min-height:0}.sheet-close-button{position:absolute;top:10px;right:20px;width:30px;height:30px;background-color:#f44;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px;font-weight:700;cursor:pointer;z-index:1001}.sheet-close-button:hover{background-color:#f66}.info-sheet-cypher-display{display:flex;flex-direction:column;gap:20px;padding-top:20px}.info-sheet-cypher-header{display:flex;flex-direction:row;align-items:flex-start;gap:20px;margin-bottom:20px}.info-sheet-cypher-image{position:relative;width:60%;max-width:400px;aspect-ratio:1/1;flex-shrink:0;border-radius:20px;overflow:hidden;border:5px solid hsla(0,0%,100%,.6);background:rgba(0,0,0,.3);box-shadow:0 10px 20px rgba(0,0,0,.5)}.info-cypher-animation,.info-sheet-cypher-image img{width:100%;height:100%;object-fit:cover}.info-sheet-cypher-info{display:flex;flex-direction:column;justify-content:center;flex:1}.info-sheet-cypher-name{position:absolute;top:15px;left:10px;font-size:1.2rem;color:#000;z-index:10;max-width:calc(100% - 20px);word-wrap:break-word}.info-sheet-cypher-level,.info-sheet-cypher-nature{margin-bottom:5px}.info-sheet-cypher-level,.info-sheet-cypher-nature,.info-sheet-cypher-rarity{font-family:BalooTamma-Regular,sans-serif;font-size:1rem;opacity:.8}.info-sheet-cypher-stats-section{display:flex;justify-content:center;margin-bottom:20px}.info-sheet-cypher-square{width:90%;aspect-ratio:1/1;position:relative}.cypher-stat-graph,.info-sheet-cypher-square .cypher-stat-graph{width:100%;height:100%}.cypher-stat-graph{display:flex;align-items:center;justify-content:center}.cypher-stat-graph svg{max-width:100%;max-height:100%}.tourney-sheet-details-table-container{width:100%}.tourney-sheet-details-table{width:100%;border-collapse:collapse;background-color:#333;border-radius:8px;overflow:hidden}.tourney-sheet-details-table td,.tourney-sheet-details-table th{padding:12px;text-align:left;border-bottom:1px solid #555}.tourney-sheet-details-table th{background-color:#444;font-weight:700}.tourney-sheet-details-table tr:last-child td{border-bottom:none}.sheet-green-circle{width:60px;height:60px;background-color:#4caf50;border-radius:50%;border:2px solid #fff;margin-top:20px;cursor:pointer}.sheet-green-circle:hover{background-color:#66bb6a}.sheet-footer{position:sticky;bottom:0;background-color:#2a2a2a;padding:16px 20px;border-top:1px solid #444;margin:0 -20px -20px;display:flex;justify-content:center}.sheet-footer-buttons{display:flex;gap:12px;width:100%;max-width:400px;justify-content:center}.sheet-equip-button{height:48px;border:none;border-radius:20px;font-size:20px;font-weight:700;cursor:pointer;transition:all .2s ease;text-transform:uppercase;letter-spacing:.5px;color:#fff;flex:1}.sheet-footer-buttons .sheet-equip-button{width:auto;flex:1}.sheet-equip-button.equip{background-color:#01ddba;width:200px}.sheet-equip-button.equip:hover{background-color:#00c4a1}.sheet-equip-button.unequip{background-color:#ff5d5a}.sheet-equip-button.unequip:hover{background-color:#ff4542}.sheet-moves-button{height:48px;border:none;border-radius:20px;font-size:20px;font-weight:700;cursor:pointer;transition:all .2s ease;text-transform:uppercase;letter-spacing:.5px;color:#fff;background-color:#6c5ce7;flex:1}.sheet-moves-button:hover{background-color:#5a4fcf}@media (max-width:768px){.cypher-info-sheet{max-height:80vh}.sheet-content{padding:15px}.sheet-cypher-header{gap:12px}.sheet-cypher-image{width:95px;height:130px}.sheet-cypher-name{font-size:20px}.sheet-cypher-square{width:180px;height:180px}.sheet-footer{padding:12px 15px;margin:0 -15px -15px}.sheet-footer-buttons{gap:8px}.sheet-equip-button,.sheet-moves-button{height:44px;font-size:18px}}.selection-limit-container{text-align:center;padding:16px;background-color:hsla(0,100%,71%,.1);border-radius:12px;border:1px solid hsla(0,100%,71%,.3);width:100%}.selection-limit-message{color:#ff6b6b;font-size:16px;font-weight:700;margin:0 0 4px}.selection-limit-hint{color:#faa;font-size:12px;margin:0;opacity:.8}.info-sheet-action-btn{padding:10px 20px;border:none;border-radius:8px;font-family:BalooTamma-Regular,sans-serif;font-size:.95rem;font-weight:600;cursor:pointer;transition:all .2s ease;box-shadow:0 2px 4px rgba(0,0,0,.2);min-width:100px}.info-sheet-action-btn:hover{transform:translateY(-2px);box-shadow:0 4px 8px rgba(0,0,0,.3)}.info-sheet-action-btn:active{transform:translateY(0);box-shadow:0 2px 4px rgba(0,0,0,.2)}.info-sheet-action-btn:disabled{opacity:.5;cursor:not-allowed;transform:none}.info-sheet-equip-btn{background:linear-gradient(135deg,#00ddab,#028170);color:#fff}.info-sheet-equip-btn:hover:not(:disabled){background:linear-gradient(135deg,#01edb9,#029580)}.info-sheet-unequip-btn{background:linear-gradient(135deg,#ff6b6b,#c92a2a);color:#fff}.info-sheet-unequip-btn:hover:not(:disabled){background:linear-gradient(135deg,#ff8787,#e03131)}.info-sheet-moves-btn{background:linear-gradient(135deg,#4a90e2,#2563eb);color:#fff}.info-sheet-moves-btn:hover:not(:disabled){background:linear-gradient(135deg,#5ba4ff,#3b82f6)}@media (max-width:768px){.info-sheet-cypher-image{width:200px;height:297px}}.modalOverlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:rgba(0,0,0,.85);justify-content:center;z-index:1000;backdrop-filter:blur(5px);animation:fadeIn .3s ease-out}.modalContent,.modalOverlay{display:flex;align-items:center}.modalContent{background:linear-gradient(180deg,#1a1b26,#13141f);border:1px solid #3d3f50;border-radius:24px;padding:32px 24px;width:90%;max-width:360px;flex-direction:column;box-shadow:0 10px 40px rgba(0,0,0,.6),0 0 0 1px hsla(0,0%,100%,.05);animation:slideUp .3s cubic-bezier(.175,.885,.32,1.275)}.modalTitle{color:#fff;font-size:24px;font-weight:800;margin:0 0 16px;text-align:center;text-transform:uppercase;letter-spacing:.5px;background:linear-gradient(135deg,#fff,#a5a6c5);-webkit-background-clip:text;-webkit-text-fill-color:transparent}.modalText{color:#a5a6c5;font-size:15px;line-height:1.5;text-align:center;margin:0 0 24px}.potion-reward-container{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1100;background-color:#fcf5e7;background-image:url(/wallpaper.png);background-repeat:repeat;background-size:500px 800px;margin:0 auto;display:flex;flex-direction:column;align-items:center;justify-content:center;transform:translateX(-100%);animation:slideIn .5s forwards}.potion-reward-title{font-size:3rem;color:#fff;margin-bottom:20px}.potion-reward-circle{width:250px;height:250px;border-radius:50%;background-color:#fff;margin-bottom:20px}.potion-reward-text{font-size:2.1rem;color:#000;margin-top:65px;margin-bottom:40px}.potion-reward-claim-button{position:absolute;bottom:20px;background-color:#fff;padding:10px 20px;border:none;cursor:pointer;font-size:1rem;color:#000}@keyframes slideIn{to{transform:translateX(0)}}@keyframes slideOut{to{transform:translateX(-100%)}}.potion-reward-title span{display:inline-block;animation:wave 1.5s ease-in-out infinite;animation-fill-mode:both}@keyframes wave{0%,to{transform:translateY(0) scale(1);color:#806b4e}25%{transform:translateY(-5px) scale(1.1);color:#735e43}50%{transform:translateY(0) scale(1);color:#806b4e}75%{transform:translateY(5px) scale(.9);color:#735e43}to{transform:translateY(0) scale(1);color:#806b4e}}.leaderboard-container{background-image:url(/wallpaper.png);background-size:cover;background-color:#f5eada;border-radius:8px;width:100%;height:100vh;box-sizing:border-box;padding-top:30px;z-index:1001;display:flex;flex-direction:column;justify-content:flex-start;position:relative}.leaderboard-title{text-align:center;margin-bottom:20px;font-size:24px;color:#333}.leaderboard-close-button{position:absolute;top:15px;left:10px;width:50px;height:50px;background:url(/right_arrow.png) no-repeat 50%;background-size:contain;border:none;cursor:pointer;transform:scaleX(-1)}.leaderboard-table{display:flex;flex-direction:column;flex-grow:1;overflow-y:auto}.leaderboard-row{display:flex;justify-content:space-between;padding:10px;box-sizing:border-box;border-bottom:1px solid #ccc;color:#333}.leaderboard-header{font-weight:700}.leaderboard-column{flex:1;text-align:center}.leaderboard-column:first-child{flex:0.3}.leaderboard-column:not(:first-child){flex:1}.leaderboard-footer{display:flex;justify-content:space-between;padding:10px;background-color:#f5eada;color:#333;box-sizing:border-box;border:none;width:100%;box-shadow:0 -2px 5px rgba(0,0,0,.1);position:absolute;bottom:0}#__next,body,html{margin:0;padding:0;width:100%;height:100%;overflow:hidden}.sale-modal-overlay{position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,.5);display:flex;align-items:center;justify-content:center;z-index:1000}.sale-modal-content{border-radius:8px;position:relative;width:80%;height:70%;max-width:500px;border:4px solid #de9e4a;text-align:center;overflow:hidden}.sale-close-button{position:absolute;top:10px;right:10px;font-size:18px;cursor:pointer;z-index:1}.modal-image img{width:100%;height:100%;height:auto;margin-bottom:20px}.sale-modal-image{width:100%;height:100%;background-image:url(/sale_bg.png);background-size:cover;background-position:50%;background-repeat:no-repeat;margin-bottom:20px;position:relative}.sale-modal-image:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;background-color:rgba(0,0,0,.6)}.modal-text-container{position:absolute;top:0;left:0;right:0;bottom:0;display:flex;flex-direction:column;align-items:center;justify-content:center}.sale-modal-text{font-size:30px;line-height:1.5;margin-bottom:20px;color:#fff;text-shadow:1px 1px 2px rgba(0,0,0,.5)}.notify-button{margin-top:20px;padding:10px 20px;font-size:16px;color:#000;background-color:#01ddba;border:none;border-radius:5px;cursor:pointer;transition:background-color .3s}.notify-button:hover{background-color:#0056b3}.fullscreen-loader-overlay{position:fixed;inset:0;width:100vw;height:100vh;display:flex;align-items:center;justify-content:center;background-color:#fcf5e7;z-index:3000;transition:opacity 0ms ease,visibility 0ms ease}.fullscreen-loader-overlay.hidden{opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility .2s ease}.fullscreen-loader-overlay.visible{opacity:1;visibility:visible;pointer-events:auto}.loader{width:72px;aspect-ratio:1;background-image:url(/v_gem.png);background-size:contain;background-repeat:no-repeat;background-position:50%;transform-origin:center;animation:spin 6s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}.debug-toast-button{position:fixed;bottom:20px;right:20px;z-index:9999;background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;border:none;border-radius:50px;padding:12px 20px;font-size:14px;font-weight:700;cursor:pointer;box-shadow:0 4px 15px rgba(102,126,234,.4);transition:all .3s ease;user-select:none}.debug-toast-button:hover{transform:scale(1.05);box-shadow:0 6px 20px rgba(102,126,234,.6)}.debug-toast-button:active{transform:scale(.95)}.debug-toast-panel{position:fixed;bottom:80px;right:20px;width:400px;max-width:calc(100vw - 40px);max-height:500px;background:rgba(26,26,26,.98);backdrop-filter:blur(10px);border-radius:12px;box-shadow:0 8px 32px rgba(0,0,0,.5);z-index:9998;display:flex;flex-direction:column;overflow:hidden;animation:slideUp .3s ease-out}.debug-toast-header{display:flex;justify-content:space-between;align-items:center;padding:16px;background:#1a1a1a;border-bottom:1px solid #333}.debug-toast-header h3{margin:0;color:#fff;font-size:16px;font-weight:700}.debug-toast-actions{display:flex;gap:8px}.debug-toast-actions button{background:#333;color:#fff;border:none;padding:6px 12px;border-radius:6px;cursor:pointer;font-size:12px;transition:background .2s}.debug-toast-actions button:hover{background:#444}.debug-toast-list{overflow-y:auto;flex:1;padding:8px}.debug-toast-item{background:#2a2a2a;border-radius:8px;padding:12px;margin-bottom:8px;cursor:pointer;transition:all .2s;border-left:4px solid transparent}.debug-toast-item:hover{background:#333;transform:translateX(4px)}.debug-toast-item.debug-toast-error{border-left-color:#ff6b6b}.debug-toast-item.debug-toast-warning{border-left-color:#ffa726}.debug-toast-item.debug-toast-info{border-left-color:#42a5f5}.debug-toast-item-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:6px}.debug-toast-time{color:#888;font-size:11px;font-family:monospace}.debug-toast-type{font-size:10px;font-weight:700;padding:2px 8px;border-radius:4px;font-family:monospace}.debug-toast-type.error{background:#ff6b6b;color:#fff}.debug-toast-type.warning{background:#ffa726;color:#fff}.debug-toast-type.info{background:#42a5f5;color:#fff}.debug-toast-message{color:#ddd;font-size:13px;font-family:monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.debug-toast-modal{position:fixed;top:0;left:0;right:0;bottom:0;background:rgba(0,0,0,.8);z-index:10000;display:flex;align-items:center;justify-content:center;padding:20px;animation:fadeIn .2s ease-out}.debug-toast-modal-content{background:#1a1a1a;border-radius:12px;max-width:600px;width:100%;max-height:80vh;display:flex;flex-direction:column;box-shadow:0 8px 32px rgba(0,0,0,.5);animation:slideUpModal .3s ease-out}@keyframes slideUpModal{0%{opacity:0;transform:translateY(30px)}to{opacity:1;transform:translateY(0)}}.debug-toast-modal-header{display:flex;justify-content:space-between;align-items:center;padding:16px 20px;border-bottom:1px solid #333}.debug-toast-modal-header h3{margin:0;color:#fff;font-size:18px}.debug-toast-modal-header button{background:transparent;color:#888;border:none;font-size:24px;cursor:pointer;padding:0;width:32px;height:32px;display:flex;align-items:center;justify-content:center;transition:color .2s}.debug-toast-modal-header button:hover{color:#fff}.debug-toast-modal-body{padding:20px;overflow-y:auto;flex:1}.debug-toast-field{margin-bottom:16px}.debug-toast-field strong{display:block;color:#ffa726;margin-bottom:8px;font-size:14px}.debug-toast-pre{background:#0a0a0a;color:#ddd;padding:12px;border-radius:6px;font-size:12px;font-family:Courier New,monospace;overflow-x:auto;white-space:pre-wrap;word-break:break-word;margin:0;border:1px solid #333}.debug-toast-modal-footer{padding:16px 20px;border-top:1px solid #333;display:flex;justify-content:flex-end}.debug-toast-copy-btn{background:#4caf50;color:#fff;border:none;padding:10px 20px;border-radius:6px;font-size:14px;font-weight:700;cursor:pointer;transition:background .2s}.debug-toast-copy-btn:hover{background:#45a049}.debug-toast-copy-btn:active{transform:scale(.95)}.debug-user-info{background:#222;padding:12px;margin:8px;border-radius:8px;border:1px solid #444;max-height:300px;overflow-y:auto}.debug-user-info h4{margin:0 0 12px;color:#42a5f5;font-size:14px;font-weight:700}.debug-user-field{margin-bottom:8px;color:#ddd;font-size:12px;font-family:monospace}.debug-user-field strong{color:#ffa726;display:inline-block;min-width:120px}@media (max-width:480px){.debug-toast-panel{width:calc(100vw - 40px);bottom:70px;right:10px}.debug-toast-button{bottom:10px;right:10px}}.settings-modal-overlay{position:fixed;inset:0;z-index:1400;display:flex;align-items:flex-start;justify-content:center;padding-top:64px}.settings-content{width:min(92vw,520px);border-radius:16px;background:hsla(0,0%,100%,.85);border:1px solid rgba(0,0,0,.08);box-shadow:0 10px 30px rgba(0,0,0,.15);padding:20px 20px 24px;height:90%;max-height:90vh;overflow:auto}.settings-title{margin:0;font-size:20px;color:#222;text-align:center}.settings-section{margin-top:16px}.settings-label{display:block;margin-bottom:6px;font-weight:600;color:#333}.settings-input{width:100%;height:40px;border-radius:10px;border:1px solid rgba(0,0,0,.2);padding:8px 12px;background:#fff;color:#000}.settings-input.saved{border-color:#0e8f43;background:#e9f7ef;color:#0e8f43}.settings-error{margin-top:10px;color:#b00020}.settings-success{margin-top:8px;color:#0e8f43;font-size:14px;font-weight:600}.settings-helper-text{margin:0 0 12px;font-size:13px;color:#666;line-height:1.4}.settings-button{width:100%;height:44px;border-radius:10px;border:2px solid #3498db;background:linear-gradient(135deg,#3498db,#2980b9);color:#fff;font-size:15px;font-weight:600;cursor:pointer;transition:all .2s ease;box-shadow:0 4px 8px rgba(52,152,219,.2)}.settings-button:hover{background:linear-gradient(135deg,#2980b9,#21618c);transform:translateY(-1px);box-shadow:0 6px 12px rgba(52,152,219,.3)}.settings-button:active{transform:translateY(0);box-shadow:0 2px 4px rgba(52,152,219,.2)}.settings-button.generating,.settings-button:disabled{opacity:.6;cursor:not-allowed;transform:none}.settings-button.generating{background:linear-gradient(135deg,#95a5a6,#7f8c8d);border-color:#95a5a6}.settings-toggle-container{display:flex;align-items:center;gap:12px;cursor:pointer;user-select:none}.settings-toggle{position:relative;width:52px;height:28px;background:#ccc;border-radius:14px;transition:background .3s ease}.settings-toggle.active{background:#4caf50}.settings-toggle-slider{position:absolute;top:2px;left:2px;width:24px;height:24px;background:#fff;border-radius:12px;transition:transform .3s ease;box-shadow:0 2px 4px rgba(0,0,0,.2)}.settings-toggle.active .settings-toggle-slider{transform:translateX(24px)}.settings-toggle-label{color:#333;font-size:14px;font-weight:500}.link-code-modal-overlay{position:fixed;inset:0;z-index:1500;display:flex;align-items:center;justify-content:center;animation:fadeIn .2s ease-out}.link-code-content{width:min(90vw,420px);border-radius:20px;background:hsla(0,0%,100%,.95);border:2px solid rgba(0,0,0,.1);box-shadow:0 15px 40px rgba(0,0,0,.2);padding:32px 24px;animation:slideUp .3s ease-out}.link-code-title{margin:0 0 12px;font-size:24px;font-weight:700;color:#222;text-align:center}.link-code-description{margin:0 0 24px;font-size:14px;color:#666;text-align:center;line-height:1.5}.link-code-display-container{display:flex;align-items:center;gap:12px;margin-bottom:20px;justify-content:center}.link-code-display{font-family:Courier New,Courier,monospace;font-size:48px;font-weight:700;color:#2c3e50;letter-spacing:8px;padding:16px 24px;background:linear-gradient(135deg,#f5f7fa,#c3cfe2);border-radius:12px;border:3px solid #3498db;box-shadow:0 4px 12px rgba(52,152,219,.3);user-select:all;-webkit-user-select:all}.link-code-copy-button{width:56px;height:56px;border-radius:12px;border:2px solid rgba(0,0,0,.1);background:#fff;cursor:pointer;font-size:24px;display:flex;align-items:center;justify-content:center;transition:all .2s ease;flex-shrink:0}.link-code-copy-button:hover{background:#f8f9fa;transform:scale(1.05)}.link-code-copy-button:active{transform:scale(.95)}.link-code-copy-button.success{background:#e9f7ef;border-color:#0e8f43;color:#0e8f43}.link-code-expiry{text-align:center;font-size:16px;color:#666;font-weight:600}.link-code-time{color:#3498db;font-weight:700;font-family:Courier New,Courier,monospace}.link-code-expired{color:#e74c3c;font-weight:700}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes slideUp{0%{opacity:0;transform:translateY(20px)}to{opacity:1;transform:translateY(0)}}@media (max-width:480px){.link-code-content{padding:24px 16px}.link-code-display{font-size:36px;letter-spacing:6px;padding:12px 16px}.link-code-copy-button{width:48px;height:48px;font-size:20px}.link-code-title{font-size:20px}.link-code-description{font-size:13px}}