* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #050d14;
  --panel: #061d24;
  --panel-border: #1a4247;
  --teal: #38bab3;
  --text-bright: #e7f2fb;
  --text-muted: #72818f;
  --chamfer: 12px;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Chakra Petch", sans-serif;
  background: var(--bg-dark);
  color: var(--text-bright);
  overflow-x: hidden;
}

.page {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  /* Scene glows/dinos intentionally overhang the page bottom (bottom: -Nvw);
     clip them so they can't spill below the page when it scrolls. */
  overflow: hidden;
}

/* ---------- Background layers ---------- */

.bg {
  position: absolute;
  pointer-events: none;
}

.bg-base {
  inset: 0;
  background: var(--bg-dark);
}

.bg-cave {
  inset: 0;
  background: url("assets/background.png") center top / cover no-repeat;
}

/* Both sides use the Figma hex PNG (alpha boosted 8x in
   hex-pattern-strong.png — the original is only ~10% alpha). */
/* Hex clusters — matched to Figma (frame 1440x1024, each node 376x342,
   inset 40px from its edge). Sized/positioned in viewport units so they
   scale with the rest of the scene instead of being fixed px. */
.hex {
  /* Pure vw so the cluster (and each hexagon in it) scales with screen
     width, like the scene images — no px cap. */
  width: 20vw;
  aspect-ratio: 376 / 342;
  background: center / contain no-repeat;
  z-index: 2; /* above the transparent scene layer so the thin lines show */
}

.hex-left {
  left: 2.8vw;
  top: 49%;
  background-image: url("assets/hex-pattern-strong.png");
  opacity: 0.14;
}

.hex-right {
  right: 2.8vw;
  top: 24%;
  background-image: url("assets/hex-right.svg");
  opacity: 0.1;
}

/* ---------- Bottom scene ---------- */

.scene {
  position: absolute;
  inset: 0;
  /* No z-index: keeping this out of its own stacking context lets the
     mix-blend-mode dinos/glows blend against the real page background
     instead of an isolated group (which was dimming the whole bg). */
  pointer-events: none;
  user-select: none;
}

.scene img {
  position: absolute;
  display: block;
}

/* All scene sizes and offsets use vw only, measured as fractions of the
   Figma mockup's width, so the composition scales uniformly with screen
   width — the trex is always the same % of the screen. */

/* Bright cyan "water" glow at the dodo's feet.
   Using -cut PNGs with real alpha so the arena bg shows through
   (mix-blend-mode can't punch through this fixed stacking context). */
/* Bright cyan "water" glow at the dodo's feet.
   Using -cut PNGs with real alpha so the arena bg shows through
   (mix-blend-mode can't punch through this fixed stacking context). */
.scene-glow-blue {
  bottom: -10vw;
  left: 37%;
  transform: translateX(-50%);
  width: 70vw;
  mix-blend-mode: screen;
  filter: brightness(1.9) saturate(1.35);
}

/* Extra punch for the cyan pool, layered over the glow image */
.water-glow {
  position: absolute;
  bottom: -7vw;
  left: 37%;
  transform: translateX(-50%);
  width: 46vw;
  height: 24vw;
  background: radial-gradient(
    ellipse 50% 50% at 50% 60%,
    rgba(40, 170, 255, 0.5),
    rgba(40, 170, 255, 0.18) 45%,
    transparent 72%
  );
}

/* Soft ambient teal light across the bottom */
.scene-glow-teal {
  bottom: -7vw;
  left: 50%;
  transform: translateX(-45%);
  width: 115vw;
  opacity: 0.85;
  mix-blend-mode: screen;
}

/* Palms: pre-cut transparent PNGs (see tools/process_assets.py) */
.palm-1 {
  bottom: 1.5vw;
  left: 6%;
  width: 26vw;
}

.palm-2 {
  bottom: 3vw;
  left: 25%;
  width: 20vw;
}

.palm-3 {
  bottom: 7vw;
  right: -3%;
  width: 24vw;
  opacity: 0.9;
}

.trex {
  bottom: -2vw;
  right: 8vw;
  width: 82vw;
  mix-blend-mode: screen;
  filter: brightness(1.5) contrast(1.05);
}

