/* Waddle page — builds on ../styles.css, using the game's own palette */
.page-waddle {
  --w-sky: #0b3d5c;
  --w-sky-deep: #072a40;
  --w-ice: #eef7fc;
  --w-ice-edge: #b9dcef;
  --w-ink: #12324a;
  --w-accent: #f5a524;
  --w-aurora: #6fd3e8;
  --w-scarf: #e4572e;
  --ice-tile: linear-gradient(160deg, #ffffff 0%, #eef7fc 55%, #b9dcef 100%);
}
.page-waddle .kicker { color: var(--w-aurora); }

/* ---------- Hero ---------- */
.w-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh; display: grid; align-items: center;
  padding: 110px var(--gutter) 80px;
  background: radial-gradient(120% 90% at 70% 10%, rgba(11,61,92,.9), transparent 60%), var(--bg);
}
.w-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 25%; background: linear-gradient(transparent, var(--bg)); z-index: -1; }
.aurora-waddle span:nth-child(1) { background: radial-gradient(closest-side, rgba(111,211,232,.5), transparent); }
.aurora-waddle span:nth-child(2) { background: radial-gradient(closest-side, rgba(20,90,131,.7), transparent); }
.aurora-waddle span:nth-child(3) { background: radial-gradient(closest-side, rgba(245,165,36,.25), transparent); }

.w-hero-inner { width: 100%; max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); }

.w-title {
  margin: 18px 0 10px; font-weight: 900; font-size: clamp(64px, 11vw, 150px); line-height: .9; letter-spacing: -0.045em;
  background: linear-gradient(180deg, #ffffff 0%, #eef7fc 50%, #6fd3e8 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise .9s cubic-bezier(.2,.8,.2,1) both;
}
.w-tagline { font: 700 clamp(20px, 2.6vw, 28px)/1.25 var(--display); letter-spacing: -0.01em; color: var(--w-accent); animation: fade 1s .2s both; }
.w-lede { margin-top: 18px; max-width: 540px; font-size: clamp(16px, 1.9vw, 19px); color: #c6d6e4; animation: fade 1s .3s both; }
.store-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; animation: fade 1s .45s both; }
.store-row + .store-row { margin-top: 14px; }
.store-row-center { justify-content: center; }

.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 18px 10px 14px; min-width: 186px;
  border-radius: 14px; background: #000; color: #fff; text-decoration: none;
  border: 1px solid rgba(255,255,255,.22); transition: transform .25s cubic-bezier(.2,.8,.2,1.2), border-color .25s;
}
.store:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.5); }
.store svg { width: 26px; height: 26px; flex: none; }
.store span { display: grid; font: 600 18px/1.1 var(--body); letter-spacing: -0.01em; text-align: left; }
.store small { font-size: 11px; font-weight: 500; letter-spacing: .02em; color: rgba(255,255,255,.7); }

/* Stage: penguin on an ice floe + WADDLE tiles */
.w-stage { display: grid; justify-items: center; gap: 28px; animation: fade 1.1s .25s both; }
.w-floe {
  position: relative; width: min(340px, 72vw); aspect-ratio: 1; padding: 13%;
  border-radius: 24%; background: var(--ice-tile);
  box-shadow: 0 40px 80px -30px rgba(111,211,232,.55), 0 0 0 10px rgba(185,220,239,.12), inset 0 -10px 0 rgba(139,188,216,.6);
  animation: bob 4s ease-in-out infinite;
}
.w-penguin { width: 100%; height: 100%; overflow: visible; }
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1.5deg); } }

/* Idle fidgets, mirroring the in-game ones: blink, glance, flipper flaps, foot taps */
.w-eyes { transform-box: fill-box; transform-origin: center; animation: w-blink 5.5s infinite; }
.w-pupils { animation: w-glance 9s infinite; }
.flip { transform-box: fill-box; animation: w-flap 7s infinite; }
.flip-l { transform-origin: 70% 16%; }
.flip-r { transform-origin: 30% 16%; animation-name: w-flap-r; animation-delay: .1s; }
.foot { animation: w-tap 6s infinite; }
.foot-r { animation-delay: 3s; }
@keyframes w-blink { 0%, 92%, 96%, 100% { transform: scaleY(1); } 94% { transform: scaleY(.12); } }
@keyframes w-glance { 0%, 55%, 70%, 100% { transform: translateX(0); } 58%, 67% { transform: translateX(3px); } }
@keyframes w-flap { 0%, 80%, 100% { transform: rotate(0); } 83%, 89% { transform: rotate(14deg); } 86% { transform: rotate(4deg); } }
@keyframes w-flap-r { 0%, 80%, 100% { transform: rotate(0); } 83%, 89% { transform: rotate(-14deg); } 86% { transform: rotate(-4deg); } }
@keyframes w-tap { 0%, 40%, 52%, 100% { transform: translateY(0); } 43%, 49% { transform: translateY(-7px); } 46% { transform: translateY(0); } }

