* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

body {margin: 0; background-color: #000000; background: radial-gradient(circle at 50% 0%, #3a3a3a 0%, #1a1a1a 40%, #000000 100%); background-size: cover; background-attachment: fixed; background-repeat: no-repeat; font-family: 'Montserrat', sans-serif; color: #fff; height: 100vh; display: flex; flex-direction: column; overflow: hidden;}

.telegram-header-logo { position: fixed; top: 46px; left: 50%; transform: translateX(-50%) scaleX(1.3); height: 55px; width: auto; z-index: 9999; pointer-events: none; animation: logoPulsePurple 4s ease-in-out infinite alternate; }
@keyframes logoPulsePurple { 0% { filter: drop-shadow(0 0 5px rgba(157, 0, 255, 0.3)); transform: translateX(-50%) scaleX(1.3) scale(1); } 100% { filter: drop-shadow(0 0 25px rgba(180, 50, 255, 0.9)); transform: translateX(-50%) scaleX(1.3) scale(1.02); } }

body { margin: 0; background-color: #e0e0e0; background-image: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.6), transparent 60%), radial-gradient(circle at 100% 0%, rgba(53, 56, 57, 0.4), transparent 50%), linear-gradient(135deg, #d3d3d3 0%, #353839 50%, #d3d3d3 100%); background-size: 150% 150%, 200% 200%, 300% 300% !important; background-attachment: fixed !important; min-height: 100vh; animation: liquidOnyx 15s ease infinite alternate !important; }
@keyframes liquidOnyx { 0% { background-position: 0% 0%, 100% 0%, 0% 50%; filter: brightness(1); } 33% { background-position: 100% 100%, 0% 100%, 50% 100%; filter: brightness(1.1); } 66% { background-position: 50% 0%, 100% 50%, 100% 0%; filter: brightness(0.9); } 100% { background-position: 0% 100%, 50% 50%, 0% 0%; filter: brightness(1.05); } }
body.keyboard-open .bottom-nav { display: none !important; }
body.keyboard-open #deposit-view,
body.keyboard-open #pvp-view,
body.keyboard-open #home-view { padding-bottom: 0 !important; height: auto !important; min-height: 100vh; }
body.keyboard-open { background-color: #000 !important; }

.top-bar { z-index: 9999 !important; position: fixed; top: 100px; left: 0; right: 0; height: 70px; background: rgba(15, 15, 15, 0.85); backdrop-filter: blur(12px); display: flex; align-items: center; padding: 0 15px; z-index: 100; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.balance-container {background: rgba(40, 40, 40, 0.6); padding: 5px 12px; border-radius: 12px; display: flex; flex-direction: column; margin-right: auto; border: 1px solid rgba(255,255,255,0.05); }
.balance-container .label { font-size: 0.7rem; color: #ccc; }
.balance-container .value { font-size: 1.1rem; font-weight: 800; color: #00bfff; }
.currency { color: #00bfff; font-size: 0.8rem; }

.deposit-btn {background: #6a5acd; border: none; color: white; padding: 8px 16px; border-radius: 12px; font-weight: 700; font-size: 0.9rem; cursor: pointer; box-shadow: 0 4px 10px rgba(106, 90, 205, 0.4); margin-right: 12px; }
.deposit-btn:active { transform: scale(0.95); }

.profile-pic {width: 48px; height: 48px; border-radius: 50%; border: 2px solid #333; overflow: hidden; background: #222; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.profile-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }

#main-content {flex: 1; margin-top: 170px; margin-bottom: 70px; overflow-y: auto; width: 100%; }
#home-view { padding: 20px; width: 100%; }

.grid-container {display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding-bottom: 20px; }
.card {border-radius: 20px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 12px 8px; cursor: pointer; overflow: hidden; height: 200px; transition: transform 0.1s; gap: 5px; }
.card:active { transform: scale(0.98); }
.card-header {width: 100%; text-align: center; font-weight: 900; font-size: 0.85rem; font-style: italic; text-shadow: 0 2px 4px rgba(0,0,0,0.8); z-index: 2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-img {max-width: 90%; max-height: 100px; width: auto; object-fit: contain; z-index: 1; filter: drop-shadow(0 5px 8px rgba(0,0,0,0.6)); flex-grow: 1; }
.card-badges {width: 100%; display: flex; justify-content: space-between; align-items: center; z-index: 2; font-size: 0.75rem; font-weight: 700; padding: 0 5px; }
.badge-btn { padding: 4px 8px; border-radius: 6px; color: #fff; font-size: 0.7rem; white-space: nowrap; }

.card-gold { border: 2px solid #ffd700; box-shadow: 0 0 10px rgba(255, 215, 0, 0.15); background: linear-gradient(135deg, #ffec8b, #b8860b, #5c4000); background-size: 200% 200%; animation: gradientCardMove 6s ease infinite; }
.card-gold .card-header { color: #ffd700; }
.btn-gold { background: #ffd700; color: #000; }

.card-red { border: 2px solid #444; box-shadow: 0 0 15px rgba(0, 0, 0, 0.8); background: linear-gradient(135deg, #000000, #1c1c1e, #4d4d4d, #1c1c1e, #000000); background-size: 300% 300%; animation: gradientCardMove 6s ease infinite; }
.card-red .card-header { color: #ddd; }
.btn-red { background: #333; color: #fff; }

.card-black { border: 2px solid #444; box-shadow: 0 0 15px rgba(0, 0, 0, 0.8); background: linear-gradient(135deg, #000000, #1c1c1e, #4d4d4d, #1c1c1e, #000000); background-size: 300% 300%; animation: gradientCardMove 6s ease infinite; }
.card-black .card-header { color: #ddd; text-shadow: 0 0 5px rgba(255, 255, 255, 0.2); }
.btn-black { background: #333; color: #fff; }

.card-start { border: 2px solid #444; box-shadow: 0 0 10px rgba(0, 0, 0, 0.8); background: linear-gradient(135deg, #000000, #1c1c1e, #4d4d4d, #1c1c1e, #000000); background-size: 300% 300%; animation: gradientCardMove 6s ease infinite; }
.card-start .card-header { color: #ddd; }
.btn-start { background: #333; color: #fff; }

.card-elite { border: 2px solid #444; box-shadow: 0 0 15px rgba(0, 0, 0, 0.8); background: linear-gradient(135deg, #000000, #1c1c1e, #4d4d4d, #1c1c1e, #000000); background-size: 300% 300%; animation: gradientCardMove 6s ease infinite; }
.card-elite .card-header { color: #ddd; }
.btn-elite { background: #333; color: #fff; }

.card-roll-green { border: 2px solid #444; box-shadow: 0 0 10px rgba(0, 0, 0, 0.8); background: linear-gradient(135deg, #000000, #1c1c1e, #4d4d4d, #1c1c1e, #000000); background-size: 300% 300%; animation: gradientCardMove 6s ease infinite; }
.card-roll-green .card-header { color: #ddd; }
.btn-roll-green { background: #333; color: #fff; }

.card-roll-blue { border: 2px solid #444; box-shadow: 0 0 15px rgba(0, 0, 0, 0.8); background: linear-gradient(135deg, #000000, #1c1c1e, #4d4d4d, #1c1c1e, #000000); background-size: 300% 300%; animation: gradientCardMove 6s ease infinite; }
.card-roll-blue .card-header { color: #ddd; }
.btn-roll-blue { background: #333; color: #fff; border: 1px solid #444; }

.daily-box-container {width: 100%; display: flex; justify-content: center; margin-bottom: 10px; z-index: 50; position: relative; padding: 0 20px; margin-top: 10px; } /* Margin top ridotto */
.daily-box-container.hidden { display: none; }

.daily-ready { background: linear-gradient(90deg, #ffcc00, #ff9900); color: #fff; font-weight: 800; font-size: 1.1rem; padding: 12px 30px; border-radius: 12px; box-shadow: 0 0 15px rgba(255, 204, 0, 0.6); display: flex; align-items: center; gap: 10px; text-transform: uppercase; animation: pulseReady 1.5s infinite ease-in-out; cursor: default; }

@keyframes pulseReady { 0% { transform: scale(1); box-shadow: 0 0 15px rgba(255, 204, 0, 0.6); } 50% { transform: scale(1.05); box-shadow: 0 0 25px rgba(255, 204, 0, 0.9); } 100% { transform: scale(1); box-shadow: 0 0 15px rgba(255, 204, 0, 0.6); } }

.daily-countdown {background: #1a1a1a; border: 1px solid #333; padding: 10px 20px; border-radius: 12px; text-align: center; min-width: 200px; }
.daily-label { color: #aaa; font-size: 0.8rem; margin-bottom: 4px; }
.daily-timer { color: #fff; font-size: 1.2rem; font-weight: 700; font-family: monospace; }
.daily-ready.hidden, .daily-countdown.hidden { display: none; }

#wheel-view {width: 100%; overflow-y: auto; display: flex; flex-direction: column; align-items: center; padding-bottom: 80px; }
#wheel-view.hidden { display: none; }
#wheel-stage { position: relative; width: 320px; height: 320px; border-radius: 50%; margin: 70px auto 40px auto; transition: box-shadow 0.3s; box-shadow: 0 0 50px rgba(0,0,0,0.8); flex-shrink: 0; transform: translateZ(0); }
#wheel-container { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; position: relative; }
#wheel-group {width: 100%; height: 100%; position: relative; }

#wheel-svg { width: 100%; height: 100%; display: block; transform: rotate(-90deg); }
#gifts-layer { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; }

.gift-item {position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin-left: -22px; margin-top: -22px; display: flex; align-items: center; justify-content: center; z-index: 5; }
.gift-item img {position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.8)); transition: opacity 2.5s ease-in-out, filter 2.5s ease-in-out; }
.gift-item img.visible {opacity: 1; filter: blur(0); z-index: 2; }
.gift-item img.hidden {opacity: 0; filter: blur(15px); z-index: 1; }

#ticker-wrap {position: absolute; top: -70px; left: 50%; transform: translateX(-50%); z-index: 60; width: 60px; height: 80px; display: flex; justify-content: center; filter: drop-shadow(0 10px 5px rgba(0,0,0,0.5)); transform-origin: top center; pointer-events: none; }
#ticker {width: 100%; height: 100%; object-fit: contain; transform: rotate(180deg); will-change: transform; }

.tick-anim {animation: flapperHit 0.3s ease-out; }
@keyframes flapperHit { 0% {transform: rotate(180deg);} 40% {transform: rotate(145deg);} 100% {transform: rotate(180deg);} }

#spin-btn {position: absolute; top: 50%; left: 50%; width: 80px; height: 80px; transform: translate(-50%, -50%); cursor: pointer; z-index: 30; transition: transform 0.2s, filter 0.3s; filter: drop-shadow(0 0 15px rgba(0,0,0,0.6)); }
#spin-btn:active { transform: translate(-50%, -50%) scale(0.95); }
#spin-btn.disabled { filter: grayscale(100%) opacity(0.5); cursor: not-allowed; }

#status-log {margin-top: 15px; margin-bottom: 25px; font-weight: 800; color: #ffd700; text-transform: uppercase; letter-spacing: 2px; min-height: 20px; text-shadow: 0 0 10px rgba(255, 215, 0, 0.4); font-size: 1.2rem; text-align: center; }

.bet-selector-container {display: flex; justify-content: space-between; gap: 5px; margin-bottom: 40px; width: 95%; flex-wrap: nowrap; padding: 0 5px; }
.bet-selector-container.hidden { display: none; }

.btn-bet {background: #1c1c1e; color: #888; border: 1px solid #333; padding: 8px 4px; border-radius: 12px; font-weight: 700; cursor: pointer; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; gap: 4px; transition: all 0.2s; flex: 1; min-width: 0; }
.btn-bet img { width: 12px; height: 12px; }

.btn-bet-active-red { background: #ff4136; color: white; border-color: #ff4136; box-shadow: 0 0 10px rgba(255, 65, 54, 0.4); transform: scale(1.05); }
.btn-bet-active-blue { background: #0074d9; color: white; border-color: #0074d9; box-shadow: 0 0 10px rgba(0, 116, 217, 0.4); transform: scale(1.05); }
.btn-bet-active-purple { background: #9932CC; color: white; border-color: #9932CC; box-shadow: 0 0 10px rgba(153, 50, 204, 0.4); transform: scale(1.05); }

.box-collection-wrapper {width: 90%; margin-top: 10px; background: transparent; padding-bottom: 20px; }
.box-collection-header {color: #fff; font-size: 1.1rem; font-weight: 800; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.box-collection-grid {display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.collection-item {background: #1c1c1e; border-radius: 16px; padding: 10px; display: flex; flex-direction: column; align-items: center; position: relative; border: 2px solid transparent; }

.border-gold { border-color: #ffd700; box-shadow: 0 0 10px rgba(255, 215, 0, 0.1); }
.border-purple { border-color: #7b68ee; box-shadow: 0 0 10px rgba(123, 104, 238, 0.1); }
.border-red { border-color: #ff4136; box-shadow: 0 0 10px rgba(255, 65, 54, 0.2); }
.border-blue { border-color: #0074d9; box-shadow: 0 0 10px rgba(0, 116, 217, 0.2); }
.border-green { border-color: #2ecc40; box-shadow: 0 0 10px rgba(46, 204, 64, 0.2); }
.border-ton { border-color: #00bfff; box-shadow: 0 0 10px rgba(0, 191, 255, 0.2); }

.collection-price-badge {position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,0.6); border-radius: 6px; padding: 2px 6px; font-size: 0.75rem; color: #00bfff; font-weight: 700; }
.collection-img-box {width: 60px; height: 60px; margin: 20px 0 10px 0; display: flex; align-items: center; justify-content: center; }
.collection-img-box img {width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0,0,0,0.5)); }
.collection-name {font-size: 0.85rem; font-weight: 700; color: #fff; text-align: center; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.collection-rarity {font-size: 0.7rem; color: #888; background: rgba(255,255,255,0.1); padding: 2px 8px; border-radius: 4px; margin-top: 4px; }

#ranking-view { display: none; flex-direction: column; padding: 5px 5px; width: 100%; height: 100%; }
#podium-container { display: flex; justify-content: center; align-items: flex-end; margin-bottom: 30px; height: 170px; gap: 15px; }
.podium-item { display: flex; flex-direction: column; align-items: center; text-align: center; position: relative; transition: transform 0.3s; }
.podium-avatar-box { position: relative; margin-bottom: 8px; border-radius: 50%; padding: 3px; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.podium-img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; background: #111; }
.podium-badge { position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%); width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 900; color: #000; box-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.rank-1 { order: 2; z-index: 10; }
.rank-1 .podium-avatar-box { width: 100px; height: 100px; background: linear-gradient(45deg, #ffd700, #b8860b); animation: floatPodium 2s infinite ease-in-out; }
.rank-1 .podium-badge { background: #ffd700; border: 2px solid #fff; }
.rank-1 .podium-name { font-size: 1.1rem; color: #ffd700; font-weight: 800; }
.rank-1 .podium-amount { color: #fff; font-size: 0.9rem; }
.rank-2 { order: 1; transform: scale(0.9); }
.rank-2 .podium-avatar-box { width: 80px; height: 80px; background: linear-gradient(45deg, #ffa500, #ff0000); }
.rank-2 .podium-badge { background: #ff4500; border: 2px solid #fff; }
.rank-2 .podium-name { font-size: 0.9rem; color: #ff4500; font-weight: 700; }
.rank-2 .podium-amount { color: #aaa; font-size: 0.8rem; }
.rank-3 { order: 3; transform: scale(0.9); }
.rank-3 .podium-avatar-box { width: 80px; height: 80px; background: linear-gradient(45deg, #808080, #008000); }
.rank-3 .podium-badge { background: #32cd32; border: 2px solid #fff; }
.rank-3 .podium-name { font-size: 0.9rem; color: #32cd32; font-weight: 700; }
.rank-3 .podium-amount { color: #aaa; font-size: 0.8rem; }
.hidden-user .podium-img { opacity: 0.3; }
.placeholder { display: flex; align-items: center; justify-content: center; font-size: 2rem; color: #555; font-weight: 900; }
#ranking-list { flex: 1; overflow-y: auto; padding-bottom: 20px; }
.rank-row { display: flex; align-items: center; background: rgba(30, 30, 30, 0.6); margin-bottom: 8px; padding: 10px 15px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); }
.rank-pos { width: 32px; height: 32px; border: 1px solid #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #222; font-weight: 800; color: #fff; font-size: 0.75rem; margin-right: 12px; flex-shrink: 0; }
.rank-avatar { width: 36px; height: 36px; border-radius: 50%; overflow: hidden; margin-right: 12px; background: #222; }
.rank-avatar img { width: 100%; height: 100%; object-fit: cover; }
.rank-name { flex: 1; font-weight: 600; font-size: 0.9rem; color: #ddd; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank-amount { font-weight: 700; color: #00bfff; font-size: 0.85rem; text-align: right; }

#invite-view { display: none; flex-direction: column; padding: 20px; width: 100%; height: 100%; }
.invite-card { background: #1e1e24; border-radius: 16px; padding: 20px; display: flex; align-items: center; gap: 15px; margin-bottom: 25px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); }
.invite-icon-box { width: 50px; height: 50px; background: #7b68ee; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.invite-icon-box i { font-size: 1.5rem; color: white; }
.invite-text-box h3 { margin: 0; font-size: 1.1rem; font-weight: 800; color: white; }
.invite-text-box h3 span { color: #8e7aff; }
.invite-text-box p { margin: 4px 0 0 0; font-size: 0.8rem; color: #aaa; }
.invite-btn-group { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.btn-main-invite { background: #7b68ee; color: white; border: none; padding: 14px; border-radius: 12px; font-weight: 700; font-size: 1rem; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 4px 15px rgba(123, 104, 238, 0.3); }
.btn-main-invite:active { transform: scale(0.98); }
.btn-copy-link { background: #2b2b2b; color: white; border: none; padding: 14px; border-radius: 12px; font-weight: 600; font-size: 1rem; cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; }
.btn-copy-link:active { background: #333; }

.invite-stats-bar { background: #1e1e24; padding: 15px 20px; border-radius: 12px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.invite-stat-label { color: #aaa; font-size: 0.9rem; }
.invite-stat-value { color: #00bfff; font-weight: 700; font-size: 1.1rem; }
.invite-list-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.invite-list-title { font-weight: 700; font-size: 1rem; color: #eee; }
.invite-count-badge { background: #333; padding: 2px 8px; border-radius: 6px; font-size: 0.8rem; color: #fff; }
#invite-list-container { flex: 1; overflow-y: auto; }
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 0; color: #555; }
.empty-icon { font-size: 3rem; margin-bottom: 10px; opacity: 0.5; }
.empty-text { font-size: 1rem; font-weight: 600; }

#deposit-view { width: 100%; height: 100%; display: flex; flex-direction: column; padding: 20px; }
.deposit-header-tabs { display: flex; background: #1e1e24; padding: 5px; border-radius: 14px; margin-bottom: 20px; }
.deposit-tab { flex: 1; text-align: center; padding: 12px; color: #aaa; font-weight: 600; cursor: pointer; border-radius: 10px; transition: background 0.3s, color 0.3s; display: flex; align-items: center; justify-content: center; gap: 8px; }
.deposit-tab.active { background: #7b68ee; color: white; }
.deposit-content { flex: 1; overflow-y: auto; display: flex; flex-direction: column; }
.connect-wallet-container { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; height: auto; padding-top: 30px; }
#ton-connect-button-root { margin-top: 20px; }
.wallet-info-bar { text-align: center; margin-bottom: 20px; background: #1e1e24; padding: 10px 15px; border-radius: 20px; display: inline-block; align-self: center; font-weight: 600; font-size: 0.9rem; color: #eee; width: fit-content; margin-left: auto; margin-right: auto; cursor: pointer; position: relative; user-select: none; }
.wallet-info-bar i.fa-chevron-down { margin-left: 8px; font-size: 0.8rem; color: #aaa; }
.dropdown-menu { position: absolute; top: 110%; left: 50%; transform: translateX(-50%); background: #252528; border: 1px solid #333; border-radius: 12px; padding: 5px; width: 200px; z-index: 200; box-shadow: 0 10px 20px rgba(0,0,0,0.5); }
.dropdown-menu.hidden { display: none; }
.dropdown-item { padding: 12px; color: white; font-size: 0.9rem; display: flex; align-items: center; gap: 10px; cursor: pointer; border-radius: 8px; transition: background 0.2s; }
.dropdown-item:active { background: #333; }
.text-red { color: #ff4136; }
.topup-box { background: #1a1a1a; border-radius: 16px; padding: 20px; display: flex; flex-direction: column; }
.topup-header { color: #888; font-size: 0.9rem; display: flex; justify-content: space-between; margin-bottom: 10px; }
.topup-balance-display { font-size: 1.8rem; font-weight: 800; color: white; margin-bottom: 30px; }
.amount-label { font-size: 0.8rem; color: #888; margin-bottom: 10px; }
.input-amount-wrapper { position: relative; margin-bottom: 15px; }
#deposit-amount-input { width: 100%; background: #2b2b2b; border: 1px solid #444; padding: 15px 50px 15px 15px; border-radius: 12px; color: white; font-size: 1rem; font-weight: 600; font-family: inherit; outline: none; }
#deposit-amount-input:focus { border-color: #0098ea; }
.input-currency-badge { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: #0098ea; }
.quick-amount-buttons { display: flex; gap: 10px; margin-bottom: 25px; }
.quick-btn { flex: 1; background: #2b2b2b; border: none; padding: 10px; border-radius: 8px; color: white; font-size: 0.85rem; cursor: pointer; }
.quick-btn:active { background: #333; }
.action-btn-primary { background: #0098ea; color: white; border: none; padding: 16px; width: 100%; border-radius: 12px; font-weight: 700; font-size: 1rem; cursor: pointer; }
.action-btn-primary:active { opacity: 0.9; }
.gifts-hero { display: flex; align-items: center; gap: 15px; background: #1e1e24; padding: 20px; border-radius: 16px; margin-bottom: 20px; }
.gifts-icon-circle { width: 48px; height: 48px; background: #7b68ee; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: white; }
.gifts-hero-text h3 { margin: 0; font-size: 1rem; font-weight: 700; }
.gifts-hero-text p { margin: 4px 0 0 0; font-size: 0.8rem; color: #aaa; }
.steps-container { background: #1e1e24; padding: 20px; border-radius: 16px; margin-bottom: 20px; }
.steps-header { display: flex; justify-content: space-between; font-size: 0.9rem; color: #ddd; margin-bottom: 20px; }
.step-item { display: flex; gap: 15px; margin-bottom: 20px; }
.step-num { width: 24px; height: 24px; background: #7b68ee; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 0.8rem; color: white; flex-shrink: 0; margin-top: 2px; }
.step-desc h4 { margin: 0 0 5px 0; font-size: 0.95rem; color: white; }
.step-desc p { margin: 0; font-size: 0.85rem; color: #aaa; line-height: 1.4; }
.gifts-features { border-top: 1px solid #333; padding-top: 15px; margin-top: 10px; }
.feat-row { color: #aaa; font-size: 0.85rem; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.feat-row i { color: #2ecc40; }
.action-btn-purple { background: #7b68ee; color: white; border: none; padding: 16px; width: 100%; border-radius: 12px; font-weight: 700; font-size: 1rem; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 10px; margin-bottom: 20px; }
.gifts-footer-note { background: #2b2b2b; border-radius: 12px; padding: 15px; display: flex; gap: 15px; }
.note-icon { color: #7b68ee; font-size: 1.2rem; }
.note-text p { margin: 0 0 5px 0; font-size: 0.9rem; color: white; }

#processing-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.85); z-index: 500; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
#processing-overlay.hidden { display: none; }
.processing-content { text-align: center; }
.processing-content h3 { margin: 15px 0 5px 0; color: #fff; }
.processing-content p { color: #aaa; font-size: 0.9rem; }
.spinner { width: 40px; height: 40px; border: 4px solid #333; border-top: 4px solid #0098ea; border-radius: 50%; margin: 0 auto; animation: spin 1s linear infinite; }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

.bottom-nav { z-index: 9999 !important; position: fixed; bottom: 0; left: 0; right: 0; height: auto; background: rgba(18, 18, 18, 0.9); backdrop-filter: blur(12px); display: flex; justify-content: space-around; align-items: center; border-top: 1px solid rgba(255, 255, 255, 0.08); z-index: 100; padding-top: 12px; padding-bottom: 35px; }
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #777; font-size: 0.7rem; cursor: pointer; width: 20%; height: 100%; transition: color 0.3s; }
.nav-item i { font-size: 1.4rem; margin-bottom: 4px; }
.nav-item.active { color: #a020f0; text-shadow: 0 0 10px rgba(160, 32, 240, 0.4); }

#modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.85); backdrop-filter: blur(5px); z-index: 200; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s; }
#modal-overlay.visible { opacity: 1; pointer-events: auto; }
.modal-content { background: linear-gradient(135deg, #1e1e1e, #2d2d2d); padding: 30px; border-radius: 20px; border: 2px solid #ffd700; width: 85%; max-width: 320px; transform: scale(0.8); transition: transform 0.3s; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
#modal-overlay.visible .modal-content { transform: scale(1); }
#modal-title { margin: 0 0 15px 0; color: #fff; width: 100%; text-align: center; font-size: 1.5rem; }
.modal-gift-showcase { width: 100px; height: 100px; margin: 0 auto 15px auto; background: rgba(255,255,255,0.05); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
#modal-img { width: 70%; height: 70%; object-fit: contain; }
#modal-msg { color: #ffd700; margin-bottom: 20px; font-weight: bold; width: 100%; text-align: center; }
#modal-close { background: #ffd700; color: #000000; border: none; padding: 10px 25px; font-weight: 900; border-radius: 50px; cursor: pointer; }

.alert-box { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); background: rgba(220, 20, 60, 0.95); color: white; padding: 20px 30px; border-radius: 12px; font-weight: 800; z-index: 300; pointer-events: none; opacity: 0; transition: opacity 0.3s; box-shadow: 0 5px 20px rgba(0,0,0,0.6); text-align: center; font-size: 1.2rem; }
.alert-box.show { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }

#backpack-view { padding: 20px; width: 100%; height: 100%; display: flex; flex-direction: column; }
.backpack-header h3 { margin: 0 0 5px 0; color: #fff; font-size: 1.3rem; }
.backpack-header p { margin: 0 0 15px 0; color: #353839; font-size: 0.9rem; font-weight: 500; }
.backpack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding-bottom: 30px; }
.gift-card { background: linear-gradient(135deg, #1c1c1e, #2c2c2e); border-radius: 20px; padding: 15px; display: flex; flex-direction: column; align-items: center; position: relative; box-shadow: 0 4px 15px rgba(0,0,0,0.3); border: 1px solid #333; overflow: hidden; }
.gift-value-badge { position: absolute; top: 10px; right: 10px; background: #111; border-radius: 8px; padding: 4px 8px; font-size: 0.8rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 4px; }
.gift-value-badge i { color: #00bfff; font-size: 0.7rem; }
.gift-img-container { margin-top: 15px; width: 80px; height: 80px; margin-bottom: 10px; display: flex; align-items: center; justify-content: center; }
.gift-img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.4)); }
.gift-backdrop-label { background: #333; padding: 4px 10px; border-radius: 12px; color: #aaa; font-size: 0.7rem; margin-bottom: 8px; }
.gift-name { font-size: 0.95rem; font-weight: 700; color: #8e7aff; margin-bottom: 15px; text-align: center; }
.btn-withdraw { background: #8e7aff; color: white; border: none; width: 100%; padding: 10px; border-radius: 10px; font-weight: 600; font-size: 0.9rem; margin-bottom: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px; }
.btn-withdraw:active { opacity: 0.9; }
.btn-sell-container { background: #252525; width: 100%; padding: 10px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: background 0.2s; border: 1px solid #444; }
.btn-sell-container:active { background: #333; }
.btn-sell-container i { color: #00bfff; margin-left: 5px; }
.empty-backpack-container { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 20px 10px 20px; text-align: center; height: 100%; flex: 1; }
.empty-backpack-icon { width: 80px; height: 80px; background: #2c2c2e; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 25px; position: relative; box-shadow: 0 4px 20px rgba(0,0,0,0.4); }
.empty-backpack-icon i { font-size: 2.2rem; color: #00bfff; }
.empty-backpack-title {font-size: clamp(1rem, 5vw, 1.5rem); font-weight: 800; margin: 0 0 10px 0; color: white; white-space: nowrap; width: 100%; padding: 0 20px; overflow: hidden; text-overflow: ellipsis; text-align: center; }
.empty-backpack-desc { color: #353839; font-size: 0.95rem; line-height: 1.5; margin: 0 0 20px 0; max-width: 300px; font-weight: 500; }
.btn-send-gift-empty { background: #7b68ee; color: white; border: none; padding: 15px; width: 100%; border-radius: 12px; font-weight: 700; font-size: 1rem; cursor: pointer; margin-bottom: 15px; display: flex; align-items: center; justify-content: center; gap: 10px; transition: transform 0.1s; }
.btn-send-gift-empty:active { transform: scale(0.98); }
.separator-or { color: #666; font-size: 0.8rem; font-weight: 600; margin-bottom: 10px; position: relative; width: 100%; display: flex; align-items: center; justify-content: center; }
.separator-or::before, .separator-or::after { content: ''; height: 1px; background: #333; flex: 1; margin: 0 15px; }
.empty-secondary-text { color: #353839; font-size: 0.95rem; margin-bottom: 15px; font-weight: 500; margin-top: 0; }
.btn-open-boxes-empty { background: #7b68ee; color: white; border: none; padding: 15px; width: 100%; border-radius: 12px; font-weight: 700; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform 0.1s; }
.btn-open-boxes-empty:active { transform: scale(0.98); }

@keyframes floatPodium { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.modal-btn-group {display: flex; gap: 12px; width: 100%; justify-content: center; margin-top: 10px; }
.btn-modal-upgrade { width: 100%; margin-top: 12px; background: #2ecc40; color: #000000; border: none; padding: 12px; font-weight: 900; border-radius: 12px; cursor: pointer; text-transform: uppercase; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 0.9rem; transition: transform 0.1s, box-shadow 0.2s; }
.btn-modal-upgrade:active { transform: scale(0.98); }
.btn-modal-upgrade.hidden { display: none; }
.btn-modal-upgrade i { font-size: 1.1rem; }
.btn-backpack-upgrade { background: #2ecc40; color: #000000; border: none; width: 100%; padding: 10px; border-radius: 10px; font-weight: 700; font-size: 0.9rem; margin-bottom: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 5px; transition: transform 0.1s; }
.btn-backpack-upgrade:active { transform: scale(0.98); opacity: 0.9; }
#modal-close {flex: 1; background: #ffd700; color: #000000; border: none; padding: 12px; font-weight: 900; border-radius: 12px; cursor: pointer; text-transform: uppercase; }

.btn-modal-sell { flex: 1; background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.4); color: #ffffff; padding: 12px 4px; font-size: 0.85rem; white-space: nowrap; font-weight: 700; border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background 0.2s; }
.btn-modal-sell i {color: #00bfff; font-size: 1.1em; }
.btn-modal-sell:active {background: rgba(255, 255, 255, 0.2); }
.btn-modal-sell.hidden {display: none; }

#plinko-view { width: 100%; display: flex; flex-direction: column; align-items: center; padding-bottom: 80px; }
#plinko-view.hidden { display: none; }
#plinko-stage-wrapper {position: relative; width: 360px; height: 440px; margin: 20px auto 0 auto; border-radius: 16px; padding: 0; box-shadow: 0 0 30px rgba(0,0,0,0.6); overflow: hidden; border: 2px solid transparent; display: flex; flex-direction: column; align-items: center; }

.theme-start #plinko-stage-wrapper {background: radial-gradient(circle at top, #2b1055, #000000); border-color: #8e2de2; box-shadow: 0 0 40px rgba(74, 0, 224, 0.4); }
.theme-start .plinko-dispenser {background: linear-gradient(to bottom, #4a00e0, #8e2de2); box-shadow: 0 0 15px #8e2de2; }
.theme-start .plinko-separator { background: linear-gradient(to bottom, #4a00e0, #8e2de2); }
.theme-start .plinko-play-main { background: linear-gradient(90deg, #4a00e0, #8e2de2); }
.theme-start .btn-plinko-bet.active { background: #8e2de2; border-color: #8e2de2; color: white; box-shadow: 0 0 10px #8e2de2; }
.theme-elite #plinko-stage-wrapper {background: radial-gradient(circle at top, #554400, #000000); border-color: #b20000; box-shadow: 0 0 40px rgba(255, 215, 0, 0.3); }
.theme-elite .plinko-dispenser {background: linear-gradient(to bottom, #800000, #ff0000); box-shadow: 0 0 15px #ff0000; }
.theme-elite .plinko-separator { background: #000; border: 1px solid #333; }
.theme-elite .plinko-play-main { background: linear-gradient(90deg, #ffd700, #b8860b); color: #000; }
.theme-elite .btn-plinko-bet.active { background: #ffd700; border-color: #ffd700; color: #000; box-shadow: 0 0 10px #ffd700; }
.plinko-dispenser {width: 80px; height: 25px; margin: 0 auto; border-bottom-left-radius: 12px; border-bottom-right-radius: 12px; z-index: 15; position: relative; top: 0; animation: dispenserMove 3s ease-in-out infinite alternate; }
@keyframes dispenserMove { from { transform: translateX(-20px); } to { transform: translateX(20px); } }

#plinko-canvas {display: block; margin: 0; position: absolute; top: 0; left: 0; z-index: 10; pointer-events: none; }
#plinko-slots-container {width: 360px; height: 60px; position: absolute; bottom: 0; left: 0; display: flex; justify-content: center; align-items: flex-end; z-index: 5; padding: 0; margin: 0; box-sizing: border-box; }
.plinko-slot-wrapper {width: 32.72px; flex: 0 0 32.72px; height: 60px; display: flex; align-items: center; justify-content: center; position: relative; background: rgba(0,0,0,0.2); box-sizing: border-box; border-bottom: 3px solid rgba(255,255,255,0.1); }
.plinko-slot-wrapper::after { content: ''; position: absolute; right: 0; bottom: 0; width: 2px; height: 100%; background: rgba(255,255,255,0.15); z-index: 6; }
.plinko-slot-wrapper:first-child::before { content: ''; position: absolute; left: 0; bottom: 0; width: 2px; height: 100%; background: rgba(255,255,255,0.15); z-index: 6; }
.plinko-slot-wrapper:last-child::after { display: none; }
.plinko-slot-wrapper img {width: 70%; height: 70%; object-fit: contain; position: relative; z-index: 4; margin-bottom: 10px; }

.plinko-slot-wrapper.winner-flash { animation: flashSlot 0.5s alternate 4; background: rgba(255, 255, 255, 0.3); }

@keyframes flashSlot { from { opacity: 0.5; } to { opacity: 1; box-shadow: 0 0 10px white; } }

.plinko-play-main {border: none; padding: 15px 40px; font-size: 1.3rem; font-weight: 900; border-radius: 16px; margin: 15px 0; width: 90%; cursor: pointer; text-transform: uppercase; transition: transform 0.1s; color: #000000 !important; }
.plinko-play-main:active { transform: scale(0.98); }
.plinko-play-main.disabled { opacity: 0.6; cursor: not-allowed; filter: grayscale(1); }
.plinko-bet-row { display: flex; gap: 8px; width: 90%; justify-content: center; margin-bottom: 50px; }
.btn-plinko-bet {background: #1c1c1e; color: #888; border: 1px solid #333; padding: 10px 0; border-radius: 12px; font-weight: 700; font-size: 0.9rem; cursor: pointer; flex: 1; text-align: center; transition: all 0.2s; display: flex; align-items: center; justify-content: center; gap: 4px; }
.btn-plinko-bet img { width: 12px; height: 12px; }
#plinko-status-log {margin-top: 10px; font-weight: 800; font-size: 1.1rem; color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); height: 24px; text-align: center; }
.slot-glow {position: absolute; width: 40px; height: 40px; border-radius: 50%; filter: blur(15px); opacity: 0.6; animation: glowMove 4s infinite alternate ease-in-out; z-index: 1; }
.glow-gift { background: #00ff00; }
.glow-ton { background: #ff0000; }
@keyframes glowMove { 0% { transform: translate(-10px, 10px) scale(1); } 33% { transform: translate(10px, -5px) scale(1.2); } 66% { transform: translate(-5px, -10px) scale(0.9); } 100% { transform: translate(5px, 5px) scale(1.1); } }
.plinko-slot-wrapper.winner-flash { box-shadow: inset 0 0 20px #fff; transition: box-shadow 0.2s; }
@keyframes gradientCardMove { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

#roll-view { width: 100%; display: flex; flex-direction: column; align-items: center; padding-bottom: 80px; }
#roll-view.hidden { display: none; }

.roll-machine-container {width: 95%; height: 130px; background: #111; border: 4px solid #333; border-radius: 16px; margin-top: 20px; margin-bottom: 20px; position: relative; box-shadow: inset 0 0 20px #000; overflow: hidden; display: flex; align-items: center; }
.theme-roll-green .roll-machine-container { border-color: #2ecc40; box-shadow: 0 0 20px rgba(46, 204, 64, 0.2); }
.theme-roll-blue .roll-machine-container { border-color: #0074d9; box-shadow: 0 0 20px rgba(0, 116, 217, 0.3); }
.roll-display-window {width: 100%; height: 100%; position: relative; overflow: hidden; background: #1a1a1a; }
.roll-selector-line {position: absolute; left: 50%; top: 0; bottom: 0; width: 4px; background: #ff4136; z-index: 10; transform: translateX(-50%); box-shadow: 0 0 10px #ff4136; }
.roll-selector-line::before, .roll-selector-line::after {content: ''; position: absolute; left: 50%; transform: translateX(-50%); border-left: 10px solid transparent; border-right: 10px solid transparent; }
.roll-selector-line::before { top: 0; border-top: 10px solid #ff4136; }
.roll-selector-line::after { bottom: 0; border-bottom: 10px solid #ff4136; }
.roll-tape {display: flex; height: 100%; align-items: center; position: absolute; left: 0; top: 0; will-change: transform; }
.roll-item {width: 100px; height: 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: #252525; margin: 0 2px; border-radius: 8px; border: 1px solid #444; flex-shrink: 0; padding: 0; }
.roll-item img { width: 55px; height: 55px; object-fit: contain; margin-bottom: 0; }
.roll-item span { display: none !important; }
.roll-item.winner-glow {background: #fff !important; box-shadow: 0 0 20px #fff; z-index: 5; }
.roll-play-main {width: 90%; padding: 15px; border: none; border-radius: 12px; font-weight: 800; font-size: 1.2rem; cursor: pointer; margin-bottom: 20px; box-shadow: 0 5px 15px rgba(0,0,0,0.5); transition: transform 0.1s; text-transform: uppercase; }
.roll-play-main:active { transform: scale(0.98); }
.theme-roll-green .roll-play-main { background: linear-gradient(90deg, #2ecc40, #01ff70); color: #000; }
.theme-roll-blue .roll-play-main { background: linear-gradient(90deg, #0074d9, #001f3f); color: #fff; }

#roll-status-log {margin-bottom: 15px; font-weight: 800; font-size: 1.2rem; color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.5); height: 24px; }

.card-wide {grid-column: span 2; height: 110px; flex-direction: row; align-items: center; justify-content: space-between; padding: 0 25px; overflow: hidden; position: relative; background: linear-gradient(90deg, #ffec8b, #b8860b, #5c4000); background-size: 200% 200%; animation: goldShimmer 3s ease infinite; border: 2px solid #ffd700; }
.card-wide-content {display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 8px; z-index: 2; }
.card-header-wide {font-size: 1.2rem; font-weight: 900; font-style: italic; color: #000; text-shadow: 0 1px 2px rgba(255,255,255,0.4); }
.card-img-wide {height: 140%; width: auto; object-fit: contain; position: absolute; right: -10px; bottom: -20px; z-index: 1; transform: rotate(-10deg); filter: drop-shadow(-5px 5px 10px rgba(0,0,0,0.5)); transition: transform 0.3s; }
.card-wide:active .card-img-wide {transform: rotate(0deg) scale(0.9); }
.shine-effect {position: absolute; top: 0; left: -100%; width: 50%; height: 100%; background: linear-gradient(to right, transparent, rgba(255,255,255,0.6), transparent); transform: skewX(-25deg); animation: shineMove 4s infinite; z-index: 3; pointer-events: none; }

@keyframes goldShimmer {0% { background-position: 0% 50%; box-shadow: 0 0 15px rgba(255, 215, 0, 0.2); } 50% { background-position: 100% 50%; box-shadow: 0 0 25px rgba(255, 215, 0, 0.6); } 100% { background-position: 0% 50%; box-shadow: 0 0 15px rgba(255, 215, 0, 0.2); } }
@keyframes shineMove { 0% { left: -100%; } 20% { left: 200%; } 100% { left: 200%; } }

.ton-icon { width: 14px; height: 14px; object-fit: contain; vertical-align: middle; margin-bottom: 3px; display: inline-block; }
.ton-icon-medium {width: 18px; height: 18px; object-fit: contain; vertical-align: middle; margin-bottom: 2px; }
.ton-icon-large {width: 40px; height: 40px; object-fit: contain; }
.btn-sell-container .ton-icon,
.btn-modal-sell .ton-icon {margin-left: 3px; margin-bottom: 3px; position: static;}


#upgrade-view { width: 100%; padding: 15px; display: flex; flex-direction: column; align-items: center; color: white; box-sizing: border-box; }
.upgrade-header-area { width: 100%; background: #1c1c1e; border-radius: 20px; padding: 15px; margin-bottom: 20px; box-sizing: border-box; }
.upgrade-title-box { display: flex; gap: 12px; margin-bottom: 20px; }
.upgrade-icon-badge { width: 40px; height: 40px; background: #2ecc40; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: #fff; box-shadow: 0 0 10px rgba(46, 204, 64, 0.4); }
.upgrade-text-col h3 { margin: 0; font-size: 1rem; font-weight: 800; }
.upgrade-text-col p { margin: 2px 0 0; font-size: 0.8rem; color: #00bfff; }
.upgrade-slots-container { display: flex; align-items: center; justify-content: space-between; position: relative; gap: 10px; }
.upgrade-slot { flex: 1; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.slot-label-tag { background: rgba(46, 204, 64, 0.2); color: #2ecc40; padding: 4px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 700; width: fit-content; }
.slot-label-tag.tag-green { background: rgba(46, 204, 64, 0.2); color: #2ecc40; }
.slot-content { background: #252525; border: 1px dashed #444; border-radius: 16px; height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; transition: all 0.2s; position: relative; overflow: hidden; width: 100%; }
.slot-content.active { border: 1px solid #2ecc40; background: rgba(46, 204, 64, 0.05); }
.slot-content:active { transform: scale(0.98); }
.slot-content.disabled { opacity: 0.5; pointer-events: none; }
.slot-plus { font-size: 2rem; color: #666; font-weight: 300; margin-bottom: 5px; }
.slot-main-text { font-weight: 700; font-size: 0.9rem; color: #2ecc40; margin-bottom: 2px; }
.slot-sub-text { font-size: 0.7rem; color: #666; padding: 0 5px; }
.slot-filled-img { width: 60px; height: 60px; object-fit: contain; margin-bottom: 5px; filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5)); }
.slot-filled-name { font-size: 0.85rem; color: #fff; font-weight: 700; max-width: 90%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slot-filled-val { font-size: 0.75rem; background: #333; padding: 2px 6px; border-radius: 4px; margin-top: 4px; display: flex; align-items: center; gap: 3px; }
.upgrade-arrow-center { width: 30px; display: flex; align-items: center; justify-content: center; position: relative; z-index: 2; }
.bolt-circle { width: 36px; height: 36px; background: linear-gradient(135deg, #2ecc40, #00bfff); border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 10px rgba(46, 204, 64, 0.5); font-size: 1rem; color: #fff; border: 2px solid #1c1c1e; }
.upgrade-wheel-section { width: 100%; display: flex; flex-direction: column; align-items: center; margin-bottom: 20px; }
.upgrade-profit-info { background: #1c1c1e; border: 1px solid #2ecc40; color: #fff; padding: 8px 16px; border-radius: 10px; margin-bottom: 25px; font-weight: 700; font-size: 0.9rem; display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.upgrade-profit-info span { color: #00bfff; font-size: 1rem; }
.upgrade-wheel-container { width: 300px; height: 300px; position: relative; display: flex; align-items: center; justify-content: center; }
.deco-dot { position: absolute; width: 6px; height: 6px; background: #2ecc40; border-radius: 50%; opacity: 0.5; }
.dot-tl { top: 0; left: 0; }
.dot-tr { top: 0; right: 0; }
.dot-bl { bottom: 0; left: 0; }
.dot-br { bottom: 0; right: 0; }
.upgrade-wheel-circle { width: 260px; height: 260px; border-radius: 50%; background: #151515; position: relative; box-shadow: inset 0 0 30px #000; border: 8px solid #1e1e24; overflow: hidden; box-sizing: content-box; }
.wheel-grid-bg { display: block !important; position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; z-index: 1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cg stroke='rgba(255,255,255,0.1)' stroke-width='0.2'%3E%3Cline x1='50' y1='50' x2='50' y2='0'/%3E%3Cline x1='50' y1='50' x2='52.6' y2='0.1'/%3E%3Cline x1='50' y1='50' x2='55.2' y2='0.3'/%3E%3Cline x1='50' y1='50' x2='57.8' y2='0.6'/%3E%3Cline x1='50' y1='50' x2='60.4' y2='1.1'/%3E%3Cline x1='50' y1='50' x2='62.9' y2='1.7'/%3E%3Cline x1='50' y1='50' x2='65.4' y2='2.4'/%3E%3Cline x1='50' y1='50' x2='67.9' y2='3.3'/%3E%3Cline x1='50' y1='50' x2='70.3' y2='4.3'/%3E%3Cline x1='50' y1='50' x2='72.7' y2='5.4'/%3E%3Cline x1='50' y1='50' x2='75' y2='6.7'/%3E%3Cline x1='50' y1='50' x2='77.2' y2='8.1'/%3E%3Cline x1='50' y1='50' x2='79.4' y2='9.6'/%3E%3Cline x1='50' y1='50' x2='81.5' y2='11.3'/%3E%3Cline x1='50' y1='50' x2='83.5' y2='13.1'/%3E%3Cline x1='50' y1='50' x2='85.4' y2='15'/%3E%3Cline x1='50' y1='50' x2='87.2' y2='17.1'/%3E%3Cline x1='50' y1='50' x2='88.9' y2='19.2'/%3E%3Cline x1='50' y1='50' x2='90.5' y2='21.5'/%3E%3Cline x1='50' y1='50' x2='92' y2='23.9'/%3E%3Cline x1='50' y1='50' x2='93.3' y2='26.4'/%3E%3Cline x1='50' y1='50' x2='94.6' y2='29'/%3E%3Cline x1='50' y1='50' x2='95.7' y2='31.7'/%3E%3Cline x1='50' y1='50' x2='96.7' y2='34.5'/%3E%3Cline x1='50' y1='50' x2='97.6' y2='37.4'/%3E%3Cline x1='50' y1='50' x2='98.3' y2='40.3'/%3E%3Cline x1='50' y1='50' x2='98.9' y2='43.3'/%3E%3Cline x1='50' y1='50' x2='99.4' y2='46.4'/%3E%3Cline x1='50' y1='50' x2='99.7' y2='49.5'/%3E%3Cline x1='50' y1='50' x2='99.9' y2='52.6'/%3E%3Cline x1='50' y1='50' x2='100' y2='55.7'/%3E%3Cline x1='50' y1='50' x2='99.9' y2='58.8'/%3E%3Cline x1='50' y1='50' x2='99.7' y2='61.9'/%3E%3Cline x1='50' y1='50' x2='99.4' y2='65'/%3E%3Cline x1='50' y1='50' x2='98.9' y2='68.1'/%3E%3Cline x1='50' y1='50' x2='98.3' y2='71.1'/%3E%3Cline x1='50' y1='50' x2='97.6' y2='74.1'/%3E%3Cline x1='50' y1='50' x2='96.7' y2='77'/%3E%3Cline x1='50' y1='50' x2='95.7' y2='79.8'/%3E%3Cline x1='50' y1='50' x2='94.6' y2='82.6'/%3E%3Cline x1='50' y1='50' x2='93.3' y2='85.2'/%3E%3Cline x1='50' y1='50' x2='92' y2='87.7'/%3E%3Cline x1='50' y1='50' x2='90.5' y2='90.1'/%3E%3Cline x1='50' y1='50' x2='88.9' y2='92.4'/%3E%3Cline x1='50' y1='50' x2='87.2' y2='94.5'/%3E%3Cline x1='50' y1='50' x2='85.4' y2='96.5'/%3E%3Cline x1='50' y1='50' x2='83.5' y2='98.3'/%3E%3Cline x1='50' y1='50' x2='81.5' y2='100'/%3E%3Cline x1='50' y1='50' x2='79.4' y2='101.5'/%3E%3Cline x1='50' y1='50' x2='77.2' y2='102.9'/%3E%3Cline x1='50' y1='50' x2='75' y2='104.2'/%3E%3Cline x1='50' y1='50' x2='72.7' y2='105.3'/%3E%3Cline x1='50' y1='50' x2='70.3' y2='106.3'/%3E%3Cline x1='50' y1='50' x2='67.9' y2='107.2'/%3E%3Cline x1='50' y1='50' x2='65.4' y2='108'/%3E%3Cline x1='50' y1='50' x2='62.9' y2='108.6'/%3E%3Cline x1='50' y1='50' x2='60.4' y2='109.1'/%3E%3Cline x1='50' y1='50' x2='57.8' y2='109.5'/%3E%3Cline x1='50' y1='50' x2='55.2' y2='109.8'/%3E%3Cline x1='50' y1='50' x2='52.6' y2='109.9'/%3E%3Cline x1='50' y1='50' x2='50' y2='110'/%3E%3Cline x1='50' y1='50' x2='47.4' y2='109.9'/%3E%3Cline x1='50' y1='50' x2='44.8' y2='109.8'/%3E%3Cline x1='50' y1='50' x2='42.2' y2='109.5'/%3E%3Cline x1='50' y1='50' x2='39.6' y2='109.1'/%3E%3Cline x1='50' y1='50' x2='37.1' y2='108.6'/%3E%3Cline x1='50' y1='50' x2='34.6' y2='108'/%3E%3Cline x1='50' y1='50' x2='32.1' y2='107.2'/%3E%3Cline x1='50' y1='50' x2='29.7' y2='106.3'/%3E%3Cline x1='50' y1='50' x2='27.3' y2='105.3'/%3E%3Cline x1='50' y1='50' x2='25' y2='104.2'/%3E%3Cline x1='50' y1='50' x2='22.8' y2='102.9'/%3E%3Cline x1='50' y1='50' x2='20.6' y2='101.5'/%3E%3Cline x1='50' y1='50' x2='18.5' y2='100'/%3E%3Cline x1='50' y1='50' x2='16.5' y2='98.3'/%3E%3Cline x1='50' y1='50' x2='14.6' y2='96.5'/%3E%3Cline x1='50' y1='50' x2='12.8' y2='94.5'/%3E%3Cline x1='50' y1='50' x2='11.1' y2='92.4'/%3E%3Cline x1='50' y1='50' x2='9.5' y2='90.1'/%3E%3Cline x1='50' y1='50' x2='8' y2='87.7'/%3E%3Cline x1='50' y1='50' x2='6.7' y2='85.2'/%3E%3Cline x1='50' y1='50' x2='5.4' y2='82.6'/%3E%3Cline x1='50' y1='50' x2='4.3' y2='79.8'/%3E%3Cline x1='50' y1='50' x2='3.3' y2='77'/%3E%3Cline x1='50' y1='50' x2='2.4' y2='74.1'/%3E%3Cline x1='50' y1='50' x2='1.7' y2='71.1'/%3E%3Cline x1='50' y1='50' x2='1.1' y2='68.1'/%3E%3Cline x1='50' y1='50' x2='0.6' y2='65'/%3E%3Cline x1='50' y1='50' x2='0.3' y2='61.9'/%3E%3Cline x1='50' y1='50' x2='0.1' y2='58.8'/%3E%3Cline x1='50' y1='50' x2='0' y2='55.7'/%3E%3Cline x1='50' y1='50' x2='0.1' y2='52.6'/%3E%3Cline x1='50' y1='50' x2='0.3' y2='49.5'/%3E%3Cline x1='50' y1='50' x2='0.6' y2='46.4'/%3E%3Cline x1='50' y1='50' x2='1.1' y2='43.3'/%3E%3Cline x1='50' y1='50' x2='1.7' y2='40.3'/%3E%3Cline x1='50' y1='50' x2='2.4' y2='37.4'/%3E%3Cline x1='50' y1='50' x2='3.3' y2='34.5'/%3E%3Cline x1='50' y1='50' x2='4.3' y2='31.7'/%3E%3Cline x1='50' y1='50' x2='5.4' y2='29'/%3E%3Cline x1='50' y1='50' x2='6.7' y2='26.4'/%3E%3Cline x1='50' y1='50' x2='8' y2='23.9'/%3E%3Cline x1='50' y1='50' x2='9.5' y2='21.5'/%3E%3Cline x1='50' y1='50' x2='11.1' y2='19.2'/%3E%3Cline x1='50' y1='50' x2='12.8' y2='17.1'/%3E%3Cline x1='50' y1='50' x2='14.6' y2='15'/%3E%3Cline x1='50' y1='50' x2='16.5' y2='13.1'/%3E%3Cline x1='50' y1='50' x2='18.5' y2='11.3'/%3E%3Cline x1='50' y1='50' x2='20.6' y2='9.6'/%3E%3Cline x1='50' y1='50' x2='22.8' y2='8.1'/%3E%3Cline x1='50' y1='50' x2='25' y2='6.7'/%3E%3Cline x1='50' y1='50' x2='27.3' y2='5.4'/%3E%3Cline x1='50' y1='50' x2='29.7' y2='4.3'/%3E%3Cline x1='50' y1='50' x2='32.1' y2='3.3'/%3E%3Cline x1='50' y1='50' x2='34.6' y2='2.4'/%3E%3Cline x1='50' y1='50' x2='37.1' y2='1.7'/%3E%3Cline x1='50' y1='50' x2='39.6' y2='1.1'/%3E%3Cline x1='50' y1='50' x2='42.2' y2='0.6'/%3E%3C/g%3E%3Ccircle cx='50' cy='50' r='49' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='50' r='38' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='0.5'/%3E%3Ccircle cx='50' cy='50' r='25' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='0.5'/%3E%3C/svg%3E"); }
.wheel-sectors { width: 100%; height: 100%; position: absolute; top: 0; left: 0; border-radius: 50%; transform: rotate(-90deg); touch-action: none; will-change: transform; z-index: 2; }
.wheel-center-overlay { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 120px; height: 120px; background: rgba(20,20,20,0.9); border-radius: 50%; border: 2px solid #333; display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 10; pointer-events: none; }
.upgrade-pointer-ring { position: absolute; top: -12px; left: -12px; right: -12px; bottom: -12px; border-radius: 50%; border: 2px dashed rgba(255,255,255,0.1); pointer-events: none; display: flex; justify-content: center; z-index: 5; }
.win-percent-text { font-size: 1.8rem; font-weight: 800; color: #2ecc40; }
.win-chance-label { font-size: 0.6rem; color: #888; letter-spacing: 1px; margin-top: 2px; }
.pointer-triangle { width: 20px; height: 26px; background: linear-gradient(to bottom, #ffd700, #ffae00); clip-path: polygon(50% 100%, 0 0, 100% 0); position: absolute; top: 8px; filter: drop-shadow(0 0 5px #ffd700); z-index: 20; }
.btn-upgrade-action.disabled { background: #333 !important; color: #666 !important; box-shadow: none !important; cursor: not-allowed !important; animation: none !important; }
.how-upgrades-work { width: 100%; background: #151515; border-radius: 12px; overflow: hidden; border: 1px solid #333; margin-bottom: 30px; }
.how-header { padding: 15px 15px 10px 15px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-size: 0.95rem; font-weight: 700; color: #fff; }
.how-header i.fa-circle-info { margin-right: 5px; color: #fff; }
.how-divider { height: 1px; background: linear-gradient(90deg, transparent, #333, transparent); width: 100%; margin-bottom: 15px; }
.toggle-icon { font-size: 0.8rem; color: #888; display: flex; align-items: center; gap: 5px; }
.how-content { padding: 0 15px 15px 15px; display: block; }
.how-upgrades-work:not(.open) .how-content { display: none; }
.how-upgrades-work:not(.open) .toggle-icon i { transform: rotate(180deg); }
.how-step { display: flex; gap: 15px; margin-bottom: 18px; }
.step-circle { width: 24px; height: 24px; background: #00c853; color: #000; font-weight: 800; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; flex-shrink: 0; margin-top: 2px; }
.how-step .step-text strong { display: block; color: #fff; font-size: 1rem; margin-bottom: 4px; }
.how-step .step-text p { margin: 0; color: #aaa; font-size: 0.85rem; line-height: 1.4; }
.how-outcomes-row { display: flex; gap: 12px; margin-top: 10px; }
.outcome-box { flex: 1; border-radius: 8px; padding: 12px 10px; border: 1px solid transparent; }
.box-success { background: rgba(0, 200, 83, 0.1); border-color: rgba(0, 200, 83, 0.3); }
.box-failure { background: rgba(255, 65, 54, 0.1); border-color: rgba(255, 65, 54, 0.3); }
.outcome-title { font-weight: 700; font-size: 0.95rem; margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.dot-indicator { width: 6px; height: 6px; border-radius: 50%; }
.outcome-desc { font-size: 0.8rem; color: #aaa; line-height: 1.3; }
.dot-indicator.green { background: #388e3c !important; box-shadow: 0 0 5px #388e3c !important; }
.dot-indicator.red { background: #d32f2f !important; box-shadow: 0 0 5px #d32f2f !important; }
.box-success .outcome-title { color: #388e3c !important; }
.box-failure .outcome-title { color: #d32f2f !important; }
.bottom-sheet { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 500; display: flex; flex-direction: column; justify-content: flex-end; }
.bottom-sheet.hidden { display: none; }
.sheet-content { background: #1c1c1e; border-top-left-radius: 20px; border-top-right-radius: 20px; padding: 20px; width: 100%; min-height: 75vh; max-height: 90vh; overflow-y: auto; animation: slideUp 0.3s ease-out; position: relative; border-top: 1px solid #333; box-sizing: border-box; }
.sheet-content.full-height { height: 80vh; display: flex; flex-direction: column; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.sheet-close-x { position: absolute; top: 15px; right: 20px; font-size: 1.5rem; color: #666; cursor: pointer; }
.sheet-header h3 { margin: 0; font-size: 1.2rem; }
.sheet-header { margin-bottom: 10px !important; }

.sheet-sub-header { color: #888; font-size: 0.85rem; margin-bottom: 15px; margin-top: 5px; }
.sheet-alert { text-align: center; padding-bottom: 40px; }
.alert-icon-box { position: relative; width: 80px; height: 80px; margin: 0 auto 15px; }
.alert-badge { position: absolute; top: -5px; right: -5px; background: #2ecc40; color: #000; border-radius: 50%; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.sheet-alert h3 { color: #2ecc40; margin-bottom: 5px; }
.sheet-alert p { color: #888; font-size: 0.9rem; margin-bottom: 25px; }
.btn-sheet-action { width: 100%; padding: 14px; border-radius: 12px; font-weight: 700; font-size: 1rem; margin-bottom: 10px; cursor: pointer; border: none; display: flex; align-items: center; justify-content: center; gap: 8px; }
.btn-sheet-action.primary { background: #2ecc40; color: #000; }
.btn-sheet-action.secondary { background: #333; color: #fff; }
.sheet-or { color: #444; font-size: 0.8rem; margin: 10px 0; font-weight: 700; }
.sheet-sub { font-size: 0.8rem !important; margin-bottom: 10px !important; }
.sheet-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding-bottom: 20px; overflow-y: auto; }
.gift-select-card { background: #252525; border: 1px solid #333; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; align-items: center; position: relative; cursor: pointer; min-height: 160px; box-sizing: border-box; }
.gift-select-card.active { border-color: #2ecc40; background: rgba(46, 204, 64, 0.1); }
.gift-select-card .price-tag { position: absolute; top: 6px; right: 6px; background: #000; font-size: 0.7rem; padding: 2px 5px; border-radius: 4px; display: flex; align-items: center; gap: 2px; z-index: 10; }
.gift-select-card img { width: 50px; height: 50px; object-fit: contain; margin: 35px 0 5px 0; }
.gift-select-card .name { font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; margin-bottom: 2px; }
.gift-select-card .rarity-label { color: #777; font-size: 0.65rem; margin-top: 0; margin-bottom: 5px; }

.gift-select-card .multiplier-tag {width: fit-content !important; padding: 2px 8px !important; margin: 0 auto !important; border-radius: 6px !important; font-size: 0.75rem !important; font-weight: 800 !important; background: rgba(46, 204, 64, 0.15) !important; color: #2ecc40 !important; border: 1px solid rgba(46, 204, 64, 0.3) !important; text-align: center; }
.gift-select-card.target-card { justify-content: flex-start; gap: 2px; }
.filter-tabs { display: flex; gap: 10px; margin-bottom: 15px; }
.filter-tab { background: #333; color: #888; padding: 6px 15px; border-radius: 8px; font-size: 0.85rem; font-weight: 600; cursor: pointer; }
.filter-tab.active { background: #2ecc40; color: #000; }
.sort-bar { font-size: 0.75rem; color: #666; margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.custom-alert { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 600; display: flex; align-items: center; justify-content: center; }
.custom-alert.hidden { display: none; }
.alert-content.red-theme { background: #1a1a1a; border: 2px solid #ff4136; border-radius: 20px; padding: 30px; width: 85%; text-align: center; position: relative; box-shadow: 0 0 30px rgba(255, 65, 54, 0.3); }
.alert-title { color: #ff4136; font-size: 1.5rem; margin: 0 0 10px 0; }
.alert-msg { color: #ccc; font-size: 0.9rem; margin-bottom: 20px; }
.heart-break-icon { font-size: 4rem; margin-bottom: 25px; animation: brokenHeart 1s infinite alternate; }
@keyframes brokenHeart { from { transform: scale(1); } to { transform: scale(1.1); } }
.btn-alert-action { background: #ff4136; color: white; border: none; padding: 12px 30px; border-radius: 12px; font-weight: 800; font-size: 1rem; width: 100%; cursor: pointer; }
.sector-path { stroke: none; }
#source-gift-grid.sheet-grid { display: flex !important; overflow-x: auto !important; padding-bottom: 15px; gap: 12px; grid-template-columns: none !important; scrollbar-width: none; -ms-overflow-style: none; }
#source-gift-grid.sheet-grid::-webkit-scrollbar { display: none; /* Chrome, Safari, Opera */ }
#source-gift-grid .gift-select-card { min-width: 110px; flex-shrink: 0; }

#target-gift-grid.sheet-grid { display: grid !important; grid-template-columns: repeat(3, 1fr) !important; gap: 8px !important; padding: 0 0 20px 0 !important; width: 100% !important; box-sizing: border-box !important; }
#target-gift-grid .gift-select-card { min-width: 0 !important; width: 100% !important; margin: 0 !important; box-sizing: border-box !important; }

.sheet-footer-info { margin-top: 20px; text-align: center; padding: 0 10px; }
.sheet-footer-info p { color: #888; font-size: 0.9rem; margin-bottom: 15px; }
.btn-gradient-yellow { background: linear-gradient(to right, #ffd700, #ff8c00) !important; color: #000 !important; font-weight: 800; text-decoration: none; box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3); }
.btn-gradient-yellow i { margin-left: 8px; }
@keyframes pulseGreenEffect { 0% { box-shadow: 0 4px 15px rgba(56, 142, 60, 0.3); background: #388e3c; } 50% { box-shadow: 0 4px 30px rgba(56, 142, 60, 0.7); background: #43a047; } 100% { box-shadow: 0 4px 15px rgba(56, 142, 60, 0.3); background: #388e3c; } }
.btn-upgrade-action { width: 100% !important; padding: 18px 20px !important; font-size: 1.1rem !important; font-weight: 800 !important; border-radius: 12px !important; border: none !important; color: #e0e0e0 !important; margin-bottom: 35px !important; background: #388e3c !important; box-shadow: 0 4px 15px rgba(56, 142, 60, 0.3) !important; transition: all 0.3s ease !important; }
.btn-upgrade-action:not(.disabled) { animation: pulseGreenEffect 2s infinite ease-in-out !important; }
.ton-icon-small { width: 10px !important; height: 10px !important; margin: 0 !important; object-fit: contain !important; }

.upgrade-pointer-ring { position: absolute; top: -12px; left: -12px; right: -12px; bottom: -12px; border-radius: 50%; border: 2px dashed rgba(255,255,255,0.15); z-index: 5; pointer-events: none; will-change: transform; }
.upgrade-pointer-ring::after { content: ''; position: absolute; top: -5px; left: 50%; transform: translateX(-50%); width: 8px; height: 8px; background: #ffd700; border-radius: 50%; box-shadow: 0 0 6px #ffd700, 0 0 12px rgba(255, 215, 0, 0.5); z-index: 20; }
.upgrade-pointer-ring::before { content: none; display: none; }

.live-feed-container { width: 100%; height: 70px; background: transparent; display: flex; align-items: center; margin-bottom: 8px; gap: 4px; overflow: hidden; }
.live-indicator { display: flex; flex-direction: column-reverse; align-items: center; justify-content: center; padding-right: 4px; border-right: 1px solid rgba(255, 255, 255, 0.1); height: 100%; }
.live-text { writing-mode: vertical-rl; transform: rotate(180deg); color: #8e7aff; font-weight: 900; font-size: 0.75rem; letter-spacing: 2px; }
.live-dot { width: 8px; height: 8px; background-color: #8e7aff; border-radius: 50%; margin-top: 5px; box-shadow: 0 0 5px #8e7aff; animation: livePulse 1.5s infinite ease-in-out; }
@keyframes livePulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.6; } 100% { transform: scale(1); opacity: 1; } }
.live-items-scroll { flex: 1; display: flex; align-items: center; gap: 2px; overflow: hidden; }
.live-feed-item { min-width: 55px; width: 55px; height: 55px; background: #1c1c1e; border-radius: 10px; display: flex; align-items: center; justify-content: center; border: 1px solid #333; animation: slideInLeft 0.5s ease-out; flex-shrink: 0; }
.live-feed-item img { width: 75%; height: 75%; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)); }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }

.online-status-badge { display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 20px; padding: 6px 14px; margin: 5px auto 15px auto; width: fit-content; backdrop-filter: blur(4px); }
.status-dot { width: 8px; height: 8px; background-color: #2ecc40; border-radius: 50%; margin-right: 8px; box-shadow: 0 0 6px rgba(46, 204, 64, 0.6); }
#online-count-text { font-size: 0.8rem; font-weight: 700; color: #fff; letter-spacing: 0.5px; }


.card-update { grid-column: span 2; border: 2px solid #2ecc40; box-shadow: 0 0 15px rgba(46, 204, 64, 0.25); background: linear-gradient(135deg, #004d00, #2ecc40, #004d00); background-size: 200% 200%; animation: gradientCardMove 6s ease infinite; display: flex; flex-direction: row; align-items: center; justify-content: space-between; padding: 0 20px; }
.card-short { height: 90px; }
.card-update .card-header-wide { color: #fff; text-shadow: 0 0 5px rgba(46, 204, 64, 0.8); }
.btn-update { background: #fff; color: #006400; font-weight: 800; box-shadow: 0 0 10px rgba(255,255,255,0.5); }
.update-imgs-left { display: flex; align-items: center; gap: 8px; z-index: 2; }
.up-img { width: 50px; height: 50px; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(0,0,0,0.5)); }
.up-bolt { background: transparent !important; box-shadow: none !important; border: none !important; color: #fff; font-size: 1.5rem; animation: pulseReady 1s infinite; text-shadow: 0 0 15px #fff; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; }
.update-content-right { align-items: flex-end !important; text-align: right; }
.update-imgs-left .up-img:first-child { transform: translateY(6px); } .update-imgs-left .up-img:last-child { transform: translateY(-6px); }


#pvp-view { width: 100%; height: calc(100vh - 100px) !important; margin-top: 100px; display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; background: transparent !important; position: fixed; top: 0; left: 0; z-index: 150; padding-bottom: 80px; padding-top: 10px; box-sizing: border-box; }
#pvp-view::before { content: ''; position: fixed; top: 0; left: 0; right: 0; height: 100px; background: rgba(15, 15, 15, 0.85); backdrop-filter: blur(12px); z-index: 160; pointer-events: none; border-bottom: 1px solid rgba(255, 255, 255, 0.08); display: block; }
#pvp-view.hidden { display: none !important; }

.pvp-upper-stage { position: relative; width: 100%; height: 480px; background: transparent; overflow: visible !important; z-index: auto; flex-shrink: 0; border-bottom: 1px solid #1a1a1a; }
.pvp-wheel-arch { position: absolute; top: 150px; left: 50%; transform: translateX(-50%); width: 310px; height: 310px; z-index: 1; opacity: 0.9; }
.pvp-wheel-spinner { width: 100%; height: 100%; border-radius: 50%; position: relative; transition: transform 5s cubic-bezier(0.25, 0.1, 0.25, 1); }
.pvp-slot { position: absolute; top: 50%; left: 50%; width: 85px; height: 100%; margin-left: -42.5px; margin-top: -50%; transform-origin: center center; }
.pvp-slot-content { width: 100%; height: 70px; background: #252525; color: #888; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden !important; border-radius: 0;
    clip-path: path('M 15 0 H 70 Q 85 0 85 15 L 72 55 Q 70 70 55 70 H 30 Q 15 70 13 55 L 0 15 Q 0 0 15 0 Z');
    -webkit-clip-path: path('M 15 0 H 70 Q 85 0 85 15 L 72 55 Q 70 70 55 70 H 30 Q 15 70 13 55 L 0 15 Q 0 0 15 0 Z');
    margin: 0 1px; text-align: center !important; }
.pvp-slot-active { background: radial-gradient( 120% 60% at 50% -10%, var(--slot-color) 0%, rgba(37, 37, 37, 0) 90%), #252525 !important; box-shadow: none !important; border-top: 3px solid var(--slot-color); }
.pvp-slot-img { width: 32px !important; height: 32px !important; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.6)); z-index: 10; position: relative; margin-top: 5px; }
.pvp-slot-plus { font-size: 0.9rem; font-weight: 900; color: #fff; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); z-index: 11; text-shadow: 0 1px 3px rgba(0,0,0,1); }
.pvp-slot-content.active-slot { background: #7b68ee; color: #fff; box-shadow: inset 0 0 0 2px #fff; }
.pvp-text-info { position: absolute; top: 380px; left: 50%; transform: translate(-50%, -50%); z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 200px; text-align: center; pointer-events: none; }
.pvp-status-badge {background: #000; padding: 4px 12px; border-radius: 20px; font-size: 0.7rem; color: #888; font-weight: 700; margin-bottom: 4px; border: 1px solid #333; letter-spacing: 1px; }
.pvp-pool-label { font-size: 0.65rem; color: #aaa; letter-spacing: 1px; font-weight: 600; }
.pvp-pool-value { font-size: 1.6rem; font-weight: 900; color: #fff; display: flex; align-items: center; justify-content: center; gap: 5px; text-shadow: 0 2px 10px rgba(0,0,0,0.8); }
.pvp-game-id { font-size: 0.6rem; color: #555; margin-top: 2px; }

.pvp-sticker-container { position: absolute; bottom: 110px; left: 50%; transform: translateX(-50%); width: 130px; height: 130px; filter: drop-shadow(0 10px 15px rgba(0,0,0,0.6)); display: flex; align-items: center; justify-content: center; z-index: 100; pointer-events: none; }
.pvp-sticker-container tgs-player { width: 100%; height: 100%; }
.pvp-bottom-section { flex: 1; background: #111111; display: flex; flex-direction: column; align-items: center; width: 100%; position: relative; z-index: 20; padding-top: 0; }
.pvp-actions-container { width: 90%; margin-top: 10px; margin-bottom: 25px; position: relative; z-index: 40; }
.btn-pvp-action { width: 100%; background: linear-gradient(180deg, #FFD700 0%, #FF8C00 100%); color: #000; border: none; padding: 16px 0; border-radius: 14px; font-weight: 900; font-size: 1.1rem; text-transform: uppercase; box-shadow: 0 5px 20px rgba(255, 140, 0, 0.25); cursor: pointer; border-bottom: 3px solid #cc7000; transition: transform 0.1s; }
.btn-pvp-action:active { transform: scale(0.98) translateY(2px); border-bottom: 1px solid #cc7000; }
.btn-pvp-action.hidden { display: none !important; }
.pvp-players-header { width: 90%; display: flex; justify-content: space-between; align-items: center; color: #fff; font-weight: 700; font-size: 0.95rem; margin-bottom: 15px; border-bottom: 1px solid #222; padding-bottom: 10px; }

#pvp-player-count { color: #666; font-size: 0.85rem; }
.pvp-players-list { width: 90%; display: flex; flex-direction: column; gap: 8px; padding-bottom: 5px; }

@keyframes idleSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
.idle-spinning { animation: idleSpin 20s linear infinite; }

.pvp-tabs { display: flex; background: #000; padding: 4px; border-radius: 12px; margin-bottom: 20px; }
.pvp-tab { flex: 1; text-align: center; padding: 10px; color: #666; font-weight: 700; border-radius: 8px; cursor: pointer; }
.pvp-tab.active { background: #7b68ee; color: white; }
#pvp-tab-ton.active { background: #00bfff; }
.pvp-empty-state { text-align: center; padding: 20px 0; display: none; flex-direction: column; align-items: center; }
.pvp-empty-state.hidden { display: none !important; }
.pvp-empty-img { width: 60px; margin-bottom: 15px; }
.btn-blue { background: #0098ea !important; color: white !important; box-shadow: 0 4px 15px rgba(0, 152, 234, 0.4) !important; }
.pvp-balance-row { display: flex; justify-content: space-between; color: #aaa; font-size: 0.9rem; margin-bottom: 20px; }
.pvp-balance-row .val { color: #fff; font-weight: 700; }
.pvp-input-wrapper { margin-bottom: 25px; }
.pvp-input-wrapper label { display: block; color: #666; font-size: 0.8rem; margin-bottom: 8px; }
.pvp-input-wrapper .input-box { position: relative; }
.pvp-input-wrapper input { width: 100%; background: #222; border: 1px solid #333; padding: 15px; border-radius: 12px; color: white; font-size: 1.1rem; font-weight: 700; outline: none; }
.pvp-input-wrapper .suffix { position: absolute; right: 15px; top: 15px; }

.pvp-gifts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-height: 400px; overflow-y: auto; padding: 5px; }
.pvp-gifts-grid.hidden { display: none !important; }
.pvp-gift-select { background: #252525; border: 1px solid #333; border-radius: 12px; padding: 10px; display: flex; flex-direction: column; align-items: center; position: relative; cursor: pointer; min-height: 140px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }
.pvp-gift-select.selected { border-color: #2ecc40; background: rgba(46, 204, 64, 0.1); }
.pvp-gift-select .val-tag img { width: 10px !important; height: 10px !important; object-fit: contain; display: block; }
.pvp-gift-select .val-tag { display: flex; align-items: center; justify-content: center; gap: 3px; white-space: nowrap; }
.pvp-gift-select img { width: 55px; height: 55px; margin-top: 25px; margin-bottom: 10px; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); }
.pvp-gift-select span { font-size: 0.75rem; color: #fff; text-align: center; font-weight: 700; line-height: 1.2; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; width: 100%; }
.pvp-gift-select .rarity-tag { font-size: 0.65rem; color: #777; background: transparent; margin-top: auto; }
.pvp-gift-select:active { border-color: #7b68ee; }

.winner-theme { background: #111; border: 2px solid #ffd700; }
.winner-header { color: #fff; font-size: 1.5rem; font-weight: 900; margin-bottom: 0; }
.winner-game-num { color: #555; font-size: 0.8rem; margin-bottom: 20px; }
.winner-profile { display: flex; align-items: center; background: #1a1a1a; padding: 10px; border-radius: 50px; margin-bottom: 20px; border: 1px solid #333; }
.win-avatar { width: 50px; height: 50px; border-radius: 50%; margin-right: 15px; border: 2px solid #ffd700; }
.win-info { text-align: left; flex: 1; }
.win-info h3 { margin: 0; color: #fff; font-size: 1rem; }
.win-badge { background: #ffd700; color: #000; font-size: 0.6rem; font-weight: 800; padding: 2px 6px; border-radius: 4px; width: fit-content; margin-top: 2px; }
.win-stats { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.stat-box { display: flex; flex-direction: column; }
.stat-box .lbl { font-size: 0.6rem; color: #666; }
.stat-box .val { font-size: 0.8rem; color: #00bfff; font-weight: 700; }
.winner-rewards-box { display: flex; justify-content: center; gap: 10px; }
.reward-item { background: linear-gradient(135deg, #1c1c1e, #2a2a2e); border: 1px solid #7b68ee; padding: 15px; border-radius: 16px; width: 100px; }
.rew-val { font-size: 1.2rem; font-weight: 800; color: #fff; }
.rew-icon img { width: 30px; margin: 5px 0; }
.rew-lbl { font-size: 0.7rem; color: #aaa; }

#pvp-view-gifts, #pvp-view-ton { width: 100%; display: none; animation: fadeIn 0.3s ease; }
#pvp-view-gifts.active-view, #pvp-view-ton.active-view { display: block; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.pvp-top-hud { position: absolute; top: 70px; left: 0; width: 100%; display: flex; justify-content: center; gap: 12px; z-index: 20; padding: 0 10px; }
.hud-pill { border-radius: 12px; padding: 8px 16px; display: flex; align-items: center; height: 54px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.05); }
.pill-green { background: #1a2e1a; border-left: 3px solid #2ecc40; flex-direction: column; align-items: center !important; justify-content: flex-start !important; padding-top: 8px !important; padding-bottom: 0 !important; min-width: 110px; }
.pill-blue { background: #151a25; border-left: 3px solid #00bfff; flex-direction: row; align-items: center; gap: 12px; }
.hud-label { font-size: 0.65rem; color: #8faeb5; font-weight: 600; text-transform: uppercase; margin-bottom: 2px; }
.hud-value { font-size: 0.95rem; color: #fff; font-weight: 800; display: flex; align-items: center; gap: 4px; }
.text-cyan { color: #00bfff; }
.ton-mini-icon { width: 14px; height: 14px; }

.hud-col { display: flex; flex-direction: column; justify-content: center; }
.hud-sep { width: 1px; height: 30px; background: rgba(255,255,255,0.15); }
.hud-col-right { display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; min-width: 50px; }
.hud-col-right i { font-size: 1.1rem; margin-bottom: 2px; color: #ffd700; }
.hud-items-text { font-size: 0.7rem; font-weight: 700; color: #eee; }
#pvp-state-label { color: #59a860; }

.pvp-progress-bar-container { width: 100%; height: 6px; background: rgba(0,0,0,0.3); border-radius: 3px; margin-top: 5px; overflow: hidden; position: relative; }
.pvp-progress-fill { width: 0%; height: 100%; background: #7FFF00; box-shadow: 0 0 10px #7FFF00; transition: none; }
.pp-bets-row { display: flex; gap: 5px; font-size: 0.75rem; color: #aaa; align-items: center; margin-top: 2px; }
.pp-bet-icon { width: 14px; height: 14px; object-fit: contain; border-radius: 3px; }
@keyframes bounce { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-3px); } }


.pvp-player-card.is-gift { border-left: none !important; }
.pvp-player-card.is-ton { border-left: none !important; }
.pvp-player-color-indicator { position: absolute; top: 0; left: 0; width: 5px !important; height: 100%; z-index: 1; border-top-left-radius: 12px; border-bottom-left-radius: 12px; }

.pvp-player-card { background: #151515; border-radius: 12px; padding: 10px 12px; display: flex; align-items: flex-start; justify-content: space-between; border: 1px solid #2a2a2a; margin-bottom: 8px; position: relative; overflow: hidden !important; min-height: 70px; height: auto !important; padding-left: 0 !important; }
.pvp-player-color-indicator { position: absolute; top: 0; left: 0; width: 4px; height: 100%; }
.pp-left { display: flex; align-items: center; gap: 12px; flex: 1; }
.pp-img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; border: 2px solid #333; flex-shrink: 0; }
.pp-info { display: flex; flex-direction: column; justify-content: center; gap: 6px; width: 100%; }
.pp-info h4 { margin: 0; font-size: 0.95rem; color: #fff; font-weight: 700; line-height: 1; }
.bet-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.bet-badge.is-ton { background: rgba(0, 191, 255, 0.15); border: 1px solid #006080; color: #fff; }
.bet-badge.is-gift { background: #252525; border: 1px solid #444; color: #ccc; }
.bet-badge img { width: 14px; height: 14px; object-fit: contain; }
.pp-left { display: flex; align-items: center; gap: 12px; flex: 1; height: 100%; margin-left: 14px; z-index: 2; }
.pp-right { text-align: right; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; min-width: 70px; gap: 7px; }
.pp-chance { font-size: 1.1rem; font-weight: 800; color: #fff; }
.pp-total-val { font-size: 0.75rem; color: #8faeb5; font-weight: 500; }
.pp-val { font-weight: 800; color: #fff; font-size: 0.9rem; }
.pp-type { font-size: 0.7rem; color: #555; }

.bet-badge-gift-item { background: rgba(255, 255, 255, 0.05); border: 1px solid #666; border-radius: 8px; width: 48%; height: 40px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.bet-badge-gift-item img { width: 28px; height: 28px; object-fit: contain; }
.bet-badge-ton-full { background: rgba(0, 191, 255, 0.15); border: 1px solid #00bfff; color: #fff; width: 100%; padding: 6px; border-radius: 8px; font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 6px; }
.bet-badge-ton-full img { width: 16px; height: 16px; }
.pp-bets-row { display: grid !important; grid-template-columns: 1fr 1fr; gap: 4px; width: 100%; max-width: 130px; margin-top: 5px; align-items: start; }
.bet-item-box { width: 100% !important; height: 28px; min-width: 0 !important; max-width: none !important; display: flex; align-items: center; justify-content: center; border-radius: 8px; box-sizing: border-box; padding: 0 4px; margin: 0 !important; }

.bet-item-gift { background: rgba(255, 255, 255, 0.05); border: 1px solid #666; }
.bet-item-gift img { width: 20px; height: 20px; object-fit: contain; }
.bet-item-ton { background: rgba(0, 191, 255, 0.15); border: 1px solid #00bfff; color: #fff; font-size: 0.8rem; font-weight: 700; gap: 4px; }
.bet-item-ton img { width: 12px; height: 12px; }
.bet-item-ton span { font-size: 0.65rem; }


#pvp-battle-stage { position: absolute; top: 120px; left: 0; width: 100%; height: 380px; display: flex; justify-content: center; align-items: center; z-index: 50; background: transparent; transform: scale(0.92); }
#pvp-battle-stage.hidden { display: none !important; }
.ring-container { width: 320px; height: 320px; position: relative; background: #1a1a1a; box-shadow: 0 30px 60px rgba(0,0,0,0.9); }
.ring-surface { position: absolute; top: 10px; left: 10px; right: 10px; bottom: 10px; background: #252525; border: 1px solid rgba(0,0,0,0.5); overflow: hidden; display: flex; box-shadow: inset 0 0 20px rgba(0,0,0,0.8); z-index: 10; }
.ring-post { position: absolute; width: 20px; height: 20px; border-radius: 4px; z-index: 20; box-shadow: 0 3px 10px rgba(0,0,0,0.5); background: #fff !important; border: 2px solid #ccc !important; }
.rope-top { position: absolute; top: 0; left: 0; width: 100%; height: 6px; background: linear-gradient(90deg, #ff0000 50%, #0055ff 50%); box-shadow: 0 2px 5px rgba(0,0,0,0.5); }
.rope-bottom { position: absolute; bottom: 0; left: 0; width: 100%; height: 6px; background: linear-gradient(90deg, #0055ff 50%, #ff0000 50%); box-shadow: 0 -2px 5px rgba(0,0,0,0.5); }
.rope-left { position: absolute; top: 0; left: 0; width: 6px; height: 100%; background: linear-gradient(180deg, #0055ff 50%, #ff0000 50%); box-shadow: 2px 0 5px rgba(0,0,0,0.5); }
.rope-right { position: absolute; top: 0; right: 0; width: 6px; height: 100%; background: linear-gradient(180deg, #ff0000 50%, #0055ff 50%); box-shadow: -2px 0 5px rgba(0,0,0,0.5); }
.post-tl { top: -10px; left: -10px; background: #eee; border: 2px solid #ccc; }
.post-tr { top: -10px; right: -10px; background: #0055ff; border: 2px solid #003399; }
.post-bl { bottom: -10px; left: -10px; background: #ff0000; border: 2px solid #990000; }
.post-br { bottom: -10px; right: -10px; background: #eee; border: 2px solid #ccc; }

.ring-ropes-container { position: absolute; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 15; }
/*.battle-area { position: relative; width: 100%; border-bottom: 1px solid rgba(0,0,0,0.2); display: flex; align-items: center !important; justify-content: center !important; }
.battle-area-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; opacity: 0.9; z-index: 5; }
*/
.battle-area { position: absolute; top: 0; left: 0; width: 100% !important; height: 100% !important; border: none !important; }
.battle-area-avatar { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; object-fit: cover; opacity: 0.9; z-index: 5; position: absolute; }

.pvp-puck { width: 28px; height: 28px; background: transparent; border: 3.5px solid #000; border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 30; box-shadow: none; }
.pvp-puck.hidden { display: none; }
.puck-lines { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; }
.puck-lines::before { content:''; position: absolute; top: 0; bottom: 0; height: auto; left: 50%; width: 2px; background: #000; transform: translateX(-50%); }
.puck-lines::after { content:''; position: absolute; left: 0; right: 0; width: auto; top: 50%; height: 2px; background: #000; transform: translateY(-50%); }
.puck-arrow { position: absolute; top: 50%; left: 50%; width: 0px; height: 0px; background: transparent; z-index: 29; display: flex; align-items: center; transform-origin: center center; }
.puck-arrow.hidden { display: none; }
.puck-arrow::after { content: ''; display: none; }
.puck-arrow-line { position: absolute; left: 16px; width: 25px; height: 3px; background: #fff; box-shadow: 0 0 3px rgba(0,0,0,0.5); border-radius: 2px; }
.puck-arrow i { position: absolute; left: 38px; color: #fff; font-size: 12px; top: 50%; transform: translateY(-50%) rotate(0deg); filter: drop-shadow(0 1px 2px rgba(0,0,0,0.8)); line-height: 0; }

.custom-alert { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); z-index: 200; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; padding-bottom: 0; }
.custom-alert.hidden { display: none !important; }
.alert-content.winner-theme { width: 100%; max-width: 100%; background: #111; border-radius: 24px 24px 0 0; border-top: 1px solid #333; padding: 30px 20px 80px 20px; box-sizing: border-box; min-height: 60vh; animation: slideUpPanel 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); position: relative; }
.rc-icon-big img { width: 24px !important; height: 24px !important; object-fit: contain; display: block; margin: 0 auto; }

@keyframes slideUpPanel { from { transform: translateY(100%); } to { transform: translateY(0); } }
.alert-close { position: absolute; top: 20px; right: 20px; background: #333; color: #fff; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; z-index: 10; }
.winner-header { font-size: 1.4rem; color: #fff; font-weight: 900; margin-bottom: 5px; }
.winner-game-num { font-size: 0.9rem; color: #666; margin-bottom: 25px; }
.winner-profile { background: #1c1c1e; border-radius: 18px; padding: 15px; display: flex; align-items: center; margin-bottom: 25px; }
.win-avatar { width: 50px; height: 50px; margin-right: 15px; border-radius: 50%; }
.win-info h3 { font-size: 1.1rem; margin: 0 0 4px 0; color: white; }
.win-badge { color: #ffd700; font-size: 0.8rem; font-weight: 700; }
.win-stats { margin-left: auto; text-align: right; }
.win-stats .val { background: #3a3a3c; padding: 5px 10px; border-radius: 8px; color: #fff; font-size: 0.85rem; font-weight: 700; }
.winner-rewards-title { font-size: 1rem; color: #fff; font-weight: 700; margin-bottom: 15px; }
.winner-rewards-box { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.reward-card-new { background: linear-gradient(180deg, #2b2440 0%, #1e1b29 100%); border: 1px solid #4a3b69; border-radius: 16px; padding: 15px; height: 140px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.rc-top { background: rgba(0,0,0,0.4); border-radius: 8px; padding: 4px 10px; font-size: 0.85rem; color: #fff; font-weight: 700; margin-bottom: 12px; display: flex; align-items: center; gap: 5px; }
.rc-icon-big { width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.ton-bg { background: #0088cc; box-shadow: 0 0 12px rgba(0,136,204,0.5); }
.gift-bg { background: #ffd700; box-shadow: 0 0 12px rgba(255,215,0,0.4); }
.rc-icon-big img { width: 28px !important; height: 28px !important; max-width: 100%; }
.rc-badge { font-size: 0.7rem; padding: 3px 8px; border-radius: 4px; background: #333; color: #ccc; margin-bottom: 5px; }
.random-badge { background: #4a3b69; color: #d4bbff; }
.rc-name { font-size: 0.95rem; font-weight: 700; color: #fff; }

.reward-card-new .rc-top img { width: 14px !important; height: 14px !important; object-fit: contain; }
.mini-ton { width: 16px !important; height: 16px !important; object-fit: contain; vertical-align: middle; margin-left: 4px; display: inline-block; }
.btn-disabled-visual { filter: grayscale(100%); opacity: 0.5; pointer-events: none; cursor: not-allowed; }
.btn-frozen-inprogress { pointer-events: none !important; }




#alert-pvp-winner { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 9999; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(8px); }
.winner-theme-redesign { background: #1c1c1e; width: 90%; max-width: 350px; border-radius: 24px; padding: 25px 20px; position: relative; border: 1px solid #333; box-shadow: 0 20px 50px rgba(0,0,0,0.5); display: flex; flex-direction: column; }
.alert-close { position: absolute; top: 15px; right: 15px; background: #2c2c2e; color: #fff; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; cursor: pointer; z-index: 10; }
.win-header-row { margin-bottom: 20px; }
.win-header-row h1 { font-size: 2rem; font-weight: 900; color: #fff; margin: 0; line-height: 1; }
.win-game-id { color: #666; font-size: 0.9rem; font-weight: 600; margin-top: 4px; }
.win-user-card { background: #252525; border-radius: 20px; padding: 15px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 25px; }
.win-card-left { display: flex; align-items: center; gap: 12px; }
.win-avatar-ring { width: 50px; height: 50px; border-radius: 50%; border: 2px solid #333; overflow: hidden; }
.win-avatar-ring img { width: 100%; height: 100%; object-fit: cover; }
.win-text-info { display: flex; flex-direction: column; }
.win-username { color: #fff; font-weight: 700; font-size: 1rem; }
.win-badge-gold { color: #ffd700; font-size: 0.8rem; font-weight: 700; }
.win-card-right { background: #1a1a1a; padding: 8px 12px; border-radius: 12px; text-align: right; min-width: 100px; }
.win-stat-row { display: flex; flex-direction: column; margin-bottom: 2px; }
.win-stat-row:last-child { margin-bottom: 0; }
.win-stat-row .val { color: #fff; font-weight: 700; font-size: 0.85rem; }
.win-stat-row .lbl { display: none; }
.win-rewards-label { color: #fff; font-weight: 700; font-size: 1.1rem; margin-bottom: 15px; }
.win-rewards-scroller { display: flex; overflow-x: auto; gap: 12px; padding-bottom: 10px; scrollbar-width: none; }
.win-rewards-scroller::-webkit-scrollbar { display: none; }
.win-reward-card { min-width: 130px; height: 150px; border-radius: 18px; padding: 12px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; position: relative; flex-shrink: 0; }

.card-ton { background: #10151f; border: 1px solid #0050b3; }
.card-ton .wrc-top { color: #fff; font-weight: 800; font-size: 0.9rem; }
.card-ton .wrc-top img { width: 12px; height: 12px; margin-left: 4px; }
.card-ton .blue-circle { width: 50px; height: 50px; background: #0098ea; border-radius: 50%; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); opacity: 0.2; }
.card-ton .floating-icon { width: 30px; position: relative; z-index: 2; top: 15px; }
.card-ton .wrc-bottom { background: #003a8c; width: 100%; text-align: center; padding: 6px; border-radius: 10px; }
.card-gift { background: #1a1520; border: 1px solid #722ed1; }
.card-gift .wrc-top { color: #fff; font-weight: 800; font-size: 0.9rem; }
.card-gift .main-gift-img { width: 55px; height: 55px; object-fit: contain; filter: drop-shadow(0 5px 10px rgba(0,0,0,0.5)); margin-top: 10px; }
.card-gift .wrc-bottom { background: #391085; width: 100%; text-align: center; padding: 6px; border-radius: 10px; }
.wrc-sub { font-size: 0.65rem; color: #aaa; margin-bottom: 2px; }
.wrc-name { font-size: 0.85rem; font-weight: 700; color: #fff; }

#alert-upgrade-failed { justify-content: center !important; padding-bottom: 0 !important; }


