:root {
  --bg: #eef4f1;
  --ink: #121417;
  --muted: #68727d;
  --panel: #ffffff;
  --line: #dce4df;
  --green: #128060;
  --green-dark: #0b5542;
  --red: #d94b3d;
  --yellow: #f2c24d;
  --blue: #2f6bd9;
  --violet: #7257c9;
  --shadow: 0 28px 80px rgba(19, 35, 30, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(120deg, rgba(18, 128, 96, 0.12), transparent 34%),
    linear-gradient(240deg, rgba(217, 75, 61, 0.12), transparent 38%),
    var(--bg);
}

button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(360px, 1.15fr);
  gap: 48px;
  min-height: 100svh;
  padding: clamp(24px, 5vw, 72px);
  align-items: center;
}

.strategy-panel {
  max-width: 760px;
}

.eyebrow,
.app-header span,
.sub-header span,
.hero-card p,
.section-title span,
.cooldown-card span,
.score-card span,
.turn-panel span,
.match-scoreboard span,
.wallet-card span,
.refer-card span,
.admin-grid span,
.ad-card span {
  margin: 0;
  color: var(--green-dark);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.intro {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.72;
}

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

.system-grid article {
  min-height: 164px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 36px rgba(19, 35, 30, 0.08);
}

.system-grid span {
  display: inline-grid;
  min-width: 52px;
  min-height: 30px;
  margin-bottom: 16px;
  padding: 0 10px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 900;
  background: var(--ink);
}

.system-grid strong {
  display: block;
  margin-bottom: 8px;
}

.system-grid p,
.cooldown-card p,
.mission-list p,
.turn-panel p,
.wallet-card p,
.refer-card p,
.admin-grid p,
.fair-list p,
.event-log p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.45;
}

.phone-stage {
  display: grid;
  place-items: center;
}

.phone {
  position: relative;
  width: min(430px, 100%);
  height: min(880px, calc(100svh - 48px));
  min-height: 730px;
  overflow: hidden;
  border: 10px solid #15191e;
  border-radius: 34px;
  background: #f6f8f4;
  box-shadow: var(--shadow);
}

.speaker {
  position: absolute;
  z-index: 30;
  top: 12px;
  left: 50%;
  width: 84px;
  height: 7px;
  border-radius: 999px;
  background: #252b32;
  transform: translateX(-50%);
}

.screen {
  position: absolute;
  inset: 0;
  display: none;
  overflow-y: auto;
  padding: 42px 18px 92px;
  background: #f7faf7;
}

.screen.is-active {
  display: block;
}

.app-header,
.sub-header,
.section-title,
.match-scoreboard,
.turn-panel,
.ledger-item,
.leaderboard-row,
.cap-list article {
  display: flex;
  align-items: center;
}

.app-header,
.sub-header,
.section-title,
.turn-panel {
  justify-content: space-between;
  gap: 14px;
}

.app-header h2,
.sub-header h2 {
  margin: 3px 0 0;
  font-size: 1.55rem;
  letter-spacing: 0;
}

.icon-button,
.back-button {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
  background: #e7eee9;
}

.back-button {
  flex: 0 0 auto;
  font-size: 1.8rem;
}

.hero-card {
  display: grid;
  min-height: 192px;
  margin-top: 22px;
  padding: 20px;
  align-content: end;
  border-radius: 8px;
  color: #ffffff;
  background:
    linear-gradient(160deg, rgba(14, 21, 18, 0.2), rgba(14, 21, 18, 0.86)),
    url("https://images.unsplash.com/photo-1606167668584-78701c57f13d?auto=format&fit=crop&w=900&q=80") center/cover;
}

.hero-card h3 {
  max-width: 300px;
  margin: 6px 0 16px;
  font-size: 1.55rem;
  line-height: 1.08;
}

.hero-card p {
  color: rgba(255, 255, 255, 0.84);
}

.primary-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 900;
  background: var(--green);
  box-shadow: 0 12px 28px rgba(18, 128, 96, 0.28);
}

.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.text-button {
  min-height: 34px;
  padding: 0 10px;
  border-radius: 8px;
  color: var(--green-dark);
  font-weight: 900;
  background: #e4f1eb;
}

.stat-row,
.score-grid,
.admin-grid,
.cap-list {
  display: grid;
  gap: 10px;
}

.stat-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 16px 0;
}

.stat-row article,
.cooldown-card,
.score-card,
.mission-list,
.wallet-card,
.refer-card,
.admin-grid article,
.fair-list article,
.turn-panel,
.event-log,
.leaderboard-row,
.ledger-item,
.cap-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 10px 24px rgba(19, 35, 30, 0.06);
}

.stat-row article {
  min-height: 82px;
  padding: 12px;
}

.stat-row span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.stat-row strong {
  font-size: 1.45rem;
}

.cooldown-card,
.score-card,
.mission-list,
.wallet-card,
.refer-card {
  margin-bottom: 16px;
  padding: 16px;
}

.cooldown-card strong {
  display: block;
  margin: 5px 0;
}

.score-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.score-grid p {
  min-height: 46px;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #f0f4f1;
  color: var(--muted);
  font-size: 0.9rem;
}

.score-grid b {
  color: var(--ink);
}

.mission-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0 0;
}

.mission-list article + article {
  border-top: 1px solid var(--line);
  margin-top: 14px;
}

.mission-list strong,
.mission-list p {
  margin: 0;
}

.mission-list em {
  min-width: 86px;
  padding: 8px;
  border-radius: 8px;
  color: var(--green-dark);
  font-style: normal;
  font-weight: 900;
  text-align: center;
  background: #e4f1eb;
}

.match-scoreboard {
  gap: 10px;
  margin: 18px 0;
}

.match-scoreboard article {
  flex: 1;
  padding: 14px;
  border-radius: 8px;
  color: #ffffff;
}

.match-scoreboard article:first-child {
  background: var(--green);
}

.match-scoreboard article:last-child {
  background: var(--red);
}

.match-scoreboard span {
  color: rgba(255, 255, 255, 0.82);
}

.match-scoreboard strong {
  display: block;
  margin-top: 6px;
  font-size: 2rem;
}

.ludo-table {
  margin-bottom: 16px;
  padding: 10px;
  border-radius: 8px;
  background: #17202a;
  box-shadow: 0 16px 34px rgba(19, 35, 30, 0.16);
}

.classic-board {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid #ffffff;
  border-radius: 8px;
  background: #fff9e8;
  box-shadow: inset 0 0 0 2px rgba(23, 32, 42, 0.18);
}

.home-yard {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12%;
  width: 40%;
  aspect-ratio: 1;
  padding: 13% 8% 8%;
  border: 3px solid #ffffff;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 900;
  outline: 1px solid rgba(23, 32, 42, 0.18);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.home-yard span {
  position: absolute;
  top: 7%;
  left: 0;
  width: 100%;
  font-size: clamp(0.62rem, 2.2vw, 0.86rem);
  text-align: center;
}

.home-yard i {
  display: block;
  aspect-ratio: 1;
  border: 3px solid #ffffff;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.94) 0 38%, rgba(255, 255, 255, 0.5) 39% 40%, transparent 41%),
    rgba(255, 255, 255, 0.22);
}

.red-yard {
  top: 0;
  left: 0;
  background: #dc4338;
}

.green-yard {
  top: 0;
  right: 0;
  background: #13945f;
}

.blue-yard {
  left: 0;
  bottom: 0;
  background: #2367d1;
}

.yellow-yard {
  right: 0;
  bottom: 0;
  color: #332c14;
  background: #f5c542;
}

.board-cells {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(15, 1fr);
  grid-template-rows: repeat(15, 1fr);
  pointer-events: none;
}

.board-tokens {
  position: absolute;
  inset: 0;
  z-index: 12;
}

.track-cell {
  position: relative;
  display: grid;
  place-items: center;
  border: 1px solid rgba(23, 32, 42, 0.22);
  background: #fffdf4;
}

.track-cell.safe::after {
  content: "★";
  color: rgba(23, 32, 42, 0.5);
  font-size: 0.68rem;
  line-height: 1;
}

.track-cell.red {
  background: #dc4338;
}

.track-cell.green {
  background: #13945f;
}

.track-cell.blue {
  background: #2367d1;
}

.track-cell.yellow {
  background: #f5c542;
}

.track-cell.start::before {
  content: "";
  width: 46%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}

.finish-home {
  position: absolute;
  z-index: 4;
  inset: 40%;
  overflow: hidden;
  border: 2px solid #ffffff;
  border-radius: 6px;
  background: #ffffff;
  transform: rotate(45deg);
  box-shadow: 0 8px 18px rgba(23, 32, 42, 0.24);
}

.finish-home span {
  position: absolute;
  width: 50%;
  height: 50%;
}

.finish-red {
  top: 0;
  left: 0;
  background: #dc4338;
}

.finish-green {
  top: 0;
  right: 0;
  background: #13945f;
}

.finish-blue {
  bottom: 0;
  left: 0;
  background: #2367d1;
}

.finish-yellow {
  bottom: 0;
  right: 0;
  background: #f5c542;
}

.moving-token {
  position: absolute;
  z-index: 12;
  display: grid;
  width: clamp(24px, 8.2%, 34px);
  aspect-ratio: 1;
  place-items: center;
  padding: 0;
  border: 3px solid #ffffff;
  border-radius: 999px 999px 999px 7px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.28);
  transform: translate(-50%, -50%) rotate(-45deg);
  transition: left 280ms ease, top 280ms ease, opacity 180ms ease;
}

.green-token {
  background: #13945f;
}

.red-token {
  background: #dc4338;
}

.moving-token.is-playable {
  outline: 4px solid rgba(245, 197, 66, 0.82);
  outline-offset: 2px;
  animation: token-pulse 900ms ease-in-out infinite;
}

.moving-token.is-finished {
  background: #17202a;
}

@keyframes token-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.22); }
}

.dice-button {
  position: absolute;
  z-index: 14;
  inset: 50% auto auto 50%;
  display: grid;
  width: clamp(58px, 17%, 76px);
  aspect-ratio: 1;
  place-items: center;
  border: 4px solid #17202a;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.26);
  transform: translate(-50%, -50%);
}

.dice-button.is-rolling {
  animation: dice-pop 360ms ease;
}

.dice-button:disabled {
  cursor: not-allowed;
  opacity: 0.74;
}

