:root {
  --color-background: #f3f5f8;
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;
  --color-primary: #e62129;
  --color-primary-dark: #bc1620;
  --color-primary-soft: #fff0f1;
  --color-red: var(--color-primary);
  --color-red-dark: var(--color-primary-dark);
  --color-accent: #c47a00;
  --color-accent-dark: #9f5f00;
  --color-accent-soft: #fff8e6;
  --color-text: #1f2937;
  --color-muted-text: #667085;
  --color-muted-strong: #475467;
  --color-border: #e5e7eb;
  --color-border-strong: #d0d5dd;
  --color-success: #16794c;
  --color-success-dark: #0f5f3b;
  --color-success-soft: #eef7f2;
  --color-danger: #bc1620;
  --color-info: #9f5f00;
  --game-red-glow: rgba(230, 33, 41, 0.18);
  --game-gold-glow: rgba(196, 122, 0, 0.18);
  --arcade-rail: linear-gradient(90deg, #e62129 0%, #f4bd35 48%, #e62129 100%);
  --arcade-red-shadow: rgba(230, 33, 41, 0.24);
  --arcade-prize-shadow: rgba(196, 122, 0, 0.18);
  --radius-small: 16px;
  --radius-medium: 22px;
  --radius-large: 28px;
  --shadow-card: 0 18px 48px rgba(16, 24, 40, 0.12);
  --font-family: "Inter", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --header-height: 132px;
  --header-card-overlap: 36px;
  --footer-height: 88px;
  --push-opt-in-tray-space: 0px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

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

html {
  width: 100%;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--color-background);
}

body {
  width: 100%;
  min-width: 320px;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--color-text);
  background: var(--color-background);
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.4;
  text-rendering: optimizeLegibility;
}

body.is-boot-loading {
  background: #14151a;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  border: 0;
}

.portal-page {
  width: 100%;
  max-width: 520px;
  min-height: 100svh;
  margin: 0 auto;
  padding-bottom: calc(var(--footer-height) + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(255, 240, 241, 0.18) 0%, transparent 260px),
    var(--color-background);
}

body.is-boot-loading .portal-page {
  opacity: 0;
  pointer-events: none;
}

.game-boot-splash {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  justify-items: center;
  overflow: hidden;
  color: #ffffff;
  background: #14151a;
  transition:
    opacity 280ms ease,
    visibility 280ms ease;
}

body:not(.is-boot-loading) .game-boot-splash {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.game-boot-splash__frame {
  width: min(100%, 520px);
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr;
  padding: calc(24px + env(safe-area-inset-top)) 24px calc(28px + env(safe-area-inset-bottom));
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at calc(50% + 178px) 84px, rgba(255, 255, 255, 0.16), transparent 92px),
    radial-gradient(circle at calc(50% - 214px) 168px, rgba(255, 255, 255, 0.1), transparent 88px),
    linear-gradient(180deg, #f21f28 0%, #e62129 56%, #bc1620 100%);
}

.game-boot-splash__frame::before,
.game-boot-splash__frame::after {
  content: "";
  position: absolute;
  right: 24px;
  left: 24px;
  height: 4px;
  border-radius: 999px;
  background: var(--arcade-rail);
  opacity: 0.46;
  pointer-events: none;
}

.game-boot-splash__frame::before {
  top: 156px;
  box-shadow: 0 0 20px rgba(244, 189, 53, 0.28);
}

.game-boot-splash__frame::after {
  right: 56px;
  bottom: 42px;
  left: 56px;
  opacity: 0.18;
}

.game-boot-splash__brand {
  width: 230px;
  height: 118px;
  max-width: 70vw;
  display: block;
  position: relative;
  z-index: 1;
  margin-left: -5px;
  transform: rotate(-2deg);
  transform-origin: left center;
}

.game-boot-splash__brand .portal-brand-logo__front {
  fill: url("#boot-splash-brand-gloss");
}

.game-boot-splash__content {
  align-self: center;
  justify-self: center;
  width: min(100%, 380px);
  display: grid;
  justify-items: center;
  gap: 12px;
  padding-bottom: 44px;
  position: relative;
  z-index: 1;
  text-align: center;
}

.game-boot-splash__coin {
  width: 74px;
  height: 74px;
  border: 5px solid rgba(255, 247, 214, 0.96);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #fff9d5 0 16%, transparent 17%),
    radial-gradient(circle at 50% 52%, #ffe172 0 35%, #f8b51f 36% 68%, #d88404 69% 100%);
  box-shadow:
    inset 0 -8px 0 rgba(140, 78, 0, 0.22),
    0 0 0 10px rgba(255, 255, 255, 0.12),
    0 20px 36px rgba(92, 0, 22, 0.28),
    0 0 36px rgba(255, 217, 95, 0.46);
  animation: boot-splash-coin 1050ms ease-in-out infinite;
}

.game-boot-splash h1 {
  margin: 8px 0 0;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 950;
  text-shadow: 0 3px 0 rgba(116, 0, 15, 0.2);
}

.game-boot-splash p {
  max-width: 280px;
  margin: 0;
  color: rgba(255, 247, 247, 0.88);
  font-size: 15px;
  line-height: 1.36;
  font-weight: 760;
}

.game-boot-splash__dots {
  display: inline-flex;
  gap: 8px;
  margin-top: 4px;
}

.game-boot-splash__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ffe172;
  box-shadow:
    0 2px 0 rgba(116, 0, 15, 0.18),
    0 0 12px rgba(255, 225, 112, 0.62);
  animation: boot-splash-dot 900ms ease-in-out infinite;
}

.game-boot-splash__dots span:nth-child(2) {
  animation-delay: 130ms;
}

.game-boot-splash__dots span:nth-child(3) {
  animation-delay: 260ms;
}

.portal-page.is-game-focus {
  --header-height: 108px;
  --header-card-overlap: 24px;
  --game-focus-card-height: calc(100svh - var(--header-height) + var(--header-card-overlap) - var(--space-3) - env(safe-area-inset-bottom));
  --game-card-play-min-height: 420px;
  --game-card-play-max-height: 760px;
  --game-stage-play-min-height: 260px;
  padding-bottom: env(safe-area-inset-bottom);
}

.portal-page.is-result-mode {
  --header-height: 108px;
  --header-card-overlap: 24px;
}

@supports (height: 100dvh) {
  .portal-page.is-game-focus {
    --game-focus-card-height: calc(100dvh - var(--header-height) + var(--header-card-overlap) - var(--space-3) - env(safe-area-inset-bottom));
  }
}

.portal-page.is-game-focus .portal-header,
.portal-page.is-result-mode .portal-header {
  min-height: calc(var(--header-height) + env(safe-area-inset-top));
  padding-top: calc(14px + env(safe-area-inset-top));
  padding-bottom: 30px;
}

.portal-page.is-game-focus .portal-header-main,
.portal-page.is-result-mode .portal-header-main {
  min-height: 66px;
}

.portal-page.is-game-focus .portal-main {
  gap: var(--space-3);
  margin-top: calc(var(--header-card-overlap) * -1);
  padding: 0 var(--space-3) var(--space-3);
}

.portal-page.is-game-focus .coin-summary-card,
.portal-page.is-game-focus .reward-progress-card {
  display: none;
}

.portal-page.is-game-focus .mini-game-card {
  border-color: rgba(255, 214, 214, 0.96);
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow:
    0 20px 44px rgba(16, 24, 40, 0.16),
    0 0 0 7px rgba(255, 255, 255, 0.38),
    0 0 0 12px rgba(230, 33, 41, 0.12);
}

.portal-page.is-game-focus .mini-game-card:has(.is-countdown),
.portal-page.is-game-focus .mini-game-card:has(.is-playing),
.portal-page.is-game-focus .mini-game-card:has(.is-completing),
.portal-page.is-game-focus .mini-game-card:has(.is-finished) {
  height: clamp(var(--game-card-play-min-height), var(--game-focus-card-height), var(--game-card-play-max-height));
}

.portal-page.is-game-focus .game-slot {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-height: 0;
}

.portal-page.is-game-focus .mini-game-card:has(.is-countdown) .game-slot,
.portal-page.is-game-focus .mini-game-card:has(.is-playing) .game-slot,
.portal-page.is-game-focus .mini-game-card:has(.is-completing) .game-slot,
.portal-page.is-game-focus .mini-game-card:has(.is-finished) .game-slot,
.portal-page.is-game-focus .mini-game-card:has(.is-countdown) .game-slot > *,
.portal-page.is-game-focus .mini-game-card:has(.is-playing) .game-slot > *,
.portal-page.is-game-focus .mini-game-card:has(.is-completing) .game-slot > *,
.portal-page.is-game-focus .mini-game-card:has(.is-finished) .game-slot > * {
  flex: 1 1 auto;
  min-height: 0;
}

.portal-page.is-result-mode .portal-main {
  min-height: calc(100svh - var(--header-height) + var(--header-card-overlap) - var(--footer-height));
  margin-top: calc(var(--header-card-overlap) * -1);
  padding: 0 var(--space-4) var(--space-4);
}

body.has-push-opt-in-tray .portal-page.is-result-mode {
  padding-bottom: calc(var(--space-4) + var(--push-opt-in-tray-space) + env(safe-area-inset-bottom));
}

body.has-push-opt-in-reward-tray .portal-page.is-result-mode {
  padding-bottom: 0;
}

body.has-push-opt-in-tray::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 41;
  pointer-events: none;
  background: rgba(17, 24, 39, 0.16);
}

