* {
  margin: 0;
  padding: 0;
  list-style: none;
  box-sizing: border-box;
  text-decoration: none;
}

@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/InterTight-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/InterTight-Medium.ttf") format("truetype");
  font-weight: 500;
}

:root {
  --bg: #0a0a0b;
  --bg-elevated: #121214;
  --surface: #1a1a1f;
  --surface-border: rgb(255 255 255 / 0.1);
  --text: #e8e8ec;
  --text-muted: #9b9ba8;
  --accent: #4928fd;
  --accent-glow: rgb(73 40 253 / 0.22);
  --border-shell: rgb(255 255 255 / 0.08);
  /* Column width: shell matches inner .main-div */
  --main-column: 400px;
  --main-padding-inline: 16px;
}


a {
  color: var(--text-muted);
}

body {
  background-color: var(--bg);
  font-family: "Inter Tight", sans-serif;
  color: var(--text);
}

::-webkit-scrollbar {
  display: none;
}

main {
  min-height: 100dvh;
  width: 100%;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.main-section {
  width: 100%;
  max-width: min(100%, var(--main-column));
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: relative;
  border-left: 1px solid var(--border-shell);
  border-right: 1px solid var(--border-shell);
  overflow: hidden;
}

.main-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 9999px;
  filter: blur(56px);
  opacity: 0.85;
  background: radial-gradient(
      ellipse 80% 50% at 50% -10%,
      var(--accent-glow),
      transparent 70%
    ),
    radial-gradient(
      ellipse 60% 40% at 100% 50%,
      rgb(0 160 255 / 0.12),
      transparent 55%
    ),
    radial-gradient(
      ellipse 50% 35% at 0% 80%,
      rgb(255 128 0 / 0.06),
      transparent 50%
    );
}

/* Viewports under 500px: full-width shell, no side rails (still uses --main-column from 500px up) */
@media (max-width: 499px) {
  .main-section {
    max-width: 100%;
    border-left: none;
    border-right: none;
  }
}

.main-div {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-inline: auto;
  padding-inline: var(--main-padding-inline);
  box-sizing: border-box;
  text-align: center;
}

/* Bleed past .main-div horizontal padding so ads span full column (edge-to-edge in shell) */
.ad-container {
  width: calc(100% + 2 * var(--main-padding-inline));
  max-width: none;
  margin-inline: calc(-1 * var(--main-padding-inline));
  min-width: 0;
  border-bottom: 1px solid var(--border-shell);
  text-align: center;
  margin-bottom: 16px;
  box-sizing: border-box;
}

.ad-name {
  display: block;
  font-size: 10px;
  color: rgb(255 255 255 / 0.35);
  letter-spacing: 3px;
  margin-bottom: 2px;
}

.choose_game {
  background-color: var(--surface);
  margin-bottom: 16px;
  padding: 16px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 15px;
  border: 1px solid var(--surface-border);
}

.redeem-coin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

#coin {
  font-weight: 600;
  color: var(--text);
}

.earn-coin-btn {
  display: flex;
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  font-size: 14px;
  text-transform: uppercase;
  position: relative;
}

.earn-coin-btn button {
  cursor: pointer;
  background: var(--accent);
  color: #fff;
  border: none;
  height: 46px;
  font-family: "Inter Tight", sans-serif;
  width: 100%;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.earn-coin-btn button::before,
.earn-coin-btn button::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  height: 100%;
  width: 10%;
  background: linear-gradient(
    120deg,
    transparent,
    rgb(255 255 255 / 0.14),
    transparent
  );
  animation: shimmer 2s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

.earn-coin-btn button img {
  width: 24px;
  height: 24px;
}

#earnCoinBtn img,
#earnCoinBtn span {
  transition: transform 0.5s ease;
}

#earnCoinBtn span {
  display: inline-block;
}

.earn-coin-btn:hover #earnCoinBtn img {
  transform: translateX(140px);
}

.earn-coin-btn:hover #earnCoinBtn span {
  transform: translateX(-35px);
}

.ad-tag-earn {
  position: absolute;
  top: 0;
  right: -10px;
  color: var(--text-muted);
  font-size: 10px;
  text-transform: capitalize;
}

@keyframes shimmer {
  0% {
    left: -150%;
  }
  100% {
    left: 150%;
  }
}

.toast-message {
  display: none;
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  max-width: 90vw;
  padding: 12px 14px;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--surface-border);
  border-radius: 10px;
  box-shadow: 0 8px 32px rgb(0 0 0 / 0.45);
  font-size: 15px;
  text-align: center;
  text-wrap: wrap;
}

.toast-message.show {
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toast-fade 3s forwards;
}

@keyframes toast-fade {
  0%,
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* --- Onboarding (index) --- */
body.page-onboarding a {
  color: inherit;
}

body.page-onboarding .main-section::before {
  display: none;
}

body.page-onboarding main {
  align-items: flex-start;
}

body.page-onboarding .main-section.onboarding-main {
  border-color: var(--border-shell);
  overflow-y: auto;
  align-items: stretch;
}

body.page-onboarding .onboarding-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  text-align: left;
}

body.page-onboarding .onboarding-ad {
  border-bottom-color: var(--border-shell);
  margin-bottom: 0;
  padding-bottom: 12px;
  flex-shrink: 0;
}

body.page-onboarding .onboarding-scroll {
  padding: 0px 0 24px;
  flex: 1;
}

body.page-onboarding .onboarding-hero-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 28px;
}

body.page-onboarding .onboarding-hero-card {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 14px;
  padding: 12px;
  text-align: center;
  background: var(--surface);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 18px;
}


body.page-onboarding .onboarding-hero-img {
  position: relative;
  z-index: 2;
  display: block;
  width: min(100%, 150px);
  max-height: min(50vh, 150px);
  height: auto;
  margin: 0 auto 8px;
  object-fit: contain;
}