.dice-face {
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.dice-face i {
  display: block;
  border-radius: 50%;
  background: transparent;
}

.dice-face[data-value="1"] i:nth-child(5),
.dice-face[data-value="2"] i:nth-child(1),
.dice-face[data-value="2"] i:nth-child(9),
.dice-face[data-value="3"] i:nth-child(1),
.dice-face[data-value="3"] i:nth-child(5),
.dice-face[data-value="3"] i:nth-child(9),
.dice-face[data-value="4"] i:nth-child(1),
.dice-face[data-value="4"] i:nth-child(3),
.dice-face[data-value="4"] i:nth-child(7),
.dice-face[data-value="4"] i:nth-child(9),
.dice-face[data-value="5"] i:nth-child(1),
.dice-face[data-value="5"] i:nth-child(3),
.dice-face[data-value="5"] i:nth-child(5),
.dice-face[data-value="5"] i:nth-child(7),
.dice-face[data-value="5"] i:nth-child(9),
.dice-face[data-value="6"] i:nth-child(1),
.dice-face[data-value="6"] i:nth-child(3),
.dice-face[data-value="6"] i:nth-child(4),
.dice-face[data-value="6"] i:nth-child(6),
.dice-face[data-value="6"] i:nth-child(7),
.dice-face[data-value="6"] i:nth-child(9) {
  background: #17202a;
}

@keyframes dice-pop {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  50% { transform: translate(-50%, -50%) rotate(16deg) scale(1.08); }
  100% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
}

.turn-panel {
  padding: 14px;
}

.turn-panel h3 {
  margin: 4px 0 6px;
  font-size: 1rem;
}

.event-log {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 12px;
}

.event-log p {
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
}

.event-log p:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.leaderboard-list,
.ledger-list,
.fair-list {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.leaderboard-row,
.ledger-item,
.cap-list article {
  justify-content: space-between;
  gap: 12px;
  min-height: 62px;
  padding: 12px;
}

.leaderboard-row.is-user {
  border-color: rgba(18, 128, 96, 0.42);
  background: #eaf7f1;
}

.leaderboard-row b {
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  background: var(--ink);
}

.leaderboard-row strong,
.ledger-item strong {
  display: block;
  margin-bottom: 3px;
}

.leaderboard-row span,
.ledger-item span,
.cap-list span {
  color: var(--muted);
  font-size: 0.84rem;
}

.wallet-card strong,
.refer-card strong {
  display: block;
  margin: 8px 0;
  font-size: 2.4rem;
}

.refer-card strong {
  font-size: 1.8rem;
}

.refer-card .primary-button {
  margin-top: 16px;
}

.admin-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.admin-grid article,
.fair-list article {
  padding: 14px;
}

.admin-grid strong {
  display: block;
  margin: 8px 0 6px;
  font-size: 1.8rem;
}

.fair-list strong {
  display: block;
  margin-bottom: 6px;
}

.bottom-nav {
  position: absolute;
  z-index: 20;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 10px;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
}

.bottom-nav button {
  min-height: 44px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 900;
  background: transparent;
}

.bottom-nav button.is-active {
  color: var(--green-dark);
  background: #e4f1eb;
}

.ad-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  padding: 24px;
  place-items: center;
  background: rgba(13, 17, 20, 0.64);
}

.ad-modal.is-visible {
  display: grid;
}

.ad-card {
  width: min(380px, 100%);
  padding: 20px;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.ad-card h2 {
  margin: 6px 0 16px;
}

.ad-visual {
  display: grid;
  min-height: 190px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 8px;
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(150deg, rgba(18, 128, 96, 0.92), rgba(47, 107, 217, 0.74)),
    url("https://images.unsplash.com/photo-1611974789855-9c2a0a7236a3?auto=format&fit=crop&w=800&q=80") center/cover;
}

.ad-visual strong {
  font-size: 4rem;
  line-height: 1;
}

.ad-visual p {
  margin: -42px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 800;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 120;
  max-width: min(360px, calc(100vw - 40px));
  padding: 12px 14px;
  border-radius: 8px;
  color: #ffffff;
  font-weight: 800;
  background: #171b20;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .strategy-panel {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .app-shell {
    padding: 16px;
  }

  .system-grid {
    grid-template-columns: 1fr;
  }

  .phone {
    height: calc(100svh - 32px);
    min-height: 690px;
  }

  .admin-grid {
    grid-template-columns: 1fr;
  }
}

/* Premium gaming redesign */
:root {
  --bg: #0f172a;
  --ink: #e2e8f0;
  --muted: #94a3b8;
  --panel: #1e293b;
  --panel-2: #111c31;
  --line: rgba(148, 163, 184, 0.18);
  --green: #22c55e;
  --green-dark: #16a34a;
  --red: #ef4444;
  --yellow: #eab308;
  --blue: #3b82f6;
  --violet: #7c3aed;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.48);
}

body {
  color: var(--ink);
  background:
    radial-gradient(circle at 72% 18%, rgba(124, 58, 237, 0.24), transparent 34%),
    radial-gradient(circle at 18% 78%, rgba(59, 130, 246, 0.18), transparent 36%),
    linear-gradient(135deg, #08111f 0%, #0f172a 52%, #121a30 100%);
}

.strategy-panel {
  color: var(--ink);
}

.intro,
.system-grid p,
.cooldown-card p,
.mission-list p,
.turn-panel p,
.wallet-card p,
.refer-card p,
.admin-grid p,
.fair-list p,
.event-log p {
  color: var(--muted);
}

.system-grid article,
.stat-row article,
.cooldown-card,
.score-card,
.mission-list,
.wallet-card,
.refer-card,
.admin-grid article,
.fair-list article,
.turn-panel,
.event-log,
.leaderboard-row,
.ledger-item,
.cap-list article {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.94));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.26);
}

.system-grid article {
  border-radius: 16px;
}

.system-grid span {
  border-radius: 999px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.36);
}

.phone {
  width: min(390px, 100%);
  height: min(820px, calc(100svh - 32px));
  min-height: 760px;
  border: 8px solid rgba(2, 6, 23, 0.96);
  border-radius: 34px;
  background: #0f172a;
  box-shadow:
    0 34px 90px rgba(0, 0, 0, 0.58),
    0 0 0 1px rgba(148, 163, 184, 0.16),
    0 0 54px rgba(59, 130, 246, 0.18);
}

.speaker {
  background: rgba(226, 232, 240, 0.8);
}

.screen {
  padding: 42px 16px 100px;
  background:
    radial-gradient(circle at 50% 30%, rgba(59, 130, 246, 0.18), transparent 42%),
    radial-gradient(circle at 50% 74%, rgba(124, 58, 237, 0.16), transparent 34%),
    #0f172a;
}

.screen::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.7), transparent 72%);
}

.eyebrow,
.app-header span,
.sub-header span,
.hero-card p,
.section-title span,
.cooldown-card span,
.score-card span,
.turn-panel span,
.match-scoreboard span,
.wallet-card span,
.refer-card span,
.admin-grid span,
.ad-card span {
  color: #93c5fd;
}

.app-header,
.sub-header {
  position: relative;
  z-index: 2;
}

.app-header h2,
.sub-header h2 {
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 900;
}

.sub-header {
  justify-content: center;
  text-align: center;
}

.sub-header .back-button {
  position: absolute;
  left: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.coin-pill {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid rgba(234, 179, 8, 0.28);
  border-radius: 999px;
  color: #fde68a;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.18), rgba(30, 41, 59, 0.9));
  box-shadow: 0 0 28px rgba(234, 179, 8, 0.16);
}

.coin-pill span {
  width: 14px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff7aa, var(--yellow));
  box-shadow: 0 0 14px rgba(234, 179, 8, 0.72);
}

.icon-button,
.back-button {
  border-radius: 14px;
  color: var(--ink);
  background: rgba(30, 41, 59, 0.96);
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 28px rgba(0, 0, 0, 0.24);
}

.hero-card {
  min-height: 236px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 24px;
  background:
    radial-gradient(circle at 76% 20%, rgba(124, 58, 237, 0.38), transparent 34%),
    linear-gradient(160deg, rgba(15, 23, 42, 0.48), rgba(2, 6, 23, 0.92)),
    url("https://images.unsplash.com/photo-1606167668584-78701c57f13d?auto=format&fit=crop&w=900&q=80") center/cover;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.36), 0 0 40px rgba(59, 130, 246, 0.12);
}

.hero-card h3 {
  margin-bottom: 18px;
  color: #f8fafc;
  font-size: 1.8rem;
  line-height: 1.03;
}

.primary-button {
  min-height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow:
    0 16px 34px rgba(59, 130, 246, 0.34),
    0 0 36px rgba(124, 58, 237, 0.26);
  text-transform: uppercase;
  letter-spacing: 0;
}

#playNow {
  width: 100%;
  min-height: 60px;
  font-size: 1.06rem;
  animation: cta-pulse 1800ms ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 16px 34px rgba(59, 130, 246, 0.34), 0 0 36px rgba(124, 58, 237, 0.26); }
  50% { transform: translateY(-1px); box-shadow: 0 22px 46px rgba(59, 130, 246, 0.46), 0 0 50px rgba(124, 58, 237, 0.38); }
}

.text-button {
  border-radius: 999px;
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.14);
}

.stat-row article {
  min-height: 84px;
  border-radius: 16px;
}

.stat-row span {
  color: var(--muted);
}

.stat-row strong,
.cooldown-card strong,
.score-grid b,
.mission-list strong,
.leaderboard-row strong,
.ledger-item strong {
  color: var(--ink);
}

.cooldown-card,
.score-card,
.mission-list,
.wallet-card,
.refer-card {
  border-radius: 18px;
}

.score-grid p {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.72);
}

.mission-list em {
  border-radius: 999px;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.14);
}

.match-scoreboard {
  gap: 12px;
  margin: 16px 0 18px;
}

