/* ============================================================
   DARKLOOT — Season 01
   ============================================================ */

/* pixel display faces (Google Fonts, OFL) vendored locally */
@font-face {
  font-family: "Jersey 10";
  src: url("../fonts/jersey-10.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Pixelify Sans";
  src: url("../fonts/pixelify-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0b0d12;
  --ink-2: #0e1016;
  --panel: rgba(23, 26, 35, 0.74);
  --panel-2: rgba(31, 35, 48, 0.68);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --gold: #ffd447;
  --gold-hi: #fff1b8;
  --gold-deep: #c99a12;
  --violet: #b57cff;
  --violet-deep: #4c2a7a;
  --mint: #6ee06a;
  --sky: #4aa8ff;
  --danger: #ff5d6c;
  --text: #eef1f8;
  --muted: #8b93a7;
  --muted-2: #6b7286;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 24px 70px -30px rgba(0, 0, 0, 0.95);
  --display: "Jersey 10", "Pixelify Sans", var(--body);
  --body: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pixel: "Jersey 10", "Pixelify Sans", var(--body);
  --pixel-ui: "Pixelify Sans", var(--body);
  --pxc: polygon(
    5px 0, calc(100% - 5px) 0, calc(100% - 5px) 5px, 100% 5px,
    100% calc(100% - 5px), calc(100% - 5px) calc(100% - 5px),
    calc(100% - 5px) 100%, 5px 100%, 5px calc(100% - 5px),
    0 calc(100% - 5px), 0 5px, 5px 5px
  );
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

::selection { background: rgba(246, 196, 83, 0.28); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #06070c; }
::-webkit-scrollbar-thumb { background: #22263a; border-radius: 20px; border: 2px solid #06070c; }
::-webkit-scrollbar-thumb:hover { background: #333950; }

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 999;
  background: var(--gold);
  color: #120c02;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus { top: 14px; }

/* ============================================================
   BACKGROUND LAYERS
   ============================================================ */

#embers {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}

.bg-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  display: block;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.b1 {
  width: 46vw; height: 46vw;
  min-width: 340px; min-height: 340px;
  left: -12vw; top: -14vw;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.55), transparent 68%);
  animation: drift1 26s ease-in-out infinite alternate;
}

.b2 {
  width: 40vw; height: 40vw;
  min-width: 300px; min-height: 300px;
  right: -10vw; top: 4vw;
  background: radial-gradient(circle, rgba(246, 196, 83, 0.35), transparent 68%);
  animation: drift2 31s ease-in-out infinite alternate;
}

.b3 {
  width: 52vw; height: 52vw;
  min-width: 360px; min-height: 360px;
  left: 22vw; bottom: -28vw;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.16), transparent 70%);
  animation: drift3 37s ease-in-out infinite alternate;
}

@keyframes drift1 { to { transform: translate3d(8vw, 6vh, 0) scale(1.12); } }
@keyframes drift2 { to { transform: translate3d(-7vw, 9vh, 0) scale(0.92); } }
@keyframes drift3 { to { transform: translate3d(4vw, -7vh, 0) scale(1.08); } }

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
  opacity: 0.5;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ============================================================
   NAV
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  padding: 14px 0;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}

.nav.is-stuck {
  background: rgba(5, 6, 10, 0.78);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: 0.11em;
  font-size: 17px;
  white-space: nowrap;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--gold);
  border: 1px solid rgba(246, 196, 83, 0.35);
  border-radius: 11px;
  background: radial-gradient(circle at 50% 20%, rgba(246, 196, 83, 0.18), rgba(246, 196, 83, 0.02));
  box-shadow: 0 0 20px -6px rgba(246, 196, 83, 0.6), inset 0 0 12px -6px rgba(246, 196, 83, 0.8);
}
.brand-mark svg { width: 20px; height: 20px; }

.brand-name span { color: var(--gold); }

.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 12px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); background: rgba(255, 255, 255, 0.06); }
.icon-btn[aria-pressed="false"] .wave { opacity: 0.15; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.25s, border-color 0.25s, color 0.2s;
  white-space: nowrap;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.btn:active { transform: translateY(1px) scale(0.995); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-hi), var(--gold) 46%, var(--gold-deep));
  color: #171004;
  box-shadow: 0 10px 34px -12px rgba(246, 196, 83, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  font-weight: 700;
}
.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform 0.7s ease;
  z-index: -1;
}
.btn-primary:hover::before { transform: translateX(120%); }
.btn-primary:hover { box-shadow: 0 16px 44px -12px rgba(246, 196, 83, 0.95); transform: translateY(-1px); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--line-2);
  color: var(--text);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(246, 196, 83, 0.4); }

.btn-lg { padding: 15px 26px; font-size: 15px; border-radius: 14px; }
.btn-sm { padding: 8px 13px; font-size: 12.5px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; }

.btn-wallet {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-2);
  padding: 10px 16px;
  font-size: 13.5px;
}
.btn-wallet:hover { border-color: rgba(246, 196, 83, 0.45); background: rgba(246, 196, 83, 0.07); }
.btn-wallet.is-connected { border-color: rgba(61, 220, 151, 0.35); background: rgba(61, 220, 151, 0.07); }

.wallet-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}
.btn-wallet.is-connected .wallet-dot {
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.14), 0 0 12px var(--mint);
  animation: pulseDot 2.4s infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 3px rgba(61, 220, 151, 0.14), 0 0 10px var(--mint); }
  50% { box-shadow: 0 0 0 6px rgba(61, 220, 151, 0.05), 0 0 16px var(--mint); }
}

.wallet-balance {
  font-family: var(--body);
  font-weight: 700;
  font-size: 12px;
  color: var(--gold);
  padding-left: 10px;
  margin-left: 2px;
  border-left: 1px solid var(--line-2);
}

/* in-game DARK balance chip in the nav */
.nav-loot-gain {
  position: absolute;
  right: 8px;
  top: -6px;
  opacity: 0;
  color: var(--mint);
  font-weight: 800;
  font-size: 11.5px;
  text-shadow: 0 0 12px rgba(110, 224, 106, 0.55);
  pointer-events: none;
}
.nav-loot-gain.is-on { animation: lootGain 1.4s ease forwards; }
@keyframes lootGain {
  0% { opacity: 0; transform: translateY(8px); }
  20% { opacity: 1; }
  70% { opacity: 1; transform: translateY(-14px); }
  100% { opacity: 0; transform: translateY(-22px); }
}

/* in-game mining balance (DARK) */
.nav-flousk {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 12px;
  border: 1px solid rgba(61, 220, 151, 0.32);
  background: linear-gradient(180deg, rgba(61, 220, 151, 0.13), rgba(61, 220, 151, 0.035));
  color: var(--mint);
  font-family: var(--body);
  font-weight: 700;
  font-size: 12.5px;
  line-height: 1;
  white-space: nowrap;
}
.nav-flousk[hidden] { display: none; }
.nav-flousk svg { width: 15px; height: 15px; flex: none; opacity: 0.85; }
.nav-flousk img.nav-token {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 50%;
  object-fit: cover;
  background: #0b0a12;
  box-shadow:
    0 0 0 1px rgba(255, 200, 90, 0.4),
    0 0 10px rgba(255, 170, 40, 0.28);
}
.nav-flousk b {
  font-size: 13px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.nav-flousk small {
  font-size: 9.5px;
  letter-spacing: 0.08em;
  opacity: 0.7;
  margin-left: 4px;
}
.nav-flousk.is-bump { animation: lootBump 0.5s ease; }

/* ============================================================
   HERO
   ============================================================ */

.hero {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 40px;
  align-items: center;
  min-height: calc(100vh - 80px);
  padding: 40px 0 60px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(246, 196, 83, 0.24);
  background: rgba(246, 196, 83, 0.06);
  padding: 7px 14px;
  border-radius: 100px;
  margin-bottom: 26px;
  font-weight: 500;
}
.eyebrow .sep { color: var(--muted-2); }

.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(246, 196, 83, 0.7);
  animation: pulseDot2 2s infinite;
}
@keyframes pulseDot2 {
  0% { box-shadow: 0 0 0 0 rgba(246, 196, 83, 0.6); }
  70% { box-shadow: 0 0 0 8px rgba(246, 196, 83, 0); }
  100% { box-shadow: 0 0 0 0 rgba(246, 196, 83, 0); }
}

