@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;1,300;1,400&family=Inter:wght@200;300;400;500;600&family=IBM+Plex+Mono:wght@300;400;500&display=swap');

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

* { user-select: none; -webkit-user-select: none; }
input, textarea, [contenteditable] { user-select: text; -webkit-user-select: text; }

img { -webkit-user-drag: none; }
.case-float-img, .case-bg-img, .case-page-float-img, .case-page-img { pointer-events: none; -ms-user-select: none; user-select: none; }

/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════════ */
:root {
  /* ── Backgrounds */
  --bg:          #0d0c0b;
  --bg-warm:     #1c1a17;

  /* ── Surfaces — frosted acrylic layers */
  --s1:          rgba(255,255,255,0.042);
  --s2:          rgba(255,255,255,0.072);
  --s3:          rgba(255,255,255,0.105);

  /* ── Borders */
  --b1:          rgba(255,255,255,0.082);
  --b2:          rgba(255,255,255,0.17);

  /* ── Typography */
  --t1:          rgba(255,255,255,0.94);
  --t2:          rgba(255,255,255,0.52);
  --t3:          rgba(255,255,255,0.26);
  --t4:          rgba(255,255,255,0.12);

  /* ── Accents — use sparingly */
  --amber:       rgba(220,174,64,0.88);
  --green:       rgba(64,198,96,0.88);
  --red:         rgba(210,58,46,0.88);

  /* ── Blur */
  --blur-s:      blur(14px) saturate(160%);
  --blur-m:      blur(30px) saturate(180%);
  --blur-l:      blur(52px) saturate(200%);

  /* ── Radius */
  --r-s: 12px;
  --r-m: 20px;
  --r-l: 28px;
  --r-p: 100px;

  /* ── Motion */
  --spring:      cubic-bezier(0.16,1,0.3,1);
  --ease-out:    cubic-bezier(0,0,0.2,1);

  /* ── Shadows */
  --shadow-card: 0 2px 14px rgba(0,0,0,0.55), inset 0 1px 0 rgba(255,255,255,0.05);
  --shadow-lift: 0 28px 72px rgba(0,0,0,0.88);

  /* ── Typography families */
  --font-sans:  'Inter', -apple-system, sans-serif;
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-mono:  'IBM Plex Mono', 'Courier New', monospace;
}

/* ═══════════════════════════════════════════════════════════════
   BASE
═══════════════════════════════════════════════════════════════ */
body {
  background: #0a0909;
  color: var(--t1);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

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

/* Mono utility class */
.mono {
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════════ */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 52px;
  height: 80px;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13,12,11,0.84);
  backdrop-filter: var(--blur-m);
  -webkit-backdrop-filter: var(--blur-m);
  border-bottom: 1px solid var(--b1);
  box-shadow: 0 1px 0 rgba(0,0,0,0.9), inset 0 1px 0 rgba(255,255,255,0.04);
}

.navbar-right {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 12px;
  font-weight: 300;
  color: var(--t2);
  letter-spacing: 0.2px;
}

.inventory-btn {
  color: var(--t2);
  background: var(--s1);
  border: 1px solid var(--b1);
  padding: 7px 20px;
  border-radius: var(--r-p);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  transition: all 0.22s var(--ease-out);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.inventory-btn:hover {
  background: var(--s2);
  border-color: var(--b2);
  color: var(--t1);
}

#balance {
  color: var(--t1);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* ═══════════════════════════════════════════════════════════════
   TOPNAV
═══════════════════════════════════════════════════════════════ */
.topnav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  padding: 10px 24px;
  background: rgba(13,12,11,0.74);
  backdrop-filter: var(--blur-s);
  -webkit-backdrop-filter: var(--blur-s);
  border-bottom: 1px solid rgba(255,255,255,0.038);
}

.topnav-btn {
  display: flex;
  align-items: center;
  gap: 0;
  height: 46px;
  max-width: 54px;
  overflow: hidden;
  padding: 0 13px;
  border-radius: var(--r-p);
  background: var(--s1);
  border: 1px solid rgba(255,255,255,0.06);
  color: var(--t3);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.4s var(--spring);
}

.topnav-btn:hover, .topnav-btn.active {
  background: var(--s2);
  border-color: rgba(255,255,255,0.14);
  color: var(--t1);
  gap: 10px;
  max-width: 280px;
  padding: 0 20px;
}

.topnav-btn.active {
  background: rgba(255,255,255,0.088);
  border-color: rgba(255,255,255,0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
}

.topnav-icon {
  width: 22px; height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0.32);
  transition: filter 0.22s;
}

.topnav-btn:hover .topnav-icon { filter: brightness(0.82); animation: heartbeat 0.75s ease-in-out infinite; }
.topnav-btn.active .topnav-icon { filter: brightness(0.82); }

.topnav-label {
  font-size: 9px;
  letter-spacing: 2.5px;
  overflow: hidden;
  max-width: 0;
  transition: max-width 0.4s var(--spring);
}

.topnav-btn:hover .topnav-label,
.topnav-btn.active .topnav-label { max-width: 200px; }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════════════════════ */
.layout {
  display: flex;
  justify-content: center;
  min-height: calc(100vh - 126px);
}

.main-content {
  flex: 1;
  padding: 72px 80px;
  max-width: 1280px;
  width: 100%;
}

.main-cols { display:flex; gap:40px; align-items:flex-start; max-width:900px; }
.col-left  { flex: 0 0 auto; }
.col-right { flex: 1; max-width: 280px; }

/* ═══════════════════════════════════════════════════════════════
   GLOBAL TEXT
═══════════════════════════════════════════════════════════════ */
p {
  text-align: center;
  font-size: 13px;
  color: var(--t2);
  padding: 10px;
  font-weight: 300;
}

/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE HERO
═══════════════════════════════════════════════════════════════ */
.hero {
  padding-bottom: 64px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--b1);
}

.hero-kicker {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 20px;
}