/* Cool backlight halo behind the dodo */
.dodo-glow {
  position: absolute;
  bottom: -6vw;
  left: 31%;
  transform: translateX(-50%);
  width: 34vw;
  height: 30vw;
  background: radial-gradient(
    ellipse 50% 50% at 50% 55%,
    rgba(170, 220, 255, 0.28),
    rgba(90, 170, 230, 0.12) 45%,
    transparent 72%
  );
}

.dodo {
  bottom: -1.5vw;
  left: 31%;
  transform: translateX(-50%);
  width: 27vw;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.8)) brightness(1.1);
}

.rocks {
  bottom: -1vw;
  left: -5vw;
  width: 36vw;
  mix-blend-mode: screen;
}

.bottom-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 18vh;
  background: linear-gradient(to bottom, transparent, rgba(2, 8, 9, 0.9));
}

/* ---------- Content ---------- */

.content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(72px, 12vh, 140px) 24px clamp(48px, 10vh, 96px);
}

.logo {
  width: clamp(260px, 25vw, 356px);
  height: auto;
  margin-bottom: clamp(28px, 5vh, 56px);
  filter: drop-shadow(0 0 40px rgba(56, 186, 179, 0.25));
}

.title {
  font-size: clamp(19px, 1.9vw, 24px);
  font-weight: 700;
  line-height: 1.33;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-bright);
  margin-bottom: 14px;
}

.subtitle {
  font-size: 14px;
  line-height: 20px;
  color: var(--text-muted);
  margin-bottom: 34px;
}

/* ---------- Signup form ---------- */

.signup {
  display: flex;
  align-items: stretch;
  gap: 0;
  width: min(320px, 100%);
  height: 40px;
}

/* Chamfered shape: border layer + inner layer, both clipped */
.input-shape,
.btn-shape {
  clip-path: polygon(
    var(--chamfer) 0,
    100% 0,
    100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%,
    0 100%,
    0 var(--chamfer)
  );
  padding: 1px;
  position: relative;
}

.input-inner,
.btn-inner {
  clip-path: polygon(
    calc(var(--chamfer) - 0.5px) 0,
    100% 0,
    100% calc(100% - var(--chamfer) + 0.5px),
    calc(100% - var(--chamfer) + 0.5px) 100%,
    0 100%,
    0 calc(var(--chamfer) - 0.5px)
  );
  height: 100%;
  display: flex;
  align-items: center;
}

.input-shape {
  flex: 1;
  background: var(--panel-border);
  margin-right: -14px;
}

.input-inner {
  background: #051920;
}

.input-inner input {
  width: 100%;
  height: 100%;
  padding: 0 24px 0 18px;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-bright);
  font-family: inherit;
  font-size: 14px;
  letter-spacing: 0.01em;
}

.input-inner input::placeholder {
  color: var(--text-muted);
}

.btn-shape {
  width: 104px;
  background: var(--teal);
  border: none;
  cursor: pointer;
  font-family: inherit;
  flex-shrink: 0;
}

.btn-inner {
  justify-content: center;
  background: linear-gradient(
      to bottom,
      rgba(56, 186, 179, 0.3),
      rgba(56, 186, 179, 0.4)
    ),
    var(--panel);
  box-shadow: inset 0 0 8px rgba(114, 233, 227, 0.25);
  color: var(--text-bright);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: filter 0.15s ease;
}

.btn-shape:hover .btn-inner {
  filter: brightness(1.25);
}

.btn-shape:active .btn-inner {
  filter: brightness(0.95);
}

.form-message {
  min-height: 20px;
  margin-top: 12px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--teal);
}

.form-message.error {
  color: #e07070;
}

/* ---------- Socials ---------- */

.socials {
  display: flex;
  gap: 20px;
  margin-top: 18px;
}

.socials a {
  color: var(--text-bright);
  opacity: 0.78;
  transition: color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
  display: inline-flex;
}

.socials a:hover {
  color: var(--teal);
  opacity: 1;
  transform: translateY(-2px);
}

/* ---------- $100 daily giveaway ---------- */

.giveaway {
  display: flex;
  gap: 14px;
  margin-top: 30px;
  width: min(560px, 100%);
  align-items: stretch;
}

/* Chamfered panel: 1px teal edge + dark inner (same trick as the input) */
.give-panel {
  position: relative;
  flex: 1;
  clip-path: polygon(
    var(--chamfer) 0,
    100% 0,
    100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%,
    0 100%,
    0 var(--chamfer)
  );
  background: var(--panel-border);
  padding: 1px;
}