h1 {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(42px, 6.1vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  text-wrap: balance;
}
h1 em {
  font-style: normal;
  background: linear-gradient(100deg, #fff 10%, var(--gold) 45%, #d97706 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 6px 30px rgba(246, 196, 83, 0.25));
}

.lede {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 33em;
  margin: 0 0 32px;
}
.lede b { color: var(--text); font-weight: 600; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }

.contract {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px 8px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.028);
  max-width: 100%;
  margin-bottom: 34px;
}
.contract-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--muted-2);
  font-weight: 700;
}
.contract code {
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 12px;
  color: #c8cede;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-btn {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  border-radius: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  flex: none;
}
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn:hover { color: var(--gold); border-color: rgba(246, 196, 83, 0.4); }
.copy-btn.is-done { color: var(--mint); border-color: rgba(61, 220, 151, 0.4); }

.hero-stats {
  display: flex;
  gap: 34px;
  list-style: none;
  margin: 0;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
}
.hero-stats li { display: flex; flex-direction: column; gap: 2px; }
.hero-stats b {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}
.hero-stats span { font-size: 11.5px; color: var(--muted-2); letter-spacing: 0.04em; }

/* ART */

.hero-art {
  position: relative;
  min-height: 460px;
  display: grid;
  place-items: center;
}

.art-halo {
  position: absolute;
  width: 74%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(74, 168, 255, 0.2), rgba(181, 124, 255, 0.14) 42%, transparent 68%);
  filter: blur(34px);
  animation: haloPulse 7s ease-in-out infinite;
}
@keyframes haloPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.07); opacity: 1; }
}

/* ---------- pixel hero scene (Mini Hero style) ---------- */

.pixel-scene {
  position: relative;
  width: min(540px, 100%);
  display: grid;
  place-items: center;
  z-index: 3;
  animation: floatY 7s ease-in-out infinite;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.pixel-art { width: 100%; }

.pixel-svg {
  width: 100%;
  height: auto;
  overflow: visible;
  shape-rendering: crispEdges;
  filter: drop-shadow(0 28px 30px rgba(0, 0, 0, 0.65));
}

.scene-glow {
  position: absolute;
  left: 72%;
  top: 44%;
  width: 56%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(74, 168, 255, 0.45), rgba(139, 92, 246, 0.22) 45%, transparent 68%);
  filter: blur(24px);
  opacity: 0.65;
  animation: sceneGlow 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes sceneGlow {
  0%, 100% { opacity: 0.45; transform: translate(-50%, -50%) scale(0.94); }
  50% { opacity: 0.85; transform: translate(-50%, -50%) scale(1.06); }
}

.px-hero { animation: pxBob 2.4s steps(2, end) infinite; }
@keyframes pxBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

.px-cape {
  transform-box: fill-box;
  transform-origin: 85% 8%;
  animation: pxCape 3.6s steps(3, end) infinite alternate;
}
@keyframes pxCape {
  from { transform: rotate(-1.2deg); }
  to { transform: rotate(1.4deg); }
}

.px-gem {
  transform-box: fill-box;
  transform-origin: 50% 55%;
  animation: pxGem 3s steps(3, end) infinite;
}
@keyframes pxGem {
  0%, 100% { opacity: 0.93; }
  50% { opacity: 1; }
}

.px-spark { animation: pxTwinkle 2.6s steps(2, end) infinite; }
@keyframes pxTwinkle {
  0%, 55%, 100% { opacity: 0; }
  25% { opacity: 1; }
}

.scene-tag,
.scene-chip {
  position: absolute;
  z-index: 4;
  font-family: var(--pixel-ui);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  background: rgba(23, 26, 35, 0.92);
  color: var(--gold);
  padding: 7px 11px 5px;
  font-size: 13px;
  line-height: 1;
  clip-path: var(--pxc);
  box-shadow: inset 0 0 0 2px rgba(255, 212, 71, 0.45), 0 5px 0 rgba(0, 0, 0, 0.45);
}
.scene-tag { top: 5%; left: 1%; }
.scene-tag--alt {
  top: 12%;
  right: 2%;
  left: auto;
  color: var(--mint);
  box-shadow: inset 0 0 0 2px rgba(110, 224, 106, 0.4), 0 5px 0 rgba(0, 0, 0, 0.45);
}

.scene-chip {
  color: var(--gold-hi);
  animation: chipFloat 5s ease-in-out infinite;
}
.scene-chip--a { left: 0; top: 26%; animation-delay: 0.6s; }
.scene-chip--b { right: 0; top: 59%; animation-delay: 1.8s; color: #cfe6ff; box-shadow: inset 0 0 0 2px rgba(127, 212, 255, 0.35), 0 5px 0 rgba(0, 0, 0, 0.45); }
@keyframes chipFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ============================================================
   MARQUEE
   ============================================================ */

.marquee {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(246, 196, 83, 0.04), rgba(139, 92, 246, 0.05), rgba(246, 196, 83, 0.04));
  padding: 13px 0;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 40px;
  animation: marquee 42s linear infinite;
}
.marquee-track span {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(238, 241, 247, 0.55);
  white-space: nowrap;
}
.marquee-track i { color: var(--gold); font-style: normal; margin: 0 8px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   SECTIONS
   ============================================================ */

.section {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 96px 0 8px;
}

.section-head { max-width: 640px; margin-bottom: 38px; }
.section-head .kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  font-weight: 600;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 700;
  line-height: 1.06;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}
.section-head p { margin: 0; color: var(--muted); font-size: 15.5px; }
.section-head p b { color: var(--gold); font-weight: 600; }

/* ============================================================
   PANELS
   ============================================================ */

.panel {
  position: relative;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.012) 40%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, rgba(246, 196, 83, 0.28), transparent 34%, transparent 68%, rgba(139, 92, 246, 0.22));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.75;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}
.panel-head h3 {
  font-family: var(--display);
  font-size: 18px;
  margin: 0;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 100px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}
.chip--gold { color: var(--gold); border-color: rgba(246, 196, 83, 0.3); background: rgba(246, 196, 83, 0.07); }
.chip--mint { color: var(--mint); border-color: rgba(61, 220, 151, 0.3); background: rgba(61, 220, 151, 0.07); }
.chip--violet { color: #c4b5fd; border-color: rgba(139, 92, 246, 0.34); background: rgba(139, 92, 246, 0.12); }
.chip--danger { color: var(--danger); border-color: rgba(255, 93, 108, 0.3); background: rgba(255, 93, 108, 0.08); }

/* ============================================================
   VAULT APP
   ============================================================ */

.vault-grid {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 18px;
  align-items: start;
}

.gate-list {
  display: grid;
  gap: 12px;
  margin-bottom: 22px;
}
.gate-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.022);
  transition: border-color 0.3s, background 0.3s;
}
.gate-step.is-done { border-color: rgba(61, 220, 151, 0.24); background: rgba(61, 220, 151, 0.045); }
.gate-step.is-active { border-color: rgba(246, 196, 83, 0.34); background: rgba(246, 196, 83, 0.05); }
.gate-step .gs-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  flex: none;
  border: 1px solid var(--line-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  background: rgba(0, 0, 0, 0.25);
}
.gate-step.is-done .gs-icon { color: var(--mint); border-color: rgba(61, 220, 151, 0.4); background: rgba(61, 220, 151, 0.1); }
.gate-step.is-active .gs-icon { color: var(--gold); border-color: rgba(246, 196, 83, 0.45); background: rgba(246, 196, 83, 0.1); }
.gate-step .gs-text { flex: 1; min-width: 0; }
.gate-step .gs-text b { display: block; font-weight: 600; font-size: 14px; }
.gate-step .gs-text span { display: block; font-size: 12.5px; color: var(--muted-2); }
.gate-step .gs-text span b { color: var(--gold); display: inline; font-weight: 600; }

.banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(246, 196, 83, 0.24);
  background: linear-gradient(120deg, rgba(246, 196, 83, 0.1), rgba(246, 196, 83, 0.02));
  font-size: 13px;
  color: #f3dfae;
  margin-bottom: 18px;
}
.banner svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--gold); }
.banner--mint {
  border-color: rgba(61, 220, 151, 0.24);
  background: linear-gradient(120deg, rgba(61, 220, 151, 0.09), rgba(61, 220, 151, 0.015));
  color: #b8f2d8;
}
.banner--mint svg { color: var(--mint); }
.banner b { color: inherit; }

/* timer */

.timer-card {
  text-align: center;
  border-radius: var(--radius);
  border: 1px solid rgba(139, 92, 246, 0.22);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(139, 92, 246, 0.18), transparent 68%),
    rgba(10, 8, 20, 0.6);
  padding: 22px 18px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.timer-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 4px);
  pointer-events: none;
  opacity: 0.5;
}
.timer-label {
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #b9a6f7;
  margin-bottom: 10px;
  font-weight: 600;
}
.timer {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-family: var(--display);
  font-weight: 700;
}
.timer .unit { display: flex; flex-direction: column; align-items: center; min-width: 56px; }
.timer .unit b {
  font-size: clamp(24px, 3.4vw, 34px);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff, #c4b5fd);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.timer .unit span {
  font-family: var(--body);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: var(--muted-2);
  margin-top: 6px;
  text-transform: uppercase;
}
.timer .col { font-size: 26px; color: rgba(196, 181, 253, 0.45); line-height: 1.2; }

/* stat tiles */

.stat-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat-row--3 { grid-template-columns: repeat(3, 1fr); }

.tile {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.022);
  padding: 14px 15px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.tile span { font-size: 10.5px; color: var(--muted-2); letter-spacing: 0.1em; text-transform: uppercase; }
.tile b {
  font-family: var(--display);
  font-size: 21px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tile b small { font-family: var(--body); font-size: 10.5px; color: var(--muted); font-weight: 500; margin-left: 3px; }
.tile--gold b { color: var(--gold); }
.tile--mint b { color: var(--mint); }

/* gem */

.gem-card { text-align: center; }
.gem-orb {
  width: 132px;
  height: 132px;
  margin: 6px auto 18px;
  position: relative;
  display: grid;
  place-items: center;
}
.gem-orb .orb-core {
  width: 78px;
  height: 78px;
  border-radius: 26px;
  transform: rotate(45deg);
  background: linear-gradient(140deg, #ddd6fe, #8b5cf6 45%, #4c1d95);
  box-shadow: 0 0 40px rgba(139, 92, 246, 0.55), inset 0 0 22px rgba(255, 255, 255, 0.35);
  animation: orbFloat 5s ease-in-out infinite;
  position: relative;
  z-index: 2;
}
.gem-orb .orb-core::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.35);
}
@keyframes orbFloat {
  0%, 100% { transform: rotate(45deg) translateY(0); }
  50% { transform: rotate(45deg) translateY(-7px); }
}
.gem-orb .orb-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(196, 181, 253, 0.35);
  animation: spin 26s linear infinite;
}
.gem-orb .orb-ring::after {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}
.gem-orb.is-ready .orb-core {
  background: linear-gradient(140deg, #fff3c4, #f6c453 45%, #a9721f);
  box-shadow: 0 0 60px rgba(246, 196, 83, 0.7), inset 0 0 22px rgba(255, 255, 255, 0.5);
  animation: orbFloat 5s ease-in-out infinite, orbReady 2.4s ease-in-out infinite;
}
@keyframes orbReady {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}
.gem-orb.is-ready .orb-ring { border-color: rgba(246, 196, 83, 0.5); }

/* ============================================================
   DOODLES — mini hero ornaments
   ============================================================ */

.doodle-svg { display: block; width: 100%; height: 100%; }

/* hero background: clouds, stars, coins */
.hero-doodles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-copy, .hero-art { position: relative; }
.hd { position: absolute; }
.hd-cloud { opacity: 0.45; }
.hd-c1 { top: 10%; left: -4px; width: 92px; animation: cloudDrift 26s ease-in-out infinite alternate; }
.hd-c2 { top: 64%; left: 40%; width: 62px; opacity: 0.3; animation: cloudDrift 34s ease-in-out infinite alternate-reverse; }
.hd-star { width: 20px; }
.hd-s1 { top: 16%; right: 44%; animation: twinkle 3.2s ease-in-out infinite; }
.hd-s2 { top: 46%; left: 32%; width: 14px; animation: twinkle 4.4s 0.8s ease-in-out infinite; }
.hd-s3 { top: 72%; right: 28%; width: 16px; animation: twinkle 3.8s 1.6s ease-in-out infinite; }
.hd-s4 { top: 8%; left: 18%; width: 12px; animation: twinkle 4.1s 0.4s ease-in-out infinite; }
.hd-s5 { top: 26%; right: 8%; width: 17px; animation: twinkle 3.5s 1.1s ease-in-out infinite; }
.hd-s6 { top: 58%; left: 8%; width: 12px; animation: twinkle 4.6s 2s ease-in-out infinite; }
.hd-s7 { top: 84%; left: 44%; width: 13px; animation: twinkle 3.9s 0.2s ease-in-out infinite; }
.hd-s8 { top: 38%; right: 38%; width: 11px; animation: twinkle 4.3s 1.4s ease-in-out infinite; }
.hd-s9 { top: 12%; left: 56%; width: 10px; animation: twinkle 3.6s 2.2s ease-in-out infinite; }
.hd-s10 { top: 66%; right: 12%; width: 12px; animation: twinkle 4.8s 0.6s ease-in-out infinite; }
.hd-coin { width: 26px; }
.hd-m1 { top: 32%; left: 48%; animation: doodleFloat 5s ease-in-out infinite; }
.hd-m2 { top: 6%; right: 4%; width: 18px; animation: doodleFloat 6.5s 1s ease-in-out infinite; }
.hd-spark { top: 24%; right: 20%; width: 40px; opacity: 0.85; animation: twinkle 4s 0.4s ease-in-out infinite; }

@keyframes cloudDrift {
  from { transform: translateX(0); }
  to { transform: translateX(26px); }
}
@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(0.9) rotate(0deg); }
  50% { opacity: 1; transform: scale(1.1) rotate(8deg); }
}
@keyframes doodleFloat {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-9px) rotate(5deg); }
}

/* two mini heroes flanking the headline */
.hero-title {
  display: flex;
  align-items: flex-end;
  gap: 14px;
  margin-bottom: 22px;
}
.hero-title h1 { margin: 0; flex: 1; min-width: 0; }
.doodle-hero {
  width: 62px;
  flex: none;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
}
.dh-left { animation: heroBob 6s ease-in-out infinite; }
.dh-right { transform: scaleX(-1); animation: heroBob 7s 1.2s ease-in-out infinite; }
@keyframes heroBob {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

/* hand-drawn arrow pointing at the primary CTA */
.cta-arrow {
  width: 48px;
  flex: none;
  align-self: center;
  animation: doodleFloat 5.5s ease-in-out infinite;
}

/* task cards: corner doodles + flags */
.card-flag {
  position: absolute;
  top: -15px;
  left: 14px;
  width: 22px;
  z-index: 2;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.35));
}
.card-doodle {
  position: absolute;
  right: 14px;
  bottom: 88px;
  width: 52px;
  pointer-events: none;
  transform: rotate(3deg);
  opacity: 0.95;
}

/* sparkles riding the gem orb */
.orb-spark { position: absolute; width: 26px; z-index: 3; animation: twinkle 2.8s ease-in-out infinite; }
.gem-orb .sp-a { top: -4px; right: 2px; }
.gem-orb .sp-b { bottom: 2px; left: -4px; width: 18px; animation-delay: 1.2s; }

/* page bottom: grass tufts + map path */
.page-ground { position: relative; margin-top: 20px; pointer-events: none; }
.map-strip {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  opacity: 0.85;
}
.pg-grass { position: absolute; bottom: 10px; width: 44px; }
.page-ground .g1 { left: 8%; }
.page-ground .g2 { left: 22%; bottom: 16px; width: 34px; }
.page-ground .g3 { right: 12%; }

