@font-face {
  font-family: Rewards Arabic;
  src: url("/fonts/rewards-arabic-regular.woff2") format("woff2");
  font-display: swap;
  font-weight: 400;
}
@font-face {
  font-family: Rewards Arabic;
  src: url("/fonts/rewards-arabic-bold.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
}
:root {
  --bg: #10182c;
  --surface: #18233b;
  --surface-2: #202d49;
  --ink: #f4f6ff;
  --muted: #a8b5d1;
  --line: #ffffff12;
  --violet: #7957ff;
  --cyan: #17d7f4;
  --gold: #ffc247;
  --green: #29d7a1;
  --danger: #ff92a1;
  --nav: #142039f5;
  --safe-top: 0px;
  --safe-bottom: 0px;
  --content-safe-top: 0px;
  color-scheme: dark;
  font-family: "Rewards Arabic", system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--bg);
}
:root[data-theme="light"] {
  --bg: #f2f4fb;
  --surface: #fff;
  --surface-2: #e9edf8;
  --ink: #18233b;
  --muted: #52617f;
  --line: #18233b18;
  --nav: #fffffff5;
  --cyan: #00778d;
  --green: #087a58;
  --gold: #885b00;
  --danger: #b22744;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 85% 0, #7957ff12, transparent 40%), var(--bg);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  border: 0;
  border-radius: 14px;
  min-height: 44px;
  padding: 11px 16px;
  background: var(--violet);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    transform 0.16s,
    background 0.16s,
    box-shadow 0.16s;
}
button:hover:not(:disabled) {
  box-shadow: 0 4px 18px #7957ff26;
}
button:active:not(:disabled) {
  transform: scale(0.97);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}
