/* =========================================================
   Sand Bucket Puzzle — Official Landing
   Style: Claymorphism + sunny beach game UI
   Differentiated layout: level-track nav, canvas hero,
   bucket conveyor features, daily-tasks download panel
   ========================================================= */

:root {
  /* Beach palette from game art */
  --sky: #8ec8ef;
  --sky-deep: #5bb0e8;
  --sea: #3a9fd9;
  --sand: #f3e2b8;
  --sand-deep: #e8c98a;
  --sand-panel: #fff6e0;
  --cream: #fffaf0;
  --ink: #4a2f1f;
  --ink-soft: #6b4a35;
  --muted: #8a6a52;

  --yellow: #ffd93d;
  --orange: #ff9a3c;
  --orange-deep: #f07820;
  --lime: #7ed957;
  --pink: #ff6b9d;
  --cyan: #4ec9f5;
  --purple: #9b6bff;
  --red: #ff5a5a;
  --outline: #3d5a8a;

  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;

  --shadow-clay:
    0 8px 0 rgba(74, 47, 31, 0.12),
    0 14px 28px rgba(74, 47, 31, 0.12),
    inset 0 2px 0 rgba(255, 255, 255, 0.55);
  --shadow-press:
    0 3px 0 rgba(74, 47, 31, 0.14),
    inset 0 3px 8px rgba(74, 47, 31, 0.12);

  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;

  --header-h: 76px;
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--sand);
  overflow-x: hidden;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul,
ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: var(--orange);
  color: #fff;
  border-radius: var(--radius-md);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ----- Beach background layers ----- */
.beach-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}

.beach-bg__sky {
  position: absolute;
  inset: 0 0 55% 0;
  background: linear-gradient(180deg, #9fd0f5 0%, var(--sky) 55%, var(--sky-deep) 100%);
}

.beach-bg__sea {
  position: absolute;
  top: 38%;
  left: 0;
  right: 0;
  height: 22%;
  background: linear-gradient(180deg, var(--sky-deep), var(--sea) 70%, #2f8fc4);
}

.beach-bg__foam {
  position: absolute;
  top: 56%;
  left: -5%;
  right: -5%;
  height: 28px;
  background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.85) 0%, transparent 70%);
  opacity: 0.7;
  animation: foam-drift 8s ease-in-out infinite alternate;
}

.beach-bg__sand {
  position: absolute;
  top: 55%;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.25) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 60%, rgba(180, 140, 80, 0.2) 0 1.5px, transparent 2px),
    linear-gradient(180deg, #f0d9a0 0%, var(--sand) 35%, var(--sand-deep) 100%);
}

.deco {
  position: absolute;
  border-radius: 50%;
}

