@font-face {
  font-family: "Fredoka";
  src: url("fonts/Fredoka.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #fff7ec;
  --card: #ffffff;
  --ink: #2b2118;
  --soft: #7a6a5c;
  --accent: #d92d2d;   /* Rocko's red collar */
  --tan: #c8792e;
  --line: #ecdcc8;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.5 "Fredoka", system-ui, sans-serif;
}

main { max-width: 560px; margin: 0 auto; padding: 0 16px 48px; }

.proto {
  margin: 0;
  padding: 6px 16px;
  background: #fde9b8;
  text-align: center;
  font-size: 14px;
  color: var(--soft);
}

header { text-align: center; padding: 24px 0 8px; }
h1 { margin: 4px 0; font-size: 40px; color: var(--accent); }
.wordmark { display: block; width: min(440px, 90vw); height: auto; margin: 0 auto 6px; }
h2 { margin: 0 0 16px; font-size: 22px; }
.lede { margin: 0; color: var(--soft); }

.card {
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  margin-top: 20px;
}

.field { display: block; margin: 0 0 18px; border: 0; padding: 0; }
.field > span, legend { display: block; font-weight: 600; margin-bottom: 6px; }
small { display: block; color: var(--soft); font-size: 14px; margin-top: 4px; }

input[type="text"], input[type="password"], input:not([type]) {
  width: 100%;
  font: inherit;
  padding: 10px 12px;
  border: 2px solid var(--line);
  border-radius: 12px;
}
input[type="file"] { font: inherit; max-width: 100%; }

.preview {
  display: block;
  max-width: 160px;
  border-radius: 14px;
  margin: -6px 0 18px;
}

.pick { display: block; margin: 4px 0; }

.consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--bg);
  border-radius: 12px;
  padding: 12px;
  font-size: 15px;
}
.consent input { margin-top: 5px; flex: none; }

.err { color: var(--accent); font-weight: 600; }

button, .button {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
  text-decoration: none;
}
#go { width: 100%; margin-top: 16px; font-size: 19px; }
.ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.super { display: block; width: 100%; margin-top: 16px; font-size: 19px; background: #1c2434; color: #FFC93C; }

.wait { text-align: center; }
.bob { width: 120px; animation: bob 0.9s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-12px) rotate(-4deg); } }