body.has-push-opt-in-tray .portal-page.is-result-mode .result-panel {
  opacity: 0.46;
  transform: translateY(-6px) scale(0.985);
  transition:
    opacity 220ms ease,
    transform 220ms ease;
}

.portal-page.is-result-mode .coin-summary-card,
.portal-page.is-result-mode .reward-progress-card,
.portal-page.is-result-mode .mini-game-card {
  display: none;
}

.portal-header {
  min-height: calc(var(--header-height) + env(safe-area-inset-top));
  padding: calc(22px + env(safe-area-inset-top)) 22px 44px;
  color: #ffffff;
  background:
    radial-gradient(circle at calc(50% + 180px) 42px, rgba(255, 255, 255, 0.14), transparent 92px),
    radial-gradient(circle at calc(50% - 220px) 100%, rgba(255, 255, 255, 0.1), transparent 82px),
    linear-gradient(180deg, #ed1c24 0%, var(--color-primary) 100%);
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.16);
}

.portal-header::before,
.portal-header::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.portal-header::before {
  width: 128px;
  height: 128px;
  right: -52px;
  top: 16px;
  background: rgba(255, 255, 255, 0.12);
}

.portal-header::after {
  width: 86px;
  height: 86px;
  left: -34px;
  bottom: 10px;
  background: rgba(255, 255, 255, 0.08);
}

.portal-header-main::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -14px;
  left: 0;
  height: 4px;
  border-radius: 999px;
  background: var(--arcade-rail);
  opacity: 0.52;
  box-shadow: 0 0 18px rgba(244, 189, 53, 0.32);
}

.portal-header-main {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  position: relative;
  z-index: 1;
}

.portal-brand {
  display: block;
  position: relative;
  z-index: 0;
  width: 156px;
  height: 82px;
  margin-left: -4px;
  transform: rotate(-2deg);
  transform-origin: left center;
}

.portal-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 10px 10px rgba(62, 5, 20, 0.34));
}

.portal-brand-logo text {
  font-family: "Arial Black", "Impact", "Avenir Next", var(--font-family);
  font-size: 54px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portal-brand-logo__shadow {
  fill: #3d0716;
  stroke: #3d0716;
  stroke-linejoin: round;
  stroke-width: 18px;
  paint-order: stroke fill;
  transform: translate(7px, 9px);
}

.portal-brand-logo__outer {
  fill: #ffffff;
  stroke: #ffffff;
  stroke-linejoin: round;
  stroke-width: 18px;
  paint-order: stroke fill;
}

.portal-brand-logo__warm {
  fill: #ff4b1f;
  stroke: #ff4b1f;
  stroke-linejoin: round;
  stroke-width: 12px;
  paint-order: stroke fill;
}

.portal-brand-logo__cool {
  fill: #d8154f;
  stroke: #d8154f;
  stroke-linejoin: round;
  stroke-width: 12px;
  paint-order: stroke fill;
  transform: translate(0, 2px);
}

.portal-brand-logo__front {
  fill: url("#portal-brand-gloss");
  stroke: #e62129;
  stroke-linejoin: round;
  stroke-width: 2.4px;
  paint-order: stroke fill;
}

.portal-page.is-game-focus .portal-brand,
.portal-page.is-result-mode .portal-brand {
  width: 126px;
  height: 66px;
  margin-left: -2px;
}

.portal-user {
  display: none;
}

.coin-balance-pill {
  min-width: 142px;
  min-height: 58px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  padding: 9px 16px 10px;
  border: 2px solid rgba(230, 33, 41, 0.2);
  border-radius: 22px;
  color: var(--color-accent-dark);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.48), rgba(255, 240, 241, 0.12)),
    var(--color-accent-soft);
  box-shadow:
    0 16px 28px rgba(230, 33, 41, 0.14),
    0 4px 0 rgba(159, 95, 0, 0.08),
    inset 0 0 0 1px rgba(196, 122, 0, 0.04),
    inset 0 -5px 12px rgba(196, 122, 0, 0.08);
  font-weight: 900;
  white-space: nowrap;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 160ms ease;
}

.coin-balance-pill[data-balance-status="failed"],
.coin-balance-pill[data-flash-clickable="true"] {
  cursor: pointer;
}

.coin-balance-pill[data-balance-status="failed"]:focus-visible,
.coin-balance-pill[data-flash-clickable="true"]:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.72);
  outline-offset: 3px;
}

