:root {
  --bg: #0f3d3a;
  --ink: #0f3d3a;
  --on-ink: #f2e6d6;
  --mint: rgba(244, 177, 59, 0.72);
  --mint-orb: rgba(244, 177, 59, 0.4);
  --cream: #f7efe4;
  --border: #e0d2c0;
  --surface: #fffaf4;
  --nav-bg: rgba(15, 61, 58, 0.96);
  --card-ink: #0f3d3a;
  --loader-bg: #0f3d3a;
  --soft-blue: #f4b13b;
  --soft-peach: #f5cfc6;
  --soft-yellow: #f5e6c8;
  --danger: #d64545;
  --danger-soft: #f8d4d4;
  --pending: #f5e6c8;
  --zinc-500: #8aa09b;
  --zinc-600: #b7c7c3;
  --forest: #0f3d3a;
  --clay: #e0745e;
  --gold: #f4b13b;
  --sand: #f2e6d6;
  --on-bg: #f2e6d6;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000000;
  --ink: #ffffff;
  --on-ink: #000000;
  --on-bg: #ffffff;
  --mint: #ffffff;
  --mint-orb: #000000;
  --cream: #000000;
  --border: #ffffff;
  --surface: #000000;
  --nav-bg: #000000;
  --card-ink: #000000;
  --loader-bg: #000000;
  --soft-blue: #ffffff;
  --soft-peach: #000000;
  --soft-yellow: #000000;
  --danger: #ffffff;
  --danger-soft: #000000;
  --pending: #000000;
  --zinc-500: #ffffff;
  --zinc-600: #ffffff;
}

* {
  -webkit-tap-highlight-color: transparent;
}

a,
button,
input,
select,
textarea,
label {
  touch-action: manipulation;
}

input,
select,
textarea {
  font-size: 16px !important;
}

input[type="search"] {
  -webkit-appearance: none;
  appearance: none;
}

html,
body {
  background: var(--bg);
  color: var(--on-bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: Inter, system-ui, sans-serif;
  min-height: 100dvh;
}

.ambient {
  position: relative;
  isolation: isolate;
  min-height: 100dvh;
}

.ambient::before,
.ambient::after,
.blob-peach {
  content: "";
  position: fixed;
  border-radius: 999px;
  pointer-events: none;
  z-index: -1;
  filter: blur(8px);
}

.ambient::before {
  width: 380px;
  height: 380px;
  top: -96px;
  right: -96px;
  background: rgba(199, 233, 255, 0.16);
}

.ambient::after {
  width: 320px;
  height: 320px;
  top: 35%;
  left: -96px;
  background: rgba(224, 116, 94, 0.12);
}

.blob-peach {
  width: 360px;
  height: 360px;
  bottom: -80px;
  right: 18%;
  background: rgba(242, 230, 214, 0.1);
}

html[data-theme="dark"] .ambient::before,
html[data-theme="dark"] .ambient::after,
html[data-theme="dark"] .blob-peach {
  display: none;
}

html[data-theme="dark"] .text-zinc-400,
html[data-theme="dark"] .text-zinc-500,
html[data-theme="dark"] .text-zinc-600 {
  color: #fff !important;
}

html[data-theme="dark"] .bg-cream {
  background: #000 !important;
}

html[data-theme="dark"] .border-soft {
  border-color: #fff !important;
}

html[data-theme="dark"] .header-avatar {
  background: #000;
  border-color: #0f3d3a;
  box-shadow:
    0 0 0 1px rgba(244, 177, 59, 0.22),
    0 0 18px 4px rgba(244, 177, 59, 0.28),
    0 0 36px 8px rgba(224, 116, 94, 0.12);
}

html[data-theme="dark"] .user-avatar,
html[data-theme="dark"] .user-avatar-fallback {
  background: #000;
  color: #fff;
}

html[data-theme="dark"] .wallet-chip,
html[data-theme="dark"] .btn-mint,
html[data-theme="dark"] .badge-mint,
html[data-theme="dark"] .badge-pending,
html[data-theme="dark"] .badge-danger,
html[data-theme="dark"] .badge-blue,
html[data-theme="dark"] .badge-zinc,
html[data-theme="dark"] .wallet-action-cashout,
html[data-theme="dark"] .cj-loader-mark {
  background: #fff;
  color: #000;
  border-color: #fff;
}

html[data-theme="dark"] .btn-mint,
html[data-theme="dark"] .wallet-chip {
  border: 1.5px solid #fff;
}

html[data-theme="dark"] .wallet-chip {
  background: #000;
  color: #fff;
}

html[data-theme="dark"] .btn-danger {
  background: #000;
  color: #fff;
  border-color: #fff;
}

html[data-theme="dark"] .fab-add-task {
  background: #fff;
  color: #000;
  border-color: #fff;
  box-shadow: 3px 3px 0 #fff;
}

html[data-theme="dark"] .fab-add-task-plus {
  background: #000;
  color: #fff;
}

.cute-shadow {
  box-shadow: 3px 3px 0 var(--ink);
}

.cute-shadow-sm {
  box-shadow: 2px 2px 0 var(--ink);
}

.ink-border {
  border: 1.5px solid var(--ink);
}

.soft-border {
  border: 1px solid var(--border);
}

/* Shared top chrome — every page uses the same safe-area top (no extra band). */
.top-nav,
.login-top,
.land-top {
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: 0;
  min-height: calc(56px + env(safe-area-inset-top, 0px));
  height: calc(56px + env(safe-area-inset-top, 0px));
}

.top-nav,
.login-top {
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.app-page-pad {
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.top-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(242, 230, 214, 0.14);
  position: sticky;
  top: 0;
  z-index: 40;
  color: var(--on-bg);
}

.top-nav a {
  color: inherit;
}

body[data-page="profile"] #admin-entry,
body[data-page="wallet"] #admin-entry {
  display: none !important;
}

body[data-page="profile"] #header-avatar > .user-avatar,
body[data-page="profile"] #header-avatar > .user-avatar-fallback,
body[data-page="wallet"] #header-avatar > .user-avatar,
body[data-page="wallet"] #header-avatar > .user-avatar-fallback {
  overflow: hidden;
  border-radius: 999px;
  isolation: isolate;
  clip-path: circle(50%);
  filter: blur(4px);
  transform: translateZ(0);
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--sand);
  color: var(--forest);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 10px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.logo-word {
  font-weight: 800;
  letter-spacing: -0.3px;
  font-size: 16px;
  color: var(--on-bg);
}

.header-account {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wallet-chip {
  height: auto;
  min-height: 32px;
  max-height: 40px;
  padding: 3px 10px 2px;
  border-radius: 14px;
  background: #f2e6d6;
  color: #0f3d3a;
  border: 1.5px solid rgba(244, 177, 59, 0.55);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  font-size: 11px;
  font-weight: 800;
  max-width: min(52vw, 180px);
  line-height: 1.1;
  box-sizing: border-box;
  text-decoration: none;
}

.wallet-chip-label {
  font-size: 6px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(15, 61, 58, 0.65);
  line-height: 1;
}

#wallet-chip-amount {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: #0f3d3a !important;
}

#wallet-chip-amount .wallet-chip-prefix,
#wallet-chip-amount .wallet-odometer,
#wallet-chip-amount .wallet-odometer-reel span,
#wallet-chip-amount .wallet-odometer-sep {
  color: #0f3d3a !important;
}

.wallet-chip-prefix {
  flex-shrink: 0;
}

.wallet-odometer {
  display: inline-flex;
  align-items: baseline;
  overflow: hidden;
}

.wallet-odometer-digit {
  display: inline-block;
  height: 1em;
  overflow: hidden;
  line-height: 1;
}

.wallet-odometer-reel {
  display: flex;
  flex-direction: column;
  will-change: transform;
  transition: transform 7s cubic-bezier(0.22, 0.08, 0.18, 1);
}

.wallet-odometer-reel span {
  height: 1em;
  line-height: 1;
}

.wallet-odometer-sep {
  line-height: 1;
}

.user-avatar,
.user-avatar-fallback {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border-radius: 999px;
  overflow: hidden;
  background: var(--mint);
  color: var(--ink);
  font-weight: 800;
  line-height: 1;
}

.user-avatar {
  position: relative;
  background: var(--cream);
}

.user-avatar .user-avatar-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.user-avatar-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.user-avatar-img.is-loading {
  opacity: 0;
}

.user-avatar-img.is-ready {
  opacity: 1;
}

.header-avatar {
  box-sizing: border-box;
  position: relative;
  width: 46px;
  height: 46px;
  font-size: 12px;
  border-radius: 999px;
  overflow: visible;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: var(--ink);
  border: 1.5px solid #0f3d3a;
  background: var(--cream);
  box-shadow:
    0 0 0 1px rgba(244, 177, 59, 0.22),
    0 0 18px 4px rgba(244, 177, 59, 0.28),
    0 0 36px 8px rgba(224, 116, 94, 0.12);
}

.header-profile-label {
  position: absolute;
  left: 50%;
  bottom: 11.6px;
  transform: translateX(-50%);
  z-index: 3;
  padding: 0 4px;
  border-radius: 999px;
  font-size: 6px;
  font-weight: 500;
  letter-spacing: 0.04em;
  line-height: 1;
  height: 6px;
  display: flex;
  align-items: center;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  white-space: nowrap;
  pointer-events: none;
}

html[data-theme="dark"] .header-profile-label {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
}

.header-notify {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid #111;
  background: #fff;
  color: #000;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.header-notify svg {
  color: #000;
  stroke: #000;
}

.header-avatar .user-avatar,
.header-avatar .user-avatar-fallback {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  overflow: hidden;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
}

.bottom-nav-wrap {
  position: fixed;
  left: max(12px, env(safe-area-inset-left, 0px));
  right: max(12px, env(safe-area-inset-right, 0px));
  bottom: max(10px, env(safe-area-inset-bottom, 0px));
  z-index: 40;
  padding-bottom: 0;
}

.bottom-nav {
  height: 64px;
  padding: 0 18px;
  background: var(--surface);
  border-radius: 20px;
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35), 0 -2px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-around;
  color: var(--ink);
}

.nav-item {
  width: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  color: var(--ink);
  text-decoration: none;
}

.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--ink);
  display: grid;
  place-items: center;
  background: var(--surface);
  transition: transform 160ms ease-out, background 160ms ease-out, width 160ms ease-out, height 160ms ease-out;
}