.give-panel > * {
  position: relative;
  z-index: 1;
}

.give-panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  clip-path: inherit;
  background: linear-gradient(180deg, rgba(7, 171, 180, 0.06), rgba(5, 13, 20, 0.9)),
    #051920;
  box-shadow: inset 0 0 20px rgba(7, 171, 180, 0.08);
}

.give-panel[hidden],
.give-stats[hidden] {
  display: none;
}

.countdown-panel,
.winners-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 16px;
  text-align: left;
}

.countdown-panel {
  align-items: center;
  text-align: center;
  justify-content: center;
}

.give-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.give-prize {
  font-size: 20px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 0.02em;
  text-shadow: 0 0 14px rgba(56, 186, 179, 0.5);
}

.give-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.give-stats {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.give-stats b {
  display: inline-block;
  color: var(--teal);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.give-stats b.is-tick {
  animation: stat-tick 0.5s ease;
}

@keyframes stat-tick {
  0% {
    transform: scale(1);
    color: var(--teal);
  }
  35% {
    transform: scale(1.18);
    color: #9ff5ef;
  }
  100% {
    transform: scale(1);
    color: var(--teal);
  }
}

.give-stats .stat-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(56, 186, 179, 0.5);
}

/* Social-proof join toast — bottom left, cut-corner with real edge stroke */
.join-toast {
  --join-cut: 8px;
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 40;
  transform: translateY(10px);
  max-width: min(280px, calc(100vw - 32px));
  padding: 1px; /* stroke width — outer fill shows through as the border */
  background: linear-gradient(180deg, #38bab3, #367a7b);
  color: #c5d8e0;
  font: 500 12px/1.3 "Chakra Petch", sans-serif;
  letter-spacing: 0.02em;
  clip-path: polygon(
    var(--join-cut) 0,
    100% 0,
    100% calc(100% - var(--join-cut)),
    calc(100% - var(--join-cut)) 100%,
    0 100%,
    0 var(--join-cut)
  );
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.join-toast-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  background: rgba(6, 22, 28, 0.94);
  backdrop-filter: blur(8px);
  /* Same cut shape on the inset box = border follows every edge */
  clip-path: polygon(
    var(--join-cut) 0,
    100% 0,
    100% calc(100% - var(--join-cut)),
    calc(100% - var(--join-cut)) 100%,
    0 100%,
    0 var(--join-cut)
  );
}

.join-toast.is-show {
  opacity: 1;
  transform: translateY(0);
}

.join-toast b {
  color: #9ff5ef;
  font-weight: 700;
}

.join-toast[hidden] {
  display: none !important;
}

.join-toast-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #38bab3;
  box-shadow: 0 0 8px rgba(56, 186, 179, 0.7);
}

@media (prefers-reduced-motion: reduce) {
  .give-stats b.is-tick {
    animation: none;
  }

  .join-toast {
    transition: none;
  }
}

.countdown {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 42px;
}

.cd-unit b {
  font-size: 26px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-bright);
  line-height: 1;
}

.cd-unit i {
  margin-top: 4px;
  font-size: 9px;
  font-style: normal;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cd-sep {
  font-size: 22px;
  font-weight: 700;
  color: var(--panel-border);
  transform: translateY(-6px);
}

/* Recent winners list */
.winners {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 2px;
}

.winners li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
}

.winners .w-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(56, 186, 179, 0.7);
  flex-shrink: 0;
}

.winners .w-name {
  color: var(--text-bright);
  font-weight: 500;
}