a {
  color: var(--cyan);
}
button .i {
  width: 19px;
  height: 19px;
}
.i {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.gold {
  color: var(--gold);
}
.cyan {
  color: var(--cyan);
}
.violet {
  color: #ad98ff;
}
.shell {
  max-width: 620px;
  margin: auto;
  padding: calc(
      20px + max(env(safe-area-inset-top), var(--safe-top)) +
        var(--content-safe-top)
    )
    20px calc(110px + max(env(safe-area-inset-bottom), var(--safe-bottom)));
}
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.identity {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  min-width: 0;
}
.identity img {
  flex-shrink: 0;
  filter: drop-shadow(0 3px 10px #17d7f420);
}
.identity span {
  min-width: 0;
}
.brand {
  font-family: system-ui, sans-serif;
  font-size: 18px;
  font-weight: 750;
  display: block;
  letter-spacing: -0.4px;
}
.identity small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 3px;
}
.avatar {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 50%;
  padding: 10px;
  color: var(--cyan);
  flex-shrink: 0;
}
.connection {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--muted);
  margin: 18px 0 12px;
}
.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}
#network-state {
  margin-inline-start: auto;
}
.notice {
  font-size: 11px;
  line-height: 1.8;
  padding: 10px 13px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
  min-height: 41px;
  overflow-wrap: anywhere;
}
.notice.error {
  border-color: var(--danger);
  color: var(--danger);
}
p {
  color: var(--muted);
  line-height: 1.85;
  font-size: 12px;
  margin: 8px 0 12px;
}
h1 {
  font-size: 25px;
  line-height: 1.6;
  margin: 5px 0 14px;
  letter-spacing: -0.6px;
}
h2 {
  font-size: 16px;
  margin: 0 0 10px;
}
h3 {
  font-size: 14px;
  margin: 0 0 6px;
}
.accent {
  color: var(--cyan);
}
.eyebrow {
  font-family: system-ui, "Rewards Arabic", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.1px;
  color: var(--muted);
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 25px 0 14px;
}
.section-heading h1,
.section-heading h2 {
  margin: 0;
}
.welcome {
  margin: 20px 0;
}
.welcome h1 {
  font-size: 22px;
}
.welcome > .i {
  width: 30px;
  height: 30px;
}
.hero {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 24px;
  background: linear-gradient(115deg, #4c3696, #252f58 70%, #244457);
  border: 1px solid #b3a2ff30;
  color: #fff;
  min-height: 204px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 12px 35px #0002;
}
.hero::after {
  content: "";
  position: absolute;
  width: 250px;
  height: 250px;
  border: 1px solid #ffffff0a;
  border-radius: 50%;
  top: -140px;
  right: -80px;
}
.hero-copy {
  position: relative;
  z-index: 1;
}
.hero .eyebrow {
  color: #ded6ff;
}
.balance-line {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.balance {
  font-family: "Rewards Arabic", system-ui, sans-serif;
  font-size: 46px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.8;
  display: block;
  min-width: 1ch;
  overflow-wrap: anywhere;
}
.balance-line > span {
  font-size: 11px;
  color: #d5dcf6;
}
.reserved-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: #d5dcf6;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--surface-2);
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 24px;
  font-size: 9px;
  white-space: nowrap;
  color: var(--muted);
}
.hero .pill {
  background: #ffffff12;
  color: #e4f6ff;
}
.pill .i {
  width: 12px;
  height: 12px;
}
.hero-link {
  padding: 8px 0;
  background: transparent;
  color: #fff;
  margin-top: 9px;
}
.coin-art {
  width: 112px;
  height: 125px;
  position: relative;
  margin-inline-start: 5px;
}
.coin-face {
  width: 92px;
  height: 92px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ffe9a0, #ffc247 45%, #e99b29);
  border: 5px solid #ffe4a0;
  box-shadow:
    7px 8px 0 #b77324,
    10px 18px 30px #0003;
  transform: rotate(-17deg);
  position: absolute;
  top: 17px;
  left: 8px;
  color: #895619;
}
.coin-face .i {
  width: 61px;
  height: 61px;
  stroke-width: 1.1;
}
.orbit {
  position: absolute;
  width: 125px;
  height: 125px;
  left: -9px;
  top: 8px;
  border: 1px solid #17d7f444;
  border-radius: 50%;
  transform: rotate(-25deg) scaleY(0.7);
}
.mini-spark {
  position: absolute;
  top: 0;
  color: #a899ff;
  font-size: 29px;
}
.daily-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid #ffc24730;
  background: linear-gradient(110deg, #ffc2470c, var(--surface));
  position: relative;
  overflow: hidden;
}
.icon-box {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 15px;
  background: #7957ff20;
  color: #ad98ff;
  flex-shrink: 0;
}
.icon-box.gold {
  background: #ffc24716;
  color: var(--gold);
}
.daily-copy {
  flex: 1;
}
.daily-copy p {
  margin: 0;
}
.gold-button {
  background: #ffc247;
  color: #33260f;
  padding: 10px;
  max-width: 130px;
}
.text-button {
  background: none;
  color: var(--cyan);
  padding: 4px;
  font-size: 10px;
  min-height: 44px;
}
.text-button .i {
  width: 16px;
}
.feature-grid,
.game-grid,
.reward-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.feature {
  border-radius: 22px;
  padding: 18px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: start;
  min-width: 0;
  min-height: 225px;
  border: 1px solid var(--line);
  color: var(--ink);
}
.game-feature {
  background: linear-gradient(160deg, #7957ff2b, var(--surface));
}
.ad-feature {
  background: linear-gradient(160deg, #17d7f415, var(--surface));
}
.feature-art {
  height: 62px;
  position: relative;
  color: #b29cff;
  display: block;
}
.feature-art > .i {
  width: 54px;
  height: 54px;
  stroke-width: 1.3;
  transform: rotate(-12deg);
}
.ad-feature .feature-art {
  color: var(--cyan);
}
.art-spark {
  position: absolute;
  left: -20px;
  top: 1px;
  color: var(--cyan);
}
.feature strong,
.feature h3 {
  margin: 10px 0 4px;
}
.feature small,
.feature p {
  color: var(--muted);
  line-height: 1.9;
  margin: 0;
}
.feature-action {
  color: #c3b6ff;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}
.ad-feature button {
  background: #17d7f414;
  color: var(--cyan);
  font-size: 10px;
  width: 100%;
  margin-top: 12px;
  border: 1px solid #17d7f426;
}
.referral-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-align: start;
  color: var(--ink);
  border-radius: 20px;
}
.referral-banner > span:nth-child(2) {
  flex: 1;
}
.referral-banner strong {
  font-size: 12px;
  display: block;
}
.referral-banner small {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 5px;
}
.referral-banner > .i {
  width: 18px;
  color: var(--muted);
}
.panel {
  background: var(--surface);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  margin: 14px 0;
}
.journey .section-heading {
  margin: 0;
}
.journey p {
  font-size: 10px;
}
.journey-steps {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  gap: 8px;
  margin-top: 7px;
}
.journey-steps .done {
  color: var(--green);
}
progress {
  display: block;
  appearance: none;
  height: 6px;
  border: 0;
  border-radius: 6px;
  width: 100%;
  overflow: hidden;
  background: var(--surface-2);
  color: var(--cyan);
}
progress::-webkit-progress-bar {
  background: var(--surface-2);
}
progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--violet), var(--cyan));
  border-radius: 6px;
}
progress::-moz-progress-bar {
  background: var(--cyan);
}
.shop-banner {
  width: 100%;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(115deg, #ffc24712, #7957ff19);
  color: var(--ink);
  border: 1px solid #ffc24735;
  justify-content: space-between;
  text-align: start;
}
.shop-banner > span {
  display: grid;
  grid-template-columns: 34px 1fr;
  column-gap: 8px;
  align-items: center;
}
.shop-banner > span > .i {
  grid-row: span 2;
  color: var(--gold);
  width: 30px;
  height: 30px;
}
.shop-banner strong {
  font-size: 12px;
}
.shop-banner small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.advertise-link {
  display: flex;
  margin: 12px auto;
}
.app-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: var(--muted);
  font-size: 9px;
  margin: 25px 0 0;
}
.app-footer .i {
  width: 12px;
  height: 12px;
}
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, 620px);
  display: flex;
  justify-content: space-around;
  background: var(--nav);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  padding: 10px 8px
    calc(9px + max(env(safe-area-inset-bottom), var(--safe-bottom)));
  z-index: 20;
  box-shadow: 0 -8px 30px #0002;
  backdrop-filter: blur(18px);
}
.bottom-nav button {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  max-width: 95px;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  padding: 6px 2px;
  border-radius: 13px;
  position: relative;
  min-height: 54px;
}
.bottom-nav button .i {
  width: 22px;
  height: 22px;
}
.bottom-nav [aria-current="page"] {
  background: #7957ff1c;
  color: #b6a1ff;
}
.bottom-nav [aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -11px;
  width: 21px;
  height: 3px;
  background: var(--violet);
  border-radius: 4px;
}
.intro {
  margin-top: 0;
}
.game-card {
  position: relative;
  border: 1px solid var(--line);
  padding: 18px 15px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--surface);
  min-width: 0;
}
.game-card > .i {
  width: 40px;
  height: 40px;
  color: #b39fff;
  margin-bottom: 15px;
}
.game-card .eyebrow {
  display: block;
  font-size: 8px;
  letter-spacing: 0.5px;
}
.game-card h2 {
  margin-top: 7px;
}
.game-card p {
  font-size: 10px;
  min-height: 38px;
}
.game-card button {
  width: 100%;
  font-size: 11px;
}
.memory-card {
  background: linear-gradient(155deg, #7957ff25, var(--surface));
}
.quiz-card {
  background: linear-gradient(155deg, #17d7f412, var(--surface));
}
.quiz-card > .i {
  color: var(--cyan);
}
.math-card {
  background: linear-gradient(155deg, #ffc24713, var(--surface));
}
.math-card > .i {
  color: var(--gold);
}
.sequence-card {
  background: linear-gradient(155deg, #29d7a114, var(--surface));
}
.sequence-card > .i {
  color: var(--green);
}
.challenge-panel {
  margin-top: 20px;
  background: var(--surface);
  border: 1px solid #7957ff50;
  padding: 20px;
  border-radius: 24px;
  scroll-margin-top: 15px;
}
.challenge-panel .section-heading {
  margin: 0 0 18px;
}
.challenge-panel h2 {
  font-size: 20px;
  line-height: 1.7;
  margin-top: 20px;
}
.timer {
  font-family: system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  color: var(--cyan);
  font-size: 15px;
}
.choice {
  width: 100%;
  display: flex;
  justify-content: flex-start;
  text-align: start;
  margin-top: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  min-height: 54px;
}
.choice::before {
  content: attr(data-letter);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #7957ff25;
  color: #bdabff;
  flex-shrink: 0;
  font-family: system-ui, sans-serif;
}
.result {
  padding: 12px;
  border-radius: 12px;
  min-height: 24px;
  font-weight: 700;
  line-height: 1.8;
}
.result:empty {
  display: none;
}
.result.success {
  background: #29d7a114;
  color: var(--green);
  border: 1px solid #29d7a144;
}
.result.failure {
  background: #ff92a110;
  color: var(--danger);
  border: 1px solid #ff92a130;
}
iframe {
  width: 100%;
  height: 640px;
  border: 1px solid var(--line);
  border-radius: 22px;
  margin-top: 20px;
  background: var(--bg);
  scroll-margin-top: 20px;
}
.task-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
  margin: 12px 0;
  background: var(--surface);
}
.task-content {
  flex: 1;
  min-width: 0;
}
.task-card .icon-box {
  color: var(--cyan);
  background: #17d7f412;
}
.task-card button {
  font-size: 11px;
  width: 100%;
  margin-top: 12px;
}
.task-card h2 {
  line-height: 1.7;
}
.task-card p {
  font-size: 11px;
}
.task-meta {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}
.task-status {
  font-size: 10px;
  color: var(--muted);
  margin-top: 8px;
}
.store-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 20px;
  border-radius: 24px;
  background: linear-gradient(130deg, #ffc24712, #7957ff15);
  border: 1px solid #ffc24720;
  margin-bottom: 20px;
}
.store-intro strong {
  font-size: 14px;
}
.store-intro p {
  margin: 5px 0 0;
}
.vault-art {
  width: 65px;
  flex-shrink: 0;
  color: var(--gold);
  transform: rotate(-12deg);
}
.vault-art .i {
  width: 60px;
  height: 60px;
  stroke-width: 1.2;
}
.reward-card {
  border: 1px solid #ffc24725;
  overflow: hidden;
  background: var(--surface);
  min-width: 0;
  padding: 16px;
}
.reward-art {
  height: 95px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  background: radial-gradient(ellipse, #ffc24715, transparent 70%);
  border-bottom: 1px solid var(--line);
  margin-bottom: 15px;
}
.reward-art .i {
  width: 67px;
  height: 67px;
  stroke-width: 1.2;
  transform: rotate(-10deg);
}
.reward-card h2 {
  line-height: 1.7;
}
.reward-card .reward-price {
  color: var(--gold);
  font-weight: 700;
  font-size: 16px;
}
.reward-card form {
  margin-top: 12px;
}
.reward-card button {
  width: 100%;
  font-size: 10px;
  background: #ffc247;
  color: #33260f;
}
.reward-card label {
  font-size: 10px;
}
.reward-grid:has(.empty-state) {
  grid-template-columns: 1fr;
}
.wallet-card {
  background: linear-gradient(130deg, #7957ff25, #17d7f40e), var(--surface);
  border: 1px solid #7957ff40;
  padding: 24px;
  border-radius: 26px;
}
.wallet-card > span {
  font-size: 12px;
  color: var(--muted);
}
.wallet-card > .balance {
  color: var(--ink);
  font-size: 48px;
}
.wallet-reserved {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.wallet-card button {
  font-size: 12px;
  width: 100%;
}
.history {
  list-style: none;
  padding: 0;
}
.history li {
  display: flex;
  align-items: center;
  padding: 16px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.history li:first-child {
  border-radius: 18px 18px 0 0;
}
.history li:last-child {
  border-radius: 0 0 18px 18px;
}
.history .entry-copy {
  flex: 1;
  font-size: 12px;
}
.history .entry-value {
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  direction: ltr;
}
.history time {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.request-row {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 14px;
  margin: 8px 0;
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
}
.empty-state {
  text-align: center;
  padding: 32px 24px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: 22px;
  list-style: none;
}
.empty-state .i {
  width: 62px;
  height: 62px;
  color: #aa95ef;
  stroke-width: 1.2;
  margin-bottom: 12px;
}
.empty-state h2 {
  font-size: 16px;
}
.empty-state p {
  font-size: 11px;
}
.profile-card {
  text-align: center;
  padding: 25px;
  background:
    radial-gradient(ellipse at top, #7957ff24, transparent 70%), var(--surface);
  border: 1px solid var(--line);
  border-radius: 25px;
}
.profile-avatar {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  border-radius: 24px;
  background: #7957ff20;
  color: var(--cyan);
  margin: 0 auto 12px;
  border: 1px solid #7957ff50;
  font-size: 26px;
}
.profile-avatar .i {
  width: 35px;
  height: 35px;
}
.profile-card p {
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}
.referral-stats {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  text-align: center;
}
.referral-stats strong {
  display: block;
  font-size: 24px;
  color: var(--ink);
}
.referral-stats span {
  font-size: 10px;
  color: var(--muted);
}
.referral-panel a {
  display: block;
  text-align: center;
  padding: 13px;
  background: #7957ff20;
  border-radius: 12px;
  text-decoration: none;
  font-size: 12px;
}
summary {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  min-height: 44px;
  font-weight: 700;
}
summary::after {
  content: "+";
  margin-inline-start: auto;
  color: var(--muted);
  font-family: system-ui;
  font-size: 18px;
}
details[open] summary::after {
  content: "−";
}
details.panel {
  padding-top: 8px;
  padding-bottom: 8px;
}
.toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.toggle-row input {
  width: 22px;
  height: 22px;
  accent-color: var(--violet);
  margin: 0;
}
.logout {
  background: #ff92a110;
  color: var(--danger);
  border: 1px solid #ff92a130;
}
.full {
  width: 100%;
  margin: 7px 0;
}
.secondary {
  background: var(--surface-2);
  color: var(--ink);
}
label {
  display: block;
  font-size: 12px;
  margin: 14px 0;
  color: var(--muted);
}
input,
textarea,
select {
  display: block;
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  padding: 11px;
  border-radius: 12px;
  margin-top: 8px;
  background: var(--bg);
  color: var(--ink);
}
input[type="number"] {
  font-family: system-ui, sans-serif;
  font-size: 23px;
  text-align: center;
}
input:disabled {
  opacity: 0.5;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
.skip-link {
  position: fixed;
  top: -100px;
  z-index: 99;
  background: var(--surface);
  padding: 12px;
}
.skip-link:focus {
  top: 0;
}
.page[hidden],
iframe[hidden],
[hidden] {
  display: none !important;
}
.page {
  animation: page-in 0.24s ease-out;
}
.skeleton,
.skeleton-block:empty {
  background:
    linear-gradient(90deg, transparent, #ffffff0a, transparent),
    var(--surface-2);
  border-radius: 10px;
}
.skeleton-block:empty {
  min-height: 120px;
}
.celebration {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 50;
  overflow: hidden;
}
.celebration span {
  position: absolute;
  top: 35%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 2px;
  animation: confetti 0.7s ease-out forwards;
  transform: rotate(var(--angle));
}
.daily-card.confirmed {
  animation: gold-flash 0.7s ease-out;
}
.memory-shell {
  max-width: 470px;
  margin: auto;
  padding: 20px 16px;
}
.memory-shell .section-heading {
  margin-top: 0;
}
.memory-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 22px 0;
  perspective: 900px;
}
.tile {
  padding: 0;
  background: transparent;
  aspect-ratio: 0.8;
  position: relative;
  border: 0;
  perspective: 700px;
  min-width: 0;
  box-shadow: none !important;
}
.tile-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 0.35s;
}
.tile.revealed .tile-inner {
  transform: rotateY(180deg);
}
.tile-front,
.tile-back {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  backface-visibility: hidden;
  display: grid;
  place-items: center;
  border: 1px solid #9c7eff50;
}
.tile-back {
  background: linear-gradient(140deg, #493485, #252e50);
  color: #b9a5fa;
  box-shadow: 0 4px 0 #151b30;
}
.tile-front {
  background: linear-gradient(140deg, #17d7f421, var(--surface-2));
  transform: rotateY(180deg);
  color: var(--cyan);
  box-shadow: 0 4px 0 #151b30;
}
.tile-front .i,
.tile-back .i {
  width: 32px;
  height: 32px;
}
.tile.matched .tile-front {
  border-color: var(--green);
  color: var(--green);
  background: #29d7a116;
}
.tile:disabled {
  opacity: 1;
}
.memory-meta {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}
.memory-note {
  font-size: 10px;
}
.memory-shell .result {
  font-size: 12px;
}
.memory-shell #restart {
  width: 100%;
  font-size: 12px;
}
@keyframes page-in {
  from {
    opacity: 0.5;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes gold-flash {
  50% {
    box-shadow: 0 0 24px #ffc24750;
  }
}
@keyframes confetti {
  to {
    translate: var(--x) var(--y);
    rotate: 140deg;
    opacity: 0;
  }
}
@media (min-width: 600px) {
  .shell {
    padding-inline: 30px;
  }
  .hero {
    min-height: 225px;
  }
  .feature {
    min-height: 235px;
  }
  .coin-art {
    margin-inline-end: 35px;
  }
  .daily-card {
    padding: 20px;
  }
  .game-card {
    padding: 22px;
  }
  .reward-card {
    padding: 22px;
  }
}
@media (max-width: 360px) {
  .brand {
    font-size: 16px;
  }
  .welcome h1 {
    font-size: 19px;
  }
  .hero {
    padding: 19px;
  }
  .coin-art {
    width: 90px;
    transform: scale(0.85);
  }
  .balance {
    font-size: 39px;
  }
  .daily-card {
    padding: 13px;
  }
  .daily-card .icon-box {
    width: 36px;
    height: 36px;
  }
  .gold-button {
    max-width: 105px;
  }
  .feature {
    padding: 15px;
  }
  .feature-grid,
  .game-grid,
  .reward-grid {
    gap: 10px;
  }
  .feature strong,
  .feature h3 {
    font-size: 13px;
  }
  .game-card {
    padding: 15px 12px;
  }
  .bottom-nav button {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .celebration {
    display: none;
  }
}
html[data-motion="reduced"] *,
html[data-motion="reduced"] *::before,
html[data-motion="reduced"] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html[data-motion="reduced"] .celebration {
  display: none;
}
:root[data-theme="light"] .feature-action,
:root[data-theme="light"] .bottom-nav [aria-current="page"],
:root[data-theme="light"] .violet {
  color: #5732b4;
}
:root[data-theme="light"] .eyebrow {
  color: var(--muted);
}
:root[data-theme="light"] .hero .eyebrow {
  color: #ded6ff;
}
.reward-card:only-child {
  grid-column: 1/-1;
  display: grid;
  grid-template-columns: 84px 1fr;
}
.reward-card:only-child .reward-art {
  grid-row: span 2;
  margin: 0;
  border: 0;
  height: 100px;
}
.reward-card:only-child form {
  grid-column: 1/-1;
}
.reward-card:only-child .reward-price {
  margin-top: 0;
}
/* UC Diamonds V2: compact composition; existing components and API contracts retained. */
.shell {
  padding-top: calc(
    12px + max(env(safe-area-inset-top), var(--safe-top)) +
      var(--content-safe-top)
  );
}
.app-header {
  min-height: 44px;
  gap: 10px;
}
.identity {
  gap: 9px;
}
.identity img {
  width: 40px;
  height: 40px;
}
.brand {
  font-size: 19px;
  letter-spacing: -0.5px;
}
.identity small {
  font-size: 9px;
  line-height: 1.65;
  max-width: 255px;
  margin-top: 2px;
  letter-spacing: 0;
}
.avatar {
  width: 44px;
  height: 44px;
  background: linear-gradient(150deg, #7957ff24, var(--surface));
  border-color: #7957ff30;
}
.connection {
  margin: 9px 0 7px;
  font-size: 9px;
  line-height: 1.5;
}
.notice {
  margin: 7px 0;
  padding: 8px 11px;
  min-height: 36px;
}
.notice.quiet {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
}
.welcome {
  margin: 13px 0 12px;
}
.welcome h1 {
  font-size: 20px;
  line-height: 1.5;
}
.welcome > .i {
  width: 23px;
  height: 23px;
}
.eyebrow {
  font-family: "Rewards Arabic", system-ui, sans-serif;
  letter-spacing: 0;
  font-size: 10px;
}
.section-heading {
  margin: 20px 0 12px;
}
.section-heading h2 {
  font-size: 15px;
}
.hero {
  min-height: 180px;
  padding: 18px 21px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 0 15%, #17d7f428, transparent 55%),
    linear-gradient(120deg, #342659, #252f58 64%, #17384c);
  box-shadow: 0 12px 28px #0002;
  border-color: #afa1ff35;
}
.hero-copy {
  min-width: 0;
  flex: 1;
}
.hero .eyebrow {
  font-size: 11px;
}
.balance-line {
  flex-wrap: wrap;
  gap: 7px;
}
.balance {
  font-size: 43px;
  line-height: 1.55;
  max-width: 100%;
}
.hero .balance {
  color: #fff;
}
.reserved-line {
  gap: 7px;
  font-size: 10px;
}
.hero-link {
  margin-top: 7px;
  border-radius: 11px;
  padding: 8px 12px;
  background: #ffffff13;
  border: 1px solid #ffffff1f;
  font-size: 11px;
  min-height: 44px;
}
.coin-art {
  width: 98px;
  height: 108px;
  flex-shrink: 0;
  margin-inline: 8px 0;
}
.coin-face {
  width: 81px;
  height: 81px;
  top: 12px;
  left: 5px;
  border-radius: 22px;
  background: linear-gradient(135deg, #c2f5ff, #66d6f3 42%, #a997ff);
  border: 3px solid #c6f6ff;
  box-shadow:
    6px 7px 0 #4c508f,
    9px 16px 25px #0004;
  transform: rotate(-12deg);
  color: #263a70;
}
.coin-face .i {
  width: 57px;
  height: 57px;
  stroke-width: 1.4;
}
.orbit {
  width: 112px;
  height: 112px;
  top: 0;
  left: -6px;
  border-color: #ffc24740;
}
.mini-spark {
  font-size: 22px;
  right: 0;
  top: -5px;
  color: #ffc247;
}
.daily-card {
  padding: 15px 16px;
  gap: 11px;
  border-radius: 21px;
  border: 1px solid #ffc24748;
  background:
    radial-gradient(ellipse at 100% 0, #ffc2471d, transparent 72%),
    var(--surface);
  min-height: 112px;
}
.daily-card .icon-box {
  width: 44px;
  height: 51px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ffc2472a, #ffc24709);
  border: 1px solid #ffc24725;
}
.daily-copy h3 {
  font-size: 13px;
  margin: 3px 0;
}
.daily-copy p {
  font-size: 10px;
  line-height: 1.7;
  margin: 3px 0 0;
}
.daily-state {
  font-size: 9px;
  font-weight: 700;
  color: var(--gold);
  display: inline-block;
}
.daily-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  max-width: 132px;
  flex-shrink: 0;
}
.daily-points {
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1.2;
}
.gold-button {
  background: linear-gradient(135deg, #ffe1a0, #ffc247);
  box-shadow: 0 4px 12px #ffc24712;
  min-width: 104px;
  min-height: 44px;
  padding: 9px 12px;
  font-size: 10px;
  border: 1px solid #ffe0a1;
}
.daily-card[data-state="claimed"] {
  border-color: #29d7a13a;
  background: linear-gradient(120deg, #29d7a10a, var(--surface));
}
.daily-card[data-state="claimed"] .daily-state {
  color: var(--green);
}
.daily-card[data-state="claimed"] button {
  background: var(--surface-2);
  color: var(--muted);
  border-color: var(--line);
  opacity: 1;
  box-shadow: none;
}
.daily-card[data-state="processing"] .gold-button {
  opacity: 0.85;
}
.daily-card[data-state="processing"] .daily-state {
  color: var(--cyan);
}
.feature {
  min-height: 193px;
  padding: 16px 17px;
  border-radius: 21px;
}
.feature-art {
  height: 49px;
}
.feature-art > .i {
  width: 45px;
  height: 45px;
}
.feature .eyebrow {
  font-size: 9px;
}
.feature strong,
.feature h3 {
  font-size: 14px;
  margin-top: 8px;
}
.feature small,
.feature p {
  font-size: 10px;
}
.feature-action {
  font-size: 11px;
}
.feature-action .i {
  width: 16px;
}
.game-feature {
  background:
    radial-gradient(ellipse at 10% 10%, #b2a1ff16, transparent 60%),
    linear-gradient(160deg, #7957ff26, var(--surface));
}
.ad-feature {
  background:
    radial-gradient(ellipse at 10% 10%, #17d7f411, transparent 65%),
    var(--surface);
}
.game-grid {
  gap: 12px;
}
.game-card {
  padding: 17px 16px;
}
.game-card > .i {
  width: 37px;
  height: 37px;
  margin-bottom: 10px;
}
.game-card .eyebrow {
  font-size: 9px;
  letter-spacing: 0;
}
.game-card h2 {
  font-size: 15px;
  margin: 6px 0;
}
.game-card p {
  min-height: 36px;
  margin-bottom: 13px;
  line-height: 1.8;
}
.game-card button {
  min-height: 44px;
}
.challenge-availability {
  font-size: 11px;
  border-inline-start: 3px solid var(--cyan);
  background: var(--surface);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.intro {
  font-size: 11px;
}
.task-card {
  padding: 16px;
  gap: 11px;
}
.task-card h2 {
  font-size: 14px;
}
.challenge-panel {
  border-color: #7957ff45;
}
.choice {
  border-radius: 13px;
}
.result {
  font-size: 12px;
}
.store-intro {
  padding: 17px 16px;
  gap: 12px;
  border-radius: 21px;
}
.store-intro p {
  font-size: 11px;
}
.vault-art {
  width: 54px;
}
.vault-art .i {
  width: 52px;
  height: 52px;
}
.reward-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}
.reward-card {
  position: relative;
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 0 14px;
  padding: 18px;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 100% 0, #ffc2470c, transparent 65%),
    var(--surface);
  border-color: #ffc24730;
}
.reward-card .reward-art,
.reward-card:only-child .reward-art {
  grid-row: span 3;
  height: 102px;
  margin: 0;
  border: 0;
  border-radius: 19px;
  background: linear-gradient(150deg, #ffc2471a, #7957ff12);
}
.reward-art .i {
  width: 51px;
  height: 51px;
  transform: rotate(-9deg);
}
.reward-card:only-child {
  grid-template-columns: 75px 1fr;
  column-gap: 14px;
}
.reward-card h2 {
  font-size: 14px;
  margin: 5px 0;
  line-height: 1.8;
}
.reward-category {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 4px;
}
.reward-card .reward-price {
  font-size: 20px;
  margin: 3px 0 6px;
  line-height: 1.5;
}
.reward-availability {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  color: var(--green);
}
.test-product {
  color: var(--gold);
  background: #ffc24710;
  border: 1px solid #ffc24725;
  border-radius: 6px;
  padding: 3px 6px;
}
.reward-card form {
  grid-column: 1/-1;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 6px;
}
.reward-card label {
  font-size: 11px;
  margin: 11px 0;
}
.reward-card input {
  min-height: 46px;
}
.reward-card button {
  font-size: 11px;
  min-height: 46px;
}
.reward-rule {
  grid-column: 1/-1;
  font-size: 10px;
  line-height: 1.85;
  margin: 7px 0 0;
}
.reward-card.category-diamonds .reward-art {
  color: var(--cyan);
  background: linear-gradient(145deg, #17d7f419, #7957ff1d);
}
.reward-card.category-cash .reward-art {
  color: var(--green);
  background: linear-gradient(145deg, #29d7a116, #17d7f40b);
}
.availability p {
  font-size: 11px;
}
.availability summary {
  font-size: 11px;
}
.empty-state {
  padding: 26px 20px;
  background:
    radial-gradient(ellipse at top, #7957ff12, transparent 70%), var(--surface);
}
.wallet-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.wallet-total {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.6;
  display: block;
  margin: 6px 0 14px;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.wallet-card {
  padding: 21px;
  border-radius: 24px;
}
.wallet-card > .balance {
  font-size: 27px;
  line-height: 1.6;
  margin: 4px 0 13px;
  color: var(--cyan);
}
.wallet-card > span {
  font-size: 10px;
}
.wallet-reserved {
  padding: 12px 0;
  font-size: 11px;
}
.wallet-card p {
  font-size: 10px;
  margin: 12px 0;
}
.wallet-flow {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 15px 0 0;
}
.wallet-flow > div {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 13px;
}
.wallet-flow span {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.8;
  display: block;
}
.wallet-flow strong {
  font-size: 19px;
  display: block;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.wallet-flow > div:first-child strong {
  color: var(--green);
}
.history-scope {
  font-size: 10px;
}
.history li {
  padding: 14px;
  gap: 12px;
}
.history li > .i {
  width: 21px;
  height: 21px;
  padding: 0;
  color: var(--cyan);
}
.history li.kind-award > .i {
  color: var(--green);
}
.history li.kind-fulfill > .i {
  color: var(--gold);
}
.history .entry-copy {
  font-size: 11px;
}
.history .entry-value {
  font-size: 12px;
  max-width: 42%;
  overflow-wrap: anywhere;
}
.history .kind-award .entry-value {
  color: var(--green);
}
.history time {
  font-size: 9px;
}
.request-row {
  padding: 13px 15px;
}
.request-row strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
}
.request-row .pill {
  margin-top: 8px;
}
.profile-card {
  position: relative;
  overflow: hidden;
  text-align: start;
  padding: 22px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 0 0, #17d7f413, transparent 70%),
    linear-gradient(120deg, #7957ff18, var(--surface));
  border-color: #7957ff35;
}
.profile-avatar {
  margin: 0 0 14px;
  width: 64px;
  height: 64px;
  border-radius: 21px;
  background: linear-gradient(140deg, #7957ff35, #17d7f414);
  color: var(--ink);
  font-size: 25px;
}
.profile-card p {
  font-size: 15px;
  font-weight: 700;
  margin: 8px 0 12px;
}
.profile-decoration {
  position: absolute;
  left: 22px;
  top: 25px;
  color: #7957ff44;
  transform: rotate(-12deg);
}
.profile-decoration .i {
  width: 85px;
  height: 85px;
  stroke-width: 1.1;
}
.player-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 14px;
}
.player-stats span {
  font-size: 10px;
  color: var(--muted);
  display: block;
}
.player-stats strong {
  display: block;
  font-size: 24px;
  margin-top: 4px;
  overflow-wrap: anywhere;
}
.player-stats > div:first-child strong {
  color: var(--cyan);
}
.referral-stats strong {
  font-size: 22px;
}
.referral-panel .section-heading {
  margin-top: 0;
}
.referral-panel p {
  font-size: 11px;
}
.independent-note {
  font-size: 9px;
  text-align: center;
  margin: 21px 0 0;
}
.app-footer {
  margin-top: 9px;
}
.bottom-nav {
  padding-top: 8px;
  padding-bottom: calc(
    8px + max(env(safe-area-inset-bottom), var(--safe-bottom))
  );
  border-radius: 20px 20px 0 0;
}
.bottom-nav [aria-current="page"] {
  background: linear-gradient(140deg, #7957ff25, #7957ff0d);
  color: #c5b5ff;
}
.bottom-nav [aria-current="page"]::before {
  top: -9px;
  width: 25px;
}
.bottom-nav button {
  min-height: 52px;
}
.memory-shell {
  padding-top: 15px;
}
.memory-shell h1 {
  font-size: 23px;
}
.memory-board {
  gap: 10px;
}
.memory-shell .eyebrow {
  font-size: 10px;
}
@media (max-width: 360px) {
  .shell {
    padding-inline: 14px;
  }
  .brand {
    font-size: 17px;
  }
  .identity small {
    font-size: 8px;
    max-width: 211px;
  }
  .identity {
    gap: 8px;
  }
  .daily-card {
    padding: 13px 12px;
    gap: 8px;
  }
  .daily-card .icon-box {
    width: 32px;
    height: 41px;
  }
  .daily-card .icon-box .i {
    width: 22px;
  }
  .daily-action {
    max-width: 109px;
  }
  .daily-copy h3 {
    font-size: 12px;
  }
  .daily-copy p {
    font-size: 9px;
  }
  .gold-button {
    min-width: 99px;
    font-size: 9px;
    padding: 8px;
  }
  .hero {
    padding: 16px 17px;
    min-height: 173px;
  }
  .hero .balance {
    font-size: 39px;
  }
  .coin-art {
    width: 76px;
    transform: scale(0.82);
    transform-origin: left center;
    margin-inline-start: 3px;
  }
  .hero-link {
    font-size: 10px;
  }
  .reserved-line {
    gap: 5px;
  }
  .hero .pill {
    font-size: 8px;
    padding: 4px 6px;
  }
  .welcome h1 {
    font-size: 18px;
  }
  .feature {
    padding: 14px;
    min-height: 193px;
  }
  .feature .eyebrow {
    font-size: 8px;
  }
  .game-card {
    padding: 15px 13px;
  }
  .game-card .eyebrow {
    font-size: 8px;
  }
  .reward-card,
  .reward-card:only-child {
    grid-template-columns: 62px 1fr;
    gap: 0 12px;
    padding: 15px;
  }
  .reward-card .reward-art {
    height: 93px;
  }
  .reward-card h2 {
    font-size: 13px;
  }
  .reward-art .i {
    width: 44px;
    height: 44px;
  }
  .store-intro strong {
    font-size: 13px;
  }
  .player-stats strong {
    font-size: 22px;
  }
}
@media (min-width: 600px) {
  .hero {
    min-height: 193px;
  }
  .coin-art {
    margin-inline-end: 18px;
  }
  .daily-card {
    padding: 18px;
  }
  .feature {
    min-height: 205px;
  }
  .game-card {
    padding: 20px;
  }
  .identity small {
    max-width: 350px;
    font-size: 10px;
  }
  .reward-card {
    padding: 21px;
  }
}
:root[data-theme="light"] .bottom-nav [aria-current="page"] {
  color: #5732b4;
}
:root[data-theme="light"] .daily-card {
  background: linear-gradient(120deg, #ffc24710, var(--surface));
}
:root[data-theme="light"] .daily-card[data-state="claimed"] {
  background: linear-gradient(120deg, #29d7a10b, var(--surface));
}
.balance-updated {
  animation: confirmed-balance 0.24s ease-out;
}
@keyframes confirmed-balance {
  50% {
    text-shadow: 0 0 18px #17d7f45c;
  }
}
.reward-card .reward-availability {
  grid-column: 2;
}

/* Reserve the daily description height so confirmed status does not move activities. */
.daily-copy p {
  min-height: 51px;
}
@media (max-width: 360px) {
  .daily-copy p {
    min-height: 64px;
  }
}
