.coin-flip-stage {
  --coin-ink: #211f1d;
  --coin-muted: #7c6a5c;
  --coin-green: #06a353;
  --coin-coral: #f35b43;
  --coin-blue: #1f6487;
  --coin-gold: #e6ad58;
  --coin-line: rgba(151, 113, 78, 0.17);
  --coin-paper: #fbf8f3;
  --coin-display-font: "Avenir Next Condensed", "Arial Narrow", "Roboto Condensed",
    "SF Pro Display", ui-sans-serif, sans-serif;
  --coin-number-font: "Avenir Next Condensed", "SF Pro Display", "Arial Narrow",
    ui-sans-serif, sans-serif;
  --coin-flip-lift: -38px;
  display: block;
  width: 100%;
  max-width: 100%;
  color: var(--coin-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Display",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  container-name: coin-flip-stage;
  container-type: inline-size;
  isolation: isolate;
}

.coin-flip-stage *,
.coin-flip-stage *::before,
.coin-flip-stage *::after {
  box-sizing: border-box;
}

.coin-flip-stage [hidden] {
  display: none !important;
}

.coin-flip-stage button,
.coin-flip-stage input,
.coin-flip-stage select {
  font: inherit;
}

.coin-flip-layout {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(calc(100% - 48px), 1260px);
  margin: clamp(16px, 2.2vw, 28px) auto;
  padding: clamp(24px, 4.5cqi, 64px);
  border: 1px solid rgba(151, 105, 57, 0.34);
  border-radius: 36px;
  background: #f8f3ec;
  gap: clamp(18px, 2.4vw, 26px);
  box-shadow:
    0 34px 78px rgba(77, 53, 31, 0.16),
    0 8px 22px rgba(109, 73, 40, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    inset 0 0 0 7px rgba(255, 255, 255, 0.38);
}

.coin-flip-layout::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 7px;
  border: 1px solid rgba(185, 137, 79, 0.2);
  border-radius: 28px;
  pointer-events: none;
}

.coin-flip-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 94px;
}

.coin-flip-brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.coin-flip-logo {
  width: clamp(48px, 6vw, 64px);
  height: clamp(48px, 6vw, 64px);
  flex: 0 0 auto;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 7px 18px rgba(105, 71, 36, 0.13);
}

