:root {
  --radius: 0.75rem;
  --font-display: "Baloo 2", "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-mc: "Faithful 32x", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --color-background: #1b1248;
  --color-background-alt: #140c34;
  --color-sky: #2a1b66;
  --color-sky-deep: #5b3cff;
  --color-foreground: #eef2ff;
  --color-card: #fff;
  --color-primary: #3c2d96;
  --color-primary-hover: #4d3cb0;
  --color-primary-foreground: #fff;
  --color-primary-ink: #c4b6ff;
  --color-ember: #ef5b48;
  --color-gold: #f6b53c;
  --color-gold-hover: #ffc358;
  --color-gold-foreground: #422f06;
  --color-violet: #5a3cb8;
  --color-frost: #2bb4d8;
  --color-leaf: #43b96b;
  --color-muted-foreground: #b8b3d4;
  --color-ink: #0d0820;
  --color-ink-line: #ffffff1f;
  --color-discord: #5865f2;
  --color-discord-hover: #6b77f5;
  --hero-cta-grad: linear-gradient(135deg, #3a1d8a 0%, #6b2fd4 55%, #1a0b40 100%);
}

/* Faithful 32x Java ascii.png — https://github.com/Faithful-Resource-Pack/Faithful-32x-Java */
@font-face {
  font-family: "Faithful 32x";
  src: url("../assets/fonts/faithful-32x.woff2") format("woff2"),
       url("../assets/fonts/faithful-32x.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

html,
body {
  min-height: 100%;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

canvas {
  display: block;
  max-width: none;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  cursor: pointer;
}

.store-coupon-form input,
.store-cart-coupon input,
.store-modal-card input,
.gate-card input,
#pass {
  font-family: var(--font-mc);
  font-size: 16px;
  letter-spacing: 1px;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
}

::placeholder {
  font-family: var(--font-mc);
  font-size: 16px;
  letter-spacing: 1px;
  line-height: 1;
  color: rgba(232, 240, 255, 0.42);
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
}

::-webkit-input-placeholder {
  font-family: var(--font-mc);
  font-size: 16px;
  letter-spacing: 1px;
  color: rgba(232, 240, 255, 0.42);
}

::-moz-placeholder {
  font-family: var(--font-mc);
  font-size: 16px;
  letter-spacing: 1px;
  color: rgba(232, 240, 255, 0.42);
  opacity: 1;
}

code {
  font-family: var(--font-mono);
}

ul {
  list-style: none;
}

.page {
  position: relative;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow-x: hidden;
}

.font-display {
  font-family: var(--font-display);
  font-weight: 800;
}

/* ---------- floating page clouds (inner pages / chrome) ---------- */
.cloud-field {
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
  display: none;
}

@media (min-width: 1024px) {
  .cloud-field {
    display: block;
  }
}

.cloud {
  position: absolute;
  animation: cloud-drift 18s ease-in-out infinite;
  filter: drop-shadow(0 12px 20px rgba(13, 34, 54, 0.14));
}

@keyframes cloud-drift {
  0% { transform: translateX(-14px); }
  50% { transform: translateX(16px); }
  100% { transform: translateX(-14px); }
}

@keyframes float-slow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes flicker {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

@keyframes pop-in {
  0% { opacity: 0; transform: translateY(14px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% {
    transform: translateY(-25%);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}

.animate-float { animation: float-slow 4.6s ease-in-out infinite; }
.animate-flicker { animation: flicker 2.4s ease-in-out infinite; }
.animate-pop-in {
  animation: pop-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.animate-bounce { animation: bounce 1.2s infinite; }

/* ---------- header ---------- */
.site-header {
  --nav-in: 0;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 75;
  border-bottom: 1px solid transparent;
  background: transparent;
  pointer-events: none;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(12, 8, 34, 0.82);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 40px -18px rgba(0, 0, 0, 0.72);
  opacity: var(--nav-in, 0);
  transform: translate3d(0, calc((1 - var(--nav-in, 0)) * -10px), 0);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.site-header .header-inner,
.site-header .mobile-nav {
  position: relative;
  z-index: 1;
}

.site-header .header-inner {
  pointer-events: auto;
}

html.has-mobile-nav .site-header {
  pointer-events: auto;
}

.site-header.is-scrolled {
  background: transparent;
  border-bottom-color: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .site-header::before {
    transition: none;
    transform: none;
  }
}

.site-header.is-scrolled .nav-link {
  text-shadow: none;
  color: rgba(238, 242, 255, 0.72);
}

.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.is-active {
  color: #fff;
}

.site-header.is-scrolled .nav-link.is-active .nav-underline {
  background: var(--color-primary);
}

.header-inner {
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 4.5rem;
  width: 100%;
  max-width: 80rem;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .header-inner { padding: 0 2rem; }
}

.brand-mark {
  display: inline-flex;
  align-items: center;
}

.brand-mark img {
  width: 4.4rem;
  height: 2.85rem;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(8, 4, 24, 0.55));
  transition: transform 0.3s;
}

.brand-mark:hover img {
  transform: translateY(-2px) rotate(-6deg);
}

.nav-desktop {
  display: none;
  align-items: center;
  margin-left: 0.5rem;
}

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 0 1px 4px rgba(13, 34, 54, 0.6);
  transition: color 0.15s;
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.nav-underline {
  position: absolute;
  left: 0.875rem;
  right: 0.875rem;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: #fff;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ip-chip {
  display: none;
}

@media (min-width: 1280px) {
  .ip-chip { display: inline-flex; }
}

.ip-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 0.5rem;
  padding: 0.375rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.menu-toggle {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(6px);
}

@media (min-width: 1024px) {
  .menu-toggle { display: none; }
}

.site-header.is-scrolled .menu-toggle {
  border-color: rgba(13, 34, 54, 0.15);
  background: rgba(255, 255, 255, 0.7);
  color: var(--color-foreground);
}

.mobile-nav {
  display: none;
  padding: 0.75rem 1.5rem 1.25rem;
  background: rgba(20, 12, 52, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-nav.is-open { display: flex; flex-direction: column; gap: 0.35rem; }

.mobile-nav a {
  padding: 0.7rem 0.4rem;
  font-weight: 700;
  font-family: var(--font-display);
}

/* ---------- buttons / cards ---------- */
.card-soft {
  background: var(--color-card);
  color: #0d2236;
  border: 1px solid var(--color-ink-line);
  border-radius: 1rem;
  box-shadow: 0 1px #0d22360a, 0 12px 26px -16px #0d223647;
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out, border-color 0.2s ease-out;
}

.card-soft .ip-kicker,
.vote-card p,
.store-body p,
.info-card p:last-child {
  color: #4f6b85;
}

.card-soft-hover:hover {
  border-color: #1f9fe666;
  transform: translateY(-3px);
  box-shadow: 0 1px #0d22360f, 0 22px 40px -16px #0d223652;
}

.card-hero {
  border-radius: 2rem;
  box-shadow:
    inset 0 2px #ffffff59,
    inset 0 -4px #0d223629,
    0 24px 56px -20px #0d223666,
    0 2px #0d223614;
}

.btn-bevel {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  white-space: nowrap;
  border-radius: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: inset 0 1px #fff6, inset 0 -2px #0d223633, 0 1px #0d223614;
  transition: transform 0.15s ease-out, box-shadow 0.15s ease-out, background-color 0.15s;
}

.btn-bevel:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px #ffffff73, inset 0 -2px #0d223633, 0 3px #0d22361a;
}

.hero-top .btn-bevel:hover,
.cta-section.is-over-scene .btn-bevel:hover {
  transform: translateY(-5px) scale(1.08);
  box-shadow: inset 0 1px #ffffff80, inset 0 -2px #0d223633, 0 10px 22px -8px #0d223659;
}

.hero-top .btn-bevel:active,
.cta-section.is-over-scene .btn-bevel:active {
  transform: translateY(1px) scale(1.02);
}

.btn-bevel:active {
  transform: translateY(1px);
  box-shadow: inset 0 -1px #ffffff40, inset 0 2px #0d22363d;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover { background: var(--color-primary-hover); }

.btn-discord {
  background: var(--color-discord);
  color: #fff;
}

.btn-discord:hover { background: var(--color-discord-hover); }

.btn-gold {
  background: var(--color-gold);
  color: var(--color-gold-foreground);
}

.btn-gold:hover { background: var(--color-gold-hover); }

.btn-white {
  background: #fff;
  color: var(--color-ink);
}

.btn-white:hover { background: rgba(255, 255, 255, 0.9); }

.btn-lg { height: 3.5rem; padding: 0 2rem; font-size: 1rem; }
.btn-md { height: 2.5rem; padding: 0 1rem; font-size: 0.875rem; }

.hidden-sm { display: none; }
@media (min-width: 640px) {
  .hidden-sm { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 7rem 0 5rem;
}

.hero-stage {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
}

.hero-top {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 7rem 0 5rem;
}

.hero-sky {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: #0e121c;
}

.hero-sky canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: transparent;
  contain: strict;
  isolation: isolate;
  transform: translateZ(0);
}

.hero-canvas canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  opacity: 1;
}

.hero-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(14, 18, 28, 0.02) 0%,
    rgba(16, 22, 36, 0.06) 28%,
    transparent 48%,
    transparent 78%,
    rgba(14, 18, 28, 0.18) 92%,
    rgba(20, 16, 48, 0.32) 100%
  );
}

body[data-page="home"] .hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 20rem;
  z-index: 5;
  pointer-events: none;
  background:
    radial-gradient(ellipse 78% 55% at 50% 82%, rgba(56, 88, 190, 0.2), transparent 72%),
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(14, 18, 28, 0.06) 18%,
      rgba(16, 20, 42, 0.22) 38%,
      rgba(22, 18, 58, 0.5) 58%,
      rgba(27, 18, 72, 0.82) 80%,
      #1b1248 100%
    );
}

body[data-page="home"] .cta-section.is-over-scene {
  padding-bottom: 7.25rem;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  padding: 0 1.5rem;
  text-align: center;
  pointer-events: none;
}

.hero-content .js-hero-ip,
.hero-content .hero-ctas {
  pointer-events: auto;
}

.hero-logo-slot {
  position: absolute;
  top: 5.15rem;
  left: 0;
  right: 0;
  width: min(46vw, 280px);
  margin-inline: auto;
  pointer-events: none;
}

.hero-logo {
  display: block;
  width: 100%;
  height: auto;
  max-height: 7.1rem;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 10px 28px rgba(80, 40, 180, 0.45));
}

@media (min-width: 1024px) {
  .hero-logo-slot {
    top: 5.35rem;
    width: min(34vw, 300px);
  }
  .hero-logo { max-height: 7.6rem; }
}

.ip-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 1rem;
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  text-align: left;
}

.ip-card-meta {
  display: flex;
  flex: 1;
  flex-direction: column;
  line-height: 1.15;
}

.ip-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-muted-foreground);
}

.ip-value {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ip-copy {
  display: inline-flex;
  height: 2.75rem;
  min-width: 7rem;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 0.75rem;
  background: var(--color-primary);
  padding: 0 1rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -2px 0 rgba(13, 34, 54, 0.2);
  transition: background 0.15s;
}

.ip-card:hover .ip-copy { background: var(--color-primary-hover); }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 0;
  right: 0;
  z-index: 10;
  width: max-content;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  color: rgba(238, 242, 255, 0.55);
  transition: color 0.15s, opacity 0.28s ease, visibility 0.28s ease;
}

.scroll-hint:hover { color: #fff; }

.scroll-hint.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.scroll-hint span {
  padding-left: 0.28em;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.scroll-orb {
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(13, 34, 54, 0.15);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
}

/* ---------- inner page sky wash ---------- */
.page-sky {
  position: absolute;
  inset: 0 0 auto 0;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 92%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 50%, transparent 92%);
}

.page-sky-grad {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 45% at 70% 28%, rgba(124, 72, 255, 0.4), transparent 58%),
    linear-gradient(180deg, #0c0824 0%, #2a1468 42%, #1b1248 78%, var(--color-background) 100%);
}

main {
  position: relative;
  z-index: 10;
  flex: 1;
}

.wrap {
  margin: 0 auto;
  width: 100%;
  max-width: 80rem;
  padding: 0 1.5rem;
}

@media (min-width: 1024px) {
  .wrap { padding: 0 2rem; }
}

.page-title {
  padding: 9rem 0 3rem;
}

.page-title h1 {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 2px 10px rgba(13, 34, 54, 0.4);
}

.page-title .rule {
  display: block;
  margin-top: 1rem;
  height: 4px;
  width: 3.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

/* ---------- conversation CTA ---------- */
.cta-section {
  position: relative;
  padding: 3rem 0 3.5rem;
  background: linear-gradient(180deg, var(--color-background) 0%, #140c34 55%, #120a30 100%);
}

.cta-section.is-over-scene {
  z-index: 10;
  padding: 4rem 0 5.5rem;
  background: transparent;
}

@property --cta-spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}

.cta-card {
  position: relative;
  overflow: hidden;
  min-height: 22rem;
  padding: 4.5rem 1.5rem;
  text-align: center;
  background: #0c0e14;
  border: 1px solid transparent;
}

.cta-section.is-over-scene .cta-card {
  min-height: 22rem;
  overflow: visible;
  background: transparent;
  box-shadow: none;
}

.cta-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
}

.cta-glow::before,
.cta-glow::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(
    from var(--cta-spin),
    #102040 0%,
    #1a3a7a 10%,
    #2b5cb8 18%,
    #163060 32%,
    #204e9a 48%,
    #7eb6ff 58%,
    #1a3a7a 70%,
    #102040 86%,
    #102040 100%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: cta-spin 8.4s linear infinite;
}

.cta-glow::after {
  inset: -6px -6px 8px;
  padding: 5px;
  filter: blur(7px);
  opacity: 0.48;
}

@keyframes cta-spin {
  to { --cta-spin: 360deg; }
}

@media (prefers-reduced-motion: reduce) {
  .cta-glow::before,
  .cta-glow::after { animation: none; }
}

.cta-tex {
  pointer-events: none;
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
  background: url("../assets/texture_0.png") 0 0 / 256px 256px repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.cta-section.is-over-scene .cta-tex {
  opacity: 0.95;
}

.cta-tex::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/texture_1.png") 72px 40px / 320px 320px repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  mix-blend-mode: soft-light;
  opacity: 0.78;
}

.cta-tex::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 60% at 50% 45%, rgba(16, 20, 34, 0.22), transparent 78%),
    linear-gradient(180deg, rgba(27, 18, 72, 0.1), rgba(14, 18, 28, 0.16));
}