.coin-balance-pill[data-flash-clickable="true"]:active {
  transform: translateY(1px) scale(0.99);
}

.coin-balance-pill::before {
  content: "";
  position: absolute;
  top: 7px;
  right: 14px;
  left: 14px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.58), transparent);
  pointer-events: none;
  z-index: 0;
}

.coin-balance-pill::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 2px;
  background: transparent;
  pointer-events: none;
  opacity: 0;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
}

.coin-balance-pill__label {
  display: block;
  color: var(--color-accent-dark);
  font-size: 10px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  position: relative;
  z-index: 1;
}

.coin-balance-pill__value {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-width: 104px;
  color: var(--color-accent-dark);
  font-size: 23px;
  line-height: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.64);
  position: relative;
  z-index: 1;
}

.coin-balance-pill__progress {
  --flash-progress: 0%;
  --flash-dobel-milestone: 50%;
  --flash-dobel-progress: 0%;
  --flash-super-start: 50%;
  --flash-super-progress: 0%;
  position: absolute;
  right: 16px;
  bottom: 6px;
  left: 16px;
  z-index: 1;
  height: 4px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(145, 22, 34, 0.14), rgba(255, 255, 255, 0.48)),
    rgba(239, 29, 45, 0.14);
  box-shadow:
    inset 0 1px 1px rgba(103, 12, 25, 0.16),
    0 1px 0 rgba(255, 255, 255, 0.72);
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.coin-balance-pill[data-balance-status="loaded"] .coin-balance-pill__progress {
  opacity: 1;
}

.coin-balance-pill__progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  min-width: 0;
  border-radius: inherit;
  overflow: hidden;
  transition:
    left 420ms cubic-bezier(0.2, 0.78, 0.25, 1),
    width 420ms cubic-bezier(0.2, 0.78, 0.25, 1);
}

.coin-balance-pill__progress-fill--dobel {
  left: 0;
  width: var(--flash-dobel-progress);
  background:
    linear-gradient(90deg, #ff8b94 0%, #f72736 46%, #be1231 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.68),
    0 0 8px rgba(247, 39, 54, 0.6);
}

.coin-balance-pill__progress-fill--super {
  left: var(--flash-super-start);
  width: var(--flash-super-progress);
  background:
    linear-gradient(90deg, #f2a900 0%, #ffcc33 42%, #fff2a8 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 0 10px rgba(255, 203, 45, 0.82);
}

.coin-balance-pill__progress-notch {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--flash-dobel-milestone);
  width: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 1px rgba(190, 18, 49, 0.24),
    0 0 5px rgba(255, 255, 255, 0.78);
  transform: translateX(-50%);
}

.coin-balance-pill[data-flash-tier="dobel"] {
  border-color: rgba(247, 39, 54, 0.74);
  box-shadow:
    0 16px 28px rgba(230, 33, 41, 0.14),
    0 4px 0 rgba(159, 95, 0, 0.08),
    inset 0 0 0 1px rgba(255, 255, 255, 0.54),
    inset 0 -5px 12px rgba(247, 39, 54, 0.1);
}

.coin-balance-pill[data-flash-tier="dobel"]::after {
  opacity: 1;
  background:
    conic-gradient(
      from var(--flash-chip-ring-angle),
      transparent 0deg,
      transparent 224deg,
      rgba(255, 255, 255, 0.95) 230deg,
      #ff7f89 246deg,
      #f72736 288deg,
      #b3122e 326deg,
      transparent 342deg,
      transparent 360deg
    );
  animation: flash-chip-outline-orbit 2200ms linear infinite;
}

.coin-balance-pill[data-flash-tier="super"] {
  border-color: rgba(255, 203, 45, 0.98);
  box-shadow:
    0 16px 28px rgba(230, 33, 41, 0.14),
    0 4px 0 rgba(159, 95, 0, 0.08),
    inset 0 0 0 2px rgba(255, 255, 255, 0.7),
    inset 0 -6px 14px rgba(255, 184, 28, 0.14);
}

.coin-balance-pill[data-flash-tier="super"]::after {
  opacity: 1;
  background:
    conic-gradient(
      from var(--flash-chip-ring-angle),
      #fff2a8 0deg,
      #ffcc33 48deg,
      #f2a900 92deg,
      transparent 116deg,
      transparent 206deg,
      rgba(255, 255, 255, 0.96) 216deg,
      #ffcc33 238deg,
      #f2a900 284deg,
      transparent 308deg,
      transparent 360deg
    );
  animation: flash-chip-outline-orbit 1500ms linear infinite;
}

.coin-balance-pill[data-flash-tier="super"] .coin-balance-pill__progress-fill--super::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.72), transparent);
  animation: flash-super-progress-shimmer 1600ms ease-in-out infinite;
}

.coin-balance-pill__value[data-status="loading"],
.coin-balance-pill__value[data-status="retrying"],
.coin-balance-pill__value[data-status="failed"],
.coin-summary-card strong[data-status="loading"],
.coin-summary-card strong[data-status="retrying"],
.coin-summary-card strong[data-status="failed"] {
  color: rgba(159, 95, 0, 0.72);
}

.coin-balance-pill__value[data-status="failed"] {
  gap: 5px;
  min-width: 86px;
  font-size: 15px;
}

.coin-balance-loading-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 1em;
}

.coin-balance-loading-dots span {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.58;
  transform: scale(0.78);
  animation: coin-loading-dot 980ms ease-in-out infinite;
}

.coin-balance-loading-dots span:nth-child(2) {
  animation-delay: 150ms;
}

.coin-balance-loading-dots span:nth-child(3) {
  animation-delay: 300ms;
}

.coin-balance-loading-dots--large {
  gap: 7px;
}

.coin-balance-loading-dots--large span {
  width: 12px;
  height: 12px;
}

@keyframes coin-loading-dot {
  0%,
  80%,
  100% {
    opacity: 0.58;
    transform: translateY(0) scale(0.78);
  }

  40% {
    opacity: 1;
    transform: translateY(-4px) scale(1);
  }
}

.coin-dot {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.94) 0 11%, transparent 12%),
    linear-gradient(135deg, #fff5a7 0%, #ffd34f 34%, #e99a0a 68%, #a76500 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.72),
    inset 0 -2px 0 rgba(128, 76, 0, 0.32),
    0 1px 2px rgba(128, 76, 0, 0.26);
}

.coin-dot::before {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(159, 95, 0, 0.36);
  border-radius: 50%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.coin-dot::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 5px;
  width: 4px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  transform: rotate(24deg);
}

.portal-page.is-game-focus .coin-balance-pill,
.portal-page.is-result-mode .coin-balance-pill {
  min-width: 132px;
  min-height: 50px;
  gap: 2px;
  padding: 8px 14px 9px;
  border-radius: 20px;
}

.portal-page.is-game-focus .coin-balance-pill__progress,
.portal-page.is-result-mode .coin-balance-pill__progress {
  right: 14px;
  bottom: 5px;
  left: 14px;
  height: 3px;
}