.coin-flip-wordmark {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.coin-flip-wordmark h1 {
  margin: 0;
  font-family: var(--coin-display-font);
  font-size: var(--merxi-stage-title, clamp(40px, 4vw, 44px));
  font-stretch: condensed;
  font-weight: 850;
  letter-spacing: 0.012em;
  line-height: 1;
  white-space: nowrap;
}

.coin-flip-wordmark small {
  color: #9b7243;
  font-family: var(--coin-number-font);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.16em;
  line-height: 1;
  white-space: nowrap;
}

.coin-flip-header-meta {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
  gap: 10px;
}

.coin-flip-host-accessory {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.authority-chip {
  justify-self: end;
  padding: 10px 14px;
  border: 1px solid rgba(225, 172, 91, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  color: #8e6736;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  box-shadow: 0 8px 28px rgba(109, 74, 39, 0.06);
}

.metrics-card,
.hero-card,
.play-card {
  border: 1px solid var(--coin-line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    0 10px 28px rgba(104, 75, 48, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
}

.metrics-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-radius: 24px;
  overflow: hidden;
}

.metrics-card > div {
  position: relative;
  display: grid;
  place-content: center;
  min-width: 0;
  padding: 24px 12px;
  text-align: center;
}

.metrics-card > div + div::before {
  content: "";
  position: absolute;
  inset: 22% auto 22% 0;
  width: 1px;
  background: var(--coin-line);
}

.metrics-card span {
  color: #6d5042;
  font-family: ui-serif, "Songti SC", "STSong", serif;
  font-size: clamp(15px, 2.6vw, 22px);
}

.metrics-card strong {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-family: var(--coin-number-font);
  font-size: clamp(25px, 5vw, 42px);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-weight: 600;
  letter-spacing: 0.012em;
  line-height: 1;
  white-space: nowrap;
}

.metrics-card strong.metric-green {
  color: var(--coin-green);
}

.metrics-card strong small {
  display: inline-grid;
  place-items: center;
  min-width: 25px;
  min-height: 25px;
  padding: 0 6px;
  border-radius: 999px;
  background: #f9ad0f;
  color: white;
  font-size: 13px;
  font-weight: 800;
}

.hero-card {
  position: relative;
  min-height: clamp(440px, 73vw, 610px);
  overflow: hidden;
  border-radius: 24px;
  background: #fbf8f1;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 220ms ease, opacity 220ms ease;
}

.hero-card.is-revealing .hero-art {
  opacity: 0.7;
  filter: saturate(0.82) brightness(1.04);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 250, 243, 0.05);
  pointer-events: none;
}

.hero-side {
  position: absolute;
  z-index: 4;
  top: 52%;
  display: grid;
  gap: 4px;
  width: 26%;
  text-align: center;
  transform: translateY(-50%);
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.95);
}

.hero-side-heads {
  left: 2.5%;
  color: var(--coin-coral);
}

.hero-side-tails {
  right: 2.5%;
  color: var(--coin-blue);
}

.hero-side strong {
  font-family: ui-serif, "Songti SC", serif;
  font-size: clamp(42px, 7.8vw, 66px);
  font-weight: 700;
  line-height: 1;
}

.hero-side span {
  font-size: clamp(10px, 2vw, 17px);
  font-weight: 750;
  letter-spacing: 0.02em;
}

.hero-progress {
  position: absolute;
  z-index: 5;
  top: 20px;
  left: 50%;
  display: flex;
  gap: 16px;
  padding: 9px 16px;
  border: 1px solid rgba(229, 174, 91, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #855f35;
  font-size: 13px;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  transform: translateX(-50%);
  box-shadow: 0 8px 22px rgba(103, 71, 37, 0.08);
}

.hero-prompt {
  position: absolute;
  z-index: 5;
  right: 8%;
  bottom: 23px;
  left: 8%;
  margin: 0;
  color: #805e3d;
  font-family: ui-serif, "Songti SC", serif;
  font-size: clamp(21px, 4vw, 32px);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  text-shadow: 0 2px 14px white;
}

.flip-scene {
  position: absolute;
  z-index: 3;
  bottom: 22%;
  left: 50%;
  width: min(60%, 360px);
  aspect-ratio: 1;
  perspective: 1050px;
  pointer-events: none;
  transform: translateX(-50%);
  filter: drop-shadow(0 26px 22px rgba(106, 69, 26, 0.22));
}

.flip-coin {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: opacity 120ms ease;
}

.coin-neutral {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 120ms ease;
}

.flip-scene[data-flip-state="IDLE"] .coin-neutral {
  opacity: 1;
}

.flip-scene[data-flip-state="IDLE"] .flip-coin {
  opacity: 0;
}

.coin-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  backface-visibility: hidden;
}

.coin-face-back {
  transform: rotateY(180deg);
}

.play-card {
  display: grid;
  gap: 20px;
  padding: clamp(18px, 3.2vw, 30px);
  border-radius: 24px;
}

.stake-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 106px 106px;
  gap: 10px;
}

.stake-field,
.stake-row > button {
  min-height: 96px;
  border: 1px solid var(--coin-line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
}

.stake-field {
  display: grid;
  align-content: center;
  gap: 6px;
  padding: 12px 20px;
}

.stake-field > span:first-child {
  color: #5d493c;
  font-size: 15px;
}

.stake-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stake-input-wrap input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--coin-ink);
  font-family: var(--coin-number-font);
  font-size: clamp(24px, 4vw, 34px);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-weight: 620;
}

.stake-input-wrap img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.stake-row > button {
  color: #252321;
  font-family: var(--coin-number-font);
  font-size: 28px;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, background-color 160ms ease;
}