.cta-section.is-over-scene .cta-tex::after {
  background: radial-gradient(ellipse 68% 58% at 50% 45%, rgba(16, 20, 34, 0.18), transparent 72%);
}

.galaxy-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 70% 65% at 50% 45%, transparent 0%, rgba(8, 16, 40, 0.28) 100%);
}

@media (min-width: 640px) {
  .cta-card { padding: 5rem 3rem; }
}

.cta-deco,
.galaxy-layer {
  pointer-events: none;
  position: absolute;
  inset: 0;
}

.galaxy-layer canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block;
}

.cta-inner {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  display: flex;
  max-width: 42rem;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.04;
  color: #fff;
  text-wrap: balance;
}

.cta-section.is-over-scene .cta-inner h2,
.cta-section.is-over-scene .cta-inner p {
  text-shadow: 0 2px 16px rgba(6, 8, 18, 0.55);
}

.cta-inner p {
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.9);
}

@media (min-width: 640px) {
  .cta-inner p { font-size: 1.125rem; }
}

.star {
  position: absolute;
  color: #fff;
}

.star.gold { color: var(--color-gold); }

/* ---------- footer ---------- */
.site-footer {
  position: relative;
  z-index: 10;
  overflow: hidden;
  background: var(--color-background);
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 9rem;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, var(--color-background) 0%, rgba(27, 18, 72, 0.45) 42%, transparent 100%);
}

body[data-page="home"] .site-footer {
  margin-top: -3.25rem;
  background: linear-gradient(180deg, #1b1248 0%, #181040 38%, #140c34 100%);
}

body[data-page="home"] .site-footer::before {
  height: 13rem;
  background: linear-gradient(180deg, #1b1248 0%, rgba(27, 18, 72, 0.28) 42%, transparent 100%);
}

.footer-galaxy {
  pointer-events: none;
  position: absolute;
  top: -18%;
  left: 50%;
  z-index: 0;
  width: 100vw;
  height: 136%;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 20%, #000 100%);
}

body[data-page="home"] .footer-galaxy {
  top: -34%;
  height: 162%;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.18) 16%, rgba(0, 0, 0, 0.55) 32%, #000 52%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.18) 16%, rgba(0, 0, 0, 0.55) 32%, #000 52%, #000 100%);
}

.footer-galaxy canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  display: block;
}