.nav-item.active .nav-icon {
  width: 44px;
  height: 44px;
  background: var(--ink);
  color: var(--on-ink);
  transform: translateY(-2px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
}

.nav-label {
  font-size: 9px;
  font-weight: 500;
}

.nav-item.active .nav-label {
  font-weight: 700;
}

.app-main {
  padding: 12px 16px calc(108px + env(safe-area-inset-bottom, 0px));
}

.app-main.has-fab {
  padding-bottom: calc(148px + env(safe-area-inset-bottom, 0px));
}

.page-bg-blur {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background:
    linear-gradient(
      165deg,
      rgba(15, 61, 58, 0.92) 0%,
      rgba(15, 61, 58, 0.88) 42%,
      rgba(12, 48, 45, 0.94) 100%
    );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.page-bg-blur::before,
.page-bg-blur::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.page-bg-blur::before {
  background:
    radial-gradient(ellipse 90% 55% at 12% -8%, rgba(199, 233, 255, 0.14), transparent 58%),
    radial-gradient(ellipse 70% 48% at 96% 12%, rgba(224, 116, 94, 0.1), transparent 54%),
    radial-gradient(ellipse 65% 50% at 48% 108%, rgba(242, 230, 214, 0.08), transparent 58%);
}

.page-bg-blur::after {
  background: linear-gradient(
    118deg,
    rgba(242, 230, 214, 0.06) 0%,
    transparent 40%,
    rgba(199, 233, 255, 0.05) 100%
  );
  mix-blend-mode: normal;
}

body[data-page="tasks"],
body[data-page="dashboard"],
body[data-page="games"],
body[data-page="wallet"],
body[data-page="profile"],
body[data-page="campaigns"],
body[data-page="notifications"],
body[data-page="referrals"],
body[data-page="task"],
body[data-page="campaign"],
body[data-page="connect-tiktok"] {
  background: #0f3d3a;
}

body[data-page="tasks"] .ambient::before,
body[data-page="dashboard"] .ambient::before,
body[data-page="games"] .ambient::before {
  width: 440px;
  height: 440px;
  background: rgba(199, 233, 255, 0.12);
  filter: blur(52px);
}

body[data-page="tasks"] .ambient::after,
body[data-page="dashboard"] .ambient::after,
body[data-page="games"] .ambient::after {
  width: 380px;
  height: 380px;
  background: rgba(224, 116, 94, 0.1);
  filter: blur(48px);
}

body[data-page="tasks"] .blob-peach,
body[data-page="dashboard"] .blob-peach,
body[data-page="games"] .blob-peach {
  width: 520px;
  height: 520px;
  background: rgba(242, 230, 214, 0.08);
  filter: blur(46px);
}

body[data-page="tasks"] .page-bg-blur,
body[data-page="dashboard"] .page-bg-blur,
body[data-page="games"] .page-bg-blur {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="tasks"] .top-nav,
body[data-page="dashboard"] .top-nav,
body[data-page="games"] .top-nav {
  background: rgba(15, 61, 58, 0.88);
  border-bottom-color: rgba(242, 230, 214, 0.14);
}

body[data-page="tasks"] .bottom-nav,
body[data-page="dashboard"] .bottom-nav,
body[data-page="games"] .bottom-nav {
  background: rgba(255, 250, 244, 0.94);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35), 0 -2px 16px rgba(0, 0, 0, 0.2);
}

html:has(body[data-page="games"]),
body[data-page="games"] {
  background: #0f3d3a;
}

body[data-page="games"].ambient::before {
  display: block;
}

body[data-page="games"].ambient::after {
  display: block;
}

body[data-page="games"] .blob-peach {
  display: block;
}

body[data-page="games"] .page-bg-blur {
  background:
    linear-gradient(
      165deg,
      rgba(15, 61, 58, 0.92) 0%,
      rgba(15, 61, 58, 0.88) 42%,
      rgba(12, 48, 45, 0.94) 100%
    );
}

body[data-page="games"] .page-bg-blur::before {
  display: block;
  background:
    radial-gradient(ellipse 90% 55% at 12% -8%, rgba(199, 233, 255, 0.14), transparent 58%),
    radial-gradient(ellipse 70% 48% at 96% 12%, rgba(224, 116, 94, 0.1), transparent 54%),
    radial-gradient(ellipse 65% 50% at 48% 108%, rgba(242, 230, 214, 0.08), transparent 58%);
}

body[data-page="games"] .page-bg-blur::after {
  display: block;
  background: linear-gradient(
    118deg,
    rgba(242, 230, 214, 0.06) 0%,
    transparent 40%,
    rgba(199, 233, 255, 0.05) 100%
  );
}

body[data-page="games"] .top-nav {
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body[data-page="games"] .bottom-nav {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="tasks"] .card {
  background: rgba(255, 250, 244, 0.94);
  border-color: var(--border);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="games"] .coming-soon-mark {
  background: rgba(255, 250, 244, 0.94);
  border-color: var(--border);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.28);
  color: var(--ink);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="games"] .card {
  background: rgba(255, 250, 244, 0.94);
  border-color: var(--border);
  color: var(--ink);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="games"] .game-card.card {
  background: #000000;
  border-color: #ffffff;
  color: #ffffff;
  box-shadow: none;
}

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

.game-list.hidden,
.game-board.hidden,
#games-panel.hidden,
#leaderboard-panel.hidden {
  display: none;
}

.game-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  text-decoration: none;
  color: #ffffff;
  background: #000000;
  border: 1.5px solid #ffffff;
}

.game-card-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #111111;
  border: 1.5px solid #ffffff;
  color: #ffffff;
}

.game-card-copy {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}

.game-card-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #ffffff;
}

.game-card-blurb {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.35;
}

.game-card-go {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
  background: #ffffff;
  color: #000000;
  border: 1.5px solid #ffffff;
}

.game-card-go.is-continue {
  background: #f4b13b;
  color: #000000;
  border-color: #f4b13b;
}

#game-list {
  display: grid;
  gap: 10px;
}

.game-packs-wrap {
  padding: 10px 12px 12px;
}

body[data-page="games"] .game-packs-wrap.card {
  background: #000000;
  border: 1.5px solid #ffffff;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #ffffff;
}

html[data-theme="dark"] body[data-page="games"] .game-packs-wrap.card {
  background: #000000;
  border-color: #ffffff;
}

.game-packs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
}

.game-packs-note {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

html[data-theme="dark"] body[data-page="games"] .game-packs-head,
html[data-theme="dark"] body[data-page="games"] .game-packs-note {
  color: #ffffff;
}

html[data-theme="dark"] body[data-page="games"] .game-packs-note {
  color: rgba(255, 255, 255, 0.75);
}

.game-packs,
.game-buy-packs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.game-pack {
  flex: 1 1 88px;
  min-height: 44px;
  display: grid;
  place-items: center;
  gap: 1px;
  padding: 6px 8px;
  border-radius: 12px;
  border: 1.5px solid #ffffff;
  background: #ffffff;
  color: #000000;
  cursor: pointer;
}

.game-packs-wrap .game-packs {
  gap: 6px;
}

.game-packs-wrap .game-pack {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 8px 6px;
  border-radius: 10px;
  border: 1.5px solid #ffffff;
  background: #ffffff;
  color: #000000;
}

html[data-theme="dark"] body[data-page="games"] .game-packs-wrap .game-pack {
  border-color: #ffffff;
  background: #ffffff;
  color: #000000;
}

.game-packs-wrap .game-pack b {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #000000;
}

.game-packs-wrap .game-pack span {
  font-size: 10px;
  font-weight: 700;
  color: #000000;
}

.game-pack b {
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  color: inherit;
}

.game-pack span {
  font-size: 10px;
  font-weight: 700;
  color: inherit;
}

.game-over-copy {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--zinc-600);
}

.game-over-copy.hidden,
.game-buy-packs.hidden {
  display: none;
}

.game-over-panel.is-buy {
  width: min(100%, 320px);
}

.game-buy-packs {
  margin-bottom: 10px;
}

.game-back {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.game-play-main {
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - 56px);
}

.game-play-main .game-back {
  margin: 0 0 6px;
}

.game-stage {
  position: relative;
  z-index: 1;
  flex: 1;
  min-height: calc(100dvh - 110px);
  display: flex;
  flex-direction: column;
}

.game-opening {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--loader-bg);
}

.game-opening.hidden,
.game-opening[hidden] {
  display: none;
}

.game-frame {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
  min-height: calc(100dvh - 110px);
  border: 0;
  border-radius: 18px;
  background: #14110e;
  box-shadow: 3px 3px 0 rgba(100, 132, 154, 0.28);
}

.game-play-status {
  position: relative;
  z-index: 1;
  font-size: 13px;
  color: var(--zinc-600);
  padding: 8px 2px 12px;
}

.game-play-status.hidden,
.game-play-status[hidden] {
  display: none;
}

.game-over {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 16px;
  border-radius: 18px;
  background: rgba(18, 28, 36, 0.46);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.game-over.hidden {
  display: none;
}

.game-over-panel {
  width: min(100%, 280px);
  display: grid;
  gap: 6px;
  padding: 22px 18px 16px;
  border-radius: 18px;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1.5px solid rgba(198, 216, 228, 0.95);
  box-shadow: 3px 3px 0 rgba(100, 132, 154, 0.28);
}

.game-over-title {
  margin: 0;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--ink);
}

.game-over-score {
  margin: 0 0 10px;
  min-height: 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--zinc-600);
}

.game-over-actions {
  display: grid;
  gap: 8px;
}

.game-over-actions .btn {
  width: 100%;
}

#game-play-again {
  flex-direction: column;
  gap: 1px;
  min-height: 44px;
  padding: 7px 16px;
  line-height: 1.15;
}

.game-again-lives {
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0;
  opacity: 0.48;
}

.game-again-lives[hidden] {
  display: none;
}

.game-over-actions .btn.hidden,
.game-over-actions .btn[hidden] {
  display: none;
}

body[data-page="games"] .app-main {
  padding-top: 8px;
}

.game-seg {
  display: flex;
  align-items: stretch;
  width: calc(100% + 32px);
  margin: 0 -16px 10px;
  padding: 0;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 8px 20px rgba(120, 148, 176, 0.14);
}

.game-seg-btn {
  flex: 1 1 0;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #7a8b99;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1;
}

.game-seg-btn:first-child {
  border-radius: 0 999px 999px 0;
}

.game-seg-btn:last-child {
  border-radius: 999px 0 0 999px;
}

.game-seg-btn:first-child:last-child {
  border-radius: 0;
}

.game-seg-btn + .game-seg-btn {
  box-shadow: inset 1px 0 0 rgba(186, 208, 222, 0.45);
}

.game-seg-btn.active + .game-seg-btn,
.game-seg-btn.active {
  box-shadow: none;
}

.game-seg-btn.active {
  background: #c5e4f6;
  color: #1a3a52;
  box-shadow: none;
}

.game-seg-btn[data-tab="leaderboard"],
.game-seg-btn[data-tab="games"] {
  display: inline-flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  padding: 6px 10px;
  line-height: 1.15;
}

.game-seg-label {
  display: block;
  white-space: nowrap;
}

.game-seg-ends {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  opacity: 0.72;
  line-height: 1.2;
}

.game-seg-ends.hidden,
.game-seg-ends[hidden] {
  display: none;
}

.game-seg-btn.active .game-seg-ends {
  opacity: 0.9;
}

.lb-loading {
  min-height: 220px;
}

.lb-loading .cj-loader {
  padding: 36px 12px 28px;
}

html:not(.is-page-switch) .lb-loading .cj-loader-mark {
  animation: cj-breathe 1.15s ease-in-out infinite;
}

.game-board-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.game-board-btns .btn {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 800;
  border-width: 1.5px;
}

body[data-page="games"] .game-board-btns .btn-white {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(242, 230, 214, 0.72);
  border-color: rgba(242, 230, 214, 0.35);
}

body[data-page="games"] .game-board-btns .btn-ink,
body[data-page="games"] .game-board-btns .btn.is-active {
  background: #ffffff;
  color: #0f3d3a;
  border-color: #ffffff;
  box-shadow: 0 0 0 1px rgba(244, 177, 59, 0.4);
}

