:root {
  --brand-accent: #44c987;
  --brand-accent-glow: rgba(68, 201, 135, 0.6);
  --brand-gold: #ffd700;
  --brand-gold-glow: rgba(255, 215, 0, 0.65);
  --brand-blue: #83d8ff;
  --cs2-yellow: #ffa800;
  --font-display: 'Chakra Petch', 'Oswald', sans-serif;
  --font-oswald: 'Oswald', sans-serif;
  --font-body: 'Sofia Sans', sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

body {
  background: transparent !important;
  color: #ffffff;
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  user-select: none;
}

.cs2-game-background {
  position: fixed;
  inset: -15px;
  z-index: -5;
  background-image: url('assets/case-bg-poster2.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(1.08) contrast(1.02) blur(3px);
  transform: scale(1.03);
}

.cs2-pattern-overlay {
  position: fixed;
  inset: 0;
  z-index: -4;
  background-image: url('assets/casePattern.svg');
  background-size: 8px 8px;
  background-repeat: repeat;
  opacity: 0.04;
  pointer-events: none;
}

.cs2-smoke-haze {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: radial-gradient(circle at 50% 30%, rgba(68, 201, 135, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 75% 75%, rgba(255, 168, 0, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 25% 75%, rgba(131, 216, 255, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.cs2-vignette {
  position: fixed;
  inset: 0;
  z-index: -2;
  background: transparent;
  pointer-events: none;
}

.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 68px;
  z-index: 100;
  background: rgba(14, 18, 27, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 1.5rem;
  max-width: 1440px;
  margin: 0 auto;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  text-decoration: none;
}

.brand-logo img {
  height: 38px;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #ffffff;
  text-transform: uppercase;
}

.brand-name-sub {
  color: var(--brand-accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.balance-pill {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(68, 201, 135, 0.45);
  border-radius: 6px;
  padding: 0.25rem 0.35rem 0.25rem 0.8rem;
  gap: 0.5rem;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
}

.balance-val {
  font-family: var(--font-oswald);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--brand-blue);
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.coin-icon {
  width: 20px;
  height: 20px;
}

.btn-add-coin {
  background: linear-gradient(180deg, #13432C 0%, #13432C 100%);
  border: 1px solid var(--brand-accent);
  color: var(--brand-accent);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.35rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  box-shadow: inset 0 0 15px rgba(68, 201, 135, 0.35);
  transition: all 0.2s;
}

.btn-add-coin:hover {
  background: linear-gradient(180deg, #1D5A3A 0%, #1D5A3A 100%);
  box-shadow: inset 0 0 20px rgba(68, 201, 135, 0.7), 0 0 15px var(--brand-accent-glow);
  transform: translateY(-1px);
}

.btn-circle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s;
}

.btn-circle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.badge-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--brand-accent);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-wrapper {
  margin-top: 68px;
  padding: 2.5rem 1.5rem 6rem;
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
}

.catalog-header {
  margin-bottom: 2.2rem;
}

.cs2-catalog-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.cs2-catalog-sub {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.8rem;
}

.case-card {
  background: rgba(14, 18, 28, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.case-card:hover {
  transform: translateY(-8px);
  background: rgba(18, 24, 38, 0.35);
  border-color: rgba(68, 201, 135, 0.6);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(68, 201, 135, 0.3);
}

.case-card-badge {
  display: none !important;
}

.case-card-img-wrap {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(68, 201, 135, 0.12) 0%, transparent 70%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
}

.case-card-img-wrap img {
  max-width: 210px;
  max-height: 165px;
  object-fit: contain;
  transition: transform 0.4s ease;
  filter: drop-shadow(0 15px 25px rgba(0, 0, 0, 0.85));
}

.case-card:hover .case-card-img-wrap img {
  transform: scale(1.1) translateY(-4px);
}

.case-card-content {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.case-card-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.case-card-desc {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.45;
  height: 40px;
  overflow: hidden;
}

.case-card-footer {
  display: flex;
  align-items: center;
  margin-top: 0.6rem;
}

.case-card-price {
  display: none;
}

.btn-case-open {
  width: 100%;
  text-align: center;
  background: linear-gradient(135deg, #44C987 0%, #259D62 100%);
  border: none;
  color: #060e0a;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 0.75rem 1.1rem;
  border-radius: 8px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  box-shadow: 0 4px 15px rgba(68, 201, 135, 0.35);
}

.case-card:hover .btn-case-open {
  background: linear-gradient(135deg, #4ef5a2 0%, #2ebc76 100%);
  color: #020704;
  box-shadow: 0 8px 25px rgba(68, 201, 135, 0.6);
  transform: translateY(-2px);
}

.cs2-opening-viewport {
  display: none;
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.top-nav-bar {
  margin-bottom: 1.5rem;
}

.btn-back-link {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.75);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s;
}

.btn-back-link:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.cs2-stage-container {
  min-height: 480px;
  background: transparent;
  border: none;
  border-radius: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem 2.5rem;
  margin-bottom: 2.5rem;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
  overflow: visible;
  transition: min-height 0.3s ease;
}

.cs2-case-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.4s ease;
  z-index: 5;
}

.cs2-case-3d-box {
  width: 330px;
  height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.cs2-case-3d-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.95));
  animation: cs2Float 3.8s ease-in-out infinite;
  transition: transform 0.35s cubic-bezier(0.18, 0.89, 0.32, 1.28), filter 0.35s ease;
}

@keyframes cs2Float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(-1deg); }
}

@keyframes cs2UnlockShake {
  0% { transform: scale(1) rotate(0deg); filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.95)); }
  15% { transform: scale(1.08) rotate(-4deg); filter: drop-shadow(0 0 25px #FFA800); }
  35% { transform: scale(1.14) rotate(3deg); filter: drop-shadow(0 0 45px #FFA800); }
  55% { transform: scale(1.18) rotate(-3deg); filter: drop-shadow(0 0 55px #FFA800); }
  75% { transform: scale(1.15) rotate(2deg); filter: drop-shadow(0 0 45px #FFA800); }
  100% { transform: scale(1.12) rotate(0deg); filter: drop-shadow(0 0 40px #FFA800); }
}

.cs2-case-3d-box img.unlocking {
  animation: cs2UnlockShake 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) forwards !important;
}

.cs2-reel-item.won-landed {
  box-shadow: 0 0 35px var(--item-color, #44C987), inset 0 0 20px var(--item-color, #44C987);
  transform: scale(1.04);
  z-index: 25;
  transition: all 0.3s ease;
}

.cs2-case-3d-box::after {
  content: '';
  position: absolute;
  bottom: -15px;
  width: 250px;
  height: 45px;
  background: radial-gradient(ellipse, rgba(68, 201, 135, 0.45) 0%, transparent 70%);
  filter: blur(12px);
  z-index: -1;
  animation: cs2GlowPulse 3.8s ease-in-out infinite;
}

@keyframes cs2GlowPulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(0.85); opacity: 0.35; }
}

.cs2-case-title-text {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.04em;
  margin-top: 1.2rem;
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.8);
}

.cs2-case-subtitle-text {
  color: rgba(255, 255, 255, 0.55);
  font-size: 1.05rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cs2-multi-roulette-wrap {
  display: none;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 960px;
  z-index: 10;
  margin-top: 1rem;
  margin-bottom: 3.5rem;
}

.cs2-multi-roulette-wrap.active {
  display: flex;
}

.cs2-roulette-box {
  position: relative;
  width: 100%;
  height: var(--reel-height, 195px);
  background: #090a10;
  border: 2px solid var(--brand-accent);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 0 25px rgba(68, 201, 135, 0.35), inset 0 0 45px rgba(0, 0, 0, 0.95);
  transition: all 0.25s ease;
}

.cs2-roulette-box.compact-1 {
  --reel-height: 195px;
  --item-w: 180px;
  --item-img-h: 85px;
}

.cs2-roulette-box.compact-2 {
  --reel-height: 145px;
  --item-w: 155px;
  --item-img-h: 62px;
}

.cs2-roulette-box.compact-3 {
  --reel-height: 124px;
  --item-w: 135px;
  --item-img-h: 52px;
}

.cs2-roulette-box.compact-4 {
  --reel-height: 106px;
  --item-w: 120px;
  --item-img-h: 44px;
}

.cs2-roulette-box.compact-5 {
  --reel-height: 94px;
  --item-w: 110px;
  --item-img-h: 38px;
}

.cs2-pointer-needle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  background: var(--brand-accent);
  transform: translateX(-50%);
  z-index: 40;
  box-shadow: 0 0 15px var(--brand-accent), 0 0 25px var(--brand-accent);
  pointer-events: none;
}

.cs2-pointer-needle::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 14px solid var(--brand-accent);
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
}

.cs2-pointer-needle::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 14px solid var(--brand-accent);
  filter: drop-shadow(0 -2px 4px rgba(0, 0, 0, 0.8));
}

.compact-3 .cs2-pointer-needle::before,
.compact-4 .cs2-pointer-needle::before,
.compact-5 .cs2-pointer-needle::before {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 10px solid var(--brand-accent);
}

.compact-3 .cs2-pointer-needle::after,
.compact-4 .cs2-pointer-needle::after,
.compact-5 .cs2-pointer-needle::after {
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 10px solid var(--brand-accent);
}

.cs2-roulette-box::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 170px;
  background: linear-gradient(90deg, #090a10 30%, transparent 100%);
  z-index: 30;
  pointer-events: none;
}

.cs2-roulette-box::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  width: 170px;
  background: linear-gradient(270deg, #090a10 30%, transparent 100%);
  z-index: 30;
  pointer-events: none;
}

.cs2-reel-track {
  display: flex;
  height: 100%;
  width: max-content;
  position: absolute;
  left: 0;
  top: 0;
  align-items: center;
  transform: translateX(0);
  will-change: transform;
}

.cs2-reel-item {
  width: var(--item-w, 180px);
  height: 100%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.4rem 0.3rem;
  background: linear-gradient(180deg, rgba(28, 34, 48, 0.75) 0%, rgba(12, 15, 22, 0.98) 100%);
  box-sizing: border-box;
  user-select: none;
}

.cs2-reel-item::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--item-color, #4b69ff);
  box-shadow: 0 0 10px var(--item-color, #4b69ff);
}

.cs2-reel-item img {
  max-width: 88%;
  height: var(--item-img-h, 85px);
  object-fit: contain;
  margin-bottom: 0.3rem;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.85));
}

.cs2-reel-weapon {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  text-transform: uppercase;
}

.cs2-reel-skin {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 90%;
  text-align: center;
}

.compact-2 .cs2-reel-weapon { font-size: 0.66rem; }
.compact-2 .cs2-reel-skin { font-size: 0.80rem; }

.compact-3 .cs2-reel-weapon { font-size: 0.60rem; }
.compact-3 .cs2-reel-skin { font-size: 0.74rem; }

.compact-4 .cs2-reel-weapon { font-size: 0.55rem; }
.compact-4 .cs2-reel-skin { font-size: 0.68rem; }

.compact-5 .cs2-reel-weapon { display: none; }
.compact-5 .cs2-reel-skin { font-size: 0.66rem; }
}

.cs2-opening-controls {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2.2rem;
  width: 100%;
  z-index: 8;
}

.cs2-options-row {
  display: inline-flex;
  align-items: center;
  gap: 1.2rem;
  background: rgba(14, 18, 27, 0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  padding: 5px 12px;
  border-radius: 999px;
}

.cs2-multiplier-wrap {
  display: flex;
  align-items: center;
  background: rgba(0, 0, 0, 0.22);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.mult-choice-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.mult-choice-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.mult-choice-btn.active {
  background: var(--brand-accent);
  color: #070e13;
  box-shadow: 0 0 16px rgba(68, 201, 135, 0.55);
}

.fast-spin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  user-select: none;
  transition: all 0.2s ease;
}

.fast-spin-toggle:hover .fast-toggle-text {
  color: #ffffff;
}

.fast-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.fast-toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 19px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}

.fast-toggle-slider {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 13px;
  height: 13px;
  background: #ffffff;
  border-radius: 50%;
  transition: all 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.fast-toggle-input:checked + .fast-toggle-switch {
  background: var(--brand-accent);
  border-color: var(--brand-accent);
  box-shadow: 0 0 14px rgba(68, 201, 135, 0.6), inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

.fast-toggle-input:checked + .fast-toggle-switch .fast-toggle-slider {
  transform: translateX(17px);
  background: #060e0a;
}

.fast-toggle-text {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.fast-toggle-input:checked ~ .fast-toggle-text {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(68, 201, 135, 0.65);
}

.btn-cs2-spin {
  position: relative;
  background: linear-gradient(135deg, #44C987 0%, #259D62 100%);
  border: none;
  color: #060e0a;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  min-width: 290px;
  height: 54px;
  padding: 0 3rem;
  border-radius: 27px;
  cursor: pointer;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  box-shadow: 0 8px 25px rgba(68, 201, 135, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: all 0.25s cubic-bezier(0.18, 0.89, 0.32, 1.28);
}

.btn-cs2-spin:hover:not(:disabled) {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 35px rgba(68, 201, 135, 0.65), 0 0 25px rgba(68, 201, 135, 0.4);
  color: #020704;
}

.btn-cs2-spin:active:not(:disabled) {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 4px 15px rgba(68, 201, 135, 0.4);
}

.btn-cs2-spin:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  filter: grayscale(0.6);
  transform: none !important;
  box-shadow: none !important;
}

.cs2-items-pool {
  background: rgba(14, 18, 27, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1.8rem;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.pool-heading {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.pool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1.2rem;
}

.pool-card {
  background: rgba(12, 16, 24, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 1.2rem 0.8rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  transition: all 0.2s;
}

.pool-card:hover {
  background: rgba(18, 24, 38, 0.32);
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35);
}

.pool-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--item-color, #4b69ff);
  box-shadow: 0 0 10px var(--item-color, #4b69ff);
}

.pool-chance-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.45);
}

.pool-img {
  width: 145px;
  height: 95px;
  object-fit: contain;
  margin-bottom: 0.8rem;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.7));
}

.pool-weapon {
  font-family: var(--font-display);
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 600;
  text-transform: uppercase;
}

.pool-skin {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 175px;
  text-align: center;
}

.pool-price {
  display: none;
}

.cs2-win-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 12, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.cs2-win-modal-overlay.active {
  display: flex;
}

.cs2-win-box {
  background: linear-gradient(155deg, rgba(19, 26, 38, 0.96) 0%, rgba(9, 13, 20, 0.98) 100%);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 18px;
  width: 100%;
  max-width: 520px;
  padding: 3rem 2.2rem 2.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.9), 0 0 60px -10px var(--win-glow, rgba(68, 201, 135, 0.35));
  animation: cs2WinPop 0.4s cubic-bezier(0.18, 0.89, 0.32, 1.25) forwards;
  overflow: hidden;
}

.cs2-win-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 5%, var(--win-color, #44C987) 50%, transparent 95%);
  z-index: 6;
}

@keyframes cs2WinPop {
  0% { transform: scale(0.88); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.cs2-modal-close,
.btn-win-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 30;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
  outline: none;
  backdrop-filter: blur(8px);
}

.cs2-modal-close:hover,
.btn-win-close:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.3);
  color: #ffffff;
  transform: rotate(90deg);
}

.cs2-sunburst-halo {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 680px;
  height: 680px;
  transform: translate(-50%, -50%);
  background:
    conic-gradient(from 0deg,
      transparent 0deg, var(--win-color, #44C987) 12deg, transparent 24deg,
      transparent 36deg, var(--win-color, #44C987) 48deg, transparent 60deg,
      transparent 72deg, var(--win-color, #44C987) 84deg, transparent 96deg,
      transparent 108deg, var(--win-color, #44C987) 120deg, transparent 132deg,
      transparent 144deg, var(--win-color, #44C987) 156deg, transparent 168deg,
      transparent 180deg, var(--win-color, #44C987) 192deg, transparent 204deg,
      transparent 216deg, var(--win-color, #44C987) 228deg, transparent 240deg,
      transparent 252deg, var(--win-color, #44C987) 264deg, transparent 276deg,
      transparent 288deg, var(--win-color, #44C987) 300deg, transparent 312deg,
      transparent 324deg, var(--win-color, #44C987) 336deg, transparent 348deg
    ),
    radial-gradient(circle, var(--win-color, #44C987) 0%, transparent 65%);
  opacity: 0.18;
  filter: blur(20px);
  pointer-events: none;
  z-index: 1;
  animation: cs2SunburstRotate 26s linear infinite;
}

@keyframes cs2SunburstRotate {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

.cs2-win-rarity-pill {
  position: relative;
  z-index: 5;
  background: var(--win-color, #44C987);
  color: #060d09;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.35rem 1.15rem;
  border-radius: 20px;
  letter-spacing: 0.08em;
  margin-bottom: 1.2rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.cs2-win-img-stage {
  position: relative;
  z-index: 5;
  width: 300px;
  height: 185px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
}

.cs2-win-img-stage img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 20px 35px rgba(0, 0, 0, 0.95));
  animation: cs2ItemHover 3s ease-in-out infinite;
}

@keyframes cs2ItemHover {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
}

.cs2-win-weapon {
  position: relative;
  z-index: 5;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.cs2-win-skin {
  position: relative;
  z-index: 5;
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.03em;
  margin: 0.25rem 0;
}

.cs2-win-wear {
  position: relative;
  z-index: 5;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 1.5rem;
}

.cs2-win-price-box {
  display: none;
}

.cs2-win-box.multi-mode {
  max-width: 1020px;
  padding: 2.4rem 2rem 2rem;
}

.single-win-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.multi-win-layout {
  width: 100%;
  position: relative;
  z-index: 5;
  margin-bottom: 1.5rem;
}

.multi-win-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  letter-spacing: 0.08em;
  margin-bottom: 1.4rem;
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.85);
  position: relative;
  display: inline-block;
}

.multi-win-title::after {
  content: '';
  display: block;
  width: 44px;
  height: 2px;
  background: var(--brand-accent, #44C987);
  margin: 0.45rem auto 0;
  border-radius: 2px;
  opacity: 0.85;
}

.multi-win-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 1.1rem;
  max-height: 60vh;
  overflow-y: auto;
  padding: 0.5rem 0.25rem;
}

.multi-win-card {
  background: linear-gradient(180deg, rgba(25, 33, 49, 0.72) 0%, rgba(12, 17, 26, 0.92) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 1.15rem 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
  animation: cs2CardPop 0.4s cubic-bezier(0.2, 0.8, 0.3, 1) forwards;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.3, 1), border-color 0.25s, box-shadow 0.25s;
}

.multi-win-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.24);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.68), 0 0 24px -6px var(--item-color, #44C987);
}

.multi-win-card::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 95px;
  background: radial-gradient(circle, var(--item-color, #4b69ff) 0%, transparent 70%);
  opacity: 0.16;
  filter: blur(14px);
  pointer-events: none;
  z-index: 1;
}

.multi-win-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--item-color, #4b69ff);
  box-shadow: 0 -1px 12px var(--item-color, #4b69ff);
}

@keyframes cs2CardPop {
  0% { transform: scale(0.88); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.multi-win-rarity-badge {
  font-family: var(--font-display);
  font-size: 0.62rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.24rem 0.7rem;
  border-radius: 20px;
  color: #fff;
  margin-bottom: 0.55rem;
  letter-spacing: 0.06em;
  text-align: center;
  position: relative;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.multi-win-card-img {
  width: 100%;
  height: 94px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0.25rem 0 0.55rem;
  position: relative;
  z-index: 2;
}

.multi-win-card-img img {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.88));
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.multi-win-card:hover .multi-win-card-img img {
  transform: scale(1.08);
}

.multi-win-card-weapon {
  font-family: var(--font-display);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.46);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 2;
}

.multi-win-card-skin {
  font-family: var(--font-display);
  font-size: 0.96rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 155px;
  text-align: center;
  margin-top: 0.2rem;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 2;
}

.multi-win-card-wear {
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 0.3rem;
  position: relative;
  z-index: 2;
}

.cs2-win-actions {
  position: relative;
  z-index: 5;
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 0.6rem;
}

.btn-win-reopen {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(135deg, #44C987 0%, #22A065 100%);
  border: none;
  color: #05100B;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.95rem 2.4rem;
  border-radius: 12px;
  cursor: pointer;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(68, 201, 135, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
}

.btn-win-reopen:hover {
  background: linear-gradient(135deg, #53e59b 0%, #27b673 100%);
  color: #030a07;
  box-shadow: 0 12px 30px rgba(68, 201, 135, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.35) inset;
  transform: translateY(-2px);
}

.btn-win-reopen:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(68, 201, 135, 0.3);
}

.btn-win-keep:hover {
  background: rgba(255, 255, 255, 0.15);
}

.drawer-content-box {
  background: #11141c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  width: 100%;
  max-width: 650px;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}

.drawer-header-row {
  padding: 1.2rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.drawer-title-txt {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  text-transform: uppercase;
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.6rem;
  cursor: pointer;
}

.drawer-body-scroll {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1;
}

.inv-grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 0.8rem;
}

.inv-tile {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 4px;
  padding: 0.8rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.inv-tile::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--item-color, #4b69ff);
}

.inv-tile img {
  width: 75px;
  height: 50px;
  object-fit: contain;
  margin-bottom: 0.4rem;
}

.deposit-choices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.2rem;
}

.deposit-item {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: all 0.2s;
}

.deposit-item:hover {
  background: rgba(68, 201, 135, 0.15);
  border-color: var(--brand-accent);
}

.deposit-item-val {
  font-family: var(--font-oswald);
  font-size: 1.6rem;
  font-weight: 600;
  color: #fff;
}

@media (max-width: 768px) {
  .cs2-roulette-box {
    height: 160px;
  }
  .cs2-roulette-box.compact-1 {
    --reel-height: 160px;
    --item-w: 140px;
    --item-img-h: 70px;
  }
  .cs2-roulette-box.compact-2 {
    --reel-height: 130px;
    --item-w: 120px;
    --item-img-h: 55px;
  }
  .cs2-roulette-box.compact-3 {
    --reel-height: 115px;
    --item-w: 105px;
    --item-img-h: 46px;
  }
  .cs2-roulette-box.compact-4 {
    --reel-height: 100px;
    --item-w: 95px;
    --item-img-h: 40px;
  }
  .cs2-roulette-box.compact-5 {
    --reel-height: 90px;
    --item-w: 85px;
    --item-img-h: 34px;
  }
  .btn-cs2-spin {
    font-size: 1.25rem;
    padding: 0.75rem 2rem;
    width: 100%;
    justify-content: center;
  }
}