body.page-onboarding .onboarding-brand {
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

body.page-onboarding .onboarding-brand-roblox {
  display: block;
  font-size: clamp(2rem, 8vw, 2.5rem);
  font-weight: 700;
  color: #fff;
  line-height: 1.05;
}

body.page-onboarding .onboarding-brand-calc {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.45em;
  color: #fff;
  text-transform: uppercase;
}

@keyframes onboarding-cta-glow {
  0%,
  100% {
    box-shadow: 0 4px 0 rgb(0 0 0 / 0.35), 0 0 12px 0 rgb(255 145 64 / 0.38);
  }
  50% {
    box-shadow: 0 4px 0 rgb(0 0 0 / 0.35), 0 0 28px 6px rgb(255 175 100 / 0.58);
  }
}

@keyframes onboarding-cta-shimmer {
  0%,
  44% {
    transform: skewX(-16deg) translateX(-120%);
  }
  62% {
    transform: skewX(-16deg) translateX(320%);
  }
  100% {
    transform: skewX(-16deg) translateX(320%);
  }
}

body.page-onboarding .onboarding-cta {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  padding: 14px 20px;
  overflow: hidden;
  background: #ff8000;
  color: #fff !important;
  font-weight: 700;
  font-size: 20px;
  border-radius: 14px;
  text-align: center;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 0 rgb(0 0 0 / 0.35), 0 0 12px 0 rgb(255 145 64 / 0.38);
  transition: filter 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  animation: onboarding-cta-glow 2.4s ease-in-out infinite;
}

body.page-onboarding .onboarding-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: -40%;
  width: 45%;
  height: 100%;
  background: linear-gradient(
    100deg,
    transparent,
    rgb(255 255 255 / 0.22),
    transparent
  );
  transform: skewX(-16deg) translateX(-120%);
  animation: onboarding-cta-shimmer 4.2s ease-in-out infinite;
  pointer-events: none;
}

body.page-onboarding .onboarding-cta:hover {
  filter: brightness(1.06);
}

body.page-onboarding .onboarding-cta:active {
  animation: none;
  transform: translateY(2px) scale(0.98);
  box-shadow: 0 2px 0 rgb(0 0 0 / 0.35);
}

body.page-onboarding .onboarding-cta:active::before {
  animation: none;
  opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
  body.page-onboarding .onboarding-cta {
    animation: none;
    box-shadow: 0 4px 0 rgb(0 0 0 / 0.35), 0 0 16px 2px rgb(255 145 64 / 0.35);
  }

  body.page-onboarding .onboarding-cta::before {
    animation: none;
    opacity: 0;
  }

  body.page-onboarding .onboarding-cta:active {
    transform: scale(0.98);
    box-shadow: 0 2px 0 rgb(0 0 0 / 0.35);
  }
}

body.page-onboarding .onboarding-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f0f0f0;
  line-height: 1.35;
  margin-bottom: 14px;
}

body.page-onboarding .onboarding-lead,
body.page-onboarding .onboarding-body {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #b4b4bc;
  margin-bottom: 20px;
}

body.page-onboarding .onboarding-subheading {
  font-size: 1rem;
  font-weight: 700;
  color: #f0f0f0;
  margin: 24px 0 12px;
}

body.page-onboarding .onboarding-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 8px;
  color: #b4b4bc;
  font-size: 0.9rem;
  line-height: 1.65;
}

body.page-onboarding .onboarding-list li {
  margin-bottom: 6px;
}

body.page-onboarding .onboarding-link-wrap {
  margin-bottom: 16px;
  word-break: break-all;
}

body.page-onboarding .onboarding-guidelines-link {
  color: #b794f6;
  text-decoration: underline;
  font-size: 0.85rem;
  line-height: 1.5;
}

body.page-onboarding .onboarding-guidelines-link:hover {
  color: #d6bcfa;
}

body.page-onboarding .onboarding-thanks {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e8e8e8;
  margin-top: 8px;
}

body.page-onboarding .onboarding-app-panel {
  padding: 0 0 28px;
  scroll-margin-top: 16px;
}

body.page-onboarding .choose_game {
  background-color: var(--surface);
  border-color: var(--surface-border);
}

/* --- Home page layout --- */
body.page-home .home-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding-bottom: 24px;
}

body.page-home .home-domain-wrap {
  width: 100%;
  padding: 20px 0 8px;
  text-align: center;
}

body.page-home .home-domain {
  font-size: clamp(1rem, 4.2vw, 1.25rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--text);
  letter-spacing: 0.02em;
}

body.page-home .home-coin-card {
  margin-top: 8px;
  margin-bottom: 20px;
}

body.page-home .home-coin-card.choose_game {
  background: #141416;
  border: 1px solid #2c2c2e;
  border-radius: 18px;
  padding: 18px 16px 16px;
  box-shadow: 0 8px 28px rgb(0 0 0 / 0.35);
}

body.page-home .home-coin-card #coin {
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

body.page-home .home-coin-card .redeem-coin {
  margin-bottom: 4px;
}

body.page-logic-quiz .logic-quiz-congrats-slot {
  width: 100%;
  max-width: 320px;
  margin-inline: auto;
}

body.page-logic-quiz #logicQuizResultView[hidden] {
  display: none !important;
}

/* Promo cards: raw image only — no frame, bg, or shadow */
body.page-home .home-banner-wrap {
  width: 100%;
  margin-bottom: 8px;
  border: none;
  background: none;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

body.page-home .home-banner-link {
  width: 100%;
}

body.page-home .home-banner-img {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  object-fit: contain;
  border: none;
  border-radius: 0;
  box-shadow: none;
}


/* Feature tiles: image-only, no card chrome */
body.page-home .home-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin-top: 20px;
}

body.page-home .home-feature-card {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  border-radius: 0;
  box-shadow: none;
  line-height: 0;
  text-decoration: none;
}