.lb-marquee {
  overflow: hidden;
  margin: 0 0 10px;
  padding: 6px 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #f2e6d6;
  text-align: center;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.lb-marquee-line {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  white-space: nowrap;
}

.lb-marquee-char {
  color: rgba(242, 230, 214, 0.45);
  animation: lb-letter-hl 5.2s linear infinite;
  animation-delay: calc(var(--i) * 0.075s);
}

@keyframes lb-letter-hl {
  0%,
  2% {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(244, 177, 59, 0.85);
  }
  5%,
  100% {
    color: rgba(242, 230, 214, 0.45);
    text-shadow: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .lb-marquee-char {
    animation: none;
    color: #f2e6d6;
    text-shadow: none;
  }
}

html[data-theme="dark"] body[data-page="games"] .game-seg {
  background: #111;
  box-shadow: none;
}

html[data-theme="dark"] body[data-page="games"] .game-seg-btn {
  color: #9aa3ad;
}

html[data-theme="dark"] body[data-page="games"] .game-seg-btn + .game-seg-btn {
  box-shadow: inset 1px 0 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] body[data-page="games"] .game-seg-btn.active {
  background: #1e3a52;
  color: #d6eaf8;
}

body[data-page="games"] table.data td {
  vertical-align: middle;
}

#board-stage.hidden,
#lb-list-wrap.hidden {
  display: none;
}

.lb-podium {
  display: grid;
  grid-template-columns: 1fr 1.18fr 1fr;
  align-items: end;
  gap: 6px;
  margin: 2px 0 12px;
}

.lb-spot {
  position: relative;
  min-height: 24px;
}

.lb-spot:not(:has(.lb-entry)) {
  visibility: hidden;
}

.lb-crown {
  position: absolute;
  top: -2px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  pointer-events: none;
}

.lb-spot-1:not(:has(.lb-entry)) .lb-crown {
  display: none;
}

.lb-entry {
  min-width: 0;
}

.lb-spot .lb-entry {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 6px 8px;
  border-radius: 14px 14px 12px 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.78);
  border: 1.5px solid rgba(198, 216, 228, 0.95);
  box-shadow: 0 8px 20px rgba(148, 180, 202, 0.12);
}

.lb-spot-1 .lb-entry {
  padding-top: 16px;
  padding-bottom: 10px;
  background: linear-gradient(180deg, rgba(255, 248, 220, 0.95), rgba(255, 255, 255, 0.82));
  border-color: rgba(212, 175, 55, 0.55);
}

.lb-spot-2 .lb-entry {
  background: linear-gradient(180deg, rgba(232, 240, 246, 0.95), rgba(255, 255, 255, 0.82));
}

.lb-spot-3 .lb-entry {
  background: linear-gradient(180deg, rgba(247, 232, 214, 0.95), rgba(255, 255, 255, 0.82));
}

.lb-spot .lb-rank {
  order: 2;
  position: relative;
  z-index: 1;
  margin-top: -10px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
  background: #8aa4b6;
}

.lb-spot .lb-face {
  order: 1;
}

.lb-spot .lb-name {
  order: 3;
}

.lb-spot .lb-score {
  order: 4;
}

.lb-spot .lb-prize {
  order: 5;
}

.lb-spot-1 .lb-rank {
  background: #d4af37;
  color: #3b2d08;
}

.lb-spot-2 .lb-rank {
  background: #7f93a6;
}

.lb-spot-3 .lb-rank {
  background: #c4843a;
}

.lb-face {
  display: grid;
  place-items: center;
}

.lb-face .user-avatar,
.lb-face .user-avatar-fallback,
.lb-face .lb-ava {
  width: 36px;
  height: 36px;
  font-size: 11px;
}

.lb-spot-1 .lb-face .user-avatar,
.lb-spot-1 .lb-face .user-avatar-fallback,
.lb-spot-1 .lb-face .lb-ava {
  width: 46px;
  height: 46px;
  font-size: 13px;
}

.lb-spot .lb-face .user-avatar,
.lb-spot .lb-face .user-avatar-fallback {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #b7c9d6;
}

.lb-spot-1 .lb-face .user-avatar,
.lb-spot-1 .lb-face .user-avatar-fallback {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #e0c15a;
}

.lb-spot-2 .lb-face .user-avatar,
.lb-spot-2 .lb-face .user-avatar-fallback {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #9aafc0;
}

.lb-spot-3 .lb-face .user-avatar,
.lb-spot-3 .lb-face .user-avatar-fallback {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #d0924a;
}

.lb-spot .lb-name {
  max-width: 100%;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f3d3a;
}

.lb-spot .lb-score {
  font-size: 10px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: #0f3d3a;
}

.lb-spot .lb-score::before {
  content: "Score ";
  font-weight: 700;
}

a.lb-score.is-tiktok {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  color: inherit;
}

a.lb-score.is-tiktok:hover {
  opacity: 0.85;
}

a.lb-score.is-tiktok:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  border-radius: 4px;
}

.lb-entry.is-tiktok-link {
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0.12);
}

.lb-entry.is-tiktok-link:focus-visible {
  outline: 2px solid #ffd54a;
  outline-offset: 2px;
}

body[data-page="games"] .lb-entry.is-tiktok-link:active {
  transform: scale(0.985);
}

.lb-spot .lb-prize {
  font-size: 9px;
  font-weight: 800;
  color: #0f3d3a;
}

.lb-spot .lb-prize::before {
  content: "Wins ";
  font-weight: 700;
}

.lb-spot .lb-prize.is-empty::before {
  content: none;
}

.lb-spot-1 .lb-score {
  background: #f3e2a0;
  color: #5a4308;
}

.lb-list-wrap {
  overflow: hidden;
  padding: 0;
}

.lb-list-head,
#lb-list .lb-entry {
  display: grid;
  grid-template-columns: 36px 32px 1fr auto auto;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
}

.lb-list-head {
  font-size: 10px;
  font-weight: 700;
  color: rgba(15, 61, 58, 0.55);
  border-bottom: 1px solid rgba(198, 216, 228, 0.9);
}

.lb-list-head span:nth-child(2) {
  grid-column: 2 / 4;
}

#lb-list .lb-entry {
  border-bottom: 1px solid rgba(198, 216, 228, 0.65);
  color: #0f3d3a;
}

#lb-list .lb-entry:last-child {
  border-bottom: 0;
}

#lb-list .lb-entry.is-you {
  background: rgba(244, 177, 59, 0.18);
}

#lb-list .lb-rank {
  font-size: 12px;
  font-weight: 800;
  color: #0f3d3a;
}

#lb-list .lb-name {
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #0f3d3a;
}

#lb-list .lb-score {
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #0f3d3a;
}

#lb-list .lb-prize {
  font-size: 10px;
  font-weight: 700;
  color: rgba(15, 61, 58, 0.7);
  font-variant-numeric: tabular-nums;
  text-align: right;
}

#lb-list .lb-prize::before {
  content: "Wins ";
}

#lb-list .lb-prize.is-empty::before {
  content: none;
}

#lb-list .lb-face .user-avatar,
#lb-list .lb-face .user-avatar-fallback,
#lb-list .lb-face .lb-ava {
  width: 32px;
  height: 32px;
  font-size: 10px;
}

.lb-spot .lb-entry.is-you {
  box-shadow: 0 0 0 2px #1a3a52 inset;
}

body[data-page="tasks"] .pill {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}

body[data-page="tasks"] .pill.active {
  background: var(--sand);
  color: var(--forest);
  border-color: var(--sand);
}

body[data-page="dashboard"] .task-card {
  font-size: 12px;
}

body[data-page="dashboard"] .task-card .font-bold {
  font-size: 11px;
}

body[data-page="tasks"] .app-main > *:not(.page-bg-blur),
body[data-page="games"] .app-main > *:not(.page-bg-blur),
body[data-page="dashboard"] .app-main > *:not(.page-bg-blur) {
  position: relative;
  z-index: 1;
}

html[data-theme="dark"] body[data-page="tasks"],
html[data-theme="dark"] body[data-page="dashboard"] {
  background: #000;
}

html[data-theme="dark"] body[data-page="tasks"] .page-bg-blur,
html[data-theme="dark"] body[data-page="dashboard"] .page-bg-blur {
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] body[data-page="tasks"] .page-bg-blur::before,
html[data-theme="dark"] body[data-page="dashboard"] .page-bg-blur::before {
  background:
    radial-gradient(ellipse 90% 55% at 12% -8%, rgba(255, 255, 255, 0.12), transparent 58%),
    radial-gradient(ellipse 70% 48% at 96% 12%, rgba(255, 255, 255, 0.08), transparent 54%);
}

html[data-theme="dark"] body[data-page="tasks"] .page-bg-blur::after,
html[data-theme="dark"] body[data-page="dashboard"] .page-bg-blur::after {
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.1), transparent 50%);
}

html[data-theme="dark"] body[data-page="tasks"] .top-nav,
html[data-theme="dark"] body[data-page="tasks"] .bottom-nav,
html[data-theme="dark"] body[data-page="tasks"] .card,
html[data-theme="dark"] body[data-page="tasks"] .pill,
html[data-theme="dark"] body[data-page="dashboard"] .top-nav,
html[data-theme="dark"] body[data-page="dashboard"] .bottom-nav {
  background: #000;
  color: #fff;
  border-color: #fff;
  box-shadow: none;
  backdrop-filter: none;
}

html[data-theme="dark"] body[data-page="games"],
html[data-theme="dark"] body[data-page="games"] .page-bg-blur {
  background: #0f3d3a;
}

html[data-theme="dark"] body[data-page="games"] .top-nav {
  background: rgba(15, 61, 58, 0.88);
  color: var(--on-bg);
  border-bottom-color: rgba(242, 230, 214, 0.14);
}

html[data-theme="dark"] body[data-page="games"] .bottom-nav {
  background: rgba(255, 250, 244, 0.94);
  color: var(--ink);
  border-color: var(--ink);
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35), 0 -2px 16px rgba(0, 0, 0, 0.2);
}

html[data-theme="dark"] body[data-page="games"] .card {
  background: rgba(255, 250, 244, 0.94);
  color: var(--ink);
  border-color: var(--border);
}

html[data-theme="dark"] body[data-page="games"] .game-card.card,
html[data-theme="dark"] body[data-page="games"] .game-packs-wrap.card {
  background: #000000;
  border-color: #ffffff;
  color: #ffffff;
}

.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.page-head-meta,
.home-feed-meta {
  margin: 0;
  flex-shrink: 0;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  color: rgba(242, 230, 214, 0.78);
  line-height: 1.25;
}

.page-head-meta {
  max-width: 58%;
}

.home-feed-meta {
  white-space: nowrap;
}

.fab-add-task {
  position: fixed;
  right: 18px;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  z-index: 39;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px 0 10px;
  border-radius: 999px;
  background: #f4b13b;
  color: #0f3d3a;
  border: 1.5px solid #0f3d3a;
  box-shadow: 3px 3px 0 #0f3d3a;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: -0.2px;
  text-decoration: none;
  opacity: 1;
}

.fab-add-task-plus {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  display: grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
  font-weight: 700;
}

.fab-add-task:active {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 var(--ink);
}