.portal-page.is-game-focus .coin-balance-pill__label,
.portal-page.is-result-mode .coin-balance-pill__label {
  font-size: 9px;
}

.portal-page.is-game-focus .coin-balance-pill__value,
.portal-page.is-result-mode .coin-balance-pill__value {
  min-width: 92px;
  gap: 6px;
  font-size: 20px;
}

.portal-page.is-game-focus .coin-dot,
.portal-page.is-result-mode .coin-dot {
  width: 14px;
  height: 14px;
}

.coin-balance-pill.is-balance-updated {
  animation: balance-chip-celebrate 920ms cubic-bezier(0.18, 0.92, 0.25, 1.18) both;
}

.coin-balance-pill.is-balance-updated::before {
  animation: balance-chip-shine 920ms ease both;
}

.coin-balance-pill__value.is-balance-updated {
  color: #8d5100;
  animation: balance-pill-pop 820ms cubic-bezier(0.18, 0.92, 0.25, 1.2) both;
}

.coin-balance-pill__value.is-balance-updated .coin-dot {
  animation: balance-header-coin-pop 820ms cubic-bezier(0.18, 0.92, 0.25, 1.2) both;
}

.portal-main {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4);
  position: relative;
  z-index: 2;
}

.coin-summary-card,
.reward-progress-card,
.mini-game-card,
.result-panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-medium);
  background: var(--color-surface-elevated);
  box-shadow: var(--shadow-card);
  border-color: rgba(255, 255, 255, 0.82);
}

.coin-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
}

.coin-summary-label,
.progress-kicker {
  color: var(--color-muted-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.coin-summary-card strong {
  color: var(--color-accent-dark);
  font-size: 28px;
  line-height: 1;
}

.reward-progress-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-4);
}

.reward-progress-card p {
  margin: 4px 0 0;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 650;
}

.progress-state-pill,
.game-status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 10px;
  border: 1px solid rgba(230, 33, 41, 0.1);
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 8px 18px rgba(230, 33, 41, 0.08);
}

.game-status-pill {
  color: #ffffff;
  background: linear-gradient(180deg, #ef2b35, var(--color-primary-dark));
  box-shadow:
    0 8px 18px rgba(230, 33, 41, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.portal-page.is-game-focus .game-status-pill {
  padding: 7px 11px;
  font-size: 11px;
}

.mini-game-card {
  overflow: hidden;
  position: relative;
  border-width: 2px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 251, 245, 0.98)),
    var(--color-surface-elevated);
}

.mini-game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(230, 33, 41, 0.06) 0%, transparent 128px);
}

.mini-game-card::after,
.result-panel::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 18px;
  height: 5px;
  border-radius: 999px 999px 0 0;
  background: var(--arcade-rail);
  opacity: 0.2;
  pointer-events: none;
}

.mini-game-card > * {
  position: relative;
  z-index: 1;
}

.game-slot {
  min-height: 388px;
}

.daily-game-blocked {
  min-height: 388px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: var(--space-2);
  padding: var(--space-5);
  text-align: center;
}

.daily-game-blocked h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 28px;
  line-height: 1.08;
}

.daily-game-blocked p {
  max-width: 280px;
  margin: 0;
  color: var(--color-muted-text);
  font-weight: 760;
}

.daily-game-blocked--with-push-offer {
  min-height: 0;
  align-content: start;
  gap: 12px;
  padding: 34px var(--space-4) 20px;
}

.daily-game-blocked--with-push-offer h2 {
  font-size: 27px;
}

.daily-game-blocked--with-push-offer > p {
  max-width: 310px;
  font-size: 15px;
  line-height: 1.32;
}

.daily-game-blocked--with-push-offer .push-opt-in-panel {
  margin-top: 10px;
  padding-top: 14px;
}

.push-opt-in-panel {
  width: min(100%, 360px);
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(230, 33, 41, 0.16);
}

.push-opt-in-panel--footer-action {
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding-top: var(--space-5);
}

.push-opt-in-panel--bottom-tray {
  position: fixed;
  right: var(--space-4);
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
  left: var(--space-4);
  z-index: 42;
  width: min(488px, calc(100% - (var(--space-4) * 2)));
  margin: 0 auto;
  padding: 14px var(--space-4) var(--space-4);
  border: 1px solid rgba(230, 33, 41, 0.18);
  border-radius: 26px 26px 20px 20px;
  background:
    radial-gradient(circle at 16% 0%, rgba(244, 189, 53, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 248, 0.98));
  box-shadow:
    0 24px 58px rgba(16, 24, 40, 0.28),
    0 0 0 7px rgba(255, 255, 255, 0.44),
    0 0 34px rgba(230, 33, 41, 0.18);
  text-align: left;
  max-height: calc(100svh - 84px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(calc(100% + 32px));
  opacity: 0;
  animation: push-opt-in-tray-enter 420ms cubic-bezier(0.2, 0.9, 0.2, 1.05) forwards;
}

.push-opt-in-panel--bottom-tray.push-opt-in-panel--with-reward-moment {
  top: calc(96px + env(safe-area-inset-top));
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom));
  min-height: 0;
  max-height: none;
  align-content: start;
  gap: 14px;
  padding: 14px 18px 18px;
}

.push-opt-in-panel[hidden] {
  display: none;
}

.push-opt-in-panel__handle {
  justify-self: center;
  width: 46px;
  height: 5px;
  border-radius: 999px;
  background: rgba(188, 22, 32, 0.22);
}

.push-opt-in-panel__reward[hidden] {
  display: none;
}

.push-opt-in-panel__reward {
  --reward-progress: 0%;
  display: grid;
  gap: 8px;
  padding: 15px 16px;
  border: 1px solid rgba(244, 189, 53, 0.52);
  border-radius: 18px;
  color: var(--color-accent-dark);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 248, 230, 0.82)),
    var(--color-accent-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 12px 24px rgba(196, 122, 0, 0.13);
}

.push-opt-in-panel__reward-label,
.push-opt-in-panel__reward-delta {
  font-size: 12px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.push-opt-in-panel__reward-value {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  color: var(--color-accent-dark);
  font-size: 42px;
  line-height: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.push-opt-in-panel__reward-value .coin-dot {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  animation: balance-coin-spin 720ms ease-in-out infinite;
}

.push-opt-in-panel__reward.is-complete .coin-dot {
  animation: balance-coin-pop 420ms ease both;
}

.push-opt-in-panel__reward-progress {
  height: 9px;
  overflow: visible;
  border-radius: 999px;
  background: rgba(196, 122, 0, 0.13);
  box-shadow: inset 0 1px 2px rgba(151, 84, 0, 0.18);
}

.push-opt-in-panel__reward-progress span {
  position: relative;
  display: block;
  width: var(--reward-progress);
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background: linear-gradient(90deg, #f4bd35, #e62129);
  box-shadow: 0 0 14px rgba(230, 33, 41, 0.28);
}

.push-opt-in-panel__reward-progress span::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -8px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.98) 0 18%, rgba(255, 221, 116, 0.9) 19% 38%, rgba(230, 33, 41, 0.42) 39% 64%, rgba(230, 33, 41, 0) 65%);
  box-shadow:
    0 0 0 rgba(255, 255, 255, 0),
    0 0 0 rgba(230, 33, 41, 0);
  opacity: 0;
  transform: translateY(-50%) scale(0.35);
}