.hero-headline {
  font-family: 'Inter', sans-serif;
  font-size: 66px;
  font-weight: 200;
  letter-spacing: -2.5px;
  line-height: 1.03;
  color: var(--t1);
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════════ */
button {
  background: rgba(255,255,255,0.95);
  color: #0a0909;
  border: none;
  padding: 12px 28px;
  border-radius: var(--r-p);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  transition: background 0.22s var(--spring), transform 0.22s var(--spring);
}

button:hover {
  background: #fff;
  transform: translateY(-1px);
}

.back-btn {
  display: block;
  color: var(--t3);
  font-size: 10px;
  letter-spacing: 2px;
  margin-bottom: 32px;
  transition: color 0.2s;
  text-transform: uppercase;
  text-align: right;
}

.back-btn:hover { color: var(--t2); }

/* ═══════════════════════════════════════════════════════════════
   CASES — INDEX PAGE
═══════════════════════════════════════════════════════════════ */
.section-label {
  font-size: 9px;
  letter-spacing: 5px;
  color: var(--t3);
  text-transform: uppercase;
  margin-bottom: 36px;
  font-weight: 600;
}

.cases-container {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
  justify-content: flex-start;
  padding: 0;
}

.case-link { color: white; }

/* Case card — pure floating object, zero container */
.case {
  position: relative;
  background: transparent;
  border: none;
  overflow: visible;
  width: 220px;
  cursor: pointer;
}

.case::before { display: none; }
.case:hover { transform: none; background: transparent; border: none; box-shadow: none; }

.case-img-area {
  background: transparent;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-radius: 0;
  transition: transform 0.5s var(--spring);
}

.case:hover .case-img-area { transform: scale(1.07) translateY(-5px); }

.case .case-bg-img  { width:165px; height:165px; object-fit:contain; }
.case .case-float-img { width:135px; height:105px; object-fit:contain; }

.case-float-img {
  position: absolute;
  width: 135px; height: 105px;
  object-fit: contain;
  bottom: 52px; left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(2px 14px 18px rgba(0,0,0,0.96));
  transition: filter 0.32s;
  z-index: 1;
}

@keyframes levitate {
  0%   { transform: translateX(-50%) translateY(0px);  }
  50%  { transform: translateX(-50%) translateY(-9px); }
  100% { transform: translateX(-50%) translateY(0px);  }
}

.case:hover .case-float-img {
  animation: levitate 2s ease-in-out infinite;
  filter: drop-shadow(2px 14px 18px rgba(0,0,0,0.96)) drop-shadow(0 0 20px rgba(255,255,255,0.14));
}

.case-body {
  padding: 14px 2px 0;
  margin-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.case h2 {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--t1);
  margin-bottom: 1px;
  letter-spacing: -0.1px;
}

.case-sep { width:16px; height:1px; background:rgba(255,255,255,0.1); margin:9px 0; }
.case-meta { margin-bottom: 0; }

.case p {
  font-size: 11px;
  color: var(--t3);
  letter-spacing: 0.3px;
  padding: 0;
  text-align: left;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   CASE PAGE — Opening screen
═══════════════════════════════════════════════════════════════ */
.case-page-header {
  text-align: center;
  margin-bottom: 60px;
}

.case-page-img { width:180px; height:180px; object-fit:contain; margin-bottom:20px; }

.case-page-float-img {
  position: absolute;
  width: 150px; height: 120px;
  object-fit: contain;
  bottom: 70px; left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(4px 8px 10px rgba(0,0,0,0.92));
  transition: filter 0.3s;
}

.case-page-float-img:hover {
  filter: drop-shadow(4px 8px 10px rgba(0,0,0,0.92)) drop-shadow(0 0 2px rgba(255,255,255,0.4));
  animation: levitate 2s ease-in-out infinite;
}

.case-page-title {
  font-family: 'Inter', sans-serif;
  font-size: 46px;
  font-weight: 200;
  letter-spacing: -1.5px;
  margin-bottom: 10px;
  color: var(--t1);
}

.case-page-price {
  color: var(--t3);
  font-size: 10px;
  margin-bottom: 10px;
  padding: 0;
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

.case-count-selector {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 20px 0 12px;
}

.count-btn {
  background: var(--s1);
  color: var(--t2);
  border: 1px solid var(--b1);
  padding: 8px 24px;
  border-radius: var(--r-p);
  cursor: pointer;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 1px;
  transition: all 0.22s var(--ease-out);
  font-family: 'Inter', sans-serif;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.count-btn:hover {
  border-color: var(--b2);
  color: var(--t1);
  background: var(--s2);
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}

.count-btn.active {
  background: rgba(255,255,255,0.96);
  color: #0a0909;
  border-color: transparent;
  font-weight: 500;
  box-shadow: 0 2px 12px rgba(255,255,255,0.13), inset 0 1px 0 rgba(255,255,255,0.5);
  transform: none;
}

.case-total-price {
  color: var(--t3);
  font-size: 11px;
  margin-bottom: 18px;
  text-align: center;
  padding: 0;
  letter-spacing: 1.5px;
}

.case-total-price strong { color: var(--t2); }

/* ═══════════════════════════════════════════════════════════════
   ROULETTE
═══════════════════════════════════════════════════════════════ */
.roulettes-container {
  display: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 24px auto;
  max-width: 860px;
}

/* Rarity tints — very subtle */
.rarity-grey  { background: rgba(155,155,155,0.05); }
.rarity-blue  { background: rgba(75,105,255,0.05);  }
.rarity-pink  { background: rgba(211,44,230,0.05);  }
.rarity-red   { background: rgba(235,75,75,0.05);   }
.rarity-gold  { background: rgba(220,174,64,0.05);  }

/* ═══════════════════════════════════════════════════════════════
   WINNER CARD & OVERLAYS
═══════════════════════════════════════════════════════════════ */
.close-btn {
  position: absolute;
  top: 18px; right: 20px;
  cursor: pointer;
  color: var(--t3);
  font-size: 14px;
  font-weight: 300;
  line-height: 1;
  transition: color 0.18s;
}

.close-btn:hover { color: var(--t1); }

.btn-sell {
  background: transparent;
  color: rgba(210,58,46,0.82);
  border: 1px solid rgba(210,58,46,0.28);
  padding: 12px 28px;
  border-radius: var(--r-p);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  transition: all 0.22s var(--ease-out);
  box-shadow: none;
}

.btn-sell:hover {
  background: rgba(210,58,46,0.1);
  border-color: rgba(210,58,46,0.6);
  color: rgba(230,78,64,1);
  transform: none;
  box-shadow: none;
}

.btn-inventory {
  background: var(--s1);
  color: var(--t2);
  border: 1px solid var(--b1);
  padding: 12px 28px;
  border-radius: var(--r-p);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  transition: all 0.22s var(--ease-out);
  backdrop-filter: var(--blur-s);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

.btn-inventory:hover {
  background: var(--s2);
  border-color: var(--b2);
  color: var(--t1);
  transform: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05);
}

/* ═══════════════════════════════════════════════════════════════
   POSSIBLE ITEMS GRID
═══════════════════════════════════════════════════════════════ */
.possible-items { margin-top: 72px; }

.possible-title {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 5px;
  text-transform: uppercase;
  margin-bottom: 28px;
  color: var(--t3);
}

.possible-grid { display:flex; flex-wrap:wrap; gap:10px; }

.possible-item {
  position: relative;
  overflow: hidden;
  width: 146px;
  border-radius: var(--r-m);
  padding: 16px 12px 12px;
  text-align: center;
  border: 1px solid var(--b1);
  background: var(--s1);
  backdrop-filter: var(--blur-s);
  -webkit-backdrop-filter: var(--blur-s);
  transition: all 0.28s var(--spring);
}

.possible-item::before {
  content: '';
  position: absolute;
  top:0; left:0; width:100%; height:42%;
  background: linear-gradient(180deg, rgba(255,255,255,0.034) 0%, transparent 100%);
  pointer-events: none;
}

.possible-item:hover {
  background: var(--s2);
  border-color: var(--b2);
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(0,0,0,0.5);
}

.possible-item img { width:94px; height:72px; object-fit:contain; position:relative; z-index:1; }

.item-name {
  font-size: 9px;
  color: var(--t3);
  margin-top: 8px;
  text-align: center;
  padding: 0;
  letter-spacing: 0.3px;
  font-weight: 400;
}

.item-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  color: var(--t2);
  font-weight: 400;
  text-align: center;
  padding: 0;
  margin-top: 3px;
}

.item-chance {
  font-size: 9px;
  color: var(--t4);
  margin-top: 4px;
  text-align: center;
  padding: 0;
  letter-spacing: 2px;
}

/* ═══════════════════════════════════════════════════════════════
   RARITY ACCENTS
═══════════════════════════════════════════════════════════════ */
.possible-item.rarity-grey, .inventory-item.rarity-grey, .upgrade-mini-item.rarity-grey {
  border-top: 2px solid rgba(155,155,155,0.5);
}
.possible-item.rarity-blue, .inventory-item.rarity-blue, .upgrade-mini-item.rarity-blue {
  border-top: 2px solid rgba(75,105,255,0.72);
}
.possible-item.rarity-pink, .inventory-item.rarity-pink, .upgrade-mini-item.rarity-pink {
  border-top: 2px solid rgba(211,44,230,0.72);
}
.possible-item.rarity-red, .inventory-item.rarity-red, .upgrade-mini-item.rarity-red {
  border-top: 2px solid rgba(235,75,75,0.72);
  box-shadow: 0 0 14px rgba(235,75,75,0.048);
}
.possible-item.rarity-gold, .inventory-item.rarity-gold, .upgrade-mini-item.rarity-gold {
  border-top: 2px solid rgba(220,174,64,0.82);
  box-shadow: 0 0 22px rgba(200,150,12,0.065);
}

/* ═══════════════════════════════════════════════════════════════
   INVENTORY
═══════════════════════════════════════════════════════════════ */
.inventory-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 52px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--b1);
}

.inventory-header-right { display:flex; align-items:center; gap:20px; }

.inventory-title {
  font-family: 'Inter', sans-serif;
  font-size: 42px;
  font-weight: 200;
  letter-spacing: -1.5px;
  color: var(--t1);
}

.inventory-total { color:var(--t3); margin:0; padding:0; font-size:11px; letter-spacing:1.5px; }
.inventory-total strong { color: var(--t2); }

.inventory-grid { display:flex; flex-wrap:wrap; gap:10px; }

.inventory-item {
  position: relative;
  overflow: hidden;
  width: 136px;
  border-radius: var(--r-m);
  padding: 14px;
  text-align: center;
  border: 1px solid var(--b1);
  background: var(--s1);
  backdrop-filter: var(--blur-s);
  -webkit-backdrop-filter: var(--blur-s);
}

.inventory-item::before {
  content: '';
  position: absolute;
  top:0; left:0; width:100%; height:42%;
  background: linear-gradient(180deg, rgba(255,255,255,0.034) 0%, transparent 100%);
  pointer-events: none;
}

.inventory-item img { width:86px; height:66px; object-fit:contain; position:relative; z-index:1; }

.sell-overlay {
  position: absolute;
  top:0; left:0; width:100%; height:100%;
  background: rgba(75,10,10,0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
  cursor: pointer;
  border-radius: var(--r-m);
  z-index: 5;
}

.sell-overlay p {
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  letter-spacing: 2.5px;
  font-size: 9px;
  text-align: center;
  padding: 0;
}

.sell-value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px !important;
  margin-top: 5px;
  color: white !important;
}

.inventory-item:hover .sell-overlay { opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   UPGRADE
═══════════════════════════════════════════════════════════════ */
.upgrade-page { padding:0; }

.upgrade-title {
  font-family: 'Inter', sans-serif;
  font-size: 42px;
  font-weight: 200;
  letter-spacing: -1.5px;
  margin-bottom: 56px;
  color: var(--t1);
}

.upgrade-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 64px;
}

.upgrade-side { text-align:left; width:250px; }

.upgrade-side h3 {
  font-family: 'Inter', sans-serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--t3);
  margin-bottom: 16px;
}