.fab-tip {
  position: fixed;
  right: 18px;
  bottom: calc(140px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  width: max-content;
  max-width: min(200px, calc(100vw - 36px));
  padding: 10px 12px 8px;
  border-radius: 12px;
  background: #ffffff;
  color: #000000;
  border: 1.5px solid #000000;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
  font-family: "Outfit", system-ui, sans-serif;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px) scale(0.96);
  transform-origin: bottom right;
  transition:
    opacity 220ms ease-out,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s linear 220ms;
}

.fab-tip.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition:
    opacity 220ms ease-out,
    transform 220ms cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0s;
}

.fab-tip-copy {
  margin: 0 0 8px;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: #000000;
}

.fab-tip-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1.5px solid #000000;
  background: #000000;
  color: #ffffff;
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.fab-tip-dismiss:active {
  transform: scale(0.97);
}

.fab-tip-caret {
  position: absolute;
  right: 22px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: #ffffff;
  border-right: 1.5px solid #000000;
  border-bottom: 1.5px solid #000000;
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .fab-tip {
    transition: none;
    transform: none;
  }

  .fab-tip.is-visible {
    transform: none;
  }
}

.admin-main {
  padding: 16px 16px 32px;
}

@media (min-width: 1024px) {
  .admin-main {
    padding: 24px 28px 40px;
    margin-left: 240px;
  }
}

.page-title {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--on-bg);
}

.page-subcopy {
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(242, 230, 214, 0.85);
}

.home-feed-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  min-width: 0;
  color: var(--on-bg);
}

.card .page-head-meta,
.card .home-feed-meta,
.card .page-subcopy {
  color: rgba(15, 61, 58, 0.62);
}

.card .page-title,
.card .home-feed-title,
.card h1,
.card h2,
.card h3 {
  color: var(--ink);
}

/* Forest-page secondary Tailwind text */
.app-main > .text-zinc-400,
.app-main > .text-zinc-500,
.app-main > .text-zinc-600,
.app-main > * > .text-zinc-400,
.app-main > * > .text-zinc-600,
#panel-create > .text-zinc-500,
#back-to-types {
  color: rgba(242, 230, 214, 0.9) !important;
}

#type-picker > .text-zinc-400,
#type-picker > .text-zinc-500,
#type-picker > .text-zinc-600,
#type-picker .page-subcopy {
  color: rgba(242, 230, 214, 0.85) !important;
}

#type-picker .type-choice .text-zinc-400,
#type-picker .type-choice .text-zinc-500,
#type-picker .type-choice .text-zinc-600,
#type-picker .type-choice-desc {
  color: #3d524e !important;
}

#type-details h2 {
  color: var(--on-bg) !important;
}

#type-details .text-zinc-600,
#type-details .text-zinc-500 {
  color: rgba(242, 230, 214, 0.78) !important;
}

.card .text-zinc-400,
.card .text-zinc-500,
.card .text-zinc-600,
.modal-sheet .text-zinc-400,
.modal-sheet .text-zinc-500,
.modal-sheet .text-zinc-600 {
  color: #3d524e !important;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  min-height: 40px;
  padding: 0 16px;
  border: 1.5px solid var(--ink);
  transition: transform 120ms ease-out, opacity 120ms ease-out;
}

.btn:active {
  transform: scale(0.97);
}

.btn:disabled {
  opacity: 0.5;
}

.btn-sm {
  min-height: 32px;
  padding: 0 10px;
  font-size: 11px;
}

.btn-ink {
  background: var(--ink);
  color: var(--on-ink);
}

#check-tiktok {
  border: 1.5px solid #ffffff;
}

.btn-mint {
  background: var(--mint);
  color: #0f3d3a;
}

.btn-white {
  background: var(--surface);
  color: var(--ink);
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--ink);
  border-color: #ff7a7a;
}

.field {
  width: 100%;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--ink);
  padding: 11px 16px;
  font-size: 16px;
  line-height: 1.25;
  outline: none;
}

.field:focus {
  border-color: var(--ink);
}

.field-box {
  border-radius: 16px;
}

textarea.field {
  border-radius: 16px;
  min-height: 96px;
  resize: vertical;
}

.card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  color: var(--ink);
}

.card .text-zinc-400,
.card .text-zinc-500,
.card .text-zinc-600,
.modal-sheet .text-zinc-400,
.modal-sheet .text-zinc-500,
.modal-sheet .text-zinc-600,
.task-sheet-shell .text-zinc-400,
.task-sheet-shell .text-zinc-500,
.task-sheet-shell .text-zinc-600 {
  color: #3d524e !important;
}

.card .text-black,
.modal-sheet .text-black,
.task-sheet-shell .text-black {
  color: var(--ink) !important;
}

.task-card .text-zinc-600 {
  color: #ffffff !important;
}

.card-ink {
  background: var(--card-ink);
  color: var(--on-ink);
  border-radius: 16px;
  border: 1px solid var(--card-ink);
}

body[data-page="profile"] #profile-card.card-ink,
body[data-page="wallet"] #wallet-hero.card-ink {
  border-color: rgba(244, 177, 59, 0.45);
  box-shadow:
    0 0 0 1px rgba(244, 177, 59, 0.22),
    0 0 18px 4px rgba(244, 177, 59, 0.28),
    0 0 36px 8px rgba(224, 116, 94, 0.12);
}

.theme-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.theme-switch-btn {
  min-height: 40px;
  border-radius: 12px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: #0f3d3a;
  font-size: 13px;
  font-weight: 700;
}

.theme-switch-btn.is-active {
  background: #0f3d3a;
  color: #f2e6d6;
  border-color: #0f3d3a;
}

#wallet-hero {
  border: 1.5px solid rgba(244, 177, 59, 0.45);
}

body[data-page="wallet"].ambient::before,
body[data-page="wallet"].ambient::after,
body[data-page="wallet"] .blob-peach,
body[data-page="profile"].ambient::before,
body[data-page="profile"].ambient::after,
body[data-page="profile"] .blob-peach {
  display: none;
}

.wallet-sim-chip {
  flex-shrink: 0;
  width: 46px;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 22%;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}

.wallet-hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.wallet-hero-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.wallet-action {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 0;
  line-height: 1;
  white-space: nowrap;
}

.wallet-action-deposit {
  background: var(--surface);
  color: var(--ink);
}

.wallet-action-cashout {
  background: var(--mint);
  color: #0f3d3a;
}

.deposit-methods {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.deposit-methods .btn {
  flex: 1 1 0;
  min-height: 34px;
  padding: 0 12px;
  font-size: 12px;
}

.deposit-wait {
  padding: 20px 8px 24px;
}

.wallet-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 16px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
}

.wallet-hero-stats > div {
  min-width: 0;
}

.wallet-hero-stats b {
  display: block;
  margin-top: 2px;
  word-break: break-word;
}

