:root {
  --bg-top: #06101f;
  --bg-mid: #12355f;
  --bg-bottom: #0b2747;
  --card: rgba(0, 0, 0, 0.22);
  --card-strong: rgba(8, 17, 31, 0.48);
  --card-border: rgba(255, 255, 255, 0.12);
  --text: #f6f8fb;
  --muted: rgba(255, 255, 255, 0.82);
  --soft: rgba(255, 255, 255, 0.62);
  --orange: #f0602f;
  --navy-button: #20385f;
  --gold-flat: #f7cb3d;
  --bronze-a: #d09957;
  --bronze-b: #8f5221;
  --silver-a: #edf2fc;
  --silver-b: #9ba8bc;
  --gold-a: #ffe774;
  --gold-b: #da9518;
  --success: #2ba853;
  --loss: #bb2d33;
  --shadow: 0 26px 60px rgba(0, 0, 0, 0.34);
  --font-display: "Bricolage Grotesque", "Avenir Next", sans-serif;
  --font-body: "Plus Jakarta Sans", "Avenir Next", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(5, 10, 20, 0.42), rgba(8, 15, 28, 0.72)),
    radial-gradient(circle at 18% 12%, rgba(134, 190, 255, 0.25), transparent 28%),
    radial-gradient(circle at 80% 90%, rgba(255, 210, 110, 0.18), transparent 24%),
    linear-gradient(180deg, var(--bg-top), var(--bg-mid), var(--bg-bottom)),
    url("https://unsplash.com/photos/o865Sgvd5pM/download?force=true");
  background-size: auto, auto, auto, auto, cover;
  background-position: center, center, center, center, center top;
  background-attachment: fixed, fixed, fixed, fixed, fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 22%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.12), transparent 26%),
    radial-gradient(circle at top, rgba(255, 255, 255, 0.06), transparent 34%);
}

[hidden] {
  display: none !important;
}

.app-shell {
  position: relative;
  width: min(100%, 520px);
  height: 100vh;
  height: 100svh;
  min-height: 100vh;
  min-height: 100svh;
  margin: 0 auto;
  padding: 18px 14px 28px;
  overflow: hidden;
}

.app-shell::before {
  content: "";
  position: absolute;
  inset: -10% -30% auto;
  height: 240px;
  pointer-events: none;
  background:
    radial-gradient(circle, rgba(255, 219, 102, 0.16), transparent 45%);
  filter: blur(10px);
}

.screen {
  display: none;
  height: 100%;
}

.screen.is-active {
  display: block;
  animation: screen-enter 180ms ease;
}

.screen-scroll {
  display: grid;
  gap: 18px;
  min-height: 100%;
  max-height: 100%;
  overflow-y: auto;
  padding-bottom: 12px;
  scrollbar-width: none;
}

.screen-scroll::-webkit-scrollbar {
  display: none;
}

.screen-home .screen-scroll {
  align-content: center;
}

@keyframes screen-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

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

.logo-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 278px;
  padding-top: 2px;
}

.logo-aura,
.logo-shadow {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.logo-aura-cool {
  width: 242px;
  height: 242px;
  background: rgba(255, 255, 255, 0.14);
  filter: blur(42px);
  transform: translateY(-14px);
}

.logo-aura-warm {
  width: 294px;
  height: 294px;
  background: rgba(249, 196, 41, 0.22);
  filter: blur(58px);
  transform: translateY(8px);
}

.logo-shadow {
  width: 236px;
  height: 42px;
  background: rgba(0, 0, 0, 0.26);
  filter: blur(20px);
  transform: translateY(102px);
}

.logo-frame {
  position: relative;
  width: 242px;
  height: 242px;
  padding: 0;
  border-radius: 56px;
  background:
    linear-gradient(145deg, rgba(15, 25, 43, 0.98), rgba(23, 34, 58, 0.98));
  box-shadow: 0 28px 32px rgba(0, 0, 0, 0.32);
}

.logo-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 56px;
  padding: 1.5px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(249, 196, 41, 0.34));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.logo-frame img {
  width: 242px;
  height: 242px;
  display: block;
  object-fit: cover;
  border-radius: 56px;
}

.hero-copy {
  text-align: center;
  padding: 0 12px;
}

.hero-kicker {
  margin: 0 0 10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: rgba(247, 209, 102, 0.94);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.35rem, 8.2vw, 3rem);
  line-height: 0.95;
  font-weight: 800;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.34);
  text-wrap: balance;
}

