:root {
  --bg-obsidian: #080a0f;
  --bg-surface: #0f131c;
  --bg-panel: #151a26;
  --bg-panel-hover: #1b2231;
  --bg-glass: rgba(15, 19, 28, 0.84);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-bright: rgba(245, 166, 35, 0.35);

  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;

  --accent-gold: #f5a623;
  --accent-gold-bright: #ffc145;
  --accent-crimson: #ef4444;
  --accent-ct: #38bdf8;
  --accent-emerald: #10b981;

  --font-display: 'Chakra Petch', 'Rajdhani', system-ui, sans-serif;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-card: 0 18px 40px -15px rgba(0, 0, 0, 0.65);
  --shadow-glow: 0 0 28px rgba(245, 166, 35, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg-obsidian);
  background-image:
    radial-gradient(circle at 15% 10%, rgba(245, 166, 35, 0.07), transparent 36%),
    radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.05), transparent 32%),
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 42px 42px, 42px 42px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
  cursor: pointer;
}

.container {
  width: min(1240px, 92vw);
  margin: 0 auto;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
}

.topbar-meta {
  background: rgba(5, 7, 11, 0.92);
  border-bottom: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.32rem 0;
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.host-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--accent-gold);
  letter-spacing: 0.06em;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  height: 68px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(245, 166, 35, 0.2), rgba(239, 68, 68, 0.14));
  border: 1px solid rgba(245, 166, 35, 0.45);
  box-shadow: 0 0 18px rgba(245, 166, 35, 0.16);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--accent-gold);
  letter-spacing: 0.12em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--text-secondary);
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.nav-link:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
  color: var(--accent-gold-bright);
  background: rgba(245, 166, 35, 0.1);
  border-color: rgba(245, 166, 35, 0.32);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0.54rem 1.05rem;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent-gold), #d97706);
  color: #090b10;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 166, 35, 0.32);
}

.mobile-menu-btn {
  display: none;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.65rem;
}

/* Typography & Utility */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent-gold);
  background: rgba(245, 166, 35, 0.09);
  border: 1px solid rgba(245, 166, 35, 0.25);
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  margin-top: 0;
}

.section {
  padding: 4.25rem 0;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  margin: 0.65rem 0 0.35rem;
  text-transform: uppercase;
}

.section-desc {
  color: var(--text-secondary);
  max-width: 65ch;
  margin: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold), #e08600);
  color: #090b10;
  box-shadow: 0 8px 24px rgba(245, 166, 35, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(245, 166, 35, 0.36);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn-crimson {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border-color: rgba(239, 68, 68, 0.38);
}

.btn-crimson:hover {
  background: rgba(239, 68, 68, 0.24);
}

/* Hero */
.hero {
  position: relative;
  padding: 3.5rem 0 4.5rem;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 2.75rem;
  align-items: center;
}

.hero-title {
  font-size: clamp(2.35rem, 4.8vw, 3.9rem);
  font-weight: 700;
  line-height: 1.04;
  text-transform: uppercase;
  margin: 1rem 0 1.15rem;
}

.hero-title span {
  color: var(--accent-gold);
}

.hero-lead {
  font-size: 1.07rem;
  color: var(--text-secondary);
  max-width: 58ch;
  margin-bottom: 1.85rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-bottom: 2.25rem;
}

.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.stat-box {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.9rem 1rem;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1.15;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0.2rem;
}

.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-bright);
  box-shadow: var(--shadow-card), var(--shadow-glow);
  background: var(--bg-surface);
}

.hero-visual img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.hero-hud-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 1rem 1.2rem;
  background: linear-gradient(transparent, rgba(8, 10, 15, 0.94) 55%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

/* Cards & Grids */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
}

.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
}

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.45rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.panel:hover {
  border-color: rgba(255, 255, 255, 0.18);
}

.panel-accent {
  border-top: 3px solid var(--accent-gold);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}