.upgrade-side h3 span {
  font-size: 9px;
  color: var(--t4);
  font-family: 'Inter', sans-serif;
}

.upgrade-center { text-align:center; position:relative; }
.upgrade-chance { display:none; }

.upgrade-center::before {
  content: '';
  position: absolute;
  top:50%; left:50%;
  transform: translate(-50%,-58%);
  width:360px; height:360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(28,26,22,0.38) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.upgrade-center canvas { position:relative; z-index:1; }

.upgrade-btn {
  position: relative;
  overflow: hidden;
  margin-top: 28px;
  background: rgba(255,255,255,0.95);
  color: #0a0909;
  padding: 16px 56px;
  font-size: 10px;
  letter-spacing: 4px;
  font-weight: 600;
  border-radius: var(--r-p);
  box-shadow: 0 4px 22px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.7);
  transition: all 0.28s var(--spring);
  z-index: 1;
}

.upgrade-btn::after {
  content: '';
  position: absolute;
  top:0; left:0; width:100%; height:52%;
  background: linear-gradient(180deg, rgba(255,255,255,0.26) 0%, transparent 100%);
  border-radius: inherit;
  pointer-events: none;
}

.upgrade-btn:hover {
  background: #fff;
  box-shadow: 0 6px 30px rgba(255,255,255,0.12), inset 0 1px 0 rgba(255,255,255,0.9);
  transform: translateY(-2px);
}