.hero-lead {
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
  text-wrap: balance;
}

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

.home-stat {
  padding: 14px 12px;
  border-radius: 20px;
  background: rgba(8, 16, 31, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.22);
  text-align: center;
  backdrop-filter: blur(12px);
}

.home-stat-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.62);
}

.home-stat strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 1.28rem;
  letter-spacing: -0.03em;
}

.glass-card {
  border-radius: 28px;
  padding: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0)),
    var(--card);
  border: 1px solid var(--card-border);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.glass-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 30%);
  opacity: 0.9;
}

.feature-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.feature-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 12px;
  align-items: center;
  font-size: 1rem;
  line-height: 1.45;
}

.feature-icon,
.pill-icon,
.expansion-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 22px rgba(0, 0, 0, 0.16);
}

.feature-icon img,
.pill-icon img {
  width: 34px;
  height: 34px;
  display: block;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.22));
}

.primary-cta,
.ghost-pill,
.action-button,
.result-primary,
.expansion-action,
.token-balance-card {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.primary-cta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 22px;
  background: #ffffff;
  color: #0b1320;
  font-size: 1.22rem;
  font-weight: 800;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.cta-icon {
  font-size: 0.95rem;
}

.primary-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.72), transparent 52%);
  transform: translateX(-110%);
  animation: cta-shine 4.8s ease-in-out infinite;
}

@keyframes cta-shine {
  0%,
  62%,
  100% {
    transform: translateX(-110%);
  }

  74% {
    transform: translateX(110%);
  }
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 2px;
}

.chip-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
}

.chip-icon {
  font-size: 0.9rem;
  opacity: 0.9;
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.top-bar-progress {
  justify-content: flex-start;
}

.ghost-pill {
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  font-size: 1rem;
  font-weight: 800;
}

.progress-back-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
  font-size: 0.95rem;
}

.progress-back-icon {
  display: grid;
  place-items: center;
  align-self: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.72rem;
  font-weight: 900;
  line-height: 0.78;
  transform: translateY(-2px);
}

.summary-card,
.guesses-card,
.hints-card,
.guess-card,
.expansion-card {
  display: grid;
  gap: 14px;
}

.summary-intro,
.summary-meta,
.expansion-note,
.expansion-count,
.hint-counter,
.pill-copy span,
.status-pill {
  margin: 0;
}

.summary-intro {
  font-size: 1.35rem;
  font-weight: 800;
  font-family: var(--font-display);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.summary-meta {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.45;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
}

.progress-fill.bronze {
  background: linear-gradient(90deg, var(--bronze-a), var(--bronze-b));
}

.progress-fill.silver {
  background: linear-gradient(90deg, var(--silver-a), var(--silver-b));
}

.progress-fill.gold {
  background: linear-gradient(90deg, var(--gold-a), var(--gold-b));
}

.expansion-stack {
  display: grid;
  gap: 14px;
}

.expansion-card {
  padding: 20px;
}

.expansion-top {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.expansion-icon {
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
  color: #091220;
}

.expansion-icon.bronze {
  background: linear-gradient(135deg, var(--bronze-a), var(--bronze-b));
}

.expansion-icon.silver {
  background: linear-gradient(135deg, var(--silver-a), var(--silver-b));
}

.expansion-icon.gold {
  background: linear-gradient(135deg, var(--gold-a), var(--gold-b));
}

.expansion-copy {
  flex: 1;
}

.expansion-copy h3 {
  margin: 0;
  font-size: 1.38rem;
  line-height: 1.05;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.expansion-range {
  margin: 6px 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.72);
}

.status-pill {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  align-self: center;
}

.status-pill.bronze,
.expansion-action.bronze {
  background: linear-gradient(135deg, var(--bronze-a), var(--bronze-b));
  color: #130d07;
}

.status-pill.silver,
.expansion-action.silver {
  background: linear-gradient(135deg, var(--silver-a), var(--silver-b));
  color: #0e1a2a;
}

.status-pill.gold,
.expansion-action.gold {
  background: linear-gradient(135deg, var(--gold-a), var(--gold-b));
  color: #2d2004;
}

.status-pill.locked {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.76);
}

.expansion-note {
  font-size: 0.95rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.84);
}

.expansion-count {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.74);
}