.wallet-stat-note {
  display: block;
  margin-top: 4px;
  font-size: 9px;
  line-height: 1.25;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.task-card {
  border-radius: 14px;
  border: 1.5px solid #ffffff;
  padding: 10px 12px;
  color: #ffffff;
  background: #000000;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
  transition: transform 160ms ease-out, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.task-card:nth-child(odd),
.task-card:nth-child(even) {
  background: #000000 !important;
  color: #ffffff !important;
}

.task-card:nth-child(odd) {
  border: 1.5px solid #ffffff !important;
}

.task-card:nth-child(even) {
  border: 1.5px solid transparent !important;
}

button.task-card {
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.task-card,
.task-card *:not(.task-plat-icon):not(svg):not(path) {
  color: #ffffff !important;
}

.task-card .text-zinc-600 {
  color: #ffffff !important;
}

.task-card-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.task-card-body {
  flex: 1;
  min-width: 0;
}

.task-card-reward {
  flex-shrink: 0;
  text-align: right;
}

.task-plat-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #ffffff !important;
  background: #111;
}

.task-plat-icon svg {
  width: 22px;
  height: 22px;
  display: block;
  color: inherit !important;
  fill: currentColor;
}

.task-plat-icon.is-dark,
.task-plat-icon.is-dark svg {
  color: #111111 !important;
}

.task-plat-tiktok { background: linear-gradient(135deg, #111, #000); }
.task-plat-youtube { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.task-plat-task { background: linear-gradient(135deg, #0f3d3a, #1a5c57); }

.task-mine-row .task-plat-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
}

.task-card:active {
  transform: translateY(-1px);
}

.task-card-started-label {
  display: none;
}

.task-card.is-started .task-card-started-label {
  display: inline;
}

.task-card.is-started .task-card-cat {
  display: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 10px;
  font-weight: 600;
  border: 1px solid transparent;
}

.badge-mint {
  background: var(--mint);
  color: #0f3d3a;
}

.badge-pending {
  background: var(--pending);
}

.badge-danger {
  background: var(--danger-soft);
}

.badge-blue {
  background: var(--soft-blue);
}

.badge-zinc {
  background: var(--cream);
  color: var(--zinc-600);
}

.toast-wrap {
  position: fixed;
  left: 48px;
  right: 48px;
  bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.toast {
  background: var(--ink);
  color: var(--on-ink);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 500;
  max-width: 360px;
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 17, 17, 0.35);
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
}

@media (min-width: 768px) {
  .modal-backdrop {
    align-items: center;
  }
}

.modal-sheet {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 22px;
  box-shadow: 3px 3px 0 var(--ink);
  padding: 18px;
}

.skeleton {
  background: linear-gradient(90deg, #f3efe8 25%, #fff 50%, #f3efe8 75%);
  background-size: 200% 100%;
  animation: shimmer 1.2s ease-in-out infinite;
  border-radius: 12px;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.page-switch-loader {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: transparent;
  place-items: center;
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
}

html.is-page-switch .page-switch-loader {
  display: grid;
  visibility: visible;
  opacity: 1;
}

.cj-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px;
  gap: 14px;
}

.cj-loader-mark {
  width: 58px;
  height: 52px;
  border-radius: 16px;
  background: #0f3d3a;
  color: #f2e6d6;
  border: 1.5px solid #0f3d3a;
  box-shadow: 3px 3px 0 rgba(15, 61, 58, 0.35);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.04em;
  animation: cj-breathe 1.15s ease-in-out infinite;
}

html:not(.is-page-switch) .cj-loader-mark {
  animation: none;
  transform: none;
}

.page-switch-loader .cj-loader-mark {
  background: #0f3d3a;
  color: #f2e6d6;
  border-color: rgba(244, 177, 59, 0.55);
  box-shadow: 3px 3px 0 rgba(15, 61, 58, 0.45);
}

.cj-loader-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cj-loader-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f2e6d6;
  opacity: 0.55;
  animation: cj-dot 1s ease-in-out infinite;
}

.page-switch-loader .cj-loader-dots span {
  background: #f2e6d6;
  opacity: 0.7;
  filter: drop-shadow(0 1px 2px rgba(15, 61, 58, 0.45));
}

.cj-loader-dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.cj-loader-dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.cj-loader-text {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--on-bg);
}

.page-switch-loader .cj-loader-text {
  color: #f2e6d6;
  text-shadow: 0 1px 2px rgba(15, 61, 58, 0.55);
}

@keyframes cj-breathe {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes cj-dot {
  0%, 80%, 100% { transform: scale(0.7); opacity: 0.35; }
  40% { transform: scale(1); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cj-loader-mark,
  .cj-loader-dots span {
    animation: none;
  }

  .wallet-odometer-reel {
    transition: none !important;
  }
}

.seg-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 10px;
  background: var(--cream);
  border-radius: 999px;
}

.campaigns-note {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(242, 230, 214, 0.82);
  line-height: 1.35;
}

.seg-tab {
  min-height: 38px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(15, 61, 58, 0.62);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.seg-tab:active {
  transform: scale(0.98);
}

.seg-tab.active {
  background: var(--forest);
  color: var(--sand);
}

.pill-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  -webkit-overflow-scrolling: touch;
}

.pill {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
}

.pill.active {
  background: var(--sand);
  color: var(--forest);
  border-color: var(--sand);
}

.type-choice {
  display: block;
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: var(--ink);
}

.type-choice .font-bold {
  color: #0f3d3a;
}

.type-choice-desc {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  color: #3d524e !important;
}

.type-choice:active {
  transform: scale(0.99);
}

table.data tr.kv th {
  width: 38%;
  color: var(--zinc-500);
  font-weight: 600;
  background: var(--surface);
}

.empty-box {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  text-align: center;
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.coming-soon {
  min-height: 48vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 16px;
}

.coming-soon-mark {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--mint);
  border: 1.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  display: grid;
  place-items: center;
  margin: 0 auto 16px;
}

.coming-soon-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
}

.coming-soon-copy {
  margin-top: 6px;
  font-size: 13px;
  color: var(--zinc-600);
  max-width: 240px;
}

.table-wrap {
  overflow-x: auto;
}

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

table.data th {
  text-align: left;
  font-size: 10px;
  color: var(--zinc-600);
  font-weight: 600;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

table.data td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.admin-sidebar {
  display: none;
}

@media (min-width: 1024px) {
  .admin-sidebar {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 240px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 18px 14px;
    z-index: 30;
  }
}

.admin-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}

.admin-link.active,
.admin-link:hover {
  background: var(--cream);
}

.install-banner {
  display: none;
}

.install-banner.show {
  display: flex;
}

.progress-bar {
  height: 6px;
  background: var(--cream);
  border-radius: 999px;
  overflow: hidden;
}

.progress-bar > span {
  display: block;
  height: 100%;
  background: var(--ink);
}

.tt-why,
.tt-gate,
.tt-found {
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  padding: 14px 16px;
}

.tt-why {
  margin-bottom: 14px;
}

.tt-why p,
.tt-gate p {
  margin: 0 0 8px;
  font-size: 16px;
  line-height: 1.45;
}

.tt-why p:last-child,
.tt-gate p:last-child {
  margin-bottom: 0;
  font-weight: 700;
}

.tt-watch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin: 0 0 8px;
  padding: 10px 16px;
  border-radius: 16px;
  background: var(--mint);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  font-weight: 800;
  font-size: 15px;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}

.tt-watch-play {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  flex-shrink: 0;
}

.tt-steps {
  list-style: none;
  counter-reset: tt-step;
  padding: 0;
  margin: 24px 0 20px;
}

.tt-steps li {
  counter-increment: tt-step;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
}

.tt-steps li::before {
  content: counter(tt-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.tt-paste-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.tt-paste-row .field {
  flex: 1;
  min-width: 0;
}

.tt-paste-row .btn {
  flex-shrink: 0;
}

.tt-gate {
  margin-top: 4px;
}

.tt-gate h2 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 800;
}

.tt-gate .tt-watch {
  margin-top: 12px;
}

.tt-gate .btn {
  min-height: 48px;
  font-size: 16px;
}

.tt-home-note {
  margin-bottom: 10px;
  padding: 0;
  border: none;
  background: transparent;
}

.tt-home-note-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 16px;
  text-decoration: none;
  background: var(--card-ink);
  color: var(--on-ink);
  border: 1.5px solid rgba(244, 177, 59, 0.45);
  box-shadow:
    0 0 0 1px rgba(244, 177, 59, 0.22),
    0 0 18px 4px rgba(244, 177, 59, 0.28),
    0 0 36px 8px rgba(224, 116, 94, 0.12);
  transition: transform 160ms ease-out, box-shadow 180ms ease;
}

.tt-home-note-link:active {
  transform: translateY(1px);
}

.tt-home-note-copy {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--on-ink);
}

.tt-home-note-btn,
.tt-home-note .btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  font-size: 10px;
  font-weight: 800;
  border-radius: 999px;
  border: 1px solid rgba(244, 177, 59, 0.55);
  background: rgba(244, 177, 59, 0.2);
  color: var(--on-ink);
  pointer-events: none;
}

.tt-task-url {
  margin: 0 0 12px;
  font-size: 11px;
  line-height: 1.35;
  word-break: break-all;
  color: var(--zinc-600);
}

.tt-public-note {
  margin: 0 0 12px;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.35;
}

.card #budget-hint.is-focus-tip,
#budget-hint.is-focus-tip {
  color: #d64545 !important;
  font-weight: 600;
}

.tt-retry {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--zinc-600);
  opacity: 0.55;
  text-align: center;
  cursor: pointer;
}

.tt-retry:hover,
.tt-retry:focus-visible {
  opacity: 0.85;
  outline: none;
}

#tiktok-preview .cj-loader {
  padding: 28px 12px 16px;
}

body.task-sheet-open {
  overflow: hidden;
}

#task-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 10px;
  background: rgba(17, 17, 17, 0.42);
}

#task-sheet.hidden {
  display: none;
}

.task-sheet-shell {
  width: calc(100% - 20px);
  max-width: 420px;
  max-height: 88dvh;
  margin: 0 10px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  color: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 20px 20px 16px 16px;
  box-shadow: 3px 3px 0 var(--ink);
  overflow: hidden;
  transform: translateY(110%);
  transition: transform 280ms cubic-bezier(0.32, 0.72, 0, 1);
}

#task-sheet.is-open .task-sheet-shell {
  transform: translateY(0);
}

.task-sheet-band {
  position: relative;
  flex-shrink: 0;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(15, 61, 58, 0.12);
  background: var(--mint);
}

.task-sheet-close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1.5px solid #111;
  background: #fff;
  color: #111;
  font-size: 22px;
  line-height: 1;
  font-weight: 500;
}

.task-sheet-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid #111;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 16px;
  font-weight: 700;
}

#tm-desc.is-typing {
  cursor: pointer;
}

#tm-desc.is-typing::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 2px;
  background: currentColor;
  vertical-align: -2px;
  animation: tm-caret 0.72s steps(1) infinite;
}

@keyframes tm-caret {
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  #tm-desc.is-typing::after {
    display: none;
    animation: none;
  }
}

.task-sheet-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.task-sheet-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--ink);
  background: var(--mint);
  color: var(--ink);
  text-decoration: none;
}

.task-sheet-link-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #111;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
}

.task-sheet-foot {
  flex-shrink: 0;
  padding: 12px 12px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid rgba(17, 17, 17, 0.1);
  background: var(--surface);
}

@media (min-width: 768px) {
  #task-sheet {
    align-items: center;
    padding: 16px;
  }

  .task-sheet-shell {
    width: 100%;
    margin: 0;
    border-radius: 20px;
    max-height: 85vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  .task-sheet-shell {
    transition: none;
  }
}

html[data-theme="dark"] .task-sheet-band,
html[data-theme="dark"] .task-sheet-link {
  color: #111;
}

html[data-theme="dark"] .task-sheet-close,
html[data-theme="dark"] .task-sheet-icon,
html[data-theme="dark"] .task-sheet-link-icon {
  background: #fff;
  border-color: #111;
  color: #111;
}

.proof-file-input {
  width: 100%;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--ink);
  background: var(--surface);
  font-size: 12px;
}

.proof-file-input::file-selector-button {
  margin-right: 8px;
  padding: 6px 10px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--on-ink);
  font-size: 10px;
  font-weight: 600;
}

.proof-file-name {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--zinc-600);
  word-break: break-all;
}

.proof-file-preview {
  display: block;
  width: 100%;
  max-height: 180px;
  margin-top: 8px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid var(--ink);
  background: #fff;
}

.proof-file-preview.hidden,
.proof-file-name.hidden {
  display: none;
}

body[data-page="login"] {
  --login-forest: #0f3d3a;
  --login-clay: #e0745e;
  --login-sand: #f2e6d6;
  --login-muted: rgba(15, 61, 58, 0.62);
  background: var(--login-sand);
  color: var(--login-forest);
  overflow-x: hidden;
  touch-action: manipulation;
}

body[data-page="login"].ambient::before,
body[data-page="login"].ambient::after,
body[data-page="login"] .blob-peach {
  display: none;
}

body[data-page="login"] input {
  font-size: 16px !important;
}

body[data-page="login"] .login-otp {
  font-size: 18px !important;
}

.login-top {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(15, 61, 58, 0.1);
  background: var(--login-sand);
}

.login-top-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 72rem;
  margin: 0 auto;
  height: 56px;
  min-height: 56px;
  padding-top: 0;
  padding-bottom: 0;
  box-sizing: border-box;
}

.login-brand {
  display: flex;
  align-items: center;
  font-family: Poppins, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  color: var(--login-forest);
}

.login-main {
  position: relative;
  min-height: calc(100dvh - 56px - env(safe-area-inset-top, 0px));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px calc(40px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(ellipse 50% 40% at 90% 10%, rgba(224, 116, 94, 0.14), transparent 55%),
    radial-gradient(ellipse 45% 35% at 0% 80%, rgba(15, 61, 58, 0.08), transparent 55%);
}

.login-back {
  position: absolute;
  top: 24px;
  left: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  color: var(--login-muted);
  font-size: 14px;
  cursor: pointer;
}

.login-back:hover {
  color: var(--login-clay);
}

.login-card {
  width: 100%;
  max-width: 20rem;
  background: rgba(255, 255, 255, 0.82);
  border: 2.5px solid var(--login-forest);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 16px 36px rgba(15, 61, 58, 0.1);
}

.login-title {
  margin: 0 0 16px;
  color: var(--login-forest);
  font-family: Poppins, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
}

.login-sub {
  margin: -8px 0 8px;
  color: var(--login-muted);
  font-size: 14px;
  text-align: center;
}

.login-sub span {
  font-weight: 600;
  color: var(--login-forest);
}

.login-otp-dest {
  margin: 0 0 4px;
  text-align: center;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--login-forest);
  word-break: break-word;
}

.login-otp-via {
  margin: 0 0 16px;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--login-muted);
}

.login-otp-via:empty {
  display: none;
}

.login-label {
  display: block;
  margin-bottom: 6px;
  color: var(--login-muted);
  font-size: 12px;
  font-weight: 500;
}

.login-control {
  width: 100%;
  border: 2px solid rgba(15, 61, 58, 0.55);
  border-radius: 8px;
  background: #fff;
  padding: 8px 12px;
  color: var(--login-forest);
  font-size: 14px;
  line-height: 1.4;
  outline: none;
}

.login-control:focus {
  border-color: var(--login-clay);
  box-shadow: 0 0 0 3px rgba(224, 116, 94, 0.18);
}

.login-country {
  margin-bottom: 12px;
}

.login-country-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  font-weight: 500;
}

.login-caret {
  color: rgba(15, 61, 58, 0.4);
  font-size: 12px;
}

