/* ==========================================================================
   IdleCraft - site styles (no framework, no build step)
   Dark aurora theme: deep night blue, violet + aurora teal, logo gold for CTAs
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: dark;

  --bg: #060817;
  --bg-2: #0a0e27;
  --surface: rgba(20, 24, 62, 0.78);
  --surface-strong: rgba(28, 32, 82, 0.82);
  --surface-solid: #11153a;
  --border: rgba(165, 175, 255, 0.14);
  --border-strong: rgba(165, 175, 255, 0.28);

  --text: #eef1ff;
  --muted: #b3b9de;
  --faint: #8a91bd;

  --aurora: #3df5c1;
  --teal: #2dd4bf;
  --ice: #7dd3fc;
  --violet: #8b5cf6;
  --violet-soft: #b9a3ff;
  --gold: #ffcb3d;
  --gold-deep: #ff9f1c;
  --discord: #5865f2;
  --danger: #ff7a93;
  --success: #3df5c1;

  --grad-gold: linear-gradient(135deg, #ffe066 0%, #ffcb3d 40%, #ff9f1c 100%);
  --grad-coins: linear-gradient(90deg, #FFE259 0%, #FFA751 100%); /* IdleCoins */
  --grad-aurora: linear-gradient(120deg, #3df5c1 0%, #7dd3fc 45%, #a78bfa 100%);
  --grad-violet: linear-gradient(135deg, #7c3aed 0%, #4f46e5 55%, #0ea5e9 100%);

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 26px;
  --gutter: 16px;
  --maxw: 1160px;
  --header-h: 64px;

  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.7);
  --glow-violet: 0 0 0 1px rgba(167, 139, 250, 0.25), 0 20px 60px -25px rgba(139, 92, 246, 0.65);

  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

/* ---------- 2. Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--ice); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #b9e8ff; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.15; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }

:focus-visible {
  outline: 3px solid var(--ice);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(139, 92, 246, 0.45); color: #fff; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--gold);
  color: #1b1300;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- 3. Aurora backdrop (whole page) ---------- */
.backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 15% 0%, rgba(61, 245, 193, 0.10), transparent 70%),
    radial-gradient(55% 40% at 85% 5%, rgba(139, 92, 246, 0.18), transparent 70%),
    radial-gradient(70% 50% at 50% 100%, rgba(14, 165, 233, 0.10), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 55%, var(--bg) 100%);
}
.backdrop::before,
.backdrop::after {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70vh;
  filter: blur(60px);
  opacity: 0.35;
  background: conic-gradient(from 200deg at 50% 50%, transparent 0deg, rgba(61, 245, 193, 0.5) 60deg, transparent 120deg, rgba(139, 92, 246, 0.55) 200deg, transparent 260deg);
  animation: aurora-drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
.backdrop::after {
  inset: auto -10% -30% -10%;
  height: 60vh;
  opacity: 0.18;
  animation-duration: 36s;
  animation-direction: alternate-reverse;
}
@keyframes aurora-drift {
  0%   { transform: translate3d(-4%, 0, 0) rotate(0deg) scale(1); }
  100% { transform: translate3d(4%, 3%, 0) rotate(8deg) scale(1.08); }
}

/* Subtle star field */
.stars {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 12%, #dfe7ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 33% 42%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 36%, #cfe4ff 50%, transparent 51%),
    radial-gradient(1px 1px at 52% 70%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 8% 82%, #e8dcff 50%, transparent 51%),
    radial-gradient(1px 1px at 64% 90%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 72%, #fff 50%, transparent 51%);
  background-size: 640px 640px;
}

/* ---------- 4. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.container--narrow { max-width: 820px; }

.section { padding: 56px 0; position: relative; }
@media (min-width: 768px) { .section { padding: 84px 0; } }

.section-head { text-align: center; max-width: 680px; margin: 0 auto 32px; }
.section-head p { color: var(--muted); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(139, 92, 246, 0.12);
  color: var(--violet-soft);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2rem, 6vw, 3.4rem);
  letter-spacing: -0.02em;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 850;
  font-size: clamp(1.7rem, 4.6vw, 2.6rem);
}
.text-gradient {
  background: var(--grad-aurora);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-coins {
  background: var(--grad-coins);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .text-coins, .reward-list .text-coins { background: none; color: #FFC455; }
}
.lead { font-size: clamp(1.05rem, 2.4vw, 1.2rem); color: var(--muted); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.center { text-align: center; }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 640px) { .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- 5. Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(8, 10, 30, 0.82);
  border-bottom-color: var(--border);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand img { width: 36px; height: 36px; }
.brand span b { color: var(--gold); font-weight: 900; }

.nav { display: none; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 650;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(139, 92, 246, 0.2); }

.header-actions { display: none; align-items: center; gap: 8px; }

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.site-header.is-open .menu-toggle .icon-open { display: none; }
.site-header.is-open .menu-toggle .icon-close { display: block; }

.mobile-nav {
  display: none;
  padding: 8px 0 18px;
}
.site-header.is-open .mobile-nav { display: block; }
.mobile-nav ul { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 4px; }
.mobile-nav nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 650;
  background: rgba(255, 255, 255, 0.03);
}
.mobile-nav nav a[aria-current="page"] { background: rgba(139, 92, 246, 0.22); }
.mobile-nav .btn { width: 100%; }
/* The open menu scrolls on its own, so it always fits short (landscape) screens */
.site-header.is-open .mobile-nav {
  max-height: calc(100vh - var(--header-h));
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  overscroll-behavior: contain;
}
@media (max-height: 500px) {
  .mobile-nav ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mobile-nav nav a { min-height: 44px; }
  .mobile-nav .btn-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* 820px, not 760px: four nav items + IP + Discord need the room */
@media (min-width: 820px) {
  .nav, .header-actions { display: flex; }
  .menu-toggle, .mobile-nav, .site-header.is-open .mobile-nav { display: none; }
}

/* ---------- 6. Buttons / chips ---------- */
.btn {
  --btn-bg: rgba(255, 255, 255, 0.06);
  --btn-fg: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 750;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease, background-color 0.2s ease;
}
.btn:hover { color: var(--btn-fg); transform: translateY(-1px); filter: brightness(1.08); }
.btn:active { transform: translateY(0); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; filter: none; }

.btn--gold {
  --btn-bg: var(--grad-gold);
  --btn-fg: #241600;
  background: var(--grad-gold);
  border-color: rgba(255, 220, 120, 0.6);
  box-shadow: 0 10px 30px -12px rgba(255, 170, 30, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.btn--aurora {
  --btn-fg: #04121a;
  background: var(--grad-aurora);
  border-color: rgba(160, 255, 230, 0.55);
  box-shadow: 0 10px 30px -12px rgba(61, 245, 193, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}
.btn--discord {
  --btn-fg: #fff;
  background: var(--discord);
  border-color: rgba(160, 170, 255, 0.5);
  box-shadow: 0 10px 30px -14px rgba(88, 101, 242, 0.9);
}
.btn--ghost { background: rgba(255, 255, 255, 0.04); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 0.92rem; border-radius: 12px; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.08rem; border-radius: 16px; }
.btn--block { width: 100%; }

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

/* Copy-IP pill */
.ip-copy {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  max-width: 100%;
  padding: 8px 10px 8px 20px;
  border-radius: 18px;
  border: 1px solid var(--border-strong);
  background: rgba(10, 12, 36, 0.72);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: var(--glow-violet);
  color: var(--text);
  text-align: left;
  transition: border-color 0.2s ease, transform 0.15s ease;
}
.ip-copy:hover { border-color: rgba(125, 211, 252, 0.6); transform: translateY(-1px); }
.ip-copy__text { display: grid; line-height: 1.2; min-width: 0; }
.ip-copy__label { font-size: 0.72rem; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.ip-copy__ip { font-family: var(--font-display); font-size: 1.35rem; font-weight: 900; letter-spacing: 0.01em; overflow-wrap: anywhere; }
.ip-copy__ip .gold { color: #ffaa00; }
.ip-copy__icon {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--grad-gold);
  color: #241600;
}
.ip-copy__icon svg { width: 20px; height: 20px; }
.ip-copy.is-copied { border-color: rgba(61, 245, 193, 0.75); }
.ip-copy.is-copied .ip-copy__icon { background: var(--aurora); }

/* Status chip (players online) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(10, 12, 36, 0.6);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 650;
}
.chip__dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--faint);
}
.chip.is-online .chip__dot { background: var(--aurora); box-shadow: 0 0 0 4px rgba(61, 245, 193, 0.18); animation: pulse 2.2s ease-in-out infinite; }
.chip.is-online { color: var(--text); }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(61, 245, 193, 0.18); } 50% { box-shadow: 0 0 0 7px rgba(61, 245, 193, 0.04); } }

/* ---------- 7. Hero ---------- */
.hero {
  position: relative;
  margin-top: calc(var(--header-h) * -1);
  padding: calc(var(--header-h) + 40px) 0 72px;
  text-align: center;
  isolation: isolate;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("/assets/img/bg/sunset-768.webp");
  background-size: cover;
  background-position: center 30%;
}
@media (min-width: 961px) {
  .hero__bg { background-image: url("/assets/img/bg/sunset-1280.webp"); }
}
.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 23, 0.55) 0%, rgba(6, 8, 23, 0.25) 35%, rgba(6, 8, 23, 0.7) 78%, var(--bg) 100%),
    radial-gradient(60% 50% at 50% 45%, transparent 0%, rgba(6, 8, 23, 0.35) 100%);
}
.hero__logo {
  width: min(520px, 88%);
  margin: 0 auto 6px;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.55));
}
.hero__tagline {
  max-width: 620px;
  margin: 0 auto 22px;
  font-size: clamp(1.05rem, 2.8vw, 1.3rem);
  font-weight: 600;
  color: #e3e7ff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.6);
}
.hero__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 22px; }
.hero__ip { margin-bottom: 18px; }
.hero .btn-row { justify-content: center; }

/* Sub-page hero (vote/store/legal) */
.page-hero {
  position: relative;
  padding: 48px 0 24px;
  text-align: center;
}
@media (min-width: 768px) { .page-hero { padding: 72px 0 32px; } }
.page-hero::before {
  content: "";
  position: absolute;
  inset: calc(var(--header-h) * -1) 0 -40px 0;
  z-index: -1;
  background: url("/assets/img/bg/sunset-768.webp") center 25% / cover no-repeat;
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.6) 55%, transparent 100%);
}
.page-hero { isolation: isolate; }
.page-hero .lead { max-width: 640px; margin: 0 auto; }