body.page-home .home-feature-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

body.page-home .home-feature-card img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

/* Daily Real RBX — reward modal (home) */
body.page-home .daily-rbx-reward-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
}

body.page-home .daily-rbx-reward-modal[hidden] {
  display: none !important;
}

body.page-home .daily-rbx-reward-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.page-home .daily-rbx-reward-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 300px;
  padding: 28px 22px 26px;
  border-radius: 22px;
  text-align: center;
  background: #252830;
  border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.55);
}

body.page-home .daily-rbx-reward-modal__badge {
  display: block;
  width: 120px;
  height: auto;
  max-width: 55%;
  margin: 0 auto 18px;
  object-fit: contain;
  filter: drop-shadow(0 8px 20px rgb(0 0 0 / 0.4));
}

body.page-home .daily-rbx-reward-modal__title {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.02em;
}

body.page-home .daily-rbx-reward-modal__subtitle {
  margin: 0 0 24px;
  font-size: 1rem;
  font-weight: 500;
  color: #e8e8ec;
}

body.page-home .daily-rbx-reward-modal__okay {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, #ffb020 0%, #ff8c00 45%, #e67300 100%);
  box-shadow: 0 8px 24px rgba(255, 140, 0, 0.42);
}

body.page-home .daily-rbx-reward-modal__okay:hover {
  filter: brightness(1.06);
}

body.page-home .daily-rbx-reward-modal__okay:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* --- Daily R$ Converter sub-page --- */
body.page-sub .sub-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-bottom: 32px;
}

body.page-sub .sub-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 0 14px;
}

body.page-sub .sub-back {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: block;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  box-shadow: none;
  line-height: 0;
}

body.page-sub .sub-back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

body.page-sub .sub-back img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

body.page-sub .sub-title {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: clamp(0.65rem, 3.2vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text);
  line-height: 1.25;
}

body.page-sub .sub-topbar-spacer {
  width: 44px;
  flex-shrink: 0;
}

body.page-sub .sub-before-ad,
body.page-sub .sub-after-ad {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

body.page-sub .sub-before-ad {
  margin-top: 4px;
}

body.page-sub .sub-mid-ad {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border-shell);
}

body.page-sub .sub-after-ad {
  margin-top: 16px;
}

body.page-sub .sub-card-link {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  line-height: 0;
  text-decoration: none;
}

body.page-sub .sub-card-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.page-sub .sub-card-link img {
  width: 100%;
  height: auto;
  display: block;
  border: none;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

body.page-sub .sub-legal {
  margin-top: 28px;
  text-align: left;
}

body.page-sub .sub-legal .onboarding-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f0f0f0;
  line-height: 1.35;
  margin-bottom: 14px;
}

body.page-sub .sub-legal .onboarding-lead,
body.page-sub .sub-legal .onboarding-body {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #b4b4bc;
  margin-bottom: 20px;
}

body.page-sub .sub-legal .onboarding-subheading {
  font-size: 1rem;
  font-weight: 700;
  color: #f0f0f0;
  margin: 24px 0 12px;
}

body.page-sub .sub-legal .onboarding-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 8px;
  color: #b4b4bc;
  font-size: 0.9rem;
  line-height: 1.65;
}

body.page-sub .sub-legal .onboarding-list li {
  margin-bottom: 6px;
}

body.page-sub .sub-legal .onboarding-link-wrap {
  margin-bottom: 16px;
  word-break: break-all;
}

body.page-sub .sub-legal .onboarding-guidelines-link {
  color: #b794f6;
  text-decoration: underline;
  font-size: 0.85rem;
  line-height: 1.5;
}

body.page-sub .sub-legal .onboarding-guidelines-link:hover {
  color: #d6bcfa;
}

body.page-sub .sub-legal .onboarding-thanks {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e8e8e8;
  margin-top: 8px;
}

body.page-sub .sub-title-long {
  font-size: clamp(0.52rem, 2.6vw, 0.72rem);
  letter-spacing: 0.06em;
}

/* Daily Free Robx Calc — raw row images only (no card chrome) */
body.page-free-calc .calc-nav-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 8px;
}

body.page-free-calc .calc-nav-list .sub-card-link {
  width: 100%;
}

body.page-free-calc .sub-mid-ad + .calc-nav-list {
  margin-top: 16px;
}

/* BC / TBC / OBC membership counter pages */
body.page-membership-counter .membership-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding-bottom: 28px;
}


body.page-membership-counter .membership-counter-title {
  font-size: clamp(0.55rem, 2.8vw, 0.78rem);
  letter-spacing: 0.06em;
}

body.page-membership-counter .membership-calc-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  margin-top: 10px;
}

body.page-membership-counter .membership-label-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body.page-membership-counter .membership-input {
  width: 100%;
  box-sizing: border-box;
  padding: 16px 18px;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text);
  background: #1c1c1e;
  border: 1px solid #2c2c2e;
  border-radius: 999px;
  outline: none;
}

body.page-membership-counter .membership-input::placeholder {
  color: #8e8e93;
}

body.page-membership-counter .membership-input:focus {
  border-color: #3a3a3e;
}