.tag-gold {
  background: rgba(245, 166, 35, 0.14);
  color: var(--accent-gold-bright);
  border: 1px solid rgba(245, 166, 35, 0.3);
}

.tag-ct {
  background: rgba(56, 189, 248, 0.14);
  color: #7dd3fc;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.tag-t {
  background: rgba(239, 68, 68, 0.14);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.tag-green {
  background: rgba(16, 185, 129, 0.14);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Map Cards */
.map-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.map-card:hover,
.map-card.selected {
  transform: translateY(-3px);
  border-color: var(--accent-gold);
  box-shadow: var(--shadow-glow);
}

.map-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-surface);
}

.map-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.map-card:hover .map-thumb img {
  transform: scale(1.05);
}

.map-thumb-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: rgba(8, 10, 15, 0.88);
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45);
}

.map-card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}

.map-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.map-card-title h3 {
  margin: 0;
  font-size: 1.25rem;
  text-transform: uppercase;
}

/* Filter Bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1.75rem;
}

.filter-btn {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  transition: all 0.18s ease;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.25);
}

.filter-btn.active {
  background: rgba(245, 166, 35, 0.15);
  color: var(--accent-gold-bright);
  border-color: var(--accent-gold);
}

/* Map Inspector */
.inspector-shell {
  background: var(--bg-surface);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 2.5rem;
  box-shadow: var(--shadow-card);
}

.inspector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem;
  align-items: start;
}

.radar-box {
  background: #070a0f;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  position: relative;
}

.radar-svg {
  width: 100%;
  height: auto;
  display: block;
}

.callout-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1.1rem;
}

.callout-group {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
}

.callout-group h4 {
  font-size: 0.85rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 0.45rem;
}

.callout-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.callout-chip {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.18rem 0.45rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.split-bar {
  height: 10px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  background: rgba(255, 255, 255, 0.06);
  margin: 0.45rem 0;
}

.split-ct {
  background: var(--accent-ct);
}

.split-t {
  background: var(--accent-gold);
}

/* Karrigan Timeline & Profile */
.timeline {
  position: relative;
  display: grid;
  gap: 1.15rem;
  padding-left: 1.6rem;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: linear-gradient(var(--accent-gold), var(--accent-crimson), var(--accent-ct));
}

.timeline-item {
  position: relative;
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.4rem;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.6rem;
  top: 1.45rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-gold);
  border: 2px solid var(--bg-obsidian);
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.55);
}

.timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

/* Guess the Map Unlimited */
.game-shell {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 1.5rem;
  align-items: start;
}

.viewport-frame {
  position: relative;
  background: #06080d;
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 9;
  box-shadow: var(--shadow-card);
}

.viewport-stage {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
  display: grid;
  place-items: center;
}

.viewport-scene-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), filter 0.35s ease;
  user-select: none;
  pointer-events: none;
}

.viewport-hud {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  right: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
  z-index: 4;
}

.hud-pill {
  background: rgba(8, 10, 15, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  padding: 0.32rem 0.68rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-primary);
}

.guess-options {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
}

.guess-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  padding: 0.72rem 0.8rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  background: var(--bg-panel);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  transition: all 0.16s ease;
}

.guess-btn:hover:not(:disabled) {
  border-color: var(--accent-gold);
  background: rgba(245, 166, 35, 0.12);
  transform: translateY(-1px);
}

.guess-btn.correct {
  background: rgba(16, 185, 129, 0.22);
  border-color: var(--accent-emerald);
  color: #a7f3d0;
}

.guess-btn.wrong {
  background: rgba(239, 68, 68, 0.22);
  border-color: var(--accent-crimson);
  color: #fecaca;
}

.guess-btn.eliminated {
  opacity: 0.28;
  pointer-events: none;
}

.kbd {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.intel-card {
  width: 88%;
  max-width: 620px;
  background: rgba(15, 19, 28, 0.94);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: left;
}

.feedback-banner {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.feedback-banner.is-correct {
  background: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.45);
}

.feedback-banner.is-wrong {
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.45);
}