.match-scoreboard article {
  min-height: 96px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.match-scoreboard article:first-child {
  background:
    radial-gradient(circle at 88% 18%, rgba(187, 247, 208, 0.26), transparent 42%),
    linear-gradient(135deg, rgba(34, 197, 94, 0.94), rgba(21, 128, 61, 0.72));
  box-shadow: 0 18px 36px rgba(34, 197, 94, 0.22), 0 0 30px rgba(34, 197, 94, 0.2);
}

.match-scoreboard article:last-child {
  background:
    radial-gradient(circle at 88% 18%, rgba(254, 202, 202, 0.28), transparent 42%),
    linear-gradient(135deg, rgba(239, 68, 68, 0.95), rgba(153, 27, 27, 0.72));
  box-shadow: 0 18px 36px rgba(239, 68, 68, 0.2), 0 0 30px rgba(239, 68, 68, 0.16);
}

.match-scoreboard strong {
  font-size: 2.45rem;
  line-height: 1;
}

.ludo-table {
  position: relative;
  margin: 0 auto 14px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.22), transparent 68%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.92), rgba(2, 6, 23, 0.92));
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.48),
    0 0 54px rgba(59, 130, 246, 0.2);
}

.classic-board {
  border: 1px solid rgba(226, 232, 240, 0.32);
  border-radius: 18px;
  background: linear-gradient(135deg, #101828, #172033);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 20px 42px rgba(0, 0, 0, 0.42);
}

.home-yard {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  outline: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 12px 26px rgba(0, 0, 0, 0.22);
}

.home-yard i {
  border: 3px solid rgba(255, 255, 255, 0.85);
  background:
    radial-gradient(circle at 50% 45%, rgba(255, 255, 255, 0.92) 0 34%, transparent 36%),
    rgba(15, 23, 42, 0.2);
}

.red-yard,
.track-cell.red {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.86), rgba(127, 29, 29, 0.78));
}

.green-yard,
.track-cell.green {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.86), rgba(20, 83, 45, 0.78));
}

.blue-yard,
.track-cell.blue {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.86), rgba(30, 64, 175, 0.78));
}

.yellow-yard,
.track-cell.yellow {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.88), rgba(133, 77, 14, 0.78));
}

.track-cell {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(226, 232, 240, 0.9);
}

.track-cell.safe::after {
  color: rgba(15, 23, 42, 0.52);
}

.finish-home {
  border-color: rgba(255, 255, 255, 0.5);
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.36), 0 0 22px rgba(59, 130, 246, 0.16);
}

.moving-token {
  border: 2px solid rgba(255, 255, 255, 0.94);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.42), 0 0 18px currentColor;
}

.green-token {
  background: radial-gradient(circle at 35% 28%, #bbf7d0, #22c55e 44%, #15803d);
}

.red-token {
  background: radial-gradient(circle at 35% 28%, #fecaca, #ef4444 44%, #991b1b);
}

.moving-token.is-playable {
  outline: 3px solid rgba(234, 179, 8, 0.95);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5), 0 0 26px rgba(234, 179, 8, 0.74);
}

.dice-dock {
  display: grid;
  position: relative;
  z-index: 24;
  min-height: 88px;
  place-items: center;
  margin: 0;
  pointer-events: none;
}

#screen-match {
  padding-bottom: 122px;
}

#screen-match .ludo-table {
  margin-bottom: 18px;
}

.dice-button {
  position: relative;
  inset: auto;
  width: 82px;
  border: 0;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(219, 234, 254, 0.94));
  box-shadow:
    0 22px 42px rgba(59, 130, 246, 0.34),
    0 0 48px rgba(124, 58, 237, 0.3),
    inset 0 0 0 1px rgba(15, 23, 42, 0.08);
  transform: none;
  pointer-events: auto;
}

.dice-button::after {
  content: "ROLL";
  position: absolute;
  right: -52px;
  bottom: 8px;
  color: #bfdbfe;
  font-size: 0.68rem;
  font-weight: 900;
}

.dice-button:active {
  transform: scale(0.96);
}

.dice-button.is-rolling {
  animation: dice-pop-premium 360ms ease;
}

.dice-button.is-spinning .dice-face {
  animation: dice-spin 420ms ease;
}

.dice-face {
  width: 50px;
  gap: 5px;
}

.dice-face[data-value] i {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.28);
}

@keyframes dice-pop-premium {
  0% { transform: scale(1); }
  50% { transform: scale(1.08) rotate(8deg); }
  100% { transform: scale(1); }
}

@keyframes dice-spin {
  0% { transform: rotate(0deg); filter: blur(0); }
  50% { transform: rotate(130deg); filter: blur(1px); }
  100% { transform: rotate(360deg); filter: blur(0); }
}

.turn-panel {
  border-radius: 18px;
  padding: 14px;
}

.turn-panel h3 {
  color: var(--ink);
}

.compact-roll {
  display: none;
}

.event-log {
  border-radius: 18px;
  max-height: 116px;
  min-height: 86px;
  overflow: auto;
}

.score-float {
  position: absolute;
  z-index: 20;
  left: 50%;
  top: 44%;
  padding: 8px 14px;
  border-radius: 999px;
  color: #f8fafc;
  font-weight: 900;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 10px) scale(0.92);
  transition: opacity 160ms ease, transform 160ms ease;
}

.score-float.is-visible {
  opacity: 1;
  transform: translate(-50%, -24px) scale(1);
}

.score-green {
  background: rgba(34, 197, 94, 0.94);
  box-shadow: 0 0 26px rgba(34, 197, 94, 0.58);
}

.score-red {
  background: rgba(239, 68, 68, 0.94);
  box-shadow: 0 0 26px rgba(239, 68, 68, 0.58);
}

.classic-board.kill-flash {
  animation: kill-flash 420ms ease;
}

@keyframes kill-flash {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08), 0 20px 42px rgba(0, 0, 0, 0.42); }
  50% { box-shadow: inset 0 0 0 3px rgba(239, 68, 68, 0.76), 0 0 42px rgba(239, 68, 68, 0.52); }
}

.phone.win-pulse {
  animation: win-pulse 1100ms ease-in-out infinite;
}

@keyframes win-pulse {
  0%, 100% { box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58), 0 0 54px rgba(59, 130, 246, 0.18); }
  50% { box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58), 0 0 80px rgba(34, 197, 94, 0.38); }
}

.bottom-nav {
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 10px 12px;
  border-color: rgba(148, 163, 184, 0.14);
  background: rgba(15, 23, 42, 0.88);
}

.bottom-nav button {
  display: grid;
  min-height: 52px;
  place-items: center;
  gap: 2px;
  border-radius: 16px;
  color: var(--muted);
  font-size: 0.68rem;
}

.bottom-nav button::before {
  display: grid;
  width: 22px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 8px;
  font-size: 0.78rem;
  background: rgba(148, 163, 184, 0.12);
}

.bottom-nav button:nth-child(1)::before { content: "H"; }
.bottom-nav button:nth-child(2)::before { content: "#"; }
.bottom-nav button:nth-child(3)::before { content: "C"; }
.bottom-nav button:nth-child(4)::before { content: "R"; }
.bottom-nav button:nth-child(5)::before { content: "A"; }

.bottom-nav button.is-active {
  color: #dbeafe;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(124, 58, 237, 0.18));
  box-shadow: inset 0 0 0 1px rgba(147, 197, 253, 0.14);
}

.ad-modal {
  background: rgba(2, 6, 23, 0.78);
}

.ad-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  color: var(--ink);
  background: linear-gradient(180deg, #1e293b, #0f172a);
}

.ad-visual {
  border-radius: 18px;
}

.toast {
  background: #020617;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42), 0 0 26px rgba(59, 130, 246, 0.24);
}

@media (max-width: 560px) {
  .phone {
    width: min(390px, calc(100vw - 24px));
    height: min(820px, calc(100svh - 24px));
    min-height: 740px;
  }

  .screen {
    padding-inline: 14px;
  }

  .hero-card {
    min-height: 220px;
  }
}

/* Premium polish layer */
.screen.is-active {
  animation: screen-enter 360ms ease both;
}

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

.phone::before,
.phone::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(12px);
}

.phone::before {
  width: 220px;
  height: 220px;
  top: 92px;
  right: -120px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.3), transparent 68%);
}

.phone::after {
  width: 190px;
  height: 190px;
  left: -120px;
  bottom: 160px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.24), transparent 68%);
}

.screen,
.bottom-nav,
.speaker {
  z-index: 1;
}

.app-header h2,
.sub-header h2,
.hero-card h3 {
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.32);
}

.coin-pill,
.icon-button,
.back-button,
.stat-row article,
.cooldown-card,
.score-card,
.mission-list,
.turn-panel,
.event-log {
  backdrop-filter: blur(18px);
}

.coin-pill {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.coin-pill:hover,
.icon-button:hover,
.back-button:hover,
.bottom-nav button:hover {
  transform: translateY(-1px);
}

.hero-card {
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 36%, rgba(255, 255, 255, 0.16) 48%, transparent 60% 100%);
  transform: translateX(-120%);
  animation: hero-sheen 5200ms ease-in-out infinite;
}

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

@keyframes hero-sheen {
  0%, 48% { transform: translateX(-120%); }
  72%, 100% { transform: translateX(120%); }
}

.stat-row {
  gap: 12px;
}

.stat-row article,
.cooldown-card,
.score-card,
.mission-list {
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.9)),
    radial-gradient(circle at 90% 0%, rgba(59, 130, 246, 0.16), transparent 40%);
}

.match-scoreboard article {
  position: relative;
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease, filter 220ms ease;
}

.match-scoreboard article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 78% 22%, rgba(255, 255, 255, 0.3), transparent 24%);
  opacity: 0.8;
}

.match-scoreboard article > * {
  position: relative;
  z-index: 1;
}

.phone[data-turn="green"] .match-scoreboard article:first-child,
.phone[data-turn="red"] .match-scoreboard article:last-child {
  transform: translateY(-2px);
  filter: saturate(1.12);
}

.phone[data-turn="green"] .match-scoreboard article:first-child {
  box-shadow: 0 22px 48px rgba(34, 197, 94, 0.32), 0 0 46px rgba(34, 197, 94, 0.28);
}

.phone[data-turn="red"] .match-scoreboard article:last-child {
  box-shadow: 0 22px 48px rgba(239, 68, 68, 0.3), 0 0 46px rgba(239, 68, 68, 0.24);
}

.match-scoreboard article.score-bump {
  animation: score-bump 520ms ease;
}

@keyframes score-bump {
  0% { transform: scale(1); }
  42% { transform: scale(1.045); }
  100% { transform: scale(1); }
}

#screen-match .sub-header {
  margin-bottom: 10px;
}

#screen-match .match-scoreboard {
  margin: 8px 0 14px;
}

#screen-match .match-scoreboard article {
  min-height: 86px;
  padding: 14px;
}

#screen-match .match-scoreboard strong {
  font-size: 2.25rem;
}