/* ---------- 8. Cards ---------- */
.card {
  position: relative;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}
@media (min-width: 768px) { .card { padding: 28px; } }
.card h3 { font-size: 1.2rem; font-weight: 800; }
.card p:last-child { margin-bottom: 0; }

.card--glow { box-shadow: var(--glow-violet); }

.icon-badge {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.35), rgba(61, 245, 193, 0.18));
  border: 1px solid rgba(185, 163, 255, 0.35);
  color: #e9e2ff;
}
.icon-badge svg { width: 24px; height: 24px; }

/* ---------- 9. Season block ---------- */
.season {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background:
    radial-gradient(80% 60% at 0% 0%, rgba(139, 92, 246, 0.28), transparent 60%),
    radial-gradient(70% 60% at 100% 0%, rgba(61, 245, 193, 0.14), transparent 60%),
    rgba(14, 17, 48, 0.8);
  padding: 28px 18px;
  overflow: hidden;
}
@media (min-width: 768px) { .season { padding: 44px; } }
.season__head { text-align: center; margin-bottom: 26px; }
.season__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; color: var(--muted); font-weight: 600; margin: 0; }
.season__meta > span { display: inline-flex; align-items: center; gap: 8px; }
.season__meta svg { width: 18px; height: 18px; color: var(--violet-soft); }

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 520px;
  margin: 22px auto 0;
}
.countdown__cell {
  padding: 12px 4px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(6, 8, 23, 0.55);
  text-align: center;
}
.countdown__num {
  display: block;
  font-family: var(--font-display);
  font-variant-numeric: tabular-nums;
  font-size: clamp(1.5rem, 6vw, 2.3rem);
  font-weight: 900;
  line-height: 1.1;
}
.countdown__lbl { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.countdown-live {
  display: none;
  margin: 22px auto 0;
  max-width: 520px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid rgba(61, 245, 193, 0.45);
  background: rgba(61, 245, 193, 0.1);
  color: var(--text);
  font-weight: 750;
  text-align: center;
}
.season.is-live .countdown { display: none; }
.season.is-live .countdown-live { display: block; }

.features { margin-top: 28px; }
.feature { height: 100%; }
.feature h3 { margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.97rem; }

/* ---------- 10. Steps ---------- */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { position: relative; }
.step__num {
  display: block;
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
}
.step p { color: var(--muted); }
.kbd {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--text);
  white-space: nowrap;
}