body.page-membership-counter .membership-calc-btn {
  width: 100%;
  padding: 16px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  font-family: inherit;
  color: #fff;
  text-transform: uppercase;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: linear-gradient(180deg, #ffb020 0%, #ff8c00 45%, #e67300 100%);
  box-shadow: 0 4px 20px rgba(255, 140, 0, 0.42);
}

body.page-membership-counter .membership-calc-btn:hover {
  filter: brightness(1.05);
}

body.page-membership-counter .membership-calc-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

body.page-membership-counter .membership-form-error {
  margin: 0;
  padding: 0 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffb4a8;
  text-align: center;
  line-height: 1.4;
}

body.page-membership-counter .membership-calc-output {
  text-align: center;
  padding: 16px 12px 18px;
  margin: 0 0 4px;
  border-bottom: 1px solid #2c2c2e;
}

body.page-membership-counter .membership-calc-output--error {
  border-bottom-color: #3d2a2a;
}

body.page-membership-counter .membership-calc-output--error
  .membership-calc-output-value {
  font-size: 0.95rem;
  color: #ffb4a8;
}

body.page-membership-counter .membership-calc-output-label {
  margin: 0 0 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8e8e93;
}

body.page-membership-counter .membership-calc-output-value {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
}

body.page-membership-counter .membership-calc-output-meta {
  margin: 0 0 14px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #c8c8c8;
}

body.page-membership-counter .membership-calc-output-breakdown {
  text-align: left;
  padding-top: 4px;
  border-top: 1px solid #2c2c2e;
}

body.page-membership-counter .membership-calc-output-line {
  margin: 10px 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: #b4b4bc;
  line-height: 1.45;
}

body.page-membership-counter .membership-calc-output-line:first-child {
  margin-top: 12px;
}

body.page-membership-counter .membership-info-card {
  margin-top: 22px;
  padding: 20px 18px 18px;
  background: #1c1c1e;
  border: 1px solid #2c2c2e;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
}

body.page-membership-counter .membership-pill {
  align-self: center;
  max-width: 100%;
  padding: 10px 16px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  text-align: center;
  background: #0a0a0b;
  border-radius: 999px;
  line-height: 1.35;
}

body.page-membership-counter .membership-rates {
  text-align: center;
}

body.page-membership-counter .membership-rate-line {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

body.page-membership-counter .membership-rate-line:last-child {
  margin-bottom: 0;
}

body.page-membership-counter .membership-note {
  padding: 14px 14px 16px;
  background: #141416;
  border: 1px solid #0a0a0b;
  border-radius: 16px;
  text-align: center;
}

body.page-membership-counter .membership-note-title {
  margin: 0 0 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.4;
}

body.page-membership-counter .membership-note-body {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 400;
  color: #e8e8e8;
  line-height: 1.5;
}

/* --- Spin Wheel --- */
body.page-spin-wheel {
  background: #000;
}

body.page-spin-wheel .spin-wheel-stack {
  padding-bottom: 32px;
}

body.page-spin-wheel .spin-wheel-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 4px 0 18px;
}

body.page-spin-wheel .spin-wheel-topbar__title {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: clamp(0.65rem, 3.2vw, 0.85rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #fff;
  line-height: 1.25;
}

body.page-spin-wheel .spin-wheel-balance {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.35);
}

body.page-spin-wheel .spin-wheel-balance__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: linear-gradient(180deg, #ffae42 0%, #e67300 100%);
}

body.page-spin-wheel .spin-wheel-balance__icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

body.page-spin-wheel .spin-wheel-balance__value {
  display: flex;
  align-items: center;
  padding: 0 14px 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: #2a2a32;
}

body.page-spin-wheel .spin-wheel-stage {
  position: relative;
  width: 100%;
  max-width: min(100%, 360px);
  margin: 0 auto 22px;
  padding-top: 18px;
}

body.page-spin-wheel .spin-wheel-pointer {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  width: 0;
  height: 0;
  margin-left: -16px;
  border-left: 16px solid transparent;
  border-right: 16px solid transparent;
  border-top: 26px solid #ff8c00;
  filter: drop-shadow(0 3px 6px rgb(0 0 0 / 0.55));
}

body.page-spin-wheel .spin-wheel-dish {
  border-radius: 50%;
  padding: 10px;
  background: linear-gradient(145deg, #fff3a8 0%, #ffb020 25%, #ff7a18 55%, #c2410c 100%);
  box-shadow:
    0 0 0 2px rgb(255 200 80 / 0.35),
    0 16px 48px rgb(0 0 0 / 0.5);
  transform-origin: 50% 50%;
  will-change: transform;
}

body.page-spin-wheel .spin-wheel-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 50%;
}

body.page-spin-wheel .spin-wheel-spin-btn {
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  display: block;
  padding: 17px 24px;
  border: none;
  border-radius: 18px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, #ffc94d 0%, #ff9500 40%, #e67300 100%);
  box-shadow: 0 8px 28px rgba(255, 140, 0, 0.45);
}

body.page-spin-wheel .spin-wheel-spin-btn:hover:not(:disabled) {
  filter: brightness(1.05);
}

body.page-spin-wheel .spin-wheel-spin-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

body.page-spin-wheel .spin-wheel-spin-btn:disabled {
  opacity: 0.85;
  cursor: wait;
}


body.page-spin-wheel .spin-wheel-win-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
}

body.page-spin-wheel .spin-wheel-win-modal[hidden] {
  display: none !important;
}

body.page-spin-wheel .spin-wheel-win-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.page-spin-wheel .spin-wheel-win-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 300px;
  padding: 28px 22px 26px;
  border-radius: 22px;
  text-align: center;
  background: #252830;
  border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.55);
}

body.page-spin-wheel .spin-wheel-win-modal__title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

body.page-spin-wheel .spin-wheel-win-modal__body {
  margin: 0 0 22px;
  font-size: 1rem;
  font-weight: 500;
  color: #e8e8ec;
  line-height: 1.45;
}

body.page-spin-wheel .spin-wheel-win-modal__done {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, #ffb020 0%, #ff8c00 45%, #e67300 100%);
  box-shadow: 0 8px 24px rgba(255, 140, 0, 0.42);
}

body.page-spin-wheel .spin-wheel-win-modal__done:hover {
  filter: brightness(1.06);
}

body.page-spin-wheel .spin-wheel-win-modal__done:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Index-style copy on spin wheel (below ad) */
body.page-spin-wheel .spin-wheel-onboarding {
  margin-top: 20px;
  text-align: left;
}

