.case-select {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.case-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 12px 14px;
  border-radius: 10px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.15s;
  text-align: left;
}
.case-btn:hover { border-color: var(--gold); }
.case-btn.active {
  border-color: var(--gold);
  background: rgba(245,184,0,0.08);
}
.case-btn .c-name { font-weight: 700; font-size: 14px; }
.case-btn .c-sub { font-size: 11px; color: var(--text-dimmer); }
.case-btn .c-price { font-weight: 800; color: var(--gold-bright); font-size: 15px; }

.qty-select {
  display: flex;
  gap: 6px;
}
.qty-btn {
  flex: 1;
  background: var(--bg-alt);
  border: 1.5px solid var(--border);
  color: var(--text-dim);
  padding: 10px 6px;
  border-radius: 8px;
  font-family: inherit;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.qty-btn:hover { border-color: var(--gold); color: var(--text); }
.qty-btn.active { background: var(--gold); color: #1a1200; border-color: var(--gold); }

.fast-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
  margin-top: 4px;
  user-select: none;
}
.fast-toggle input { accent-color: var(--gold); width: 16px; height: 16px; }

.paytable-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dimmer);
  font-weight: 700;
  margin-bottom: 6px;
}
.odds-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  font-size: 12.5px;
}
.odds-row .odds-icon {
  width: 26px; height: 26px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}
.odds-row .odds-name { flex: 1; color: var(--text-dim); }
.odds-row .odds-pct { color: var(--text-dimmer); width: 54px; text-align: right; }
.odds-row .odds-val { color: var(--gold-bright); font-weight: 700; width: 64px; text-align: right; }

/* ---------- Stage ---------- */
.cases-stage-panel { padding: 20px; align-items: stretch; }

.cases-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-placeholder {
  text-align: center;
  color: var(--text-dim);
  padding: 80px 20px;
  font-size: 16px;
}

.reel-outer {
  position: relative;
  width: 100%;
  height: 128px;
  background: linear-gradient(180deg, #0a0e17, #111826);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.reel-outer::before, .reel-outer::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 60px;
  z-index: 5;
  pointer-events: none;
}
.reel-outer::before { left: 0; background: linear-gradient(90deg, #0a0e17, transparent); }
.reel-outer::after { right: 0; background: linear-gradient(270deg, #0a0e17, transparent); }

.case-pointer {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  transform: translateX(-50%);
  z-index: 6;
}
.case-pointer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 10px solid var(--gold);
}

.case-strip {
  display: flex;
  align-items: center;
  height: 100%;
  will-change: transform;
}

.case-cell {
  flex-shrink: 0;
  width: 116px;
  height: 108px;
  margin: 0 8px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 2px solid var(--border);
  background: var(--panel-light);
  transition: transform 0.2s;
}
.case-cell .cell-icon { font-size: 32px; }
.case-cell .cell-name { font-size: 10px; font-weight: 700; color: var(--text-dim); text-align: center; padding: 0 4px; }
.case-cell .cell-value { font-size: 11px; font-weight: 800; }

.case-cell.landed {
  animation: cell-land 0.5s ease;
  z-index: 2;
}
@keyframes cell-land {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1.06); }
}

/* Rarity color system (CS:GO-style ramp) */
.rarity-common    { border-color: #b0b3b8; background: linear-gradient(160deg, #2a2c30, #1c1d20); }
.rarity-uncommon  { border-color: #5e98d9; background: linear-gradient(160deg, #1c2b3d, #141e2b); }
.rarity-rare      { border-color: #4b69ff; background: linear-gradient(160deg, #1c1f3d, #14162b); }
.rarity-epic      { border-color: #8847ff; background: linear-gradient(160deg, #271c3d, #1b142b); }
.rarity-legendary { border-color: #d32ee6; background: linear-gradient(160deg, #351c3d, #26142b); }
.rarity-mythical  { border-color: #eb4b4b; background: linear-gradient(160deg, #3d1c1c, #2b1414); }
.rarity-divine    { border-color: #ffd700; background: linear-gradient(160deg, #3d3312, #2b230c); box-shadow: 0 0 16px rgba(255,215,0,0.35); }

.rarity-common .cell-value    { color: #d1d3d6; }
.rarity-uncommon .cell-value  { color: #7fb3ea; }
.rarity-rare .cell-value      { color: #7d92ff; }
.rarity-epic .cell-value      { color: #b585ff; }
.rarity-legendary .cell-value { color: #ec7bf5; }
.rarity-mythical .cell-value  { color: #ff8a8a; }
.rarity-divine .cell-value    { color: #ffe066; }

.odds-icon.rarity-common    { background: rgba(176,179,184,0.15); }
.odds-icon.rarity-uncommon  { background: rgba(94,152,217,0.15); }
.odds-icon.rarity-rare      { background: rgba(75,105,255,0.15); }
.odds-icon.rarity-epic      { background: rgba(136,71,255,0.15); }
.odds-icon.rarity-legendary { background: rgba(211,46,230,0.15); }
.odds-icon.rarity-mythical  { background: rgba(235,75,75,0.15); }
.odds-icon.rarity-divine    { background: rgba(255,215,0,0.2); }

/* ---------- Results summary ---------- */
.case-results {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  padding-top: 6px;
}
.result-card {
  width: 130px;
  border-radius: 10px;
  border: 2px solid var(--border);
  padding: 12px 8px;
  text-align: center;
}
.result-card .cell-icon { font-size: 28px; }
.result-card .cell-name { font-size: 11px; font-weight: 700; margin-top: 4px; color: var(--text-dim); }
.result-card .cell-value { font-size: 13px; font-weight: 800; margin-top: 2px; }

@media (max-width: 480px) {
  .reel-outer { height: 100px; }
  .case-cell { width: 92px; height: 84px; margin: 0 5px; }
  .case-cell .cell-icon { font-size: 24px; }
}