.push-opt-in-panel__reward.is-complete .push-opt-in-panel__reward-progress span::after {
  animation: reward-progress-end-pulse 760ms ease both;
}

.push-opt-in-panel__reward-progress-text {
  margin: 0;
  color: var(--color-accent-dark);
  font-size: 14px;
  line-height: 1.22;
  font-weight: 860;
}

.push-opt-in-panel__copy {
  display: grid;
  gap: 6px;
}

.push-opt-in-panel__kicker {
  color: var(--color-red-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.push-opt-in-panel h3 {
  margin: 0;
  color: var(--color-text);
  font-size: 18px;
  line-height: 1.16;
}

.push-opt-in-panel p {
  margin: 0;
  max-width: none;
  color: var(--color-muted-text);
  font-size: 13px;
  line-height: 1.36;
}

.push-opt-in-panel__actions {
  display: grid;
  gap: 8px;
}

.result-panel .push-opt-in-panel {
  width: 100%;
  margin-top: var(--space-5);
  text-align: center;
}

.result-panel .push-opt-in-panel__copy {
  justify-items: center;
}

.push-opt-in-panel__message--success {
  color: #137547;
}

.push-opt-in-panel__message--error {
  color: var(--color-red-dark);
}

.push-opt-in-panel__message--highlight {
  box-sizing: border-box;
  width: min(100%, 330px);
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 0;
  padding: 12px 16px;
  color: var(--color-text);
  background:
    linear-gradient(180deg, rgba(255, 250, 232, 0.98), rgba(255, 244, 210, 0.96));
  border: 1px solid rgba(244, 189, 53, 0.46);
  border-radius: 18px;
  box-shadow:
    0 10px 20px rgba(196, 122, 0, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.88);
  font-weight: 780;
  animation: push-opt-in-instruction-highlight 520ms ease-out both;
}

.push-opt-in-panel__secondary {
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 14px;
  padding: 0 var(--space-3);
  color: var(--color-red-dark);
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.1;
  cursor: pointer;
}

.push-opt-in-panel__secondary--status,
.push-opt-in-panel__secondary--status:disabled {
  color: var(--color-success-dark);
  background: var(--color-success-soft);
  box-shadow: inset 0 0 0 1px rgba(15, 95, 59, 0.14);
  font-weight: 800;
  cursor: default;
  opacity: 1;
}

.push-opt-in-panel__secondary:disabled {
  cursor: default;
}

.push-opt-in-panel--bottom-tray .push-opt-in-panel__secondary:not(.push-opt-in-panel__secondary--status):not(:disabled) {
  color: var(--color-muted-text);
  opacity: 0.72;
}

.push-opt-in-panel--bottom-tray .push-opt-in-panel__secondary--delay-hidden {
  visibility: hidden;
  pointer-events: none;
  opacity: 0;
}

.push-opt-in-panel__button,
.permission-prompt__continue,
.permission-prompt__cancel {
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  padding: 0 var(--space-4);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.push-opt-in-panel__button,
.permission-prompt__continue {
  width: 100%;
  color: #ffffff;
  background: linear-gradient(180deg, #ff4b55, var(--color-red));
  box-shadow: 0 10px 18px rgba(230, 33, 41, 0.22);
}

.push-opt-in-panel__button--hidden-preserve {
  visibility: hidden;
  pointer-events: none;
}

.push-opt-in-panel--install-detail .push-opt-in-panel__copy {
  gap: 8px;
}

.push-opt-in-panel--install-detail .push-opt-in-panel__button--hidden-preserve {
  min-height: 16px;
  box-shadow: none;
}

.push-opt-in-panel--bottom-tray .push-opt-in-panel__button {
  min-height: 52px;
  border-radius: 18px;
  background: linear-gradient(180deg, #ff3138 0%, var(--color-primary) 58%, #d71922 100%);
  box-shadow:
    0 0 0 4px rgba(230, 33, 41, 0.14),
    0 14px 26px rgba(230, 33, 41, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.36);
}

.push-opt-in-panel .push-opt-in-panel__button--status,
.push-opt-in-panel .push-opt-in-panel__button--status:disabled,
.push-opt-in-panel--bottom-tray .push-opt-in-panel__button--status,
.push-opt-in-panel--bottom-tray .push-opt-in-panel__button--status:disabled {
  color: var(--color-success-dark);
  background: var(--color-success-soft);
  box-shadow: inset 0 0 0 1px rgba(15, 95, 59, 0.14);
  opacity: 1;
}

.push-opt-in-panel__button:disabled {
  cursor: default;
  opacity: 0.72;
  box-shadow: none;
}

.permission-prompt {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-items: end;
  padding: 16px;
  background: rgba(17, 24, 39, 0.48);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.permission-prompt[hidden] {
  display: none;
}

.permission-prompt.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.permission-prompt__sheet {
  width: min(100%, 420px);
  display: grid;
  gap: var(--space-3);
  margin-inline: auto;
  padding: var(--space-4);
  border: 1px solid rgba(230, 33, 41, 0.16);
  border-radius: 24px;
  background: var(--color-surface);
  box-shadow: 0 24px 52px rgba(23, 32, 50, 0.26);
}

.permission-prompt__title {
  margin: 0;
  color: var(--color-text);
  font-size: 20px;
  line-height: 1.18;
}

.permission-prompt__body {
  margin: 0;
  color: var(--color-muted-text);
  font-size: 14px;
  line-height: 1.44;
  font-weight: 720;
}

.permission-prompt__actions {
  display: grid;
  gap: 10px;
}

.permission-prompt__cancel {
  justify-self: center;
  min-height: 38px;
  padding-inline: 12px;
  color: var(--color-muted-text);
  background: transparent;
}

@keyframes push-opt-in-tray-enter {
  from {
    opacity: 0;
    transform: translateY(calc(100% + 32px)) scale(0.98);
  }

  72% {
    opacity: 1;
    transform: translateY(-6px) scale(1.01);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes push-opt-in-instruction-highlight {
  0% {
    opacity: 0.72;
    transform: translateY(4px);
    box-shadow:
      0 5px 12px rgba(196, 122, 0, 0.04),
      inset 0 1px 0 rgba(255, 255, 255, 0.88);
  }

  68% {
    opacity: 1;
    transform: translateY(0);
    box-shadow:
      0 12px 24px rgba(196, 122, 0, 0.11),
      inset 0 1px 0 rgba(255, 255, 255, 0.88);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    box-shadow:
      0 10px 20px rgba(196, 122, 0, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.88);
  }
}

.result-slot[hidden] {
  display: none;
}

.portal-page.is-result-mode .result-slot {
  display: flex;
  min-height: calc(100svh - var(--header-height) + var(--header-card-overlap) - var(--footer-height) - 32px);
}

.result-panel {
  padding: var(--space-5);
  position: relative;
  overflow: hidden;
  border-width: 2px;
  border-color: rgba(255, 214, 214, 0.96);
}

.portal-page.is-result-mode .result-panel {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: clamp(42px, 7svh, 72px) var(--space-5) var(--space-5);
  box-shadow:
    0 28px 64px rgba(16, 24, 40, 0.18),
    0 0 0 7px rgba(255, 255, 255, 0.38),
    0 0 0 12px rgba(230, 33, 41, 0.1);
}

.result-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 240, 241, 0.58) 0%, transparent 48%);
}

.result-panel > * {
  position: relative;
  z-index: 1;
}

.result-eyebrow {
  color: var(--color-muted-text);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.result-panel h2 {
  margin: 6px 0 8px;
  font-size: 24px;
  line-height: 1.1;
}

.portal-page.is-result-mode .result-panel h2 {
  font-size: 32px;
}

.result-panel p {
  margin: 0;
  color: var(--color-muted-text);
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-2);
  margin-top: var(--space-5);
}

.result-stat {
  min-width: 0;
  padding: var(--space-3);
  border: 1px solid rgba(230, 33, 41, 0.16);
  border-radius: var(--radius-small);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 230, 0.42)),
    var(--color-surface);
  box-shadow:
    0 8px 18px rgba(16, 24, 40, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.result-stat strong {
  color: var(--color-text);
}

.result-stat span {
  display: block;
  color: var(--color-muted-text);
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
}

.result-stat strong {
  display: block;
  margin-top: 3px;
  font-size: 20px;
}

.reward-balance-countup {
  display: grid;
  gap: 6px;
  margin-top: var(--space-4);
  padding: 14px 16px;
  border: 1px solid rgba(244, 189, 53, 0.46);
  border-radius: var(--radius-small);
  color: var(--color-accent-dark);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 248, 230, 0.74)),
    var(--color-accent-soft);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 10px 22px rgba(196, 122, 0, 0.11);
  animation: balance-countup-enter 280ms ease both;
}

.reward-balance-countup__label,
.reward-balance-countup__delta {
  font-size: 12px;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.reward-balance-countup strong {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--color-accent-dark);
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.reward-balance-countup .coin-dot {
  width: 22px;
  height: 22px;
  animation: balance-coin-spin 720ms ease-in-out infinite;
}

.reward-balance-countup.is-complete {
  animation: balance-countup-complete 360ms ease both;
}

.reward-balance-countup.is-complete .coin-dot {
  animation: balance-coin-pop 420ms ease both;
}

.result-note {
  margin-top: var(--space-4);
  padding: var(--space-3);
  border-radius: var(--radius-small);
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  font-size: 13px;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px rgba(230, 33, 41, 0.08);
}

.sticky-footer-cta {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: var(--space-3) var(--space-4) calc(var(--space-3) + env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.97)),
    rgba(255, 255, 255, 0.94);
  border-top: 1px solid rgba(229, 231, 235, 0.92);
  backdrop-filter: blur(14px);
  box-shadow:
    0 -18px 36px rgba(16, 24, 40, 0.08),
    0 -1px 0 rgba(230, 33, 41, 0.08);
}

.sticky-footer-cta[hidden] {
  display: none;
}

.sticky-footer-cta > button {
  width: min(448px, 100%);
}

.primary-cta,
.secondary-cta {
  min-height: 56px;
  border-radius: 20px;
  padding: 0 var(--space-5);
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
  position: relative;
  transition:
    transform 160ms ease,
    opacity 160ms ease,
    background 160ms ease;
}

.secondary-cta {
  overflow: hidden;
}

.primary-cta::before {
  content: "";
  position: absolute;
  inset: 1px 18px auto;
  height: 38%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.28), transparent);
  pointer-events: none;
}

.primary-cta::after {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: 28px;
  background: rgba(230, 33, 41, 0.46);
  filter: blur(16px);
  opacity: 0.88;
  pointer-events: none;
  animation: reward-cta-halo 1180ms ease-in-out infinite;
}

.primary-cta {
  color: #ffffff;
  z-index: 0;
  isolation: isolate;
  overflow: visible;
  border: 1px solid rgba(188, 22, 32, 0.36);
  background: linear-gradient(180deg, #ff3138 0%, var(--color-primary) 58%, #d71922 100%);
  box-shadow:
    0 0 0 5px rgba(230, 33, 41, 0.20),
    0 0 30px rgba(230, 33, 41, 0.66),
    0 16px 30px rgba(230, 33, 41, 0.36),
    inset 0 -5px 0 rgba(130, 0, 10, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.34);
  text-shadow: 0 2px 0 rgba(130, 0, 10, 0.2);
}

.secondary-cta {
  color: var(--color-primary);
  border: 1px solid rgba(230, 33, 41, 0.14);
  background: var(--color-primary-soft);
}

.primary-cta:active,
.secondary-cta:active {
  transform: translateY(2px) scale(0.99);
}

.primary-cta:disabled,
.secondary-cta:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
}

.primary-cta:disabled::after {
  content: none;
}

.primary-cta:not(:disabled) {
  animation: reward-cta-breathe 1180ms ease-in-out infinite;
}

.primary-cta:not(:disabled):active {
  animation: none;
  transform: translateY(2px) scale(0.99);
}

@keyframes reward-cta-breathe {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 0 0 4px rgba(230, 33, 41, 0.18),
      0 0 24px rgba(230, 33, 41, 0.58),
      0 16px 28px rgba(230, 33, 41, 0.32),
      inset 0 -5px 0 rgba(130, 0, 10, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.34);
  }

  50% {
    transform: translateY(-1px) scale(1.018);
    box-shadow:
      0 0 0 8px rgba(230, 33, 41, 0.24),
      0 0 42px rgba(230, 33, 41, 0.86),
      0 20px 36px rgba(230, 33, 41, 0.46),
      inset 0 -5px 0 rgba(130, 0, 10, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.38);
  }
}