.ludo-table {
  max-width: 314px;
  isolation: isolate;
}

.ludo-table::before,
.ludo-table::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 10px;
  border-radius: 26px;
  pointer-events: none;
}

.ludo-table::before {
  background:
    radial-gradient(circle at 50% 50%, rgba(59, 130, 246, 0.32), transparent 58%),
    radial-gradient(circle at 30% 16%, rgba(34, 197, 94, 0.18), transparent 34%),
    radial-gradient(circle at 72% 20%, rgba(239, 68, 68, 0.18), transparent 34%);
  filter: blur(18px);
}

.ludo-table::after {
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.classic-board {
  transform: perspective(900px) rotateX(1.2deg);
}

.classic-board::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.16), transparent 22% 78%, rgba(15, 23, 42, 0.2)),
    radial-gradient(circle at 50% 50%, transparent 58%, rgba(2, 6, 23, 0.22));
  mix-blend-mode: screen;
}

.track-cell {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.home-yard {
  transition: filter 220ms ease, transform 220ms ease;
}

.phone[data-turn="green"] .green-yard,
.phone[data-turn="red"] .red-yard {
  filter: brightness(1.13) saturate(1.1);
}

.moving-token {
  transition:
    left 340ms cubic-bezier(0.2, 0.8, 0.2, 1),
    top 340ms cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 180ms ease,
    filter 180ms ease;
}

.moving-token:hover {
  filter: brightness(1.18);
}

.moving-token.is-playable {
  animation: token-premium-pulse 950ms ease-in-out infinite;
}

@keyframes token-premium-pulse {
  0%, 100% {
    transform: translate(-50%, -50%) rotate(-45deg) scale(1);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.5), 0 0 22px rgba(234, 179, 8, 0.62);
  }
  50% {
    transform: translate(-50%, -50%) rotate(-45deg) scale(1.09);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.56), 0 0 34px rgba(234, 179, 8, 0.9);
  }
}

.dice-dock::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.28), transparent 68%);
  filter: blur(14px);
}

.dice-button {
  transition: transform 170ms ease, box-shadow 170ms ease, opacity 170ms ease;
}

.dice-button:not(:disabled):hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 26px 52px rgba(59, 130, 246, 0.42),
    0 0 62px rgba(124, 58, 237, 0.38),
    inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.dice-button:disabled {
  filter: grayscale(0.15);
}

.turn-panel {
  min-height: 102px;
  margin-top: 2px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.94)),
    radial-gradient(circle at 50% 0%, rgba(124, 58, 237, 0.18), transparent 46%);
}

.turn-panel h3 {
  font-size: 1.02rem;
}

.event-log {
  margin-top: 12px;
  border-color: rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.64), rgba(2, 6, 23, 0.86));
}

.event-log p {
  border-bottom-color: rgba(148, 163, 184, 0.12);
}

.score-float {
  font-size: 1.05rem;
  letter-spacing: 0;
  animation-duration: 900ms;
}

.score-float.is-visible {
  animation: float-score 900ms ease forwards;
}

@keyframes float-score {
  0% { opacity: 0; transform: translate(-50%, 10px) scale(0.8); }
  18% { opacity: 1; transform: translate(-50%, -12px) scale(1.08); }
  100% { opacity: 0; transform: translate(-50%, -54px) scale(1); }
}

.bottom-nav {
  box-shadow: 0 -18px 42px rgba(2, 6, 23, 0.52);
}

.bottom-nav button {
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.bottom-nav button.is-active::before {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  color: #fff;
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.36);
}

#screen-match {
  padding-top: 40px;
}

@media (max-width: 560px) {
  #screen-match {
    padding-bottom: 120px;
  }

  .ludo-table {
    max-width: 314px;
  }

  .dice-button {
    width: 80px;
  }

  .dice-face {
    width: 48px;
  }
}

/* Home dashboard redesign */
#screen-home {
  padding: 44px 18px 112px;
  background:
    radial-gradient(circle at 50% 24%, rgba(59, 130, 246, 0.24), transparent 36%),
    radial-gradient(circle at 82% 18%, rgba(124, 58, 237, 0.22), transparent 32%),
    linear-gradient(180deg, #0f172a 0%, #07101f 56%, #020617 100%);
}

#screen-home .app-header {
  margin-bottom: 18px;
}

#screen-home .hero-card {
  position: relative;
  min-height: 288px;
  margin-top: 0;
  padding: 20px;
  align-content: end;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.58), rgba(15, 23, 42, 0.86)),
    radial-gradient(circle at 62% 20%, rgba(124, 58, 237, 0.36), transparent 38%),
    radial-gradient(circle at 20% 80%, rgba(59, 130, 246, 0.22), transparent 42%);
  box-shadow:
    0 34px 72px rgba(0, 0, 0, 0.42),
    0 0 70px rgba(59, 130, 246, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(22px);
}

#screen-home .hero-card::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(140deg, rgba(255, 255, 255, 0.12), transparent 30% 70%, rgba(59, 130, 246, 0.12));
}

.hero-board-preview {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 138px;
  aspect-ratio: 1;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(226, 232, 240, 0.92), rgba(148, 163, 184, 0.72));
  box-shadow:
    0 24px 40px rgba(0, 0, 0, 0.38),
    0 0 36px rgba(124, 58, 237, 0.2);
  transform: perspective(700px) rotateX(14deg) rotateZ(-7deg);
}

.hero-board-preview::before,
.hero-board-preview::after {
  content: "";
  position: absolute;
  inset: 43% 10%;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.16);
}

.hero-board-preview::after {
  inset: 10% 43%;
}

.hero-board-preview span {
  border-radius: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.hero-board-preview span:nth-child(1) { background: linear-gradient(135deg, #ef4444, #7f1d1d); }
.hero-board-preview span:nth-child(2) { background: linear-gradient(135deg, #22c55e, #14532d); }
.hero-board-preview span:nth-child(3) { background: linear-gradient(135deg, #3b82f6, #1e3a8a); }
.hero-board-preview span:nth-child(4) { background: linear-gradient(135deg, #eab308, #854d0e); }

#screen-home .hero-card h3 {
  max-width: 230px;
  margin: 8px 0 4px;
  font-size: 2.2rem;
  line-height: 0.96;
}

#screen-home .hero-card small {
  display: block;
  margin-bottom: 22px;
  color: #cbd5e1;
  font-size: 0.98rem;
  font-weight: 800;
}

#screen-home #playNow {
  min-height: 70px;
  border-radius: 20px;
  font-size: 1.08rem;
  box-shadow:
    0 24px 44px rgba(59, 130, 246, 0.38),
    0 0 54px rgba(124, 58, 237, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

#screen-home .stat-row {
  gap: 12px;
  margin: 18px 0;
}

#screen-home .stat-row article {
  position: relative;
  min-height: 112px;
  padding: 14px;
  overflow: hidden;
  border-radius: 20px;
}

#screen-home .stat-row article::after {
  content: "";
  position: absolute;
  inset: auto -20% -38% -20%;
  height: 70%;
  border-radius: 50%;
  filter: blur(12px);
  opacity: 0.42;
}

#screen-home .stat-row i {
  position: relative;
  z-index: 1;
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 12px;
  font-style: normal;
  font-weight: 900;
}

#screen-home .stat-row span,
#screen-home .stat-row strong {
  position: relative;
  z-index: 1;
}

.ticket-stat {
  border-color: rgba(234, 179, 8, 0.26);
}

.ticket-stat::after {
  background: rgba(234, 179, 8, 0.48);
}

.ticket-stat i {
  color: #fef3c7;
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.86), rgba(133, 77, 14, 0.72));
  box-shadow: 0 0 22px rgba(234, 179, 8, 0.28);
}

.coin-stat {
  border-color: rgba(34, 197, 94, 0.26);
}

.coin-stat::after {
  background: rgba(34, 197, 94, 0.42);
}

.coin-stat i {
  color: #dcfce7;
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.86), rgba(20, 83, 45, 0.72));
  box-shadow: 0 0 22px rgba(34, 197, 94, 0.26);
}

.rank-stat {
  border-color: rgba(59, 130, 246, 0.28);
}

.rank-stat::after {
  background: rgba(59, 130, 246, 0.42);
}

.rank-stat i {
  color: #dbeafe;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.86), rgba(30, 64, 175, 0.72));
  box-shadow: 0 0 22px rgba(59, 130, 246, 0.28);
}

#screen-home .cooldown-card {
  padding: 18px;
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.86), rgba(15, 23, 42, 0.94)),
    radial-gradient(circle at 92% 0%, rgba(34, 197, 94, 0.16), transparent 42%);
}

.daily-progress {
  height: 12px;
  margin: 14px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.daily-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background:
    linear-gradient(90deg, hsl(var(--progress-hue, 120deg) 78% 48%), #ef4444);
  box-shadow: 0 0 18px hsl(var(--progress-hue, 120deg) 78% 48% / 0.48);
  transition: width 420ms ease;
}

#screen-home .score-card,
#screen-home .mission-list {
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.7), rgba(15, 23, 42, 0.9));
}

/* Esports leaderboard */
#screen-leaderboard {
  background:
    radial-gradient(circle at 50% 18%, rgba(59, 130, 246, 0.2), transparent 36%),
    radial-gradient(circle at 82% 8%, rgba(124, 58, 237, 0.18), transparent 34%),
    linear-gradient(180deg, #0f172a 0%, #08111f 54%, #020617 100%);
}

#screen-leaderboard .sub-header {
  margin-bottom: 18px;
}

.leaderboard-list {
  gap: 16px;
}

.podium-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr 0.92fr;
  align-items: end;
  gap: 10px;
  margin: 18px 0 18px;
}

.podium-card {
  position: relative;
  display: grid;
  min-height: 168px;
  padding: 16px 10px 14px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.96));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.34);
  animation: rank-enter 520ms ease both;
}

.podium-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 32%, rgba(255, 255, 255, 0.16) 48%, transparent 64% 100%);
  transform: translateX(-130%);
  animation: top-shimmer 3600ms ease-in-out infinite;
}

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

.podium-card.rank-1 {
  min-height: 204px;
  transform: translateY(-10px);
  border-color: rgba(255, 215, 0, 0.48);
  background:
    radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.28), transparent 48%),
    linear-gradient(180deg, rgba(66, 52, 21, 0.92), rgba(15, 23, 42, 0.96));
  box-shadow: 0 30px 64px rgba(0, 0, 0, 0.42), 0 0 40px rgba(255, 215, 0, 0.18);
}