.footer-body {
  position: relative;
  z-index: 1;
  border-top: none;
  background: linear-gradient(180deg, rgba(27, 18, 72, 0) 0%, rgba(8, 16, 40, 0.18) 40%, rgba(6, 12, 32, 0.34) 100%);
  padding-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem 1.5rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 640px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .footer-grid { grid-template-columns: 1.7fr 1fr 1fr 1fr; }
}

.footer-brand {
  grid-column: span 2;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .footer-brand { grid-column: span 3; }
}

@media (min-width: 1024px) {
  .footer-brand { grid-column: span 1; }
}

.footer-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.footer-wordmark img {
  width: 4.4rem;
  height: 2.85rem;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(8, 4, 24, 0.55));
  transition: transform 0.3s;
}

.footer-wordmark .footer-logo-long {
  width: min(15.5rem, 72vw);
  height: auto;
  max-height: 2.65rem;
  margin-left: 2.35rem;
}

.footer-wordmark:hover img {
  transform: translateY(-2px) rotate(-6deg);
}

.footer-wordmark span {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: #fff;
}

.footer-wordmark em {
  font-style: normal;
  color: var(--color-primary-ink);
}

.footer-brand p {
  max-width: 24rem;
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-muted-foreground);
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-col h3 {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #9ec8ff;
}

.footer-col li + li { margin-top: 0.65rem; }

.footer-col a {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(238, 242, 255, 0.72);
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--color-primary-ink); }

.footer-bar {
  border-top: 1px solid rgba(140, 190, 255, 0.1);
  background: rgba(4, 12, 32, 0.42);
}

.footer-bar-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(238, 242, 255, 0.55);
}

@media (min-width: 640px) {
  .footer-bar-inner { flex-direction: row; }
}

/* ---------- vote / blog / store / legal ---------- */
.vote-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .vote-grid { grid-template-columns: 1fr 1fr; }
}

.vote-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: 1rem;
  padding: 1.25rem;
}

.vote-bar {
  height: 3.5rem;
  width: 6px;
  flex-shrink: 0;
  border-radius: 999px;
}

.vote-card h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  line-height: 1.2;
}

.vote-card p {
  font-size: 0.875rem;
  color: rgba(13, 34, 54, 0.55);
}

.vote-go {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(13, 34, 54, 0.6);
  transition: color 0.15s;
}

.vote-card:hover .vote-go { color: var(--color-primary-ink); }

.section-gap { padding-bottom: 0; }
.rewards { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 4rem; }

.rewards h2 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 5vw, 3.4rem);
  line-height: 1.04;
}

.text-sky-clip {
  color: transparent;
  background: linear-gradient(#c4b6ff 0%, #3c2d96 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.reward-box { border-radius: 1.5rem; padding: 1.5rem; }
@media (min-width: 640px) { .reward-box { padding: 2rem; } }

.reward-every {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 1rem;
  background: rgba(31, 159, 230, 0.1);
  padding: 1rem 1.25rem;
}

.reward-icon {
  display: flex;
  width: 2.75rem;
  height: 2.75rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(31, 159, 230, 0.15);
  color: var(--color-primary-ink);
}

.reward-grid {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 640px) {
  .reward-grid { grid-template-columns: 1fr 1fr; }
}

.reward-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.875rem 0.25rem;
}

.reward-row .tick {
  width: 6px;
  align-self: stretch;
  border-radius: 999px;
  background: var(--color-primary);
}

.reward-row .num {
  width: 3rem;
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-variant-numeric: tabular-nums;
}

.empty-blog {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 36rem;
  padding-bottom: 1rem;
}

.empty-blog h2 {
  font-family: var(--font-display);
  font-size: 1.75rem;
}

.empty-blog p { color: var(--color-muted-foreground); }

.store-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "title tools"
    "rule .";
  align-items: center;
  column-gap: 1rem;
  row-gap: 0;
}

.store-heading h1 { grid-area: title; }

.store-heading .store-toolbar {
  grid-area: tools;
  margin-bottom: 0;
}

.store-heading .rule { grid-area: rule; }

body[data-page="store"] .page-title {
  padding: 9rem 0 1.35rem;
}

.store-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
}

.store-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-left: auto;
}

.store-ident {
  margin: 0 0.4rem 0 0;
  color: var(--color-muted-foreground);
  font-size: 0.85rem;
}

.store-ident strong { color: #fff; }

.store-ident button {
  background: none;
  color: var(--color-primary-ink);
  font: 650 0.85rem var(--font-sans);
  cursor: pointer;
  text-decoration: underline;
}

.store-modal {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(8, 8, 18, 0.72);
}

.store-modal[hidden] { display: none; }

.store-modal-card {
  width: min(24rem, 100%);
  padding: 1.7rem 1.5rem 1.4rem;
  border-radius: 1.1rem;
  background: linear-gradient(180deg, #1d4aa3 0%, #10224f 100%);
  border: 1px solid rgba(130, 180, 255, 0.28);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.4);
  color: #e8f0ff;
}

.store-modal-card h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 0.4rem;
}

.store-modal-card p {
  color: var(--color-muted-foreground);
  font-size: 0.9rem;
  margin-bottom: 0.9rem;
}

.store-modal-card input {
  width: 100%;
  height: 3rem;
  padding: 0 0.9rem;
  border-radius: 0.7rem;
  background: #0b1638;
  color: #fff;
  border: 1px solid rgba(130, 180, 255, 0.28);
}

.store-modal-err {
  min-height: 1.1rem;
  color: #ef8b8b;
  font-size: 0.8rem;
  margin: 0.45rem 0 0.7rem;
}

.store-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
}

.store-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.store-chip {
  height: 2.15rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font: 650 0.85rem var(--font-sans);
  cursor: pointer;
}

.store-chip:hover,
.store-chip.is-on {
  background: #1d4aa3;
}

.store-status {
  margin-bottom: 1rem;
  color: var(--color-muted-foreground);
}