.deco--shell {
  width: 28px;
  height: 22px;
  background: radial-gradient(circle at 40% 40%, #ffd0e0, #f48fb1);
  box-shadow: 0 4px 0 rgba(74, 47, 31, 0.12);
}

.deco--shell-1 {
  bottom: 12%;
  left: 8%;
  transform: rotate(-18deg);
}

.deco--shell-2 {
  bottom: 18%;
  right: 12%;
  transform: rotate(22deg);
  background: radial-gradient(circle at 40% 40%, #d6f0ff, #7ec8e8);
}

.deco--star {
  width: 26px;
  height: 26px;
  background: var(--pink);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  opacity: 0.85;
}

.deco--star-1 {
  bottom: 22%;
  left: 18%;
}

.deco--star-2 {
  bottom: 8%;
  right: 22%;
  background: var(--orange);
}

.deco--grain {
  width: 8px;
  height: 8px;
  background: rgba(180, 140, 80, 0.35);
}

.deco--grain-1 { bottom: 30%; left: 40%; }
.deco--grain-2 { bottom: 14%; left: 55%; }
.deco--grain-3 { bottom: 26%; right: 35%; }

@keyframes foam-drift {
  from { transform: translateX(-12px); }
  to { transform: translateX(12px); }
}

/* ----- Buttons (glossy clay) ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  border-radius: var(--radius-pill);
  transition: transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out), filter 180ms;
  cursor: pointer;
}

.btn:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 3px;
}

.btn--payout {
  padding: 0.65rem 1.25rem;
  color: #fff;
  background: linear-gradient(180deg, #ffc14d 0%, var(--orange) 55%, var(--orange-deep) 100%);
  border: 3px solid #c45f10;
  box-shadow: var(--shadow-clay);
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.15);
}

.btn--payout:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.btn--payout:active {
  transform: translateY(2px);
  box-shadow: var(--shadow-press);
}

.btn--store {
  min-width: 168px;
  padding: 0.7rem 1.15rem;
  color: #fff;
  border: 3px solid transparent;
  box-shadow: var(--shadow-clay);
  text-align: left;
}

.btn--store span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.btn--store small {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  opacity: 0.9;
}

.btn--store:hover {
  transform: translateY(-2px);
}

.btn--store:active {
  transform: translateY(2px);
  box-shadow: var(--shadow-press);
}

.btn--apple {
  background: linear-gradient(180deg, #4a4a4a, #1a1a1a);
  border-color: #000;
}

.btn--google {
  background: linear-gradient(180deg, #5ad07a, #2e9e4f);
  border-color: #1f7a3a;
}

.btn--claim {
  flex-shrink: 0;
  min-width: 88px;
  padding: 0.55rem 1rem;
  color: #fff;
  background: linear-gradient(180deg, #9be86a, var(--lime) 50%, #4fb82e);
  border: 3px solid #3a9a1f;
  box-shadow: var(--shadow-clay);
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
}

.btn--claim:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.btn--progress {
  flex-shrink: 0;
  min-width: 88px;
  padding: 0.55rem 1rem;
  color: #fff;
  background: linear-gradient(180deg, #7ad8f5, var(--cyan) 50%, #2aa8d4);
  border: 3px solid #1a8ab0;
  border-radius: var(--radius-pill);
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: var(--shadow-clay);
  cursor: default;
}

/* ----- Header / level-track nav ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.65rem 1rem;
  transition: background 220ms, box-shadow 220ms, backdrop-filter 220ms;
}

.site-header.is-scrolled {
  background: rgba(255, 246, 224, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 6px 20px rgba(74, 47, 31, 0.1);
}

.site-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.35rem 0.75rem;
  background: rgba(255, 250, 240, 0.92);
  border: 3px solid #e8c98a;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-clay);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}

.brand__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 3px solid #fff;
  box-shadow: 0 4px 0 rgba(74, 47, 31, 0.12);
  object-fit: cover;
  background: var(--cyan);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--yellow);
  -webkit-text-stroke: 1.5px var(--outline);
  paint-order: stroke fill;
  text-shadow: 0 2px 0 rgba(61, 90, 138, 0.35);
}

.brand__tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--cyan);
  -webkit-text-stroke: 1.5px var(--outline);
  paint-order: stroke fill;
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #ffe8b8);
  border: 3px solid #e0b86a;
  box-shadow: var(--shadow-clay);
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
}

/* Level progress navigation — novel vs standard link row */
.level-nav__track {
  display: flex;
  align-items: flex-start;
  gap: 0;
  position: relative;
  padding-top: 0.15rem;
}

.level-nav__track::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 28px;
  right: 28px;
  height: 6px;
  background: linear-gradient(90deg, var(--lime), var(--yellow), var(--orange), var(--pink));
  border-radius: var(--radius-pill);
  border: 2px solid #c49a4a;
  z-index: 0;
}

.level-nav__node {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 72px;
  text-align: center;
}

.level-nav__node a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.4rem;
  cursor: pointer;
}

.level-nav__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #ffe8c8);
  border: 3px solid #d4a85c;
  box-shadow: 0 3px 0 rgba(74, 47, 31, 0.15);
  transition: transform 200ms var(--ease-bounce), background 200ms, border-color 200ms;
}