.expansion-action {
  width: 100%;
  padding: 15px 16px;
  border-radius: 18px;
  font-size: 1rem;
  font-weight: 800;
}

.game-top-grid {
  display: grid;
  gap: 10px;
}

.game-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.game-chip,
.game-wide-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    rgba(9, 18, 33, 0.82);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.game-chip::before,
.game-wide-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%);
}

.game-chip {
  min-width: 0;
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 24px;
  appearance: none;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.game-chip-home {
  justify-content: flex-start;
}

.game-chip-token {
  justify-content: flex-start;
  gap: 10px;
}

.game-chip-token strong {
  margin-left: 6px;
}

.game-chip-token .game-chip-label {
  margin-left: 2px;
}

.game-chip-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 18px rgba(0, 0, 0, 0.14);
  font-size: 0.9rem;
  font-weight: 900;
}

.game-chip-icon img {
  width: 32px;
  height: 32px;
  display: block;
  filter: drop-shadow(0 3px 7px rgba(0, 0, 0, 0.28));
}

.game-wide-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 3px;
}

.game-chip-label,
.game-wide-copy span {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.66);
}

.game-chip strong {
  font-size: 1.34rem;
  line-height: 1;
  color: var(--text);
}

.game-wide-card {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 26px;
}

.game-level-card {
  background:
    radial-gradient(circle at 18% 20%, rgba(238, 180, 91, 0.2), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0)),
    rgba(9, 18, 33, 0.84);
}

.game-attempts-card {
  background:
    radial-gradient(circle at 18% 24%, rgba(242, 76, 91, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0)),
    rgba(9, 18, 33, 0.84);
}

.game-wide-copy strong {
  font-family: var(--font-display);
  font-size: 1.26rem;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.game-wide-value {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 12px 22px rgba(0, 0, 0, 0.2);
  font-size: 1.18rem;
  line-height: 1;
}

.stat-pill .pill-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

.stat-pill .pill-icon img {
  width: 56px;
  height: 56px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.16));
}

.pill-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.pill-copy span {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.84);
}

.pill-copy strong {
  font-size: 1.32rem;
  line-height: 1;
}

.coin-stack {
  position: relative;
  width: 48px;
  height: 48px;
  flex: none;
}

.coin-stack.compact {
  width: 30px;
  height: 22px;
}

.coin {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #fef18d, #c57a0b);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.34);
  color: #6a4307;
  font-weight: 900;
}

.coin-back {
  width: 26px;
  height: 26px;
  left: 2px;
  top: 18px;
}

.compact .coin-back {
  width: 18px;
  height: 18px;
  left: 1px;
  top: 7px;
}

.coin-mid {
  width: 26px;
  height: 26px;
  right: 2px;
  top: 14px;
}

.compact .coin-mid {
  width: 18px;
  height: 18px;
  right: 1px;
  top: 5px;
}

.coin-front {
  width: 30px;
  height: 30px;
  left: 9px;
  top: 8px;
  font-size: 1rem;
}

.compact .coin-front {
  width: 21px;
  height: 21px;
  left: 5px;
  top: 0;
  font-size: 0.72rem;
}

.attempts-orb-icon {
  position: relative;
  z-index: 1;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
}

.attempts-orb-icon img {
  width: 46px;
  height: 46px;
  display: block;
}

.guesses-card h3,
.hints-card h3,
.guess-card h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.level-medal {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.22);
}

.level-medal.bronze {
  background: linear-gradient(135deg, var(--bronze-a), var(--bronze-b));
}

.level-medal.silver {
  background: linear-gradient(135deg, var(--silver-a), var(--silver-b));
  color: #13213a;
}

.level-medal.gold {
  background: linear-gradient(135deg, var(--gold-a), var(--gold-b));
  color: #2f2203;
}

.medal-star {
  font-size: 1rem;
  line-height: 1;
}

.medal-letter {
  position: absolute;
  right: 1px;
  bottom: 0;
  width: 12px;
  height: 12px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 0.45rem;
  font-weight: 900;
}

