* { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: radial-gradient(circle at 20% 80%, rgba(139, 69, 255, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(45, 212, 191, 0.08) 0%, transparent 50%), radial-gradient(circle at 40% 40%, rgba(168, 85, 247, 0.06) 0%, transparent 50%), linear-gradient(135deg, #0f0f23 0%, #1a1a2e 100%); min-height: 100vh; color: #ffffff; display: flex; justify-content: center; align-items: flex-start; padding: 40px 20px; position: relative; overflow-x: hidden; } body::before { content: ''; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: radial-gradient(1000px circle at var(--x, 50%) var(--y, 50%), rgba(168, 85, 247, 0.03) 0%, transparent 50%); pointer-events: none; z-index: 0; } /* Global dl.png sizing - UNIVERSAL RULE */ .dl-icon { width: 22px !important; height: 22px !important; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(168, 85, 247, 0.4)); display: inline-block; vertical-align: middle; } /* Main Container */ .battle-container { margin-top: 80px; width: 1300px; max-width: 95vw; background: rgba(26, 26, 45, 0.85); backdrop-filter: blur(30px); border-radius: 32px; border: 1px solid rgba(168, 85, 247, 0.15); overflow: hidden; box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.05); position: relative; z-index: 1; } .battle-container::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(168, 85, 247, 0.04) 0%, transparent 30%, transparent 70%, rgba(45, 212, 191, 0.02) 100%); pointer-events: none; border-radius: 32px; } /* Header Section */ .header { display: flex; align-items: center; justify-content: space-between; padding: 32px 40px; background: linear-gradient(135deg, rgba(30, 30, 50, 0.9) 0%, rgba(26, 26, 45, 0.95) 100%); backdrop-filter: blur(20px); border-bottom: 1px solid rgba(168, 85, 247, 0.1); border-radius: 32px 32px 0 0; position: relative; } .header::after { content: ''; position: absolute; bottom: 0; left: 5%; right: 5%; height: 1px; background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4), transparent); } .header-left { display: flex; flex-direction: column; gap: 12px; min-width: 140px; } .back-link { color: #a855f7; text-decoration: none; font-size: 14px; font-weight: 600; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); display: flex; align-items: center; gap: 8px; opacity: 0.8; border-radius: 12px; padding: 8px 12px; background: rgba(168, 85, 247, 0.05); } .back-link:hover { color: #c084fc; opacity: 1; transform: translateX(-2px); background: rgba(168, 85, 247, 0.1); } .battle-value { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 700; color: #ffffff; background: linear-gradient(135deg, #a855f7, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .player-total-mini img { width: 22px !important; height: 22px !important; object-fit: contain; filter: drop-shadow(0 3px 8px rgba(168, 85, 247, 0.4)); } /* Cases Container */ .cases-container { flex: 1; padding: 0 30px; max-width: 600px; position: relative; } .cases-display { display: flex; gap: 16px; overflow-x: auto; scrollbar-width: thin; scrollbar-color: rgba(168, 85, 247, 0.6) rgba(45, 45, 65, 0.5); padding: 12px 0; scroll-behavior: smooth; } .cases-display::-webkit-scrollbar { height: 8px; } .cases-display::-webkit-scrollbar-track { background: rgba(45, 45, 65, 0.3); border-radius: 8px; } .cases-display::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #a855f7, #c084fc); border-radius: 8px; } .case-card { width: 72px; height: 90px; background: linear-gradient(145deg, rgba(45, 45, 65, 0.9), rgba(35, 35, 55, 0.95)); backdrop-filter: blur(20px); border: 1px solid rgba(168, 85, 247, 0.2); border-radius: 20px; display: flex; align-items: center; justify-content: center; position: relative; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; flex-shrink: 0; overflow: hidden; } .case-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(145deg, rgba(168, 85, 247, 0.15), rgba(192, 132, 252, 0.08), transparent); opacity: 0; transition: all 0.4s ease; border-radius: 20px; } .case-card:hover { transform: translateY(-6px) scale(1.05); border-color: rgba(168, 85, 247, 0.5); box-shadow: 0 20px 40px rgba(168, 85, 247, 0.25), 0 0 0 1px rgba(168, 85, 247, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1); } .case-card:hover::before { opacity: 1; } .case-image { width: 45px; height: 45px; object-fit: contain; border-radius: 8px; filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4)); transition: all 0.3s ease; } .case-card:hover .case-image { transform: scale(1.1); filter: drop-shadow(0 6px 16px rgba(168, 85, 247, 0.4)); } /* Header Right */ .header-right { display: flex; align-items: center; gap: 16px; min-width: 140px; justify-content: flex-end; } .game-mode { background: linear-gradient(135deg, #a855f7, #c084fc); color: white; padding: 12px 20px; border-radius: 24px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 8px 20px rgba(168, 85, 247, 0.4); position: relative; overflow: hidden; } .game-mode::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent); transition: left 0.6s ease; } .game-mode:hover::before { left: 100%; } .copy-link-btn { background: rgba(45, 45, 65, 0.9); backdrop-filter: blur(20px); border: 1px solid rgba(168, 85, 247, 0.25); color: #ffffff; padding: 12px 20px; border-radius: 16px; cursor: pointer; font-weight: 600; font-size: 12px; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); text-transform: uppercase; letter-spacing: 0.5px; position: relative; overflow: hidden; } .copy-link-btn::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(192, 132, 252, 0.08)); opacity: 0; transition: opacity 0.3s ease; border-radius: 16px; } .copy-link-btn:hover { border-color: rgba(168, 85, 247, 0.5); transform: translateY(-2px); box-shadow: 0 12px 24px rgba(168, 85, 247, 0.2); } .copy-link-btn:hover::before { opacity: 1; } /* Players Section */ .players-section { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; background: rgba(45, 45, 65, 0.4); padding: 2px; border-radius: 0 0 32px 32px; } /* Updated Player Container Styles */ .player-container { background: rgba(26, 26, 45, 0.95); backdrop-filter: blur(20px); padding: 40px 25px 30px; display: flex; flex-direction: column; min-height: 220px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative; cursor: pointer; border-radius: 0; overflow: visible; } .player-container::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, transparent 50%, rgba(45, 212, 191, 0.05) 100%); opacity: 0; transition: all 0.4s ease; } .player-container:hover::before { opacity: 1; } .player-container:hover { background: rgba(30, 30, 50, 0.98); transform: translateY(-3px); } .player-container.occupied { background: rgba(30, 30, 50, 0.95); cursor: default; } .player-container.empty { border: 2px dashed rgba(168, 85, 247, 0.3); border-radius: 24px; margin: 20px; background: rgba(26, 26, 45, 0.6); } .player-container.empty:hover { border-color: rgba(168, 85, 247, 0.5); background: rgba(30, 30, 50, 0.8); } .player-slot { text-align: center; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 18px; } .player-avatar { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(135deg, #a855f7, #c084fc, #e879f9); display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 800; color: white; box-shadow: 0 12px 32px rgba(168, 85, 247, 0.5), 0 0 0 3px rgba(168, 85, 247, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3); position: relative; transition: all 0.4s ease; } .player-avatar::before { content: ''; position: absolute; top: -3px; left: -3px; right: -3px; bottom: -3px; background: linear-gradient(45deg, #a855f7, #c084fc, #e879f9, #a855f7); border-radius: 50%; z-index: -1; animation: rotate 4s linear infinite; } @keyframes rotate { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .player-container:hover .player-avatar { transform: scale(1.1); box-shadow: 0 16px 40px rgba(168, 85, 247, 0.6), 0 0 0 4px rgba(168, 85, 247, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.4); } .player-name { font-size: 16px; font-weight: 700; color: #ffffff; margin-bottom: 8px; letter-spacing: 0.3px; } .player-status { font-size: 11px; color: #a855f7; text-transform: uppercase; letter-spacing: 1px; font-weight: 600; background: rgba(168, 85, 247, 0.15); padding: 6px 14px; border-radius: 16px; border: 1px solid rgba(168, 85, 247, 0.25); } .empty-slot-text { color: rgba(255, 255, 255, 0.5); font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px; } .slot-join-btn { background: linear-gradient(135deg, #a855f7, #c084fc); border: none; color: white; padding: 14px 26px; border-radius: 16px; font-size: 12px; font-weight: 700; cursor: pointer; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); text-transform: uppercase; letter-spacing: 0.8px; box-shadow: 0 8px 24px rgba(168, 85, 247, 0.4); position: relative; overflow: hidden; } .slot-join-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent); transition: left 0.6s ease; } .slot-join-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(168, 85, 247, 0.5); } .slot-join-btn:hover::before { left: 100%; } /* Join Section */ .join-section { padding: 40px; text-align: center; background: linear-gradient(135deg, rgba(26, 26, 45, 0.9) 0%, rgba(30, 30, 50, 0.95) 100%); backdrop-filter: blur(25px); border-top: 1px solid rgba(168, 85, 247, 0.15); border-radius: 0 0 32px 32px; position: relative; } .join-section::before { content: ''; position: absolute; top: 0; left: 5%; right: 5%; height: 1px; background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.5), transparent); } .join-battle-btn { background: linear-gradient(135deg, #a855f7, #c084fc); border: none; color: white; padding: 18px 44px; border-radius: 20px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); text-transform: uppercase; letter-spacing: 1px; box-shadow: 0 16px 40px rgba(168, 85, 247, 0.4), 0 0 0 1px rgba(168, 85, 247, 0.25); position: relative; overflow: hidden; } .join-battle-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.8s ease; } .join-battle-btn:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 24px 48px rgba(168, 85, 247, 0.5), 0 0 0 1px rgba(168, 85, 247, 0.35); } .join-battle-btn:hover::before { left: 100%; } .join-battle-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; } /* Animations */ @keyframes slideIn { 0% { opacity: 0; transform: scale(0.8) translateY(20px); } 100% { opacity: 1; transform: scale(1) translateY(0); } } .player-container.joining { animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1); } /* Battle Animation Styles */ .player-container.battle-active { display: flex; flex-direction: column; height: auto; min-height: 500px; padding: 20px; background: rgba(26, 26, 45, 0.95); border-radius: 20px; margin: 10px; border: 1px solid rgba(168, 85, 247, 0.25); transition: all 0.3s ease; } /* Case animation area */ .case-animation-area { flex: 1; min-height: 300px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(45, 45, 65, 0.4), rgba(35, 35, 55, 0.5)); border-radius: 16px; margin-bottom: 10px; position: relative; overflow: hidden; padding: 20px; width: 100%; border: 1px solid rgba(168, 85, 247, 0.15); backdrop-filter: blur(15px); } /* Player info mini */ .player-info-mini { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: rgba(45, 45, 65, 0.6); border-radius: 12px; margin-bottom: 10px; border: 1px solid rgba(168, 85, 247, 0.1); } .player-avatar-small { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #a855f7, #c084fc); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: white; } .player-name-small { font-size: 14px; font-weight: 600; color: white; flex: 1; } .player-total-mini { font-size: 14px; font-weight: 700; color: #2dd4bf; background: rgba(45, 212, 191, 0.15); padding: 6px 10px; border-radius: 8px; display: flex; align-items: center; gap: 4px; border: 1px solid rgba(45, 212, 191, 0.2); } .player-items-container { display: flex; flex-wrap: wrap; gap: 8px; background: rgba(45, 45, 65, 0.4); padding: 12px; border-radius: 12px; min-height: 80px; overflow: visible; border: 1px solid rgba(168, 85, 247, 0.1); } .item { width: 60px; height: 60px; background: rgba(30, 30, 50, 0.9); border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: visible; border: 1px solid rgba(168, 85, 247, 0.1); backdrop-filter: blur(10px); } .item img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; } .item .item-mini-info { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0, 0, 0, 0.8); padding: 3px; text-align: center; width: 100%; box-sizing: border-box; border-radius: 0 0 12px 12px; } .item .item-mini-name { font-size: 9px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; padding: 0 2px; } .item .item-mini-value { font-size: 9px; color: #2dd4bf; display: flex; align-items: center; justify-content: center; gap: 2px; padding: 0 2px; white-space: nowrap; overflow: visible; } .item .item-mini-value img.dl-icon { width: 12px !important; height: 12px !important; margin-right: 2px; object-fit: contain; } /* Rarity colors - enhanced with modern gradients */ .item.common { border-bottom: 3px solid #6b7280; background: linear-gradient(145deg, rgba(30, 30, 50, 0.9), rgba(107, 114, 128, 0.05)); } .item.uncommon { border-bottom: 3px solid #10b981; background: linear-gradient(145deg, rgba(30, 30, 50, 0.9), rgba(16, 185, 129, 0.05)); } .item.rare { border-bottom: 3px solid #3b82f6; background: linear-gradient(145deg, rgba(30, 30, 50, 0.9), rgba(59, 130, 246, 0.05)); } .item.epic { border-bottom: 3px solid #8b5cf6; background: linear-gradient(145deg, rgba(30, 30, 50, 0.9), rgba(139, 92, 246, 0.05)); } .item.legendary { border-bottom: 3px solid #f59e0b; background: linear-gradient(145deg, rgba(30, 30, 50, 0.9), rgba(245, 158, 11, 0.05)); } /* Animation states */ .player-container.active-player-turn { border-color: rgba(168, 85, 247, 0.6); box-shadow: 0 0 24px rgba(168, 85, 247, 0.4); } .player-container.winner-player { border-color: #f59e0b; box-shadow: 0 0 32px rgba(245, 158, 11, 0.5); } /* Case opening animation */ .case-opening-animation { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; } .case-spinner { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; animation: spin 1s linear infinite; margin: 0 auto 20px; } @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } .case-image { width: 60px; height: 60px; object-fit: contain; animation: pulse 1s ease-in-out infinite alternate; border-radius: 12px; } @keyframes pulse { from { transform: scale(1); } to { transform: scale(1.1); } } .opening-text { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.8); } /* Item reveal */ .item-reveal { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; animation: fadeIn 0.5s ease-out; } .revealed-item { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; border-radius: 20px; background: rgba(45, 45, 65, 0.6); text-align: center; backdrop-filter: blur(15px); border: 1px solid rgba(168, 85, 247, 0.2); } .revealed-item img { width: 80px; height: 80px; object-fit: contain; margin-bottom: 10px; border-radius: 12px; } .item-name { font-size: 16px; font-weight: 700; color: white; margin-bottom: 5px; } .item-value { padding-top: 6px; font-size: 14px; font-weight: 700; color: #2dd4bf; display: flex; align-items: center; justify-content: center; gap: 6px; } /* Enhanced rarity classes */ .revealed-item.common { border: 2px solid #6b7280; background: linear-gradient(145deg, rgba(45, 45, 65, 0.6), rgba(107, 114, 128, 0.05)); } .revealed-item.uncommon { border: 2px solid #10b981; background: linear-gradient(145deg, rgba(45, 45, 65, 0.6), rgba(16, 185, 129, 0.05)); } .revealed-item.rare { border: 2px solid #3b82f6; background: linear-gradient(145deg, rgba(45, 45, 65, 0.6), rgba(59, 130, 246, 0.05)); } .revealed-item.epic { border: 2px solid #8b5cf6; background: linear-gradient(145deg, rgba(45, 45, 65, 0.6), rgba(139, 92, 246, 0.05)); } .revealed-item.legendary { border: 2px solid #f59e0b; background: linear-gradient(145deg, rgba(45, 45, 65, 0.6), rgba(245, 158, 11, 0.05)); } /* Completion state */ .player-complete { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; } .complete-icon { font-size: 30px; color: #10b981; } .complete-text { font-size: 16px; font-weight: 600; color: white; } .final-total { font-size: 20px; font-weight: 700; color: #2dd4bf; display: flex; align-items: center; gap: 6px; } /* Winner indicator */ .winner-indicator { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; animation: pulse 1.5s ease-in-out infinite; } .winner-crown { font-size: 30px; color: #f59e0b; } .winner-text { font-size: 18px; font-weight: 700; color: #f59e0b; text-transform: uppercase; } .winner-total { font-size: 24px; font-weight: 800; color: #2dd4bf; display: flex; align-items: center; gap: 6px; } /* Battle Results */ .battle-results-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.9); display: flex; justify-content: center; align-items: center; z-index: 1000; backdrop-filter: blur(20px); } .results-modal { background: linear-gradient(135deg, rgba(30, 30, 50, 0.98), rgba(26, 26, 45, 0.99)); border-radius: 32px; padding: 40px; max-width: 800px; width: 90%; max-height: 90vh; overflow-y: auto; box-shadow: 0 32px 64px -12px rgba(0, 0, 0, 0.6); border: 1px solid rgba(168, 85, 247, 0.25); backdrop-filter: blur(30px); } .results-header { text-align: center; margin-bottom: 30px; } .results-header h2 { font-size: 28px; margin-bottom: 20px; color: white; } .battle-winner { display: flex; align-items: center; justify-content: center; gap: 20px; margin-bottom: 20px; } .winner-avatar-big { width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, #f59e0b, #d97706); display: flex; align-items: center; justify-content: center; font-size: 32px; font-weight: 800; color: white; box-shadow: 0 16px 40px rgba(245, 158, 11, 0.5); } .winner-details { text-align: left; } .winner-name-big { font-size: 24px; font-weight: 700; color: white; margin-bottom: 5px; } .winner-reward { font-size: 20px; font-weight: 700; color: #2dd4bf; display: flex; align-items: center; gap: 6px; } .results-summary { margin: 30px 0; } .result-row { display: flex; align-items: center; padding: 18px 24px; background: rgba(45, 45, 65, 0.6); border-radius: 16px; margin-bottom: 12px; transition: all 0.3s ease; border: 1px solid rgba(168, 85, 247, 0.1); backdrop-filter: blur(10px); } .result-row.winner-row { background: linear-gradient(135deg, rgba(245, 158, 11, 0.25), rgba(217, 119, 6, 0.15)); border-left: 4px solid #f59e0b; } .result-position { width: 40px; font-weight: 700; color: rgba(255, 255, 255, 0.7); } .result-row.winner-row .result-position { color: #f59e0b; } .result-player { flex: 1; display: flex; align-items: center; gap: 15px; } .result-avatar { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #a855f7, #c084fc); display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: white; } .result-name { font-size: 16px; font-weight: 600; color: white; } .result-total { width: 120px; text-align: right; font-weight: 700; color: #2dd4bf; display: flex; align-items: center; justify-content: flex-end; gap: 4px; } .result-items-count { width: 80px; text-align: right; font-size: 14px; color: rgba(255, 255, 255, 0.6); } .results-actions { display: flex; justify-content: center; gap: 20px; margin-top: 30px; } .close-results-btn, .new-battle-btn { padding: 16px 32px; border-radius: 16px; font-size: 16px; font-weight: 700; cursor: pointer; transition: all 0.3s ease; border: none; text-transform: uppercase; letter-spacing: 0.5px; } .close-results-btn { background: rgba(45, 45, 65, 0.9); color: white; border: 1px solid rgba(168, 85, 247, 0.25); backdrop-filter: blur(10px); } .close-results-btn:hover { background: rgba(168, 85, 247, 0.2); transform: translateY(-2px); border-color: rgba(168, 85, 247, 0.4); } .new-battle-btn { background: linear-gradient(135deg, #a855f7, #c084fc); color: white; box-shadow: 0 12px 28px rgba(168, 85, 247, 0.4); } .new-battle-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(168, 85, 247, 0.5); } /* Error handling */ @keyframes errorShake { 0%, 20%, 40%, 60%, 80% { transform: translateX(0); } 10%, 30%, 50%, 70% { transform: translateX(-10px); } 90% { transform: translateX(10px); } 100% { transform: translateX(0); } } /* Enhanced Case Opening Animation Styles */ /* Vertical Spinner Container - Modernized */ .vertical-spinner-container { width: 100%; height: 320px; overflow: hidden; position: relative; margin-bottom: 15px; display: flex; justify-content: center; border-radius: 20px; background: linear-gradient(135deg, rgba(26, 26, 45, 0.95), rgba(30, 30, 50, 0.98)); backdrop-filter: blur(30px); border: 1px solid rgba(168, 85, 247, 0.2); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08); /* Modern mask effect */ mask-image: linear-gradient( to bottom, transparent 0%, rgba(255,255,255,0.1) 10%, white 25%, white 75%, rgba(255,255,255,0.1) 90%, transparent 100% ); -webkit-mask-image: linear-gradient( to bottom, transparent 0%, rgba(255,255,255,0.1) 10%, white 25%, white 75%, rgba(255,255,255,0.1) 90%, transparent 100% ); perspective: 1000px; } /* Enhanced selection indicator */ .vertical-spinner-container::after { content: ''; position: absolute; top: 50%; left: 10%; right: 10%; height: 3px; background: linear-gradient(90deg, transparent, rgba(168, 85, 247, 0.4), #a855f7, rgba(168, 85, 247, 0.4), transparent ); z-index: 10; transform: translateY(-50%); box-shadow: 0 0 24px rgba(168, 85, 247, 0.7), 0 0 48px rgba(168, 85, 247, 0.4); border-radius: 3px; animation: selectorPulse 2s ease-in-out infinite; } @keyframes selectorPulse { 0%, 100% { opacity: 0.8; transform: translateY(-50%) scaleX(1); } 50% { opacity: 1; transform: translateY(-50%) scaleX(1.1); } } /* Modernized spinner track */ .vertical-spinner-track { display: flex; flex-direction: column; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 140px; min-width: 140px; align-items: center; transform-style: preserve-3d; will-change: transform; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.3)); } /* Enhanced spinner items */ .vertical-spinner-track .spinner-item { width: 130px; height: 130px; margin: 6px 0; background: linear-gradient(145deg, rgba(45, 45, 65, 0.95), rgba(35, 35, 55, 0.98) ); backdrop-filter: blur(20px); border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; flex-shrink: 0; border: 1px solid rgba(168, 85, 247, 0.15); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); transform-style: preserve-3d; backface-visibility: visible; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.08); overflow: hidden; } /* Glassmorphism effect for items */ .vertical-spinner-track .spinner-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(145deg, rgba(168, 85, 247, 0.05) 0%, transparent 30%, transparent 70%, rgba(192, 132, 252, 0.03) 100% ); opacity: 0; transition: opacity 0.3s ease; border-radius: 20px; } .vertical-spinner-track .spinner-item:hover::before { opacity: 1; } /* Enhanced item images */ .vertical-spinner-track .spinner-item img { width: 65px; height: 65px; object-fit: contain; margin-bottom: 6px; transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4)); border-radius: 8px; } /* Modern text styling */ .vertical-spinner-track .spinner-item .item-name { font-size: 10px; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; color: rgba(255, 255, 255, 0.9); letter-spacing: 0.3px; margin-bottom: 2px; } .vertical-spinner-track .spinner-item .item-value { font-size: 11px; font-weight: 700; color: #2dd4bf; display: flex; align-items: center; justify-content: center; gap: 3px; background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(45, 212, 191, 0.08)); padding: 4px 10px; border-radius: 16px; border: 1px solid rgba(45, 212, 191, 0.25); backdrop-filter: blur(15px); } /* Enhanced winning item animation */ .vertical-spinner-track .spinner-item.winning-item { transform: scale(1.15); border-color: #a855f7; background: linear-gradient(145deg, rgba(168, 85, 247, 0.25), rgba(192, 132, 252, 0.18) ); box-shadow: 0 0 40px rgba(168, 85, 247, 0.7), 0 0 80px rgba(168, 85, 247, 0.4), 0 12px 40px rgba(0, 0, 0, 0.5); z-index: 5; animation: winningItemPulse 1.5s ease-in-out infinite; } .vertical-spinner-track .spinner-item.winning-item img { transform: scale(1.1); filter: drop-shadow(0 6px 20px rgba(168, 85, 247, 0.5)); } .vertical-spinner-track .spinner-item.winning-item .item-value { background: linear-gradient(135deg, rgba(168, 85, 247, 0.35), rgba(192, 132, 252, 0.25)); border-color: rgba(168, 85, 247, 0.6); color: #ffffff; text-shadow: 0 0 12px rgba(168, 85, 247, 0.9); } @keyframes winningItemPulse { 0%, 100% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.7), 0 0 80px rgba(168, 85, 247, 0.4), 0 12px 40px rgba(0, 0, 0, 0.5); } 50% { box-shadow: 0 0 50px rgba(168, 85, 247, 0.9), 0 0 100px rgba(168, 85, 247, 0.5), 0 16px 48px rgba(0, 0, 0, 0.6); } } /* Modern rarity colors with gradients */ .spinner-item.common { border-left: 3px solid #6b7280; background: linear-gradient(145deg, rgba(45, 45, 65, 0.95), rgba(107, 114, 128, 0.05)); } .spinner-item.uncommon { border-left: 3px solid #10b981; background: linear-gradient(145deg, rgba(45, 45, 65, 0.95), rgba(16, 185, 129, 0.05)); } .spinner-item.rare { border-left: 3px solid #3b82f6; background: linear-gradient(145deg, rgba(45, 45, 65, 0.95), rgba(59, 130, 246, 0.05)); } .spinner-item.epic { border-left: 3px solid #8b5cf6; background: linear-gradient(145deg, rgba(45, 45, 65, 0.95), rgba(139, 92, 246, 0.05)); } .spinner-item.legendary { border-left: 3px solid #f59e0b; background: linear-gradient(145deg, rgba(45, 45, 65, 0.95), rgba(245, 158, 11, 0.05)); } /* Enhanced Case Reveal Animation */ .case-reveal { text-align: center; animation: caseRevealEntrance 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275); } @keyframes caseRevealEntrance { 0% { opacity: 0; transform: scale(0.3) rotateY(180deg); filter: blur(10px); } 60% { opacity: 0.8; transform: scale(1.1) rotateY(10deg); filter: blur(2px); } 100% { opacity: 1; transform: scale(1) rotateY(0deg); filter: blur(0px); } } /* Modernized revealed item container */ .revealed-item { position: relative; overflow: hidden; padding: 25px; border-radius: 24px; margin-bottom: 15px; background: linear-gradient(145deg, rgba(30, 30, 50, 0.98), rgba(26, 26, 45, 0.99) ); backdrop-filter: blur(30px); border: 2px solid rgba(168, 85, 247, 0.25); box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.08); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); } /* Animated background effect */ .revealed-item::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: linear-gradient(45deg, transparent, rgba(168, 85, 247, 0.04), transparent, rgba(192, 132, 252, 0.03), transparent ); animation: shimmer 3s ease-in-out infinite; pointer-events: none; } @keyframes shimmer { 0% { transform: translateX(-100%) translateY(-100%) rotate(0deg); } 50% { transform: translateX(0%) translateY(0%) rotate(180deg); } 100% { transform: translateX(100%) translateY(100%) rotate(360deg); } } /* Enhanced revealed item image */ .revealed-item img { width: 100px; height: 100px; object-fit: contain; margin-bottom: 5px; filter: drop-shadow(0 12px 32px rgba(0, 0, 0, 0.5)); transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); position: relative; z-index: 2; border-radius: 12px; } .revealed-item:hover img { transform: scale(1.05) rotateY(5deg); filter: drop-shadow(0 16px 40px rgba(168, 85, 247, 0.4)); } /* Modern item details */ .item-details { position: relative; z-index: 2; } .revealed-item .item-name { font-size: 12px; font-weight: 700; color: #ffffff; margin-bottom: 8px; letter-spacing: 0.5px; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4); } .revealed-item .item-value { font-size: 14px; font-weight: 800; background: linear-gradient(135deg, #2dd4bf, #06b6d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; display: flex; align-items: center; justify-content: center; gap: 8px; margin-bottom: 6px; filter: drop-shadow(0 2px 6px rgba(45, 212, 191, 0.4)); } .revealed-item .case-name { font-size: 12px; color: rgba(255, 255, 255, 0.6); font-style: italic; font-weight: 500; letter-spacing: 0.3px; background: rgba(168, 85, 247, 0.15); padding: 6px 16px; border-radius: 24px; border: 1px solid rgba(168, 85, 247, 0.25); backdrop-filter: blur(15px); display: inline-block; } /* Enhanced rarity styling for revealed items with better colors */ .revealed-item.common { border-color: #6b7280; box-shadow: 0 24px 48px rgba(107, 114, 128, 0.15), 0 0 0 1px rgba(107, 114, 128, 0.1); } .revealed-item.uncommon { border-color: #10b981; box-shadow: 0 24px 48px rgba(16, 185, 129, 0.25), 0 0 0 1px rgba(16, 185, 129, 0.15); } .revealed-item.rare { border-color: #3b82f6; box-shadow: 0 24px 48px rgba(59, 130, 246, 0.25), 0 0 0 1px rgba(59, 130, 246, 0.15); } .revealed-item.epic { border-color: #8b5cf6; box-shadow: 0 24px 48px rgba(139, 92, 246, 0.25), 0 0 0 1px rgba(139, 92, 246, 0.15); } .revealed-item.legendary { border-color: #f59e0b; box-shadow: 0 24px 48px rgba(245, 158, 11, 0.35), 0 0 0 1px rgba(245, 158, 11, 0.25); animation: legendaryGlow 2s ease-in-out infinite alternate; } @keyframes legendaryGlow { 0% { box-shadow: 0 24px 48px rgba(245, 158, 11, 0.35), 0 0 0 1px rgba(245, 158, 11, 0.25); } 100% { box-shadow: 0 32px 64px rgba(245, 158, 11, 0.45), 0 0 0 1px rgba(245, 158, 11, 0.35); } } /* Case Opening Progress Indicator */ .case-opening-progress { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 30px; } .progress-spinner { width: 80px; height: 80px; border: 4px solid rgba(168, 85, 247, 0.15); border-top: 4px solid #a855f7; border-radius: 50%; animation: modernSpin 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite; filter: drop-shadow(0 6px 12px rgba(168, 85, 247, 0.4)); } @keyframes modernSpin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .progress-text { font-size: 16px; font-weight: 600; color: rgba(255, 255, 255, 0.8); letter-spacing: 1px; text-align: center; background: linear-gradient(135deg, #a855f7, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } /* Enhanced Case Opening Animation States */ .case-animation-area { flex: 1; min-height: 320px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, rgba(26, 26, 45, 0.9), rgba(30, 30, 50, 0.95) ); backdrop-filter: blur(20px); border-radius: 20px; margin-bottom: 12px; position: relative; overflow: hidden; padding: 20px; width: 100%; border: 1px solid rgba(168, 85, 247, 0.15); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 32px rgba(0, 0, 0, 0.3); } .case-animation-area::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(168, 85, 247, 0.03) 0%, transparent 50%, rgba(192, 132, 252, 0.02) 100% ); pointer-events: none; border-radius: 20px; } /* Battle Loading Overlay */ .battle-loading-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.85); display: flex; justify-content: center; align-items: center; z-index: 100; transition: opacity 0.5s ease; backdrop-filter: blur(10px); border-radius: 20px; } .loading-content { text-align: center; } .loading-spinner { width: 60px; height: 60px; border: 4px solid rgba(168, 85, 247, 0.3); border-radius: 50%; border-top-color: #a855f7; animation: spin 1s linear infinite; margin: 0 auto 20px; } .loading-text { font-size: 18px; font-weight: 600; color: rgba(255, 255, 255, 0.8); letter-spacing: 1px; } /* Battle Starting Animation */ .battle-starting { text-align: center; animation: pulse 0.8s infinite alternate; } .battle-starting-text { font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: #6b73ff; margin-bottom: 15px; } .countdown { font-size: 48px; font-weight: 800; color: white; animation: zoomInOut 0.8s infinite alternate; } .battle-go { text-align: center; } .go-text { font-size: 48px; font-weight: 800; color: #2ecc71; text-transform: uppercase; animation: zoomInOut 0.5s; } @keyframes zoomInOut { 0% { transform: scale(1); } 50% { transform: scale(1.2); } 100% { transform: scale(1); } } /* Player Turn Indicator */ .player-turn-indicator { display: flex; align-items: center; justify-content: center; gap: 15px; padding: 15px; background: rgba(107, 115, 255, 0.1); border-radius: 10px; border: 1px solid rgba(107, 115, 255, 0.3); } /* ================== MOBILE RESPONSIVE STYLES ================== */ /* Responsive Design */ @media (max-width: 1100px) { .battle-container { margin-top: 60px; width: 95%; } .header { padding: 25px 30px; } } @media (max-width: 960px) { body { padding: 20px 10px; } .battle-container { margin-top: 40px; border-radius: 16px; width: 100%; max-width: 100%; } .header { flex-direction: column; gap: 20px; text-align: center; padding: 25px 20px; } .header-left, .header-right { min-width: auto; width: 100%; justify-content: center; } .cases-container { max-width: none; padding: 0 20px; } /* Players section becomes vertical on mobile */ .players-section { display: flex; flex-direction: column; gap: 15px; background: transparent; padding: 20px; } .player-container { min-height: 180px; padding: 25px 20px; border-radius: 16px; margin: 0; border: 1px solid rgba(107, 115, 255, 0.15); background: rgba(31, 31, 37, 0.9); } .player-container.empty { margin: 0; border-radius: 16px; } /* Mobile battle animation adjustments */ .player-container.battle-active { min-height: 400px; margin: 0 0 15px 0; border-radius: 16px; padding: 15px; } .case-animation-area { min-height: 250px; padding: 15px; border-radius: 12px; } .vertical-spinner-container { height: 200px; border-radius: 12px; } .vertical-spinner-track { width: 100px; min-width: 100px; } .vertical-spinner-track .spinner-item { width: 90px; height: 90px; border-radius: 12px; margin: 4px 0; } .vertical-spinner-track .spinner-item img { width: 50px; height: 50px; } .vertical-spinner-track .spinner-item .item-name { font-size: 8px; max-width: 80px; } .vertical-spinner-track .spinner-item .item-value { font-size: 9px; padding: 2px 6px; } .revealed-item { padding: 20px; border-radius: 16px; } .revealed-item img { width: 70px; height: 70px; } .revealed-item .item-name { font-size: 16px; } .revealed-item .item-value { font-size: 18px; } .player-items-container { gap: 6px; padding: 10px; } .item { width: 45px; height: 45px; } .item img { width: 30px; height: 30px; } /* Mobile-specific battle starting animation */ .battle-starting-text { font-size: 16px; letter-spacing: 1px; } .countdown, .go-text { font-size: 32px; } /* Winner celebration mobile */ .winner-celebration .winner-text { font-size: 18px; } .winner-celebration .trophy { font-size: 32px; } .shared-celebration .shared-text { font-size: 18px; } .shared-celebration .trophy { font-size: 32px; } } @media (max-width: 600px) { body { padding: 15px 8px; } .battle-container { margin-top: 20px; border-radius: 12px; } .header { padding: 20px 15px; gap: 15px; } .battle-value { font-size: 16px; } .game-mode { padding: 8px 12px; font-size: 10px; } .copy-link-btn { padding: 8px 12px; font-size: 10px; } .players-section { padding: 15px; gap: 12px; } .player-container { min-height: 160px; padding: 20px 15px; } .player-avatar { width: 50px; height: 50px; font-size: 18px; } .player-name { font-size: 14px; } .player-status { font-size: 10px; padding: 3px 8px; } .case-card { width: 60px; height: 75px; } .case-image { width: 35px; height: 35px; } .join-section { padding: 25px 15px; } .join-battle-btn { padding: 12px 24px; font-size: 14px; } /* Mobile battle animations */ .player-container.battle-active { min-height: 350px; padding: 12px; } .case-animation-area { min-height: 200px; padding: 12px; } .vertical-spinner-container { height: 180px; } .vertical-spinner-track { width: 80px; min-width: 80px; } .vertical-spinner-track .spinner-item { width: 70px; height: 70px; margin: 3px 0; } .vertical-spinner-track .spinner-item img { width: 40px; height: 40px; } .revealed-item { padding: 15px; } .revealed-item img { width: 60px; height: 60px; } .revealed-item .item-name { font-size: 14px; } .revealed-item .item-value { font-size: 16px; } .player-info-mini { padding: 6px 10px; gap: 8px; } .player-avatar-small { width: 25px; height: 25px; font-size: 10px; } .player-name-small { font-size: 12px; } .player-total-mini { font-size: 12px; padding: 3px 6px; } .player-items-container { gap: 4px; padding: 8px; min-height: 60px; } .item { width: 35px; height: 35px; } .item img { width: 25px; height: 25px; } .item .item-mini-value { font-size: 8px; } /* Results modal mobile */ .results-modal { padding: 20px 15px; width: 95%; border-radius: 16px; } .results-header h2 { font-size: 24px; } .winner-avatar-big { width: 60px; height: 60px; font-size: 24px; } .winner-name-big { font-size: 20px; } .winner-reward { font-size: 18px; } .result-row { padding: 12px 15px; flex-wrap: wrap; gap: 10px; } .result-position { width: 30px; } .result-avatar { width: 35px; height: 35px; font-size: 14px; } .result-name { font-size: 14px; } .result-total { width: auto; font-size: 14px; margin-left: 45px; } .result-items-count { width: auto; margin-left: 45px; font-size: 12px; } .results-actions { flex-direction: column; gap: 15px; } .close-results-btn, .new-battle-btn { padding: 12px 20px; font-size: 14px; width: 100%; } /* Loading and error states mobile */ .loading-spinner { width: 50px; height: 50px; border-width: 3px; } .loading-text { font-size: 16px; } .battle-starting-text { font-size: 14px; letter-spacing: 0.5px; } .countdown, .go-text { font-size: 28px; } /* Battle celebration mobile */ .winner-celebration .winner-text, .shared-celebration .shared-text { font-size: 16px; } .winner-celebration .trophy, .shared-celebration .trophy { font-size: 28px; } .total-win { font-size: 14px; } } /* Ultra-small screens (320px and below) */ @media (max-width: 320px) { .battle-container { margin-top: 15px; border-radius: 8px; } .header { padding: 15px 10px; } .players-section { padding: 10px; gap: 10px; } .player-container { min-height: 140px; padding: 15px 10px; } .case-animation-area { min-height: 160px; padding: 10px; } .vertical-spinner-container { height: 140px; } .vertical-spinner-track .spinner-item { width: 60px; height: 60px; } .vertical-spinner-track .spinner-item img { width: 35px; height: 35px; } .revealed-item img { width: 50px; height: 50px; } .item { width: 30px; height: 30px; } .item img { width: 20px; height: 20px; } } /* Enhanced Winner Animation Styles */ .winner-celebration { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; border-radius: 16px; background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(26, 26, 45, 0.95)); backdrop-filter: blur(10px); animation: winnerPulse 2s ease-in-out infinite; } @keyframes winnerPulse { 0%, 100% { box-shadow: 0 0 40px rgba(168, 85, 247, 0.5); } 50% { box-shadow: 0 0 60px rgba(168, 85, 247, 0.8); } } .winner-celebration.crazy { background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(26, 26, 45, 0.95)); animation: winnerPulseCrazy 2s ease-in-out infinite; } @keyframes winnerPulseCrazy { 0%, 100% { box-shadow: 0 0 40px rgba(16, 185, 129, 0.5); } 50% { box-shadow: 0 0 60px rgba(16, 185, 129, 0.8); } } .winner-text { font-size: 28px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; background: linear-gradient(135deg, #a855f7, #c084fc); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-shadow: 0 4px 20px rgba(168, 85, 247, 0.5); animation: textGlow 1.5s ease-in-out infinite alternate; } .winner-celebration.crazy .winner-text { background: linear-gradient(135deg, #10b981, #06b6d4); text-shadow: 0 4px 20px rgba(16, 185, 129, 0.5); } @keyframes textGlow { from { opacity: 0.8; } to { opacity: 1; } } .trophy { font-size: 80px; margin-bottom: 20px; animation: trophyFloat 3s ease-in-out infinite; filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.4)); } @keyframes trophyFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-15px) rotate(5deg); } } .mode-text { font-size: 14px; color: rgba(255, 255, 255, 0.7); margin-top: 10px; font-style: italic; } /* Confetti animation */ .confetti { position: absolute; width: 100%; height: 100%; overflow: hidden; z-index: 1; } .confetti:before { content: ''; position: absolute; width: 10px; height: 10px; background: #a855f7; top: -10px; left: 50%; animation: confettiFall 3s linear infinite; border-radius: 50%; box-shadow: 20px 20px 0 #c084fc, -20px 20px 0 #e879f9, 40px 40px 0 #8b5cf6, -40px 40px 0 #6b73ff; } .confetti:after { content: ''; position: absolute; width: 8px; height: 8px; background: #c084fc; top: -10px; left: 30%; animation: confettiFall 3.5s linear infinite 0.5s; border-radius: 50%; box-shadow: 15px 15px 0 #a855f7, -15px 15px 0 #e879f9, 30px 30px 0 #8b5cf6, -30px 30px 0 #6b73ff; } @keyframes confettiFall { 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(100vh) rotate(360deg); opacity: 0; } } /* Shared celebration styles */ .shared-celebration { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; border-radius: 16px; background: linear-gradient(135deg, rgba(45, 212, 191, 0.15), rgba(26, 26, 45, 0.95)); backdrop-filter: blur(10px); animation: sharedPulse 2s ease-in-out infinite; } @keyframes sharedPulse { 0%, 100% { box-shadow: 0 0 40px rgba(45, 212, 191, 0.5); } 50% { box-shadow: 0 0 60px rgba(45, 212, 191, 0.8); } } .shared-text { font-size: 28px; font-weight: 800; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 20px; background: linear-gradient(135deg, #2dd4bf, #06b6d4); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; text-shadow: 0 4px 20px rgba(45, 212, 191, 0.5); animation: textGlow 1.5s ease-in-out infinite alternate; } .shared-celebration .trophy { color: #2dd4bf; animation: trophyFloat 3s ease-in-out infinite, colorChange 5s linear infinite; } @keyframes colorChange { 0% { color: #2dd4bf; } 25% { color: #a855f7; } 50% { color: #f59e0b; } 75% { color: #3b82f6; } 100% { color: #2dd4bf; } } /* Team celebration styles */ .team-celebration { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; overflow: hidden; border-radius: 16px; background: linear-gradient(135deg, rgba(245, 158, 11, 0.15), rgba(26, 26, 45, 0.95)); backdrop-filter: blur(10px); animation: teamPulse 2s ease-in-out infinite; } @keyframes teamPulse { 0%, 100% { box-shadow: 0 0 40px rgba(245, 158, 11, 0.5); } 50% { box-shadow: 0 0 60px rgba(245, 158, 11, 0.8); } } .team-celebration .winner-text { background: linear-gradient(135deg, #f59e0b, #d97706); text-shadow: 0 4px 20px rgba(245, 158, 11, 0.5); } .team-celebration .trophy { color: #f59e0b; animation: trophyFloat 3s ease-in-out infinite; } /* Winner reward display */ .winner-reward { font-size: 24px; font-weight: 700; margin-top: 20px; display: flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(192, 132, 252, 0.1)); padding: 12px 24px; border-radius: 24px; border: 1px solid rgba(168, 85, 247, 0.3); } .winner-reward img { width: 24px; height: 24px; } /* Enhanced confetti system */ .confetti-container { position: absolute; width: 100%; height: 100%; overflow: hidden; z-index: 1; } .confetti-piece { position: absolute; width: 10px; height: 10px; background: #a855f7; animation: confettiFall var(--duration) linear infinite var(--delay); opacity: 0; border-radius: 50%; } @keyframes confettiFall { 0% { transform: translateY(-10px) translateX(var(--x)) rotate(0deg); opacity: 1; } 100% { transform: translateY(100vh) translateX(calc(var(--x) * 2)) rotate(360deg); opacity: 0; } } /* Create multiple confetti pieces */ .confetti-piece:nth-child(1) { --x: -20px; --duration: 3s; --delay: 0s; background: #a855f7; left: 10%; } .confetti-piece:nth-child(2) { --x: 20px; --duration: 3.5s; --delay: 0.5s; background: #c084fc; left: 30%; } .confetti-piece:nth-child(3) { --x: -30px; --duration: 4s; --delay: 1s; background: #e879f9; left: 50%; } .confetti-piece:nth-child(4) { --x: 40px; --duration: 3.8s; --delay: 1.5s; background: #8b5cf6; left: 70%; } .confetti-piece:nth-child(5) { --x: -10px; --duration: 3.2s; --delay: 2s; background: #6b73ff; left: 90%; } /* Add more confetti pieces as needed */ .add-bot-btn { display: block; margin: 8px auto 0; padding: 8px 16px; background-color: #6200ff; color: #fff; border: none; border-radius: 4px; cursor: pointer; font-size: 14px; } .add-bot-btn:hover { background-color: #666; } .add-bot-btn:disabled { background-color: #ff0000; cursor: not-allowed; } .slot-join-btn { margin-bottom: 8px; padding: 8px 16px; background-color: #007bff; color: #fff; border: none; border-radius: 4px; cursor: pointer; } .slot-join-btn:hover { background-color: #0056b3; } .slot-join-btn:disabled { background-color: #6c757d; cursor: not-allowed; }