.stake-row > button:hover:not(:disabled) {
  border-color: rgba(231, 165, 78, 0.58);
  background: #fffaf3;
  transform: translateY(-2px);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.choice-card {
  position: relative;
  display: grid;
  grid-template-columns: 30% minmax(0, 1fr);
  align-items: center;
  min-height: 142px;
  overflow: hidden;
  border: 1.5px solid rgba(91, 126, 151, 0.35);
  border-radius: 20px;
  background: rgba(247, 250, 252, 0.72);
  color: var(--coin-blue);
  cursor: pointer;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.choice-card:hover:not(:disabled) {
  transform: translateY(-2px);
}

.choice-card img {
  width: 128%;
  max-height: 130px;
  margin-left: -24%;
  object-fit: contain;
  opacity: 0.26;
}

.choice-card span {
  display: grid;
  min-width: 0;
  justify-items: start;
  padding-right: 12px;
}

.choice-card strong {
  font-family: ui-serif, "Songti SC", serif;
  max-width: 100%;
  font-size: clamp(30px, 4.5vw, 44px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.choice-card small {
  margin-top: 7px;
  font-size: clamp(10px, 1.7vw, 16px);
  font-weight: 750;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.coin-flip-stage[lang="en-US"] .choice-card strong,
.coin-flip-stage[lang="hi-IN"] .choice-card strong,
.coin-flip-stage[lang="es-ES"] .choice-card strong {
  font-family: var(--coin-display-font);
  font-size: clamp(22px, 3.2vw, 32px);
  line-height: 1.06;
}

.choice-heads {
  color: var(--coin-coral);
}

.choice-card.is-selected {
  border-color: #ff6848;
  background: rgba(255, 239, 232, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 104, 72, 0.08), 0 12px 30px rgba(232, 91, 56, 0.08);
}

.choice-tails.is-selected {
  border-color: #39779b;
  background: rgba(236, 246, 251, 0.88);
  box-shadow: inset 0 0 0 1px rgba(57, 119, 155, 0.08), 0 12px 30px rgba(32, 94, 130, 0.08);
}

.selected-copy {
  position: absolute;
  top: 12px;
  right: 12px;
  display: none;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f64d62;
  color: white;
  font-size: 10px;
}

.choice-card.is-selected .selected-copy {
  display: block;
}

.metrics-card-inline {
  box-shadow: none;
}

.metrics-card-inline > div {
  padding-block: 18px;
}

.metrics-card-inline span {
  font-size: clamp(13px, 2vw, 18px);
}

.metrics-card-inline strong {
  margin-top: 8px;
  font-size: clamp(22px, 4vw, 34px);
}

.mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 5px;
  border: 1px solid rgba(139, 105, 76, 0.11);
  border-radius: 999px;
  background: #f6f2ed;
}

.mode-tabs button {
  min-height: 68px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #5b5652;
  font-size: clamp(16px, 2.8vw, 23px);
  cursor: pointer;
}

.mode-tabs button.is-selected {
  background: white;
  color: #f14858;
  font-weight: 720;
  box-shadow: 0 8px 24px rgba(93, 63, 41, 0.08);
}

.auto-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(216, 163, 88, 0.25);
  border-radius: 18px;
  background: #fffbf5;
}

.auto-panel label {
  display: grid;
  gap: 7px;
  color: #725b46;
  font-size: 13px;
}

.auto-panel select {
  width: 100%;
  min-height: 45px;
  padding: 0 12px;
  border: 1px solid rgba(151, 113, 78, 0.22);
  border-radius: 12px;
  background: white;
  color: #332c27;
}

.auto-panel p {
  grid-column: 1 / -1;
  margin: 0;
  color: #9a806a;
  font-size: 12px;
  line-height: 1.5;
}

.primary-action,
.cashout-action {
  width: 100%;
  border: 0;
  border-radius: 26px;
  cursor: pointer;
}

.primary-action {
  display: grid;
  place-content: center;
  min-height: 126px;
  padding: 18px;
  background-color: #ff7150;
  background-image: url("./assets/action-gradient.png");
  background-position: center;
  background-size: cover;
  color: white;
  box-shadow: 0 16px 30px rgba(245, 89, 67, 0.18);
  transition: filter 160ms ease, transform 160ms ease;
}

.primary-action:hover:not(:disabled) {
  filter: saturate(1.07) brightness(1.02);
  transform: translateY(-2px);
}

.primary-action strong {
  font-family: ui-serif, "Songti SC", serif;
  font-size: clamp(26px, 4.8vw, 40px);
  font-weight: 800;
  letter-spacing: 0.03em;
}

.primary-action span {
  margin-top: 7px;
  font-size: clamp(13px, 2.5vw, 20px);
}

.cashout-action {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  min-height: 96px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(194, 141, 58, 0.42);
  background: #fffdf8;
  color: #174f3a;
  text-align: left;
  box-shadow:
    0 14px 30px rgba(96, 65, 31, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.cashout-action:hover:not(:disabled) {
  border-color: rgba(10, 143, 84, 0.56);
  box-shadow:
    0 18px 38px rgba(28, 115, 75, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
  transform: translateY(-2px);
}

.cashout-action:active:not(:disabled) {
  transform: translateY(0);
}

.cashout-copy {
  display: grid;
  min-width: 0;
  align-content: center;
  gap: 4px;
  padding: 13px 18px;
}

.cashout-eyebrow {
  overflow: hidden;
  color: #8d6233;
  font-family: var(--coin-number-font);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cashout-value-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
}

.cashout-value {
  min-width: 0;
  color: #066b3f;
  font-family: var(--coin-number-font);
  font-size: clamp(34px, 5.5cqi, 42px);
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
  font-weight: 720;
  letter-spacing: -0.015em;
  line-height: 0.94;
  white-space: nowrap;
}

.cashout-action.has-compact-amount .cashout-value {
  font-size: clamp(26px, 4.3cqi, 32px);
}

.cashout-action.has-micro-amount .cashout-value {
  font-size: clamp(20px, 3.4cqi, 25px);
}

.cashout-token {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
  object-fit: contain;
}

.cashout-hint {
  overflow: hidden;
  color: #736354;
  font-size: 10px;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cashout-cta {
  display: grid;
  min-width: 126px;
  align-content: center;
  justify-items: center;
  gap: 4px;
  padding: 14px 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.28);
  background: #067849;
  color: white;
  text-align: center;
  box-shadow: inset 1px 0 0 rgba(4, 99, 58, 0.18);
}

.cashout-cta strong {
  font-family: ui-serif, "Songti SC", serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.cashout-cta small {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.03em;
  line-height: 1.1;
  white-space: nowrap;
}

.cashout-action:disabled .cashout-cta {
  background: #668678;
}

.boundary-note {
  margin: -3px 0 0;
  color: #a18f82;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
}

.coin-flip-stage button:focus-visible,
.coin-flip-stage input:focus-visible,
.coin-flip-stage select:focus-visible {
  outline: 3px solid rgba(34, 117, 160, 0.28);
  outline-offset: 3px;
}

.coin-flip-stage button:disabled,
.coin-flip-stage input:disabled,
.coin-flip-stage select:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.is-pending .hero-card {
  box-shadow: 0 0 0 2px rgba(226, 167, 78, 0.12), 0 18px 50px rgba(181, 115, 42, 0.12);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@container coin-flip-stage (min-width: 980px) {
  .coin-flip-layout {
    grid-template-columns: minmax(0, 1.08fr) minmax(430px, 0.92fr);
    align-items: start;
  }

  .coin-flip-header,
  .metrics-card-top {
    grid-column: 1 / -1;
  }

  .hero-card {
    position: sticky;
    top: 24px;
    min-height: 650px;
  }

  .flip-scene {
    bottom: 22%;
    width: min(68%, 420px);
    perspective: 1200px;
  }

  .play-card {
    min-height: 650px;
  }

  .metrics-card-top > div {
    padding-block: 26px;
  }
}

@container coin-flip-stage (max-width: 720px) {
  .flip-scene {
    --coin-flip-lift: -28px;
  }

  .coin-flip-layout {
    width: calc(100% - 8px);
    margin: 4px auto;
    padding: 6px;
    gap: 9px;
    border-radius: 25px;
    box-shadow:
      0 18px 42px rgba(77, 53, 31, 0.14),
      0 5px 14px rgba(109, 73, 40, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.96),
      inset 0 0 0 4px rgba(255, 255, 255, 0.4);
  }

  .coin-flip-layout::before {
    inset: 4px;
    border-radius: 19px;
  }

  .coin-flip-header {
    align-items: flex-start;
    min-height: 82px;
    padding: 7px 8px 4px;
    gap: 8px;
  }

  .coin-flip-brand {
    gap: 8px;
  }

  .coin-flip-logo {
    width: 40px;
    height: 40px;
  }

  .coin-flip-wordmark {
    gap: 3px;
  }

  .coin-flip-wordmark h1 {
    font-size: var(--merxi-stage-title-mobile, 28px);
  }

  .coin-flip-wordmark small {
    font-size: 7px;
    letter-spacing: 0.1em;
  }

  .coin-flip-header-meta {
    flex: 0 1 auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
  }

  .authority-chip {
    max-width: 128px;
    padding: 4px 8px;
    font-size: 8px;
    line-height: 1.25;
    text-align: center;
  }

  .metrics-card {
    border-radius: 18px;
  }

  .metrics-card > div {
    padding: 11px 4px;
  }

  .metrics-card span {
    font-size: 13px;
  }

  .metrics-card strong {
    gap: 4px;
    margin-top: 6px;
    font-size: clamp(20px, 6.8vw, 27px);
  }

  .metrics-card strong small {
    min-width: 20px;
    min-height: 20px;
    padding: 0 4px;
    font-size: 10px;
  }

  .hero-card {
    min-height: 304px;
    border-radius: 18px;
  }

  .hero-art {
    object-position: center;
  }

  .hero-side {
    top: 56%;
    width: 29%;
  }

  .hero-side strong {
    font-size: 31px;
  }

  .hero-side span {
    font-size: 9px;
  }

  .hero-progress {
    top: 9px;
    gap: 10px;
    padding: 5px 9px;
    font-size: 9px;
  }

  .hero-prompt {
    bottom: 12px;
    font-size: 17px;
  }

  .flip-scene {
    bottom: 20%;
    width: min(58%, 216px);
    perspective: 850px;
  }

  .play-card {
    gap: 8px;
    padding: 10px;
    border-radius: 18px;
  }

  .stake-row {
    grid-template-columns: minmax(0, 1fr) 62px 62px;
    gap: 7px;
  }

  .stake-field,
  .stake-row > button {
    min-height: 58px;
    border-radius: 15px;
  }

  .stake-field {
    padding: 5px 10px;
  }

  .stake-field > span:first-child {
    font-size: 9px;
  }

  .stake-input-wrap input {
    font-size: 20px;
  }

  .stake-input-wrap img {
    width: 21px;
    height: 21px;
  }

  .stake-row > button {
    font-size: 22px;
  }

  .choice-grid {
    gap: 8px;
  }

  .choice-card {
    grid-template-columns: 32% minmax(0, 1fr);
    min-height: 74px;
    border-radius: 15px;
  }

  .choice-card img {
    max-height: 72px;
  }

  .choice-card strong {
    font-size: 26px;
  }

  .choice-card small {
    font-size: 9px;
  }

  .coin-flip-stage[lang="en-US"] .choice-card strong,
  .coin-flip-stage[lang="hi-IN"] .choice-card strong,
  .coin-flip-stage[lang="es-ES"] .choice-card strong { font-size: 20px; }

  .selected-copy {
    top: 7px;
    right: 7px;
    padding: 3px 6px;
    font-size: 8px;
  }

  .metrics-card-inline > div {
    padding-block: 9px;
  }

  .metrics-card-inline span {
    font-size: 11px;
  }

  .metrics-card-inline strong {
    font-size: 19px;
  }

  .mode-tabs button {
    min-height: 44px;
    font-size: 14px;
  }

  .auto-panel {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px;
  }

  .auto-panel p {
    grid-column: 1;
  }

  .primary-action {
    min-height: 68px;
    padding: 10px;
    border-radius: 18px;
  }

  .primary-action strong {
    font-size: 24px;
  }

  .primary-action span {
    margin-top: 3px;
    font-size: 11px;
  }

  .cashout-action {
    min-height: 84px;
    border-radius: 18px;
  }

  .cashout-copy {
    gap: 3px;
    padding: 10px 12px;
  }

  .cashout-eyebrow {
    font-size: 8px;
    letter-spacing: 0.08em;
  }

  .cashout-value {
    font-size: clamp(29px, 8.4cqi, 36px);
  }

  .cashout-action.has-compact-amount .cashout-value {
    font-size: clamp(23px, 6.5cqi, 28px);
  }

  .cashout-action.has-micro-amount .cashout-value {
    font-size: clamp(17px, 5cqi, 21px);
  }

  .cashout-token {
    width: 22px;
    height: 22px;
  }

  .cashout-hint {
    font-size: 8px;
  }

  .cashout-cta {
    min-width: 104px;
    gap: 3px;
    padding: 10px 12px;
  }

  .cashout-cta strong {
    font-size: 18px;
  }

  .cashout-cta small {
    font-size: 7px;
  }
}

@container coin-flip-stage (max-width: 360px) {
  .coin-flip-header {
    padding-inline: 5px;
  }

  .coin-flip-logo {
    width: 34px;
    height: 34px;
  }

  .coin-flip-wordmark h1 {
    font-size: 26px;
  }

  .coin-flip-wordmark small {
    display: none;
  }

  .cashout-action {
    grid-template-columns: minmax(0, 1fr) 82px;
  }

  .cashout-copy {
    padding-inline: 9px;
  }

  .cashout-hint {
    display: none;
  }

  .cashout-cta {
    min-width: 82px;
    padding-inline: 8px;
  }

  .cashout-cta strong {
    font-size: 16px;
  }

  .cashout-cta small {
    font-size: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .coin-flip-stage *,
  .coin-flip-stage *::before,
  .coin-flip-stage *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