.winners .w-amt {
  margin-left: auto;
  color: var(--teal);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.winners .w-when {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.04em;
}

@media (max-width: 560px) {
  .giveaway {
    flex-direction: column;
    width: min(320px, 100%);
    margin-top: 22px;
  }

  .give-stats {
    flex-wrap: wrap;
    justify-content: center;
    row-gap: 2px;
    font-size: 11px;
  }
}

/* ---------- Entries page ---------- */

.scene-dim {
  opacity: 0.45;
}

.entries-content {
  padding-top: clamp(48px, 8vh, 90px);
}

.logo-link {
  display: inline-block;
  transition: transform 0.15s ease;
}
.logo-link:hover {
  transform: translateY(-2px);
}

.logo-sm {
  width: clamp(180px, 16vw, 230px);
  margin-bottom: clamp(20px, 4vh, 34px);
}

.badge-in {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(56, 186, 179, 0.08);
  border: 1px solid rgba(56, 186, 179, 0.35);
  border-radius: 999px;
}

.email-chip {
  color: var(--text-bright);
  font-weight: 600;
}

/* "Wrong e-mail? Switch" — small inline text button next to the chip */
.email-switch {
  background: none;
  border: none;
  padding: 0;
  margin-left: 8px;
  font: inherit;
  font-size: 12px;
  color: var(--teal, #38bab3);
  text-decoration: underline;
  cursor: pointer;
  opacity: 0.85;
}

.email-switch:hover {
  opacity: 1;
}

/* Entries total */
.entries-total {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin: 26px 0 22px;
}

.et-label {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.et-count {
  font-size: 56px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--teal);
  text-shadow: 0 0 24px rgba(56, 186, 179, 0.45);
}

/* Giveaway eligibility callout (ASE server tag) */
.tag-callout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(600px, 100%);
  margin-bottom: 14px;
  padding: 10px 14px;
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  color: var(--text-muted);
  background: rgba(56, 186, 179, 0.05);
  border: 1px solid rgba(56, 186, 179, 0.2);
  border-radius: 8px;
}

.tag-callout b {
  color: var(--text-bright);
}

.tag-callout.tag-ok {
  color: var(--teal);
  border-color: rgba(56, 186, 179, 0.45);
  background: rgba(56, 186, 179, 0.1);
}

.tag-callout .w-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 8px rgba(56, 186, 179, 0.7);
  flex-shrink: 0;
}

/* Discord /link code shown inside the task */
.task-sub.link-code {
  color: var(--teal);
  white-space: normal !important;
}

.task-sub.link-code b {
  letter-spacing: 0.08em;
}

/* Task list */
.tasks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: min(440px, 100%);
}

.task {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  text-align: left;
  clip-path: polygon(
    var(--chamfer) 0,
    100% 0,
    100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%,
    0 100%,
    0 var(--chamfer)
  );
  background: var(--panel-border);
}

.task::before {
  content: "";
  position: absolute;
  inset: 1px;
  clip-path: inherit;
  background: linear-gradient(180deg, rgba(7, 171, 180, 0.05), rgba(5, 13, 20, 0.92)),
    #051920;
}

.task > * {
  position: relative;
  z-index: 1;
}

.task-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  color: var(--text-muted);
  background: rgba(56, 186, 179, 0.06);
  border: 1px solid rgba(56, 186, 179, 0.18);
  border-radius: 8px;
}
.task-icon.x {
  color: var(--text-bright);
}
.task-icon.discord {
  color: #8ea1ff;
}
.task-icon.steam {
  color: #9fc3d8;
}

.socials-sm {
  margin-top: 16px;
}

.task-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.task-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-bright);
}
.task-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.task-entry {
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
  color: var(--teal);
  font-variant-numeric: tabular-nums;
}

.task-btn {
  flex-shrink: 0;
  min-width: 72px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-bright);
  background: linear-gradient(
      to bottom,
      rgba(56, 186, 179, 0.32),
      rgba(56, 186, 179, 0.44)
    ),
    var(--panel);
  border: 1px solid rgba(56, 186, 179, 0.4);
  border-radius: 8px;
  cursor: pointer;
  transition: filter 0.15s ease;
}
.task-btn:hover:not(:disabled) {
  filter: brightness(1.2);
}
.task-btn:disabled {
  cursor: default;
}
.task-btn.is-done {
  background: transparent;
  border-color: rgba(56, 186, 179, 0.25);
  color: var(--teal);
}

/* Completed task styling */
.task.done .task-icon {
  color: var(--teal);
  border-color: rgba(56, 186, 179, 0.5);
  background: rgba(56, 186, 179, 0.12);
}

