/* ==========================================================================
   BULLDROP — Wheel page
   Bet controls · multiplier selector · wheel stage · bet pools
   Depends on shared.css + game-shared.css
   ========================================================================== */

.game-lead { margin: 0 0 22px; color: var(--text-mute); font-size: 14px; }

/* ---------- Layout ---------- */
.wheel-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.36fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 34px;
}

.wheel-controls { display: grid; gap: 14px; align-content: start; }
.wheel-stage { display: grid; gap: 14px; align-content: start; min-width: 0; }

/* ---------- Multiplier selector ---------- */
.mults {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.msel {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 14px 14px 14px 16px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-surface-2);
  overflow: hidden;
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease),
    background-color var(--t) var(--ease);
}
.msel:hover { transform: translateY(-3px); border-color: var(--line-strong); }

.msel__x {
  font-size: 19px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.01em;
}
.msel img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.5));
}

/* Selected sector gets the blue treatment from the reference */
.msel.is-active {
  border-color: rgba(79, 141, 255, 0.55);
  background: linear-gradient(160deg, rgba(79, 141, 255, 0.24), rgba(47, 111, 228, 0.1));
}

.wheel-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

/* ---------- Wheel stage ---------- */
.wheel-view {
  position: relative;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--bg-inset);
  overflow: hidden;
}
/* contain, not cover — the wheel is the subject and must not be cropped */
.wheel-view__art {
  display: block;
  width: 100%;
  height: clamp(260px, 34vw, 420px);
  object-fit: contain;
  object-position: center;
  background: radial-gradient(60% 70% at 50% 40%, #1a1d27, #0e1017 70%);
}
.wheel-view__timer {
  position: absolute;
  top: 12%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: baseline;
  gap: 3px;
  padding: 6px 14px;
  border-radius: var(--r-sm);
  background: rgba(8, 9, 13, 0.72);
  color: #eaf5ff;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
  backdrop-filter: blur(4px);
}

/* Sector strip under the wheel */
.strip {
  display: flex;
  gap: 4px;
  padding: 10px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-surface-2);
  overflow: hidden;
}
.strip__i {
  flex: 1 1 0;
  height: 16px;
  min-width: 8px;
  border-radius: 4px;
}
.strip__i--b { background: #3f7fd6; }
.strip__i--g { background: #2fa35b; }
.strip__i--r { background: #cf3d4c; }

/* ---------- Round meta ---------- */
.wheel-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg-surface-2);
}
.wheel-meta__players,
.wheel-meta__bank {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  background: var(--bg-inset);
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.wheel-meta__leader {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  margin-left: auto;
  padding: 6px 12px;
  border-radius: var(--r-sm);
  background: var(--bg-inset);
  font-size: 12.5px;
  transition: background-color var(--t) var(--ease);
}
.wheel-meta__leader:hover { background: var(--bg-elevated); }
.wheel-meta__leader img {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
}
.wheel-meta__leader span {
  min-width: 0;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.wheel-meta__leader b {
  display: flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
  color: var(--gold);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

/* ---------- Bet pools ---------- */
.pools {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.pool {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 10px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  background: var(--bg-surface);
}

.pool__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 11px;
  border-radius: var(--r-md);
}
.pool__head--2x  { background: rgba(63, 127, 214, 0.2); }
.pool__head--3x  { background: rgba(47, 163, 91, 0.2); }
.pool__head--5x  { background: rgba(207, 61, 76, 0.2); }
.pool__head--50x { background: rgba(139, 92, 246, 0.22); }

.pool__x { font-size: 13px; font-weight: 800; color: var(--text); }
.pool__total {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 800;
  color: var(--text-soft);
  font-variant-numeric: tabular-nums;
}

.pool__list { display: grid; gap: 6px; }

.pbet {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 9px;
  border-radius: var(--r-sm);
  background: var(--bg-surface-2);
  font-size: 11.5px;
  transition: background-color var(--t) var(--ease);
}
.pbet:hover { background: var(--bg-elevated); }
.pbet img {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
}
.pbet span {
  min-width: 0;
  color: var(--text-soft);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.pbet b {
  color: var(--text);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ---------- SEO note ---------- */
.seo-note {
  padding: 24px;
  border-radius: var(--r-xl);
  border: 1px solid var(--line);
  background: var(--bg-surface);
}
.seo-note__title { margin-bottom: 12px; font-size: 18px; }
.seo-note__text {
  max-width: 90ch;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.75;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

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

@media (max-width: 1024px) {
  .wheel-grid { grid-template-columns: 1fr; }
  .mults { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .msel { flex-direction: column; gap: 4px; padding: 12px; }
  .msel img { width: 44px; height: 44px; }
}

@media (max-width: 700px) {
  .wheel-meta__leader { margin-left: 0; width: 100%; }
  .strip__i { height: 12px; }
}

@media (max-width: 560px) {
  .pools { grid-template-columns: 1fr; }
  .mults { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wheel-cta { grid-template-columns: 1fr; }
}