/* ---- raid crew: card hover, jump, coins, grass ---- */
.card-spark {
  position: absolute;
  top: -10px;
  right: -6px;
  width: 18px;
  opacity: 0;
  transform: scale(0) rotate(0deg);
  pointer-events: none;
}
.task-card:hover .card-doodle .doodle-svg,
.ref-panel:hover .ref-mage .doodle-svg {
  animation: heroBounce 0.3s ease;
}
.task-card:hover .card-spark,
.ref-panel:hover .card-spark {
  animation: sparkPop 0.55s ease forwards;
}
@keyframes heroBounce {
  0% { translate: 0 0; }
  40% { translate: 0 -8px; }
  70% { translate: 0 2px; }
  100% { translate: 0 0; }
}
@keyframes sparkPop {
  0% { opacity: 0; transform: scale(0) rotate(0deg); }
  60% { opacity: 1; transform: scale(1.25) rotate(18deg); }
  100% { opacity: 0.95; transform: scale(1) rotate(38deg); }
}
.card-doodle.is-jump .doodle-svg,
.ref-mage.is-jump .doodle-svg { animation: heroJump 0.55s ease; }
@keyframes heroJump {
  0% { translate: 0 0; }
  30% { translate: 0 -16px; }
  55% { translate: 0 0; }
  75% { translate: 0 -7px; }
  100% { translate: 0 0; }
}
.fly-coin {
  position: fixed;
  width: 26px;
  z-index: 360;
  pointer-events: none;
  animation: coinFly 0.9s ease-out forwards;
}
@keyframes coinFly {
  0% { opacity: 0; transform: translateY(10px) scale(0.5); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translateY(-90px) scale(1.1) rotate(16deg); }
}
.card-grass {
  position: absolute;
  left: 8px;
  bottom: 4px;
  width: 34px;
  opacity: 0.75;
  pointer-events: none;
}

/* ---- dotted raid path with the walking hero ---- */
.raid-path {
  position: relative;
  grid-column: 1 / -1;
  height: 78px;
  margin: 0 0 6px;
  pointer-events: none;
}
.rp-track { position: absolute; left: 0; right: 0; top: 30px; }
.rp-track > .doodle-svg { width: 100%; height: 54px; }
.rp-walker {
  position: absolute;
  top: -32px;
  width: 30px;
  translate: -50% 0;
  transition: left 0.7s cubic-bezier(0.4, 1.4, 0.6, 1);
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.4));
}
.rp-label {
  position: absolute;
  right: 4px;
  top: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.rp-cloud { position: absolute; width: 64px; opacity: 0.35; }
.rp-c1 { left: 2%; top: 0; animation: cloudDrift 24s ease-in-out infinite alternate; }
.rp-c2 { right: 14%; top: 8px; width: 46px; opacity: 0.22; animation: cloudDrift 30s ease-in-out infinite alternate-reverse; }
.rp-coin { position: absolute; left: 46%; top: -4px; width: 22px; animation: doodleFloat 5.4s ease-in-out infinite; }
.rp-star { position: absolute; left: 68%; top: 2px; width: 16px; animation: twinkle 3.6s 0.6s ease-in-out infinite; }

/* ---- mage GEM glow + referral mage + king ---- */
.doodle-gem-glow { animation: gemGlow 1.8s ease-in-out infinite; }
@keyframes gemGlow {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.6; }
}
.ref-panel { overflow: visible; }
.ref-mage {
  position: absolute;
  right: 12px;
  top: -22px;
  width: 56px;
  pointer-events: none;
  transform: rotate(3deg);
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4));
}
.gem-king {
  position: absolute;
  right: 12px;
  top: -18px;
  width: 52px;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4));
}

/* ---- all-raids-complete party ---- */
.party-overlay {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: grid;
  place-items: center;
  background: rgba(6, 8, 14, 0.84);
  backdrop-filter: blur(3px);
  overflow: hidden;
}
.party-stage {
  width: min(430px, 92vw);
  text-align: center;
  padding: 30px 22px 26px;
  border-radius: var(--radius);
  border: 1px solid rgba(246, 196, 83, 0.35);
  background: var(--panel-2);
  box-shadow: var(--shadow);
  transform: translateY(14px) scale(0.94);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.3, 1.4, 0.5, 1), opacity 0.3s;
}
.party-overlay.is-in .party-stage { transform: none; opacity: 1; }
.party-chest { width: 148px; margin: 0 auto 4px; }
.party-chest .box-lid {
  transform-origin: 18% 96%;
  transition: transform 0.6s 0.25s cubic-bezier(0.3, 1.3, 0.5, 1);
}
.party-overlay.is-in .party-chest .box-lid { transform: translateY(-24px) rotate(-26deg); }
.party-heroes { display: flex; justify-content: center; align-items: flex-end; gap: 6px; margin: 2px 0 10px; }
.party-heroes .ph { width: 54px; opacity: 0; }
/* each hero has its own viewBox width — equalise rendered height, not width */
.party-heroes .ph-2 { width: 66px; }
.party-heroes .ph-3 { width: 58px; }
.party-heroes .ph-4 { width: 47px; }
.party-overlay.is-in .ph { animation: partyHop 0.65s cubic-bezier(0.3, 1.6, 0.5, 1) forwards; }
.party-overlay.is-in .ph-2 { animation-delay: 0.14s; }
.party-overlay.is-in .ph-3 { animation-delay: 0.28s; }
.party-overlay.is-in .ph-4 { animation-delay: 0.42s; }
@keyframes partyHop {
  0% { opacity: 0; transform: translateY(20px) scale(0.6); }
  60% { opacity: 1; transform: translateY(-9px) scale(1.06); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
.party-stage h3 { margin: 0 0 6px; }
.party-stage p { margin: 0 0 16px; font-size: 13px; color: var(--muted); }
.party-gem {
  position: absolute;
  top: -18px;
  width: 11px;
  height: 11px;
  border-radius: 2px;
  opacity: 0;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.25);
  animation: gemFall linear forwards;
}
@keyframes gemFall {
  0% { opacity: 0; transform: translateY(-20px) rotate(45deg); }
  8% { opacity: 1; }
  100% { opacity: 0.85; transform: translateY(108vh) rotate(225deg); }
}

@media (max-width: 900px) {
  .hero-title { gap: 8px; }
  .doodle-hero { width: 44px; }
  .cta-arrow { width: 34px; }
  .hd-m1, .hd-c2 { display: none; }
  .card-doodle { width: 40px; bottom: 76px; }
  .rp-c1, .rp-c2, .rp-coin, .rp-star { display: none; }
  .ref-mage { width: 46px; top: -16px; }
  .gem-king { width: 44px; top: -12px; }
}
@media (max-width: 640px) {
  .doodle-hero { width: 34px; }
  .dh-right { display: none; }
  .cta-arrow { display: none; }
  .hd-star, .hd-coin { display: none; }
  .raid-path { height: 56px; }
  .rp-track { top: 22px; }
  .rp-walker { width: 24px; top: -26px; }
  .rp-label { font-size: 10px; }
  .party-heroes .ph { width: 42px; }
  .party-heroes .ph-2 { width: 51px; }
  .party-heroes .ph-3 { width: 45px; }
  .party-heroes .ph-4 { width: 37px; }
  .pg-grass { display: none; }
  .map-strip { width: calc(100% - 24px); }
}
.gem-card h4 {
  font-family: var(--display);
  font-size: 17px;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
}
.gem-card p { margin: 0 0 18px; font-size: 12.5px; color: var(--muted); line-height: 1.55; }

/* progress */

.progress {
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
  margin: 10px 0 8px;
}
.progress > i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  box-shadow: 0 0 14px rgba(246, 196, 83, 0.5);
  transition: width 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.progress-meta { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted-2); }

.wallet-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  margin-bottom: 18px;
  font-size: 12.5px;
}
.wallet-chip .avatar {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 93, 108, 0.32);
  background:
    radial-gradient(circle at 50% 38%, rgba(255, 93, 108, 0.4), transparent 68%),
    linear-gradient(160deg, #241a2e, #12101a);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.35),
    0 0 18px rgba(255, 93, 108, 0.12);
}
.wallet-chip .avatar svg {
  height: 38px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
}
.wallet-chip .wc-main { flex: 1; min-width: 0; }
.wallet-chip .wc-main b { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 12.5px; letter-spacing: 0.02em; }
.wallet-chip .wc-main span { font-size: 11px; color: var(--muted-2); }
.wallet-chip .wc-amt { text-align: right; font-size: 11px; color: var(--muted-2); }
.wallet-chip .wc-amt b { display: block; color: var(--gold); font-size: 13px; font-variant-numeric: tabular-nums; }