.level-nav__node.is-active .level-nav__dot,
.level-nav__node a:hover .level-nav__dot {
  background: linear-gradient(180deg, #b8f07a, var(--lime));
  border-color: #3a9a1f;
  transform: scale(1.12);
  box-shadow: 0 0 0 4px rgba(126, 217, 87, 0.35), 0 3px 0 rgba(74, 47, 31, 0.15);
}

.level-nav__label {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.level-nav__node.is-active .level-nav__label {
  color: var(--ink);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: 1.5rem 1.25rem 0;
}

.hero__layout {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 2rem;
  align-items: center;
  padding-bottom: 2rem;
}

.hero__copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.hero__logo {
  width: min(280px, 70vw);
  height: auto;
  filter: drop-shadow(0 12px 18px rgba(74, 47, 31, 0.2));
  animation: float-y 4s ease-in-out infinite;
}

.hero__title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.hero__title-sand {
  color: var(--yellow);
  -webkit-text-stroke: 3px var(--outline);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 rgba(61, 90, 138, 0.35);
}

.hero__title-puzzle {
  color: var(--cyan);
  -webkit-text-stroke: 3px var(--outline);
  paint-order: stroke fill;
  text-shadow: 0 4px 0 rgba(61, 90, 138, 0.35);
}

.hero__subtitle {
  max-width: 36ch;
  color: var(--ink-soft);
  font-size: 1.1rem;
  font-weight: 600;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__hint {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
}

.hero__hint svg {
  width: 18px;
  height: 18px;
}

.hero__stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1rem 0 2rem;
}

.hero__mascot {
  position: absolute;
  right: -8px;
  bottom: 40px;
  width: 110px;
  height: auto;
  filter: drop-shadow(0 8px 12px rgba(74, 47, 31, 0.25));
  animation: float-y 3.2s ease-in-out infinite;
  pointer-events: none;
}

@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Game canvas frame — central hero visual */
.canvas-frame {
  width: min(340px, 86vw);
  background: linear-gradient(180deg, #fffef8, #ffe9b8);
  border: 4px solid #d4a85c;
  border-radius: var(--radius-xl);
  padding: 0.75rem;
  box-shadow: var(--shadow-clay);
}

.canvas-frame__bar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
}

.canvas-frame__level {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  white-space: nowrap;
}

.canvas-frame__meter {
  flex: 1;
  height: 14px;
  background: #5c4030;
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 2px solid #3d2a1f;
}

.canvas-frame__meter span {
  display: block;
  height: 100%;
  background: linear-gradient(180deg, #ffe566, var(--yellow) 40%, #e0a800);
  border-radius: inherit;
}

.canvas-frame__screen {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: inset 0 0 0 2px #c9a06a, 0 6px 16px rgba(74, 47, 31, 0.15);
  background: #2a6fa8;
  aspect-ratio: 9 / 16;
}

.canvas-frame__screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.combo-badge {
  position: absolute;
  top: 10px;
  right: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  pointer-events: none;
  animation: combo-pop 2.8s var(--ease-bounce) infinite;
}

.combo-badge__label {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--orange);
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
  text-transform: lowercase;
}

.combo-badge__num {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--orange);
  -webkit-text-stroke: 3px #fff;
  paint-order: stroke fill;
  text-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
}

@keyframes combo-pop {
  0%, 100% { transform: scale(1) rotate(-4deg); }
  50% { transform: scale(1.08) rotate(2deg); }
}

/* Mini conveyor belt under canvas */
.mini-belt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  margin-top: 0.85rem;
  padding: 0.55rem 0.4rem;
  background: linear-gradient(180deg, #c48a4a, #9a6530);
  border-radius: 14px;
  border: 3px solid #7a4a1f;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.25);
}

.mini-belt__arrow {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffc14d, var(--orange));
  border: 3px solid #c45f10;
  color: #fff;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.2);
  flex-shrink: 0;
}

.mini-belt__arrow:hover {
  filter: brightness(1.08);
}

.mini-belt__arrow:active {
  transform: translateY(2px);
  box-shadow: none;
}

.mini-belt__arrow svg {
  width: 20px;
  height: 20px;
}

.mini-belt__pots {
  display: flex;
  gap: 0.45rem;
  flex: 1;
  justify-content: center;
}

.pot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  padding: 0;
  cursor: pointer;
}

