:root {
  --bg: #080c14;
  --panel: rgba(7, 11, 22, 0.88);
  --line: rgba(150, 178, 216, 0.15);
  --text: #f4f7ff;
  --muted: #95a5bb;
  --cyan: #37d6ff;
  --green: #45ff74;
  --amber: #ffd34d;
  --shadow: 0 0 0 1px rgba(118, 153, 205, 0.12), 0 28px 80px rgba(0, 0, 0, 0.55);
  --glow-cyan: 0 0 24px rgba(55, 214, 255, 0.35);
  --glow-green: 0 0 24px rgba(69, 255, 116, 0.3);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Chakra Petch", sans-serif;
  background:
    linear-gradient(180deg, rgba(64, 255, 129, 0.12), transparent 35%),
    radial-gradient(circle at top center, rgba(34, 168, 255, 0.16), transparent 30%),
    linear-gradient(180deg, #131d2b 0%, #0a0f17 42%, #110914 100%);
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  background-image:
    linear-gradient(rgba(141, 167, 208, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(141, 167, 208, 0.08) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.35));
}

body::after {
  background:
    radial-gradient(circle at 20% 15%, rgba(103, 255, 111, 0.18), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(55, 214, 255, 0.14), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(255, 0, 102, 0.12), transparent 30%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 20px 0 64px;
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 12px 16px;
  margin-bottom: 28px;
  background: rgba(20, 28, 44, 0.82);
  border: 1px solid rgba(146, 174, 219, 0.16);
  border-radius: 24px;
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  font-family: "Oxanium", sans-serif;
}

.brand__logo {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 25 / 6;
  object-fit: fill;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 10px rgba(69, 255, 116, 0.22));
}

.topnav {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.topnav a,
.shop-tab {
  padding: 10px 16px;
  border: 1px solid rgba(157, 185, 230, 0.12);
  border-radius: 999px;
  background: rgba(8, 13, 24, 0.7);
  color: var(--muted);
  transition: 180ms ease;
}

.topnav a:hover,
.topnav a:focus-visible,
.shop-tab:hover,
.shop-tab:focus-visible,
.shop-tab.is-active {
  color: var(--text);
  border-color: rgba(55, 214, 255, 0.4);
  box-shadow: var(--glow-cyan);
}

.wallet-strip {
  display: flex;
  gap: 12px;
  align-items: center;
}

.wallet-chip {
  min-width: 110px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 10px;
  border: 1px solid rgba(157, 185, 230, 0.12);
  background: rgba(5, 9, 16, 0.86);
  color: var(--text);
}

.wallet-chip__label {
  font-size: 0.78rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.wallet-chip__value {
  font-size: 1.2rem;
  font-weight: 700;
  font-family: "Oxanium", sans-serif;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.wallet-chip--coins {
  box-shadow: var(--glow-green);
}

.wallet-chip--gems {
  box-shadow: var(--glow-cyan);
}

.gear-button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(157, 185, 230, 0.16);
  background: rgba(5, 9, 16, 0.86);
  position: relative;
}

.gear-button span,
.gear-button span::before,
.gear-button span::after {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border: 3px solid white;
  border-radius: 50%;
  content: "";
}

.gear-button span::before {
  width: 28px;
  height: 3px;
  border: 0;
  background: white;
  box-shadow: 0 10px 0 white, 0 -10px 0 white;
}

.panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(10, 15, 26, 0.9), rgba(7, 10, 19, 0.82));
  border: 1px solid rgba(139, 168, 213, 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(55, 214, 255, 0.06), transparent 32%, transparent 68%, rgba(69, 255, 116, 0.05));
  pointer-events: none;
}

.panel--hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  padding: 36px;
  min-height: auto;
}

.eyebrow,
.panel__label,
.reward-actions__eyebrow,
.api-card__label {
  margin: 0 0 10px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.86rem;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Oxanium", sans-serif;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  line-height: 1.12;
  text-wrap: balance;
}

.hero h1 > span {
  display: block;
}

.hero h1 .hero__subtitle {
  margin-top: 12px;
  font-size: 0.7em;
  color: #b7c9da;
}

.hero .hero__actions {
  justify-content: flex-start;
}

.section-heading h2 {
  font-size: clamp(1.6rem, 4vw, 2.7rem);
  line-height: 1;
}

.hero__lede {
  max-width: 46rem;
  font-size: 1.14rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 20px 0 28px;
}