body.page-spin-wheel .spin-wheel-onboarding .onboarding-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f0f0f0;
  line-height: 1.35;
  margin-bottom: 14px;
}

body.page-spin-wheel .spin-wheel-onboarding .onboarding-lead,
body.page-spin-wheel .spin-wheel-onboarding .onboarding-body {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #b4b4bc;
  margin-bottom: 20px;
}

body.page-spin-wheel .spin-wheel-onboarding .onboarding-subheading {
  font-size: 1rem;
  font-weight: 700;
  color: #f0f0f0;
  margin: 24px 0 12px;
}

body.page-spin-wheel .spin-wheel-onboarding .onboarding-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 8px;
  color: #b4b4bc;
  font-size: 0.9rem;
  line-height: 1.65;
}

body.page-spin-wheel .spin-wheel-onboarding .onboarding-list li {
  margin-bottom: 6px;
}

body.page-spin-wheel .spin-wheel-onboarding .onboarding-link-wrap {
  margin-bottom: 16px;
  word-break: break-all;
}

body.page-spin-wheel .spin-wheel-onboarding .onboarding-guidelines-link {
  color: #b794f6;
  text-decoration: underline;
  font-size: 0.85rem;
  line-height: 1.5;
}

body.page-spin-wheel .spin-wheel-onboarding .onboarding-guidelines-link:hover {
  color: #d6bcfa;
}

body.page-spin-wheel .spin-wheel-onboarding .onboarding-thanks {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e8e8e8;
  margin-top: 8px;
  margin-bottom: 8px;
}

/* --- Lucky Scratch --- */
body.page-lucky-scratch {
  background: #000;
}

body.page-lucky-scratch .lucky-scratch-stack {
  padding-bottom: 32px;
}

body.page-lucky-scratch .lucky-scratch-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 4px 0 12px;
}

body.page-lucky-scratch .lucky-scratch-topbar__title {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: clamp(0.55rem, 2.9vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1.25;
}

body.page-lucky-scratch .lucky-scratch-balance {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.35);
}

body.page-lucky-scratch .lucky-scratch-balance__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  background: linear-gradient(180deg, #ffae42 0%, #e67300 100%);
}

body.page-lucky-scratch .lucky-scratch-balance__icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

body.page-lucky-scratch .lucky-scratch-balance__value {
  display: flex;
  align-items: center;
  padding: 0 14px 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  background: #2a2a32;
}

body.page-lucky-scratch .lucky-scratch-hint {
  margin: 0 0 12px;
  font-size: 0.82rem;
  color: #9b9ba8;
  text-align: center;
}

body.page-lucky-scratch .lucky-scratch-card {
  position: relative;
  width: 100%;
  max-width: min(100%, 340px);
  margin: 0 auto 22px;
  border-radius: 44px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.45);
  aspect-ratio: 1;
}

body.page-lucky-scratch .lucky-scratch-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  text-align: center;
  background: repeating-linear-gradient(
    -36deg,
    #22c55e 0,
    #22c55e 14px,
    #15803d 14px,
    #15803d 28px
  );
}

body.page-lucky-scratch .lucky-scratch-reveal__label {
  font-size: clamp(1.1rem, 5vw, 1.45rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 8px rgb(0 0 0 / 0.35);
  letter-spacing: 0.04em;
}

body.page-lucky-scratch .lucky-scratch-reveal__prize {
  font-size: clamp(2.5rem, 14vw, 3.75rem);
  font-weight: 900;
  line-height: 1;
  color: #fef08a;
  text-shadow:
    0 0 20px rgb(0 0 0 / 0.5),
    0 3px 0 rgb(0 0 0 / 0.25);
  letter-spacing: 0.02em;
}

body.page-lucky-scratch .lucky-scratch-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}


body.page-lucky-scratch .lucky-scratch-onboarding {
  margin-top: 20px;
  text-align: left;
}

body.page-lucky-scratch .lucky-scratch-onboarding .onboarding-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f0f0f0;
  line-height: 1.35;
  margin-bottom: 14px;
}

body.page-lucky-scratch .lucky-scratch-onboarding .onboarding-lead,
body.page-lucky-scratch .lucky-scratch-onboarding .onboarding-body {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #b4b4bc;
  margin-bottom: 20px;
}

body.page-lucky-scratch .lucky-scratch-onboarding .onboarding-subheading {
  font-size: 1rem;
  font-weight: 700;
  color: #f0f0f0;
  margin: 24px 0 12px;
}

body.page-lucky-scratch .lucky-scratch-onboarding .onboarding-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 8px;
  color: #b4b4bc;
  font-size: 0.9rem;
  line-height: 1.65;
}

body.page-lucky-scratch .lucky-scratch-onboarding .onboarding-list li {
  margin-bottom: 6px;
}

body.page-lucky-scratch .lucky-scratch-onboarding .onboarding-link-wrap {
  margin-bottom: 16px;
  word-break: break-all;
}

body.page-lucky-scratch .lucky-scratch-onboarding .onboarding-guidelines-link {
  color: #b794f6;
  text-decoration: underline;
  font-size: 0.85rem;
  line-height: 1.5;
}

body.page-lucky-scratch .lucky-scratch-onboarding .onboarding-guidelines-link:hover {
  color: #d6bcfa;
}

body.page-lucky-scratch .lucky-scratch-onboarding .onboarding-thanks {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e8e8e8;
  margin-top: 8px;
  margin-bottom: 8px;
}

body.page-lucky-scratch .lucky-scratch-reward-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
}

body.page-lucky-scratch .lucky-scratch-reward-modal[hidden] {
  display: none !important;
}

body.page-lucky-scratch .lucky-scratch-reward-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(49 20 80 / 0.82);
}

body.page-lucky-scratch .lucky-scratch-reward-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 300px;
  padding: 26px 22px 22px;
  border-radius: 20px;
  text-align: center;
  background: #f4f0ff;
  border: 1px solid rgb(255 255 255 / 0.5);
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.35);
}