/* Roulette strip */
.upgrade-roulette-wrapper {
  position: relative;
  width: 800px; height: 160px;
  margin: 32px auto;
  overflow: hidden;
  border: 1px solid var(--b1);
  border-radius: var(--r-m);
  background: var(--s1);
  backdrop-filter: var(--blur-s);
  -webkit-backdrop-filter: var(--blur-s);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04), 0 4px 18px rgba(0,0,0,0.5);
}

.upgrade-roulette-wrapper::before,
.upgrade-roulette-wrapper::after {
  content: '';
  position: absolute;
  top:0; width:130px; height:100%;
  z-index:5; pointer-events:none;
}

.upgrade-roulette-wrapper::before { left:0;  background: linear-gradient(to right, rgba(13,12,11,0.98), transparent); }
.upgrade-roulette-wrapper::after  { right:0; background: linear-gradient(to left,  rgba(13,12,11,0.98), transparent); }

.upgrade-roulette-marker {
  position: absolute;
  top:0; left:50%;
  transform: translateX(-50%);
  width:1px; height:100%;
  background: rgba(255,255,255,0.24);
  z-index:10;
}

.upgrade-roulette-track {
  display:flex;
  padding:10px;
  gap:10px;
  height:160px;
  align-items:center;
}

.upgrade-selected { display:flex; flex-wrap:wrap; gap:8px; min-height:80px; margin-bottom:10px; }

.upgrade-mini-item {
  position: relative;
  overflow: hidden;
  width: 80px;
  border-radius: var(--r-s);
  padding: 8px;
  text-align: center;
  border: 1px solid var(--b1);
  background: var(--s1);
  backdrop-filter: var(--blur-s);
  -webkit-backdrop-filter: var(--blur-s);
}

.upgrade-mini-item::before {
  content:'';
  position:absolute;
  top:0; left:0; width:100%; height:40%;
  background: linear-gradient(180deg, rgba(255,255,255,0.034) 0%, transparent 100%);
  pointer-events:none;
}

.upgrade-mini-item img { width:50px; height:38px; object-fit:contain; position:relative; z-index:1; }
.upgrade-mini-item p  { font-size:9px; color:var(--t3); padding:0; margin-top:3px; }
.mini-value { font-size:11px !important; color:var(--t2) !important; font-weight:400; }

.remove-btn {
  position:absolute; top:4px; right:6px;
  font-size:10px; color:var(--t3);
  cursor:pointer; transition:color 0.18s;
}

.remove-btn:hover { color:var(--t1); }

.upgrade-total-val {
  font-size:11px; color:var(--t3);
  padding:0; margin-bottom:12px;
  text-align:left; letter-spacing:0.3px;
}

.upgrade-total-val strong { color: var(--t2); }

.upgrade-add-btn {
  background: transparent;
  color: var(--t3);
  border: 1px dashed rgba(255,255,255,0.14);
  padding: 9px 20px;
  border-radius: var(--r-p);
  cursor: pointer;
  font-size: 10px;
  letter-spacing: 2px;
  width: 100%;
  font-family: 'Inter', sans-serif;
  font-weight: 400;
  box-shadow: none;
  transition: all 0.22s var(--ease-out);
}

.upgrade-add-btn:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--t2);
  background: var(--s1);
  transform: none;
  box-shadow: none;
}

/* ═══════════════════════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════════════════════ */
.upgrade-modal {
  position: fixed;
  top:0; left:0; width:100%; height:100%;
  background: rgba(0,0,0,0.72);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.upgrade-modal-content {
  position: relative;
  overflow: hidden;
  background: rgba(255,255,255,0.048);
  backdrop-filter: var(--blur-l);
  -webkit-backdrop-filter: var(--blur-l);
  border: 1px solid var(--b1);
  border-radius: var(--r-l);
  padding: 48px;
  max-width: 700px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 0 0 1px rgba(255,255,255,0.03), 0 32px 88px rgba(0,0,0,0.82);
}

.upgrade-modal-content::before {
  content:'';
  position:absolute; top:0; left:0;
  width:100%; height:38%;
  background:linear-gradient(180deg, rgba(255,255,255,0.052) 0%, transparent 100%);
  border-radius: var(--r-l) var(--r-l) 0 0;
  pointer-events:none;
}

.upgrade-modal-content h3 {
  font-family: 'Inter', sans-serif;
  font-size: 26px;
  font-weight: 200;
  letter-spacing: -0.5px;
  margin-bottom: 32px;
  color: var(--t1);
  position: relative;
}

.upgrade-modal-grid { display:flex; flex-wrap:wrap; gap:10px; position:relative; }


/* ═══════════════════════════════════════════════════════════════
   INFO BTN
═══════════════════════════════════════════════════════════════ */
.info-btn {
  position: absolute;
  bottom:8px; left:8px;
  width:18px; height:18px;
  border-radius: 50%;
  background: var(--s1);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--t3);
  font-size: 10px; font-weight:500; padding:0;
  cursor:pointer; letter-spacing:0;
  transition: all 0.18s;
  font-family:'Inter',sans-serif;
  box-shadow: none;
}

.info-btn:hover {
  border-color: rgba(255,255,255,0.3);
  color: var(--t1);
  background: var(--s2);
  transform: none;
  box-shadow: none;
}