.hero__actions,
.account-form__actions,
.reward-actions,
.section-heading {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.btn {
  border: 0;
  border-radius: 18px;
  padding: 14px 24px;
  font-family: "Oxanium", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

.btn--small {
  padding: 10px 18px;
}

.btn--primary {
  color: white;
  background: linear-gradient(180deg, #35beff, #0d5e99);
  box-shadow: 0 0 0 1px rgba(79, 225, 255, 0.3), 0 0 18px rgba(55, 214, 255, 0.38);
}

.btn--secondary {
  color: var(--text);
  background: rgba(10, 17, 30, 0.92);
  border: 1px solid rgba(157, 185, 230, 0.14);
}

.btn--google {
  color: #d8ffe0;
  background: linear-gradient(180deg, #159a32, #0d4d1c);
  box-shadow: 0 0 0 1px rgba(69, 255, 116, 0.2), var(--glow-green);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}

.hero__stats li,
.feature-card,
.api-card,
.roadmap-grid article,
.reward-card,
.stat-pile {
  background: rgba(13, 20, 34, 0.76);
  border: 1px solid rgba(157, 185, 230, 0.12);
  border-radius: 20px;
  padding: 18px;
}

.hero__stat-value {
  display: block;
  font-family: "Oxanium", sans-serif;
  font-size: 2rem;
  font-weight: 800;
}

.hero__stat-label {
  color: var(--muted);
}

.hero__preview {
  display: flex;
  align-items: stretch;
}

.game-panel {
  width: 100%;
  padding: 20px;
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(22, 31, 50, 0.96), rgba(11, 13, 25, 0.92)),
    radial-gradient(circle at top center, rgba(55, 214, 255, 0.12), transparent 40%);
  border: 1px solid rgba(133, 161, 210, 0.18);
  box-shadow: inset 0 0 0 1px rgba(55, 214, 255, 0.08), 0 26px 60px rgba(0, 0, 0, 0.45);
}

.game-panel__tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.game-panel__tabs span {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(14, 20, 34, 0.95);
  color: var(--muted);
}

.game-panel__tabs .is-active {
  color: var(--text);
  box-shadow: var(--glow-cyan);
}

.game-panel__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
}

.radar-card {
  display: grid;
  gap: 10px;
  min-height: 320px;
  padding: 22px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(7, 11, 21, 0.96), rgba(16, 9, 24, 0.92));
  border: 1px solid rgba(157, 185, 230, 0.12);
}

.radar-card__badge {
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(55, 214, 255, 0.12);
  color: var(--text);
}

.radar-card__disc {
  width: min(100%, 260px);
  aspect-ratio: 1;
  justify-self: center;
  clip-path: polygon(50% 0%, 82% 18%, 100% 50%, 82% 82%, 50% 100%, 18% 82%, 0% 50%, 18% 18%);
  background:
    radial-gradient(circle at center, rgba(55, 214, 255, 0.36), rgba(55, 214, 255, 0.04) 58%, transparent 59%),
    linear-gradient(rgba(82, 119, 177, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 119, 177, 0.28) 1px, transparent 1px),
    linear-gradient(135deg, rgba(109, 40, 217, 0.2), rgba(10, 20, 43, 0.2));
  background-size: auto, 24px 24px, 24px 24px, auto;
  border: 3px solid rgba(55, 214, 255, 0.62);
  box-shadow: 0 0 30px rgba(55, 214, 255, 0.38);
}

.reward-card,
.stat-pile {
  display: grid;
  align-content: start;
  gap: 10px;
}

.reward-card__title {
  margin: 0;
  color: var(--muted);
}

.reward-card strong {
  font-size: 1.5rem;
  font-family: "Oxanium", sans-serif;
}

.reward-card__timer,
.stat-pile small {
  color: var(--muted);
}

.feature-grid,
.hub-grid,
.roadmap-grid,
.shop-grid {
  display: grid;
  gap: 20px;
}

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

.feature-card {
  padding: 22px;
}

.feature-card h2,
.roadmap-grid h3 {
  margin: 0 0 10px;
  font-family: "Oxanium", sans-serif;
  font-size: 1.5rem;
  text-transform: uppercase;
}

.feature-card p:last-child,
.roadmap-grid p,
.account-panel p,
.api-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hub-grid {
  grid-template-columns: 1.3fr 0.7fr;
  margin-bottom: 24px;
}

.rewards-panel,
.account-panel,
.shop-panel,
.roadmap-panel {
  padding: 28px;
}

.status-pill {
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(69, 255, 116, 0.12);
  border: 1px solid rgba(69, 255, 116, 0.22);
  color: #cbffd5;
}

.account-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
}

.account-panel .panel__label {
  margin-bottom: 8px;
}

.account-panel .section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
}