.podium-card.rank-2 {
  border-color: rgba(203, 213, 225, 0.42);
  background:
    radial-gradient(circle at 50% 0%, rgba(203, 213, 225, 0.22), transparent 48%),
    linear-gradient(180deg, rgba(51, 65, 85, 0.92), rgba(15, 23, 42, 0.96));
}

.podium-card.rank-3 {
  border-color: rgba(205, 127, 50, 0.48);
  background:
    radial-gradient(circle at 50% 0%, rgba(205, 127, 50, 0.22), transparent 48%),
    linear-gradient(180deg, rgba(67, 42, 24, 0.92), rgba(15, 23, 42, 0.96));
}

.podium-rank {
  display: grid;
  min-width: 38px;
  min-height: 30px;
  margin-bottom: 10px;
  padding: 0 10px;
  place-items: center;
  border-radius: 999px;
  color: #020617;
  font-weight: 900;
  background: #ffd700;
  box-shadow: 0 0 24px rgba(255, 215, 0, 0.42);
}

.rank-2 .podium-rank {
  background: #cbd5e1;
  box-shadow: 0 0 22px rgba(203, 213, 225, 0.32);
}

.rank-3 .podium-rank {
  background: #cd7f32;
  color: #fff7ed;
  box-shadow: 0 0 22px rgba(205, 127, 50, 0.34);
}

.leader-avatar {
  display: grid;
  width: 52px;
  aspect-ratio: 1;
  margin-bottom: 10px;
  place-items: center;
  border-radius: 50%;
  color: #f8fafc;
  font-size: 1.15rem;
  font-weight: 900;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 0 26px rgba(59, 130, 246, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.rank-1 .leader-avatar {
  width: 62px;
  background: linear-gradient(135deg, #ffd700, #f59e0b);
  color: #111827;
  box-shadow: 0 0 34px rgba(255, 215, 0, 0.46);
}

.podium-card strong {
  color: var(--ink);
  font-size: 1rem;
}

.podium-card span {
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 800;
}

.rank-list {
  display: grid;
  gap: 12px;
}

#screen-leaderboard .leaderboard-row {
  position: relative;
  min-height: 76px;
  padding: 12px;
  overflow: hidden;
  border-radius: 20px;
  border-color: rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.96));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  animation: rank-enter 520ms ease both;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

#screen-leaderboard .leaderboard-row:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.38);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34), 0 0 28px rgba(59, 130, 246, 0.12);
}

#screen-leaderboard .leaderboard-row b {
  width: 40px;
  border-radius: 14px;
  color: #dbeafe;
  background: rgba(59, 130, 246, 0.18);
}

#screen-leaderboard .leaderboard-row .leader-avatar {
  width: 44px;
  margin: 0;
  font-size: 0.95rem;
}

.leader-copy {
  flex: 1;
}

#screen-leaderboard .leaderboard-row strong {
  color: var(--ink);
}

#screen-leaderboard .leaderboard-row span {
  color: var(--muted);
}

#screen-leaderboard .leaderboard-row em {
  margin-left: auto;
  color: #fef3c7;
  font-style: normal;
  font-size: 1rem;
  font-weight: 900;
  text-align: right;
}

#screen-leaderboard .leaderboard-row em small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

#screen-leaderboard .leaderboard-row.is-user {
  z-index: 1;
  transform: scale(1.02);
  border-color: rgba(34, 197, 94, 0.62);
  background:
    radial-gradient(circle at 92% 20%, rgba(34, 197, 94, 0.24), transparent 42%),
    linear-gradient(180deg, rgba(20, 83, 45, 0.76), rgba(15, 23, 42, 0.96));
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.36), 0 0 34px rgba(34, 197, 94, 0.24);
}

@keyframes rank-enter {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes top-shimmer {
  0%, 42% { transform: translateX(-130%); }
  72%, 100% { transform: translateX(130%); }
}

/* Premium wallet */
#screen-wallet {
  background:
    radial-gradient(circle at 50% 16%, rgba(34, 197, 94, 0.2), transparent 34%),
    radial-gradient(circle at 84% 10%, rgba(234, 179, 8, 0.18), transparent 32%),
    linear-gradient(180deg, #0f172a 0%, #07111f 54%, #020617 100%);
}

#screen-wallet .sub-header {
  margin-bottom: 18px;
}

#screen-wallet .wallet-card {
  position: relative;
  display: grid;
  min-height: 286px;
  align-content: end;
  overflow: hidden;
  padding: 22px;
  border-radius: 28px;
  border-color: rgba(234, 179, 8, 0.28);
  background:
    radial-gradient(circle at 74% 12%, rgba(250, 204, 21, 0.38), transparent 34%),
    radial-gradient(circle at 12% 80%, rgba(34, 197, 94, 0.26), transparent 42%),
    linear-gradient(145deg, rgba(20, 83, 45, 0.92), rgba(15, 23, 42, 0.96));
  box-shadow:
    0 32px 70px rgba(0, 0, 0, 0.42),
    0 0 56px rgba(34, 197, 94, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

#screen-wallet .wallet-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 36%, rgba(255, 255, 255, 0.16) 49%, transparent 62% 100%);
  transform: translateX(-130%);
  animation: wallet-shine 4200ms ease-in-out infinite;
}

#screen-wallet .wallet-card > * {
  position: relative;
  z-index: 1;
}

.wallet-coin-icon {
  position: absolute;
  top: 24px;
  right: 22px;
  width: 94px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, #fff7ad 0 18%, transparent 19%),
    radial-gradient(circle at 50% 50%, #facc15 0 44%, #d97706 45% 64%, #92400e 65%);
  box-shadow:
    0 0 42px rgba(250, 204, 21, 0.48),
    0 18px 34px rgba(0, 0, 0, 0.3);
  animation: coin-float 2400ms ease-in-out infinite;
}

.wallet-coin-icon::after {
  content: "";
  position: absolute;
  inset: 24%;
  border: 3px solid rgba(255, 255, 255, 0.34);
  border-radius: 50%;
}

#screen-wallet .wallet-card span {
  color: #bbf7d0;
}

#screen-wallet .wallet-card strong {
  margin: 8px 0 6px;
  color: #fefce8;
  font-size: 3.4rem;
  line-height: 1;
  text-shadow: 0 0 28px rgba(250, 204, 21, 0.28);
}

#screen-wallet .wallet-card strong.coin-tick {
  animation: coin-tick 520ms ease;
}

#screen-wallet .wallet-card p {
  max-width: 250px;
  margin-bottom: 18px;
  color: #d1fae5;
}

.earn-more-button {
  width: 100%;
  min-height: 58px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(34, 197, 94, 0.98), rgba(234, 179, 8, 0.9));
  box-shadow:
    0 20px 40px rgba(34, 197, 94, 0.28),
    0 0 40px rgba(234, 179, 8, 0.22);
}

#screen-wallet .ledger-list {
  gap: 12px;
  margin-top: 18px;
}

#screen-wallet .ledger-item {
  position: relative;
  min-height: 82px;
  padding: 14px;
  overflow: hidden;
  border-radius: 20px;
  border-color: rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.96));
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

#screen-wallet .ledger-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.34);
}

#screen-wallet .ledger-item.is-new {
  animation: ledger-bounce 560ms ease;
}

#screen-wallet .ledger-item i {
  display: grid;
  width: 46px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 16px;
  color: #f8fafc;
  font-style: normal;
  font-weight: 900;
}

#screen-wallet .ledger-copy {
  flex: 1;
}

#screen-wallet .ledger-copy strong {
  color: var(--ink);
}

#screen-wallet .ledger-copy span {
  color: var(--muted);
}

#screen-wallet .ledger-item b {
  display: block;
  color: #bbf7d0;
  font-size: 1.1rem;
  line-height: 1;
  text-align: right;
}

#screen-wallet .ledger-item b small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

#screen-wallet .win-entry {
  border-color: rgba(34, 197, 94, 0.28);
}

#screen-wallet .win-entry i {
  background: linear-gradient(135deg, #22c55e, #15803d);
  box-shadow: 0 0 24px rgba(34, 197, 94, 0.28);
}

#screen-wallet .ad-entry {
  border-color: rgba(59, 130, 246, 0.26);
}

#screen-wallet .ad-entry i {
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.28);
}

#screen-wallet .bonus-entry {
  border-color: rgba(234, 179, 8, 0.28);
}

#screen-wallet .bonus-entry i {
  background: linear-gradient(135deg, #eab308, #b45309);
  box-shadow: 0 0 24px rgba(234, 179, 8, 0.28);
}

#screen-wallet .bonus-entry b {
  color: #fde68a;
}

#screen-wallet .ad-entry b {
  color: #bfdbfe;
}

@keyframes wallet-shine {
  0%, 46% { transform: translateX(-130%); }
  72%, 100% { transform: translateX(130%); }
}

@keyframes coin-float {
  0%, 100% { transform: translateY(0) rotate(-8deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}

@keyframes coin-tick {
  0% { transform: scale(1); }
  45% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes ledger-bounce {
  0% { opacity: 0; transform: translateY(-10px) scale(0.98); }
  52% { opacity: 1; transform: translateY(3px) scale(1.01); }
  100% { transform: translateY(0) scale(1); }
}

/* Viral referral screen */
#screen-refer {
  background:
    radial-gradient(circle at 50% 18%, rgba(37, 211, 102, 0.18), transparent 34%),
    radial-gradient(circle at 82% 12%, rgba(124, 58, 237, 0.18), transparent 32%),
    linear-gradient(180deg, #0f172a 0%, #07111f 54%, #020617 100%);
}

#screen-refer .sub-header {
  margin-bottom: 18px;
}

.refer-hero {
  position: relative;
  display: grid;
  grid-template-columns: 128px 1fr;
  gap: 16px;
  min-height: 168px;
  align-items: center;
  margin-bottom: 14px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(37, 211, 102, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 28% 50%, rgba(37, 211, 102, 0.28), transparent 34%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.96));
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.36), 0 0 46px rgba(37, 211, 102, 0.14);
}

.refer-hero span {
  color: #86efac;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.refer-hero h3 {
  margin: 6px 0 8px;
  color: var(--ink);
  font-size: 1.46rem;
  line-height: 1.02;
}