.info-btn-active { background:white !important; color:#0a0909 !important; border-color:white !important; }

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════════ */
@keyframes heartbeat {
  0%,56%,100% { transform: scale(1);   }
  14%,42%     { transform: scale(1.2); }
  28%         { transform: scale(1);   }
}

@keyframes popIn {
  0%   { transform: translate(-50%,-50%) scale(0.93); opacity:0; }
  100% { transform: translate(-50%,-50%) scale(1);    opacity:1; }
}

@keyframes slideUp {
  0%   { transform: translate(-50%,-44%); opacity:0; }
  100% { transform: translate(-50%,-50%); opacity:1; }
}

@keyframes fadeIn {
  from { opacity:0; } to { opacity:1; }
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR
═══════════════════════════════════════════════════════════════ */
::-webkit-scrollbar { width:4px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.01); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.09); border-radius:2px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

.upgrade-modal-content::-webkit-scrollbar       { width:4px; }
.upgrade-modal-content::-webkit-scrollbar-track { background: rgba(255,255,255,0.01); }
.upgrade-modal-content::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.09); border-radius:2px; }
.upgrade-modal-content::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* ═══════════════════════════════════════════════════════════════
   SITE NAV
═══════════════════════════════════════════════════════════════ */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center;
  height: 58px; padding: 0 40px;
  background: rgba(10,9,9,0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.nav-brand {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px; font-weight: 400; letter-spacing: 0.18em;
  color: #fff; text-decoration: none; flex-shrink: 0;
  text-transform: uppercase; line-height: 1;
}
.nav-brand img { height: 44px; object-fit: contain; display: block; flex-shrink: 0; }

.nav-center {
  display: flex; align-items: center; gap: 0;
  margin: 0 auto;
}

.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  font-family: var(--font-mono); font-size: 10px; font-weight: 400;
  letter-spacing: 0.04em; text-transform: lowercase;
  color: rgba(255,255,255,0.28);
  transition: color 0.18s; white-space: nowrap;
}

.nav-link:hover  { color: rgba(255,255,255,0.78); }
.nav-link.active { color: rgba(255,255,255,0.94); }
.nav-link.dim    { opacity: 0.35; pointer-events: none; }

.soon-tag {
  font-family: var(--font-mono); font-size: 7px; letter-spacing: 0.08em;
  color: rgba(220,174,64,0.55);
  border: 1px solid rgba(220,174,64,0.18);
  padding: 1px 4px; border-radius: 3px;
}

.nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

.nav-sep { width: 1px; height: 16px; background: rgba(255,255,255,0.07); margin: 0 4px; }

.nav-balance {
  font-family: var(--font-mono); font-size: 11px; font-weight: 400;
  color: rgba(255,255,255,0.38); letter-spacing: 0.04em;
}
.nav-balance strong { color: rgba(255,255,255,0.82); font-weight: 500; font-variant-numeric: tabular-nums; }

.nav-btn {
  padding: 5px 14px;
  background: transparent; border: 1px solid rgba(255,255,255,0.14);
  color: rgba(255,255,255,0.42); font-family: var(--font-mono); font-size: 9px;
  font-weight: 400; letter-spacing: 0.06em; text-transform: lowercase;
  transition: all 0.18s; border-radius: 4px;
}

.nav-btn:hover { border-color: rgba(255,255,255,0.36); color: rgba(255,255,255,0.82); transform: none; }