.stage {
  position: relative;
  border-radius: 16px;
  background: linear-gradient(#bfe6ff, #e8f7ff 60%, #a9dd7f 60%, #8fcc63);
  text-align: center;
  padding: 12px 12px 18px;
}
.stage img { display: block; width: 100%; max-width: 420px; max-height: 70vh; object-fit: contain; margin: 0 auto; }
.poses { display: flex; align-items: flex-end; justify-content: center; gap: 6px; }
.poses img { flex: 1 1 0; min-width: 0; max-height: 46vh; margin: 0; }
#cartoon { align-self: flex-start; }
.super.wr { background: #2f6d3a; color: #fff; margin-top: 10px; }
.banner {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 0 var(--tan);
}
.bubble {
  position: absolute;
  right: 12px;
  top: 52px;
  margin: 0;
  background: #fff;
  border-radius: 16px;
  padding: 6px 14px;
  font-weight: 700;
  box-shadow: 0 2px 0 var(--line);
}

.row { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 8px; }

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

.reuse { margin-top: 18px; border-top: 2px dashed var(--line); padding-top: 14px; }
.reuse summary { cursor: pointer; font-weight: 600; color: var(--soft); }
.reuse .field { margin: 12px 0 0; }

/* /brand kit page (Ron, 2026-10-02: "make the brand kit nicer") */
.hl-gold { color: #e9a800; }
.kit-hero { background: linear-gradient(#7fcbff, #c8ecff 70%, #fff7ec); padding: 44px 0 30px; overflow: hidden; }
.kit-hero-in { display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: center; }
.kit-hero-badge { width: 240px; height: auto; transform: rotate(8deg); animation: wobble 3.2s ease-in-out infinite; filter: drop-shadow(0 10px 8px rgba(28, 36, 52, .25)); }
.kit-band { padding: 56px 0; }
.alt-band { background: #fff3d9; }
.kit-card { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: start; gap: 24px; background: #fff; border-radius: 26px; padding: 22px; box-shadow: 0 8px 0 rgba(28, 36, 52, .1); }
.previews { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.previews.one { grid-template-columns: 1fr; }
.pv { position: relative; display: grid; place-items: center; min-height: 190px; border-radius: 18px; padding: 14px; }
.pv img { max-width: 100%; height: auto; }
.pv.light { background: #fff7ec; border: 2px solid var(--line); }
.pv.dark { background: var(--navy); }
.pv.skyblue { background: linear-gradient(#7fcbff, #c8ecff); }
.pv.wide { min-height: 150px; }
.pv.check { background-color: #fff; background-image: conic-gradient(#e9eef5 25%, transparent 0 50%, #e9eef5 0 75%, transparent 0); background-size: 18px 18px; border: 2px solid var(--line); }
.pv.check span { position: absolute; bottom: 8px; font-size: 13px; font-weight: 700; color: #5b6478; }
.kit-side h3 { margin: 0 0 10px; color: var(--navy); font-size: 20px; }
.kit-side h3 + .dl, .kit-side .dl { margin-bottom: 18px; }
.dl { display: flex; flex-wrap: wrap; gap: 8px; }
.dl a { background: var(--red); color: #fff; font-weight: 700; text-decoration: none; padding: 7px 14px; border-radius: 999px; box-shadow: 0 3px 0 #9e2622; font-size: 15px; }
.dl a.alt { background: var(--navy); box-shadow: 0 3px 0 #000; }
.dl a:hover { transform: translateY(-2px); }
.kit-side .small { font-size: 15px; color: #5b6478; margin: 0 0 8px; }
.code-box { position: relative; }
.code-box pre { background: var(--navy); color: #fff7ec; padding: 14px 16px; border-radius: 14px; overflow-x: auto; font-size: 13px; margin: 0; }
.copy { position: absolute; top: 8px; right: 8px; padding: 5px 12px; font-size: 13px; background: var(--gold); color: var(--navy); }
.warn { margin: 18px 0 0; background: #fff; border-left: 6px solid var(--red); border-radius: 12px; padding: 12px 16px; color: #33405a; }
.swatch-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.swatch { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; min-height: 150px; border-radius: 22px; padding: 14px; text-align: left; color: #fff; box-shadow: 0 6px 0 rgba(28, 36, 52, .15); transition: transform .15s; }
.swatch:hover { transform: translateY(-4px) rotate(-1deg); }
.swatch b { font-size: 17px; } .swatch span { font-size: 14px; opacity: .9; font-family: ui-monospace, Menlo, monospace; }
.swatch.sw-gold, .swatch.sw-cream { color: var(--navy); }
.swatch.sw-cream { border: 2px solid var(--line); }
.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.dodont > div { background: #fff; border-radius: 22px; padding: 18px 22px; border-top: 6px solid #7cc35a; box-shadow: 0 6px 0 rgba(28, 36, 52, .08); }
.dodont .dont { border-top-color: var(--red); }
.dodont h3 { margin: 0 0 6px; color: var(--navy); }
.dodont li { margin: 6px 0; color: #33405a; }
.kit-note { text-align: center; color: #5b6478; margin: 26px 0 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 30; margin: 0; background: var(--navy); color: #fff; font-weight: 700; padding: 10px 18px; border-radius: 999px; box-shadow: 0 6px 0 rgba(0, 0, 0, .25); }
.swatches li { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.swatches span { width: 28px; height: 28px; border-radius: 8px; border: 2px solid var(--line); }
.sw-navy { background: #1c2434; } .sw-cream { background: #fff7ec; } .sw-red { background: #d83a34; } .sw-gold { background: #FFC93C; } .sw-blue { background: #0669e1; }
@media (max-width: 860px) {
  .kit-hero-in { grid-template-columns: 1fr; text-align: center; }
  .kit-hero-badge { width: 170px; margin: 0 auto; }
  .kit-card, .dodont { grid-template-columns: minmax(0, 1fr); }
  .swatch-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .previews { grid-template-columns: 1fr 1fr; }
  .pv { min-height: 140px; }
}
@media (prefers-reduced-motion: reduce) { .kit-hero-badge { animation: none; } }

/* ======================================================================
   HOME PAGE (Ron, 2026-10-02: "a full blown home page redo… exciting like
   all the other sites"). Palette: navy #1c2434, cream #fff7ec, Rocko red
   #d83a34, gold #FFC93C, Super Rocko blue #0669e1.
   ====================================================================== */
.home { --navy: #1c2434; --red: #d83a34; --gold: #FFC93C; --blue: #0669e1; --grass: #7cc35a;
  --band-y: clamp(56px, 7vw, 92px);   /* top/bottom space of every section */
  --head-gap: clamp(28px, 3.5vw, 44px); /* section heading block to its content */ }
.home main { max-width: none; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 600px; }

/* top bar */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 18px;
  padding: 8px 20px;
  background: rgba(255, 247, 236, .92);
  backdrop-filter: blur(8px);
  border-bottom: 3px solid var(--gold);
}
.top-logo img { display: block; height: 44px; width: auto; }
.top-links { display: flex; gap: 18px; margin-left: auto; }
.top-links a { color: var(--navy); font-weight: 600; text-decoration: none; }
.top-links a:hover { color: var(--red); }
.pill-btn {
  background: var(--red); color: #fff; font-weight: 700; text-decoration: none;
  padding: 9px 18px; border-radius: 999px; box-shadow: 0 4px 0 #9e2622; white-space: nowrap;
}
.pill-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 #9e2622; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 48px 0 64px; background: linear-gradient(#7fcbff, #c8ecff 55%, #eaf8ff); }
.sky { position: absolute; inset: 0; pointer-events: none; }
.sunburst {
  position: absolute; width: 1400px; height: 1400px; left: 62%; top: 30%;
  transform: translate(-50%, -50%);
  background: repeating-conic-gradient(rgba(255, 255, 255, .28) 0 10deg, transparent 10deg 20deg);
  border-radius: 50%; animation: spin 80s linear infinite;
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent);
  mask-image: radial-gradient(closest-side, #000 30%, transparent);
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }
.cloud { position: absolute; background: #fff; border-radius: 999px; opacity: .95; box-shadow: 0 6px 0 rgba(28, 36, 52, .06); }
.cloud::before, .cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 55%; height: 170%; left: 14%; bottom: 25%; }
.cloud::after { width: 40%; height: 130%; right: 12%; bottom: 30%; }
.c1 { width: 180px; height: 46px; top: 70px; left: -200px; animation: drift 46s linear infinite; }
.c2 { width: 130px; height: 34px; top: 200px; left: -160px; animation: drift 62s linear -20s infinite; }
.c3 { width: 220px; height: 54px; top: 330px; left: -240px; animation: drift 75s linear -50s infinite; }
@keyframes drift { to { transform: translateX(calc(100vw + 480px)); } }
.spark { position: absolute; color: #fff; font-size: 26px; text-shadow: 0 0 12px var(--gold); animation: twinkle 2.4s ease-in-out infinite; }
.s1 { top: 18%; left: 8%; } .s2 { top: 12%; left: 46%; animation-delay: .8s; font-size: 18px; }
.s3 { top: 62%; left: 4%; color: var(--gold); animation-delay: 1.4s; } .s4 { top: 30%; right: 6%; animation-delay: .3s; }
@keyframes twinkle { 50% { transform: scale(.4) rotate(40deg); opacity: .3; } }
.zoomer { position: absolute; width: 150px; height: auto; top: 26px; left: -180px; animation: zoom 14s ease-in-out infinite; filter: drop-shadow(0 8px 6px rgba(28, 36, 52, .25)); }
@keyframes zoom {
  0% { transform: translate(0, 0) rotate(-4deg); }
  45% { transform: translate(calc(100vw + 360px), -20px) rotate(4deg); }
  100% { transform: translate(calc(100vw + 360px), -20px); }
}
.hill { position: absolute; left: -10%; right: -10%; bottom: -96px; height: 150px; background: var(--grass); border-radius: 50% 50% 0 0; box-shadow: inset 0 14px 0 #95d870; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: center; }
.kicker { display: inline-block; margin: 0 0 14px; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--navy); font-weight: 700; box-shadow: 0 3px 0 rgba(28, 36, 52, .12); }
h1.big { font-size: clamp(38px, 5.6vw, 68px); line-height: 1.02; margin: 0 0 16px; color: var(--navy); letter-spacing: -.5px; }
.hl-red { color: var(--red); } .hl-blue { color: var(--blue); }
.hero-lede { font-size: 20px; margin: 0 0 22px; color: #33405a; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 20px;
  padding: 15px 26px; border-radius: 999px; background: var(--red); color: #fff;
  box-shadow: 0 6px 0 #9e2622; transition: transform .15s, box-shadow .15s;
}
.cta:hover { transform: translateY(-3px) rotate(-1deg); box-shadow: 0 9px 0 #9e2622; }
.cta.ghosty { background: #fff; color: var(--navy); box-shadow: 0 6px 0 #c9d6e6; }
.cta.ghosty:hover { box-shadow: 0 9px 0 #c9d6e6; }
.trust { margin: 18px 0 0; font-size: 15px; color: #33405a; font-weight: 600; }
.hero-art { position: relative; }
.hero-logo { display: block; width: 100%; height: auto; filter: drop-shadow(0 14px 10px rgba(28, 36, 52, .18)); animation: floaty 4s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.hero-sticker { position: absolute; width: 104px; height: auto; right: -6px; top: -44px; transform: rotate(12deg); animation: wobble 3s ease-in-out infinite; filter: drop-shadow(0 6px 4px rgba(28, 36, 52, .25)); }
@keyframes wobble { 50% { transform: rotate(-6deg) scale(1.06); } }
.speech { position: absolute; left: 4%; bottom: -26px; margin: 0; background: #fff; padding: 8px 16px; border-radius: 18px; font-weight: 700; color: var(--navy); box-shadow: 0 4px 0 rgba(28, 36, 52, .12); animation: pop 3.5s ease-in-out infinite; }
.speech::after { content: ""; position: absolute; top: -10px; left: 30px; border: 10px solid transparent; border-top: 0; border-bottom-color: #fff; }
@keyframes pop { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.12) rotate(-3deg); } }

/* hero with Ron's painted scene */
.hero.has-art { min-height: clamp(560px, 52vw, 780px); display: flex; align-items: center; padding: 40px 0; background: #5aa9ef; }
.hero.has-art::before { content: ""; position: absolute; inset: 0;
  background: url("img/hero/hero-1600.webp") 70% center / cover no-repeat;
  background-image: image-set(url("img/hero/hero-1600.webp") 1x, url("img/hero/hero-2400.webp") 2x);
  transform-origin: 70% 60%; animation: drift-zoom 26s ease-in-out infinite alternate; }
@keyframes drift-zoom { to { transform: scale(1.05) translate(-.6%, -.4%); } }
/* the kid starts about 41% across the art, so keep the copy inside the sky on the left */
.hero.has-art .wrap { max-width: none; margin: 0; padding-left: max(20px, 5vw); }
.hero.has-art .hero-grid { grid-template-columns: min(560px, 34vw); width: 100%; }
/* the headline is exactly two lines (Ron): "Your kid. In the game." / "With Rocko!". Line 1 is
   about 9.2x its font size wide, so size the font to the open sky left of the kid (~41% across). */
.hero-h1 .h1-line { display: block; white-space: nowrap; }
.hero.has-art h1.big { font-size: clamp(28px, calc((34vw - 16px) / 9.4), 60px); }
.hero.has-art .hero-lede { font-size: clamp(17px, 1.45vw, 20px); }
.hero.has-art h1.big, .hero.has-art .hero-lede { text-shadow: 0 2px 10px rgba(255, 255, 255, .7); }
.hero.has-art .hero-lede { color: #1c2434; }
.hero.has-art .hero-sticker { position: absolute; z-index: 2; width: 110px; right: 3%; top: 22px; }
.hero-phone { display: none; }
.plays-in { display: inline-block; margin: 20px 0 0; background: rgba(255, 255, 255, .92); border-radius: 20px; padding: 10px 12px 12px; box-shadow: 0 6px 0 rgba(28, 36, 52, .12); }
.plays-label { margin: 0 0 8px 4px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #5b6478; }
.plays-games { display: flex; flex-wrap: wrap; gap: 10px; }
.mini { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid #e6ecf5; border-radius: 16px; padding: 6px 14px 6px 6px; text-decoration: none; color: var(--navy); transition: transform .15s, border-color .15s; }
.mini:hover { transform: translateY(-2px); border-color: var(--gold); }
.mini img { width: 48px; height: 48px; object-fit: cover; border-radius: 12px; flex: none; }
.mini span { display: flex; flex-direction: column; line-height: 1.15; }
.mini b { font-size: 15px; white-space: nowrap; }
.mini small { display: block; margin: 2px 0 0; font-size: 12px; color: #5b6478; white-space: nowrap; }
.trust-chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.trust-chips li { background: rgba(255, 255, 255, .85); border-radius: 999px; padding: 4px 12px; font-size: 14px; font-weight: 600; color: var(--navy); white-space: nowrap; }

/* hero extras (Ron: "make the hero section more exciting") */
.hero-h1 .w { display: inline-block; animation: word-in .7s cubic-bezier(.2, 1.5, .4, 1) backwards; }
.hero-h1 .w1 { animation-delay: .1s; }
.hero-h1 .w2 { animation-name: word-slide; animation-delay: .45s; }
.hero-h1 .w3 { position: relative; animation-name: word-wiggle; animation-delay: .85s; animation-duration: .9s; }
@keyframes word-in { from { opacity: 0; transform: translateY(40px) scale(.6); } }
@keyframes word-slide { from { opacity: 0; transform: translateX(60px); } }
@keyframes word-wiggle { 0% { opacity: 0; transform: scale(.4) rotate(-8deg); } 60% { opacity: 1; transform: scale(1.12) rotate(4deg); } 80% { transform: rotate(-2deg); } }
.squiggle { position: absolute; left: 0; right: 0; bottom: -.16em; width: 100%; height: .32em; overflow: visible; }
.squiggle path { fill: none; stroke: var(--gold); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 340; stroke-dashoffset: 340; animation: draw-line .8s ease-out 1.5s forwards; }
@keyframes draw-line { to { stroke-dashoffset: 0; } }
.s5 { top: 28%; left: 63%; } .s6 { top: 58%; left: 53%; animation-delay: .6s; color: var(--gold); } .s7 { top: 18%; left: 82%; animation-delay: 1.1s; }
.kid-bubble { position: absolute; z-index: 2; left: 56%; top: 13%; margin: 0; background: #fff; color: var(--navy); font-weight: 700; font-size: clamp(15px, 1.4vw, 20px); padding: 7px 16px; border-radius: 18px 18px 18px 4px; box-shadow: 0 5px 0 rgba(28, 36, 52, .18); }
.kid-bubble b { color: var(--red); }
.kid-bubble.swap { animation: name-pop .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes name-pop { from { transform: scale(.7) rotate(-6deg); } }
.hero-phone-wrap { display: none; position: relative; }
.phone-bubble { left: 18%; top: 6%; font-size: 15px; }
.cta.pulse { position: relative; }
.cta.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 999px; border: 3px solid var(--red); opacity: 0; animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { opacity: .7; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.18, 1.5); } }
.scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 16px; transform: translateX(-50%); background: rgba(255, 255, 255, .9); color: var(--navy); font-weight: 700; text-decoration: none; padding: 7px 16px; border-radius: 999px; box-shadow: 0 4px 0 rgba(28, 36, 52, .15); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 50% { transform: translate(-50%, 6px); } }

/* bands */
.band { padding: var(--band-y) 0; }
.section-title { text-align: center; font-size: clamp(30px, 4vw, 44px); line-height: 1.12; margin: 0 0 10px; color: var(--navy); }
.section-sub { text-align: center; margin: 0 0 var(--head-gap); color: #5b6478; font-size: 18px; }

/* how it works: base step cards */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { position: relative; background: #fff; border-radius: 24px; padding: 30px 22px 24px; text-align: center; box-shadow: 0 8px 0 rgba(28, 36, 52, .15); transition: transform .2s; }
.step:hover { transform: translateY(-6px) rotate(-1deg); }
.step .num { position: absolute; left: 50%; transform: translateX(-50%); border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; box-shadow: 0 4px 0 rgba(28, 36, 52, .2); }
.s-red .num { background: var(--red); } .s-gold .num { background: #e9a800; } .s-blue .num { background: var(--blue); }
.step h3 { margin: 0 0 6px; color: var(--navy); }
.step p { margin: 0; color: #5b6478; }

/* how it works: a little animated story */
.how { position: relative; overflow: hidden; background: linear-gradient(#7cc35a, #8fd06b 60%, #7cc35a); }
.how .section-title, .how .section-sub { position: relative; color: #fff; text-shadow: 0 2px 0 rgba(28, 36, 52, .25); }
.timer-chip { display: inline-block; background: #fff; color: var(--navy); text-shadow: none; font-weight: 700; padding: 5px 14px; border-radius: 999px; box-shadow: 0 4px 0 rgba(28, 36, 52, .15); }
.how-deco { position: absolute; inset: 0; pointer-events: none; }
.toy { position: absolute; font-size: 34px; opacity: .55; animation: bounce 3.6s ease-in-out infinite; }
.t1 { left: 4%; top: 18%; } .t2 { right: 6%; top: 12%; animation-delay: .9s; } .t3 { right: 4%; bottom: 14%; animation-delay: 1.6s; } .t4 { left: 7%; bottom: 10%; animation-delay: 2.2s; }
@keyframes bounce { 50% { transform: translateY(-14px) rotate(18deg); } }
.steps.story { position: relative; gap: 34px; }
.story .step { padding-top: 34px; overflow: visible; }
.story .num { width: 52px; height: 52px; font-size: 26px; top: -26px; border: 4px solid #fff; }
.step-art { position: relative; height: 170px; display: grid; place-items: center; margin: 0 0 10px; }
.story h3 { font-size: 24px; }

/* paw prints walking to the next card */
.paws { position: absolute; right: -36px; top: 46%; display: flex; flex-direction: column; gap: 2px; z-index: 2; font-size: 18px; }
.paws i { font-style: normal; opacity: 0; animation: step 2.4s infinite; transform: rotate(90deg); }
.paws i:nth-child(2) { animation-delay: .3s; margin-left: 10px; } .paws i:nth-child(3) { animation-delay: .6s; }
@keyframes step { 0%, 10% { opacity: 0; } 25%, 60% { opacity: 1; } 85%, 100% { opacity: 0; } }

/* 1: phone with a camera flash */
.phone { position: relative; width: 104px; height: 160px; background: var(--navy); border-radius: 22px; padding: 14px 8px; box-shadow: 0 8px 0 rgba(28, 36, 52, .2); transform: rotate(-6deg); }
.phone-cam { position: absolute; top: 6px; left: 50%; width: 22px; height: 4px; margin-left: -11px; background: #3a4766; border-radius: 4px; }
.phone-screen { position: relative; height: 100%; border-radius: 12px; background: linear-gradient(#bfe6ff, #fff3d1); display: grid; place-items: center; overflow: hidden; }
.phone-kid { font-size: 58px; animation: smile 2.8s ease-in-out infinite; }
@keyframes smile { 50% { transform: scale(1.08) rotate(-4deg); } }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; animation: flash 2.8s infinite; }
@keyframes flash { 0%, 62% { opacity: 0; } 66% { opacity: .95; } 80%, 100% { opacity: 0; } }
.shutter { position: absolute; right: -10px; top: 28px; width: 14px; height: 30px; background: var(--red); border-radius: 6px; }

/* 2: Rocko at his easel, drawing the kid in */
.art-easel { display: flex; align-items: flex-end; justify-content: center; gap: 0; }
.easel-rocko { width: 104px; height: auto; margin-right: -14px; position: relative; z-index: 1; animation: nod 2.4s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes nod { 50% { transform: rotate(-4deg); } }
.easel { position: relative; width: 132px; height: 150px; }
.easel::before, .easel::after { content: ""; position: absolute; bottom: 0; width: 8px; height: 120px; background: #b97a3d; border-radius: 4px; }
.easel::before { left: 26px; transform: rotate(8deg); } .easel::after { right: 26px; transform: rotate(-8deg); }
.canvas { position: absolute; z-index: 1; left: 6px; right: 6px; top: 0; height: 112px; background: #fff; border: 5px solid #e9a800; border-radius: 10px; box-shadow: 0 6px 0 rgba(28, 36, 52, .15); display: grid; place-items: center; overflow: hidden; }
.drawing { width: 96px; height: auto; animation: draw 4s ease-in-out infinite; }
@keyframes draw { 0%, 8% { clip-path: inset(0 100% 0 0); } 60%, 92% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 0); opacity: 0; } }
.pencil { position: absolute; z-index: 2; top: 10px; left: 6px; font-size: 26px; animation: scribble 4s ease-in-out infinite; }
@keyframes scribble { 0%, 8% { transform: translate(0, 10px) rotate(-10deg); } 20% { transform: translate(30px, 50px) rotate(10deg); } 35% { transform: translate(55px, 15px) rotate(-10deg); } 50% { transform: translate(85px, 60px) rotate(10deg); } 60%, 100% { transform: translate(100px, 30px) rotate(0); opacity: 0; } }

/* 3: a mini Super Rocko screen cheering the kid on */
.mini-game { position: relative; width: 210px; height: 150px; border-radius: 18px; overflow: hidden; border: 5px solid var(--navy); box-shadow: 0 8px 0 rgba(28, 36, 52, .2); transform: rotate(4deg); }
.mini-bg { width: 100%; height: 100%; object-fit: cover; animation: pan 6s ease-in-out infinite alternate; }
@keyframes pan { to { transform: scale(1.12) translateX(-10px); } }
.mini-score { position: absolute; top: 8px; left: 8px; background: rgba(28, 36, 52, .8); color: #fff; font-weight: 700; font-size: 14px; padding: 2px 10px; border-radius: 999px; }
.mini-bubble { position: absolute; right: 8px; bottom: 10px; background: #fff; color: var(--navy); font-weight: 700; font-size: 15px; padding: 4px 12px; border-radius: 14px; animation: pop 2.6s ease-in-out infinite; }

.how-cta { text-align: center; margin: var(--head-gap) 0 0; position: relative; }

/* cards pop in as they scroll into view (home.js adds .in) */
.will-reveal .reveal { opacity: 0; transform: translateY(40px) scale(.94); }
.will-reveal .reveal.in { opacity: 1; transform: none; transition: opacity .5s ease, transform .6s cubic-bezier(.2, 1.4, .4, 1); transition-delay: var(--d, 0ms); }

/* games: an arcade "Now Playing" */
.games.arcade { position: relative; overflow: hidden; color: #fff; padding: calc(var(--band-y) + 24px) 0 calc(var(--band-y) + 24px);
  background: radial-gradient(1200px 500px at 50% 0%, #3b2a7a, transparent 70%), linear-gradient(#1c2434, #2a1f5c 55%, #1c2434); }
.arcade-stars { position: absolute; inset: 0; pointer-events: none; opacity: .7;
  background-image: radial-gradient(2px 2px at 20px 30px, #fff, transparent), radial-gradient(2px 2px at 140px 90px, #ffe28a, transparent),
    radial-gradient(1.5px 1.5px at 260px 40px, #fff, transparent), radial-gradient(2px 2px at 330px 150px, #9fd3ff, transparent);
  background-size: 360px 200px; animation: twinkle-bg 4s ease-in-out infinite alternate; }
@keyframes twinkle-bg { to { opacity: .35; } }
/* chasing marquee bulbs, top and bottom */
.lights { position: absolute; left: 0; right: 0; top: 18px; height: 16px; pointer-events: none;
  background: radial-gradient(circle, #ffe28a 0 4px, rgba(255, 201, 60, .35) 5px, transparent 7px) 0 0 / 32px 16px repeat-x;
  filter: drop-shadow(0 0 6px rgba(255, 201, 60, .8)); animation: chase .6s steps(2) infinite; }
.lights.bottom { top: auto; bottom: 18px; animation-direction: reverse; }
@keyframes chase { to { background-position: 32px 0; } }
.sign { position: relative; text-align: center; margin: 0 auto 16px; max-width: 520px; padding: 16px 20px 18px;
  border: 5px solid var(--gold); border-radius: 22px; background: #26304a;
  box-shadow: 0 0 0 4px #d83a34, 0 0 30px rgba(255, 201, 60, .5), inset 0 0 22px rgba(255, 201, 60, .25); }
.sign-top { display: block; color: var(--gold); font-weight: 700; letter-spacing: .25em; text-transform: uppercase; font-size: 14px; animation: glow 1.6s ease-in-out infinite alternate; }
@keyframes glow { to { text-shadow: 0 0 12px #ffc93c, 0 0 2px #fff; } }
.sign h2 { margin: 2px 0 0; font-size: clamp(34px, 5vw, 52px); color: #fff; text-shadow: 0 3px 0 #d83a34, 0 0 18px rgba(255, 255, 255, .35); }
.arcade .section-sub { color: #c9d1e2; }
.arcade .section-sub b { color: var(--gold); }

.game-cards { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.game { position: relative; background: #fff; color: var(--navy); border-radius: 26px; box-shadow: 0 12px 0 rgba(0, 0, 0, .25); border: 5px solid #fff; transition: transform .25s ease, box-shadow .25s; }
.g-super { border-color: #4fa3ff; } .g-wr { border-color: #7cc35a; }
.tilt:hover, .will-reveal .reveal.in.tilt:hover { transform: perspective(900px) rotateX(3deg) rotateY(-4deg) translateY(-8px); box-shadow: 0 20px 0 rgba(0, 0, 0, .25); }
.g-wr.tilt:hover, .will-reveal .g-wr.reveal.in.tilt:hover { transform: perspective(900px) rotateX(3deg) rotateY(4deg) translateY(-8px); }
.pop-out { position: absolute; z-index: 3; pointer-events: none; height: auto; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .35)); }
/* Super Rocko's balloon squirrel dangling off the card (balloons drawn in code, as in the game) */
.pop-squirrel { width: 112px; top: -118px; right: -14px; transform-origin: 50% 0; animation: sway 3.4s ease-in-out infinite; }
.pop-squirrel img { display: block; width: 100%; height: auto; margin-top: 62px; }
@keyframes sway { 50% { transform: rotate(7deg) translateY(-6px); } }
.balloon { position: absolute; top: 0; width: 38px; height: 46px; border-radius: 50% 50% 48% 48%; box-shadow: inset -6px -6px 0 rgba(0, 0, 0, .12); }
.balloon::before { content: ""; position: absolute; left: 50%; top: 100%; width: 2px; height: 48px; background: rgba(255, 255, 255, .7); transform-origin: top; }
.balloon::after { content: ""; position: absolute; left: 30%; top: 18%; width: 8px; height: 12px; border-radius: 50%; background: rgba(255, 255, 255, .55); }
.b1 { left: 4px; background: #d83a34; } .b1::before { transform: rotate(-16deg); }
.b2 { left: 40px; top: -14px; background: var(--gold); } .b2::before { height: 62px; }
.b3 { left: 76px; background: #4fa3ff; } .b3::before { transform: rotate(16deg); }
.pop-run { width: 150px; top: -92px; right: -26px; animation: hop 1.1s ease-in-out infinite; }
@keyframes hop { 50% { transform: translateY(-14px) rotate(-3deg); } }
.game-pic { position: relative; aspect-ratio: 1200 / 630; background: #cfe9ff; border-radius: 21px 21px 0 0; overflow: hidden; }
.game-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pan { animation: kenburns 14s ease-in-out infinite alternate; }
@keyframes kenburns { to { transform: scale(1.12) translate(-3%, -2%); } }
.game-pic.trio { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 4px; background: #2f6d3a; }
.game-pic.trio img:first-child { grid-row: span 2; }
.game-sticker.game-sticker { position: absolute; width: 78px; height: 78px; right: 10px; bottom: 10px; top: auto; object-fit: contain; animation: spin-slow 9s linear infinite; filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .35)); }
@keyframes spin-slow { to { transform: rotate(360deg); } }
.g-wr .game-sticker.game-sticker { right: auto; left: 10px; }
.game-cards { padding-top: 64px; }   /* room for the squirrel and running Rocko above the cards */
.game-body { padding: 20px 22px 24px; }
.game-body h3 { margin: 0 0 10px; font-size: 30px; color: var(--navy); }
.game-body p { margin: 0 0 10px; color: #5b6478; }
.stats { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.stats li { background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; padding: 4px 12px; border-radius: 999px; }
.tags { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { border-radius: 999px; padding: 4px 12px; font-weight: 600; font-size: 15px; color: var(--navy); border: 2px solid; }
.g-super .tags li { background: #e5f0ff; border-color: #9ec4ff; }
.g-wr .tags li { background: #e9f6e2; border-color: #a6d98e; }
.play-btn { display: block; text-align: center; text-decoration: none; font-weight: 700; font-size: 19px; color: #fff; padding: 13px 20px; border-radius: 999px; transition: transform .15s; }
.g-super .play-btn { background: var(--blue); box-shadow: 0 6px 0 #04479a; }
.g-wr .play-btn { background: #2f6d3a; box-shadow: 0 6px 0 #1d4625; }
.play-btn:hover { transform: translateY(-3px) scale(1.02); }
.mystery { display: flex; align-items: center; gap: 16px; max-width: 640px; margin: var(--head-gap) auto 0; background: rgba(255, 255, 255, .08); border: 2px dashed rgba(255, 201, 60, .6); border-radius: 22px; padding: 16px 22px; }
.mystery p { margin: 0; color: #c9d1e2; }
.mystery b { color: #fff; }
.gift { font-size: 46px; animation: shake 2.6s ease-in-out infinite; }
@keyframes shake { 0%, 70%, 100% { transform: rotate(0); } 75% { transform: rotate(-14deg); } 80% { transform: rotate(12deg); } 85% { transform: rotate(-8deg); } 90% { transform: rotate(5deg); } }

/* the grown-up promise: guard Rocko, the photo's journey, four stamped promises */
.promise { position: relative; overflow: hidden; background: radial-gradient(900px 420px at 15% 10%, #2c3a63, transparent 70%), var(--navy); color: #fff7ec; }
.promise .section-title { color: var(--gold); text-align: left; }
.promise .section-sub { color: #c9d1e2; text-align: left; margin-bottom: 0; }
.promise .section-sub a { color: var(--gold); }
.promise-kicker { margin: 0 0 6px; color: #7cc35a; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; font-size: 14px; }
.promise-head { display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center; margin-bottom: var(--head-gap); }
.guard { position: relative; text-align: center; }
.guard-rocko { width: 150px; height: auto; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .4)); transform-origin: 50% 100%; animation: salute 3.4s ease-in-out infinite; }
@keyframes salute { 0%, 70%, 100% { transform: rotate(0); } 78% { transform: rotate(-4deg) translateY(-6px); } 86% { transform: rotate(2deg); } }
.guard-bubble { position: absolute; top: -6px; left: 60%; margin: 0; white-space: nowrap; background: #fff; color: var(--navy); font-weight: 700; font-size: 15px; padding: 6px 12px; border-radius: 16px; animation: pop 3.4s ease-in-out infinite; }

/* the photo's journey */
.journey { position: relative; background: #26304a; border: 2px solid #34405f; border-radius: 26px; padding: 30px 26px 22px; margin: 0 0 var(--head-gap); }
.stops { position: relative; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stops::before { content: ""; position: absolute; left: 12%; right: 12%; top: 30px; border-top: 4px dashed #4b5878; }
.stops li { position: relative; text-align: center; }
.stop-ic { position: relative; z-index: 1; display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: var(--navy); border: 4px solid var(--gold); font-size: 30px; }
.stops li:nth-child(3) .stop-ic { border-color: #4fa3ff; }
.stops li:last-child .stop-ic { border-color: #7cc35a; }
.stops b { display: block; color: #fff; font-size: 18px; }
.stops small { display: block; color: #c9d1e2; font-size: 14px; margin-top: 4px; }
.traveler { position: absolute; z-index: 2; top: 38px; left: 12%; font-size: 26px; animation: travel 7s ease-in-out infinite; }
@keyframes travel {
  0% { left: 12%; opacity: 0; transform: scale(.6); } 6% { opacity: 1; transform: scale(1); }
  30% { left: 37%; } 40% { left: 37%; } 64% { left: 62%; } 74% { left: 62%; }
  90% { left: 86%; opacity: 1; transform: scale(1) rotate(0); } 100% { left: 86%; opacity: 0; transform: scale(.2) rotate(180deg); }
}
.name-home { margin: 22px 0 0; text-align: center; background: rgba(124, 195, 90, .14); border: 2px solid rgba(124, 195, 90, .5); border-radius: 999px; padding: 8px 16px; color: #e3f4d9; }
.name-home b { color: #fff; }

/* the four promises */
.promises { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.promises li { position: relative; background: #fff7ec; color: var(--navy); border-radius: 22px; padding: 22px 18px 20px; box-shadow: 0 8px 0 rgba(0, 0, 0, .3); }
.p-ic { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: var(--gold); font-size: 30px; }
.promises li:nth-child(2) .p-ic { background: #ffb4b0; } .promises li:nth-child(3) .p-ic { background: #b9dcff; } .promises li:nth-child(4) .p-ic { background: #c4e9b1; }
.promises h3 { margin: 12px 0 6px; font-size: 20px; color: var(--navy); }
.promises p { margin: 0; color: #5b6478; font-size: 15px; }
.stamp { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 3px solid #2f8a3a; color: #2f8a3a; font-weight: 700; font-size: 22px; transform: rotate(-14deg); }
.will-reveal .promises li .stamp { opacity: 0; transform: scale(2.4) rotate(-30deg); }
.will-reveal .promises li.in .stamp { opacity: 1; transform: rotate(-14deg); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1) .45s, opacity .2s .45s; transition-delay: calc(var(--d, 0ms) + 450ms); }
.promise-cta { text-align: center; margin: var(--head-gap) 0 0; }

/* the maker: Rocko's art studio */
.maker { position: relative; overflow: hidden; background: linear-gradient(#c8ecff, #fff3d9 45%, #fff7ec); }
.maker .wrap { position: relative; }
.maker .card { box-shadow: 0 8px 0 rgba(28, 36, 52, .1); }
.studio-deco { position: absolute; inset: 0; pointer-events: none; }
.splat { position: absolute; border-radius: 46% 54% 60% 40% / 50% 42% 58% 50%; opacity: .5; animation: blob 9s ease-in-out infinite alternate; }
.sp1 { width: 220px; height: 200px; left: -60px; top: 120px; background: #ffb4b0; }
.sp2 { width: 160px; height: 170px; right: -40px; top: 60px; background: #ffe08a; animation-delay: -3s; }
.sp3 { width: 200px; height: 180px; right: 4%; bottom: 140px; background: #b9dcff; animation-delay: -5s; }
.sp4 { width: 140px; height: 130px; left: 6%; bottom: 60px; background: #c4e9b1; animation-delay: -7s; }
@keyframes blob { to { border-radius: 58% 42% 44% 56% / 46% 58% 42% 54%; transform: rotate(14deg) scale(1.06); } }
.maker-head { display: grid; grid-template-columns: 110px 1fr; gap: 16px; align-items: center; }
.maker .section-title, .maker .section-sub { text-align: left; }
.maker-rocko-wrap { position: relative; }
.maker-rocko { width: 90px; height: auto; transform-origin: 50% 100%; animation: wave-hi 2.6s ease-in-out infinite; filter: drop-shadow(0 6px 4px rgba(28, 36, 52, .2)); }
@keyframes wave-hi { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-5deg); } 80% { transform: rotate(4deg); } 90% { transform: rotate(-3deg); } }
.maker-bubble { position: absolute; left: 70px; top: -10px; margin: 0; white-space: nowrap; background: #fff; color: var(--navy); font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 14px 14px 14px 4px; box-shadow: 0 3px 0 rgba(28, 36, 52, .12); animation: pop 3.2s ease-in-out infinite; z-index: 2; }

/* the live checklist */
.stepper { list-style: none; padding: 0; margin: 4px 0 18px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.stepper li { text-align: center; font-weight: 700; font-size: 14px; color: #5b6478; background: #fff; border: 3px dashed #d6dce8; border-radius: 16px; padding: 8px 4px; transition: background .25s, border-color .25s, color .25s, transform .25s; }
.stepper li span { display: block; font-size: 22px; filter: grayscale(1); opacity: .6; transition: filter .25s, opacity .25s; }
.stepper li.done { background: #e9f6e2; border: 3px solid #7cc35a; color: #2f6d3a; transform: translateY(-3px); }
.stepper li.done span { filter: none; opacity: 1; animation: tada .5s ease; }
@keyframes tada { 40% { transform: scale(1.35) rotate(-8deg); } }

/* the photo drop zone (the real file input covers it, so tap and drag-and-drop both work) */
.field.drop > .drop-zone, .drop-zone { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 22px 14px; border: 3px dashed #9ec4ff; border-radius: 20px; background: #f1f7ff; color: var(--navy); text-align: center; transition: background .2s, border-color .2s, transform .2s; }
.drop-zone:hover, .drop-zone:focus-within { background: #e5f0ff; border-color: var(--blue); transform: translateY(-2px); }
.drop-ic { font-size: 40px; animation: bounce 2.6s ease-in-out infinite; }
.drop-zone b { font-size: 18px; } .drop-zone small { margin: 0; }
.drop-zone input[type="file"] { position: absolute; inset: 0; width: 100%; max-width: none; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.field.drop > small { margin-top: 8px; }

/* the big button */
.shimmer { position: relative; overflow: hidden; box-shadow: 0 6px 0 #9e2622; }
.shimmer::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg); animation: shine 3s ease-in-out infinite; }
@keyframes shine { 0%, 55% { left: -60%; } 100% { left: 130%; } }
#go.shimmer:hover { transform: translateY(-2px); }

/* waiting: Rocko at his easel, a changing message, a gentle progress bar */
.wait .art-easel { height: 170px; margin: 0 auto 6px; }
.wait-title { margin: 6px 0 2px; font-size: 22px; font-weight: 700; color: var(--navy); }
.wait-msg { margin: 0 0 12px; color: #5b6478; min-height: 1.5em; }
.wait-bar { height: 12px; border-radius: 999px; background: #eef2f8; overflow: hidden; margin: 0 auto 8px; max-width: 360px; }
.wait-bar span { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--red), var(--gold), var(--blue), #7cc35a); transform-origin: left; animation: fill-up 55s cubic-bezier(.1, .7, .3, 1) forwards; }
@keyframes fill-up { from { transform: scaleX(.03); } to { transform: scaleX(.96); } }

/* the result: a one-time confetti burst when it appears */
#result { position: relative; overflow: hidden; }
.confetti { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.confetti i { position: absolute; top: -12px; width: 10px; height: 16px; border-radius: 3px; opacity: 0; animation: drop 1.8s ease-in forwards; }
.confetti i:nth-child(4n+1) { background: var(--red); } .confetti i:nth-child(4n+2) { background: var(--gold); }
.confetti i:nth-child(4n+3) { background: var(--blue); } .confetti i:nth-child(4n+4) { background: #7cc35a; }
.confetti i:nth-child(1) { left: 6%; animation-delay: .05s; } .confetti i:nth-child(2) { left: 14%; animation-delay: .3s; }
.confetti i:nth-child(3) { left: 23%; animation-delay: .15s; } .confetti i:nth-child(4) { left: 31%; animation-delay: .45s; }
.confetti i:nth-child(5) { left: 40%; animation-delay: .1s; } .confetti i:nth-child(6) { left: 48%; animation-delay: .35s; }
.confetti i:nth-child(7) { left: 56%; animation-delay: .2s; } .confetti i:nth-child(8) { left: 64%; animation-delay: .5s; }
.confetti i:nth-child(9) { left: 72%; animation-delay: .08s; } .confetti i:nth-child(10) { left: 80%; animation-delay: .4s; }
.confetti i:nth-child(11) { left: 88%; animation-delay: .25s; } .confetti i:nth-child(12) { left: 95%; animation-delay: .55s; }
@keyframes drop { 0% { opacity: 1; transform: translateY(0) rotate(0); } 100% { opacity: 0; transform: translateY(520px) rotate(540deg); } }

/* questions: a chat with Rocko */
.faq { background: #fff7ec; padding-top: calc(var(--band-y) * .5); padding-bottom: 24px; overflow-x: clip; }
.chat { position: relative; display: flex; flex-direction: column; gap: 14px; }
.peek { position: absolute; z-index: 0; left: -118px; top: 40px; width: 130px; height: auto; transform-origin: 100% 60%; animation: peek-in 5s ease-in-out infinite; }
@keyframes peek-in { 0%, 100% { transform: translateX(26px) rotate(4deg); } 30%, 70% { transform: translateX(0) rotate(0); } 80% { transform: translateX(0) rotate(-4deg); } }
.q { position: relative; z-index: 1; }
.q summary { display: flex; align-items: center; gap: 12px; list-style: none; cursor: pointer; background: #fff; border: 3px solid var(--qc); border-radius: 22px 22px 22px 6px; padding: 12px 14px; box-shadow: 0 5px 0 var(--qc); font-weight: 700; color: var(--navy); transition: transform .15s; }
.q summary::-webkit-details-marker { display: none; }
.q summary:hover { transform: translateY(-2px) rotate(-.4deg); }
.q-red { --qc: #ffb4b0; --qa: #d83a34; } .q-gold { --qc: #ffe08a; --qa: #e9a800; } .q-blue { --qc: #b9dcff; --qa: #0669e1; } .q-green { --qc: #c4e9b1; --qa: #2f8a3a; }
.who { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--qc); font-size: 20px; }
.q-text { flex: 1; font-size: 17px; }
.plus { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--qa); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 4px; margin: -2px 0 0 -8px; background: #fff; border-radius: 2px; }
.plus::after { transform: rotate(90deg); }
.q[open] .plus { transform: rotate(135deg); }
.q[open] summary { transform: none; }
.a { display: flex; align-items: flex-end; gap: 10px; justify-content: flex-end; margin: 10px 0 4px; animation: reply .35s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes reply { from { opacity: 0; transform: translateY(-8px) scale(.96); } }
.a p { order: 1; max-width: 80%; margin: 0; background: var(--navy); color: #fff7ec; padding: 12px 16px; border-radius: 22px 22px 6px 22px; box-shadow: 0 4px 0 rgba(28, 36, 52, .2); }
.a-face { order: 2; flex: none; width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--gold); }
.ask { text-align: center; margin: var(--head-gap) 0 0; }
.ask-chip { display: inline-block; background: var(--gold); color: var(--navy); font-weight: 700; text-decoration: none; padding: 10px 20px; border-radius: 999px; box-shadow: 0 5px 0 #c99a00; }
.ask-chip:hover { transform: translateY(-2px); }

/* footer: Rocko sits on a scalloped gold edge, then the promise, four columns and the legal line */
.foot { position: relative; background: var(--navy); color: #c9d1e2; padding: 0 0 28px; margin-top: 110px; }   /* Rocko peeks ~110px above the edge */
.foot-edge {
  position: relative; height: 26px; margin-top: -26px;
  background: radial-gradient(circle at 18px 26px, var(--gold) 17px, transparent 18px) 0 0 / 36px 26px repeat-x;
}
.foot-edge::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: var(--gold); }
.foot-rocko { position: absolute; right: 9%; bottom: 2px; width: 120px; height: auto; transform-origin: 50% 100%; animation: peek 5s ease-in-out infinite; filter: drop-shadow(0 6px 4px rgba(0, 0, 0, .3)); }
@keyframes peek { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-6deg); } 80% { transform: rotate(5deg); } 90% { transform: rotate(-2deg); } }
.foot-promise { list-style: none; padding: 30px 0 0; margin: 0 0 30px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.foot-promise li { background: #26304a; color: #fff; border: 2px solid #34405f; border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: 15px; }
.foot-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; padding: 0 0 26px; border-bottom: 2px solid #2c3754; }
.foot-logo { display: block; width: 210px; height: auto; background: #fff7ec; border-radius: 16px; padding: 8px 12px; }
.foot-brand p { margin: 12px 0; color: #c9d1e2; max-width: 22em; }
.foot-sticker { width: 64px; height: 64px; transform: rotate(-8deg); }
.foot-col { display: flex; flex-direction: column; gap: 8px; }
.foot-col h3 { margin: 0 0 4px; color: var(--gold); font-size: 18px; }
.foot-col a { color: #fff; text-decoration: none; font-weight: 500; overflow-wrap: anywhere; }
.foot-col a:hover { color: var(--gold); text-decoration: underline; }
.foot-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; }
.foot .legal { margin: 0; font-size: 13px; color: #8f9ab3; }
.to-top { flex: none; background: var(--red); color: #fff; font-weight: 700; text-decoration: none; padding: 9px 16px; border-radius: 999px; box-shadow: 0 4px 0 #9e2622; }
.to-top:hover { transform: translateY(-2px); }

/* footer extras (Ron: "make the footer more exciting") */
.foot-edge { z-index: 2; }
.foot-stars { position: absolute; inset: 26px 0 0; pointer-events: none; overflow: hidden; opacity: .8;
  background-image: radial-gradient(2px 2px at 30px 40px, #fff, transparent), radial-gradient(1.5px 1.5px at 150px 120px, #ffe28a, transparent),
    radial-gradient(2px 2px at 270px 60px, #9fd3ff, transparent), radial-gradient(1.5px 1.5px at 380px 170px, #fff, transparent);
  background-size: 420px 220px; animation: twinkle-bg 3.5s ease-in-out infinite alternate; }
.shooting { position: absolute; top: 40px; left: -120px; width: 120px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, #fff); transform: rotate(14deg); animation: shoot 9s ease-in infinite; }
@keyframes shoot { 0%, 78% { left: -120px; top: 30px; opacity: 0; } 80% { opacity: 1; } 92% { left: 110%; top: 190px; opacity: 0; } 100% { left: 110%; top: 190px; opacity: 0; } }
.foot .wrap { position: relative; }
.foot-bubble { position: absolute; right: calc(9% + 104px); bottom: 84px; margin: 0; white-space: nowrap; background: #fff; color: var(--navy); font-weight: 700; font-size: 14px; padding: 5px 12px; border-radius: 14px 14px 4px 14px; box-shadow: 0 3px 0 rgba(28, 36, 52, .2); animation: pop 4s ease-in-out infinite; }
.foot-cta { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin: 34px 0 0; padding: 18px 22px;
  background: linear-gradient(110deg, #d83a34, #e9a800); border-radius: 26px; box-shadow: 0 8px 0 rgba(0, 0, 0, .3); }
.foot-cta-badge { width: 72px; height: 72px; animation: spin-slow 10s linear infinite; }
.foot-cta-title { margin: 0; color: #fff; font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; text-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.foot-cta-sub { margin: 2px 0 0; color: #fff3d1; }
.foot-cta .cta { background: #fff; color: var(--red); box-shadow: 0 6px 0 rgba(0, 0, 0, .25); white-space: nowrap; }
.foot-game { display: flex; align-items: center; gap: 10px; }
.foot-game img { width: 34px; height: 34px; border-radius: 10px; border: 2px solid #34405f; transition: transform .2s; }
.foot-game:hover img { transform: rotate(-8deg) scale(1.12); }
.rocket { display: inline-block; transition: transform .35s ease-in; }
.to-top:hover .rocket { transform: translate(6px, -14px) rotate(-10deg); }
.paw-trail { display: flex; justify-content: space-around; padding: 14px 4% 4px; font-size: 16px; }
.paw-trail i { font-style: normal; opacity: .15; animation: trail 3.6s infinite; }
.paw-trail i:nth-child(even) { transform: translateY(-6px); }
.paw-trail i:nth-child(1) { animation-delay: 0s; } .paw-trail i:nth-child(2) { animation-delay: .3s; } .paw-trail i:nth-child(3) { animation-delay: .6s; }
.paw-trail i:nth-child(4) { animation-delay: .9s; } .paw-trail i:nth-child(5) { animation-delay: 1.2s; } .paw-trail i:nth-child(6) { animation-delay: 1.5s; }
.paw-trail i:nth-child(7) { animation-delay: 1.8s; } .paw-trail i:nth-child(8) { animation-delay: 2.1s; } .paw-trail i:nth-child(9) { animation-delay: 2.4s; }
.paw-trail i:nth-child(10) { animation-delay: 2.7s; } .paw-trail i:nth-child(11) { animation-delay: 3s; } .paw-trail i:nth-child(12) { animation-delay: 3.3s; }
@keyframes trail { 0%, 100% { opacity: .15; } 12% { opacity: .9; } 35% { opacity: .15; } }

/* privacy policy and other documents */
.home main.doc { max-width: 760px; margin: 0 auto; padding: 36px 20px 60px; }
.top-logo + .pill-btn { margin-left: auto; }
.doc h1 { font-size: clamp(34px, 5vw, 48px); color: var(--navy); margin: 0 0 4px; }
.doc .updated { color: #5b6478; margin: 0 0 24px; }
.doc h2 { font-size: 24px; color: var(--navy); margin: 34px 0 8px; }
.doc p, .doc li { color: #33405a; }
.doc li { margin: 6px 0; }
.doc a { color: var(--blue); }
.doc-short { background: #fff; border: 3px solid var(--gold); border-radius: 22px; padding: 18px 22px; box-shadow: 0 6px 0 rgba(28, 36, 52, .08); }
.doc-short h2 { margin-top: 0; }
.doc-short ul { list-style: none; padding: 0; margin: 0; }
.doc-foot { background: var(--navy); color: #c9d1e2; text-align: center; padding: 22px 16px; border-top: 6px solid var(--gold); }
.doc-foot a { color: var(--gold); font-weight: 600; }
.promise .section-sub a { color: var(--gold); }
.consent a { color: var(--blue); }

/* phones and tablets */
@media (max-width: 860px) {
  .hero.has-art { display: block; min-height: 0; padding: 32px 0 0; background: linear-gradient(#5aa9ef, #a8dcff 70%, #c8ecff); }
  .hero.has-art .wrap { padding: 0 20px; }
  .hero.has-art .hero-grid { grid-template-columns: 1fr; }
  .hero.has-art h1.big { font-size: clamp(26px, calc((100vw - 44px) / 9.4), 56px); }
  .hero.has-art::before, .hero.has-art > .kid-bubble, .scroll-cue { display: none; }
  .hero-phone-wrap { display: block; margin-top: 24px; z-index: 1; }
  .hero-phone { display: block; width: 100%; height: auto; position: relative; }
  .hero.has-art .hero-sticker { width: 80px; top: auto; bottom: 18px; right: 4%; }
  .plays-in { display: block; text-align: left; }
  .plays-games { flex-direction: column; }
  .trust-chips { justify-content: center; }
  .hero { padding: 32px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .cta-row { justify-content: center; }
  .hero-art { max-width: 520px; margin: 26px auto 0; width: 100%; }
  .hero-sticker { width: 84px; top: -34px; }
  .steps, .game-cards { grid-template-columns: 1fr; }
  .maker-head { grid-template-columns: 76px 1fr; }
  .maker-rocko { width: 64px; }
  .maker-head { margin-top: 42px; }
  .maker-bubble { left: 0; top: -34px; font-size: 12px; border-radius: 14px; }
  .peek { display: none; }
  .game-cards { gap: 90px; }
  .pop-squirrel { width: 96px; top: -130px; right: 0; }
  .pop-run { width: 116px; top: -72px; right: 0; }
  .paws { right: auto; left: 50%; top: auto; bottom: -38px; flex-direction: row; transform: translateX(-50%); }
  .paws i { transform: none; }
  .steps.story { gap: 52px; }
  .promises { grid-template-columns: 1fr 1fr; }
  .promise-head { grid-template-columns: 1fr; text-align: center; }
  .promise .section-title, .promise .section-sub { text-align: center; }
  .guard-rocko { width: 120px; }
  .stops { grid-template-columns: 1fr; gap: 18px; }
  .stops::before { left: 31px; right: auto; top: 30px; bottom: 30px; border-top: 0; border-left: 4px dashed #4b5878; }
  .stops li { display: grid; grid-template-columns: 64px 1fr; column-gap: 14px; text-align: left; align-items: center; }
  .stop-ic { grid-row: span 2; margin: 0; }
  .traveler { left: 46px; top: 22px; animation-name: travel-down; }
  @keyframes travel-down {
    0% { top: 22px; opacity: 0; } 6% { opacity: 1; } 30%, 40% { top: 32%; } 64%, 74% { top: 56%; }
    90% { top: 78%; opacity: 1; transform: none; } 100% { top: 78%; opacity: 0; transform: scale(.2) rotate(180deg); }
  }
}
@media (max-width: 640px) {
  .top { gap: 10px; padding: 8px 14px; }
  .top-links { display: none; }
  .top .pill-btn { margin-left: auto; }
  .top-logo img { height: 38px; }
  .wrap { padding: 0 16px; }
  .promises { grid-template-columns: 1fr; }
  .hero-lede { font-size: 18px; }
  .cta { font-size: 18px; padding: 13px 22px; }
  .zoomer { width: 110px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; text-align: center; }
  .foot-logo, .foot-brand p { margin-left: auto; margin-right: auto; }
  .foot-bottom { flex-direction: column; text-align: center; }
  .foot-rocko { width: 92px; right: 6%; }
  .foot-bubble { right: calc(6% + 80px); bottom: 60px; font-size: 12px; }
  .foot-cta { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (prefers-reduced-motion: reduce) {
  .sunburst, .cloud, .spark, .zoomer, .hero-logo, .hero-sticker, .speech, .foot-rocko,
  .toy, .paws i, .phone-kid, .flash, .easel-rocko, .drawing, .pencil, .mini-bg, .mini-bubble,
  .arcade-stars, .lights, .sign-top, .pop-squirrel, .pop-run, .guard-rocko, .guard-bubble, .traveler, .peek, .a, .hero.has-art::before, .hero-h1 .w, .squiggle path, .kid-bubble, .cta.pulse::after, .scroll-cue, .foot-stars, .shooting, .foot-bubble, .foot-cta-badge, .paw-trail i, .splat, .maker-rocko, .maker-bubble, .drop-ic, .shimmer::after, .wait-bar span, .confetti i, .pan, .game-sticker, .gift { animation: none; }
  .paws i { opacity: 1; }
  .zoomer { display: none; }
  html { scroll-behavior: auto; }
}

.band[id] { scroll-margin-top: 64px; }
.offscreen { position: fixed; left: -9999px; top: 0; opacity: 0; }
@media (prefers-reduced-motion: reduce) { .squiggle path { stroke-dashoffset: 0; } }