/* CTA split */
.cta-card { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.cta-card .btn { align-self: flex-start; margin-top: auto; }
.cta-card--gold { border-color: rgba(255, 203, 61, 0.35); background: radial-gradient(90% 80% at 100% 0%, rgba(255, 170, 30, 0.16), transparent 60%), var(--surface); }
.cta-card--aurora { border-color: rgba(61, 245, 193, 0.3); background: radial-gradient(90% 80% at 100% 0%, rgba(61, 245, 193, 0.14), transparent 60%), var(--surface); }
.cta-card--discord { border-color: rgba(88, 101, 242, 0.45); background: radial-gradient(90% 80% at 100% 0%, rgba(88, 101, 242, 0.22), transparent 60%), var(--surface); }

/* ---------- 11. Vote page ---------- */
.vote-panel { text-align: center; }
.vote-progress {
  max-width: 420px;
  margin: 18px auto 0;
}
.vote-progress__bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.vote-progress__fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--grad-aurora);
  transition: width 0.4s ease;
}
.vote-progress__text { margin: 8px 0 0; font-size: 0.92rem; color: var(--muted); }

.vote-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr);
  margin-top: 28px;
}
@media (min-width: 560px) { .vote-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .vote-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.vote-site {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
  padding: 12px 14px 12px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.15s ease, background-color 0.2s ease;
}
.vote-site:hover { color: var(--text); border-color: rgba(125, 211, 252, 0.55); transform: translateY(-2px); background: var(--surface-strong); }
.vote-site__num {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: rgba(139, 92, 246, 0.2);
  color: var(--violet-soft);
  font-weight: 850;
  font-size: 0.95rem;
}
.vote-site__name { flex: 1; min-width: 0; font-weight: 750; overflow-wrap: anywhere; }
.vote-site__state { display: block; font-size: 0.8rem; font-weight: 600; color: var(--faint); }
.vote-site__cta {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--grad-gold);
  color: #241600;
  font-weight: 800;
  font-size: 0.88rem;
}
.vote-site__cta svg { width: 16px; height: 16px; }
.vote-site.is-done { border-color: rgba(61, 245, 193, 0.4); }
.vote-site.is-done .vote-site__num { background: rgba(61, 245, 193, 0.2); color: var(--aurora); }
.vote-site.is-done .vote-site__state { color: var(--aurora); }
.vote-site.is-done .vote-site__cta { background: rgba(255, 255, 255, 0.08); color: var(--text); }