.nav-deposit-btn {
  padding: 5px 14px;
  background: rgba(74,144,217,0.15);
  border: 1px solid rgba(74,144,217,0.4);
  color: rgba(120,180,255,0.9);
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 2px; text-transform: uppercase;
  border-radius: 4px; text-decoration: none;
  transition: all 0.18s;
}
.nav-deposit-btn:hover { background: rgba(74,144,217,0.28); border-color: rgba(74,144,217,0.7); color: #fff; transform: none; }
.nav-btn.active { border-color: rgba(255,255,255,0.28); color: rgba(255,255,255,0.7); }

/* Avatar Steam dans la navbar */
.nav-user-steam {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 3px 10px 3px 4px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.1);
  transition: border-color 0.18s, background 0.18s;
}
.nav-user-steam:hover {
  border-color: rgba(255,255,255,0.24);
  background: rgba(255,255,255,0.04);
}
.nav-steam-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.nav-steam-initial {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-steam-name {
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(255,255,255,0.62);
  letter-spacing: 0.03em;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Daily reward button in nav */
.nav-daily-btn {
  padding: 5px 12px;
  background: transparent; border: 1px solid rgba(220,174,64,0.22);
  color: rgba(220,174,64,0.62); font-family: var(--font-mono); font-size: 9px;
  font-weight: 400; letter-spacing: 0.06em; text-transform: lowercase;
  cursor: pointer; transition: all 0.18s; border-radius: 4px; margin-left: 6px;
}

.nav-daily-btn:hover { border-color: rgba(220,174,64,0.5); color: rgba(220,174,64,0.9); transform: none; }
.nav-daily-btn:disabled { opacity: 0.25; cursor: not-allowed; }

@media (max-width: 960px) {
  .nav-center { display: none; }
  .site-nav { padding: 0 20px; }
}

/* ═══════════════════════════════════════════════════════════════
   HERO  (homepage full-screen)
═══════════════════════════════════════════════════════════════ */
.hero-section {
  min-height: 94vh; position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 80px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

/* Horizontal rule that crosses the full width — structural, like Oakley */
.hero-section::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: rgba(255,255,255,0.06);
}

/* Spec tag — monospaced label top-left, like product datasheet */
.hero-eyebrow {
  font-family: var(--font-mono); font-size: 9px; font-weight: 400;
  color: rgba(255,255,255,0.22); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 28px;
  animation: fadeUpIn 0.7s 0.1s var(--spring) both;
}

/* Big editorial headline — Inter 200, very large, flush left */
.hero-headline {
  font-family: var(--font-sans);
  font-size: clamp(58px, 8vw, 118px);
  font-weight: 200; line-height: 0.96; letter-spacing: -4px;
  color: rgba(255,255,255,0.96); margin-bottom: 32px; max-width: 760px;
  animation: fadeUpIn 0.85s 0.22s var(--spring) both;
}

/* Sub — like Nokia spec copy: sparse, factual */
.hero-sub {
  font-family: var(--font-mono); font-size: 11px; font-weight: 300;
  color: rgba(255,255,255,0.28); letter-spacing: 0.06em; line-height: 1.9;
  max-width: 320px; margin-bottom: 52px; padding: 0; text-align: left;
  animation: fadeUpIn 0.85s 0.38s var(--spring) both;
}

.hero-cta {
  display: flex; gap: 14px; flex-wrap: wrap;
  animation: fadeUpIn 0.85s 0.52s var(--spring) both;
}

/* Primary CTA — white rect, sharp corners, mono label */
.cta-primary {
  display: inline-flex; align-items: center;
  padding: 14px 36px; background: rgba(255,255,255,0.96); color: #0a0909;
  border-radius: 4px; font-family: var(--font-mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  transition: background 0.18s, transform 0.18s;
}

.cta-primary:hover { background: #fff; transform: translateY(-2px); }

/* Ghost CTA — minimal border, mono */
.cta-ghost {
  display: inline-flex; align-items: center;
  padding: 14px 28px; background: transparent; color: rgba(255,255,255,0.36);
  border: 1px solid rgba(255,255,255,0.14); border-radius: 4px;
  font-family: var(--font-mono); font-size: 9px; font-weight: 400;
  letter-spacing: 0.12em; text-transform: uppercase; transition: all 0.18s;
}

.cta-ghost:hover { border-color: rgba(255,255,255,0.32); color: rgba(255,255,255,0.72); }

/* Spec block bottom-left — like Oakley/Nokia product data */
.hero-specs {
  position: absolute; bottom: 48px; left: 80px;
  display: flex; gap: 32px;
  animation: fadeUpIn 0.85s 0.7s var(--spring) both;
}

.hero-spec-item { display: flex; flex-direction: column; gap: 3px; }

.hero-spec-val {
  font-family: var(--font-mono); font-size: 15px; font-weight: 400;
  color: rgba(255,255,255,0.72); letter-spacing: -0.02em;
}

.hero-spec-lbl {
  font-family: var(--font-mono); font-size: 8px; font-weight: 400;
  color: rgba(255,255,255,0.2); letter-spacing: 0.14em; text-transform: uppercase;
}

.hero-visual {
  position: absolute; right: 2%; top: 50%; transform: translateY(-50%);
  width: 540px; height: 520px;
  display: flex; align-items: center; justify-content: center;
  animation: heroFloat 7s ease-in-out infinite, fadeUpIn 1.1s 0.4s var(--spring) both;
  pointer-events: none;
  overflow: visible;
}

/* Soft ambient glow behind the case */
.hero-glow-ring {
  position: absolute; width: 420px; height: 420px; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.038) 0%, transparent 68%);
  filter: blur(36px);
  z-index: 0;
}

.hero-case-img {
  width: 360px; object-fit: contain; position: relative; z-index: 2;
  filter: drop-shadow(0 36px 72px rgba(0,0,0,0.88));
}

/* ── Arc of 3 weapons around the case ── */
.hw {
  position: absolute; object-fit: contain; z-index: 3;
}

/* AK-47 — left, angled outward */
.hw-left {
  width: 195px;
  left: -60px; bottom: 80px;
  transform: rotate(-32deg);
  filter: drop-shadow(-8px 16px 28px rgba(0,0,0,0.95))
          drop-shadow(0 0 22px rgba(180,200,255,0.10));
  animation: hwLeft 6.4s 0s ease-in-out infinite;
}

/* Butterfly Knife — center-top, nearly upright */
.hw-top {
  width: 160px;
  top: -10px; left: 50%; transform: translateX(-50%) rotate(8deg);
  filter: drop-shadow(0 14px 32px rgba(0,0,0,0.95))
          drop-shadow(0 0 28px rgba(220,174,64,0.18));
  animation: hwTop 5.8s 0.7s ease-in-out infinite;
}

/* Talon Knife — right, mirror of AK */
.hw-right {
  width: 160px;
  right: -44px; bottom: 72px;
  transform: rotate(28deg);
  filter: drop-shadow(8px 16px 28px rgba(0,0,0,0.95))
          drop-shadow(0 0 22px rgba(235,80,80,0.14));
  animation: hwRight 7.1s 1.3s ease-in-out infinite;
}

@keyframes hwLeft  {
  0%,100% { transform: rotate(-32deg) translateY(0px);   }
  50%     { transform: rotate(-30deg) translateY(-13px); }
}
@keyframes hwTop   {
  0%,100% { transform: translateX(-50%) rotate(8deg) translateY(0px);   }
  50%     { transform: translateX(-50%) rotate(6deg) translateY(-15px); }
}
@keyframes hwRight {
  0%,100% { transform: rotate(28deg) translateY(0px);   }
  50%     { transform: rotate(26deg) translateY(-11px); }
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(-50%); }
  50%       { transform: translateY(calc(-50% - 16px)); }
}

@keyframes fadeUpIn {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ═══════════════════════════════════════════════════════════════
   STATS STRIP  (homepage)
═══════════════════════════════════════════════════════════════ */
.stats-strip {
  display: flex;
  padding: 0 80px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stat-item {
  flex: 1; padding: 32px 0;
  border-right: 1px solid rgba(255,255,255,0.06);
  padding-left: 40px;
}

.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: none; }

.stat-number {
  display: block; font-family: var(--font-mono);
  font-size: 28px; font-weight: 300; line-height: 1;
  color: rgba(255,255,255,0.82); letter-spacing: -0.03em; margin-bottom: 7px;
}

.stat-label {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.22); font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════════
   HOME SECTIONS
═══════════════════════════════════════════════════════════════ */
.home-section { padding: 72px 80px; }
.home-section + .home-section { padding-top: 0; }

.section-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 14px;
}

.section-eye {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(255,255,255,0.24); font-weight: 400;
}

.section-see-all {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.2); transition: color 0.18s;
}

.section-see-all:hover { color: rgba(255,255,255,0.56); }