/* Footer */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border-subtle);
  background: rgba(5, 7, 11, 0.92);
  padding: 2.5rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.footer-links a:hover {
  color: var(--accent-gold);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero-grid,
  .inspector-grid,
  .game-shell {
    grid-template-columns: 1fr;
  }

  .card-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .card-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guess-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 960px) {
  .nav-links,
  .nav-cta-wrap {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .site-header.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-subtle);
    padding: 1rem;
  }
}

@media (max-width: 720px) {
  .card-grid-3,
  .card-grid-2,
  .card-grid-4,
  .callout-list,
  .stat-strip {
    grid-template-columns: 1fr;
  }
}

/* Karrigan Portrait Studio Frame */
.karrigan-portrait-frame {
  background: radial-gradient(circle at 50% 25%, #2a3142 0%, #121722 65%, #080a0f 100%);
}

.karrigan-portrait-frame img {
  object-fit: contain;
  object-position: center bottom;
  padding-top: 0.75rem;
  filter: contrast(1.04) saturate(1.03);
}

/* CS2 Case Opening Simulator */
.case-selector-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.case-card-btn {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 0.7rem;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
  transition: all 0.2s ease;
}

.case-card-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.case-card-btn.active {
  border-color: var(--accent-gold);
  background: linear-gradient(180deg, rgba(245, 166, 35, 0.14), var(--bg-panel));
  box-shadow: var(--shadow-glow);
}

.case-card-btn img {
  width: 92px;
  height: 72px;
  object-fit: contain;
}

.case-card-name {
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1.2;
}

.roulette-shell {
  position: relative;
  background: linear-gradient(180deg, #07090e 0%, #0d121d 50%, #07090e 100%);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius-lg);
  padding: 1.4rem 0;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.roulette-shell::before,
.roulette-shell::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 90px;
  z-index: 4;
  pointer-events: none;
}

.roulette-shell::before {
  left: 0;
  background: linear-gradient(90deg, #07090e, transparent);
}

.roulette-shell::after {
  right: 0;
  background: linear-gradient(270deg, #07090e, transparent);
}

.roulette-needle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #ffd700, #f5a623, #ffd700);
  box-shadow: 0 0 14px rgba(255, 215, 0, 0.85);
  z-index: 6;
  pointer-events: none;
}

.roulette-track {
  display: flex;
  align-items: stretch;
  gap: 10px;
  will-change: transform;
  padding-left: 50%;
}

.roulette-tile {
  flex: 0 0 156px;
  height: 146px;
  background: #121826;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 4px solid var(--rarity-color, #4b69ff);
  border-radius: 8px;
  padding: 0.6rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.roulette-tile::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 55%;
  background: radial-gradient(circle at 50% 100%, var(--rarity-glow, rgba(75, 105, 255, 0.25)), transparent 75%);
  pointer-events: none;
}

.roulette-tile img {
  width: 112px;
  height: 78px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.roulette-tile-name {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.gold-special-emblem {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(255, 215, 0, 0.35), rgba(245, 166, 35, 0.08));
  border: 2px solid #ffd700;
  color: #ffd700;
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  box-shadow: 0 0 22px rgba(255, 215, 0, 0.35);
}

.unbox-reveal {
  margin-top: 1.15rem;
  background: var(--bg-surface);
  border: 1px solid var(--rarity-color, var(--border-bright));
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 0 32px var(--rarity-glow, rgba(245, 166, 35, 0.14));
}

.unbox-reveal-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.unbox-reveal-left img {
  width: 132px;
  height: 92px;
  object-fit: contain;
}

.skin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 0.85rem;
}

.skin-card {
  background: var(--bg-panel);
  border: 1px solid var(--border-subtle);
  border-bottom: 3px solid var(--rarity-color, #4b69ff);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.skin-card img {
  width: 100%;
  height: 92px;
  object-fit: contain;
}

@media (max-width: 1024px) {
  .case-selector-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .case-selector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