.pot__body {
  width: 36px;
  height: 32px;
  border-radius: 6px 6px 10px 10px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.35), 0 3px 0 rgba(0, 0, 0, 0.15);
  transition: transform 180ms var(--ease-bounce);
}

.pot.is-active .pot__body,
.pot:hover .pot__body {
  transform: translateY(-4px) scale(1.08);
}

.pot--cyan { background: linear-gradient(180deg, #8ae0ff, var(--cyan)); }
.pot--yellow { background: linear-gradient(180deg, #ffe566, var(--yellow)); }
.pot--pink { background: linear-gradient(180deg, #ff9ec0, var(--pink)); }
.pot--lime { background: linear-gradient(180deg, #b8f07a, var(--lime)); }

.pot__num {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.wave-divider {
  display: block;
  width: 100%;
  height: 64px;
  margin-bottom: -1px;
}

/* ----- Section heads ----- */
.section-head {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.section-head__eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--orange-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.4rem;
}

.section-head__title {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.section-head__desc {
  color: var(--ink-soft);
  font-weight: 600;
}

.section-head--light .section-head__title,
.section-head--light .section-head__desc {
  color: #fff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.section-head--light .section-head__eyebrow {
  color: var(--yellow);
}

/* ----- Features: bucket shelf / conveyor ----- */
.features {
  background: var(--sand-panel);
  padding: 3rem 0 4rem;
  position: relative;
}

.shelf {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

.shelf__rail {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  padding-bottom: 1.5rem;
}

.bucket-card {
  background: linear-gradient(180deg, #fffef8, #fff0d0);
  border: 4px solid #e0b86a;
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.2rem 1.5rem;
  box-shadow: var(--shadow-clay);
  text-align: center;
  transition: transform 220ms var(--ease-bounce);
  cursor: default;
}

.bucket-card:hover {
  transform: translateY(-8px);
}

.bucket-card__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 3px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45), 0 6px 0 rgba(74, 47, 31, 0.1);
  color: #fff;
}

.bucket-card__icon svg {
  width: 28px;
  height: 28px;
}

.bucket-card__icon--pour { background: linear-gradient(180deg, #8ae0ff, var(--cyan)); }
.bucket-card__icon--easy { background: linear-gradient(180deg, #ffe566, var(--yellow)); color: var(--ink); }
.bucket-card__icon--art { background: linear-gradient(180deg, #ff9ec0, var(--pink)); }
.bucket-card__icon--combo { background: linear-gradient(180deg, #ffb070, var(--orange)); }
.bucket-card__icon--daily { background: linear-gradient(180deg, #b8f07a, var(--lime)); color: var(--ink); }
.bucket-card__icon--relax { background: linear-gradient(180deg, #c4a0ff, var(--purple)); }

.bucket-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.45rem;
  color: var(--ink);
}

.bucket-card p {
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 600;
}

.shelf__ledge {
  height: 22px;
  margin-top: -0.5rem;
  background: linear-gradient(180deg, #d4a05a, #a87030);
  border-radius: 0 0 18px 18px;
  border: 3px solid #7a4a1f;
  border-top: none;
  box-shadow: 0 8px 0 rgba(74, 47, 31, 0.12);
}

/* ----- Gallery: fan of tilted frames ----- */
.gallery {
  position: relative;
  padding: 4rem 1rem 5rem;
  background: linear-gradient(180deg, var(--sea) 0%, var(--sky-deep) 55%, #6eb8e0 100%);
  overflow: hidden;
}

.gallery::before {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 28%;
  background: linear-gradient(180deg, transparent, rgba(243, 226, 184, 0.35));
  pointer-events: none;
}

.gallery__fan {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  perspective: 900px;
}

.gallery__card {
  margin: 0;
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
  background: #1a4a70;
  aspect-ratio: 9 / 16;
  transition: transform 280ms var(--ease-bounce);
}

.gallery__card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.gallery__card--a { transform: rotate(-6deg) translateY(18px); }
.gallery__card--b { transform: rotate(-2deg) translateY(0); }
.gallery__card--c { transform: rotate(3deg) translateY(8px); }
.gallery__card--d { transform: rotate(7deg) translateY(22px); }

.gallery__card:hover {
  transform: rotate(0deg) translateY(-12px) scale(1.04);
  z-index: 2;
}

/* ----- Download: Daily Tasks panel ----- */
.download {
  padding: 3.5rem 1.25rem 4.5rem;
  background:
    radial-gradient(circle at 15% 80%, rgba(255, 255, 255, 0.3) 0 2px, transparent 3px),
    linear-gradient(180deg, #f0d9a0, var(--sand) 40%, var(--sand-deep));
}

.tasks-panel {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
  padding: 3.5rem 1.35rem 2rem;
  background: linear-gradient(180deg, #fff8e8, #ffe9c0);
  border: 5px solid #e0a84a;
  border-radius: 32px;
  box-shadow: var(--shadow-clay);
}

.tasks-panel__crest {
  position: absolute;
  left: 50%;
  top: -52px;
  transform: translateX(-50%);
  width: 120px;
  display: flex;
  justify-content: center;
}

.tasks-panel__crest img {
  width: 96px;
  height: auto;
  filter: drop-shadow(0 6px 10px rgba(74, 47, 31, 0.25));
  z-index: 2;
}

.tasks-panel__leaf {
  position: absolute;
  width: 36px;
  height: 48px;
  background: linear-gradient(180deg, #8fd86a, #3f9a2e);
  border-radius: 60% 40% 50% 50%;
  top: 20px;
  z-index: 1;
}

.tasks-panel__leaf--l {
  left: -8px;
  transform: rotate(-35deg);
}

.tasks-panel__leaf--r {
  right: -8px;
  transform: rotate(35deg) scaleX(-1);
}

.tasks-panel__crab,
.tasks-panel__star {
  position: absolute;
  top: 8px;
  width: 22px;
  height: 22px;
  z-index: 3;
}

.tasks-panel__crab {
  right: -36px;
  background: var(--red);
  border-radius: 50% 50% 40% 40%;
  box-shadow: -8px 4px 0 -2px var(--red), 8px 4px 0 -2px var(--red);
}

.tasks-panel__star {
  left: -32px;
  background: var(--pink);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.tasks-panel__title {
  text-align: center;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  color: var(--orange);
  -webkit-text-stroke: 2.5px #fff;
  paint-order: stroke fill;
  text-shadow: 0 3px 0 rgba(192, 90, 20, 0.35);
  margin-bottom: 0.4rem;
}

.tasks-panel__desc {
  text-align: center;
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.tasks-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tasks-list__row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: rgba(255, 255, 255, 0.65);
  border-radius: 16px;
  border: 2px solid rgba(224, 168, 74, 0.45);
}

.tasks-list__reward {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  border: 3px solid rgba(0, 0, 0, 0.1);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.4);
}

.tasks-list__reward svg {
  width: 22px;
  height: 22px;
}

.tasks-list__reward--gem { background: linear-gradient(180deg, #c4a0ff, var(--purple)); }
.tasks-list__reward--cash { background: linear-gradient(180deg, #5ad07a, #2e9e4f); }
.tasks-list__reward--star { background: linear-gradient(180deg, #8ae0ff, var(--cyan)); }

.tasks-list__body {
  flex: 1;
  min-width: 0;
}

.tasks-list__body p {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
  color: var(--ink);
}

.tasks-list__bar {
  height: 10px;
  background: #5c4030;
  border-radius: var(--radius-pill);
  overflow: hidden;
  border: 2px solid #3d2a1f;
}

.tasks-list__bar span {
  display: block;
  height: 100%;
  background: linear-gradient(180deg, #ffe566, var(--yellow));
  border-radius: inherit;
}

.tasks-panel__base {
  margin: 1.25rem -1.35rem -2rem;
  height: 28px;
  background: linear-gradient(180deg, #e8c98a, #c9a05a);
  border-radius: 0 0 26px 26px;
  border-top: 2px solid rgba(255, 255, 255, 0.35);
}

/* ----- Footer ----- */
.site-footer {
  background: linear-gradient(180deg, #c9a05a, #9a7038);
  border-top: 4px solid #7a4a1f;
  padding: 2.5rem 1.25rem 2rem;
  color: #fff8e8;
}

.site-footer__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.brand--footer .brand__name,
.brand--footer .brand__tag {
  -webkit-text-stroke: 1.5px #2a3a5a;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  font-weight: 700;
}

.site-footer__links a {
  padding: 0.35rem 0.15rem;
  border-bottom: 2px solid transparent;
  transition: border-color 180ms, color 180ms;
}

.site-footer__links a:hover {
  color: var(--yellow);
  border-bottom-color: var(--yellow);
}

.site-footer__copy {
  font-size: 0.9rem;
  opacity: 0.85;
  font-weight: 600;
}

/* ----- Modal ----- */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(40, 28, 18, 0.55);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal__card {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  padding: 2rem 1.5rem 1.5rem;
  background: linear-gradient(180deg, #fffef8, #ffe9c0);
  border: 5px solid #e0a84a;
  border-radius: 28px;
  box-shadow: var(--shadow-clay);
  text-align: center;
  animation: modal-in 280ms var(--ease-bounce);
}

@keyframes modal-in {
  from { transform: scale(0.86) translateY(16px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal__close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(180deg, #ff8a8a, var(--red));
  border: 3px solid #c03030;
  color: #fff;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
}

.modal__close svg {
  width: 20px;
  height: 20px;
}

.modal__mascot {
  width: 88px;
  margin: 0 auto 0.75rem;
  filter: drop-shadow(0 6px 8px rgba(74, 47, 31, 0.2));
}

.modal__card h2 {
  font-size: 1.75rem;
  color: var(--orange);
  -webkit-text-stroke: 2px #fff;
  paint-order: stroke fill;
  margin-bottom: 0.5rem;
}

.modal__card p {
  color: var(--ink-soft);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

body.modal-open {
  overflow: hidden;
}

/* ----- Lucide icon size defaults ----- */
.btn svg,
.nav-toggle svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ----- Responsive ----- */
@media (max-width: 960px) {
  .hero__layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__copy {
    align-items: center;
  }

  .hero__subtitle {
    max-width: 42ch;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__mascot {
    right: 4%;
    bottom: 24px;
    width: 88px;
  }

  .shelf__rail {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__fan {
    grid-template-columns: repeat(2, 1fr);
    max-width: 520px;
  }

  .gallery__card--a,
  .gallery__card--b,
  .gallery__card--c,
  .gallery__card--d {
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .level-nav {
    position: fixed;
    top: calc(var(--header-h) + 1.4rem);
    left: 1rem;
    right: 1rem;
    padding: 1rem;
    background: rgba(255, 250, 240, 0.98);
    border: 3px solid #e8c98a;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-clay);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 200ms, transform 200ms, visibility 200ms;
    z-index: 99;
  }

  .level-nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
  }

  .level-nav__track {
    flex-direction: column;
    gap: 0.35rem;
  }

  .level-nav__track::before {
    display: none;
  }

  .level-nav__node {
    text-align: left;
    min-width: 0;
  }

  .level-nav__node a {
    flex-direction: row;
    gap: 0.75rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
  }

  .level-nav__node a:hover,
  .level-nav__node.is-active a {
    background: rgba(126, 217, 87, 0.18);
  }

  .level-nav__label {
    font-size: 1rem;
  }

  .site-header__inner .btn--payout span,
  .site-header__inner .btn--payout {
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 560px) {
  .shelf__rail {
    grid-template-columns: 1fr;
    max-width: 360px;
    margin: 0 auto;
  }

  .gallery__fan {
    grid-template-columns: 1fr 1fr;
    gap: 0.65rem;
  }

  .hero__logo {
    width: min(220px, 68vw);
  }

  .hero__title {
    font-size: 2.2rem;
  }

  .tasks-list__row {
    flex-wrap: wrap;
  }

  .btn--claim,
  .btn--progress {
    width: 100%;
  }

  .brand__text {
    display: none;
  }

  .deco--shell-1,
  .deco--shell-2,
  .deco--star-1,
  .deco--star-2 {
    opacity: 0.5;
  }
}

/* ----- Reduced motion ----- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__logo,
  .hero__mascot,
  .combo-badge {
    animation: none;
  }
}