body.page-lucky-scratch .lucky-scratch-reward-modal__head {
  margin: 0 0 14px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #16a34a;
  line-height: 1.35;
}

body.page-lucky-scratch .lucky-scratch-reward-modal__reward {
  margin: 0 0 20px;
  font-size: 1.65rem;
  font-weight: 800;
  color: #ea580c;
  letter-spacing: 0.02em;
}

body.page-lucky-scratch .lucky-scratch-reward-modal__gotit {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, #a78bfa 0%, #7c3aed 55%, #5b21b6 100%);
  box-shadow: 0 6px 20px rgb(124 58 237 / 0.4);
}

body.page-lucky-scratch .lucky-scratch-reward-modal__gotit:hover {
  filter: brightness(1.05);
}

body.page-lucky-scratch .lucky-scratch-reward-modal__gotit:focus-visible {
  outline: 2px solid #5b21b6;
  outline-offset: 3px;
}

/* --- Redeem to account --- */
body.page-redeem-account {
  background: #000;
}

body.page-redeem-account .redeem-account-stack {
  padding-bottom: 28px;
}

body.page-redeem-account .redeem-account-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 4px 0 20px;
}

body.page-redeem-account .redeem-account-topbar__title {
  flex: 1;
  margin: 0;
  text-align: center;
  font-size: clamp(0.62rem, 3vw, 0.8rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  line-height: 1.25;
}

body.page-redeem-account .redeem-account-balance {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.12);
  box-shadow: 0 4px 16px rgb(0 0 0 / 0.35);
}

body.page-redeem-account .redeem-account-balance__icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 9px;
  background: linear-gradient(180deg, #ffae42 0%, #e67300 100%);
}

body.page-redeem-account .redeem-account-balance__icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

body.page-redeem-account .redeem-account-balance__value {
  display: flex;
  align-items: center;
  padding: 0 11px 0 9px;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  background: #2a2a32;
}

body.page-redeem-account .redeem-account-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap:  20px;
  width: 100%;
  max-width: min(100%, 380px);
  margin: 0 auto;
}

body.page-redeem-account .redeem-account-inline-ad {
  grid-column: 1 / -1;
  margin: 4px 0 8px;
  padding-top: 6px;
  width: 100%;
}

/* Tier = image only on page bg (no card chrome); art lives in PNGs */
body.page-redeem-account .redeem-tier-card {
  display: block;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  cursor: pointer;
  font-family: inherit;
  line-height: 0;
  background: transparent;
  box-shadow: none;
  transition: filter 0.15s ease, transform 0.15s ease;
}

body.page-redeem-account .redeem-tier-card:hover {
  filter: brightness(1.05);
}

body.page-redeem-account .redeem-tier-card:active {
  transform: scale(0.98);
}

body.page-redeem-account .redeem-tier-card:focus-visible {
  outline: 2px solid #ffb020;
  outline-offset: 4px;
  border-radius: 4px;
}

body.page-redeem-account .redeem-tier-card__img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 0;
}

body.page-redeem-account .redeem-account-modal {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
}

body.page-redeem-account .redeem-account-modal[hidden] {
  display: none !important;
}

body.page-redeem-account .redeem-account-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.page-redeem-account .redeem-account-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 300px;
  padding: 28px 22px 24px;
  border-radius: 22px;
  text-align: center;
  background: #2a2d32;
  border: 1px solid rgb(255 255 255 / 0.1);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.55);
}

body.page-redeem-account .redeem-account-modal__title {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

body.page-redeem-account .redeem-account-modal__body {
  margin: 0 0 22px;
  font-size: 1rem;
  font-weight: 500;
  color: #f0f0f4;
  line-height: 1.45;
}

body.page-redeem-account .redeem-account-modal__body--success {
  font-size: 0.98rem;
}

body.page-redeem-account .redeem-account-modal__btn {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(90deg, #ff7a18 0%, #ffb020 50%, #ffc94d 100%);
  box-shadow: 0 8px 24px rgba(255, 120, 30, 0.45);
}

body.page-redeem-account .redeem-account-modal__btn:hover {
  filter: brightness(1.06);
}

body.page-redeem-account .redeem-account-modal__btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* --- Logic Quiz Time --- */
body.page-logic-quiz {
  background: #000;
}

body.page-logic-quiz .main-section::before {
  opacity: 0;
}

body.page-logic-quiz .main-section {
  border-color: rgb(255 255 255 / 0.06);
}

body.page-logic-quiz .logic-quiz-stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  /* Do not use padding shorthand here — it would zero out .main-div horizontal padding */
  padding-top: 4px;
  padding-bottom: 28px;
  min-height: 100dvh;
}


body.page-logic-quiz .logic-quiz-title {
  font-size: clamp(0.55rem, 2.8vw, 0.72rem);
  letter-spacing: 0.06em;
}

body.page-logic-quiz .logic-quiz-card {
  margin-top: 8px;
  padding: 22px var(--main-padding-inline) 24px;
  background: #1c1c1e;
  border: 1px solid #2c2c2e;
  border-radius: 26px;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.45);
}

body.page-logic-quiz .logic-quiz-q-badge {
  display: inline-block;
  padding: 8px 14px;
  margin-bottom: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: #0a0a0b;
  border-radius: 999px;
  border: 1px solid #2c2c2e;
}

body.page-logic-quiz .logic-quiz-question {
  margin: 0 0 20px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.35;
}