@keyframes reward-cta-halo {
  0%,
  100% {
    opacity: 0.58;
    transform: scale(0.96);
  }

  50% {
    opacity: 0.96;
    transform: scale(1.03);
  }
}

@keyframes boot-splash-coin {
  0%,
  100% {
    transform: translateY(0) rotateY(0deg) scale(1);
  }

  46% {
    transform: translateY(-8px) rotateY(180deg) scale(1.08);
  }
}

@keyframes boot-splash-dot {
  0%,
  80%,
  100% {
    opacity: 0.46;
    transform: translateY(0) scale(0.94);
  }

  40% {
    opacity: 1;
    transform: translateY(-7px) scale(1.08);
  }
}

@keyframes balance-countup-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes balance-countup-complete {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  48% {
    transform: translateY(-2px) scale(1.02);
  }
}

@keyframes balance-coin-spin {
  0%,
  100% {
    transform: rotateY(0deg) scale(1);
  }

  50% {
    transform: rotateY(180deg) scale(1.12);
  }
}

@keyframes balance-coin-pop {
  0%,
  100% {
    transform: scale(1);
  }

  45% {
    transform: scale(1.28);
  }
}

@keyframes reward-progress-end-pulse {
  0% {
    opacity: 0;
    transform: translateY(-50%) scale(0.28);
    box-shadow:
      0 0 0 rgba(255, 255, 255, 0),
      0 0 0 rgba(230, 33, 41, 0);
  }

  36% {
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
    box-shadow:
      0 0 0 7px rgba(255, 255, 255, 0.68),
      0 0 0 14px rgba(230, 33, 41, 0.18),
      0 0 24px rgba(230, 33, 41, 0.56);
  }

  100% {
    opacity: 0;
    transform: translateY(-50%) scale(1.9);
    box-shadow:
      0 0 0 18px rgba(255, 255, 255, 0),
      0 0 0 28px rgba(230, 33, 41, 0),
      0 0 34px rgba(230, 33, 41, 0);
  }
}