/* Collapsed account tasks summary */
.tasks-wrap {
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tasks-summary {
  position: relative;
  display: none;
  width: 100%;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  margin-bottom: 0;
  color: var(--text-bright);
  font: 500 13px/1 "Chakra Petch", sans-serif;
  letter-spacing: 0.03em;
  cursor: pointer;
  text-align: left;
  border: 0;
  clip-path: polygon(
    var(--chamfer) 0,
    100% 0,
    100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%,
    0 100%,
    0 var(--chamfer)
  );
  background: var(--panel-border);
}

.tasks-summary::before {
  content: "";
  position: absolute;
  inset: 1px;
  clip-path: inherit;
  background: linear-gradient(180deg, rgba(7, 171, 180, 0.05), rgba(5, 13, 20, 0.92)),
    #051920;
}

.tasks-summary > * {
  position: relative;
  z-index: 1;
}

.tasks-wrap.is-collapsed .tasks-summary {
  display: flex;
}

.tasks-wrap.is-collapsed .tasks {
  display: none;
}

.tasks-wrap.is-collapsed.is-expanded .tasks {
  display: flex;
  margin-top: 10px;
}

.tasks-summary-text {
  flex: 1;
  text-align: left;
}

.tasks-summary-plus {
  color: var(--teal);
  font-weight: 600;
}

.tasks-summary-toggle {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Floating quests — designer button + crystal popout */
.quest-fab-wrap {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 45;
  overflow: visible;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.45));
}

.quest-fab {
  position: relative;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.quest-fab-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  transition: filter 0.15s ease;
}

/* Teal glass — quiet idle, old bright look on hover/press/open */
.quest-fab-glow {
  opacity: 0.28;
  transition: opacity 0.15s ease;
}

.quest-fab:hover .quest-fab-glow,
.quest-fab:active .quest-fab-glow,
.quest-fab[aria-expanded="true"] .quest-fab-glow {
  opacity: 1;
}

.quest-fab:hover .quest-fab-frame,
.quest-fab:active .quest-fab-frame,
.quest-fab[aria-expanded="true"] .quest-fab-frame {
  filter: drop-shadow(0 0 10px rgba(56, 186, 179, 0.45));
}

.quest-fab-icon {
  position: relative;
  z-index: 1;
  width: 22px;
  height: 22px;
  object-fit: contain;
  /* art leans right — nudge for optical center in cut-corner frame */
  transform: translate(-3px, 0.5px);
  filter: brightness(0) saturate(100%) invert(78%) sepia(16%) saturate(520%)
    hue-rotate(127deg) brightness(96%) contrast(92%);
  opacity: 0.78;
  pointer-events: none;
  transition: opacity 0.15s ease, filter 0.15s ease;
}

.quest-fab:hover .quest-fab-icon,
.quest-fab:active .quest-fab-icon,
.quest-fab[aria-expanded="true"] .quest-fab-icon {
  opacity: 1;
  filter: brightness(0) saturate(100%) invert(88%) sepia(18%) saturate(650%)
    hue-rotate(127deg) brightness(102%) contrast(95%);
}

.quest-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  z-index: 2;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.quest-badge-shape {
  position: absolute;
  inset: 0;
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 0 6px rgba(19, 201, 244, 0.45));
  animation: quest-badge-pulse 1.8s ease-in-out infinite;
}

/* No pulse while hovering the button or when the panel is open */
.quest-fab:hover .quest-badge-shape,
.quest-fab[aria-expanded="true"] .quest-badge-shape {
  animation: none;
  filter: drop-shadow(0 0 8px rgba(19, 201, 244, 0.55));
}

.quest-badge-num {
  position: relative;
  z-index: 1;
  color: #d6e6ea;
  font: 800 11px/1 "Chakra Petch", sans-serif;
  letter-spacing: 0.02em;
  text-shadow:
    0 0 2px rgba(3, 16, 24, 0.95),
    0 1px 0 rgba(3, 16, 24, 0.85);
}

.quest-badge[hidden] {
  display: none !important;
}

.quest-badge[hidden] .quest-badge-shape {
  animation: none;
}

@keyframes quest-badge-pulse {
  0%,
  100% {
    filter: drop-shadow(0 0 5px rgba(19, 201, 244, 0.35));
    opacity: 0.92;
  }
  50% {
    filter: drop-shadow(0 0 12px rgba(19, 201, 244, 0.8));
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .quest-badge-shape {
    animation: none;
  }
}

.quest-pop {
  position: absolute;
  left: 0;
  bottom: calc(100% + 12px);
  width: min(340px, calc(100vw - 28px));
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.55));
}

.quest-pop[hidden] {
  display: none !important;
}

.quest-pop-shell {
  position: relative;
  /* same chamfer language as giveaway panels — natural card size */
  clip-path: polygon(
    var(--chamfer) 0,
    100% 0,
    100% calc(100% - var(--chamfer)),
    calc(100% - var(--chamfer)) 100%,
    0 100%,
    0 var(--chamfer)
  );
  background: var(--panel-border);
  padding: 1px;
}

