/* ===== DECK v42 — presentation only (zero mechanics changes) =====
   1) Recent-cards strip sits higher, on the balance row but never under it.
   2) Bottom bet panel refined to real Stake spec (colors, radii, weights).
   3) Overall felt / typography polish.
*/

:root {
  --stake-page: #1a2c38;
  --stake-panel: #213743;
  --stake-well: #0f212e;
  --stake-elev: #2f4553;
  --stake-line: #2f4553;
  --stake-blue: #1a75ff;
  --stake-blue-hi: #4391ff;
  --stake-text: #ffffff;
  --stake-dim: #b1bad3;
}

/* ---------------- 1) RECENT CARDS ---------------- */
section[class*="bg-[#0d1e2a]"] > div[class*="z-20"][class*="flex-row-reverse"] {
  top: 0.85rem !important;
  left: auto !important;
  right: 5.6rem !important;
  max-width: calc(100% - 12.5rem) !important;
  z-index: 24 !important;
  gap: 5px !important;
  pointer-events: none !important;
}
section[class*="bg-[#0d1e2a]"] > div[class*="z-20"][class*="flex-row-reverse"] > * {
  transform: scale(0.86) !important;
  transform-origin: top right !important;
  border-radius: 5px !important;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45) !important;
}

/* balance chip — Stake style, always above the strip */
section[class*="bg-[#0d1e2a]"] > div:first-child:not([class*="perspective"]) {
  z-index: 26 !important;
}