/* locked overlay */

.locked {
  position: relative;
  border-radius: var(--radius);
  border: 1px dashed rgba(255, 255, 255, 0.14);
  background: rgba(8, 9, 15, 0.5);
  padding: 44px 26px;
  text-align: center;
}
.locked .lock-ico {
  width: 46px;
  height: 46px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}
.locked h3 { font-family: var(--display); font-size: 19px; margin: 0 0 8px; }
.locked p { margin: 0 auto 18px; max-width: 34em; color: var(--muted); font-size: 13.5px; }

/* ============================================================
   TASKS
   ============================================================ */

.tasks-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.task-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(246, 196, 83, 0.08), transparent 60%),
    var(--panel-2);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.task-card:hover {
  transform: translateY(-3px);
  border-color: rgba(246, 196, 83, 0.22);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(246, 196, 83, 0.06);
}
.task-card::after {
  content: "";
  position: absolute;
  top: -40%;
  right: -30%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.16), transparent 70%);
  pointer-events: none;
}

.tc-top { display: flex; align-items: center; gap: 12px; }
.tc-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-2);
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold);
  flex: none;
}
.tc-icon svg { width: 19px; height: 19px; }
.tc-icon--violet { color: #c4b5fd; }
.tc-icon--mint { color: var(--mint); }
.tc-icon--box { color: var(--gold); }

.tc-top h3 { font-size: 14.5px; margin: 0; font-weight: 600; line-height: 1.3; }
.tc-top p { margin: 2px 0 0; font-size: 12px; color: var(--muted-2); }

.task-card .tc-desc { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.55; }
.task-card .tc-desc b { color: var(--gold); }
.task-card .btn { margin-top: auto; }

.tc-reward {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  background: rgba(246, 196, 83, 0.08);
  border: 1px solid rgba(246, 196, 83, 0.2);
  padding: 4px 9px;
  border-radius: 100px;
  width: fit-content;
}

.task-card.is-done { border-color: rgba(61, 220, 151, 0.22); }
.task-card.is-done .tc-icon { color: var(--mint); border-color: rgba(61, 220, 151, 0.3); background: rgba(61, 220, 151, 0.07); }

/* box visual */

.box-visual {
  height: 74px;
  display: grid;
  place-items: center;
  position: relative;
}
.box-visual svg { height: 66px; width: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.6)); }
.task-card.is-ready .box-visual svg { animation: boxBob 3.2s ease-in-out infinite; }
@keyframes boxBob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(2deg); }
}

/* ============================================================
   VAULT MINING
   ============================================================ */

.mine-stage {
  position: relative;
  max-width: 880px;
  margin: 0 auto 18px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(74, 108, 180, 0.14), transparent 60%),
    linear-gradient(180deg, #0a0c13, #0b0e16 70%, #090b11);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 60px -44px #000;
  overflow: hidden;
}
.mine-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 64px 20px rgba(0, 0, 0, 0.5);
}
.mine-scene-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  filter: none;
}

.mine-bob {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: mineBob 2.6s steps(2, end) infinite;
}
@keyframes mineBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

.mine-beam { animation: mineBeamRise 3.2s ease-in-out infinite; }
@keyframes mineBeamRise {
  0%, 100% { opacity: 0.45; }
  50% { opacity: 0.95; }
}

.mine-glow { animation: mineGlowPulse 3.2s ease-in-out infinite; }
@keyframes mineGlowPulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

.torch-flame {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: torchFlicker 0.6s steps(3, end) infinite alternate;
}
@keyframes torchFlicker {
  from { opacity: 0.8; transform: scaleY(0.9); }
  to { opacity: 1; transform: scaleY(1.08); }
}

.mine-wrap {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
  align-items: start;
}

.mine-wall {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
  margin: 16px 0 14px;
}

.stone {
  position: relative;
  aspect-ratio: 1;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.09), transparent 46%),
    linear-gradient(160deg, #2c3142, #15171f 70%);
  box-shadow:
    inset 0 -6px 12px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 16px -12px #000;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.15s ease, border-color 0.2s, filter 0.2s;
  overflow: hidden;
}
.stone::after {
  content: "";
  position: absolute;
  inset: 16%;
  background:
    linear-gradient(52deg, transparent 46%, rgba(0, 0, 0, 0.55) 47%, rgba(0, 0, 0, 0.55) 49%, transparent 50%),
    linear-gradient(-58deg, transparent 47%, rgba(255, 255, 255, 0.1) 48%, transparent 49%);
  opacity: 0.85;
  pointer-events: none;
}
.stone:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 212, 71, 0.5);
  filter: brightness(1.12);
}
.stone:active { transform: translateY(0) scale(0.97); }
.stone.is-cleared {
  cursor: default;
  border-color: transparent;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}
.stone.is-cleared::after { display: none; }
.stone.is-cleared svg {
  width: 46%;
  height: 46%;
  filter: drop-shadow(0 0 10px currentColor);
}
.stone.is-pop svg { animation: gemPop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1); }
@keyframes gemPop {
  from { transform: scale(0.2) rotate(-35deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}

/* pickaxe strike */
.stone.is-hit {
  overflow: visible;
  z-index: 3;
  animation: stoneHit 0.26s steps(2, end);
}
@keyframes stoneHit {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-2px, 1px); }
  50% { transform: translate(2px, -1px); }
  75% { transform: translate(-1px, 2px); }
}

.mine-panel.is-shaking { animation: mineShake 0.3s steps(3, end); }
@keyframes mineShake {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-3px, 1px); }
  50% { transform: translate(3px, -1px); }
  75% { transform: translate(-1px, 2px); }
}

.hit-fx {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  display: grid;
  place-items: center;
}
.hit-flash {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 48%, rgba(255, 250, 220, 0.95), rgba(255, 200, 84, 0.45) 38%, transparent 70%);
  animation: hitFlash 0.24s ease-out forwards;
}
@keyframes hitFlash {
  from { opacity: 1; }
  to { opacity: 0; }
}
.hit-pick {
  position: absolute;
  width: 30px;
  height: 30px;
  color: #ffe6a3;
  filter: drop-shadow(0 0 7px rgba(255, 212, 71, 0.9));
  transform-origin: 82% 82%;
  opacity: 0;
  animation: pickStrike 0.34s cubic-bezier(0.3, 0.9, 0.3, 1) forwards;
}
.hit-pick svg { width: 100%; height: 100%; }
@keyframes pickStrike {
  0% { transform: rotate(-70deg) translate(10px, -8px) scale(1.1); opacity: 0; }
  30% { opacity: 1; }
  65% { transform: rotate(6deg) translate(0, 0) scale(1); }
  80% { opacity: 1; }
  100% { transform: rotate(16deg) translate(-2px, 2px); opacity: 0; }
}
.hit-crack {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 2px;
  width: 16px;
  border-radius: 2px;
  background: linear-gradient(90deg, #fffbe6, rgba(255, 214, 110, 0.8) 45%, transparent);
  transform-origin: 0 50%;
  transform: rotate(var(--a, 0deg)) scaleX(0);
  animation: crackGrow 0.34s ease-out forwards;
}
@keyframes crackGrow {
  from { transform: rotate(var(--a, 0deg)) scaleX(0); opacity: 1; }
  to { transform: rotate(var(--a, 0deg)) scaleX(1); opacity: 0; }
}
.hit-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 3px;
  height: 3px;
  margin: -1.5px;
  border-radius: 1px;
  background: #ffe6a3;
  box-shadow: 0 0 6px #ffd447;
  animation: sparkFly 0.44s ease-out forwards;
}
@keyframes sparkFly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(0.4); opacity: 0; }
}
.hit-dust {
  position: absolute;
  left: 50%;
  top: 55%;
  width: 7px;
  height: 7px;
  margin: -3.5px;
  border-radius: 50%;
  background: rgba(196, 186, 166, 0.5);
  filter: blur(1px);
  animation: dustPuff 0.52s ease-out forwards;
}
@keyframes dustPuff {
  0% { transform: translate(0, 0) scale(0.4); opacity: 0.9; }
  100% { transform: translate(var(--dx, 0px), var(--dy, 0px)) scale(2.2); opacity: 0; }
}