.quest-pop-bg {
  position: absolute;
  inset: 1px;
  z-index: 0;
  clip-path: inherit;
  background:
    linear-gradient(
      105deg,
      rgba(4, 14, 20, 0.92) 0%,
      rgba(4, 14, 20, 0.78) 42%,
      rgba(4, 18, 24, 0.45) 70%,
      rgba(4, 18, 24, 0.25) 100%
    ),
    url("assets/quest-pop-bg.png") right center / cover no-repeat;
  box-shadow: inset 0 0 28px rgba(7, 171, 180, 0.12);
}

.quest-pop-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 14px;
}

.quest-pop-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7eefe8;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.quest-pop-close {
  border: 0;
  background: transparent;
  color: rgba(231, 242, 251, 0.65);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}

.quest-pop-close:hover {
  color: #fff;
}

.quest-pop-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.quest-pop-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  background: rgba(4, 14, 20, 0.55);
  border: 1px solid rgba(56, 186, 179, 0.28);
  backdrop-filter: blur(4px);
  clip-path: polygon(
    7px 0,
    100% 0,
    100% calc(100% - 7px),
    calc(100% - 7px) 100%,
    0 100%,
    0 7px
  );
}

.quest-pop-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.quest-pop-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-bright);
}

.quest-pop-sub {
  font-size: 10px;
  color: #9eb0bd;
}

.quest-pop-plus {
  font-size: 12px;
  font-weight: 700;
  color: #5ee0d8;
}

.quest-pop-row .task-btn {
  min-width: 64px;
  font-size: 11px;
  padding: 6px 10px;
}

.quest-pop-wl {
  margin-top: 12px;
  width: 100%;
  border: 1px solid rgba(56, 186, 179, 0.35);
  background: rgba(6, 28, 36, 0.55);
  color: #9ee8e2;
  font: 600 11px/1.2 "Chakra Petch", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 12px;
  cursor: pointer;
  clip-path: polygon(
    7px 0,
    100% 0,
    100% calc(100% - 7px),
    calc(100% - 7px) 100%,
    0 100%,
    0 7px
  );
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.quest-pop-wl:hover {
  border-color: rgba(56, 186, 179, 0.7);
  color: #dffcf9;
  background: rgba(8, 36, 44, 0.75);
}

.quest-pop-row .task-btn.is-done,
.quest-pop-row .task-btn:disabled {
  opacity: 0.85;
}

.daily-progress {
  min-width: 32px;
  text-align: right;
  font-size: 11px;
  font-weight: 600;
  color: #9eb0bd;
  font-variant-numeric: tabular-nums;
}

.daily-progress.is-done {
  color: #5ee0d8;
}

/* Referral */
.referral {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: min(440px, 100%);
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(56, 186, 179, 0.12);
}

.ref-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.ref-title {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-bright);
}

.ref-desc {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.referral .signup {
  width: 100%;
}

.ref-link .input-inner input {
  font-size: 12px;
  color: var(--teal);
}

.ref-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.ref-stat b {
  color: var(--text-bright);
  font-variant-numeric: tabular-nums;
}

.ref-plus {
  margin-left: 6px;
  color: var(--teal);
  font-weight: 600;
}

/* Hover "?" explaining what counts as a qualified referral */
.ref-info {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  cursor: help;
  user-select: none;
}

.ref-info:hover,
.ref-info:focus {
  color: var(--text-bright);
  border-color: var(--teal);
}

.ref-info::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  padding: 8px 10px;
  border-radius: 6px;
  background: rgba(10, 14, 16, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-bright);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-align: left;
  white-space: normal;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease;
  pointer-events: none;
  z-index: 20;
}

.ref-info:hover::after,
.ref-info:focus::after {
  opacity: 1;
  visibility: visible;
}