.reward-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.reward-list li { display: flex; gap: 12px; align-items: flex-start; }
.reward-list .icon-badge { width: 40px; height: 40px; margin: 0; border-radius: 12px; flex: none; }
.reward-list .icon-badge svg { width: 20px; height: 20px; }
.reward-list strong { display: block; }
.reward-list span { color: var(--muted); font-size: 0.95rem; }

/* ---------- 12. Store page ---------- */
.buyer {
  max-width: 640px;
  margin: 0 auto 28px;
}
.field { display: grid; gap: 8px; }
.field label { font-weight: 750; }
.field__hint { margin: 0; font-size: 0.9rem; color: var(--faint); }
.input-wrap { position: relative; }
.input-wrap svg {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 20px; height: 20px;
  transform: translateY(-50%);
  color: var(--faint);
  pointer-events: none;
}
.input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px 0 44px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(6, 8, 23, 0.7);
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 650;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.input::placeholder { color: #6f77a3; font-weight: 500; }
.input:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 4px rgba(125, 211, 252, 0.18); }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 4px rgba(255, 122, 147, 0.15); }
.field__error { margin: 0; min-height: 1.4em; font-size: 0.9rem; font-weight: 650; color: var(--danger); }

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  max-width: 820px;
  margin: 0 auto 24px;
  padding: 14px 18px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: rgba(125, 211, 252, 0.08);
}
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.notice p { margin: 0; }
.notice--success { border-color: rgba(61, 245, 193, 0.5); background: rgba(61, 245, 193, 0.1); }
.notice--success svg { color: var(--aurora); }
.notice--warn { border-color: rgba(255, 203, 61, 0.45); background: rgba(255, 203, 61, 0.08); }
.notice--warn svg { color: var(--gold); }
.notice--error { border-color: rgba(255, 122, 147, 0.5); background: rgba(255, 122, 147, 0.08); }
.notice--error svg { color: var(--danger); }
.notice[hidden] { display: none; }

.packs {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 760px) { .packs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }

.pack {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 0;
  padding: 18px 12px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(139, 92, 246, 0.22), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
@media (min-width: 760px) { .pack { padding: 26px 20px 20px; } }
.pack:hover { transform: translateY(-3px); border-color: rgba(185, 163, 255, 0.45); box-shadow: var(--glow-violet); }
.pack--featured { border-color: rgba(255, 203, 61, 0.5); }
.pack__tag {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--grad-gold);
  color: #241600;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pack__img {
  width: min(140px, 80%);
  aspect-ratio: 1;
  margin: 6px auto 8px;
  object-fit: contain;
  filter: drop-shadow(0 14px 24px rgba(0, 0, 0, 0.5));
  transition: transform 0.25s ease;
}
.pack:hover .pack__img { transform: scale(1.05) rotate(-2deg); }
.pack__amount {
  margin: 0;
  background: var(--grad-coins);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4.4vw, 1.7rem);
  font-weight: 900;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.pack__unit { display: block; font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: transparent; }
.pack__bonus {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(61, 245, 193, 0.12);
  border: 1px solid rgba(61, 245, 193, 0.35);
  color: var(--aurora);
  font-size: 0.78rem;
  font-weight: 750;
}
.pack__bonus--none { visibility: hidden; }
.pack__price { margin: 14px 0 12px; display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 8px; }
.pack__now { font-size: 1.3rem; font-weight: 850; font-variant-numeric: tabular-nums; }
.pack__was { color: var(--faint); text-decoration: line-through; font-size: 0.95rem; }
.pack__sale { color: var(--aurora); font-size: 0.8rem; font-weight: 800; }
.pack .btn { width: 100%; margin-top: auto; }
.pack.is-busy .btn { cursor: progress; }

.skeleton {
  border-radius: var(--radius);
  min-height: 300px;
  border: 1px solid var(--border);
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.03) 30%, rgba(255, 255, 255, 0.08) 50%, rgba(255, 255, 255, 0.03) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.4s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.spinner {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2.5px solid rgba(36, 22, 0, 0.3);
  border-top-color: #241600;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.secure-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin: 22px 0 0;
  color: var(--faint);
  font-size: 0.9rem;
}
.secure-line span { display: inline-flex; align-items: center; gap: 6px; }
.secure-line svg { width: 16px; height: 16px; color: var(--aurora); }

.spend-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 14px 0 0; }
.spend-list li {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 0.9rem;
  font-weight: 650;
}

/* FAQ */
.faq { display: grid; gap: 10px; }
.faq details {
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 12px 18px;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding: 0 18px 16px; color: var(--muted); }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- 13. Prose (terms / privacy) ---------- */
.prose { color: #d8dcf5; }
.prose h2 { margin-top: 1.8em; font-size: 1.3rem; font-weight: 800; color: var(--text); }
.prose h2:first-child { margin-top: 0; }
.prose li { margin-bottom: 0.4em; }
.prose strong { color: var(--text); }
.prose .updated { color: var(--faint); font-size: 0.92rem; }

/* ---------- 14. Footer ---------- */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(10, 12, 36, 0.4), rgba(6, 8, 23, 0.95));
  padding: 44px 0 28px;
  font-size: 0.95rem;
}
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer ul a { display: inline-flex; align-items: center; min-height: 40px; }
.site-footer a:hover { color: var(--text); text-decoration: underline; }
.footer-brand p { color: var(--muted); max-width: 360px; }
.footer-bottom {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 6px;
  color: var(--faint);
  font-size: 0.82rem;
}
.footer-bottom p { margin: 0; }

/* ---------- 15. Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 80;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(61, 245, 193, 0.5);
  background: rgba(8, 12, 32, 0.95);
  color: var(--text);
  font-weight: 700;
  box-shadow: var(--shadow);
  transform: translate(-50%, 140%);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }

/* ---------- 16. 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound__code { font-family: var(--font-display); font-size: clamp(4rem, 18vw, 8rem); font-weight: 900; line-height: 1; margin: 0; }

/* ---------- 17. Small helpers ---------- */
.section--tight { padding-top: 8px; }
@media (min-width: 768px) { .section--tight { padding-top: 16px; } }
.mt-24 { margin-top: 24px; }
.h3 { font-size: 1.25rem; font-weight: 800; }
.chip svg { width: 16px; height: 16px; color: var(--violet-soft); }
.eyebrow svg { width: 14px; height: 14px; }
.vote-site__num svg { width: 18px; height: 18px; }
.vote-blocked { margin: 18px auto 0; text-align: left; }
.vote-tip { margin: 16px 0 0; font-size: 0.92rem; }
.footer-brand .brand { margin-bottom: 10px; }
.footer-brand .btn { margin-top: 4px; }
.step-tag {
  display: inline-grid;
  place-items: center;
  width: 28px; height: 28px;
  margin-right: 6px;
  border-radius: 9px;
  background: var(--grad-violet);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 900;
  vertical-align: 2px;
}
.step-tag[hidden] { display: none; }
.packs-title { font-size: 1.15rem; font-weight: 800; margin: 0 auto 16px; max-width: 640px; }
@media (min-width: 760px) { .packs-title { max-width: none; text-align: center; } }
.buyer label { font-size: 1.15rem; }
.how-list { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; color: var(--muted); }
.how-list strong { color: var(--text); }
.how-list li::marker { color: var(--violet-soft); font-weight: 800; }