.store-status.is-warn,
.store-status.is-err { color: #efb3b3; }

.store-empty {
  grid-column: 1 / -1;
  color: var(--color-muted-foreground);
}

.btn-bevel.is-off {
  opacity: 0.45;
  pointer-events: none;
}

.wrap.store-page { max-width: 86rem; }

body[data-page="store"] {
  --store-ink: #e8f0ff;
  --store-muted: #9db8e8;
  --store-deep: #0b1638;
  --store-navy: #0a142c;
  --store-royal: #16357a;
  --store-royal-mid: #1d4aa3;
  --store-line: rgba(130, 180, 255, 0.28);
  background: #0a1224;
}

body[data-page="store"] .page {
  background: transparent;
}

.store-space,
.store-space * {
  pointer-events: none !important;
}

.store-space {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.store-space .hero-sky,
.store-space .hero-canvas,
.store-space .store-wash {
  position: absolute;
  inset: 0;
}

.store-wash {
  background: linear-gradient(
    180deg,
    rgba(8, 16, 36, 0.1) 0%,
    transparent 24%,
    rgba(10, 22, 52, 0.16) 64%,
    rgba(10, 20, 48, 0.42) 100%
  );
}

.store-blend {
  position: relative;
  z-index: 8;
  height: 9rem;
  margin: 2rem 0 0;
  pointer-events: none;
}

.store-blend-veil,
.store-blend-glow,
.store-blend-line {
  position: absolute;
  left: 0;
  right: 0;
}

.store-blend-veil {
  inset: -5rem 0 0;
  background:
    linear-gradient(180deg,
      transparent 0%,
      rgba(8, 18, 48, 0.08) 16%,
      rgba(10, 24, 62, 0.38) 46%,
      rgba(9, 18, 44, 0.78) 72%,
      rgba(8, 16, 38, 0.96) 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 34%, #000 100%);
}

.store-blend-glow {
  left: 8%;
  right: 8%;
  top: 28%;
  height: 7.5rem;
  background: radial-gradient(ellipse 72% 60% at 50% 60%, rgba(40, 102, 214, 0.38), transparent 72%);
  filter: blur(22px);
}

.store-blend-line {
  left: 10%;
  right: 10%;
  top: 58%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(90, 150, 255, 0.12), #8ec2ff 50%, rgba(90, 150, 255, 0.12), transparent);
  box-shadow:
    0 0 16px 2px rgba(80, 150, 255, 0.45),
    0 0 42px 8px rgba(36, 88, 196, 0.22);
}

body[data-page="store"] .cta-section {
  background: linear-gradient(180deg, rgba(8, 16, 38, 0.96) 0%, #0a142c 48%, #091228 100%);
  padding-top: 4.25rem;
}

body[data-page="store"] .btn-primary,
body[data-page="store"] .store-fab {
  background: #365FFF;
  color: #fff;
}

body[data-page="store"] .btn-primary:hover,
body[data-page="store"] .store-fab:hover {
  background: #4d73ff;
}

body[data-page="store"] .btn-primary svg,
body[data-page="store"] .store-fab svg,
body[data-page="store"] .store-coupon-ico svg,
body[data-page="store"] .info-ico svg {
  color: #fff;
  stroke: #fff;
}

body[data-page="store"] .info-ico {
  background: #365FFF;
  color: #fff;
}

body[data-page="store"] .store-coupon-ico {
  background: #365FFF;
  color: #fff;
}

body[data-page="store"] .site-footer {
  background: #091228;
}

body[data-page="store"] .site-footer::before {
  background: linear-gradient(180deg, #091228 0%, rgba(9, 18, 40, 0.45) 48%, transparent 100%);
}

.store-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 720px) {
  .store-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1100px) {
  .store-grid { grid-template-columns: repeat(3, 1fr); }
}

.store-card,
body[data-page="store"] .store-coupon,
body[data-page="store"] .info-card {
  background: linear-gradient(180deg, #1d4aa3 0%, #12245c 100%);
  color: var(--store-ink, #e8f0ff);
  border: 1px solid var(--store-line, rgba(130, 180, 255, 0.28));
  box-shadow: 0 18px 40px -18px rgba(4, 10, 28, 0.55);
}

body[data-page="store"] .card-soft-hover:hover {
  border-color: rgba(150, 196, 255, 0.5);
}

.store-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: visible;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 1.4rem;
  cursor: pointer;
}

.store-card > .cta-glow {
  z-index: 3;
}

.store-card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  border-radius: inherit;
  background: linear-gradient(180deg, #1d4aa3 0%, #12245c 100%);
}

body[data-page="store"] .store-card.card-soft-hover:hover {
  border-color: transparent;
}

.store-tex {
  position: relative;
  overflow: hidden;
  background: url("../assets/texture_0.png") 0 0 / 192px 192px repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
}

.store-tex::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../assets/texture_1.png") 40px 24px / 240px 240px repeat;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  mix-blend-mode: soft-light;
  opacity: 0.78;
}

.store-tex::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 65% at 50% 42%, rgba(16, 40, 96, 0.14), transparent 72%),
    linear-gradient(180deg, rgba(12, 28, 72, 0.18), rgba(8, 16, 40, 0.34));
}

.store-art {
  height: 22rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem;
}

.store-art img,
.pack-modal-art img {
  position: relative;
  z-index: 1;
  width: 94%;
  height: 94%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 16px 24px rgba(8, 6, 24, 0.4));
}

.store-art .cube-glyph,
.pack-modal-art .cube-glyph {
  width: 78%;
  height: 78%;
}

.store-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem 1.3rem;
}

.store-body h3,
body[data-page="store"] .price,
body[data-page="store"] .info-card .font-display {
  font-family: var(--font-display);
  color: #fff;
}

.store-body h3 {
  font-size: 1.45rem;
  line-height: 1.15;
}