/* ═══════════════════════════════════════════════════════════════
   DAILY REWARD BANNER
═══════════════════════════════════════════════════════════════ */
.daily-banner {
  margin: 0 84px 0;
  padding: 26px 32px;
  border-radius: 20px;
  background: rgba(220,174,64,0.055);
  border: 1px solid rgba(220,174,64,0.15);
  display: flex; align-items: center; gap: 22px;
  backdrop-filter: blur(12px);
}

.daily-icon { font-size: 28px; flex-shrink: 0; line-height: 1; }

.daily-text { flex: 1; }
.daily-text h3 {
  font-family: 'Inter', sans-serif; font-weight: 400; font-size: 15px;
  color: rgba(255,255,255,0.82); margin-bottom: 3px;
}
.daily-text p { font-size: 11px; color: rgba(255,255,255,0.3); padding: 0; text-align: left; }

.daily-claim-btn {
  padding: 11px 26px; border-radius: var(--r-p);
  background: rgba(220,174,64,0.1); border: 1px solid rgba(220,174,64,0.28);
  color: rgba(220,174,64,0.88); font-size: 10px; font-weight: 600;
  letter-spacing: 2.5px; text-transform: uppercase; font-family: 'Inter', sans-serif;
  cursor: pointer; transition: all 0.22s; white-space: nowrap; box-shadow: none;
}

.daily-claim-btn:hover { background: rgba(220,174,64,0.18); transform: none; box-shadow: none; }
.daily-claim-btn:disabled { opacity: 0.35; cursor: not-allowed; }

/* ═══════════════════════════════════════════════════════════════
   FEATURED CASES  (homepage — bare, no container)
═══════════════════════════════════════════════════════════════ */
.featured-cases { display: flex; gap: 52px; flex-wrap: wrap; }

.bare-case-link { text-decoration: none; }

.bare-case {
  position: relative; width: 220px; cursor: pointer; text-align: center;
  border-radius: 18px;
  padding: 18px 12px 16px;
  border: 1px solid transparent;
  transition: border-color 0.3s var(--spring), transform 0.45s var(--spring);
}

.bare-case:hover {
  border-color: rgba(255,255,255,0.22);
  transform: translateY(-6px);
}

.bare-case-area {
  position: relative; height: 175px;
  display: flex; align-items: center; justify-content: center;
}

.bare-case-img {
  width: 160px; object-fit: contain;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,0.7));
  transition: transform 0.45s var(--spring), filter 0.3s;
}

.bare-case:hover .bare-case-img {
  transform: scale(1.05) translateY(-4px);
  filter: drop-shadow(0 20px 44px rgba(0,0,0,0.88));
}

.bare-float-img {
  position: absolute; bottom: 46px; left: 50%; transform: translateX(-50%);
  width: 125px; object-fit: contain;
  filter: drop-shadow(2px 10px 14px rgba(0,0,0,0.96));
  transition: filter 0.3s;
  z-index: 1;
}

.bare-case:hover .bare-float-img {
  animation: levitate 2s ease-in-out infinite;
  filter: drop-shadow(2px 14px 20px rgba(0,0,0,0.96)) drop-shadow(0 0 16px rgba(255,255,255,0.12));
}

.bare-case-name  { font-size: 15px; font-weight: 300; color: rgba(255,255,255,0.82); margin: 12px 0 5px; letter-spacing: -0.2px; }
.bare-case-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 300;
  color: rgba(255,255,255,0.72); letter-spacing: -0.5px;
}

/* ═══════════════════════════════════════════════════════════════
   ACTIVITY FEED
═══════════════════════════════════════════════════════════════ */
.activity-live { display: flex; align-items: center; gap: 9px; }

.live-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(64,198,96,0.9);
  box-shadow: 0 0 8px rgba(64,198,96,0.5);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(64,198,96,0.5); }
  50%       { opacity: 0.45; box-shadow: 0 0 3px rgba(64,198,96,0.18); }
}

.activity-feed { display: flex; flex-direction: column; gap: 5px; max-height: 380px; overflow: hidden; }

.activity-item {
  display: flex; align-items: center; gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  animation: slideInFeed 0.3s var(--spring) both;
}

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

.activity-item-img { width: 36px; height: 28px; object-fit: contain; flex-shrink: 0; opacity: 0.82; }

.activity-info { flex: 1; }
.activity-user {
  font-family: var(--font-mono); font-size: 10px; font-weight: 400;
  color: rgba(255,255,255,0.52); letter-spacing: 0.02em;
}
.activity-item-name {
  font-family: var(--font-mono); font-size: 8px;
  color: rgba(255,255,255,0.22); margin-top: 2px; letter-spacing: 0.04em;
}

.activity-value {
  font-family: var(--font-mono); font-size: 13px; font-weight: 400;
  color: rgba(255,255,255,0.46); letter-spacing: -0.02em;
}
.activity-value.is-gold { color: rgba(220,174,64,0.78); }
.activity-value.is-red  { color: rgba(235,75,75,0.72); }

.activity-time {
  font-family: var(--font-mono); font-size: 8px;
  color: rgba(255,255,255,0.15); white-space: nowrap; letter-spacing: 0.04em;
}
.activity-empty {
  font-family: var(--font-mono); font-size: 9px; letter-spacing: 4px;
  color: rgba(255,255,255,0.16); text-align: left; padding: 12px 0; font-weight: 600;
}
.activity-case {
  color: rgba(255,255,255,0.14); font-size: 7px; margin-left: 4px;
}
.activity-avatar {
  width: 20px; height: 20px; border-radius: 50%; object-fit: cover; flex-shrink: 0;
}
.activity-avatar-placeholder {
  width: 20px; height: 20px; border-radius: 50%; background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; color: rgba(255,255,255,0.4); flex-shrink: 0;
}