body.page-logic-quiz .logic-quiz-options {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body.page-logic-quiz .logic-quiz-option {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 12px 14px;
  border-radius: 999px;
  border: 2px solid #2f2f33;
  background: #252528;
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

body.page-logic-quiz .logic-quiz-option:hover:not(:disabled) {
  border-color: #3d3d42;
}

body.page-logic-quiz .logic-quiz-option:focus-visible {
  outline: 2px solid #ff8c00;
  outline-offset: 2px;
}

body.page-logic-quiz .logic-quiz-option:disabled:not(.logic-quiz-option--selected) {
  opacity: 0.45;
}

body.page-logic-quiz .logic-quiz-option--selected {
  border-color: #ff6b35;
  background: #2e2e32;
  box-shadow:
    0 0 0 1px rgb(255 48 48 / 0.5),
    0 0 20px rgb(255 107 53 / 0.35);
}

body.page-logic-quiz .logic-quiz-badge {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}

body.page-logic-quiz .logic-quiz-badge--a {
  background: linear-gradient(145deg, #3b82f6, #1d4ed8);
}

body.page-logic-quiz .logic-quiz-badge--b {
  background: linear-gradient(145deg, #fb923c, #ea580c);
}

body.page-logic-quiz .logic-quiz-badge--c {
  background: linear-gradient(145deg, #f87171, #dc2626);
}

body.page-logic-quiz .logic-quiz-badge--d {
  background: linear-gradient(145deg, #4ade80, #16a34a);
}

body.page-logic-quiz .logic-quiz-option-text {
  flex: 1;
  line-height: 1.35;
}

body.page-logic-quiz .logic-quiz-result-view {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

body.page-logic-quiz .logic-quiz-result-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 8px var(--main-padding-inline) 32px;
  flex: 1;
}

body.page-logic-quiz .logic-quiz-congrats-img {
  width: min(100%, 320px);
  height: auto;
  display: block;
  margin-top: 8px;
}

body.page-logic-quiz .logic-quiz-result-label {
  margin: 18px 0 6px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
}

body.page-logic-quiz .logic-quiz-score-line {
  margin: 0 0 22px;
  font-size: 0.95rem;
  font-weight: 500;
  color: #e8e8ec;
  line-height: 1.45;
  max-width: 22rem;
}

body.page-logic-quiz .logic-quiz-won-heading {
  margin: 0 0 14px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
}

body.page-logic-quiz .logic-quiz-coin-pill {
  display: flex;
  align-items: center;
  width: 100%;
  max-width: 220px;
  margin: 0 auto 22px;
  border-radius: 999px;
  overflow: hidden;
  background: #1c1c1e;
  border: 1px solid #2c2c2e;
}

body.page-logic-quiz .logic-quiz-coin-icon-wrap {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, #fbbf24, #ea580c);
}

body.page-logic-quiz .logic-quiz-coin-icon {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
}

body.page-logic-quiz .logic-quiz-coin-value {
  flex: 1;
  padding: 0 18px;
  font-size: 1.35rem;
  font-weight: 800;
  color: #fff;
  text-align: center;
}

body.page-logic-quiz .logic-quiz-congrats-body {
  margin: 0 0 28px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #c8c8d0;
  max-width: 22rem;
}

body.page-logic-quiz .logic-quiz-wallet-btn {
  width: 100%;
  max-width: 320px;
  padding: 16px 20px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #ff9a3c 0%, #ff6b35 45%, #e85d04 100%);
  box-shadow: 0 8px 24px rgb(234 88 12 / 0.35);
}

body.page-logic-quiz .logic-quiz-wallet-btn:hover:not(:disabled) {
  filter: brightness(1.05);
}

body.page-logic-quiz .logic-quiz-wallet-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

body.page-logic-quiz .logic-quiz-wallet-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

/* —— Characters gallery —— */
body.page-characters {
  background-color: #000;
}

body.page-sounds .sounds-tile {
  width: 100%;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  text-align: left;
  background: transparent;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

body.page-sounds .sounds-tile:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.page-characters .characters-stack {
  padding-bottom: 28px;
}

body.page-characters .characters-feed {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
  margin-top: 6px;
}

body.page-characters .characters-inline-ad {
  grid-column: 1 / -1;
  margin-top: 6px;
  margin-bottom: 2px;
}

/* Raw card art only — asset includes frame, name, and effects */
body.page-characters .characters-char-card {
  display: block;
  min-height: 0;
  overflow: hidden;
  text-decoration: none;
  line-height: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

body.page-characters .characters-char-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.page-characters .characters-char-card img {
  display: block;
  width: 100%;
  height: auto;
}

/* Character + clothing detail flow (info → preview → download); body.page-item-flow */
body.page-item-flow {
  background-color: #000;
}

body.page-item-flow .char-flow-stack {
  padding-bottom: 32px;
}

body.page-item-flow .char-flow-panel {
  width: 100%;
}

body.page-item-flow .char-flow-hero {
  margin-top: 10px;
  line-height: 0;
}

body.page-item-flow .char-flow-hero img {
  display: block;
  width: 300px;
  height: auto;
  border-radius: 0;
  box-shadow: none;
  margin: 0px auto;
}

@media (max-width: 339px) {
  body.page-item-flow .char-flow-hero img {
    width: 100%;
    max-width: 100%;
  }
}

body.page-item-flow .char-flow-ad-mount {
  margin: 16px 0 18px;
}

body.page-item-flow .char-flow-ad-mount:empty {
  margin: 0;
}

/* Index-style onboarding copy on preview (black page) — below NEXT */
body.page-item-flow #charPanelPreview #charBtnNext,
body.page-item-flow #clothPanelPreview #clothBtnNext {
  margin-bottom: 20px;
}

body.page-item-flow #charPanelPreview .char-preview-onboarding,
body.page-item-flow #clothPanelPreview .char-preview-onboarding {
  margin-top: 0;
  text-align: left;
}

body.page-item-flow #charPanelPreview .char-preview-onboarding .onboarding-heading,
body.page-item-flow #clothPanelPreview .char-preview-onboarding .onboarding-heading {
  font-size: 1.05rem;
  font-weight: 700;
  color: #f0f0f0;
  line-height: 1.35;
  margin-bottom: 14px;
}

body.page-item-flow #charPanelPreview .char-preview-onboarding .onboarding-lead,
body.page-item-flow #charPanelPreview .char-preview-onboarding .onboarding-body,
body.page-item-flow #clothPanelPreview .char-preview-onboarding .onboarding-lead,
body.page-item-flow #clothPanelPreview .char-preview-onboarding .onboarding-body {
  font-size: 0.9rem;
  line-height: 1.55;
  color: #b4b4bc;
  margin-bottom: 20px;
}

body.page-item-flow #charPanelPreview .char-preview-onboarding .onboarding-subheading,
body.page-item-flow #clothPanelPreview .char-preview-onboarding .onboarding-subheading {
  font-size: 1rem;
  font-weight: 700;
  color: #f0f0f0;
  margin: 24px 0 12px;
}

body.page-item-flow #charPanelPreview .char-preview-onboarding .onboarding-list,
body.page-item-flow #clothPanelPreview .char-preview-onboarding .onboarding-list {
  list-style: disc;
  padding-left: 1.25rem;
  margin-bottom: 8px;
  color: #b4b4bc;
  font-size: 0.9rem;
  line-height: 1.65;
}

body.page-item-flow #charPanelPreview .char-preview-onboarding .onboarding-list li,
body.page-item-flow #clothPanelPreview .char-preview-onboarding .onboarding-list li {
  margin-bottom: 6px;
}

body.page-item-flow #charPanelPreview .char-preview-onboarding .onboarding-link-wrap,
body.page-item-flow #clothPanelPreview .char-preview-onboarding .onboarding-link-wrap {
  margin-bottom: 16px;
  word-break: break-all;
}