.entries-note {
  margin-top: 18px;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

@media (max-width: 560px) {
  .task-sub {
    display: none;
  }
  .et-count {
    font-size: 48px;
  }
}

/* Hide the default scrollbar (page still scrolls if it needs to) */
html {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* old Edge/IE */
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none; /* Chrome/Safari */
}

/* ---------- Entries page: compact so it fits without scrolling ---------- */

.entries-content {
  padding-top: clamp(30px, 4.5vh, 56px);
  padding-bottom: clamp(24px, 5vh, 48px);
  justify-content: flex-start;
}

.entries-content .logo-sm {
  width: clamp(150px, 13vw, 190px);
  margin-bottom: 18px;
}

.entries-content .title {
  margin-bottom: 8px;
}

.entries-content .subtitle {
  margin-bottom: 22px;
}

.entries-content .entries-total {
  margin: 16px 0 22px;
}

.entries-content .et-count {
  font-size: 44px;
}

.entries-content .tasks-wrap {
  width: min(600px, 100%);
}

.entries-content .tasks {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 1fr; /* all cards the same height */
  gap: 10px;
}

.entries-content .task {
  padding: 11px 14px;
  gap: 10px;
  /* Grid items default to min-width:auto — long no-wrap subtext (e.g. the
     verified Steam line) would stretch its column. Let it truncate instead. */
  min-width: 0;
}

/* Subtext wraps within its column (min-width: 0 above stops it stretching
   the grid) so the full text is always readable */
.entries-content .task-sub {
  white-space: normal;
  overflow-wrap: break-word;
}

.entries-content .task-icon {
  width: 34px;
  height: 34px;
}

.entries-content .task-btn {
  min-width: 62px;
  padding: 7px 10px;
}

.entries-content .referral {
  width: min(460px, 100%);
  margin-top: 16px;
  padding-top: 16px;
  gap: 9px;
}

@media (max-width: 620px) {
  .entries-content .tasks-wrap {
    width: min(360px, 100%);
  }
  .entries-content .tasks {
    grid-template-columns: 1fr;
    width: 100%;
  }
  .entries-content .referral {
    width: min(360px, 100%);
  }
}

.entries-content .entries-note {
  margin-top: 12px;
}

/* ---------- Responsive ---------- */

/* Tablets / small laptops */
@media (max-width: 1024px) {
  .hex {
    width: 300px;
    height: 270px;
  }

  .hex-left {
    left: -140px;
  }

  .hex-right {
    right: -140px;
  }
}

/* Phones */
@media (max-width: 720px) {
  .content {
    padding-top: max(64px, 10vh);
  }

  .logo {
    width: min(220px, 62vw);
    margin-bottom: max(36px, 6vh);
  }

  .title {
    font-size: 15px;
  }

  .subtitle {
    font-size: 12px;
    margin-bottom: 24px;
  }

  .signup {
    width: min(340px, 100%);
    height: 42px;
  }

  .btn-shape {
    width: 104px;
  }

  .btn-inner,
  .input-inner input {
    font-size: 12px;
  }

  .socials {
    margin-top: 12px;
  }

  .hex {
    display: none;
  }

  /* Bottom scene: the desktop composition is tuned for landscape, so on a
     portrait phone it shrinks into a thin strip with dead space above it.
     Scale everything up (~1.5x in vw) so it fills the bottom of the screen. */
  .scene-glow-teal {
    width: 175vw;
    bottom: -10vw;
  }

  .scene-glow-blue {
    width: 110vw;
    bottom: -15vw;
    left: 40%;
  }

  .water-glow {
    width: 72vw;
    height: 38vw;
    bottom: -10vw;
    left: 40%;
  }

  .palm-1 {
    width: 42vw;
    bottom: 2vw;
    left: -4%;
  }

  .palm-2 {
    width: 32vw;
    left: 20%;
    bottom: 4vw;
  }

  .palm-3 {
    width: 40vw;
    right: -8%;
    bottom: 10vw;
  }

  /* The trex PNG has its head at the far right — keep that edge on-screen
     (only the empty tail half may run off the left side). */
  .trex {
    width: 115vw;
    right: 1vw;
    bottom: -3vw;
  }

  .dodo {
    width: 42vw;
    left: 33%;
    bottom: -2vw;
  }

  .dodo-glow {
    width: 52vw;
    height: 46vw;
    left: 33%;
    bottom: -8vw;
  }

  .rocks {
    width: 56vw;
    left: -10vw;
  }

  /* Keep the content clear of the (now much taller) scene. */
  .content {
    padding-bottom: 58vw;
  }

  .bottom-fade {
    height: 10vh;
  }
}

/* Very short landscape viewports (small laptops, phones rotated) */
@media (max-height: 560px) {
  .content {
    padding-top: 48px;
  }

  .logo {
    width: 180px;
    margin-bottom: 24px;
  }

  .subtitle {
    margin-bottom: 18px;
  }
}

/* ---------- Audio mute control ---------- */
.ase-mute {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 40;
  border: 1px solid rgba(56, 186, 179, 0.28);
  background: rgba(6, 29, 36, 0.72);
  color: var(--text-muted);
  font: 500 12px/1 "Chakra Petch", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 8px 10px;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.ase-mute:hover {
  color: var(--text-bright);
  border-color: rgba(56, 186, 179, 0.55);
  background: rgba(6, 29, 36, 0.9);
}

.ase-mute[aria-pressed="true"] {
  color: var(--text-muted);
  opacity: 0.75;
}

/* ---------- Post-signup waitlist banner ---------- */
body.wl-lock {
  overflow: hidden;
}

.wl-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  place-items: center;
  padding: 20px 16px;
  background: rgba(2, 8, 12, 0.72);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

/* Must beat the UA [hidden] { display:none } only when open —
   never leave a transparent full-screen click catcher on the page. */
.wl-overlay.is-open {
  display: grid;
  opacity: 1;
  pointer-events: auto;
}

.wl-overlay[hidden] {
  display: none !important;
  pointer-events: none !important;
}

.wl-banner {
  position: relative;
  width: min(420px, 96vw);
  aspect-ratio: 1080 / 1650;
  max-height: min(780px, 94dvh);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.6));
  transform: translateY(14px) scale(0.98);
  transition: transform 0.28s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wl-overlay.is-open .wl-banner {
  transform: translateY(0) scale(1);
}

.wl-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      180deg,
      rgba(5, 13, 20, 0.15) 0%,
      rgba(5, 13, 20, 0.05) 35%,
      transparent 55%
    ),
    url("assets/waitlist-banner.png") center top / cover no-repeat;
  clip-path: url(#wlClip);
}

