.nav-tab[data-tab="bonuses"] { flex-shrink: 0; }
#server-game-root .card { margin-bottom: 16px; }
#server-game-root p { line-height: 1.5; margin: 10px 0; }
.sg-badge { display: inline-block; background: #007aff1f; color: var(--color-primary); border-radius: 20px; padding: 6px 12px; font-size: 12px; }
.sg-note { color: var(--color-text-secondary); font-size: 12px; }
.sg-card { overflow: hidden; }
.sg-stats { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.sg-stats b { display: block; font-size: 22px; margin-top: 4px; }
#sg-error { color: #ef4444; font-size: 13px; }
#sg-error:empty { display: none; }
.sg-arena { position: relative; aspect-ratio: 1 / 1.2; margin-top: 18px; overflow: hidden; border-radius: 16px; touch-action: none; user-select: none; background: radial-gradient(ellipse at 50% 90%, #075d8b, #0b1738 70%); border: 1px solid #2475aa; outline-offset: 3px; }
.sg-arena::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle, #8fd5ff35 1px, transparent 2px); background-size: 40px 40px; }
.sg-player { position: absolute; transform: translateX(-50%); z-index: 2; }
.sg-player img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 8px 8px #0008); }
.sg-player span { display: block; text-align: center; color: #bcefff; font-size: 18px; line-height: 1; }
.sg-token { position: absolute; transform: translate(-50%, -50%); z-index: 1; }
.sg-token img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 3px 6px #0008); }
.sg-token .sg-token-label { position: absolute; top: 85%; left: 50%; transform: translateX(-50%); color: #c9faff; font-size: 10px; font-weight: 700; white-space: nowrap; }
.sg-block .sg-token-label { color: #ff8080; }
.sg-overlay { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: #081527d9; text-align: center; padding: 20px; color: white; }
.sg-overlay[hidden] { display: none; }
.sg-overlay h3 { font-size: 22px; margin: 0 0 12px; }
.sg-overlay p { font-size: 13px; color: #c1d4e9; }
.sg-primary { display: block; margin: 12px auto 0; border: 0; border-radius: 12px; padding: 12px 22px; color: white; background: var(--gradient-pill); font: inherit; font-weight: 600; cursor: pointer; }
.sg-primary:disabled { opacity: .5; cursor: wait; }
.sg-pickup { position: absolute; z-index: 3; color: #91ffcb; font-size: 24px; font-weight: 800; text-shadow: 0 2px 4px #000; pointer-events: none; }
.sg-footer { display: flex; justify-content: space-between; font-size: 11px; gap: 8px; margin-top: 14px; }
.sg-interference-track { height: 6px; margin-top: 8px; border-radius: 10px; background: #ef444425; overflow: hidden; }
.sg-interference-track span { display: block; height: 100%; background: linear-gradient(90deg,#ffc04d,#f44336); width: 0; transition: width .1s linear; }
.sg-history-row { padding: 12px 0; border-bottom: 1px solid #8b92a733; }
.sg-history-row strong, .sg-history-row span { display: block; }
.sg-history-row span { color: var(--color-text-secondary); font-size: 12px; margin-top: 6px; }
#server-game-root summary { cursor: pointer; font-weight: 600; }

/* Keep purchase controls off the arena. Navigation wraps in styles.css. */
body.game-tab-active #actions-wrapper { display: none !important; }

.sg-prize-catalog { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.sg-prize-option { padding: 12px; border-radius: 12px; background: #007aff0a; border: 1px solid #007aff15; }
.sg-prize-option strong, .sg-prize-option span { display: block; }
.sg-prize-option strong { font-size: 14px; }
.sg-prize-option span { font-size: 12px; color: var(--color-text-secondary); line-height: 1.5; margin-top: 5px; }
.sg-player::before { content: ''; position: absolute; width: 130%; height: 125%; left: -15%; top: -10%; border-radius: 50%; background: radial-gradient(ellipse, #29d8ff30, transparent 70%); pointer-events: none; }

.sg-key { --token-color: #ffc941; --token-glow: #ffc94155; }
.sg-globe { --token-color: #40d9ff; --token-glow: #40d9ff55; }
.sg-boost { --token-color: #9bf34a; --token-glow: #9bf34a55; }
.sg-block { --token-color: #ff646c; --token-glow: #ff646c55; }
.sg-token .sg-token-label { z-index: 2; }
.sg-token .sg-trail { position: absolute; z-index: 0; bottom: 52%; left: 24%; width: 52%; height: 145%; opacity: .7; pointer-events: none; background: linear-gradient(to top, var(--token-color), transparent 95%); -webkit-mask-image: linear-gradient(to right, transparent, #000 12%, #000 17%, transparent 22%, transparent 40%, #000 44%, #000 52%, transparent 57%, transparent 78%, #000 83%, #000 87%, transparent 92%); mask-image: linear-gradient(to right, transparent, #000 12%, #000 17%, transparent 22%, transparent 40%, #000 44%, #000 52%, transparent 57%, transparent 78%, #000 83%, #000 87%, transparent 92%); }
.sg-token .sg-trail::after { position: absolute; bottom: 0; left: 30%; width: 40%; height: 90%; background: linear-gradient(to top, var(--token-color), transparent); content: ''; }

#sg-notice { color: #087b5c; font-size: 13px; }
#sg-notice:empty { display: none; }
.sg-token-progress { height: 7px; border-radius: 12px; background: #007aff15; overflow: hidden; }
.sg-token-progress span { display: block; height: 100%; width: 0; background: var(--gradient-pill); }
.sg-history-row .sg-primary { margin: 12px 0 0; text-align: center; text-decoration: none; font-size: 13px; }
.game-discount-notice { padding: 12px; color: #087b5c; background: #34c75915; border-radius: 12px; font-size: 13px; line-height: 1.5; }

/* A won VPN day can open access, so users can play without a subscription. */
body.has-game.no-active-subscription #nav-tabs-wrapper { display: flex !important; }
body.has-game.no-active-subscription.game-tab-active .main { display: flex !important; }
body.has-game.no-active-subscription.game-tab-active #no-subscription-view { display: none !important; }
body.has-game.no-active-subscription .nav-tab:not([data-tab="main"]):not([data-tab="bonuses"]) { display: none; }

#sg-promotion-slot[hidden] { display: none; }
.sg-promotion { box-sizing: border-box; min-width: 0; margin-bottom: 16px; border-radius: var(--radius-lg, 20px); }
.sg-promotion-label { position: absolute; right: 7px; bottom: 7px; padding: 2px 6px; border-radius: 4px; background: #081527cc; color: #fff; font-size: 10px; font-weight: 400; line-height: 1.4; pointer-events: none; }
.sg-promotion-link { position: relative; display: block; border-radius: inherit; text-decoration: none; }
.sg-promotion-link img { display: block; width: 100%; height: auto; border-radius: inherit; }
.sg-promotion-link:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 4px; }
.sg-overlay { overflow-y: auto; touch-action: pan-y; }
.sg-overlay > div { min-width: 0; width: 100%; max-width: 100%; }
@media (max-width: 360px) {
  .sg-overlay { padding: 12px; }
  .sg-overlay h3 { font-size: 18px; margin-bottom: 8px; }
}
