@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@600;700;800;900&display=swap");

:root {
  --axo-ink: #081431;
  --axo-navy: #0b1740;
  --axo-cyan: #45eaff;
  --axo-blue: #287cff;
  --axo-pink: #ff4f9a;
  --axo-lime: #baff4d;
  --axo-violet: #9b63ff;
  --axo-gold: #ffd34d;
}

.axo-game-modal {
  width: min(100%, 460px);
  max-height: min(94svh, 860px);
  overflow: hidden auto;
  position: relative;
  border: 1px solid rgba(111, 239, 255, .55);
  border-radius: 34px;
  color: #fff;
  background:
    radial-gradient(circle at 15% -10%, rgba(69, 234, 255, .35), transparent 34%),
    radial-gradient(circle at 110% 82%, rgba(255, 79, 154, .28), transparent 38%),
    linear-gradient(145deg, #0f2053, #251351 70%, #42155d);
  box-shadow: 0 34px 100px rgba(0, 6, 30, .68), inset 0 1px rgba(255,255,255,.12);
  scrollbar-width: thin;
  scrollbar-color: rgba(85,233,255,.65) transparent;
}

.axo-game-modal::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .24;
  background-image:
    radial-gradient(circle at 12% 16%, #fff 0 1px, transparent 1.7px),
    radial-gradient(circle at 78% 32%, #fff 0 1px, transparent 1.7px),
    radial-gradient(circle at 42% 82%, #fff 0 1px, transparent 1.7px);
  background-size: 79px 89px, 113px 127px, 151px 167px;
}

.axo-close {
  position: absolute;
  z-index: 10;
  top: 14px;
  right: 14px;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  color: #fff;
  background: rgba(3, 13, 42, .7);
  font: 300 28px/1 system-ui;
  cursor: pointer;
  backdrop-filter: blur(12px);
}

.axo-game-stage { position: relative; z-index: 1; }
.axo-game-stage--menu { padding: 0 22px 24px; }

.axo-menu-art {
  height: 235px;
  margin: 0 -22px 2px;
  position: relative;
  display: grid;
  place-items: end center;
  overflow: hidden;
  border-radius: 33px 33px 48% 48% / 33px 33px 18% 18%;
  background:
    radial-gradient(circle at 50% 68%, rgba(102,246,255,.45), transparent 33%),
    linear-gradient(155deg, #182c73, #5e247a 62%, #ff488a);
}

.axo-menu-art::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 100px;
  bottom: -55px;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--axo-blue), var(--axo-cyan), var(--axo-pink));
  filter: blur(12px);
  opacity: .9;
}

.axo-menu-art img {
  position: relative;
  z-index: 2;
  width: 195px;
  height: 195px;
  object-fit: contain;
  transform: translateY(18px);
  filter: drop-shadow(0 18px 30px rgba(4,5,38,.42));
}

.axo-orb { position: absolute; border-radius: 50%; box-shadow: inset -8px -10px 20px rgba(36,18,95,.28), inset 5px 5px 12px rgba(255,255,255,.5), 0 0 28px currentColor; }
.axo-orb--one { width: 72px; height: 72px; left: 20px; top: 42px; color: #53efff; background: #36d9f2; }
.axo-orb--two { width: 52px; height: 52px; right: 27px; top: 68px; color: #ff79b1; background: #ff579b; }
.axo-orb--three { width: 31px; height: 31px; left: 72px; bottom: 30px; color: #d6ff5e; background: #a4ef45; }

.axo-menu-copy { text-align: center; padding: 15px 6px 4px; }
.axo-eyebrow { display: inline-flex; color: var(--axo-cyan); font: 900 11px/1.2 system-ui; letter-spacing: .2em; text-transform: uppercase; }
.axo-menu-logo { width: min(245px, 72%); height: 72px; object-fit: contain; display: block; margin: 2px auto 0; filter: drop-shadow(0 8px 18px rgba(0,0,0,.28)); }
.axo-menu-copy h2 { margin: 2px 0 9px; font: 900 clamp(27px, 7vw, 39px)/.96 system-ui; letter-spacing: -.045em; }
.axo-menu-copy h2 em { color: var(--axo-cyan); font-style: normal; }
.axo-menu-copy p { max-width: 370px; margin: 0 auto; color: #c2cdec; font: 500 13px/1.52 system-ui; }

.axo-wallet-card {
  margin: 17px 0 10px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(75,234,255,.35);
  border-radius: 16px;
  background: rgba(3,15,47,.62);
}
.axo-wallet-card span { color: #93a9d5; font: 700 11px/1.2 system-ui; text-transform: uppercase; letter-spacing: .08em; }
.axo-wallet-card strong { color: #fff; font: 900 19px/1 system-ui; }

.axo-stake-block { padding: 14px; border: 1px solid rgba(255,255,255,.11); border-radius: 20px; background: rgba(255,255,255,.055); }
.axo-stake-block > div:first-child { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.axo-stake-block span { font: 850 12px/1 system-ui; text-transform: uppercase; letter-spacing: .07em; }
.axo-stake-block small { color: #91a2ca; font: 600 10px/1 system-ui; }
.axo-stake-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.axo-stake-grid button { min-height: 43px; padding: 5px; border: 1px solid rgba(255,255,255,.13); border-radius: 12px; color: #d9e3ff; background: rgba(5,15,46,.7); font: 850 11px/1 system-ui; cursor: pointer; }
.axo-stake-grid button.is-active { color: var(--axo-ink); border-color: var(--axo-cyan); background: linear-gradient(135deg, #72f2ff, #3fcaee); box-shadow: 0 0 0 3px rgba(72,233,255,.13), 0 8px 20px rgba(25,201,238,.2); }
.axo-stake-grid button:disabled { opacity: .35; cursor: not-allowed; }

.axo-secure-note { display: flex; gap: 10px; align-items: center; margin: 10px 2px; color: #b8c8e7; }
.axo-secure-note > span { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; border-radius: 50%; color: #082937; background: var(--axo-lime); font-weight: 950; }
.axo-secure-note strong, .axo-secure-note small { display: block; }
.axo-secure-note strong { color: #eafff0; font: 800 11px/1.2 system-ui; }
.axo-secure-note small { margin-top: 2px; font: 500 9px/1.25 system-ui; }
.axo-secure-note--warning > span { color: #3b2100; background: #ffd85c; }
.axo-secure-note--warning strong { color: #ffe8a3; }

.axo-primary, .axo-cashout {
  width: 100%;
  min-height: 58px;
  padding: 10px 13px 10px 21px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 18px;
  color: #071431;
  background: linear-gradient(135deg, var(--axo-lime), var(--axo-cyan) 62%, #53a9ff);
  box-shadow: 0 15px 35px rgba(36,205,229,.25), inset 0 1px rgba(255,255,255,.7);
  font: 950 14px/1 system-ui;
  text-transform: uppercase;
  letter-spacing: .075em;
  cursor: pointer;
}
.axo-primary b { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: #fff; background: #152358; font-size: 21px; }
.axo-primary:disabled, .axo-cashout:disabled { opacity: .55; cursor: not-allowed; }
.axo-demo-link { width: 100%; min-height: 46px; margin-top: 9px; display: grid; place-items: center; border: 1px solid rgba(117,235,255,.24); border-radius: 15px; color: #bcf7ff; background: rgba(73,225,246,.08); font: 850 11px/1 system-ui; letter-spacing: .07em; text-align: center; text-decoration: none; text-transform: uppercase; }
.axo-text-link { width: 100%; padding: 15px 8px 4px; border: 0; color: #93a6d2; background: none; font: 800 11px/1 system-ui; text-transform: uppercase; letter-spacing: .09em; cursor: pointer; }
.axo-spinner { width: 20px!important; height: 20px!important; border: 2px solid rgba(9,24,63,.25)!important; border-top-color: #10235b!important; border-radius: 50%!important; background: transparent!important; animation: axo-spin .7s linear infinite; }
@keyframes axo-spin { to { transform: rotate(1turn); } }

.axo-game-modal:has(.axo-game-stage--arena) { width: min(100%, 520px); height: min(100dvh, 920px); max-height: 100dvh; overflow: hidden; border-radius: 0; background: linear-gradient(180deg, #251057, #12072d); }
.axo-game-modal:has(.axo-game-stage--arena)::before { display: none; }
.axo-game-modal:has(.axo-game-stage--arena) > .axo-close { display: none !important; }
.axo-game-stage--arena { width: 100%; height: 100%; min-height: 0; }
.axo-arena { width: 100%; height: 100%; min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; overflow: hidden; background: radial-gradient(circle at 50% 42%, rgb(32 216 247 / 13%), transparent 48%), linear-gradient(180deg, #2c1266, #160936); }
.axo-arena-head { min-height: calc(66px + env(safe-area-inset-top)); padding: max(13px, env(safe-area-inset-top)) 14px 8px; display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 9px; border-bottom: 1px solid rgb(255 255 255 / 10%); }
.axo-round-button { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgb(255 255 255 / 18%); border-radius: 15px; background: rgb(255 255 255 / 7%); color: #d9ccf2; font: 500 24px/1 "Nunito", ui-rounded, system-ui, sans-serif; cursor: pointer; }
.axo-sound-button svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.axo-sound-button.is-muted { color: #816ea9; }
.axo-arena-brand { display: grid; justify-items: center; }
.axo-arena-brand img { width: 134px; height: auto; display: block; filter: drop-shadow(0 7px 15px rgb(5 0 27 / 30%)); }
.axo-arena-brand span { margin-top: -3px; color: #68eafd; font: 950 7px/1 "Nunito", ui-rounded, system-ui, sans-serif; letter-spacing: .16em; }

.axo-game-stats { min-height: 67px; padding: 9px 13px; display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 8px; }
.axo-game-stats > div { min-width: 0; padding: 9px 11px; display: grid; align-content: center; border: 1px solid rgb(255 255 255 / 11%); border-radius: 14px; background: rgb(255 255 255 / 5%); }
.axo-game-stats small { display: block; color: #8e7bb7; font: 950 7px/1 "Nunito", ui-rounded, system-ui, sans-serif; letter-spacing: .11em; }
.axo-game-stats strong { display: block; margin-top: 2px; color: #fff; font: 900 17px/1 "Nunito", ui-rounded, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
[data-axo-next] { width: 25px; height: 25px; margin-top: 2px; display: block; border: 1px solid rgb(255 255 255 / 42%); border-radius: 50%; background: linear-gradient(145deg, var(--next-light, #b9fbff), var(--next-color, var(--axo-cyan)) 43%, var(--next-dark, #0b78e3)); box-shadow: inset -5px -6px 8px rgb(29 5 80 / 30%), inset 3px 4px 6px rgb(255 255 255 / 45%), 0 0 10px var(--next-color, var(--axo-cyan)); }

.axo-board-wrap { position: relative; min-height: 0; overflow: hidden; border-block: 1px solid rgb(255 255 255 / 9%); background: linear-gradient(180deg, rgb(13 4 43 / 46%), rgb(25 8 65 / 20%)); touch-action: none; }
.axo-board-wrap::before { content: ""; position: absolute; inset: 0; opacity: .18; pointer-events: none; background-image: radial-gradient(circle, #fff 1px, transparent 1.5px); background-size: 34px 34px; }
[data-axo-canvas] { position: relative; z-index: 2; width: 100%; height: 100%; min-height: 0; display: block; touch-action: none; cursor: crosshair; outline: none; }
[data-axo-canvas]:focus-visible { box-shadow: inset 0 0 0 3px var(--axo-cyan); }
.axo-danger-label { position: absolute; z-index: 3; left: 50%; padding: 4px 8px; border-radius: 999px; background: rgb(255 50 125 / 15%); color: #ff78ae; font: 950 6px/1 "Nunito", ui-rounded, system-ui, sans-serif; letter-spacing: .15em; transform: translateX(-50%); pointer-events: none; }
.axo-board-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 11px; color: #d9faff; background: rgba(4,12,39,.84); backdrop-filter: blur(8px); z-index: 4; }
.axo-board-loading[hidden] { display: none; }
.axo-board-loading strong { font: 850 13px/1.2 "Nunito", ui-rounded, system-ui, sans-serif; }
.axo-board-loading > span:not(.axo-spinner) { max-width: 260px; text-align: center; color: #aabadd; font: 600 11px/1.5 "Nunito", ui-rounded, system-ui, sans-serif; }
.axo-mini-button { min-height: 39px; padding: 0 17px; border: 0; border-radius: 12px; color: #071631; background: var(--axo-cyan); font: 850 11px/1 "Nunito", ui-rounded, system-ui, sans-serif; cursor: pointer; }
.axo-combo { position: absolute; top: 42%; left: 50%; transform: translate(-50%,-50%) rotate(-3deg); z-index: 3; text-align: center; text-shadow: 0 5px 15px #18124c; animation: axo-combo .85s both; pointer-events: none; }
.axo-combo strong { display: block; color: #fff; font: 1000 clamp(28px,8vw,43px)/.9 "Nunito", ui-rounded, system-ui, sans-serif; -webkit-text-stroke: 1px var(--axo-violet); }
.axo-combo span { display: inline-block; margin-top: 8px; padding: 6px 10px; border-radius: 99px; color: #111c4c; background: var(--axo-lime); font: 900 10px/1 "Nunito", ui-rounded, system-ui, sans-serif; }
@keyframes axo-combo { 0% { opacity: 0; transform: translate(-50%,-50%) scale(.4) rotate(-8deg); } 30%,70% { opacity: 1; transform: translate(-50%,-50%) scale(1.05) rotate(-3deg); } 100% { opacity: 0; transform: translate(-50%,-62%) scale(.9) rotate(2deg); } }
.axo-goal-flash { position: absolute; inset: 0; z-index: 5; display: grid; place-content: center; justify-items: center; color: #fff; text-align: center; background: radial-gradient(circle, rgba(108,255,113,.48), rgba(21,13,70,.86) 62%); animation: axo-goal 1.9s both; pointer-events: none; }
.axo-goal-flash[hidden] { display: none; }
.axo-goal-flash span { color: var(--axo-lime); font: 950 12px/1 "Nunito", ui-rounded, system-ui, sans-serif; letter-spacing: .16em; }
.axo-goal-flash strong { margin-top: 10px; max-width: 320px; font: 950 clamp(27px,8vw,42px)/.98 "Nunito", ui-rounded, system-ui, sans-serif; }
@keyframes axo-goal { 0% { opacity: 0; transform: scale(.86); } 20%,78% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.08); } }

.axo-game-actions { min-height: calc(130px + env(safe-area-inset-bottom)); padding: 9px 14px max(10px, env(safe-area-inset-bottom)); display: grid; align-content: center; gap: 7px; }
.axo-goal-meter { height: 4px; overflow: hidden; border-radius: 99px; background: rgb(255 255 255 / 8%); }
.axo-goal-meter i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--axo-pink), var(--axo-gold), var(--axo-lime), var(--axo-cyan)); box-shadow: 0 0 14px var(--axo-cyan); transition: width .35s ease; }
.axo-status { min-height: 13px; margin: 0; color: #9a88bf; text-align: center; font: 800 9px/1.35 "Nunito", ui-rounded, system-ui, sans-serif; }
.axo-status span { color: var(--axo-cyan); }
.axo-cashout { min-height: 58px; color: #fff; background: linear-gradient(135deg, #23daf6, #8256ff); box-shadow: 0 13px 28px rgb(36 194 244 / 18%), inset 0 1px rgb(255 255 255 / 35%); }
.axo-cashout strong { padding: 8px 10px; border-radius: 11px; color: #fff; background: rgb(23 5 65 / 22%); font-size: 14px; }
.axo-cashout:disabled { opacity: .55; filter: saturate(.65); }
.axo-round-meta { min-height: 10px; display: flex; justify-content: center; gap: 18px; color: #7564a1; font: 750 7px/1 "Nunito", ui-rounded, system-ui, sans-serif; letter-spacing: .04em; text-transform: uppercase; }
.axo-round-meta b { color: #a99bd0; font-weight: 950; }
.axo-round-meta { flex-wrap: wrap; gap: 6px 14px; font-size: 9px; line-height: 1.3; }
.axo-round-meta span { white-space: nowrap; }
.axo-round-meta [data-urgent], .axo-round-meta [data-urgent] b { color: #ffba6a; }
.axo-risk-rule { margin: 0; text-align: center; color: #d9b2ce; font: 700 9px/1.4 "Nunito", system-ui, sans-serif; }
.axo-rules-note { margin: 4px 2px 12px; color: #c8bddd; font: 600 11px/1.5 "Nunito", system-ui, sans-serif; }
[data-axo-checkpoint-retry][hidden] { display: none; }

.axo-game-modal:has(.axo-game-stage--result) { width: min(450px, calc(100% - 20px)); background: #f7f1ff; }
.axo-game-modal:has(.axo-game-stage--result)::before { opacity: .08; }
.axo-game-stage--result { position: relative; isolation: isolate; min-height: 650px; padding: 28px 26px 23px; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #2f145d; text-align: center; }
.axo-game-stage--result.is-win { background: radial-gradient(circle at 50% 4%, rgb(255 255 255 / 98%) 0 21%, rgb(246 255 229 / 92%) 48%, #f4eaff 100%); animation: axo-victory-stage-in .58s cubic-bezier(.16,1,.3,1) both; }
.axo-game-stage--result.is-loss { background: radial-gradient(circle at 50% 4%, #fff 0 18%, #eef7ff 48%, #eee6fb 100%); animation: axo-defeat-stage-in .58s cubic-bezier(.2,.8,.2,1) both; }
.axo-game-stage--result > :not(.axo-result-fx) { position: relative; z-index: 2; }
.axo-game-stage--terminal { min-height: min(650px, 80dvh); gap: 24px; }
.axo-game-stage--terminal .axo-result-fx__ring, .axo-game-stage--terminal.is-win .axo-result-fx i { top: calc(50% - 36px); }
.axo-result-fx { position: absolute; z-index: 1; inset: 0; overflow: hidden; pointer-events: none; }
.axo-result-fx__ring { position: absolute; left: 50%; top: 94px; width: 82px; height: 82px; border: 2px solid rgb(65 223 244 / 72%); border-radius: 50%; transform: translate(-50%,-50%) scale(.45); }
.is-win .axo-result-fx__ring { animation: axo-victory-ring 1.1s cubic-bezier(.16,1,.3,1) both; }
.is-win .axo-result-fx__ring--two { border-color: rgb(166 250 74 / 75%); animation-delay: .18s; }
.is-loss .axo-result-fx__ring { border-color: rgb(118 91 197 / 34%); animation: axo-defeat-ring .9s ease-out both; }
.is-loss .axo-result-fx__ring--two { animation-delay: .13s; }
.axo-result-fx i { position: absolute; display: block; pointer-events: none; }
.is-win .axo-result-fx i { left: 50%; top: 96px; width: var(--size); height: calc(var(--size) * 1.65); border-radius: 3px; background: hsl(calc(var(--i) * 47deg) 92% 58%); box-shadow: 0 0 8px rgb(255 255 255 / 62%); animation: axo-victory-confetti 1.45s var(--delay) cubic-bezier(.12,.68,.18,1) both; }
.is-loss .axo-result-fx i { left: var(--x); top: -18px; width: var(--size); height: var(--size); border: 1px solid rgb(255 255 255 / 62%); border-radius: 50%; background: radial-gradient(circle at 34% 27%, #fff 0 12%, hsl(calc(205deg + var(--i) * 7deg) 76% 72%) 28%, hsl(calc(248deg + var(--i) * 4deg) 49% 52%) 100%); box-shadow: 0 4px 11px rgb(57 38 119 / 18%); animation: axo-defeat-bubble-fall 1.75s var(--delay) cubic-bezier(.3,.2,.65,1) both; }
.axo-game-stage--result .axo-eyebrow { color: #9a4bd6; font-size: 9px; letter-spacing: .16em; }
.axo-result-art { width: 116px; height: 106px; position: relative; display: grid; place-items: center; }
.axo-result-art__orbit { position: absolute; inset: 8px; border: 2px solid rgb(122 67 202 / 20%); border-radius: 50%; }
.is-win .axo-result-art__orbit { border-color: rgb(44 216 237 / 42%); box-shadow: 0 0 0 9px rgb(164 246 70 / 9%), 0 0 38px rgb(31 210 241 / 27%); animation: axo-victory-orbit .9s .18s cubic-bezier(.16,1,.3,1) both; }
.is-loss .axo-result-art__orbit { border-style: dashed; border-color: rgb(116 90 185 / 27%); animation: axo-defeat-orbit 1.1s .08s ease-out both; }
.axo-result-art img { position: relative; z-index: 2; width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 11px 16px rgb(73 23 137 / 18%)); }
.is-win .axo-result-art img { animation: axo-victory-mascot .92s .08s cubic-bezier(.16,1.4,.3,1) both; }
.is-loss .axo-result-art img { animation: axo-defeat-mascot .85s .05s cubic-bezier(.24,.72,.3,1) both; }
.axo-game-stage--result h2 { max-width: 360px; margin: 7px 0 8px; font: 950 clamp(28px,8vw,38px)/.98 "Nunito", ui-rounded, system-ui, sans-serif; letter-spacing: -.04em; }
.is-win.axo-game-stage--result h2 { color: #4d197d; animation: axo-victory-title .72s .28s cubic-bezier(.16,1,.3,1) both; }
.is-loss.axo-game-stage--result h2 { color: #3b285f; animation: axo-defeat-title .72s .26s ease-out both; }
.axo-game-stage--result > p { max-width: 330px; margin: 0; color: #705f91; font: 600 13px/1.45 "Nunito", ui-rounded, system-ui, sans-serif; }
.axo-result-value { width: 100%; margin: 18px 0 10px; padding: 18px 10px; border: 1px solid #dcd0fa; border-radius: 23px; background: linear-gradient(145deg, #fff, #f4edff); }
.axo-result-value span, .axo-result-value strong { display: block; }
.axo-result-value span { color: #8c7aa8; font: 800 8px/1 "Nunito", ui-rounded, system-ui, sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.axo-result-value strong { margin-top: 5px; color: #19a966; font: 1000 clamp(39px,11vw,57px)/1 "Nunito", ui-rounded, system-ui, sans-serif; letter-spacing: -.05em; }
.axo-game-stage--result.is-win .axo-result-value { animation: axo-victory-prize .64s .35s cubic-bezier(.16,1.25,.3,1) both; }
.axo-game-stage--result.is-loss .axo-result-value { background: linear-gradient(145deg, #fff, #eeeafa); animation: axo-defeat-prize .58s .34s ease-out both; }
.axo-game-stage--result.is-loss .axo-result-value strong { color: #725b9b; }
.axo-result-metrics { width: 100%; margin-bottom: 18px; display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.axo-result-metrics div { padding: 11px 5px; border: 1px solid #e4daf9; border-radius: 14px; background: rgb(255 255 255 / 55%); animation: axo-result-metric-in .45s .46s ease-out both; }
.axo-result-metrics div:nth-child(2) { animation-delay: .53s; }
.axo-result-metrics div:nth-child(3) { animation-delay: .6s; }
.axo-result-metrics span, .axo-result-metrics strong { display: block; }
.axo-result-metrics span { color: #9889ae; font: 700 8px/1 "Nunito", ui-rounded, system-ui, sans-serif; text-transform: uppercase; }
.axo-result-metrics strong { margin-top: 6px; color: #3b2168; font: 900 15px/1 "Nunito", ui-rounded, system-ui, sans-serif; }
.axo-result-confirmation { min-height: 18px; margin: 0 0 10px !important; color: #8877a5 !important; font-size: 10px !important; }
.axo-game-stage--result .axo-primary { min-height: 66px; color: #351260; background: linear-gradient(135deg, var(--axo-gold), #ffae25 48%, #ff784b); box-shadow: 0 16px 36px rgb(255 141 27 / 25%), inset 0 2px rgb(255 255 255 / 52%); }
.axo-game-stage--result .axo-text-link { color: #725b9b; }

@keyframes axo-victory-stage-in { from { opacity: 0; transform: scale(.94); filter: saturate(1.45) brightness(1.18); } }
@keyframes axo-defeat-stage-in { 0% { opacity: 0; transform: translateX(-7px); filter: saturate(.55); } 38% { transform: translateX(5px); } 67% { transform: translateX(-2px); } }
@keyframes axo-victory-ring { 0% { opacity: .85; transform: translate(-50%,-50%) scale(.35); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(2.75); } }
@keyframes axo-defeat-ring { 0% { opacity: .7; transform: translate(-50%,-50%) scale(1.7); } 100% { opacity: 0; transform: translate(-50%,-50%) scale(.45); } }
@keyframes axo-victory-confetti { 0% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--angle)) translateY(0) scale(.25); } 18% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%,-50%) rotate(var(--angle)) translateY(calc(-1 * var(--distance))) rotate(260deg) scale(1); } }
@keyframes axo-defeat-bubble-fall { 0% { opacity: 0; transform: translate3d(0,-18px,0) scale(1.12); } 17% { opacity: .62; } 100% { opacity: 0; transform: translate3d(var(--drift),520px,0) scale(.18); } }
@keyframes axo-victory-orbit { 0% { opacity: 0; transform: scale(.35) rotate(-80deg); } 68% { opacity: 1; transform: scale(1.08) rotate(8deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes axo-defeat-orbit { 0% { opacity: 0; transform: scale(1.4) rotate(35deg); } 100% { opacity: .68; transform: scale(.92) rotate(-12deg); } }
@keyframes axo-victory-mascot { 0% { opacity: 0; transform: translateY(24px) scale(.45) rotate(-14deg); } 66% { opacity: 1; transform: translateY(-8px) scale(1.12) rotate(5deg); } 100% { transform: none; } }
@keyframes axo-defeat-mascot { 0% { opacity: 0; transform: translateY(-18px) scale(1.08) rotate(8deg); } 56% { opacity: 1; transform: translateY(8px) scale(.94) rotate(-5deg); } 100% { transform: translateY(3px) scale(.97) rotate(-2deg); filter: saturate(.78); } }
@keyframes axo-victory-title { from { opacity: 0; transform: translateY(12px) scale(.9); filter: blur(3px); } }
@keyframes axo-defeat-title { from { opacity: 0; transform: translateY(-7px); filter: blur(2px); } }
@keyframes axo-victory-prize { from { opacity: 0; transform: translateY(14px) scale(.86); } }
@keyframes axo-defeat-prize { from { opacity: 0; transform: translateY(9px); } }
@keyframes axo-result-metric-in { from { opacity: 0; transform: translateY(9px) scale(.96); } }

@media (max-width: 560px) {
  .overlay:has(.axo-game-modal) { align-items: stretch; padding: 0; }
  .axo-game-modal { width: 100%; max-height: 100svh; min-height: 100svh; border: 0; border-radius: 0; }
  .axo-menu-art { height: 29svh; min-height: 205px; }
  .axo-game-stage--menu { min-height: 100svh; display: flex; flex-direction: column; }
  .axo-menu-copy { padding-top: 10px; }
  .axo-wallet-card { margin-top: 10px; }
  .axo-primary { margin-top: auto; }
  .axo-game-stage--arena { width: 100%; height: 100svh; min-height: 0; }
  [data-axo-canvas] { height: 100%; min-height: 0; max-height: none; }
  .axo-game-stage--result { min-height: 100svh; }
}

@media (max-height: 760px) and (max-width: 560px) {
  .axo-menu-art { height: 190px; min-height: 190px; }
  .axo-menu-art img { width: 160px; height: 160px; }
  .axo-menu-copy p { display: none; }
  .axo-menu-logo { height: 58px; }
  .axo-wallet-card { margin: 6px 0; }
  .axo-stake-block { padding: 10px; }
  .axo-secure-note { margin: 6px 2px; }
  .axo-arena-head { min-height: calc(58px + env(safe-area-inset-top)); padding-top: max(9px, env(safe-area-inset-top)); }
  .axo-game-stats { min-height: 61px; padding-block: 7px; }
  .axo-game-actions { min-height: calc(121px + env(safe-area-inset-bottom)); padding-top: 7px; }
  [data-axo-canvas] { height: 100%; min-height: 0; }
  .axo-game-stage--result { padding-block: 18px; }
  .axo-result-art { width: 100px; height: 90px; }
  .axo-result-art img { width: 80px; height: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .axo-goal-meter i { transition: none; }
  .axo-spinner, .axo-combo, .axo-goal-flash, .axo-game-stage--result, .axo-result-fx *, .axo-result-art img, .axo-result-art__orbit, .axo-result-value, .axo-result-metrics div, .axo-game-stage--result h2 { animation: none !important; }
  .axo-result-fx { display: none; }
}
.standalone-game:has(.axo-arena) { background: radial-gradient(ellipse at 50% 20%, #351763, #100822 75%); }
.standalone-game .overlay:has(.axo-arena) { padding: 0; background: transparent; }
.standalone-game .axo-game-modal:has(.axo-arena) { height: 100dvh; max-height: 100dvh; }
.standalone-game .axo-game-actions { min-height: 112px; gap: 5px; padding: 7px 14px max(8px,env(safe-area-inset-bottom)); }
.standalone-game .axo-game-stats { min-height: 58px; padding-block: 6px; }
.standalone-game .axo-cashout { min-height: 48px; }

/* An active arena has its own viewport surface. In Safari, the inherited
   backdrop-filter layer can remain unpainted after the inert entry is removed. */
.standalone-game #overlay-root.axo-arena-host { position: fixed; inset: 0; width: 100%; height: var(--axo-viewport-height, 100dvh); overflow: hidden; visibility: visible; isolation: isolate; }
.overlay.axo-arena-overlay { position: absolute; inset: 0; height: 100%; padding: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; animation: none; opacity: 1; visibility: visible; transform: none; }
.standalone-game .axo-game-modal.axo-game-modal--arena { width: min(100%, 520px); height: 100%; min-height: 0; max-height: 100%; overflow: hidden; border: 0; border-radius: 0; background: linear-gradient(180deg, #251057, #12072d); }
.axo-game-modal--arena::before, .axo-game-modal--arena > .axo-close { display: none !important; }
.axo-game-modal--arena > .axo-game-stage--arena { height: 100%; min-height: 0; visibility: visible; opacity: 1; }