.login-country-list {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  z-index: 50;
  max-height: 12rem;
  overflow-y: auto;
  background: #fff;
  border: 2px solid var(--login-forest);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 61, 58, 0.14);
}

.login-country-option {
  display: block;
  width: 100%;
  padding: 8px 12px;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
  font-size: 14px;
}

.login-country-option:hover,
.login-country-option:focus-visible {
  background: rgba(242, 230, 214, 0.7);
  outline: none;
}

.login-country-option-code {
  color: var(--login-muted);
  font-size: 12px;
}

.login-country-option-name {
  color: var(--login-forest);
  font-weight: 500;
}

.login-phone {
  position: relative;
  margin-bottom: 12px;
}

.login-phone-prefix {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(15, 61, 58, 0.45);
  font-size: 12px;
}

.login-phone-input {
  padding-left: 48px;
}

.login-ref {
  margin: -4px 0 12px;
  color: var(--login-muted);
  font-size: 11px;
}

.login-error {
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 8px;
  background: rgba(224, 116, 94, 0.12);
  color: #b4533a;
  font-size: 12px;
}

.login-error.hidden,
.login-ref.hidden {
  display: none;
}

.login-submit {
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--login-forest);
  padding: 8px 12px;
  color: var(--login-sand);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.login-submit:hover {
  background: #0c332f;
}

.login-submit:disabled {
  opacity: 0.5;
  cursor: default;
}

.login-legal {
  margin: 16px 0 0;
  color: rgba(15, 61, 58, 0.45);
  font-size: 11px;
  text-align: center;
}

.login-otp {
  margin-bottom: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  text-align: center;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.28em;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  -webkit-text-size-adjust: 100%;
}

@media (max-width: 380px) {
  .login-otp {
    letter-spacing: 0.18em;
    font-size: 16px !important;
  }

  .login-card {
    max-width: 100%;
  }

  .login-title {
    font-size: 15px;
  }

  .login-sub {
    font-size: 13px;
    word-break: break-word;
  }
}

.login-text-btn {
  border: 0;
  background: transparent;
  color: var(--login-clay);
  font: inherit;
  cursor: pointer;
}

/* —— Landing (Deep Forest / Terracotta / Warm Sand) —— */
body[data-page="landing"] {
  --land-forest: #0f3d3a;
  --land-clay: #e0745e;
  --land-sand: #f2e6d6;
  --land-ink: #0f3d3a;
  --land-muted: rgba(15, 61, 58, 0.68);
  background: var(--land-sand);
  color: var(--land-ink);
}

body[data-page="landing"].ambient::before,
body[data-page="landing"].ambient::after,
body[data-page="landing"] .blob-peach {
  display: none;
}

body[data-page="landing"] .app-main {
  padding: 0;
}

.land {
  position: relative;
  z-index: 1;
  max-width: 440px;
  margin: 0 auto;
  padding: 0 20px 48px;
}

.land::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 38% at 92% -8%, rgba(224, 116, 94, 0.22), transparent 58%),
    radial-gradient(ellipse 45% 35% at -10% 30%, rgba(15, 61, 58, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 80% 95%, rgba(15, 61, 58, 0.08), transparent 55%),
    var(--land-sand);
}

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

.land-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--land-ink);
}

.land-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--land-forest);
  color: var(--land-sand);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: -0.04em;
  line-height: 1;
}

.land-word {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.land-top-link {
  font-size: 13px;
  font-weight: 700;
  color: var(--land-ink);
  text-decoration: none;
  padding: 8px 4px;
}

.land-top-link:hover {
  color: var(--land-clay);
}

.land-hero {
  display: grid;
  gap: 28px;
  padding: 12px 0 36px;
}

@media (min-width: 900px) {
  .land {
    max-width: 1040px;
    padding-left: 32px;
    padding-right: 32px;
  }

  .land-hero {
    grid-template-columns: 1fr 1.05fr;
    align-items: start;
    gap: 40px;
    padding-top: 20px;
  }
}

.land-hero-copy {
  animation: land-rise 650ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.land-title {
  margin: 0 0 18px;
  font-family: Poppins, system-ui, sans-serif;
  font-size: clamp(2.15rem, 6.5vw, 3.15rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--land-forest);
}

.land-path-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}

@media (min-width: 560px) {
  .land-path-grid {
    grid-template-columns: 1fr 1fr;
    gap: 14px;
  }
}

.land-path {
  display: block;
  border-radius: 18px;
  padding: 18px 16px;
  min-height: 132px;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(15, 61, 58, 0.1);
  transition: transform 140ms ease-out, box-shadow 140ms ease-out, filter 140ms ease-out;
}

.land-path:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 61, 58, 0.16);
  filter: brightness(1.03);
}

.land-path:active {
  transform: scale(0.98);
}

.land-path-boost {
  background: var(--land-forest);
  color: var(--land-sand);
}

.land-path-earn {
  background: var(--land-clay);
  color: #fff;
}

.land-path-title {
  margin: 0 0 8px;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.land-path-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  max-width: 28ch;
  opacity: 0.92;
}

.land-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.land-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 0;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 120ms ease-out, filter 120ms ease-out, background 120ms ease-out;
}

.land-btn:active {
  transform: scale(0.97);
}

.land-btn-primary {
  background: var(--land-forest);
  color: var(--land-sand);
  min-width: 140px;
  box-shadow: 0 10px 24px rgba(15, 61, 58, 0.22);
}

.land-btn-primary:hover {
  filter: brightness(1.08);
}

.land-btn-outline {
  background: transparent;
  color: var(--land-forest);
  border: 1.5px solid rgba(15, 61, 58, 0.28);
  min-width: 110px;
}

.land-btn-outline:hover {
  border-color: var(--land-clay);
  color: var(--land-clay);
}

.land-btn-sand {
  background: var(--land-sand);
  color: var(--land-forest);
  min-width: 160px;
}

.land-btn-sand:hover {
  filter: brightness(1.03);
}

.land-hero-visual {
  position: relative;
  min-height: 0;
  animation: land-rise 750ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.land-platforms {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 520px) {
  .land-platforms {
    grid-template-columns: 1fr 1fr;
  }
}

.land-platform {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(15, 61, 58, 0.1);
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 20px rgba(15, 61, 58, 0.06);
  transition: transform 140ms ease-out, box-shadow 140ms ease-out, border-color 140ms ease-out;
}

.land-platform:hover {
  transform: translateY(-2px);
  border-color: rgba(224, 116, 94, 0.45);
  box-shadow: 0 14px 28px rgba(15, 61, 58, 0.12);
}

.land-platform-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(15, 61, 58, 0.18);
}

.land-platform-icon svg {
  width: 22px;
  height: 22px;
}