/* ---------- 18. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* Tebex merchant-of-record line in the footer (Tebex footer requirement) */
.footer-bottom .footer-mor { color: var(--muted); }

/* ---------- Season rewards (/rewards) ---------- */
.rewards-hero-title { text-transform: uppercase; letter-spacing: 0.01em; }

/* Game-mode tabs */
.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 32px;
}
.mode-tabs[hidden] { display: none; }
.mode-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.mode-tab:not([disabled]):hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.mode-tab[aria-selected="true"],
.mode-tab[aria-selected="true"]:hover { background: var(--ice); border-color: var(--ice); color: #04121a; }
.mode-tab[disabled] { cursor: not-allowed; color: var(--faint); background: transparent; }
.mode-tab__soon {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--faint);
}
/* Phones: a clean 2x2 block on the page gutters instead of ragged centred rows */
@media (max-width: 599px) {
  .mode-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mode-tab { justify-content: center; padding: 0 12px; }
}

.rewards-head { margin: 0 0 24px; text-align: center; }
.rewards-head p { max-width: 60ch; margin: 0 auto; }
.rewards-title {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 3.6vw, 2rem);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.rewards-empty { max-width: 640px; margin: 0 auto; }
.rewards-empty p { margin: 0; color: var(--muted); }

/* Boards: rewards.js splits them into two columns of about the same height
   (Island Top + Prestige Top | Vote Top); the last card in each column
   stretches so both columns end on the same line. */
.reward-boards { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.reward-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.reward-col > .reward-board:last-child { flex-grow: 1; }
.reward-boards--1 { max-width: 640px; margin: 0 auto; }
@media (min-width: 960px) { .reward-boards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.reward-board { min-width: 0; }
.reward-board__head { margin-bottom: 16px; }
.reward-board__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.reward-board__desc { margin: 4px 0 0; font-size: 0.9rem; color: var(--muted); }
.reward-board__note { margin: 16px 0 0; font-size: 0.85rem; color: var(--muted); }

.reward-list-ranked { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.reward-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  min-height: 56px;
  padding: 8px 16px 8px 13px;
  border-radius: 8px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--border-strong);
  background: rgba(6, 8, 23, 0.45);
}
.reward-row--top { border-left-color: var(--ice); }
.reward-rank {
  flex: none;
  min-width: 3ch;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}
.reward-row--top .reward-rank { color: var(--text); }
.reward-row__prize { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; flex: 1; min-width: 0; }
.reward-coins {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.reward-coins__unit { font-size: 0.86em; font-weight: 800; }
.reward-paypal { margin-left: auto; font-size: 0.9rem; font-weight: 700; color: var(--text); white-space: nowrap; }
.reward-paypal__mark { color: var(--muted); }
/* Narrow phones: the PayPal amount drops under the IdleCoins, aligned left */
@media (max-width: 479px) { .reward-paypal { margin-left: 0; } }

.reward-rules { margin-top: 16px; }
.reward-rules__title {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.reward-rules__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
@media (min-width: 860px) { .reward-rules__list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
.reward-rules__list li { position: relative; max-width: 65ch; padding-left: 20px; color: var(--muted); }
.reward-rules__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(0.8em - 4px);
  width: 8px;
  height: 8px;
  background: var(--ice);
}

/* IdleCoins inside the vote page's muted reward text keeps its gold */
.reward-list .text-coins { color: transparent; font-size: inherit; }

/* Midlertidigt: ingen dekorative ikon-firkanter (erstattes af redesignet) */
.icon-badge { display: none !important; }

/* Midlertidigt: UI-ord som almindelig fed tekst i stedet for kode-chips (erstattes af redesignet) */
.kbd { display: inline; padding: 0; border: 0; background: none; font-family: inherit; font-weight: 700; color: var(--text); }

.vat-note { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