/* ═══════════════════════════════════════════════════════════════
   COMING SOON PAGE
═══════════════════════════════════════════════════════════════ */
.coming-soon {
  min-height: calc(100vh - 72px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 40px;
}

.coming-tag {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.16em;
  text-transform: uppercase; color: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 12px; border-radius: 3px;
  display: inline-block; margin-bottom: 36px;
}

.coming-soon h1 {
  font-family: var(--font-sans); font-weight: 200;
  font-size: 64px; letter-spacing: -3px;
  color: rgba(255,255,255,0.88); margin-bottom: 16px;
}

.coming-soon p {
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(255,255,255,0.22); line-height: 1.8;
  max-width: 320px; padding: 0; letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════════
   LEADERBOARD
═══════════════════════════════════════════════════════════════ */
.lb-title {
  font-family: var(--font-sans); font-weight: 200;
  font-size: 44px; letter-spacing: -2px; color: var(--t1); margin-bottom: 48px;
}

.lb-header {
  display: grid; grid-template-columns: 40px 1fr 140px 120px;
  padding: 0 0 12px; font-family: var(--font-mono); font-size: 8px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.2); font-weight: 400;
  border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 4px;
}

.lb-row {
  display: grid; grid-template-columns: 40px 1fr 140px 120px;
  padding: 14px 0; align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.15s;
}

.lb-row:hover { background: rgba(255,255,255,0.025); }

.lb-rank {
  font-family: var(--font-mono); font-size: 11px; font-weight: 400;
  color: rgba(255,255,255,0.18); letter-spacing: 0.04em;
}
.lb-rank.gold   { color: rgba(220,174,64,0.7); }
.lb-rank.silver { color: rgba(200,200,210,0.5); }
.lb-rank.bronze { color: rgba(180,115,76,0.55); }

.lb-user { display: flex; align-items: center; gap: 10px; }

.lb-avatar-sm {
  width: 24px; height: 24px; border-radius: 3px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 9px; color: rgba(255,255,255,0.3);
}

.lb-username { font-family: var(--font-mono); font-size: 11px; font-weight: 400; color: rgba(255,255,255,0.62); letter-spacing: 0.02em; }
.lb-val { font-family: var(--font-mono); font-size: 13px; font-weight: 400; color: rgba(255,255,255,0.52); }
.lb-opens { font-family: var(--font-mono); font-size: 10px; color: rgba(255,255,255,0.22); }

/* ═══════════════════════════════════════════════════════════════
   PROFILE / INVENTORY
═══════════════════════════════════════════════════════════════ */
.profile-head {
  display: flex; align-items: center; gap: 24px;
  padding-bottom: 36px; margin-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.profile-avatar-lg {
  width: 56px; height: 56px; border-radius: 4px;
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 18px; font-weight: 300;
  color: rgba(255,255,255,0.45); flex-shrink: 0;
}

.profile-name-block h2 {
  font-family: var(--font-sans); font-weight: 200;
  font-size: 34px; letter-spacing: -1.5px; color: var(--t1);
}

.profile-tag {
  font-family: var(--font-mono); font-size: 9px;
  color: rgba(255,255,255,0.2); letter-spacing: 0.12em; margin-top: 4px;
}

.profile-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; margin-bottom: 48px;
  border: 1px solid rgba(255,255,255,0.07);
}

.profile-card {
  padding: 24px 20px;
  background: rgba(255,255,255,0.022);
  border-right: 1px solid rgba(255,255,255,0.06);
}

.profile-card:last-child { border-right: none; }

.profile-card-val {
  font-family: var(--font-mono); font-size: 24px;
  font-weight: 300; color: rgba(255,255,255,0.82); margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.profile-card-lbl {
  font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.14em;
  text-transform: uppercase; color: rgba(255,255,255,0.2); font-weight: 400;
}

/* ═══════════════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
═══════════════════════════════════════════════════════════════ */
.toast-container {
  position: fixed; bottom: 28px; right: 28px;
  z-index: 500; display: flex; flex-direction: column; gap: 8px; align-items: flex-end;
}

.toast {
  padding: 13px 18px; max-width: 300px;
  background: rgba(255,255,255,0.048); backdrop-filter: var(--blur-m);
  border: 1px solid rgba(255,255,255,0.1); border-radius: 14px;
  font-size: 11px; color: rgba(255,255,255,0.7); font-family: 'Inter', sans-serif;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.06);
  animation: toastIn 0.32s var(--spring) both; transition: all 0.28s;
}

@keyframes toastIn {
  from { transform: translateY(12px) scale(0.94); opacity: 0; }
  to   { opacity: 1; }
}

.toast.success { border-color: rgba(64,198,96,0.22); }
.toast.amber   { border-color: rgba(220,174,64,0.22); }
.toast.error   { border-color: rgba(210,58,46,0.22); }

/* ═══════════════════════════════════════════════════════════════
   WINNER HIGHLIGHT  (roulette item after spin)
═══════════════════════════════════════════════════════════════ */
@keyframes winnerPop {
  0%   { transform: scale(1.12); box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
  50%  { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
  100% { transform: scale(1.12); }
}

.winner-glow {
  animation: winnerPop 0.55s ease-in-out 2 both;
  border-color: rgba(255,255,255,0.4) !important;
}

/* ═══════════════════════════════════════════════════════════════
   CONFETTI  (global keyframe needed by JS)
═══════════════════════════════════════════════════════════════ */
@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg) translateX(0); opacity: 1; }
  100% { transform: translateY(120vh) rotate(720deg) translateX(var(--sway)); opacity: 0; }
}

/* ═══════════════════════════════════════════════════════════════
   CASES PAGE  (header section when entering from homepage)
═══════════════════════════════════════════════════════════════ */
.cases-page-header {
  padding-bottom: 44px; margin-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.cases-page-title {
  font-family: 'Inter', sans-serif; font-weight: 200;
  font-size: 44px; letter-spacing: -1.5px; color: var(--t1); margin-bottom: 6px;
}

.cases-page-sub {
  font-size: 12px; color: rgba(255,255,255,0.3); letter-spacing: 0.3px; padding: 0; text-align: left;
}

/* ── Profile name row (inventory) */
.profile-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 8px;
  color: rgba(255,255,255,0.40);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 5px 10px 5px 8px;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.profile-action-btn:hover {
  background: rgba(255,255,255,0.09);
  color: rgba(255,255,255,0.70);
  border-color: rgba(255,255,255,0.18);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid var(--b1);
  padding: 32px 0 40px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-brand {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 4px;
  color: var(--t3);
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-link {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--t3);
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-link:hover, .footer-link.active { color: var(--t2); }

.footer-disclaimer {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.5px;
  color: var(--t4);
  line-height: 1.8;
}