.refer-hero p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.refer-illustration {
  position: relative;
  width: 118px;
  aspect-ratio: 1;
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 50%, rgba(37, 211, 102, 0.2), transparent 64%);
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.32));
}

.refer-illustration::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  background:
    conic-gradient(from 45deg, #ef4444 0 25%, #22c55e 0 50%, #eab308 0 75%, #3b82f6 0);
  box-shadow: 0 0 32px rgba(37, 211, 102, 0.24);
  transform: perspective(600px) rotateX(18deg) rotateZ(-8deg);
}

.friend {
  position: absolute;
  z-index: 2;
  width: 38px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, #93c5fd, #7c3aed);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.34);
}

.friend::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -20px;
  width: 52px;
  height: 34px;
  border-radius: 999px 999px 18px 18px;
  background: inherit;
  transform: translateX(-50%);
}

.friend-a {
  top: 4px;
  left: 5px;
}

.friend-b {
  right: 0;
  bottom: 20px;
  background: linear-gradient(135deg, #86efac, #25d366);
}

.referral-earned-card,
#screen-refer .refer-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.96));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}

.referral-earned-card {
  margin-bottom: 14px;
  border-color: rgba(234, 179, 8, 0.26);
  background:
    radial-gradient(circle at 92% 12%, rgba(234, 179, 8, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.96));
}

.referral-earned-card span,
#screen-refer .refer-card span {
  color: #86efac;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.referral-earned-card strong {
  display: block;
  margin: 8px 0 4px;
  color: #fef3c7;
  font-size: 2.5rem;
  line-height: 1;
  text-shadow: 0 0 24px rgba(234, 179, 8, 0.24);
}

.referral-earned-card p,
#screen-refer .refer-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.referral-code-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 12px 0;
  padding: 6px;
  border-radius: 999px;
  background:
    linear-gradient(#0f172a, #0f172a) padding-box,
    linear-gradient(135deg, #25d366, #3b82f6, #7c3aed) border-box;
  border: 2px solid transparent;
  box-shadow: 0 0 34px rgba(37, 211, 102, 0.14);
}

.referral-code-pill strong {
  padding-left: 14px;
  color: var(--ink);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}

.referral-code-pill button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  color: #052e16;
  font-weight: 900;
  background: linear-gradient(135deg, #86efac, #25d366);
  box-shadow: 0 0 22px rgba(37, 211, 102, 0.28);
}

.referral-code-pill button.is-copied {
  animation: copy-pop 520ms ease;
}

.whatsapp-button {
  width: 100%;
  min-height: 62px;
  margin-top: 16px;
  border-radius: 20px;
  color: #ecfdf5;
  font-size: 1rem;
  font-weight: 900;
  background: linear-gradient(135deg, #25d366, #128c7e);
  box-shadow: 0 22px 42px rgba(37, 211, 102, 0.28), 0 0 42px rgba(37, 211, 102, 0.22);
  text-transform: uppercase;
}

.referral-flow {
  gap: 12px;
  margin-top: 16px;
}

#screen-refer .referral-flow article {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 82px;
  padding: 14px;
  border-radius: 22px;
  border-color: rgba(37, 211, 102, 0.18);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.76), rgba(15, 23, 42, 0.96));
}

#screen-refer .referral-flow article + article::before {
  content: "↓";
  position: absolute;
  top: -18px;
  left: 28px;
  color: #25d366;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(37, 211, 102, 0.5);
}

.referral-flow i {
  display: grid;
  width: 42px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 15px;
  color: #052e16;
  font-style: normal;
  font-weight: 900;
  background: linear-gradient(135deg, #86efac, #25d366);
  box-shadow: 0 0 22px rgba(37, 211, 102, 0.24);
}

.referral-flow strong {
  color: var(--ink);
}

.referral-flow span {
  color: var(--muted);
}

.referral-flow em {
  color: #bbf7d0;
  font-style: normal;
  font-size: 1.05rem;
  font-weight: 900;
}

.confetti-layer {
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  overflow: hidden;
}

.confetti-layer span {
  position: absolute;
  left: 50%;
  top: 42%;
  width: 8px;
  height: 14px;
  border-radius: 3px;
  animation: confetti-burst 980ms ease-out forwards;
}

@keyframes copy-pop {
  0% { transform: scale(1); }
  46% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes confetti-burst {
  0% { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  100% { opacity: 0; transform: translate(var(--x), 180px) rotate(var(--r)) scale(0.8); }
}

/* Gaming ops admin dashboard */
#screen-admin {
  background:
    radial-gradient(circle at 50% 14%, rgba(59, 130, 246, 0.2), transparent 34%),
    radial-gradient(circle at 88% 10%, rgba(34, 197, 94, 0.14), transparent 30%),
    linear-gradient(180deg, #0f172a 0%, #08111f 54%, #020617 100%);
}

#screen-admin .sub-header {
  margin-bottom: 18px;
}

#screen-admin .admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.ops-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  padding: 16px;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.96));
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.ops-card::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 120px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.42;
}

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

.ops-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ops-top span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ops-top em {
  padding: 5px 8px;
  border-radius: 999px;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.68);
}

.ops-card strong {
  display: block;
  margin: 16px 0 10px;
  color: var(--ink);
  font-size: 2.45rem;
  line-height: 1;
}

.ops-card p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.38;
}

.sparkline {
  display: flex;
  height: 54px;
  align-items: end;
  gap: 5px;
  padding: 9px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.42);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.1);
}

.sparkline i {
  flex: 1;
  min-width: 0;
  border-radius: 999px 999px 4px 4px;
  opacity: 0.92;
  animation: spark-rise 900ms ease both;
}

.sparkline i:nth-child(1) { height: 36%; animation-delay: 40ms; }
.sparkline i:nth-child(2) { height: 52%; animation-delay: 80ms; }
.sparkline i:nth-child(3) { height: 44%; animation-delay: 120ms; }
.sparkline i:nth-child(4) { height: 68%; animation-delay: 160ms; }
.sparkline i:nth-child(5) { height: 58%; animation-delay: 200ms; }
.sparkline i:nth-child(6) { height: 82%; animation-delay: 240ms; }

.ads-card {
  border-color: rgba(59, 130, 246, 0.3);
}

.ads-card::before,
.ads-card .sparkline i {
  background: #3b82f6;
}

.ads-card .ops-top em {
  color: #bfdbfe;
}

.fraud-card {
  border-color: rgba(239, 68, 68, 0.32);
}

.fraud-card::before,
.fraud-card .sparkline i {
  background: #ef4444;
}

.fraud-card .ops-top em {
  color: #fecaca;
}

.bans-card {
  border-color: rgba(249, 115, 22, 0.34);
}

.bans-card::before,
.bans-card .sparkline i {
  background: #f97316;
}

.bans-card .ops-top em {
  color: #fed7aa;
}

.revenue-card {
  border-color: rgba(34, 197, 94, 0.32);
}

.revenue-card::before,
.revenue-card .sparkline i {
  background: #22c55e;
}

.revenue-card .ops-top em {
  color: #bbf7d0;
}

@keyframes spark-rise {
  from { height: 0; opacity: 0; }
  to { opacity: 0.92; }
}

/* Real-time matchmaking */
#screen-matchmaking {
  background:
    radial-gradient(circle at 50% 20%, rgba(59, 130, 246, 0.26), transparent 36%),
    radial-gradient(circle at 82% 72%, rgba(124, 58, 237, 0.22), transparent 34%),
    linear-gradient(180deg, #0f172a 0%, #07111f 54%, #020617 100%);
}

#screen-matchmaking .sub-header {
  padding: 0 42px;
}

#screen-matchmaking .sub-header h2 {
  font-size: 1.42rem;
  line-height: 1.05;
}

.matchmaking-card {
  position: relative;
  min-height: 548px;
  margin-top: 22px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(59, 130, 246, 0.24);
  border-radius: 30px;
  background:
    radial-gradient(circle at 50% 34%, rgba(59, 130, 246, 0.22), transparent 38%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.96));
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.42), 0 0 58px rgba(59, 130, 246, 0.18);
}

.queue-orbit {
  position: relative;
  width: 170px;
  aspect-ratio: 1;
  margin: 8px auto 26px;
  border: 1px solid rgba(147, 197, 253, 0.18);
  border-radius: 50%;
  box-shadow: inset 0 0 34px rgba(59, 130, 246, 0.12), 0 0 36px rgba(59, 130, 246, 0.16);
  animation: orbit-pulse 1600ms ease-in-out infinite;
}

.queue-orbit::before {
  content: "";
  position: absolute;
  inset: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--violet));
  box-shadow: 0 0 44px rgba(124, 58, 237, 0.34);
}

.queue-orbit span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: #60a5fa;
  animation: orbit-spin 1500ms linear infinite;
}

.queue-orbit span:nth-child(2) {
  inset: 18px;
  border-top-color: #a78bfa;
  animation-duration: 1100ms;
  animation-direction: reverse;
}

.queue-orbit span:nth-child(3) {
  inset: 34px;
  border-top-color: #22c55e;
  animation-duration: 900ms;
}

.player-slots {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: center;
}

.queue-player {
  display: grid;
  min-height: 154px;
  place-items: center;
  padding: 14px 10px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.26);
}

.queue-player.is-filled {
  border-color: rgba(34, 197, 94, 0.36);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28), 0 0 30px rgba(34, 197, 94, 0.12);
}

.queue-player.is-bot {
  border-color: rgba(234, 179, 8, 0.38);
}

.queue-avatar {
  display: grid;
  width: 62px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #f8fafc;
  font-size: 1.3rem;
  font-weight: 900;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  box-shadow: 0 0 32px rgba(59, 130, 246, 0.32);
}

.queue-player span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.queue-player strong {
  color: var(--ink);
  font-size: 1rem;
}

.vs-badge {
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #ef4444, #7c3aed);
  box-shadow: 0 0 34px rgba(124, 58, 237, 0.36);
  transform: scale(0.92);
}

.matchmaking-card.is-found .vs-badge {
  animation: vs-pop 680ms ease infinite alternate;
}

#queueDetail {
  margin: 24px 0 14px;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.queue-progress {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
}

.queue-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6, #7c3aed, #22c55e);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.44);
  transition: width 6.8s linear;
}

.countdown-value {
  display: grid;
  min-height: 92px;
  place-items: center;
  color: #f8fafc;
  font-size: 4.4rem;
  line-height: 1;
  text-shadow: 0 0 34px rgba(59, 130, 246, 0.42);
  animation: countdown-pop 850ms ease infinite;
}

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