.land-platform-tiktok { background: linear-gradient(135deg, #111, #000); }
.land-platform-instagram { background: linear-gradient(135deg, #833ab4, #fd1d1d 52%, #fcb045); }
.land-platform-youtube { background: linear-gradient(135deg, #dc2626, #b91c1c); }
.land-platform-facebook { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.land-platform-x { background: linear-gradient(135deg, #111, #000); }
.land-platform-telegram { background: linear-gradient(135deg, #0ea5e9, #0284c7); }
.land-platform-whatsapp { background: linear-gradient(135deg, #22c55e, #16a34a); }
.land-platform-snapchat { background: linear-gradient(135deg, #facc15, #eab308); color: #111; }

.land-platform-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.land-platform-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--land-forest);
}

.land-platform-desc {
  font-size: 11px;
  line-height: 1.35;
  color: var(--land-muted);
}

.land-section {
  padding: 8px 0 36px;
}

.land-h2 {
  margin: 0 0 18px;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--land-forest);
}

.land-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.land-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-top: 1px solid rgba(15, 61, 58, 0.14);
}

.land-step:last-child {
  border-bottom: 1px solid rgba(15, 61, 58, 0.14);
}

.land-step-num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: var(--land-forest);
  color: var(--land-sand);
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
}

.land-step:nth-child(2) .land-step-num {
  background: var(--land-clay);
  color: #fff;
}

.land-step:nth-child(3) .land-step-num {
  background: rgba(15, 61, 58, 0.72);
  color: var(--land-sand);
}

.land-step-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--land-forest);
}

.land-step-copy {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--land-muted);
  max-width: 42ch;
}

.land-closer {
  margin-top: 4px;
  padding: 28px 20px;
  border-radius: 22px;
  background: var(--land-forest);
  color: var(--land-sand);
  text-align: center;
  box-shadow: 0 18px 40px rgba(15, 61, 58, 0.22);
}

.land-closer-title {
  margin: 0 0 8px;
  font-family: Poppins, system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.land-closer-copy {
  margin: 0 0 18px;
  font-size: 13px;
  color: rgba(242, 230, 214, 0.78);
}

.land-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 61, 58, 0.14);
}

.land-foot-brand {
  font-weight: 800;
  font-size: 13px;
  color: var(--land-forest);
}

.land-foot-note {
  font-size: 11px;
  color: var(--land-muted);
  font-weight: 600;
}

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

@media (prefers-reduced-motion: reduce) {
  .land-hero-copy,
  .land-hero-visual {
    animation: none;
  }
}

/* —— Admin Control Center (home) —— */
body[data-page="admin-home"] {
  --cc-canvas: #e8ecf4;
  --cc-panel: #f4f6fb;
  --cc-ink: #1a2332;
  --cc-muted: rgba(26, 35, 50, 0.55);
  --cc-shadow: 10px 10px 22px rgba(163, 177, 198, 0.55), -8px -8px 18px rgba(255, 255, 255, 0.95);
  --cc-shadow-sm: 6px 6px 14px rgba(163, 177, 198, 0.45), -5px -5px 12px rgba(255, 255, 255, 0.9);
  --cc-inset: inset 4px 4px 10px rgba(163, 177, 198, 0.35), inset -4px -4px 10px rgba(255, 255, 255, 0.85);
  background:
    radial-gradient(120% 80% at 10% -10%, #dce8f8 0%, transparent 55%),
    radial-gradient(90% 70% at 100% 0%, #f3dde8 0%, transparent 50%),
    radial-gradient(80% 60% at 80% 100%, #d9efe8 0%, transparent 45%),
    var(--cc-canvas);
  color: var(--cc-ink);
}

body[data-page="admin-home"] .blob-peach {
  display: none;
}

body[data-page="admin-home"] .admin-main.admin-dash {
  padding-top: 20px;
  padding-bottom: 48px;
}

body[data-page="admin-home"] .admin-sidebar {
  background: rgba(244, 246, 251, 0.92);
  border-right: none;
  box-shadow: 6px 0 24px rgba(163, 177, 198, 0.25);
  backdrop-filter: blur(12px);
}

body[data-page="admin-home"] .admin-link {
  color: var(--cc-ink);
  border-radius: 14px;
}

body[data-page="admin-home"] .admin-link.active,
body[data-page="admin-home"] .admin-link:hover {
  background: var(--cc-panel);
  box-shadow: var(--cc-inset);
}

.admin-cc {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 18px 28px;
  border-radius: 32px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.72), rgba(244, 246, 251, 0.9));
  box-shadow: var(--cc-shadow);
  animation: admin-cc-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.admin-cc-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
  padding: 0 4px;
}

.admin-cc-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.admin-cc-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: linear-gradient(145deg, #1f7a72, #0f3d3a);
  color: #f2e6d6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
  box-shadow: 4px 6px 14px rgba(15, 61, 58, 0.28);
}

.admin-cc-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--cc-ink);
}

.admin-cc-sub {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--cc-muted);
}

.admin-cc-tools {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.admin-cc-tool {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  color: var(--cc-muted);
  background: var(--cc-panel);
  box-shadow: var(--cc-inset);
  text-decoration: none;
  transition: color 0.18s ease, transform 0.18s ease;
}

.admin-cc-tool:hover {
  color: var(--cc-ink);
  transform: translateY(-1px);
}

.admin-cc-tool:focus-visible {
  outline: 2px solid #0f3d3a;
  outline-offset: 2px;
}

.admin-cc-orbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
}

.admin-cc-orb {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 210px;
  padding: 18px 14px 16px;
  border-radius: 28px;
  background: #f7f8fc;
  box-shadow: var(--cc-shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease;
}

.admin-cc-orb:hover {
  transform: translateY(-3px);
}

.admin-cc-orb:focus-visible {
  outline: 2px solid #0f3d3a;
  outline-offset: 3px;
}

.admin-cc-orb-alerts {
  background: linear-gradient(165deg, #fff5f4 0%, #f7f8fc 55%);
}

.admin-cc-orb-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cc-muted);
}

.admin-cc-orb-disc {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 999px;
  color: #fff;
  box-shadow:
    0 14px 28px rgba(15, 61, 58, 0.22),
    inset 0 2px 0 rgba(255, 255, 255, 0.28);
}

.admin-cc-orb-people .admin-cc-orb-disc {
  background: linear-gradient(160deg, #4a90d9, #2f6fad);
}

.admin-cc-orb-work .admin-cc-orb-disc {
  background: linear-gradient(160deg, #3cb89a, #1f7a72);
}

.admin-cc-orb-alerts .admin-cc-orb-disc {
  background: linear-gradient(160deg, #ef6b5e, #d64545);
}

.admin-cc-orb-num {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.admin-cc-orb-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  padding: 0 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--cc-muted);
}

.admin-cc-orb-foot svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.admin-cc-badge,
.admin-cc-panel-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: #7c6bc4;
  box-shadow: 0 4px 10px rgba(124, 107, 196, 0.35);
}

.admin-cc-orb-alerts .admin-cc-badge,
.admin-cc-panel-badge {
  background: #e0745e;
  box-shadow: 0 4px 10px rgba(224, 116, 94, 0.35);
}

.admin-cc-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.admin-cc-panel {
  position: relative;
  padding: 16px 14px 12px;
  border-radius: 26px;
  background: #f7f8fc;
  box-shadow: var(--cc-shadow-sm);
  animation: admin-cc-in 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.06s;
}

.admin-cc-panels-feed .admin-cc-panel {
  animation-delay: 0.12s;
}

.admin-cc-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 0 4px 8px;
}

.admin-cc-panel-title {
  margin: 0;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--cc-ink);
}

.admin-cc-panel-badge {
  position: static;
}

.admin-cc-panel-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-cc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: background 0.15s ease, transform 0.15s ease;
}

a.admin-cc-row:hover {
  background: rgba(255, 255, 255, 0.7);
  transform: translateX(2px);
}

a.admin-cc-row:focus-visible {
  outline: 2px solid #0f3d3a;
  outline-offset: 1px;
}

.admin-cc-ico {
  width: 28px;
  height: 28px;
  border-radius: 9px;
  flex-shrink: 0;
  background: var(--ico, #0f3d3a);
  box-shadow: 0 4px 8px rgba(15, 61, 58, 0.22);
}

.admin-cc-row-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  flex: 1;
}

.admin-cc-row-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--cc-ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-cc-row-meta {
  font-size: 11px;
  font-weight: 600;
  color: var(--cc-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-cc-chev {
  flex-shrink: 0;
  color: rgba(26, 35, 50, 0.35);
}

.admin-cc-empty {
  padding: 16px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cc-muted);
  text-align: center;
}

@keyframes admin-cc-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .admin-cc-orbs,
  .admin-cc-panels {
    grid-template-columns: 1fr;
  }

  .admin-cc-orb {
    min-height: 0;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 12px 16px;
    padding: 16px;
  }

  .admin-cc-orb-label {
    width: 100%;
  }

  .admin-cc-orb-disc {
    width: 72px;
    height: 72px;
  }

  .admin-cc-orb-num {
    font-size: 1.45rem;
  }

  .admin-cc-orb-foot {
    flex: 1;
    width: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-cc,
  .admin-cc-panel,
  .admin-cc-orb {
    animation: none;
    transition: none;
  }

  .admin-cc-orb:hover,
  a.admin-cc-row:hover,
  .admin-cc-tool:hover {
    transform: none;
  }
}

html[data-theme="dark"] body[data-page="admin-home"] {
  --cc-canvas: #0a0a0a;
  --cc-panel: #141414;
  --cc-ink: #f5f5f5;
  --cc-muted: rgba(245, 245, 245, 0.55);
  --cc-shadow: 8px 8px 20px rgba(0, 0, 0, 0.65), -4px -4px 12px rgba(255, 255, 255, 0.04);
  --cc-shadow-sm: 5px 5px 12px rgba(0, 0, 0, 0.55), -3px -3px 8px rgba(255, 255, 255, 0.03);
  --cc-inset: inset 3px 3px 8px rgba(0, 0, 0, 0.55), inset -2px -2px 6px rgba(255, 255, 255, 0.04);
  background: #0a0a0a;
}

html[data-theme="dark"] body[data-page="admin-home"] .admin-cc,
html[data-theme="dark"] body[data-page="admin-home"] .admin-cc-orb,
html[data-theme="dark"] body[data-page="admin-home"] .admin-cc-panel {
  background: #121212;
}

html[data-theme="dark"] body[data-page="admin-home"] .admin-cc-orb-alerts {
  background: linear-gradient(165deg, #2a1414 0%, #121212 55%);
}

html[data-theme="dark"] body[data-page="admin-home"] .admin-sidebar {
  background: #0f0f0f;
  box-shadow: none;
  border-right: 1px solid #222;
}

html[data-theme="dark"] body[data-page="admin-home"] a.admin-cc-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* —— Games arcade theme —— */
body[data-page="games"] {
  --arcade-ink: #0b2740;
  --arcade-lime: #7ed321;
  --arcade-lime-deep: #4ea30a;
  --arcade-gold: #ffd54a;
  font-family: Fredoka, Inter, system-ui, sans-serif;
}

html:has(body[data-page="games"]),
body[data-page="games"] {
  background: #1450a8;
}

body[data-page="games"] .page-bg-blur.game-arcade-bg,
body[data-page="games"] .page-bg-blur {
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(120, 210, 255, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 80%, rgba(255, 79, 154, 0.18), transparent 50%),
    linear-gradient(165deg, #1e6fd6 0%, #1450a8 45%, #0d3d82 100%);
}

body[data-page="games"] .page-bg-blur::before {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.55) 0 1.5px, transparent 2px),
    radial-gradient(circle at 28% 42%, rgba(255, 255, 255, 0.4) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 22%, rgba(255, 255, 255, 0.5) 0 1.5px, transparent 2px),
    radial-gradient(circle at 88% 58%, rgba(255, 255, 255, 0.35) 0 1px, transparent 2px),
    radial-gradient(circle at 48% 72%, rgba(255, 255, 255, 0.45) 0 1.5px, transparent 2px),
    radial-gradient(circle at 18% 78%, rgba(255, 255, 255, 0.3) 0 1px, transparent 2px),
    radial-gradient(circle at 62% 12%, rgba(255, 255, 255, 0.4) 0 1px, transparent 2px);
  opacity: 0.9;
}

body[data-page="games"] .page-bg-blur::after {
  background: radial-gradient(ellipse 70% 40% at 50% 100%, rgba(10, 40, 90, 0.35), transparent 70%);
}

body[data-page="games"] .blob-peach {
  display: none;
}

body[data-page="games"] .top-nav {
  background: rgba(12, 48, 110, 0.72);
  border-bottom: 2px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body[data-page="games"] .top-nav .logo-word,
body[data-page="games"] .top-nav a {
  color: #fff;
}

body[data-page="games"] .bottom-nav {
  background: linear-gradient(180deg, #fff8ec 0%, #ffe7b8 100%);
  border: 3px solid #1a4f9c;
  border-radius: 22px;
  box-shadow: 0 8px 0 rgba(10, 40, 90, 0.35), 0 14px 28px rgba(10, 40, 90, 0.25);
  color: var(--arcade-ink);
}

body[data-page="games"] .app-main.game-arcade {
  position: relative;
  z-index: 1;
  padding-bottom: 28px;
}

.game-arcade-stars {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 10% 20%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1px 1px at 30% 60%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(2px 2px at 70% 30%, rgba(255, 255, 255, 0.65), transparent),
    radial-gradient(1px 1px at 85% 75%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 55% 15%, rgba(255, 255, 255, 0.6), transparent);
  animation: game-star-twinkle 3.2s ease-in-out infinite alternate;
}

@keyframes game-star-twinkle {
  from {
    opacity: 0.55;
  }
  to {
    opacity: 1;
  }
}

body[data-page="games"] .game-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  padding: 5px;
  border-radius: 999px;
  background: rgba(8, 40, 100, 0.45);
  border: 3px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 6px 0 rgba(8, 30, 80, 0.35), inset 0 2px 0 rgba(255, 255, 255, 0.15);
  overflow: visible;
}

body[data-page="games"] .game-seg-btn {
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  box-shadow: none;
  font-family: Fredoka, Inter, system-ui, sans-serif;
  font-weight: 650;
  min-height: 58px;
  padding: 8px 12px;
}

body[data-page="games"] .game-seg-btn + .game-seg-btn {
  border: 0;
}

body[data-page="games"] .game-seg-btn.active {
  background: linear-gradient(180deg, #ffe27a 0%, #ffb020 100%);
  color: #5a2e00;
  box-shadow:
    0 5px 0 #c47a00,
    inset 0 2px 0 rgba(255, 255, 255, 0.55),
    inset 0 -2px 0 rgba(160, 80, 0, 0.2);
  transform: translateY(-1px);
}

body[data-page="games"] .game-seg-label {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body[data-page="games"] .game-seg-ends {
  color: inherit;
  opacity: 0.85;
  font-weight: 600;
}

body[data-page="games"] .game-seg-btn.active .game-seg-ends {
  color: rgba(90, 46, 0, 0.8);
}

body[data-page="games"] .game-arcade-panel,
body[data-page="games"] .game-packs-wrap.game-arcade-panel {
  background: linear-gradient(180deg, #7cc8ff 0%, #3d9aef 100%);
  border: 5px solid #ffd54a;
  border-radius: 26px;
  box-shadow:
    0 8px 0 rgba(10, 50, 120, 0.35),
    inset 0 3px 0 rgba(255, 255, 255, 0.45),
    inset 0 -3px 0 rgba(20, 80, 160, 0.2);
  color: #fff;
  padding: 14px 14px 16px;
}

body[data-page="games"] .game-packs-head {
  color: #fff;
  font-family: Fredoka, Inter, system-ui, sans-serif;
  font-size: 15px;
  text-shadow: 0 2px 0 rgba(10, 50, 120, 0.25);
}

body[data-page="games"] .game-packs-note {
  color: rgba(255, 255, 255, 0.85);
}

body[data-page="games"] .game-pack,
body[data-page="games"] .game-packs-wrap .game-pack,
body[data-page="games"] .game-buy-packs .game-pack {
  border: 3px solid #1a5aaa;
  border-radius: 999px;
  background: linear-gradient(180deg, #b6f05a 0%, #6fc918 55%, #4ea30a 100%);
  color: #fff;
  box-shadow:
    0 5px 0 #2f6d08,
    inset 0 2px 0 rgba(255, 255, 255, 0.45);
  font-family: Fredoka, Inter, system-ui, sans-serif;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

body[data-page="games"] .game-pack:hover,
body[data-page="games"] .game-packs-wrap .game-pack:hover {
  transform: translateY(-2px);
}

body[data-page="games"] .game-pack:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #2f6d08, inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

body[data-page="games"] .game-pack b,
body[data-page="games"] .game-packs-wrap .game-pack b,
body[data-page="games"] .game-pack span,
body[data-page="games"] .game-packs-wrap .game-pack span {
  color: #fff;
  text-shadow: 0 1px 0 rgba(40, 90, 10, 0.35);
}

body[data-page="games"] .game-card,
body[data-page="games"] .game-card.game-arcade-card {
  background: linear-gradient(165deg, #6ec4ff 0%, #2f8fe8 55%, #1f74c8 100%);
  border: 4px solid #fff;
  border-radius: 24px;
  color: #fff;
  box-shadow:
    0 8px 0 rgba(10, 50, 120, 0.35),
    inset 0 3px 0 rgba(255, 255, 255, 0.4);
  padding: 16px;
  gap: 14px;
  transition: transform 0.15s ease;
}

body[data-page="games"] .game-card:hover {
  transform: translateY(-2px);
}

body[data-page="games"] .game-card-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(160deg, #ffe27a, #ffb020);
  border: 3px solid #fff;
  color: #5a2e00;
  box-shadow: 0 4px 0 rgba(10, 50, 120, 0.25);
}

body[data-page="games"] .game-card-title {
  font-family: Fredoka, Inter, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 0 rgba(10, 50, 120, 0.3);
}

body[data-page="games"] .game-card-blurb {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 500;
}

body[data-page="games"] .game-card-go {
  font-family: Fredoka, Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 999px;
  border: 3px solid #1a5aaa;
  background: linear-gradient(180deg, #b6f05a 0%, #6fc918 60%, #4ea30a 100%);
  color: #fff;
  text-shadow: 0 1px 0 rgba(40, 90, 10, 0.35);
  box-shadow:
    0 4px 0 #2f6d08,
    inset 0 2px 0 rgba(255, 255, 255, 0.45);
}

body[data-page="games"] .game-card-go.is-continue {
  background: linear-gradient(180deg, #fff6e0 0%, #ffe7b0 100%);
  border-color: #7ed321;
  color: #4ea30a;
  text-shadow: none;
  box-shadow:
    0 4px 0 #3f8a10,
    inset 0 2px 0 rgba(255, 255, 255, 0.7);
}

body[data-page="games"] .game-chip {
  font-family: Fredoka, Inter, system-ui, sans-serif;
  font-weight: 700;
  font-size: 13px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.55);
  background: rgba(8, 40, 100, 0.35);
  color: #fff;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.12);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease;
}

body[data-page="games"] .game-chip.is-active {
  background: linear-gradient(180deg, #fff6e0 0%, #ffe27a 100%);
  border-color: #fff;
  color: #5a2e00;
  box-shadow:
    0 4px 0 rgba(10, 50, 120, 0.3),
    inset 0 2px 0 rgba(255, 255, 255, 0.7);
  transform: translateY(-1px);
}

body[data-page="games"] .lb-marquee.game-arcade-ribbon {
  margin: 4px 0 12px;
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff6eb4 0%, #e91e63 100%);
  border: 3px solid #fff;
  box-shadow: 0 5px 0 rgba(120, 20, 70, 0.35);
  mask-image: none;
  -webkit-mask-image: none;
}

body[data-page="games"] .lb-marquee-line,
body[data-page="games"] .lb-marquee-char {
  color: #fff;
  font-family: Fredoka, Inter, system-ui, sans-serif;
  font-weight: 650;
  text-shadow: 0 1px 0 rgba(90, 10, 50, 0.35);
}

body[data-page="games"] .game-arcade-board {
  padding: 16px 12px 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, #7cc8ff 0%, #3d9aef 100%);
  border: 6px solid #ffd54a;
  box-shadow:
    0 10px 0 rgba(10, 50, 120, 0.3),
    inset 0 3px 0 rgba(255, 255, 255, 0.4);
}

body[data-page="games"] .lb-spot .lb-entry {
  background: rgba(255, 255, 255, 0.92);
  border: 3px solid #fff;
  border-radius: 18px;
  box-shadow: 0 5px 0 rgba(10, 50, 120, 0.25);
  color: var(--arcade-ink);
}

body[data-page="games"] .lb-spot .lb-name,
body[data-page="games"] .lb-spot .lb-score,
body[data-page="games"] .lb-spot .lb-prize {
  color: var(--arcade-ink);
}

body[data-page="games"] .lb-spot-1 .lb-entry {
  background: linear-gradient(180deg, #fff6e0, #ffe27a);
  border-color: #fff;
}

body[data-page="games"] .lb-list-wrap.game-arcade-panel {
  background: rgba(255, 255, 255, 0.95);
  border: 3px solid #fff;
  border-radius: 20px;
  box-shadow: 0 6px 0 rgba(10, 50, 120, 0.22);
  color: var(--arcade-ink);
  margin-top: 12px;
}

body[data-page="games"] .lb-list-head {
  color: rgba(11, 39, 64, 0.55);
  border-bottom: 2px solid rgba(11, 39, 64, 0.08);
}

body[data-page="games"] #lb-list .lb-entry {
  color: var(--arcade-ink);
  border-bottom-color: rgba(11, 39, 64, 0.08);
}

body[data-page="games"] #lb-list .lb-entry.is-you {
  background: rgba(255, 213, 74, 0.35);
}

body[data-page="games"] #lb-list .lb-name,
body[data-page="games"] #lb-list .lb-score,
body[data-page="games"] #lb-list .lb-prize,
body[data-page="games"] #lb-list .lb-rank {
  color: var(--arcade-ink);
}

.game-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 52px;
  padding: 10px 22px;
  border-radius: 999px;
  font-family: Fredoka, Inter, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.game-btn-play {
  border: 3px solid #1a5aaa;
  background: linear-gradient(180deg, #b6f05a 0%, #6fc918 55%, #4ea30a 100%);
  color: #fff;
  text-shadow: 0 2px 0 rgba(40, 90, 10, 0.35);
  box-shadow:
    0 6px 0 #2f6d08,
    inset 0 3px 0 rgba(255, 255, 255, 0.45),
    inset 0 -2px 0 rgba(40, 90, 10, 0.15);
}

.game-btn-cream {
  border: 4px solid #7ed321;
  background: linear-gradient(180deg, #fffaf0 0%, #ffe7b0 100%);
  color: #4ea30a;
  box-shadow:
    0 5px 0 #3f8a10,
    inset 0 2px 0 rgba(255, 255, 255, 0.8);
}

.game-btn:hover {
  transform: translateY(-2px);
}

.game-btn:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 rgba(20, 60, 10, 0.4), inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.game-btn:focus-visible {
  outline: 3px solid #ffd54a;
  outline-offset: 3px;
}

.game-btn.hidden,
.game-btn[hidden] {
  display: none;
}

.game-arcade-modal.game-over-panel,
body[data-page="games"] .game-over-panel.game-arcade-modal {
  width: min(100%, 300px);
  padding: 28px 18px 18px;
  border-radius: 28px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 30%, rgba(255, 255, 255, 0.35), transparent 55%),
    linear-gradient(180deg, #7cc8ff 0%, #2f8fe8 100%);
  border: 6px solid #ffd54a;
  box-shadow:
    0 12px 0 rgba(10, 50, 120, 0.35),
    inset 0 4px 0 rgba(255, 255, 255, 0.45);
  gap: 8px;
}

.game-arcade-stars-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin: -8px 0 4px;
}

.game-arcade-star {
  width: 28px;
  height: 28px;
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  background: #9bb4d0;
  filter: drop-shadow(0 2px 0 rgba(10, 50, 120, 0.25));
}

.game-arcade-star.is-lit {
  background: linear-gradient(180deg, #ffe27a, #ffb020);
}

.game-arcade-star.is-big {
  width: 36px;
  height: 36px;
}

body[data-page="games"] .game-over-title {
  font-family: Fredoka, Inter, system-ui, sans-serif;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 3px 0 rgba(10, 50, 120, 0.35);
}

body[data-page="games"] .game-over-score {
  display: inline-block;
  margin: 0 auto 8px;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(8, 40, 100, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: #ffd54a;
  font-family: Fredoka, Inter, system-ui, sans-serif;
  font-size: 18px;
  font-weight: 700;
}

body[data-page="games"] .game-over-copy {
  color: rgba(255, 255, 255, 0.9);
}

body[data-page="games"] .game-over-actions {
  margin-top: 6px;
  gap: 10px;
}

body[data-page="games"] .game-over-actions .game-btn,
body[data-page="games"] #game-play-again {
  width: 100%;
  flex-direction: column;
  gap: 1px;
  min-height: 52px;
  line-height: 1.15;
}

body[data-page="games"] .game-again-lives {
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 600;
}

body[data-page="games"] .game-over {
  background: rgba(8, 30, 80, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body[data-page="games"] .game-list,
body[data-page="games"] #game-list {
  gap: 12px;
}

body[data-page="games"].is-game-play {
  background: #0d2f6b;
}

body[data-page="games"].is-game-play .page-bg-blur {
  background: linear-gradient(165deg, #0d2f6b 0%, #0a2454 100%);
}

body[data-page="games"].is-game-play .page-bg-blur::before,
body[data-page="games"].is-game-play .page-bg-blur::after {
  opacity: 0.35;
}

body[data-page="games"] .empty-box {
  background: rgba(255, 255, 255, 0.12);
  border: 3px dashed rgba(255, 255, 255, 0.35);
  border-radius: 20px;
  color: #fff;
  font-family: Fredoka, Inter, system-ui, sans-serif;
  font-weight: 600;
}

body[data-page="games"] .lb-loading .cj-loader-mark {
  background: linear-gradient(160deg, #ffe27a, #ffb020);
  color: #5a2e00;
}

@media (prefers-reduced-motion: reduce) {
  .game-arcade-stars,
  body[data-page="games"] .game-card,
  body[data-page="games"] .game-pack,
  .game-btn {
    animation: none;
    transition: none;
  }
}

html[data-theme="dark"] body[data-page="games"],
html[data-theme="dark"] body[data-page="games"] .page-bg-blur {
  background: #0a2a5c;
}

html[data-theme="dark"] body[data-page="games"] .bottom-nav {
  background: linear-gradient(180deg, #1a3a6e 0%, #0f2a52 100%);
  border-color: #ffd54a;
  color: #fff;
}