@keyframes flash-chip-outline-orbit {
  to {
    --flash-chip-ring-angle: 360deg;
  }
}

@property --flash-chip-ring-angle {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

@keyframes flash-super-progress-shimmer {
  0% {
    left: -48%;
  }

  100% {
    left: 108%;
  }
}

@keyframes balance-chip-celebrate {
  0% {
    transform: translateY(0) scale(1);
    border-color: rgba(230, 33, 41, 0.2);
    box-shadow:
      0 16px 28px rgba(230, 33, 41, 0.14),
      0 4px 0 rgba(159, 95, 0, 0.08),
      inset 0 0 0 1px rgba(196, 122, 0, 0.04),
      inset 0 -5px 12px rgba(196, 122, 0, 0.08);
  }

  18% {
    transform: translateY(-3px) scale(1.08);
    border-color: rgba(255, 218, 92, 0.92);
    box-shadow:
      0 0 0 7px rgba(255, 225, 128, 0.52),
      0 0 0 16px rgba(255, 196, 38, 0.22),
      0 24px 44px rgba(188, 22, 32, 0.24),
      0 18px 42px rgba(196, 122, 0, 0.36),
      inset 0 0 0 2px rgba(255, 255, 255, 0.7),
      inset 0 -6px 14px rgba(196, 122, 0, 0.14);
  }

  42% {
    transform: translateY(1px) scale(0.985);
    border-color: rgba(244, 189, 53, 0.7);
    box-shadow:
      0 0 0 3px rgba(255, 225, 128, 0.28),
      0 10px 24px rgba(188, 22, 32, 0.16),
      0 12px 30px rgba(196, 122, 0, 0.22),
      inset 0 0 0 1px rgba(255, 255, 255, 0.58),
      inset 0 -5px 12px rgba(196, 122, 0, 0.1);
  }

  64% {
    transform: translateY(-1px) scale(1.035);
    border-color: rgba(255, 218, 92, 0.82);
    box-shadow:
      0 0 0 5px rgba(255, 225, 128, 0.34),
      0 0 32px rgba(255, 190, 36, 0.54),
      0 18px 36px rgba(196, 122, 0, 0.28),
      inset 0 0 0 2px rgba(255, 255, 255, 0.66),
      inset 0 -6px 14px rgba(196, 122, 0, 0.12);
  }

  100% {
    transform: translateY(0) scale(1);
    border-color: rgba(230, 33, 41, 0.2);
    box-shadow:
      0 16px 28px rgba(230, 33, 41, 0.14),
      0 4px 0 rgba(159, 95, 0, 0.08),
      inset 0 0 0 1px rgba(196, 122, 0, 0.04),
      inset 0 -5px 12px rgba(196, 122, 0, 0.08);
  }
}

@keyframes balance-chip-shine {
  0% {
    opacity: 0.45;
    transform: translateX(-18%) scaleX(0.9);
  }

  26% {
    opacity: 1;
    transform: translateX(0) scaleX(1.05);
  }

  58% {
    opacity: 0.92;
    transform: translateX(18%) scaleX(1.1);
  }

  100% {
    opacity: 0.58;
    transform: translateX(0) scaleX(1);
  }
}

@keyframes balance-pill-pop {
  0% {
    transform: scale(1);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.64);
  }

  20% {
    transform: scale(1.24);
    text-shadow:
      0 2px 0 rgba(255, 255, 255, 0.9),
      0 0 18px rgba(255, 204, 56, 0.9);
  }

  44% {
    transform: scale(0.96);
    text-shadow:
      0 1px 0 rgba(255, 255, 255, 0.72),
      0 0 8px rgba(255, 204, 56, 0.48);
  }

  68% {
    transform: scale(1.1);
    text-shadow:
      0 2px 0 rgba(255, 255, 255, 0.84),
      0 0 14px rgba(255, 204, 56, 0.68);
  }

  100% {
    transform: scale(1);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.64);
  }
}

@keyframes balance-header-coin-pop {
  0% {
    transform: rotateY(0deg) scale(1);
    filter: brightness(1);
  }

  22% {
    transform: rotateY(180deg) scale(1.42);
    filter: brightness(1.22) saturate(1.12);
  }

  52% {
    transform: rotateY(320deg) scale(0.92);
    filter: brightness(1.08);
  }

  78% {
    transform: rotateY(360deg) scale(1.18);
    filter: brightness(1.16) saturate(1.08);
  }

  100% {
    transform: rotateY(360deg) scale(1);
    filter: brightness(1);
  }
}

.hidden {
  display: none !important;
}

.noscript-message {
  position: fixed;
  inset: 16px;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  border-radius: var(--radius-medium);
  color: var(--color-text);
  background: var(--color-surface-elevated);
  text-align: center;
  font-weight: 700;
}

.qa-debug-panel {
  position: fixed;
  right: 8px;
  bottom: calc(var(--footer-height) + 8px + env(safe-area-inset-bottom));
  z-index: 40;
  width: min(280px, calc(100vw - 16px));
  max-height: min(360px, calc(100svh - 24px));
  overflow: auto;
  padding: 10px;
  border: 1px solid rgba(16, 24, 40, 0.2);
  border-radius: 12px;
  color: #111827;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(16, 24, 40, 0.22);
  font-size: 11px;
  line-height: 1.3;
  backdrop-filter: blur(10px);
}

.qa-debug-panel strong {
  display: block;
  margin-bottom: 6px;
  color: var(--color-primary-dark);
  font-size: 12px;
}

.qa-debug-panel dl {
  display: grid;
  gap: 4px;
  margin: 0 0 8px;
}

.qa-debug-panel dl div {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 6px;
}

.qa-debug-panel dt,
.qa-debug-panel dd {
  margin: 0;
}

.qa-debug-panel dt {
  color: var(--color-muted-text);
  font-weight: 800;
}

.qa-debug-panel dd {
  min-width: 0;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.qa-debug-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 8px;
}