@keyframes orbit-pulse {
  0%, 100% { transform: scale(1); opacity: 0.92; }
  50% { transform: scale(1.03); opacity: 1; }
}

@keyframes vs-pop {
  from { transform: scale(0.92); }
  to { transform: scale(1.08); }
}

@keyframes countdown-pop {
  0% { transform: scale(0.86); opacity: 0.4; }
  42% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.82; }
}

/* Competitive in-game UX */
.match-timer {
  position: absolute;
  right: 0;
  display: grid;
  min-width: 66px;
  min-height: 38px;
  place-items: center;
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 14px;
  color: #bfdbfe;
  font-weight: 900;
  background: rgba(15, 23, 42, 0.8);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.14);
}

.turn-timer {
  grid-column: 1 / -1;
  position: relative;
  height: 12px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.72);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.turn-timer span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #eab308, #ef4444);
  transition: width 1000ms linear;
}

.turn-timer b {
  position: absolute;
  inset: -20px 0 auto auto;
  color: #cbd5e1;
  font-size: 0.72rem;
}

.phone[data-turn="green"] #matchStatus {
  color: #86efac;
  text-shadow: 0 0 18px rgba(34, 197, 94, 0.38);
}

.phone[data-turn="red"] #matchStatus {
  color: #fecaca;
  text-shadow: 0 0 18px rgba(239, 68, 68, 0.34);
}

.token-trail {
  position: absolute;
  z-index: 11;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: trail-fade 520ms ease-out;
}

.green-trail {
  background: radial-gradient(circle, rgba(34, 197, 94, 0.42), transparent 70%);
  box-shadow: 0 0 34px rgba(34, 197, 94, 0.42);
}

.red-trail {
  background: radial-gradient(circle, rgba(239, 68, 68, 0.42), transparent 70%);
  box-shadow: 0 0 34px rgba(239, 68, 68, 0.42);
}

@keyframes trail-fade {
  0% { opacity: 1; transform: translate(-50%, -50%) scale(0.7); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.8); }
}

.result-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  display: none;
  padding: 24px;
  place-items: center;
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
}

.result-overlay.is-visible {
  display: grid;
}

.result-card {
  width: 100%;
  padding: 22px;
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(34, 197, 94, 0.28), transparent 44%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.96), rgba(15, 23, 42, 0.98));
  box-shadow: 0 32px 70px rgba(0, 0, 0, 0.46), 0 0 56px rgba(34, 197, 94, 0.2);
  animation: result-pop 520ms ease both;
}

.result-card span {
  color: #86efac;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.result-card h2 {
  margin: 8px 0;
  color: var(--ink);
  font-size: 2rem;
  line-height: 1.02;
}

.result-card > strong {
  display: block;
  margin-bottom: 18px;
  color: #fef3c7;
  font-size: 1.4rem;
}

.result-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.result-stats article {
  padding: 12px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
}

.result-stats b {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 1.4rem;
}

@keyframes result-pop {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Smart rewarded ads */
.ad-reward-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 90% 0%, rgba(59, 130, 246, 0.2), transparent 42%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.92));
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.24);
}

.ad-reward-card span {
  color: #93c5fd;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.ad-reward-card h3 {
  margin: 4px 0;
  color: var(--ink);
}

.ad-reward-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.ad-reward-card .text-button {
  flex: 0 0 auto;
  min-height: 46px;
  color: #dbeafe;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.42), rgba(124, 58, 237, 0.36));
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.14);
}

.result-ad-actions {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.reward-action-button {
  min-height: 52px;
  border-radius: 16px;
  color: #f8fafc;
  font-weight: 900;
  background: linear-gradient(135deg, #22c55e, #eab308);
  box-shadow: 0 18px 34px rgba(34, 197, 94, 0.24);
  text-transform: uppercase;
}

.reward-action-button.retry-button {
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  box-shadow: 0 18px 34px rgba(59, 130, 246, 0.24);
}

.reward-action-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

.ad-card {
  position: relative;
  overflow: hidden;
}

.ad-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0 36%, rgba(255, 255, 255, 0.14) 49%, transparent 62% 100%);
  transform: translateX(-130%);
  animation: wallet-shine 3400ms ease-in-out infinite;
}

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

/* Game mode selection */
#screen-modes {
  background:
    radial-gradient(circle at 50% 16%, rgba(124, 58, 237, 0.22), transparent 34%),
    radial-gradient(circle at 86% 12%, rgba(59, 130, 246, 0.18), transparent 32%),
    linear-gradient(180deg, #0f172a 0%, #08111f 54%, #020617 100%);
}

.mode-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.mode-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 26px;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.96));
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.mode-card:hover,
.mode-card.is-selected {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.42);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.42), 0 0 42px rgba(59, 130, 246, 0.18);
}

.mode-card::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -34px;
  width: 130px;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.48;
}

.quick-mode::before {
  background: #3b82f6;
}

.turbo-mode::before {
  background: #ef4444;
}

.classic-mode::before {
  background: #22c55e;
}

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

.mode-card span {
  color: #93c5fd;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mode-card h3 {
  margin: 6px 0;
  color: var(--ink);
  font-size: 1.7rem;
}

.mode-card p {
  margin-bottom: 14px;
  color: var(--muted);
}

.mode-card ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.mode-card li {
  min-height: 62px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(2, 6, 23, 0.42);
}

.mode-card li b {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.66rem;
  text-transform: uppercase;
}

.mode-card li strong {
  color: var(--ink);
  font-size: 0.86rem;
}

.mode-card .primary-button {
  width: 100%;
}

/* Daily missions */
#screen-missions {
  background:
    radial-gradient(circle at 50% 12%, rgba(34, 197, 94, 0.18), transparent 34%),
    radial-gradient(circle at 86% 0%, rgba(124, 58, 237, 0.18), transparent 32%),
    linear-gradient(180deg, #0f172a 0%, #08111f 54%, #020617 100%);
}

.mission-reset-card {
  position: relative;
  margin: 16px 0 18px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.94)),
    radial-gradient(circle at 92% 12%, rgba(59, 130, 246, 0.28), transparent 42%);
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.mission-reset-card::after {
  content: "";
  position: absolute;
  inset: auto -36px -62px auto;
  width: 168px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.2);
  filter: blur(22px);
}

.mission-reset-card span,
.daily-mission-card span {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mission-reset-card strong {
  position: relative;
  display: block;
  z-index: 1;
  margin: 6px 0 4px;
  color: #e2e8f0;
  font-size: 2.05rem;
  font-weight: 900;
  text-shadow: 0 0 22px rgba(34, 197, 94, 0.26);
}

.mission-reset-card p {
  position: relative;
  z-index: 1;
  max-width: 260px;
  color: #94a3b8;
  font-size: 0.86rem;
  line-height: 1.45;
}

.daily-mission-list {
  display: grid;
  gap: 14px;
  padding-bottom: 92px;
}

.daily-mission-card {
  position: relative;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  align-items: center;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.94));
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: mission-enter 480ms ease both;
}

.daily-mission-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 92% 0%, rgba(59, 130, 246, 0.16), transparent 38%);
  opacity: 0.9;
}

.daily-mission-card.is-complete {
  border-color: rgba(234, 179, 8, 0.42);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34), 0 0 28px rgba(234, 179, 8, 0.12);
}

.daily-mission-card.is-claimed {
  border-color: rgba(34, 197, 94, 0.36);
  opacity: 0.86;
}

.mission-icon,
.mission-content {
  position: relative;
  z-index: 1;
}

.mission-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 18px;
  color: #e2e8f0;
  font-weight: 900;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.28), transparent 28%),
    linear-gradient(135deg, #3b82f6, #7c3aed);
  box-shadow: 0 0 26px rgba(59, 130, 246, 0.28), 0 14px 24px rgba(0, 0, 0, 0.28);
}

.mission-copy {
  display: block;
}

.mission-copy h3 {
  margin: 5px 0 0;
  color: #e2e8f0;
  font-size: 1.02rem;
  line-height: 1.18;
}

.mission-progress {
  height: 10px;
  margin: 13px 0 12px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(2, 6, 23, 0.74);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.1);
}

.mission-progress span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22c55e, #eab308);
  box-shadow: 0 0 20px rgba(34, 197, 94, 0.36);
  transition: width 520ms cubic-bezier(0.2, 0.9, 0.2, 1);
}

.mission-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mission-meta em {
  padding: 7px 10px;
  border: 1px solid rgba(234, 179, 8, 0.22);
  border-radius: 999px;
  color: #fde68a;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  background: rgba(234, 179, 8, 0.1);
  box-shadow: 0 0 18px rgba(234, 179, 8, 0.12);
}

.mission-claim-button {
  min-width: 88px;
  height: 38px;
  border: 0;
  border-radius: 14px;
  color: #e2e8f0;
  font-weight: 900;
  background: linear-gradient(135deg, #3b82f6, #7c3aed);
  box-shadow: 0 12px 26px rgba(59, 130, 246, 0.24);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.mission-claim-button:not(:disabled):active {
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.18);
}

.mission-claim-button:disabled {
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
  cursor: default;
}

.daily-mission-card.is-complete:not(.is-claimed) .mission-claim-button {
  color: #052e16;
  background: linear-gradient(135deg, #eab308, #22c55e);
  box-shadow: 0 0 26px rgba(234, 179, 8, 0.22), 0 14px 26px rgba(0, 0, 0, 0.28);
  animation: claim-pulse 1500ms ease-in-out infinite;
}

@keyframes mission-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes claim-pulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

/* Daily spin wheel */
.spin-teaser-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(234, 179, 8, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 20%, rgba(234, 179, 8, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.94));
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.3), 0 0 26px rgba(234, 179, 8, 0.08);
}

.spin-teaser-card span,
.spin-hero-card > span,
.spin-rule-grid span {
  color: #fde68a;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spin-teaser-card h3 {
  margin: 4px 0;
  color: #e2e8f0;
  font-size: 1.02rem;
}

.spin-teaser-card p {
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.35;
}