body.page-item-flow #charPanelPreview .char-preview-onboarding .onboarding-guidelines-link,
body.page-item-flow #clothPanelPreview .char-preview-onboarding .onboarding-guidelines-link {
  color: #b794f6;
  text-decoration: underline;
  font-size: 0.85rem;
  line-height: 1.5;
}

body.page-item-flow #charPanelPreview .char-preview-onboarding .onboarding-guidelines-link:hover,
body.page-item-flow #clothPanelPreview .char-preview-onboarding .onboarding-guidelines-link:hover {
  color: #d6bcfa;
}

body.page-item-flow #charPanelPreview .char-preview-onboarding .onboarding-thanks,
body.page-item-flow #clothPanelPreview .char-preview-onboarding .onboarding-thanks {
  font-size: 0.95rem;
  font-weight: 600;
  color: #e8e8e8;
  margin-top: 8px;
  margin-bottom: 8px;
}

body.page-item-flow .char-flow-description {
  margin: 0 0 22px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #f0f0f0;
  text-align: left;
}

body.page-item-flow .char-flow-cta {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 16px 20px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  cursor: pointer;
  text-align: center;
  background: linear-gradient(180deg, #ffb020 0%, #ff8c00 45%, #e67300 100%);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.38);
}

body.page-item-flow .char-flow-cta:hover:not(:disabled) {
  filter: brightness(1.05);
}

body.page-item-flow .char-flow-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

body.page-item-flow .char-flow-cta:disabled {
  cursor: default;
  filter: none;
}

body.page-item-flow .char-download-btn-wrap {
  margin: 18px 0 20px;
}

body.page-item-flow .char-download-btn {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  padding: 16px 20px;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  cursor: pointer;
  text-align: center;
  background: linear-gradient(180deg, #ffb020 0%, #ff8c00 45%, #e67300 100%);
  box-shadow: 0 6px 20px rgba(255, 140, 0, 0.38);
}

body.page-item-flow .char-download-btn__progress {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  max-width: 100%;
  background: linear-gradient(
    180deg,
    rgb(255 255 255 / 0.28) 0%,
    rgb(255 255 255 / 0.12) 100%
  );
  border-radius: 999px;
  pointer-events: none;
  transition: width 0.05s linear;
}

body.page-item-flow .char-download-btn__label {
  position: relative;
  z-index: 1;
}

body.page-item-flow .char-download-btn:hover:not(:disabled) {
  filter: brightness(1.05);
}

body.page-item-flow .char-download-btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

body.page-item-flow .char-download-btn:disabled {
  cursor: default;
}

body.page-item-flow .char-related-heading {
  margin: 22px 0 12px;
  font-size: clamp(0.7rem, 3vw, 0.85rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fff;
  text-align: left;
}

body.page-item-flow .char-related-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  width: 100%;
}

body.page-item-flow .char-related-card {
  display: block;
  line-height: 0;
  text-decoration: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

body.page-item-flow .char-related-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body.page-item-flow .char-related-card img {
  display: block;
  width: 100%;
  height: auto;
}

body.page-item-flow .characters-detail-missing {
  margin-top: 20px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

body.page-item-flow .characters-detail-missing a {
  color: var(--text);
  text-decoration: underline;
}

/* Success modal */
body.page-item-flow .char-success-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
}

body.page-item-flow .char-success-modal[hidden] {
  display: none !important;
}

body.page-item-flow .char-success-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.72);
}

body.page-item-flow .char-success-modal__card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 320px;
  padding: 28px 22px 24px;
  border-radius: 24px;
  text-align: center;
  background: #1c1f26;
  border: 1px solid rgb(255 255 255 / 0.08);
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.55);
}

body.page-item-flow .char-success-modal__title {
  margin: 0 0 14px;
  font-size: 1.2rem;
  font-weight: 800;
  color: #fff;
}

body.page-item-flow .char-success-modal__body {
  margin: 0 0 24px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.5;
  color: #e8e8ec;
}

body.page-item-flow .char-success-modal__done {
  margin: 0;
  box-shadow: 0 8px 24px rgba(255, 140, 0, 0.42);
}