.account-identity {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.account-identity .status-pill {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.account-panel [data-account-message] {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.status-pill--ghost {
  background: rgba(55, 214, 255, 0.1);
  border-color: rgba(55, 214, 255, 0.22);
  color: #caf6ff;
}

.reward-track {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.reward-node {
  min-height: 130px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(157, 185, 230, 0.12);
  background: rgba(10, 15, 27, 0.85);
  display: grid;
  gap: 12px;
}

.reward-node.is-current {
  border-color: rgba(55, 214, 255, 0.45);
  box-shadow: var(--glow-cyan);
}

.reward-node.is-claimed {
  border-color: rgba(69, 255, 116, 0.35);
  box-shadow: var(--glow-green);
}

.reward-node__day {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
}

.reward-node__amount {
  font-family: "Oxanium", sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
}

.reward-node__type {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 211, 77, 0.12);
  color: #ffe186;
}

.account-form,
.modal-form {
  display: grid;
  gap: 14px;
}

.account-form label,
.modal-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

.account-form input,
.modal-form input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(157, 185, 230, 0.12);
  background: rgba(5, 9, 16, 0.86);
  color: var(--text);
  outline: none;
}

.account-form input:focus,
.modal-form input:focus {
  border-color: rgba(55, 214, 255, 0.45);
  box-shadow: var(--glow-cyan);
}

.api-card {
  margin-top: 18px;
}

.inline-code,
code {
  font-family: "Chakra Petch", monospace;
  color: #c8f7ff;
}

.shop-panel {
  margin-bottom: 24px;
}

.shop-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.shop-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.shop-card {
  padding: 18px;
  display: grid;
  gap: 14px;
  background: linear-gradient(180deg, rgba(12, 18, 33, 0.92), rgba(13, 8, 19, 0.88));
  border: 1px solid rgba(157, 185, 230, 0.14);
  border-radius: 22px;
}

.shop-card__media {
  min-height: 190px;
  aspect-ratio: 190 / 200;
  border-radius: 0;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background-image: var(--item-frame);
  background-size: 100% 100%;
  image-rendering: pixelated;
  isolation: isolate;
}

.shop-card__media::before {
  content: "";
  position: absolute;
  width: 76%;
  aspect-ratio: 1;
  left: 12%;
  top: 12%;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(var(--currency-glow) / 0.65), rgb(var(--currency-glow) / 0.25) 35%, transparent 70%);
  filter: blur(8px);
  animation: currency-pulse 2.094s ease-in-out infinite;
  pointer-events: none;
}

.shop-card--coins { --currency-glow: 0 100 0; }
.shop-card--gems { --currency-glow: 0 255 255; }
.shop-card__sprite {
  position: relative;
  width: 96px;
  height: 96px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 9px rgb(var(--currency-glow) / 0.65));
  z-index: 1;
}
.shop-card__media::after {
  content: "";
  position: absolute;
  width: 96px;
  height: 96px;
  background: radial-gradient(circle, rgb(var(--currency-glow) / 0.22), transparent 70%);
  mix-blend-mode: screen;
  z-index: 2;
  pointer-events: none;
  animation: currency-pulse 2.094s ease-in-out infinite;
}
.wallet-chip__label { display: flex; align-items: center; gap: 8px; }
.currency-icon { width: 24px; height: 24px; object-fit: contain; image-rendering: pixelated; }
.wallet-chip > .currency-icon { width: 32px; height: 32px; flex: 0 0 32px; }
.currency-icon--coins { filter: drop-shadow(0 0 6px #008300); }
.currency-icon--gems { filter: drop-shadow(0 0 6px #00ffff); }
@keyframes currency-pulse { 0%, 100% { opacity: 0.8; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .shop-card__media::before, .shop-card__media::after { animation: none; }
}

.shop-card__icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-family: "Oxanium", sans-serif;
  font-size: 3rem;
  font-weight: 800;
}

.shop-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.shop-card h3 {
  margin: 0;
  font-family: "Oxanium", sans-serif;
  text-transform: uppercase;
  font-size: 1.3rem;
}

.shop-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.shop-card__price {
  min-width: 84px;
  padding: 8px 12px;
  text-align: center;
  border-radius: 14px;
  background: rgba(5, 9, 16, 0.88);
  border: 1px solid rgba(157, 185, 230, 0.12);
}

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

.shop-card__tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
}

.roadmap-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 24px;
}

.roadmap-grid article span {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--cyan);
  font-family: "Oxanium", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 30;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 7, 14, 0.72);
  backdrop-filter: blur(8px);
}

.modal__dialog {
  position: relative;
  width: min(540px, calc(100% - 24px));
  margin: 10vh auto 0;
  padding: 28px;
  z-index: 1;
  max-height: 85dvh;
  overflow-y: auto;
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(157, 185, 230, 0.12);
  background: rgba(5, 9, 16, 0.86);
  color: var(--text);
  font-size: 1.5rem;
}

.toast-stack {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: grid;
  gap: 10px;
}

.toast {
  min-width: 260px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(157, 185, 230, 0.12);
  background: rgba(7, 11, 22, 0.94);
  box-shadow: var(--shadow);
}

.toast strong {
  display: block;
  margin-bottom: 4px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1080px) {
  .panel--hero,
  .hub-grid,
  .feature-grid,
  .roadmap-grid,
  .shop-grid,
  .game-panel__body {
    grid-template-columns: 1fr;
  }

  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .topnav,
  .wallet-strip {
    justify-content: center;
  }

  .wallet-strip {
    flex-wrap: wrap;
  }

  .reward-track {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 20px, 1280px);
    padding-top: 12px;
  }

  .panel--hero,
  .rewards-panel,
  .account-panel,
  .shop-panel,
  .roadmap-panel {
    padding: 20px;
  }

  .hero h1 {
    font-size: clamp(1.8rem, 7vw, 3rem);
  }

  .reward-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .reward-actions,
  .account-form__actions,
  .section-heading,
  .shop-card__footer,
  .shop-card__meta {
    flex-direction: column;
    align-items: stretch;
  }

  .wallet-chip {
    flex: 1 1 120px;
  }
}


.icon-user {
  width: 30px;
  height: 30px;
  color: #ffffff;
}