.qa-debug-actions button {
  min-height: 30px;
  border: 1px solid rgba(230, 33, 41, 0.2);
  border-radius: 8px;
  color: var(--color-primary-dark);
  background: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.qa-debug-actions button:active {
  transform: translateY(1px);
}

.qa-debug-panel pre {
  max-height: 160px;
  margin: 0 0 6px;
  overflow: auto;
  padding: 8px;
  border-radius: 8px;
  color: #f8fafc;
  background: #111827;
  font-size: 10px;
  white-space: pre-wrap;
}

.local-end-game-preview {
  position: fixed;
  right: 10px;
  left: 10px;
  top: calc(8px + env(safe-area-inset-top));
  z-index: 80;
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  max-width: 560px;
  margin: 0 auto;
  padding: 8px;
  border: 1px solid rgba(230, 33, 41, 0.16);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 38px rgba(23, 32, 50, 0.18);
  -webkit-overflow-scrolling: touch;
}

.local-end-game-preview__label,
.local-end-game-preview a {
  flex: 0 0 auto;
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.local-end-game-preview__label {
  color: var(--color-muted-text);
  text-transform: uppercase;
}

.local-end-game-preview a {
  padding: 8px 10px;
  border-radius: 999px;
  color: var(--color-primary-dark);
  background: var(--color-primary-soft);
  text-decoration: none;
}

.local-end-game-preview a.is-active {
  color: #ffffff;
  background: var(--color-primary);
}

@media (max-width: 374px) {
  .portal-main {
    padding: var(--space-3);
    gap: var(--space-3);
  }

  .coin-summary-card strong {
    font-size: 24px;
  }

  .game-slot {
    min-height: 370px;
  }
}

@media (max-height: 760px) {
  .daily-game-blocked--with-push-offer {
    gap: 10px;
    padding: 24px 18px 14px;
  }

  .daily-game-blocked--with-push-offer h2 {
    font-size: 24px;
  }

  .daily-game-blocked--with-push-offer > p {
    max-width: 300px;
    font-size: 14px;
    line-height: 1.28;
  }

  .daily-game-blocked--with-push-offer .push-opt-in-panel {
    gap: 10px;
    margin-top: 6px;
    padding-top: 12px;
  }

  .daily-game-blocked--with-push-offer .push-opt-in-panel__copy {
    gap: 5px;
  }

  .daily-game-blocked--with-push-offer .push-opt-in-panel h3 {
    font-size: 17px;
  }

  .daily-game-blocked--with-push-offer .push-opt-in-panel p {
    font-size: 12px;
    line-height: 1.28;
  }

  .daily-game-blocked--with-push-offer .push-opt-in-panel__message--highlight {
    min-height: 62px;
    padding: 10px 14px;
  }

  .daily-game-blocked--with-push-offer .push-opt-in-panel__button {
    min-height: 44px;
    border-radius: 15px;
  }

  .daily-game-blocked--with-push-offer .push-opt-in-panel--install-detail .push-opt-in-panel__button--hidden-preserve {
    min-height: 14px;
  }

  .daily-game-blocked--with-push-offer .push-opt-in-panel__secondary {
    min-height: 28px;
  }

  .push-opt-in-panel--bottom-tray {
    gap: 10px;
    padding: 12px var(--space-4) 14px;
  }

  .push-opt-in-panel--bottom-tray .push-opt-in-panel__button {
    min-height: 50px;
  }
}

@media (max-height: 680px) {
  .daily-game-blocked--with-push-offer {
    padding-top: 18px;
  }

  .daily-game-blocked--with-push-offer h2 {
    font-size: 22px;
  }

  .daily-game-blocked--with-push-offer .push-opt-in-panel {
    gap: 8px;
  }

  .daily-game-blocked--with-push-offer .push-opt-in-panel__kicker {
    font-size: 10px;
  }

  .daily-game-blocked--with-push-offer .push-opt-in-panel__button {
    min-height: 42px;
  }

  .daily-game-blocked--with-push-offer .push-opt-in-panel__message--highlight {
    min-height: 58px;
  }
}

@media (max-width: 340px), (max-height: 620px) {
  .portal-page.is-game-focus,
  .portal-page.is-result-mode {
    --header-height: 96px;
    --header-card-overlap: 20px;
  }

  .portal-page.is-game-focus {
    --game-card-play-min-height: 390px !important;
    --game-stage-play-min-height: 244px !important;
  }

  .portal-page.is-game-focus .portal-header,
  .portal-page.is-result-mode .portal-header {
    padding-top: calc(10px + env(safe-area-inset-top));
    padding-bottom: 26px;
  }

  .portal-page.is-game-focus .portal-header-main,
  .portal-page.is-result-mode .portal-header-main {
    min-height: 58px;
  }

  .portal-page.is-game-focus .portal-brand,
  .portal-page.is-result-mode .portal-brand {
    width: 112px;
    height: 58px;
  }

  .portal-page.is-game-focus .coin-balance-pill,
  .portal-page.is-result-mode .coin-balance-pill {
    min-width: 116px;
    min-height: 46px;
    padding: 7px 12px 8px;
    border-radius: 18px;
  }

  .portal-page.is-game-focus .coin-balance-pill__progress,
  .portal-page.is-result-mode .coin-balance-pill__progress {
    right: 12px;
    bottom: 5px;
    left: 12px;
    height: 3px;
  }

  .portal-page.is-game-focus .coin-balance-pill__value,
  .portal-page.is-result-mode .coin-balance-pill__value {
    min-width: 78px;
    font-size: 18px;
  }

  .portal-page.is-game-focus .portal-main {
    padding-right: 10px;
    padding-left: 10px;
  }

  .portal-page.is-result-mode .portal-main {
    padding-right: 12px;
    padding-left: 12px;
  }

  .portal-page.is-result-mode .result-panel {
    justify-content: flex-start;
    padding: 32px 18px 18px;
  }

  .portal-page.is-result-mode .result-panel h2 {
    font-size: 28px;
  }

  .result-stats {
    gap: 8px;
  }

  .result-stat {
    padding: 10px;
  }

  .result-stat strong {
    font-size: 18px;
  }

  .sticky-footer-cta {
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }

  .primary-cta,
  .secondary-cta {
    min-height: 52px;
    border-radius: 18px;
    font-size: 15px;
  }

  .push-opt-in-panel--bottom-tray.push-opt-in-panel--with-reward-moment {
    top: calc(78px + env(safe-area-inset-top));
    bottom: calc(10px + env(safe-area-inset-bottom));
    min-height: 0;
    gap: 10px;
    padding: 12px 14px 14px;
  }

  .push-opt-in-panel__reward {
    gap: 6px;
    padding: 12px 13px;
  }

  .push-opt-in-panel__reward-value {
    font-size: 34px;
  }

  .push-opt-in-panel__reward-value .coin-dot {
    width: 21px;
    height: 21px;
  }

  .push-opt-in-panel__reward-progress-text {
    font-size: 13px;
  }
}