.mini-wheel {
  position: relative;
  width: 52px;
  aspect-ratio: 1;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: conic-gradient(from 18deg, #3b82f6, #7c3aed, #eab308, #22c55e, #ef4444, #3b82f6);
  box-shadow: 0 0 22px rgba(234, 179, 8, 0.2), inset 0 0 16px rgba(2, 6, 23, 0.42);
  animation: mini-wheel-spin 5s linear infinite;
}

.mini-wheel span {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: #0f172a;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.1);
}

#screen-spin {
  background:
    radial-gradient(circle at 50% 8%, rgba(234, 179, 8, 0.18), transparent 34%),
    radial-gradient(circle at 86% 0%, rgba(124, 58, 237, 0.18), transparent 32%),
    linear-gradient(180deg, #0f172a 0%, #07101f 56%, #020617 100%);
}

.spin-hero-card {
  position: relative;
  display: grid;
  gap: 14px;
  justify-items: center;
  margin: 16px 0;
  padding: 20px 16px 24px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 28px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 34%, rgba(59, 130, 246, 0.22), transparent 42%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.96));
  box-shadow: 0 28px 66px rgba(0, 0, 0, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.spin-hero-card::before {
  content: "";
  position: absolute;
  inset: -80px 20px auto;
  height: 150px;
  border-radius: 50%;
  background: rgba(234, 179, 8, 0.18);
  filter: blur(34px);
}

.spin-hero-card > * {
  position: relative;
  z-index: 1;
}

.spin-hero-card h3 {
  min-height: 44px;
  max-width: 270px;
  color: #e2e8f0;
  font-size: 1.45rem;
  line-height: 1.16;
}

.spin-wheel-wrap {
  position: relative;
  display: grid;
  width: min(282px, 100%);
  aspect-ratio: 1;
  place-items: center;
}

.wheel-pointer {
  position: absolute;
  top: -4px;
  z-index: 4;
  width: 0;
  height: 0;
  border-right: 14px solid transparent;
  border-left: 14px solid transparent;
  border-top: 0;
  border-bottom: 28px solid #fde68a;
  filter: drop-shadow(0 0 12px rgba(234, 179, 8, 0.4));
}

.spin-wheel {
  position: relative;
  width: 100%;
  height: 100%;
  border: 8px solid rgba(226, 232, 240, 0.1);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(2, 6, 23, 0.1) 0 19%, transparent 20%),
    conic-gradient(from -30deg, #3b82f6 0 60deg, #7c3aed 60deg 120deg, #eab308 120deg 180deg, #22c55e 180deg 240deg, #ef4444 240deg 300deg, #0ea5e9 300deg 360deg);
  box-shadow:
    0 28px 54px rgba(0, 0, 0, 0.46),
    0 0 46px rgba(59, 130, 246, 0.2),
    inset 0 0 42px rgba(2, 6, 23, 0.42);
  transition: transform 2600ms cubic-bezier(0.12, 0.78, 0.1, 1);
}

.spin-wheel::after {
  content: "";
  position: absolute;
  inset: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  box-shadow: inset 0 0 28px rgba(255, 255, 255, 0.08);
}

.wheel-label {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 72px;
  margin: -13px 0 0 -36px;
  color: #f8fafc;
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  text-shadow: 0 2px 10px rgba(2, 6, 23, 0.55);
}

.label-1 { transform: rotate(30deg) translateY(-98px) rotate(-30deg); }
.label-2 { transform: rotate(90deg) translateY(-98px) rotate(-90deg); }
.label-3 { transform: rotate(150deg) translateY(-98px) rotate(-150deg); }
.label-4 { transform: rotate(210deg) translateY(-98px) rotate(-210deg); }
.label-5 { transform: rotate(270deg) translateY(-98px) rotate(-270deg); }
.label-6 { transform: rotate(330deg) translateY(-98px) rotate(-330deg); }

.spin-center-button {
  position: absolute;
  inset: 50%;
  z-index: 3;
  width: 96px;
  height: 96px;
  margin: -48px 0 0 -48px;
  border: 0;
  border-radius: 50%;
  color: #052e16;
  font-weight: 900;
  text-transform: uppercase;
  background:
    radial-gradient(circle at 35% 24%, rgba(255, 255, 255, 0.72), transparent 28%),
    linear-gradient(135deg, #fde68a, #22c55e);
  box-shadow: 0 0 34px rgba(234, 179, 8, 0.34), 0 18px 36px rgba(0, 0, 0, 0.38);
  cursor: pointer;
  transform: rotate(calc(var(--wheel-rotation, 0deg) * -1));
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.spin-center-button:not(:disabled):active {
  transform: rotate(calc(var(--wheel-rotation, 0deg) * -1)) scale(0.96);
}

.spin-center-button:disabled {
  color: #64748b;
  background: linear-gradient(135deg, #334155, #0f172a);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.14);
  cursor: default;
}

.spin-rule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.spin-rule-grid article,
.spin-actions {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.94));
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.24);
}

.spin-rule-grid strong {
  display: block;
  margin: 6px 0;
  color: #e2e8f0;
  font-size: 1.2rem;
}

.spin-rule-grid p,
.spin-actions p {
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.38;
}

.spin-actions {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-bottom: 20px;
}

.spin-actions .primary-button {
  width: 100%;
}

@keyframes mini-wheel-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Play with friends */
.friends-teaser-card {
  position: relative;
  display: grid;
  grid-template-columns: 58px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(37, 211, 102, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 18%, rgba(37, 211, 102, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.95));
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.3), 0 0 26px rgba(37, 211, 102, 0.08);
}

.friends-teaser-card span,
.friends-hero-card > span,
.join-room-card span,
.friend-flow-grid span,
.lobby-code-card span,
.lobby-start-card span {
  color: #86efac;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.friends-teaser-card h3,
.join-room-card h3,
.lobby-start-card h3 {
  margin: 4px 0;
  color: #e2e8f0;
  font-size: 1.02rem;
}

.friends-teaser-card p,
.join-room-card p,
.lobby-start-card p {
  color: #94a3b8;
  font-size: 0.8rem;
  line-height: 1.35;
}

.friends-orb {
  position: relative;
  width: 54px;
  height: 54px;
}

.friends-orb span {
  position: absolute;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: #dcfce7;
  font-size: 0.86rem;
  font-weight: 900;
  background: linear-gradient(135deg, #22c55e, #3b82f6);
  box-shadow: 0 0 22px rgba(34, 197, 94, 0.24), 0 12px 24px rgba(0, 0, 0, 0.28);
}

.friends-orb span:first-child {
  top: 2px;
  left: 1px;
}

.friends-orb span:last-child {
  right: 0;
  bottom: 1px;
  background: linear-gradient(135deg, #7c3aed, #25d366);
}

#screen-friends,
#screen-lobby {
  background:
    radial-gradient(circle at 50% 10%, rgba(37, 211, 102, 0.17), transparent 34%),
    radial-gradient(circle at 88% 0%, rgba(59, 130, 246, 0.18), transparent 32%),
    linear-gradient(180deg, #0f172a 0%, #07101f 56%, #020617 100%);
}

.friends-hero-card,
.join-room-card,
.lobby-code-card,
.lobby-start-card {
  position: relative;
  display: grid;
  gap: 14px;
  margin: 16px 0;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 26px;
  background:
    radial-gradient(circle at 88% 12%, rgba(37, 211, 102, 0.18), transparent 40%),
    linear-gradient(180deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.96));
  box-shadow: 0 26px 58px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.friends-hero-card h3 {
  max-width: 260px;
  color: #e2e8f0;
  font-size: 1.85rem;
  line-height: 1.05;
}

.friends-hero-card p {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.45;
}

.join-room-card {
  gap: 12px;
}

.room-input-label {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: rgba(2, 6, 23, 0.42);
}

.room-input-label input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  color: #e2e8f0;
  font: inherit;
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: transparent;
}

.room-input-label input::placeholder {
  color: rgba(148, 163, 184, 0.52);
}

.friend-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding-bottom: 92px;
}

.friend-flow-grid article {
  min-height: 116px;
  padding: 13px 10px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.74), rgba(15, 23, 42, 0.94));
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.24);
}

.friend-flow-grid b {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 50%;
  color: #052e16;
  background: linear-gradient(135deg, #86efac, #22c55e);
}

.friend-flow-grid p {
  margin-top: 6px;
  color: #94a3b8;
  font-size: 0.74rem;
  line-height: 1.3;
}

.lobby-code-card {
  text-align: center;
}

.lobby-code-card strong {
  color: #e2e8f0;
  font-size: 2.35rem;
  letter-spacing: 0.16em;
  text-shadow: 0 0 28px rgba(37, 211, 102, 0.28);
}

.lobby-code-card p {
  color: #94a3b8;
  font-size: 0.88rem;
}

.lobby-actions {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 10px;
}

.whatsapp-button {
  min-height: 44px;
  border: 0;
  border-radius: 15px;
  color: #052e16;
  font-weight: 900;
  background: linear-gradient(135deg, #25d366, #86efac);
  box-shadow: 0 0 24px rgba(37, 211, 102, 0.22), 0 14px 28px rgba(0, 0, 0, 0.28);
}

.lobby-slots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.lobby-player {
  display: grid;
  gap: 7px;
  justify-items: center;
  min-height: 174px;
  padding: 18px 12px;
  border: 1px dashed rgba(148, 163, 184, 0.24);
  border-radius: 24px;
  text-align: center;
  background: rgba(15, 23, 42, 0.68);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  transition: transform 260ms ease, border-color 260ms ease, box-shadow 260ms ease;
}

.lobby-player.is-ready {
  border-style: solid;
  border-color: rgba(34, 197, 94, 0.4);
  box-shadow: 0 0 28px rgba(34, 197, 94, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}

.lobby-player div {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border-radius: 20px;
  color: #e2e8f0;
  font-size: 1.2rem;
  font-weight: 900;
  background:
    radial-gradient(circle at 35% 22%, rgba(255, 255, 255, 0.28), transparent 30%),
    linear-gradient(135deg, #3b82f6, #7c3aed);
  box-shadow: 0 0 24px rgba(59, 130, 246, 0.24);
}

.lobby-player span {
  color: #94a3b8;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lobby-player strong {
  color: #e2e8f0;
  font-size: 1.04rem;
}

.lobby-player em {
  padding: 6px 10px;
  border-radius: 999px;
  color: #bbf7d0;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  background: rgba(34, 197, 94, 0.12);
}

.lobby-start-card {
  grid-template-columns: 1fr;
  margin-bottom: 92px;
}

.lobby-start-card .primary-button {
  width: 100%;
}

.lobby-start-card .primary-button:disabled {
  color: #94a3b8;
  background: rgba(15, 23, 42, 0.82);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.12);
}