.tiles { display: flex; gap: clamp(6px, 1vw, 10px); }
.tiles span {
  display: grid; place-items: center; width: clamp(40px, 5.4vw, 56px); aspect-ratio: 1; border-radius: 12px;
  background: var(--ice-tile); color: var(--w-ink); font: 900 clamp(18px, 2.6vw, 26px)/1 var(--display);
  box-shadow: inset 0 -4px 0 #8bbcd8, 0 10px 20px -10px rgba(0,0,0,.6);
  animation: tile-in .6s cubic-bezier(.2,.8,.2,1.4) both;
}
.tiles span:nth-child(1) { animation-delay: .5s; } .tiles span:nth-child(2) { animation-delay: .58s; }
.tiles span:nth-child(3) { animation-delay: .66s; } .tiles span:nth-child(4) { animation-delay: .74s; }
.tiles span:nth-child(5) { animation-delay: .82s; } .tiles span:nth-child(6) { animation-delay: .9s; }
.tiles span:nth-child(even) { translate: 0 6px; }
@keyframes tile-in { from { opacity: 0; transform: translateY(24px) scale(.6) rotate(-8deg); } }

@media (max-width: 900px) {
  .w-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .w-stage { order: -1; }
  .w-floe { width: min(190px, 50vw); }
  .w-stage { gap: 20px; }
  .crumbs ol, .store-row { justify-content: center; }
  .w-lede { margin-inline: auto; }
}

/* ---------- How it plays ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 0; margin: 0; list-style: none; }
.step { padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(111,211,232,.07), rgba(255,255,255,.015)); }
.step-tile {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; margin-bottom: 22px;
  background: var(--ice-tile); color: var(--w-ink); font: 900 22px/1 var(--display); box-shadow: inset 0 -4px 0 #8bbcd8;
}
.step:nth-child(2) .step-tile { background: linear-gradient(160deg, #fff2cf, #ffd57a); box-shadow: inset 0 -4px 0 #d9a23a; }
.step h3 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); }

/* ---------- Screenshots ---------- */
.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); }
.phone {
  aspect-ratio: 9 / 19.5; border-radius: 34px; padding: 10px; position: relative;
  background: linear-gradient(160deg, #1d2433, #0d111b); border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.8);
}
.phone:nth-child(even) { transform: translateY(28px); }
.js .phone.reveal.in:nth-child(even) { transform: translateY(28px); }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; translate: -50% 0; width: 28%; height: 14px; border-radius: 10px; background: #05070c; z-index: 2; }
.phone img, .shot-empty { width: 100%; height: 100%; border-radius: 26px; object-fit: cover; }
.shot-empty {
  display: grid; place-content: center; gap: 6px; text-align: center; padding: 16px;
  background:
    radial-gradient(80% 50% at 50% 20%, rgba(111,211,232,.25), transparent 70%),
    repeating-linear-gradient(45deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px),
    linear-gradient(180deg, var(--w-sky), var(--w-sky-deep));
  border: 1.5px dashed rgba(185,220,239,.3);
}
.shot-empty span { font: 700 clamp(14px, 1.6vw, 18px)/1.2 var(--display); }
.shot-empty small { color: #a9c7da; font-size: 13px; }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(4, 62vw); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 36px; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .phone { scroll-snap-align: center; }
  .phone:nth-child(even), .js .phone.reveal.in:nth-child(even) { transform: none; }
}

/* ---------- Features ---------- */
.feats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.feat { padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s; }
.feat:hover { background: rgba(111,211,232,.05); }
.feat h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.feat h3::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 10px; background: var(--w-accent); vertical-align: middle; transform: translateY(-2px) rotate(45deg); }
.feat p { color: var(--muted); }
@media (max-width: 860px) { .feats { grid-template-columns: 1fr; } }

/* ---------- Get ---------- */
.get-icon { width: 96px; height: 96px; margin: 0 auto 24px; border-radius: 24px; box-shadow: 0 20px 50px -20px rgba(111,211,232,.6); }

@media (prefers-reduced-motion: reduce) {
  .w-floe, .w-eyes, .w-pupils, .flip, .foot { animation: none !important; }
}