.wl-frame-edge {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.wl-inner {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 6% 11% 0;
  clip-path: url(#wlClip);
}

.wl-close {
  position: absolute;
  top: 6px;
  right: 8px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: rgba(231, 242, 251, 0.75);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.wl-close:hover {
  color: #fff;
}

.wl-logo {
  width: 168px;
  margin: 10px 0 18px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.55));
}

.wl-kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #3fd8d0;
  margin-bottom: 8px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.wl-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  margin-bottom: 10px;
  line-height: 0.95;
}

.wl-line {
  font-size: clamp(28px, 7.5vw, 38px);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #f3f7fb;
  text-shadow:
    0 3px 0 rgba(0, 0, 0, 0.55),
    0 8px 20px rgba(0, 0, 0, 0.45);
}

.wl-line-cyan {
  color: #3fd8d0;
  text-shadow:
    0 3px 0 rgba(0, 0, 0, 0.45),
    0 0 22px rgba(63, 216, 208, 0.4);
}

.wl-num {
  font-size: clamp(52px, 14vw, 68px);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #ffffff;
  text-shadow:
    0 4px 0 rgba(0, 0, 0, 0.55),
    0 0 28px rgba(63, 216, 208, 0.3);
  animation: wl-pop 0.55s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

@keyframes wl-pop {
  from {
    opacity: 0;
    transform: scale(0.7) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.wl-sub {
  font-size: 13px;
  color: #c2d0dc;
  margin-bottom: 16px;
  max-width: 240px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.75);
}

.wl-sub b {
  color: #ffffff;
  font-weight: 600;
}

.wl-accent {
  color: #3fd8d0;
  font-weight: 600;
}

.wl-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 260px;
}

.wl-cta {
  width: 100%;
}

.wl-cta .btn-inner {
  width: 100%;
  justify-content: center;
  font-size: 15px;
  padding: 12px 18px;
}

.wl-share {
  border: 0;
  background: transparent;
  color: rgba(231, 242, 251, 0.72);
  font: 500 14px/1 "Chakra Petch", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 6px 10px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.wl-share:hover {
  color: #3fd8d0;
}

@media (max-height: 700px) {
  .wl-banner {
    width: min(360px, 94vw);
    max-height: 92dvh;
  }

  .wl-logo {
    width: 140px;
    margin-bottom: 12px;
  }

  .wl-line {
    font-size: 28px;
  }

  .wl-num {
    font-size: 56px;
  }

  .wl-cta .btn-inner {
    font-size: 14px;
  }

  .wl-share {
    font-size: 13px;
  }
}