body[data-page="store"] .store-coupon-copy p:last-child,
body[data-page="store"] .info-card p:last-child {
  color: var(--store-muted, #9db8e8);
}

.store-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.store-card .btn-bevel {
  width: 100%;
}

.store-coupon {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding: 1.05rem 1.2rem;
  border-radius: 1.1rem;
}

.store-coupon-copy {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.store-coupon-copy p { margin: 0; }
.store-coupon-copy p:last-child {
  font-size: 0.85rem;
}

.store-coupon-ico {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 0.7rem;
  background: #1d4aa3;
  color: #fff;
}

.store-coupon-form {
  display: flex;
  gap: 0.5rem;
  min-width: min(22rem, 100%);
}

.store-coupon-form input,
.store-cart-coupon input {
  flex: 1;
  height: 2.7rem;
  padding: 0 0.85rem;
  border-radius: 0.7rem;
  border: 1px solid rgba(130, 180, 255, 0.28);
  background: #0b1638;
  color: #e8f0ff;
}

.store-icon-btn {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(130, 180, 255, 0.14);
  color: #e8f0ff;
  font: 700 1.35rem/1 var(--font-sans);
  cursor: pointer;
}

.store-icon-btn:hover { background: rgba(130, 180, 255, 0.26); }

.qty-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  height: 2.2rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  border: 1px solid rgba(130, 180, 255, 0.28);
  background: #0b1638;
  color: #e8f0ff;
}

.qty-pill button {
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: #365FFF;
  color: #fff;
  font: 700 1rem/1 var(--font-sans);
  cursor: pointer;
}

.qty-pill strong { min-width: 1.2rem; text-align: center; }

.pack-modal,
.store-cart-scrim {
  position: fixed;
  inset: 0;
  z-index: 72;
  background: rgba(8, 6, 20, 0.62);
  backdrop-filter: blur(10px);
}

.pack-modal {
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.pack-modal[hidden],
.store-cart-scrim[hidden],
.store-modal[hidden] { display: none !important; }

.pack-modal-card {
  position: relative;
  width: min(52rem, 100%);
  background: linear-gradient(180deg, #1d4aa3 0%, #10224f 100%);
  color: #e8f0ff;
  border: none;
  border-radius: 1.35rem;
  overflow: visible;
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
}

.pack-modal-card > .cta-glow { z-index: 4; }

.pack-modal-card > *:not(.cta-glow) {
  position: relative;
  z-index: 1;
}

.pack-modal-head,
.pack-modal-foot,
.store-cart-head,
.store-cart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
}

.pack-modal-head h2,
.store-cart-head h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
  margin: 0;
}

.pack-modal-head p,
.store-cart-head p {
  margin: 0.15rem 0 0;
  color: #9db8e8;
  font-size: 0.88rem;
}

.pack-modal-grid {
  display: grid;
  gap: 1.25rem;
  padding: 0 1.3rem 1.2rem;
}

@media (min-width: 800px) {
  .pack-modal-grid { grid-template-columns: 1fr 1.1fr; }
}

.pack-modal-art {
  min-height: 19rem;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pack-modal-info h3 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  margin: 0.35rem 0 0.7rem;
}

.pack-sale {
  display: inline-block;
  margin: 0;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: rgba(130, 180, 255, 0.16);
  color: #9db8e8;
  text-decoration: line-through;
  font-size: 0.8rem;
}

.pack-desc {
  color: #c5d6f4;
  font-size: 0.95rem;
  line-height: 1.55;
}

.pack-desc p { margin: 0 0 0.6rem; }

.pack-qty {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.1rem;
  color: #9db8e8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pack-modal-foot {
  border-top: 1px solid rgba(130, 180, 255, 0.14);
}

.pack-modal-foot p {
  margin: 0;
  color: #9db8e8;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pack-modal-foot strong {
  display: block;
  margin-top: 0.15rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0;
  text-transform: none;
}

.store-fab[hidden] { display: none !important; }

.store-fab {
  position: fixed;
  right: 1.25rem;
  bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  height: 3rem;
  padding: 0 0.95rem;
  border-radius: 0.9rem;
  background: linear-gradient(180deg, #2a62c8, #16357a);
  color: #fff;
  font: 800 0.78rem/1 var(--font-display);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 28px rgba(8, 6, 24, 0.35);
  cursor: pointer;
}

.store-fab-count {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: #9ec8ff;
  color: #0b1638;
  font: 800 0.72rem/1.35rem var(--font-sans);
  text-align: center;
  letter-spacing: 0;
  font-style: normal;
}

.store-cart {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 81;
  display: flex;
  flex-direction: column;
  pointer-events: none;
  width: min(26.5rem, 100%);
  height: 100%;
  background: linear-gradient(180deg, #16357a 0%, #0b1638 100%);
  color: #e8f0ff;
  box-shadow: -18px 0 40px rgba(0, 0, 0, 0.4);
  transform: translateX(104%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.store-cart.is-open {
  transform: none;
  pointer-events: auto;
}

.store-cart-user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 1.15rem;
  padding: 0.7rem 0.8rem;
  border-radius: 0.9rem;
  background: rgba(130, 180, 255, 0.12);
}

.store-cart-user img,
.mc-head {
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 0.45rem;
  image-rendering: pixelated;
  background: #0b1638;
}

.mc-head {
  position: relative;
  flex: 0 0 2.85rem;
  perspective: 160px;
  overflow: visible;
}

.mc-head-iso {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}

.mc-head-cube {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateX(-18deg) rotateY(28deg);
  animation: mc-head-spin 9s linear infinite;
}

.mc-head-cube[hidden],
.mc-head-iso[hidden] { display: none; }

.mc-face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  backface-visibility: hidden;
}

.mc-face[data-face="front"] { transform: rotateY(0deg) translateZ(1.425rem); }
.mc-face[data-face="back"] { transform: rotateY(180deg) translateZ(1.425rem); }
.mc-face[data-face="right"] { transform: rotateY(90deg) translateZ(1.425rem); }
.mc-face[data-face="left"] { transform: rotateY(-90deg) translateZ(1.425rem); }
.mc-face[data-face="top"] { transform: rotateX(90deg) translateZ(1.425rem); }
.mc-face[data-face="bottom"] { transform: rotateX(-90deg) translateZ(1.425rem); }

@keyframes mc-head-spin {
  from { transform: rotateX(-18deg) rotateY(28deg); }
  to { transform: rotateX(-18deg) rotateY(388deg); }
}

@media (prefers-reduced-motion: reduce) {
  .mc-head-cube { animation: none; }
}

.store-cart-user p {
  margin: 0;
  color: #9db8e8;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-cart-user strong { font-size: 1rem; }
.store-cart-user .store-icon-btn { margin-left: auto; }

.store-cart-items {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.15rem 0.4rem;
}

.store-cart-empty {
  color: #9db8e8;
  text-align: center;
  padding: 2.5rem 1rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 4.4rem 1fr;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(130, 180, 255, 0.12);
}

.cart-line-art {
  width: 4.4rem;
  height: 4.4rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
}

.cart-line-art img {
  position: relative;
  z-index: 1;
  width: 3.3rem;
  height: 3.3rem;
  object-fit: contain;
}

.cart-line-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.cart-line-top strong { font-size: 0.98rem; }

.cart-line-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.65rem;
}

.cart-line-price {
  text-align: right;
}

.cart-line-price strong { display: block; }
.cart-line-price span {
  color: #9db8e8;
  font-size: 0.75rem;
}

.store-cart-foot {
  flex-direction: column;
  align-items: stretch;
  border-top: 1px solid rgba(130, 180, 255, 0.14);
  padding-bottom: calc(1.1rem + env(safe-area-inset-bottom, 0px));
}

.store-coupon-link {
  background: rgba(130, 180, 255, 0.14);
  color: #eef2ff;
  border-radius: 0.75rem;
  min-height: 2.6rem;
  font: 700 0.92rem var(--font-sans);
  cursor: pointer;
}

.store-cart-coupon {
  display: flex;
  gap: 0.45rem;
}

.store-cart-sub {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.store-cart-sub span {
  color: #9db8e8;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-cart-sub strong {
  font-family: var(--font-display);
  font-size: 1.7rem;
}

.store-cart-go { width: 100%; }

.store-modal { z-index: 90; }
#clicker-forge { z-index: 96; }

.price {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.info-grid {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .info-grid { grid-template-columns: 1fr 1fr; }
}

.info-card {
  display: flex;
  gap: 0.9rem;
  border-radius: 1rem;
  padding: 1.5rem;
}

.info-ico {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: 0.75rem;
  background: rgba(125, 92, 240, 0.12);
  color: #5a3fc0;
}

.legal {
  max-width: 48rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-bottom: 2rem;
  color: var(--color-foreground);
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-top: 0.5rem;
}

.legal p,
.legal li {
  color: var(--color-muted-foreground);
  line-height: 1.7;
}

.legal ul {
  padding-left: 1.2rem;
  list-style: disc;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  z-index: 80;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  pointer-events: none;
  border-radius: 999px;
  background: #0d2236;
  color: #fff;
  padding: 0.65rem 1.1rem;
  font-size: 0.85rem;
  font-weight: 600;
  transition: 0.25s ease;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ---------- clicker ---------- */
.clicker-stage {
  min-height: 100vh;
  min-height: 100dvh;
  touch-action: manipulation;
}

body[data-page="clicker"] .ip-chip { display: none; }

.clicker-hud {
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.clicker-ui { pointer-events: auto; }

.clicker-bar {
  position: absolute;
  top: calc(4.75rem + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  width: min(72rem, calc(100% - 2rem));
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.45rem 0.55rem;
  border-radius: 1rem;
  background: rgba(12, 8, 34, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.clicker-ident {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.15rem 0.55rem 0.15rem 0.2rem;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.clicker-ident img {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 0.4rem;
  image-rendering: pixelated;
}

.clicker-ident small,
.clicker-bank small {
  display: block;
  font-size: 0.68rem;
  color: rgba(238, 242, 255, 0.62);
  font-weight: 600;
}

.clicker-ident strong,
.clicker-bank strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.1;
}

.clicker-modes {
  display: flex;
  margin-left: auto;
  padding: 0.15rem;
  border-radius: 999px;
  background: rgba(8, 6, 24, 0.45);
}

.clicker-mode,
.clicker-tab,
.clicker-mini {
  border: 0;
  background: transparent;
  color: rgba(238, 242, 255, 0.7);
  font-family: var(--font-display);
  font-weight: 700;
  cursor: pointer;
}

.clicker-mode {
  height: 2rem;
  padding: 0 0.95rem;
  border-radius: 999px;
}

.clicker-mode.is-on,
.clicker-tab.is-on,
.clicker-mini.is-on {
  background: #365FFF;
  color: #fff;
}

.clicker-bank {
  min-width: 7.5rem;
  text-align: right;
}

.clicker-bank strong {
  font-size: 1.25rem;
}

.clicker-icon {
  width: 2.3rem;
  height: 2.3rem;
  display: grid;
  place-items: center;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.clicker-drawer {
  position: absolute;
  top: calc(4.75rem + env(safe-area-inset-top, 0px));
  z-index: 12;
}

.clicker-drawer.is-left {
  left: auto;
  right: calc(50% + min(36rem, calc(50vw - 1rem)) + 0.45rem);
}
.clicker-drawer.is-right {
  right: auto;
  left: calc(50% + min(36rem, calc(50vw - 1rem)) + 0.45rem);
}

.clicker-drawer-panel {
  width: 3.2rem;
  max-height: 3.2rem;
  overflow: hidden;
  border-radius: 1.05rem;
  background: rgba(12, 8, 34, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(16px) saturate(1.15);
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1), max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1);
}

.clicker-drawer.is-left .clicker-drawer-panel { transform-origin: top right; }
.clicker-drawer.is-right .clicker-drawer-panel { transform-origin: top left; }

.clicker-drawer.is-wide .clicker-drawer-panel {
  width: min(22.75rem, 78vw);
  max-height: 3.2rem;
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1), max-height 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.clicker-drawer.is-open .clicker-drawer-panel {
  display: flex;
  flex-direction: column;
  width: min(22.75rem, 78vw);
  max-height: min(86vh, calc(100vh - 12rem));
  transition: width 0.22s cubic-bezier(0.22, 1, 0.36, 1), max-height 0.36s cubic-bezier(0.22, 1, 0.36, 1) 0.1s;
}

.clicker-drawer-hit {
  width: 100%;
  height: 3.2rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0 0.85rem;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
}

.clicker-drawer-hit svg {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
}

.clicker-drawer.is-left .clicker-drawer-hit {
  flex-direction: row-reverse;
}

.clicker-drawer-hit span {
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  white-space: nowrap;
}

.clicker-drawer.is-left .clicker-drawer-hit span { transform: translateX(6px); }

.clicker-drawer.is-wide .clicker-drawer-hit span,
.clicker-drawer.is-open .clicker-drawer-hit span {
  opacity: 1;
  transform: none;
  transition-delay: 0.12s;
}

.clicker-drawer-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  max-height: calc(min(86vh, calc(100vh - 12rem)) - 3.2rem);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
}

.clicker-drawer.is-open .clicker-drawer-body {
  opacity: 1;
  pointer-events: auto;
  transition-delay: 0.22s;
}

.clicker-panel-left,
.clicker-panel-right { display: contents; }

.clicker-panel-head {
  flex: 0 0 auto;
  padding: 0.85rem 1rem 0.65rem;
}

.clicker-panel-head h2,
.clicker-vault h3,
.clicker-about-card h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
}

.clicker-kicker {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9db6ff;
  font-weight: 700;
}

.clicker-panel-head p,
.clicker-vault p,
.clicker-note,
.clicker-about-card p {
  color: var(--color-muted-foreground);
  font-size: 0.86rem;
  line-height: 1.45;
}

.clicker-tabs,
.clicker-buy {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.7rem;
}

.clicker-tabs-wrap { margin-top: 0.75rem; }

.clicker-tab,
.clicker-mini {
  height: 1.85rem;
  padding: 0 0.65rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #dce7ff;
  font-size: 0.78rem;
  cursor: pointer;
}

.clicker-tab.is-on,
.clicker-mini.is-on {
  background: rgba(54, 95, 255, 0.42);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(126, 200, 255, 0.28);
}

.mc-scroll {
  scrollbar-width: thin;
  scrollbar-color: #365FFF rgba(255, 255, 255, 0.08);
}

.mc-scroll::-webkit-scrollbar {
  width: 9px;
}

.mc-scroll::-webkit-scrollbar-track {
  margin: 0.35rem 0;
  background: rgba(8, 6, 24, 0.55);
  border-radius: 99px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.mc-scroll::-webkit-scrollbar-thumb {
  border-radius: 99px;
  border: 2px solid transparent;
  background:
    linear-gradient(#365FFF, #7ec8ff) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent) border-box;
}

.mc-scroll::-webkit-scrollbar-thumb:hover {
  background:
    linear-gradient(#4c74ff, #9ad4ff) padding-box,
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), transparent) border-box;
}

.clicker-list {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 0.15rem 0.5rem 0.85rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.clicker-row {
  display: grid;
  gap: 0.18rem;
  width: 100%;
  padding: 0.68rem 0.75rem 0.68rem 0.85rem;
  border-radius: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(90deg, rgba(54, 95, 255, 0.22), transparent 0.42rem),
    rgba(255, 255, 255, 0.045);
  color: #eef2ff;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.clicker-row:hover:not(:disabled):not(.is-off) {
  transform: translateY(-1px);
  border-color: rgba(126, 200, 255, 0.28);
  background:
    linear-gradient(90deg, rgba(54, 95, 255, 0.5), transparent 0.42rem),
    rgba(54, 95, 255, 0.1);
}

.clicker-row span { font-size: 0.8rem; color: var(--color-muted-foreground); }
.clicker-row-top {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.92rem;
}
.clicker-row-top strong { font-family: var(--font-display); color: #fff; }
.clicker-row-top em {
  font-style: normal;
  color: #f6b53c;
  font-family: var(--font-mc);
  font-size: 0.78rem;
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  background: rgba(246, 181, 60, 0.12);
}
.clicker-row-meta { font-size: 0.74rem !important; }
.clicker-row-meta b { color: #9ad4ff; font-weight: 700; }
.clicker-row.is-owned { opacity: 0.62; cursor: default; }
.clicker-row.is-off { opacity: 0.45; }

.clicker-focus {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.clicker-pops { position: absolute; inset: 0; overflow: hidden; }

.clicker-over {
  position: absolute;
  left: 50%;
  top: 10.5%;
  transform: translateX(-50%);
  width: min(34rem, calc(100% - 10rem));
  display: grid;
  gap: 0.7rem;
  pointer-events: none;
}

.clicker-over-card {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 0;
  padding: 0.95rem 0.4rem;
  border-radius: 1.2rem;
  background: rgba(12, 8, 34, 0.56);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
}

.clicker-over-card .clicker-stat {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 0 1.7rem;
}
.clicker-stat-cps {
  border-left: 1px solid rgba(255, 224, 138, 0.22);
}
.clicker-over-card small {
  display: block;
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(238, 242, 255, 0.62);
  font-weight: 700;
}
.clicker-stat-cps small { color: rgba(255, 224, 138, 0.72); }
.clicker-over-card strong {
  display: block;
  font-family: var(--font-mc);
  font-size: 2.1rem;
  line-height: 1.18;
  letter-spacing: 0.06em;
  color: #f4f7ff;
  -webkit-font-smoothing: none;
  font-variant-numeric: tabular-nums;
}
.clicker-int { color: #f4f7ff; }
.clicker-dec {
  color: #7ee8ff;
  padding-left: 0.04em;
}
.clicker-dec i {
  display: inline-block;
  width: 0.32em;
  text-align: center;
  font-style: normal;
  color: #b8f4ff;
  transform: translateY(-0.06em);
}
.clicker-suf {
  color: #ffe08a;
  margin-left: 0.14em;
  letter-spacing: 0.04em;
}
.clicker-stat-cps .clicker-int { color: #ffe9a8; }
.clicker-stat-cps .clicker-dec { color: #ffc45a; }
.clicker-stat-cps .clicker-dec i { color: #ffe08a; }

.clicker-questbar {
  padding: 0.55rem 0.7rem 0.65rem;
  border-radius: 0.9rem;
  background: rgba(12, 8, 34, 0.55);
  border: 1px solid rgba(126, 200, 255, 0.18);
  box-shadow: 0 0 24px rgba(54, 95, 255, 0.16);
}

.clicker-questbar-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
  font-family: var(--font-mc);
  font-size: 0.78rem;
  color: #dce7ff;
}

.clicker-questbar-track {
  height: 0.7rem;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(8, 6, 24, 0.7);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.clicker-questbar-track i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #365FFF, #7ec8ff 55%, #ffe08a);
  box-shadow: 0 0 12px rgba(126, 200, 255, 0.45);
  transition: width 0.18s ease;
}

.clicker-totem,
.clicker-totem-banner {
  position: absolute;
  font-family: var(--font-mc);
  color: #fff;
  letter-spacing: 1px;
  -webkit-font-smoothing: none;
  -moz-osx-font-smoothing: grayscale;
  text-shadow: 0 2px 0 #2a1b08, 0 0 12px rgba(255, 224, 138, 0.45);
  pointer-events: none;
  white-space: nowrap;
}

.clicker-totem {
  font-size: 1.15rem;
  animation: clicker-totem 1.15s cubic-bezier(0.18, 0.9, 0.28, 1) forwards;
}

.clicker-totem.is-crit { color: #ffe08a; font-size: 1.35rem; }
.clicker-totem.is-gold { color: #ffe08a; }

.clicker-totem-banner {
  left: 50%;
  top: 38%;
  font-size: 1.7rem;
  animation: clicker-totem-banner 1.5s cubic-bezier(0.16, 0.84, 0.32, 1) forwards;
}

@keyframes clicker-totem {
  0% { transform: translate(-50%, 10px) scale(0.35) rotate(-12deg); opacity: 0; }
  18% { transform: translate(-50%, -8px) scale(1.35) rotate(8deg); opacity: 1; }
  38% { transform: translate(-50%, -18px) scale(1.05) rotate(-3deg); }
  100% { transform: translate(-50%, -72px) scale(0.92) rotate(0deg); opacity: 0; }
}

@keyframes clicker-totem-banner {
  0% { transform: translate(-50%, 24px) scale(0.2) rotate(-18deg); opacity: 0; filter: brightness(2); }
  22% { transform: translate(-50%, -6px) scale(1.45) rotate(8deg); opacity: 1; }
  48% { transform: translate(-50%, -16px) scale(1.08) rotate(-2deg); }
  100% { transform: translate(-50%, -64px) scale(0.96); opacity: 0; }
}

.clicker-chip {
  position: absolute;
  left: 50%;
  bottom: 16%;
  transform: translateX(-50%);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(12, 8, 34, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-family: var(--font-display);
}

.clicker-goldcast {
  position: absolute;
  left: 50%;
  top: 57%;
  transform: translate(-50%, 0);
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  pointer-events: none;
  text-align: center;
}

.clicker-goldcast[hidden] { display: none; }

.clicker-goldcast strong {
  font-family: var(--font-mc);
  font-size: clamp(1.85rem, 4.4vw, 3.15rem);
  line-height: 1;
  letter-spacing: 0.1em;
  margin-right: -0.1em;
  color: #ffe08a;
  -webkit-font-smoothing: none;
  text-shadow:
    0 3px 0 #2a1b08,
    3px 0 0 #2a1b08,
    -2px 0 0 #2a1b08,
    0 0 22px rgba(255, 196, 90, 0.55);
}

.clicker-goldcast.is-live strong {
  animation: clicker-gold-pulse 0.64s steps(2, end) infinite;
}

.clicker-gold-aura {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  background:
    radial-gradient(ellipse 62% 52% at 50% 48%, transparent 55%, rgba(255, 196, 90, 0.16) 100%);
  box-shadow:
    inset 0 0 70px 12px rgba(255, 180, 60, 0.18),
    inset 0 0 160px 42px rgba(255, 196, 90, 0.32);
}

body.is-gold-cube .clicker-gold-aura { opacity: 1; }

.clicker-goldwatch-col {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
}

.clicker-goldwatch {
  position: relative;
  width: 4.4rem;
  height: 4.4rem;
  image-rendering: pixelated;
  background:
    linear-gradient(#1a1208, #1a1208) padding-box,
    repeating-linear-gradient(90deg, #f6b53c 0 4px, #7a4a10 4px 8px) border-box;
  border: 4px solid transparent;
  box-shadow:
    0 0 0 2px #2a1b08,
    0 0 18px rgba(255, 196, 90, 0.28),
    inset 0 0 0 2px #3a2610;
}

.clicker-goldwatch-ticks {
  position: absolute;
  inset: 6px;
  background:
    repeating-conic-gradient(
      from -2deg,
      #ffe08a 0 6deg,
      transparent 6deg 30deg
    );
  -webkit-mask: radial-gradient(circle, transparent 58%, #000 59%);
  mask: radial-gradient(circle, transparent 58%, #000 59%);
}

.clicker-goldwatch-hand {
  position: absolute;
  left: 50%;
  top: 14%;
  width: 4px;
  height: 38%;
  margin-left: -2px;
  background: #ffe08a;
  box-shadow: 0 0 0 1px #2a1b08;
  transform-origin: 50% 92%;
  transform: rotate(0deg);
}

.clicker-goldcast.is-live .clicker-goldwatch-hand {
  animation: clicker-watch-spin 7s linear forwards;
}

.clicker-goldwatch-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: #ffe08a;
  box-shadow: 0 0 0 2px #2a1b08;
}

.clicker-goldcast em {
  font-style: normal;
  font-family: var(--font-mc);
  font-size: 1.45rem;
  color: #ffe08a;
  -webkit-font-smoothing: none;
  text-shadow: 0 2px 0 #2a1b08;
  min-width: 0;
  text-align: center;
}

@keyframes clicker-gold-pulse {
  50% { filter: brightness(1.35); }
}

@keyframes clicker-watch-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .clicker-goldcast.is-live strong,
  .clicker-goldcast.is-live .clicker-goldwatch-hand { animation: none; }
}

.clicker-run {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.clicker-run-main {
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}

.clicker-goal,
.clicker-vault,
.clicker-stats {
  margin: 0 1rem 0.75rem;
}

.clicker-goal-top,
.clicker-vault-row,
.clicker-stats li {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  font-size: 0.86rem;
}

.clicker-bar-track {
  height: 0.55rem;
  margin: 0.45rem 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.clicker-bar-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #365FFF, #7ec8ff);
}

.clicker-jobs,
.clicker-stages {
  overflow: auto;
  padding: 0 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}

.clicker-jobs { list-style: none; }

.clicker-jobs li {
  display: grid;
  gap: 0.2rem;
  padding: 0.55rem 0.6rem;
  border-radius: 0.7rem;
  background: rgba(8, 6, 24, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(238, 242, 255, 0.55);
  font-size: 0.82rem;
}

.clicker-job-top {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.clicker-job-top strong { color: #fff; font-family: var(--font-display); }
.clicker-job-top em { font-style: normal; font-family: var(--font-mc); font-size: 0.72rem; color: #9db6ff; }
.clicker-jobs .is-now { color: #eef2ff; box-shadow: inset 3px 0 0 #365FFF; background: rgba(54, 95, 255, 0.16); }
.clicker-jobs .is-done { color: #9fe7b4; opacity: 0.78; }
.clicker-job-bar {
  display: block;
  height: 0.32rem;
  border-radius: 99px;
  overflow: hidden;
  background: rgba(8, 6, 24, 0.55);
}

.clicker-job-bar b {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #365FFF, #7ec8ff);
}

.clicker-intro { z-index: 94; }

.clicker-intro-card {
  position: relative;
  width: min(34rem, 100%);
  padding: 1.6rem 1.5rem 1.3rem;
  border-radius: 1.2rem;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(28, 22, 72, 0.96), rgba(12, 8, 34, 0.96));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
}

.clicker-intro-card > *:not(.cta-glow) { position: relative; z-index: 1; }

.clicker-intro-card h2 {
  font-family: var(--font-display);
  font-size: 1.7rem;
  margin: 0.15rem 0 0.55rem;
}

.clicker-intro-list {
  display: grid;
  gap: 0.55rem;
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
}

.clicker-intro-list li {
  padding: 0.55rem 0.65rem;
  border-radius: 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  color: var(--color-muted-foreground);
  font-size: 0.9rem;
  line-height: 1.45;
}

.clicker-intro-list strong { color: #fff; }

.clicker-intro-link { margin-top: 0.9rem; }

.clicker-intro .store-modal-actions { margin-top: 1.15rem; }

.clicker-stages li {
  display: grid;
  grid-template-columns: 1.7rem 1fr;
  gap: 0.45rem;
  align-items: center;
  padding: 0.28rem 0.4rem;
  border-radius: 0.5rem;
  color: rgba(238, 242, 255, 0.42);
  font-size: 0.82rem;
}

.clicker-stages em { font-style: normal; }
.clicker-stages .is-done { color: #9fe7b4; }
.clicker-stages .is-now {
  color: #fff;
  font-weight: 700;
  background: rgba(54, 95, 255, 0.22);
  box-shadow: inset 3px 0 0 #365FFF;
}
.clicker-stages span { font-family: var(--font-mc); font-size: 0.72rem; color: #9db6ff; }

.clicker-stats { list-style: none; display: grid; gap: 0.35rem; }
.clicker-stats li {
  padding: 0.4rem 0.55rem;
  border-radius: 0.6rem;
  background: rgba(8, 6, 24, 0.28);
}
.clicker-stats strong { font-family: var(--font-mc); color: #fff; }
.clicker-reforge { width: calc(100% - 2rem); margin: 0 1rem 0.45rem; }
.clicker-note { padding: 0 0 0.15rem; }
.clicker-run-main > .clicker-note { padding: 0 1rem 0.8rem; }
.clicker-empty {
  margin: 0.45rem 0 0;
  color: var(--color-muted-foreground);
  font-size: 0.8rem;
}

.clicker-vault {
  flex: 0 0 auto;
  margin: 0.35rem 0.7rem 0.75rem;
  padding: 0.8rem 0.8rem 0.7rem;
  border-radius: 0.95rem;
  background:
    linear-gradient(180deg, rgba(246, 181, 60, 0.1), transparent 2.2rem),
    rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(246, 181, 60, 0.16);
}

.clicker-vault-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.clicker-vault-head small {
  font-family: var(--font-mc);
  font-size: 0.72rem;
  color: #ffe08a;
}

.clicker-vault-actions {
  display: grid;
  gap: 0.4rem;
  margin: 0.65rem 0 0.35rem;
}

.clicker-vault-actions .btn-bevel {
  width: 100%;
}

.clicker-tickets {
  margin-top: 0.7rem;
  display: grid;
  gap: 0.3rem;
  font-size: 0.78rem;
  color: var(--color-muted-foreground);
}

.clicker-tickets code,
.clicker-code {
  font-family: var(--font-mc);
  color: #ffe08a;
}

.clicker-code {
  font-size: 1.6rem;
  letter-spacing: 0.18em;
  text-align: center;
  margin: 0.6rem 0 0.8rem;
}

.clicker-dock { display: none; }

.clicker-about {
  position: relative;
  z-index: 8;
  padding: 3.5rem 0 1rem;
}

.clicker-about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.clicker-about-card {
  position: relative;
  padding: 1.3rem 1.2rem 1.15rem;
  overflow: visible;
}

.clicker-about-card > *:not(.cta-glow) { position: relative; z-index: 1; }

.clicker-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #e8f0ff;
  margin-top: 0.65rem;
}

.clicker-slider {
  display: grid;
  gap: 0.4rem;
  margin: 0.85rem 0;
  color: #e8f0ff;
  font-size: 0.86rem;
}

.clicker-slider input[type="range"] {
  width: 100%;
  accent-color: #365FFF;
}

.clicker-forge-card {
  position: relative;
  width: min(34rem, 100%);
  padding: 1.5rem 1.4rem 1.25rem;
  border-radius: 1.15rem;
  overflow: hidden;
  background: linear-gradient(180deg, #1d4aa3 0%, #10224f 100%);
  border: 1px solid rgba(130, 180, 255, 0.28);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45);
  color: #e8f0ff;
}

.clicker-forge-stage {
  position: relative;
  margin: 0 0 0.85rem;
}

.clicker-forge-view {
  position: relative;
  height: 16.5rem;
  border-radius: 0.9rem;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 38% 28%, rgba(255, 140, 220, 0.38), transparent 56%),
    radial-gradient(ellipse at 72% 74%, rgba(80, 140, 255, 0.42), transparent 52%),
    linear-gradient(180deg, #4a1a68 0%, #1a2048 58%, #10162e 100%);
  border: 1px solid rgba(255, 176, 232, 0.22);
  box-shadow: inset 0 0 40px rgba(80, 40, 120, 0.35);
}

.clicker-forge-view canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.clicker-forge-flash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 48%, #fff 0%, #ffd0f0 28%, transparent 68%);
  opacity: 0;
}

#clicker-forge.is-boom .clicker-forge-flash {
  animation: forge-flash 0.58s ease-out forwards;
}

#clicker-forge.is-boom .clicker-forge-card {
  animation: forge-shake 0.42s ease-out;
}

@keyframes forge-flash {
  0% { opacity: 0.92; }
  100% { opacity: 0; }
}

@keyframes forge-shake {
  0% { transform: translate3d(0, 0, 0); }
  20% { transform: translate3d(-3px, 2px, 0); }
  40% { transform: translate3d(3px, -1px, 0); }
  60% { transform: translate3d(-2px, 1px, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.clicker-forge-card > *:not(.cta-glow):not(.clicker-forge-scan) { position: relative; z-index: 1; }

.clicker-forge-scan {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      180deg,
      transparent 0 10px,
      rgba(126, 200, 255, 0.05) 10px 11px
    );
  opacity: 0.45;
}

#clicker-forge.is-running .clicker-forge-scan {
  animation: clicker-scan 1.1s linear infinite;
}

#clicker-forge.is-running .clicker-forge-card {
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), 0 0 40px rgba(255, 140, 220, 0.2), 0 0 36px rgba(126, 200, 255, 0.18);
}

#clicker-forge.is-running .clicker-forge-view {
  box-shadow: inset 0 0 40px rgba(80, 40, 120, 0.35), 0 0 28px rgba(255, 140, 220, 0.18);
}

@keyframes clicker-scan {
  from { transform: translateY(-12%); }
  to { transform: translateY(12%); }
}

.clicker-forge-card h2 {
  font-family: var(--font-display);
  font-size: 1.55rem;
}

.clicker-forge-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0.8rem 0 0.2rem;
  font-size: 0.84rem;
  color: var(--color-muted-foreground);
}

.clicker-forge-meta strong { color: #fff; font-family: var(--font-mc); }

.clicker-forge-quote {
  min-height: 2.4rem;
  color: #ffe08a;
  font-family: var(--font-mc);
  font-size: 0.86rem;
}

.clicker-forge-stream {
  min-height: 7.2rem;
  margin: 0.8rem 0;
  padding: 0.7rem;
  border-radius: 0.6rem;
  background: #0b1638;
  color: #7ec8ff;
  font-family: var(--font-mc);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  line-height: 1.45;
  overflow: hidden;
  white-space: pre;
}

.clicker-forge-out {
  margin: 1rem 0 0.4rem;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.55rem;
  color: #ffe08a;
  text-shadow: 0 0 18px rgba(255, 224, 138, 0.35);
}

.clicker-tickets {
  max-height: 18rem;
  overflow: auto;
  margin-top: 0.75rem;
}

.clicker-tickets li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "code code" "amt cmd";
  gap: 0.35rem 0.5rem;
  align-items: center;
  padding: 0.5rem 0.55rem;
  border-radius: 0.7rem;
  background: rgba(8, 6, 24, 0.4);
}

.clicker-ticket-code { grid-area: code; text-align: left; padding: 0.28rem 0.45rem; border-radius: 0.5rem; }
.clicker-ticket-amt { grid-area: amt; color: #ffe08a; font-family: var(--font-mc); font-size: 0.72rem; }
.clicker-ticket-cmd { grid-area: cmd; padding: 0.28rem 0.5rem; border-radius: 0.5rem; }

.clicker-copy {
  cursor: pointer;
  user-select: all;
  border: 0;
  background: rgba(255, 224, 138, 0.08);
  color: #ffe08a;
  font-family: var(--font-mc);
  letter-spacing: 0.08em;
}

.clicker-copy:hover { background: rgba(255, 224, 138, 0.16); }

button.clicker-code.clicker-copy {
  display: block;
  width: 100%;
  padding: 0.45rem 0.6rem;
  border-radius: 0.7rem;
}

.site-radio {
  --radio-vol: 50%;
  position: fixed;
  left: max(1.15rem, env(safe-area-inset-left, 0px));
  bottom: max(1.15rem, env(safe-area-inset-bottom, 0px));
  z-index: 68;
  width: min(28.75rem, calc(100vw - 2.3rem));
  display: grid;
  grid-template-columns: 4.35rem minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.8rem 0.85rem;
  border-radius: 1.2rem;
  overflow: hidden;
  background: rgba(12, 8, 34, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: auto;
}

.site-radio > *:not(.cta-glow) { position: relative; z-index: 1; }
.site-radio > .cta-glow { z-index: 0; }

.site-radio-art {
  width: 4.35rem;
  height: 4.35rem;
  border-radius: 0.85rem;
  background:
    radial-gradient(circle at 30% 30%, #7ec8ff, transparent 55%),
    linear-gradient(160deg, #365FFF, #10224f);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  background-size: cover;
  background-position: center;
}

.site-radio.is-playing .site-radio-art {
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.16),
    0 0 0 3px rgba(54, 95, 255, 0.18);
}

.site-radio-meta small {
  display: block;
  font-family: var(--font-mc);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9db6ff;
  -webkit-font-smoothing: none;
}

.site-radio-meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.12rem;
  line-height: 1.15;
}

.site-radio-meta span {
  display: block;
  font-size: 0.82rem;
  color: var(--color-muted-foreground);
}

.site-radio-time {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.4rem;
  font-family: var(--font-mc);
  font-size: 0.74rem;
  color: #c9d6ff;
  -webkit-font-smoothing: none;
}

.site-radio-bar {
  display: block;
  height: 0.32rem;
  border-radius: 99px;
  background: rgba(8, 6, 24, 0.7);
  overflow: hidden;
}

.site-radio-bar b {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #365FFF, #7ec8ff);
}

.site-radio-side {
  display: grid;
  gap: 0.45rem;
  justify-items: end;
}

.site-radio-ctrl {
  display: flex;
  gap: 0.35rem;
}

.site-radio-ctrl button,
.site-radio-mute {
  width: 2.35rem;
  height: 2.35rem;
  border: 0;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
}

.site-radio-ctrl button:hover,
.site-radio-mute:hover {
  background: rgba(54, 95, 255, 0.35);
}

.site-radio-mute svg {
  width: 1.2rem;
  height: 1.2rem;
  display: block;
  margin: 0 auto;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-radio-mute.is-off .spk-w1,
.site-radio-mute.is-off .spk-w2,
.site-radio-mute.is-low .spk-w2 { opacity: 0.18; }

.site-radio-vol {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.site-radio-vol-slide {
  display: grid;
  grid-template-columns: 5.6rem 1.7rem;
  gap: 0.3rem;
  align-items: center;
  font-family: var(--font-mc);
  font-size: 0.72rem;
  color: #c9d6ff;
  -webkit-font-smoothing: none;
}

.site-radio-vol-slide input[type="range"] {
  width: 100%;
  height: 0.42rem;
  margin: 0;
  appearance: none;
  border-radius: 99px;
  background:
    linear-gradient(90deg, #365FFF var(--radio-vol), rgba(8, 6, 24, 0.72) var(--radio-vol));
  cursor: pointer;
}

.site-radio-vol-slide input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(54, 95, 255, 0.28);
}

.site-radio-vol-slide input[type="range"]::-moz-range-thumb {
  width: 0.85rem;
  height: 0.85rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
}

body[data-page="clicker"] .hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 8rem;
  z-index: 5;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, #1b1248);
}

body.is-gold-cube .clicker-stage .hero-wash {
  box-shadow: inset 0 0 120px rgba(255, 196, 90, 0.32);
  background:
    radial-gradient(ellipse 50% 40% at 50% 48%, rgba(255, 196, 90, 0.18), transparent 62%);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
