/* ═══════════════════════════════════════════════════════════
   Sportsbook Odds Button – All States
   Nodes: 292:535 (Unselected) · 292:619 (Hover) · 292:575 (Selected)
══════════════════════════════════════════════════════════════ */

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

body {
  background-color: #1a0a2e;
  font-family: "Inter", sans-serif;
}


/* ─────────────────────────────────────────
   Page layout
───────────────────────────────────────── */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 48px;
  padding: 60px 40px;
}

.page__title {
  color: #f9d4f6;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0.04em;
  text-align: center;
}

.page__subtitle {
  color: #b2979e;
  font-size: 18px;
  font-weight: 400;
  text-align: center;
  margin-top: 12px;
}

.page__hint {
  color: #7a6a7e;
  font-size: 14px;
  text-align: center;
  margin-top: -32px;
}

/* States reference grid */
.states-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-end;
  justify-content: center;
}

.state-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.state-label {
  color: #7a6a7e;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* Interactive demo row */
.demo-row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
}

/* Hint text: show desktop copy by default, swap on touch devices */
.hint--mobile  { display: none; }
.hint--desktop { display: inline; }

@media (hover: none) and (pointer: coarse) {
  /* Touch-only devices (phones / tablets) */
  .hint--desktop { display: none; }
  .hint--mobile  { display: inline; }
}


/* ─────────────────────────────────────────
   Odds Button – base
   Figma size: 546 × 117 px
───────────────────────────────────────── */
.odds-btn {
  width: 546px;
  height: 117px;
  border-radius: 23px;
  border-width: 5px;
  border-style: solid;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  /* smooth state transitions */
  transition:
    background 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease;
}

.odds-btn__text {
  font-family: "Inter", sans-serif;
  font-weight: 400;
  font-style: normal;
  font-size: 47px;
  line-height: normal;
  white-space: nowrap;
  /* colour set per state */
  color: inherit;
  transition: color 0.18s ease;
}


/* ─────────────────────────────────────────
   STATE 1 – Unselected  (node 292:535)
   bg: #3b3452  border: #b2979e  text: #b2979e
───────────────────────────────────────── */
.odds-btn--unselected {
  background: #3b3452;
  box-shadow: none;
  border-color: #b2979e;
  color: #b2979e;
}


/* ─────────────────────────────────────────
   STATE 2 – Hover  (node 292:619 / 292:620)
   Figma gradient stops extend far outside the element bounds
   (107% and 209%) producing a soft warm edge bloom — best
   reproduced in CSS with inset box-shadow, not a gradient.
   border: #be9bbb  text: #ffeed7
───────────────────────────────────────── */
.odds-btn--hover {
  background: #3b3452;
  box-shadow:
    /* outer border glow */
    0 0 18px 5px rgba(190, 155, 187, 0.55),
    /* inset warm-edge bloom */
    inset 0  30px 40px -12px rgba(255, 252, 230, 0.28),
    inset 0 -30px 40px -12px rgba(255, 252, 230, 0.22),
    inset  20px 0 40px -20px rgba(255, 252, 230, 0.10),
    inset -20px 0 40px -20px rgba(255, 252, 230, 0.10);
  border-color: #be9bbb;
  color: #ffeed7;
}


/* ─────────────────────────────────────────
   STATE 3 – Selected / Active  (node 292:575)
   bg: purple gradient  border: #be9bbb  text: #f9d4f6
───────────────────────────────────────── */
.odds-btn--selected {
  background: linear-gradient(
    to right,
    #2c0d4a 11.538%,
    #6636ab 50.744%,
    #2c0c57 88.143%
  );
  box-shadow: 0 0 22px 7px rgba(190, 155, 187, 0.65);
  border-color: #be9bbb;
  color: #f9d4f6;
}


/* ─────────────────────────────────────────
   Interactive button – state transitions
   applied to .odds-btn--interactive
───────────────────────────────────────── */
.odds-btn--interactive:hover {
  background: #3b3452;
  box-shadow:
    /* outer border glow */
    0 0 18px 5px rgba(190, 155, 187, 0.55),
    /* inset warm-edge bloom */
    inset 0  30px 40px -12px rgba(255, 252, 230, 0.28),
    inset 0 -30px 40px -12px rgba(255, 252, 230, 0.22),
    inset  20px 0 40px -20px rgba(255, 252, 230, 0.10),
    inset -20px 0 40px -20px rgba(255, 252, 230, 0.10);
  border-color: #be9bbb;
  color: #ffeed7;
}

.odds-btn--interactive:active,
.odds-btn--interactive.is-selected {
  background: linear-gradient(
    to right,
    #2c0d4a 11.538%,
    #6636ab 50.744%,
    #2c0c57 88.143%
  );
  box-shadow: 0 0 22px 7px rgba(190, 155, 187, 0.65);
  border-color: #be9bbb;
  color: #f9d4f6;
}

/* Touch-hover: applied on touchstart to show hover state on mobile */
.odds-btn--interactive.touch-hover {
  background: #3b3452;
  box-shadow:
    0 0 18px 5px rgba(190, 155, 187, 0.55),
    inset 0  30px 40px -12px rgba(255, 252, 230, 0.28),
    inset 0 -30px 40px -12px rgba(255, 252, 230, 0.22),
    inset  20px 0 40px -20px rgba(255, 252, 230, 0.10),
    inset -20px 0 40px -20px rgba(255, 252, 230, 0.10);
  border-color: #be9bbb;
  color: #ffeed7;
}


/* ─────────────────────────────────────────
   Responsive – Tablet  (≤ 700 px)
───────────────────────────────────────── */
@media (max-width: 700px) {
  .page {
    padding: 40px 24px;
    gap: 36px;
  }

  .page__title    { font-size: 22px; }
  .page__subtitle { font-size: 16px; }

  .states-grid { gap: 24px; }
  .demo-row    { gap: 18px; }

  .odds-btn {
    width: min(480px, calc(100vw - 48px));
    height: 100px;
    border-radius: 19px;
    border-width: 4px;
  }

  .odds-btn__text { font-size: 40px; }
}


/* ─────────────────────────────────────────
   Responsive – Mobile  (≤ 480 px)
───────────────────────────────────────── */
@media (max-width: 480px) {
  .page {
    padding: 28px 20px;
    gap: 22px;
    justify-content: flex-start;
  }

  .page__title    { font-size: 18px; }
  .page__subtitle { font-size: 14px; }
  .page__hint     { font-size: 12px; margin-top: -16px; }

  .states-grid { gap: 18px; }
  .demo-row    { gap: 14px; }

  .odds-btn {
    /* fluid: fills screen minus 40 px side padding */
    width: calc(100vw - 40px);
    height: 74px;
    border-radius: 14px;
    border-width: 3px;
  }

  .odds-btn__text { font-size: 28px; }
}