.res-wood { color: #d9a066; }
.res-stone { color: #9fb0c9; }
.res-iron { color: #cfe0f5; }
.res-gold { color: #ffd447; }

.mine-odds {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}
.odds-chip {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
}
.odds-chip.res-wood { border-color: rgba(217, 160, 102, 0.4); }
.odds-chip.res-stone { border-color: rgba(159, 176, 201, 0.35); }
.odds-chip.res-iron { border-color: rgba(207, 224, 245, 0.35); }
.odds-chip.res-gold { border-color: rgba(255, 212, 71, 0.4); }
.odds-chip.odds-chest {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #e6c8ff;
  border-color: rgba(181, 124, 255, 0.4);
  background: rgba(181, 124, 255, 0.08);
}
.odds-chip.odds-chest svg { width: 13px; height: 13px; }

.pick-list { display: grid; gap: 10px; }
.pick-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.025);
  padding: 14px;
  display: grid;
  gap: 10px;
}
.pick-card .pick-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pick-card .pick-head b { font-size: 14px; }
.pick-price {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.pick-price small { font-family: var(--body); font-size: 11px; color: var(--muted); font-weight: 500; }
.pick--gold { border-color: rgba(255, 212, 71, 0.22); background: linear-gradient(150deg, rgba(255, 212, 71, 0.07), rgba(255, 255, 255, 0.02)); }
.pick--diamond { border-color: rgba(74, 168, 255, 0.26); background: linear-gradient(150deg, rgba(74, 168, 255, 0.09), rgba(255, 255, 255, 0.02)); }

.owned-list { display: grid; gap: 8px; margin-top: 14px; }

.mine-pouch { grid-column: 1; }
.mine-craft { grid-column: 2; }

/* resources */
.res-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.res-slot {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
}
.res-slot.is-owned {
  border-color: color-mix(in srgb, currentColor 38%, transparent);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
.res-slot-art {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.24);
}
.res-slot.is-owned .res-slot-art {
  border-style: solid;
  border-color: color-mix(in srgb, currentColor 35%, transparent);
}
.res-slot-ico { width: 26px; height: 26px; display: grid; place-items: center; }
.res-slot-ico svg { width: 100%; height: 100%; display: block; }
.res-slot.is-empty .res-slot-ico { opacity: 0.16; }
.res-slot.is-owned .res-slot-ico { filter: drop-shadow(0 0 9px currentColor); }
.res-slot-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.res-slot-meta b { font-size: 13px; }
.res-slot-meta span {
  font-size: 11px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.res-actions { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.res-actions .btn { padding: 7px 8px; font-size: 11.5px; }

/* in-game burn counter + daily cap */
.burn-card {
  margin-bottom: 14px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 128, 64, 0.26);
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255, 110, 40, 0.1), rgba(255, 255, 255, 0.02));
}
.burn-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
}
.burn-flame {
  width: 18px;
  height: 18px;
  flex: none;
  color: #ff8a3d;
  display: grid;
  place-items: center;
}
.burn-flame svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 0 8px rgba(255, 120, 50, 0.45));
}
.burn-main { color: var(--text); min-width: 0; }
.burn-main b {
  font-family: var(--display);
  font-size: 16px;
  color: #ffb066;
  font-variant-numeric: tabular-nums;
}
.burn-tax {
  margin-left: auto;
  flex: none;
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ff9a55;
  border: 1px solid rgba(255, 140, 70, 0.3);
  padding: 3px 7px;
  border-radius: 999px;
}
.burn-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  margin: 10px 0 7px;
  overflow: hidden;
}
.burn-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffb066, #ff5d6c);
  transition: width 0.4s ease;
}
.burn-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px 10px;
  flex-wrap: wrap;
  font-size: 10.5px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.burn-card.is-capped {
  border-color: rgba(255, 93, 108, 0.4);
  background: linear-gradient(160deg, rgba(255, 93, 108, 0.12), rgba(255, 255, 255, 0.02));
}
.burn-card.is-capped .burn-bar i {
  background: linear-gradient(90deg, #ff5d6c, #a02030);
}

.sub-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 18px 0 10px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
}
.sub-head h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* heroes — one accent per tier, shared by slot, drop and glow */
.hero-common { color: #b9c9e2; }
.hero-uncommon { color: #6ee06a; }
.hero-rare { color: #4aa8ff; }
.hero-epic { color: #b57cff; }
.hero-legendary { color: #ffd447; }

.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.hero-slot {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
}
.hero-slot.is-owned {
  border-color: color-mix(in srgb, currentColor 38%, transparent);
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
}
.hero-slot-art {
  width: 56px;
  height: 72px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 42%, color-mix(in srgb, currentColor 26%, transparent), rgba(0, 0, 0, 0.26) 72%);
  overflow: hidden;
}
.hero-slot-art svg { height: 58px; width: auto; display: block; }
.hero-slot.is-empty .hero-slot-art svg { filter: grayscale(1); opacity: 0.35; }
.hero-slot.is-owned .hero-slot-art svg { filter: drop-shadow(0 0 8px currentColor); }
.hero-slot-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hero-slot-tier {
  font-size: 9.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: currentColor;
  font-variant-numeric: tabular-nums;
}
.hero-slot-meta b { font-size: 13px; }
.hero-slot-meta span { font-size: 11px; color: var(--muted-2); }
.hero-slot-meta .hero-slot-tier { color: currentColor; }

/* crafting */
.craft-list { display: grid; gap: 10px; }
.craft-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.022);
}
.craft-ico {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--gold);
}
.craft-ico svg { width: 21px; height: 21px; }
.craft-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.craft-info b { font-size: 13px; }
.craft-info span {
  font-size: 11px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
}
.craft-row .btn { padding: 7px 12px; font-size: 11.5px; }

/* chest / crafted hero reveal */
.hero-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 18px 16px 16px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, currentColor 40%, transparent);
  background: radial-gradient(circle at 50% 38%, color-mix(in srgb, currentColor 22%, transparent), rgba(0, 0, 0, 0.22) 72%);
  text-align: center;
  animation: heroDropIn 0.5s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.hero-drop-art { width: 96px; height: 144px; display: grid; place-items: center; }
.hero-drop-art svg { height: 124px; width: auto; filter: drop-shadow(0 8px 24px currentColor); }
.hero-drop b { font-size: 18px; color: var(--text); }
.hero-drop span { font-size: 11.5px; color: var(--muted); }
.hero-drop-tier {
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: currentColor !important;
  font-weight: 600;
}
@keyframes heroDropIn {
  from { opacity: 0; transform: translateY(14px) scale(0.92); }
  to { opacity: 1; transform: none; }
}

/* ============================================================
   TOP 10 BUY BATTLE
   ============================================================ */

.top10-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
.top10-board .panel-head { flex-wrap: wrap; }

/* two players listed should still fill the row: the podium is as wide as it
   needs, not stuck at three slots with a hole on the right */
.t10-podium {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.t10-pod {
  text-align: center;
  padding: 16px 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--panel-2);
}
.t10-pod--1 {
  border-color: rgba(246, 196, 83, 0.34);
  background: rgba(246, 196, 83, 0.06);
}
.t10-medal {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 8px;
  border-radius: 10px;
  font-family: var(--display);
  font-size: 19px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}