.guesses-card,
.hints-card,
.guess-card {
  padding: 19px 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    rgba(9, 18, 33, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.guesses-card h3,
.hints-card h3,
.guess-card h3 {
  font-size: 1.18rem;
}

.guess-list,
.hint-list,
.guess-form {
  display: grid;
  gap: 10px;
}

.guess-bubble {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.section-header-inline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hint-counter {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.76);
}

.hint-item {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.11);
}

.hint-item.is-latest {
  background: rgba(255, 255, 255, 0.18);
  animation: hint-reveal 320ms ease;
}

@keyframes hint-reveal {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }

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

.hint-index {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  font-size: 0.88rem;
  font-weight: 800;
}

.hint-copy {
  font-size: 1.06rem;
  line-height: 1.42;
  text-wrap: pretty;
}

.guess-form input {
  width: 100%;
  padding: 15px 16px;
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  color: #091321;
  font: inherit;
  font-size: 1rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    0 14px 26px rgba(0, 0, 0, 0.08);
}

.guess-form input::placeholder {
  color: rgba(9, 19, 33, 0.5);
}

.action-button {
  width: 100%;
  padding: 16px 16px;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 800;
  box-shadow:
    0 20px 34px rgba(0, 0, 0, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.action-button-primary {
  background: linear-gradient(180deg, #ff7a47, var(--orange));
  color: #fff;
  box-shadow:
    0 18px 32px rgba(240, 96, 47, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.action-button-secondary {
  background: linear-gradient(180deg, #284773, var(--navy-button));
  color: #fff;
}

.action-button-skip {
  background: linear-gradient(180deg, #ffe16d, var(--gold-flat));
  color: #0d1420;
}

.action-button:disabled,
.primary-cta:disabled,
.ghost-pill:disabled,
.expansion-action:disabled,
.token-balance-card:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}

.result-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  z-index: 30;
}

.result-card {
  width: min(100%, 320px);
  padding: 24px;
  border-radius: 30px;
  text-align: center;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
}

.result-card h2 {
  margin: 0;
  font-size: 1.78rem;
  font-family: var(--font-display);
  letter-spacing: -0.03em;
}

.result-card p {
  margin: 14px 0 18px;
  font-size: 1.05rem;
  line-height: 1.5;
  white-space: pre-line;
}

.result-card::after {
  content: "";
  position: absolute;
  inset: -30% auto auto -20%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(10px);
}

.result-emblem {
  width: 66px;
  height: 66px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 1.6rem;
  font-weight: 900;
  box-shadow: 0 18px 28px rgba(0, 0, 0, 0.18);
  position: relative;
  z-index: 1;
}

.result-burst {
  position: absolute;
  inset: 20px 0 auto;
  height: 84px;
  pointer-events: none;
}

.result-burst span {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
  animation: confetti-pop 900ms ease-out infinite alternate;
}

.result-burst span:nth-child(1) {
  left: 20%;
  top: 26px;
  animation-delay: 0ms;
}

.result-burst span:nth-child(2) {
  left: 32%;
  top: 10px;
  animation-delay: 120ms;
}

.result-burst span:nth-child(3) {
  left: 44%;
  top: 20px;
  animation-delay: 240ms;
}

.result-burst span:nth-child(4) {
  left: 58%;
  top: 12px;
  animation-delay: 80ms;
}

.result-burst span:nth-child(5) {
  left: 68%;
  top: 28px;
  animation-delay: 200ms;
}

.result-burst span:nth-child(6) {
  left: 78%;
  top: 16px;
  animation-delay: 320ms;
}

@keyframes confetti-pop {
  from {
    transform: translateY(0) scale(0.9);
    opacity: 0.25;
  }

  to {
    transform: translateY(-10px) scale(1.2);
    opacity: 1;
  }
}

.result-card-win {
  background: rgba(38, 159, 82, 0.95);
}

.result-card-reveal {
  background: rgba(26, 50, 95, 0.95);
}

.result-card-loss {
  background: rgba(185, 43, 50, 0.95);
}

.result-card-complete {
  background: rgba(26, 50, 95, 0.95);
}

.result-primary {
  width: 100%;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  color: #091321;
  font-size: 1.02rem;
  font-weight: 900;
}

.result-card-loss .result-burst {
  display: none;
}

.result-card-reveal .result-burst span,
.result-card-complete .result-burst span {
  background: rgba(255, 231, 116, 0.95);
}

@media (max-width: 420px) {
  .app-shell {
    padding-left: 12px;
    padding-right: 12px;
  }

  .hero-copy h1 {
    font-size: 2.1rem;
  }

  .home-stats {
    gap: 8px;
  }

  .home-stat {
    padding: 12px 10px;
  }

  .feature-row,
  .hero-lead,
  .expansion-note,
  .hint-copy {
    font-size: 0.98rem;
  }

}