/* ---------------- 2) FELT ---------------- */
main[class*="bg-[#22394a]"] {
  background: var(--stake-page) !important;
}
section[class*="bg-[#0d1e2a]"] {
  background:
    radial-gradient(120% 90% at 50% 8%, #16303f 0%, #0f212e 62%, #0c1b25 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

/* ---------------- 3) BET PANEL ---------------- */
section[class*="linear-gradient(180deg,#2f4f61"] {
  background: var(--stake-panel) !important;
  gap: 10px !important;
  padding: 12px !important;
  border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
}

/* segmented STANDARD | SIDE BET */
section[class*="linear-gradient(180deg,#2f4f61"] > div[class*="grid-cols-2"]:not(:has(input)):first-child {
  background: var(--stake-well) !important;
  border-radius: 999px !important;
  padding: 4px !important;
  gap: 4px !important;
  border: none !important;
}
section[class*="linear-gradient(180deg,#2f4f61"] > div[class*="grid-cols-2"]:not(:has(input)):first-child > button {
  border-radius: 999px !important;
  padding: 9px 0 !important;
  font-size: 12.5px !important;
  letter-spacing: 0.06em !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  border: none !important;
  --tw-ring-color: transparent !important;
}

/* market buttons (EVEN / ODD / RED / BLACK) */
section[class*="linear-gradient(180deg,#2f4f61"] > div[class*="grid-cols-2"]:not(:has(input)):not(:first-child) > button,
section[class*="linear-gradient(180deg,#2f4f61"] > div[class*="grid-cols-[1fr_1fr_auto]"] > button {
  background: var(--stake-elev) !important;
  border: none !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.25) !important;
  padding: 9px 0 !important;
  transition:
    background 0.15s ease,
    transform 0.08s ease !important;
}
section[class*="linear-gradient(180deg,#2f4f61"] > div[class*="grid-cols-2"]:not(:has(input)):not(:first-child) > button:active,
section[class*="linear-gradient(180deg,#2f4f61"] > div[class*="grid-cols-[1fr_1fr_auto]"] > button:active {
  transform: translateY(1px) !important;
}
/* selected state keeps whatever the app sets, just cleaner */
section[class*="linear-gradient(180deg,#2f4f61"] button[class*="bg-[#1a6dff]"],
section[class*="linear-gradient(180deg,#2f4f61"] button[class*="bg-[#2a7fff]"],
section[class*="linear-gradient(180deg,#2f4f61"] button[class*="bg-[#3b82f6]"] {
  background: var(--stake-blue) !important;
  box-shadow: 0 2px 0 #0d54b8 !important;
}

/* multiplier chip */
section[class*="linear-gradient(180deg,#2f4f61"] > div[class*="grid-cols-[1fr_1fr_auto]"] > div,
section[class*="linear-gradient(180deg,#2f4f61"] div[class*="bg-[#08131c]"] {
  background: var(--stake-well) !important;
  border-radius: 6px !important;
  border: none !important;
  color: var(--stake-text) !important;
}

/* main CTA */
section[class*="linear-gradient(180deg,#2f4f61"] > button[class*="w-full"] {
  background: var(--stake-blue) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 4px !important;
  min-height: 48px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  box-shadow: 0 2px 0 #0d54b8 !important;
  transition:
    background 0.15s ease,
    transform 0.08s ease !important;
}
section[class*="linear-gradient(180deg,#2f4f61"] > button[class*="w-full"]:hover {
  background: var(--stake-blue-hi) !important;
}
section[class*="linear-gradient(180deg,#2f4f61"] > button[class*="w-full"]:active {
  transform: translateY(1px) !important;
  box-shadow: 0 1px 0 #0f5cba !important;
}
section[class*="linear-gradient(180deg,#2f4f61"] > button[class*="w-full"]:disabled {
  background: var(--stake-elev) !important;
  color: rgba(255, 255, 255, 0.45) !important;
  box-shadow: none !important;
}

/* labels */
section[class*="linear-gradient(180deg,#2f4f61"] [class*="text-[10.5px]"],
section[class*="linear-gradient(180deg,#2f4f61"] [class*="text-[11px]"] {
  color: var(--stake-dim) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

/* input wells */
section[class*="linear-gradient(180deg,#2f4f61"] div:has(> input),
section[class*="linear-gradient(180deg,#2f4f61"] div[class*="bg-[#0b1a24]/80"] {
  background: var(--stake-well) !important;
  border: 1px solid var(--stake-line) !important;
  border-radius: 4px !important;
}
section[class*="linear-gradient(180deg,#2f4f61"] div:has(> input):focus-within {
  border-color: #557086 !important;
}
section[class*="linear-gradient(180deg,#2f4f61"] input {
  color: #fff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
}
/* ½ | 2× group */
section[class*="linear-gradient(180deg,#2f4f61"] button:is([class*="px-2.5"])[class*="text-[12px]"] {
  background: var(--stake-elev) !important;
  border: none !important;
  border-radius: 0 !important;
  color: #fff !important;
  font-weight: 600 !important;
}

/* Manual | Auto pill */
section[class*="linear-gradient(180deg,#2f4f61"] > div[class*="grid-cols-2"]:not(:has(input)):has(> button[class*="rounded-lg"]) {
  background: var(--stake-well) !important;
}
section[class*="linear-gradient(180deg,#2f4f61"] > div[class*="grid-cols-2"]:not(:has(input)) > button[class*="rounded-lg"] {
  font-weight: 600 !important;
  color: var(--stake-dim) !important;
}
section[class*="linear-gradient(180deg,#2f4f61"] > div[class*="grid-cols-2"]:not(:has(input)) > button[class*="rounded-lg"]:first-child {
  color: #fff !important;
}

/* Fairness strip */
section[class*="linear-gradient(180deg,#2f4f61"] > div[class*="items-center"][class*="rounded-lg"] {
  background: var(--stake-well) !important;
  border-radius: 6px !important;
  border: none !important;
}
section[class*="linear-gradient(180deg,#2f4f61"] button[class*="bg-[#3a5568]"] {
  background: var(--stake-elev) !important;
  border: none !important;
  border-radius: 4px !important;
  font-weight: 600 !important;
}
section[class*="linear-gradient(180deg,#2f4f61"] svg {
  color: var(--stake-dim) !important;
}

/* ---------- v42b: selected market / segment states ---------- */
main section[class*="linear-gradient(180deg,#2f4f61"] button[class*="#2f93f5"],
main section[class*="linear-gradient(180deg,#2f4f61"] button[class*="#3a9bff"] {
  background: var(--stake-blue) !important;
  background-image: none !important;
  color: #fff !important;
  box-shadow: 0 2px 0 #0d54b8 !important;
  --tw-ring-color: transparent !important;
}
main section[class*="linear-gradient(180deg,#2f4f61"] button[class*="#2f93f5"]:hover,
main section[class*="linear-gradient(180deg,#2f4f61"] button[class*="#3a9bff"]:hover {
  background: var(--stake-blue-hi) !important;
  filter: none !important;
}

/* market typography: tighter, cleaner Stake-like */
main section[class*="linear-gradient(180deg,#2f4f61"] div[class*="grid-cols-2"] > button[class*="tracking-[0.16em]"],
main section[class*="linear-gradient(180deg,#2f4f61"] div[class*="grid-cols-[1fr_1fr_auto]"] > button {
  letter-spacing: 0.07em !important;
  font-weight: 700 !important;
}
main section[class*="linear-gradient(180deg,#2f4f61"] div[class*="grid-cols-2"] > button[class*="rounded-full"] {
  letter-spacing: 0.09em !important;
}