.t10-pod--1 .t10-medal {
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold));
  box-shadow: 0 10px 26px -14px rgba(255, 212, 71, 0.75);
}
.t10-pod--2 .t10-medal { color: #dfe4f0; background: rgba(255, 255, 255, 0.11); }
.t10-pod--3 .t10-medal { color: #f0c8a8; background: rgba(201, 154, 18, 0.18); }
.t10-pod-spent {
  display: block;
  margin-top: 4px;
  font-family: var(--pixel-ui);
  font-size: 15px;
  color: var(--gold);
}
/* the name a player chose is the headline of the row; the address under it is
   the proof, and only the site knows that wallet plays here */
.t10-name {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.t10-addr {
  display: block;
  font-size: 12px;
  color: #c8cede;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.t10-pod .t10-name { font-size: 13.5px; }
.t10-pod .t10-addr { color: var(--muted); }
.t10-items { display: block; margin-top: 5px; font-size: 11px; color: var(--muted); }
.t10-who { min-width: 0; }

.t10-list { display: grid; gap: 6px; }
.t10-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.025);
}
.t10-rank {
  font-family: var(--display);
  font-size: 15px;
  color: var(--muted-2);
  text-align: center;
}
.t10-spent {
  font-family: var(--pixel-ui);
  font-size: 14px;
  color: var(--text);
  text-align: right;
  white-space: nowrap;
}
.t10-spent small {
  margin-left: 4px;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--muted-2);
}
/* the number is what a wallet sent the vault, never what it holds: the label
   has to say so, because the header balance is a different number entirely */
.t10-what {
  display: block;
  margin-top: 2px;
  font-family: var(--display);
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.t10-row.is-me,
.t10-pod.is-me {
  border-color: rgba(246, 196, 83, 0.45);
  background: rgba(246, 196, 83, 0.08);
}
.t10-row.is-me .t10-rank { color: var(--gold); }

.top10-kit .t10-crown {
  position: absolute;
  right: 14px;
  top: 10px;
  width: 62px;
  opacity: 0.55;
  pointer-events: none;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.4));
}
.t10-kit-list {
  display: grid;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.t10-kit-list li { display: flex; align-items: center; gap: 11px; }
.t10-kit-list b { display: block; font-size: 13px; color: var(--text); font-weight: 600; }
.t10-kit-list small { display: block; font-size: 11.5px; color: var(--muted); }
.t10-kit-ico { flex: none; width: 20px; height: 20px; color: var(--gold); }
.t10-kit-ico svg { width: 100%; height: 100%; }

/* ============================================================
   REFERRALS
   ============================================================ */

.referral-wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }

.ref-link {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
.ref-link input {
  flex: 1;
  min-width: 0;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: #c8cede;
  padding: 12px 14px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  outline: none;
}
.ref-link input:focus { border-color: rgba(246, 196, 83, 0.45); }

.ref-code {
  display: inline-block;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  color: var(--gold);
  background: rgba(246, 196, 83, 0.08);
  border: 1px dashed rgba(246, 196, 83, 0.3);
  padding: 3px 8px;
  border-radius: 7px;
}

.ref-progress { margin-top: 18px; }

/* form fields */

.field { display: block; margin-top: 14px; }
.field > span {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 7px;
  font-weight: 600;
}
.field input {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus {
  border-color: rgba(246, 196, 83, 0.5);
  box-shadow: 0 0 0 3px rgba(246, 196, 83, 0.08);
}

/* ============================================================
   HOW / STEPS
   ============================================================ */

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: s;
}
.step-card {
  position: relative;
  padding: 24px 22px 26px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.008));
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.step-card:hover { border-color: rgba(246, 196, 83, 0.24); transform: translateY(-3px); }
.step-num {
  font-family: var(--display);
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(246, 196, 83, 0.4);
  display: block;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 15px; margin: 0 0 8px; font-weight: 600; }
.step-card p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
.step-card p b { color: var(--text); font-weight: 600; }

/* ============================================================
   FAQ
   ============================================================ */

.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.022);
  overflow: hidden;
  transition: border-color 0.25s, background 0.25s;
}
.faq details[open] { border-color: rgba(246, 196, 83, 0.25); background: rgba(246, 196, 83, 0.03); }
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 17px 20px;
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 19px;
  color: var(--gold);
  font-weight: 300;
  transition: transform 0.3s;
  flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p {
  margin: 0;
  padding: 0 20px 18px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}
.faq details p b { color: var(--text); }

/* ============================================================
   FINAL CTA / FOOTER
   ============================================================ */

.final-cta {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 100px auto 40px;
  padding: 66px 30px;
  border-radius: 30px;
  border: 1px solid rgba(246, 196, 83, 0.18);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(246, 196, 83, 0.16), transparent 62%),
    radial-gradient(ellipse at 50% 120%, rgba(139, 92, 246, 0.22), transparent 62%),
    #08080f;
  text-align: center;
  overflow: hidden;
}
.final-cta-glow {
  position: absolute;
  left: 50%;
  top: -40%;
  width: 70%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(246, 196, 83, 0.2), transparent 62%);
  filter: blur(50px);
  pointer-events: none;
}
.final-cta h2 {
  position: relative;
  font-family: var(--display);
  font-size: clamp(30px, 4.6vw, 52px);
  margin: 0 0 10px;
  letter-spacing: -0.01em;
}
.final-cta p { position: relative; margin: 0 0 26px; color: var(--muted); }
.final-cta .btn { position: relative; }

.footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 28px 0 40px;
}
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.brand--sm { font-size: 14px; }
.brand--sm .brand-mark { width: 28px; height: 28px; border-radius: 9px; }
.brand--sm .brand-mark svg { width: 17px; height: 17px; }
.footer-note { margin: 0; font-size: 11.5px; color: var(--muted-2); }
.footer-links { margin-left: auto; display: flex; gap: 20px; font-size: 12.5px; color: var(--muted); }
.footer-links a:hover { color: var(--gold); }

/* ============================================================
   MODAL
   ============================================================ */

.modal-root { position: fixed; inset: 0; z-index: 200; display: none; }
.modal-root.is-open { display: block; }

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 3, 6, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fadeIn 0.25s ease;
}
@keyframes fadeIn { from { opacity: 0; } }

.modal {
  position: relative;
  width: min(460px, calc(100% - 32px));
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  margin: 6vh auto 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 40%),
    #0b0c14;
  box-shadow: 0 40px 100px -20px #000, 0 0 0 1px rgba(246, 196, 83, 0.06);
  padding: 26px;
  animation: modalIn 0.35s cubic-bezier(0.2, 0.9, 0.2, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(0.97); }
}
.modal--wide { width: min(560px, calc(100% - 32px)); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
  z-index: 2;
}
.modal-close:hover { color: var(--text); background: rgba(255, 255, 255, 0.09); }
.modal-close svg { width: 15px; height: 15px; }

.modal h3 {
  font-family: var(--display);
  font-size: 22px;
  margin: 0 0 6px;
  text-align: center;
  letter-spacing: 0.01em;
}
.modal .modal-sub {
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  margin: 0 0 22px;
  line-height: 1.55;
}
.modal .modal-actions { display: grid; gap: 9px; margin-top: 20px; }

.detail-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
  font-size: 13px;
}
.detail-row:last-child { border-bottom: 0; }
.detail-row span { color: var(--muted); }
.detail-row b { font-weight: 600; text-align: right; word-break: break-all; }
.detail-row b.gold { color: var(--gold); }
.detail-row b.mono { font-family: ui-monospace, Consolas, monospace; font-size: 11.5px; color: #c8cede; }

/* wallet list */

.wallet-list { display: grid; gap: 9px; }
.wallet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.wallet-item:hover { border-color: rgba(246, 196, 83, 0.4); background: rgba(246, 196, 83, 0.06); transform: translateY(-1px); }
.wallet-item .wi-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--line-2);
  flex: none;
  font-size: 15px;
}
.wallet-item .wi-ico img { width: 22px; height: 22px; display: block; border-radius: 5px; }
.wallet-item .wi-name { font-weight: 600; font-size: 13.5px; }
.wallet-item .wi-tag { font-size: 11px; color: var(--muted-2); }
.wallet-item .wi-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; text-align: left; }
.wallet-item .wi-go { margin-left: auto; color: var(--muted-2); font-size: 11px; }

/* box open modal */

.open-stage {
  position: relative;
  height: 230px;
  display: grid;
  place-items: center;
  margin: 6px 0 4px;
}
.open-stage .box-svg { height: 150px; width: auto; transition: transform 0.4s; }
.open-stage.is-shaking .box-svg { animation: boxShake 0.6s ease-in-out; }
@keyframes boxShake {
  0%, 100% { transform: rotate(0) scale(1); }
  15% { transform: rotate(-5deg) scale(1.03); }
  35% { transform: rotate(5deg) scale(1.05); }
  55% { transform: rotate(-4deg) scale(1.06); }
  75% { transform: rotate(3deg) scale(1.08); }
}
.open-stage.is-open .box-lid { transform: translateY(-46px) rotate(-14deg); }
.open-stage .box-lid {
  transform-box: fill-box;
  transform-origin: 20% 100%;
  transition: transform 0.55s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.open-stage .box-burst {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.open-stage.is-open .box-burst { opacity: 1; }
.box-burst .rays {
  width: 220px;
  height: 220px;
  background: conic-gradient(from 0deg, rgba(246, 196, 83, 0.5) 0 6deg, transparent 6deg 30deg);
  border-radius: 50%;
  mask-image: radial-gradient(circle, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(circle, #000 20%, transparent 70%);
  animation: spin 12s linear infinite;
}

.reward-reveal {
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.45s 0.15s, transform 0.45s 0.15s;
}
.reward-reveal.is-in { opacity: 1; transform: none; }
.reward-reveal .rr-label { font-size: 10.5px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted-2); }
.reward-reveal .rr-amount {
  font-family: var(--display);
  font-weight: 900;
  font-size: 52px;
  line-height: 1.1;
  background: linear-gradient(180deg, #fff, var(--gold) 60%, #b9822c);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 8px 26px rgba(246, 196, 83, 0.4));
  font-variant-numeric: tabular-nums;
}
.reward-reveal .rr-amount small { font-family: var(--body); font-size: 14px; -webkit-text-fill-color: var(--muted); margin-left: 4px; }
.reward-reveal .rr-note { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* confetti canvas */
.confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 250;
  pointer-events: none;
}

/* ============================================================
   TOASTS
   ============================================================ */

.toast-root {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: flex-end;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 340px;
  padding: 13px 16px;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  background: rgba(14, 16, 25, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 18px 44px -14px #000;
  font-size: 13px;
  line-height: 1.45;
  color: #dfe4ee;
  animation: toastIn 0.35s cubic-bezier(0.2, 0.9, 0.2, 1);
  pointer-events: auto;
}
.toast.is-out { animation: toastOut 0.3s forwards; }
.toast .t-ico { width: 17px; height: 17px; flex: none; margin-top: 1px; }
.toast--ok { border-color: rgba(61, 220, 151, 0.35); }
.toast--ok .t-ico { color: var(--mint); }
.toast--err { border-color: rgba(255, 93, 108, 0.4); }
.toast--err .t-ico { color: var(--danger); }
.toast--info .t-ico { color: var(--gold); }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px) scale(0.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(24px) scale(0.96); } }

/* ============================================================
   SPINNER / MISC
   ============================================================ */

.spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: currentColor;
  animation: spin 0.7s linear infinite;
  flex: none;
}
.btn-ghost .spinner, .icon-btn .spinner { border-color: rgba(255, 255, 255, 0.2); border-top-color: var(--gold); }

.center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-8 { margin-top: 8px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.gold { color: var(--gold); }
.mint { color: var(--mint); }
.mono { font-family: ui-monospace, Consolas, monospace; }

.reveal { opacity: 0; transform: translateY(20px); }
.reveal.in { opacity: 1; transform: none; transition: opacity 0.75s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.75s cubic-bezier(0.2, 0.7, 0.2, 1); }
.steps .step-card:nth-child(2) { transition-delay: 0.07s; }
.steps .step-card:nth-child(3) { transition-delay: 0.14s; }
.steps .step-card:nth-child(4) { transition-delay: 0.21s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; gap: 10px; min-height: auto; padding-top: 28px; }
  .hero-art { order: -1; min-height: 380px; margin-bottom: -20px; }
  .pixel-scene { width: min(440px, 96%); }
  .hero-copy { text-align: left; }
  .vault-grid, .referral-wrap, .mine-wrap, .top10-wrap { grid-template-columns: 1fr; }
  .mine-pouch, .mine-craft { grid-column: auto; }
  .tasks-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .section { padding-top: 76px; }
}

@media (max-width: 640px) {
  .nav-inner { width: calc(100% - 24px); gap: 10px; }
  .brand-name { font-size: 15px; }
  .icon-btn { display: none; }
  .btn-wallet { padding: 9px 12px; font-size: 12.5px; }
  .wallet-balance { display: none !important; }
  .nav-flousk { padding: 8px 9px; font-size: 11.5px; gap: 5px; }
  .nav-flousk small { display: none; }
  .nav-flousk svg { width: 13px; height: 13px; }
  .nav-flousk img.nav-token { width: 14px; height: 14px; }
  .hero { width: calc(100% - 28px); padding-bottom: 40px; }
  .hero-art { min-height: 320px; }
  .pixel-scene { width: min(360px, 100%); }
  .scene-tag, .scene-chip { font-size: 11px; padding: 6px 8px 4px; }
  .scene-chip--b { display: none; }
  .hero-stats { gap: 18px; flex-wrap: wrap; }
  .hero-stats b { font-size: 18px; }
  .hero-stats span { font-size: 10.5px; }
  .hero-stats li { flex: 1 1 40%; }
  .contract { width: 100%; }
  .contract code { font-size: 10.5px; }
  .section { width: calc(100% - 28px); padding-top: 64px; }
  .panel { padding: 20px; border-radius: 18px; }
  .tasks-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .stat-row--3 { grid-template-columns: 1fr 1fr; }
  .t10-podium { grid-template-columns: 1fr; }
  .t10-pod--1 { order: -1; }
  .t10-row { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 8px; padding: 9px 10px; }
  .t10-who .t10-items { display: none; }
  .top10-kit .t10-crown { width: 46px; opacity: 0.4; }
  .mine-wall { gap: 6px; }
  .stone { border-radius: 7px; }
  .mine-stage { padding: 6px; border-radius: 16px; }
  .res-grid, .hero-grid { grid-template-columns: 1fr; gap: 9px; }
  .res-slot, .hero-slot { padding: 10px; }
  .craft-row { grid-template-columns: 34px minmax(0, 1fr) auto; padding: 10px; gap: 8px; }
  .hero-drop-art { width: 84px; height: 126px; }
  .hero-drop-art svg { height: 108px; }
  .timer .unit { min-width: 44px; }
  .modal { margin-top: 3vh; padding: 22px; }
  .final-cta { width: calc(100% - 28px); padding: 48px 22px; margin-top: 70px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
  .footer-links { margin-left: 0; }
  .toast-root { left: 12px; right: 12px; bottom: 12px; align-items: stretch; }
  .toast { max-width: none; }
}

@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;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============================================================
   PIXEL UI LAYER — Mini Hero flavour
   ============================================================ */

h1 {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(46px, 6.4vw, 84px);
  line-height: 0.92;
  letter-spacing: 0.015em;
}

.section-head h2,
.final-cta h2 {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: clamp(32px, 4.6vw, 54px);
  line-height: 0.96;
  letter-spacing: 0.012em;
}

.panel-head h3 {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.02em;
}

.brand-name {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: 0.06em;
}

.hero-stats b {
  font-family: var(--pixel);
  font-weight: 400;
  font-size: 27px;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
}

.eyebrow,
.section-head .kicker,
.chip,
.contract-label,
.footer-note {
  font-family: var(--pixel-ui);
}

.btn,
.nav-links a,
.footer-links a {
  font-family: var(--pixel-ui);
  letter-spacing: 0.03em;
}

.btn {
  border-radius: 0;
  clip-path: var(--pxc);
  font-size: 15px;
}
.btn-lg { border-radius: 0; font-size: 16px; }
.btn-sm { border-radius: 0; }

.btn-primary {
  box-shadow:
    inset 0 -4px 0 rgba(120, 74, 10, 0.5),
    inset 0 2px 0 rgba(255, 255, 255, 0.5),
    0 10px 30px -12px rgba(255, 212, 71, 0.75);
}

.eyebrow,
.chip,
.contract,
.icon-btn,
.copy-btn,
.brand-mark,
.tc-icon,
.wallet-item,
.modal {
  border-radius: 0;
  clip-path: var(--pxc);
}

.panel-head h3,
.modal h3,
.section-head h2 { text-wrap: balance; }

