/* HippyHopGames - one stylesheet for every page.
   The look is the game's (Dragonfiry/Screens/Components): the Palette colours, Baloo 2 + Nunito,
   4 px ink outlines with a hard ink drop below ("chunky"), outlined ink titles, the red ribbon. */

@font-face { font-family: "Baloo 2"; font-weight: 700; font-display: swap; src: url("../fonts/Baloo2-Bold.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap; src: url("../fonts/Baloo2-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 700; font-display: swap; src: url("../fonts/Nunito-Bold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 800; font-display: swap; src: url("../fonts/Nunito-ExtraBold.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-weight: 900; font-display: swap; src: url("../fonts/Nunito-Black.woff2") format("woff2"); }

:root {
  color-scheme: light;
  /* Palette.swift */
  --sky: #8FD3FF;
  --sky-low: #A9DEFF;
  --ink: #2A2457;
  --ink-soft: #4B4680;
  --sun: #FFC93C;
  --sun-deep: #FFAE2B;
  --sun-ray: #FFE58A;
  --balloon: #FF6B6B;
  --balloon-cream: #FFE8B0;
  --ziggy: #6CCB7E;
  --leaf: #3E9B4F;
  --grass: #7BCB5B;
  --grass-light: #A8E39B;
  --cream: #FFF8EC;
  --highlight: #FFF1C2;
  --ribbon: #E0484D;
  --pink: #FF8FAB;
  --blue: #5AB0FF;
  --blue-soft: #BDE6FF;
  --white: #FFFFFF;
  /* Section colours for the scalloped edges (assets/img/edge-*.svg). */
  --candy: #FFE3EE;
  --night: #2E2A6B;
  --night-hi: #4C4CB0;

  --display: "Baloo 2", ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  --bw: 4px;
  --radius: 28px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 700 1.0625rem/1.6 var(--body);
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--ink-soft); }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.1; margin: 0 0 .5em; }
h3 { font-size: 1.5rem; }
strong { font-weight: 900; }

:focus-visible { outline: 4px solid var(--blue); outline-offset: 3px; border-radius: 12px; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--sun); padding: 10px 18px; border: var(--bw) solid var(--ink); border-radius: 999px;
  font-family: var(--display); text-decoration: none;
}
.skip-link:focus { top: 16px; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.center { text-align: center; }

/* ------------------------------------------------------------ chunky building blocks */

/* InkText: fill, a ~3 pt ink outline (eight offset copies) and a solid ink drop below. */
.ink-text {
  --o: .045em;
  --d: .09em;
  color: var(--white);
  text-shadow:
    var(--o) 0 0 var(--ink), calc(var(--o) * -1) 0 0 var(--ink),
    0 var(--o) 0 var(--ink), 0 calc(var(--o) * -1) 0 var(--ink),
    calc(var(--o) * .7) calc(var(--o) * .7) 0 var(--ink), calc(var(--o) * -.7) calc(var(--o) * .7) 0 var(--ink),
    calc(var(--o) * .7) calc(var(--o) * -.7) 0 var(--ink), calc(var(--o) * -.7) calc(var(--o) * -.7) 0 var(--ink),
    0 var(--d) 0 var(--ink), var(--o) var(--d) 0 var(--ink), calc(var(--o) * -1) var(--d) 0 var(--ink);
}
.ink-text--sun { color: var(--sun); }
.ink-text--pink { color: var(--pink); }

/* The logo's hopping letters (kHop 2.6 s, 0.1 s apart). */
.hop { display: inline-flex; white-space: nowrap; }
.hop > span { display: inline-block; animation: hop 2.6s ease-in-out infinite; animation-delay: calc(var(--i, 0) * .1s); }
@keyframes hop {
  0%, 55%, 100% { transform: none; }
  25% { transform: translateY(-.16em) rotate(-4deg); }
}

.title {
  font-size: clamp(2.4rem, 5.5vw, 3.6rem);
  letter-spacing: .01em;
  margin-bottom: .35em;
}
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); max-width: 40em; }
.section-head { text-align: center; max-width: 760px; margin: 0 auto clamp(28px, 4vw, 48px); }
.section-head .lead { margin-inline: auto; }

/* The red ribbon under a logo (kWiggle 3 s). */
.ribbon {
  display: inline-block;
  background: var(--ribbon);
  color: var(--white);
  font: 800 clamp(1.05rem, 2.2vw, 1.5rem)/1 var(--display);
  padding: .55em 1.1em .45em;
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 5px 0 var(--ink);
  animation: wiggle 3s ease-in-out infinite;
}
@keyframes wiggle { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(2deg); } }

/* Buttons: pill, ink border, hard drop that the button sinks into when pressed (.btn:active). */
.btn {
  --fill: var(--sun);
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 56px;
  padding: .55em 1.4em .5em;
  background: var(--fill);
  color: var(--ink);
  font: 800 1.25rem/1 var(--display);
  letter-spacing: .02em;
  text-decoration: none;
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 6px 0 var(--ink);
  cursor: pointer;
  transition: transform .08s ease, box-shadow .08s ease, background-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(5px); box-shadow: 0 1px 0 var(--ink); }
.btn--cream { --fill: var(--cream); }
.btn--green { --fill: var(--ziggy); }
.btn--pink { --fill: var(--pink); }
.btn--small { min-height: 44px; font-size: 1.05rem; padding: .5em 1.1em .45em; box-shadow: 0 5px 0 var(--ink); }
.btn img { width: 1.4em; height: 1.4em; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: center; }

/* The App Store button. Until the game is published it is a "coming soon" badge; site.js turns
   it into a real link once APP_STORE_URL is set. */
.store-btn {
  --fill: var(--ink);
  color: var(--white);
  gap: .7em;
  padding-inline: 1.1em 1.4em;
  text-align: left;
}
.store-btn:hover { color: var(--white); }
.store-btn .store-btn__icon { width: 34px; height: 34px; flex: none; }
.store-btn .store-btn__text { display: flex; flex-direction: column; gap: 3px; }
.store-btn small { font: 800 .72rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.store-btn strong { font: 800 1.3rem/1 var(--display); }
.store-btn[aria-disabled="true"] { cursor: default; }
.store-btn[aria-disabled="true"]:hover { transform: none; box-shadow: 0 6px 0 var(--ink); }
.store-btn[aria-disabled="true"]:active { transform: none; box-shadow: 0 6px 0 var(--ink); }
.store-btn .soon {
  position: absolute; top: -14px; right: -10px;
  background: var(--sun); color: var(--ink);
  font: 800 .78rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase;
  padding: .45em .7em .35em; border: 3px solid var(--ink); border-radius: 999px;
  transform: rotate(6deg);
}
.store-btn { position: relative; }

.card {
  background: var(--cream);
  border: var(--bw) solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 0 8px 0 var(--ink);
  padding: clamp(20px, 3vw, 32px);
}
.card--white { background: var(--white); }
.card--sun { background: var(--highlight); }

/* The cream counter pill (CounterPill): an icon, then a number in Baloo 2. */
.pill {
  display: inline-flex; align-items: center; gap: .45em;
  background: var(--cream);
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 5px 0 var(--ink);
  padding: .35em 1em .3em .45em;
  font: 800 1.05rem/1.2 var(--display);
  white-space: nowrap;
}
.pill img { width: 28px; height: 28px; }
.pill--plain { padding-left: 1em; }
.pills { display: flex; flex-wrap: wrap; gap: 14px 12px; }

.tag {
  display: inline-block;
  font: 800 .8rem/1 var(--display); letter-spacing: .05em; text-transform: uppercase;
  padding: .45em .75em .35em;
  border: 3px solid var(--ink); border-radius: 999px;
  background: var(--white);
}
.tag--sun { background: var(--sun); }
.tag--green { background: var(--ziggy); }
.tag--pink { background: var(--pink); }
.tag--blue { background: var(--blue-soft); }
.tag--night { background: var(--night-hi); color: var(--white); }

/* Speech bubble (the menu's "Hi there!"). */
.bubble {
  position: relative;
  display: inline-block;
  background: var(--white);
  border: var(--bw) solid var(--ink);
  border-radius: 26px;
  box-shadow: 0 5px 0 var(--ink);
  padding: .6em 1em .5em;
  font: 800 clamp(1.05rem, 1.8vw, 1.3rem)/1.15 var(--display);
  text-align: center;
}
.bubble::after {
  content: ""; position: absolute; bottom: -14px; left: 26px;
  width: 22px; height: 22px; background: var(--white);
  border-right: var(--bw) solid var(--ink); border-bottom: var(--bw) solid var(--ink);
  transform: rotate(45deg) skew(8deg, 8deg);
}

/* ------------------------------------------------------------ header */

.site-header {
  position: sticky; top: 12px; z-index: 50;
  margin: 12px auto 0;
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(var(--max) - 2 * var(--gutter));
}
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--cream);
  border: var(--bw) solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 6px 0 var(--ink);
  padding: 6px 8px 6px 10px;
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand:hover { color: var(--ink); }
/* The studio logo (assets/brand/, the HippyHop logo kit): animated in the header, never under
   140 px wide, and on a cream panel where the background is dark. */
.brand img { width: 160px; height: auto; }
.brand--panel { background: var(--cream); border-radius: 22px; padding: 12px 18px 10px; }
.brand--panel img { width: 200px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font: 800 1.1rem/1 var(--display);
  text-decoration: none;
  padding: .7em 1em .6em;
  border-radius: 999px;
  border: 3px solid transparent;
}
.nav a:hover { background: var(--highlight); border-color: var(--ink); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--sun); border-color: var(--ink); }

.menu-btn {
  display: none;
  width: 52px; height: 52px; flex: none;
  background: var(--sun);
  border: var(--bw) solid var(--ink); border-radius: 50%;
  box-shadow: 0 4px 0 var(--ink);
  cursor: pointer; padding: 0;
  transition: transform .08s ease, box-shadow .08s ease;
}
.menu-btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.menu-btn span { display: block; width: 22px; height: 4px; margin: 4px auto; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav {
    position: absolute; top: calc(100% + 14px); right: 0; left: 0;
    flex-direction: column; align-items: stretch; gap: 6px;
    background: var(--cream);
    border: var(--bw) solid var(--ink); border-radius: var(--radius);
    box-shadow: 0 8px 0 var(--ink);
    padding: 12px;
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { font-size: 1.35rem; padding: .7em 1em .55em; text-align: center; }
  .brand img { width: 140px; }
}

/* ------------------------------------------------------------ sections */

.section { position: relative; padding-block: clamp(64px, 9vw, 120px); }
.section--sky { background: var(--sky); }
.section--sky-low { background: var(--sky-low); }
.section--grass { background: var(--grass); }
.section--cream { background: var(--cream); }
.section--white { background: var(--white); }
.section--candy { background: var(--candy); }
.section--night { background: var(--night); color: var(--cream); }
.section--night a { color: var(--sun-ray); }

/* A scalloped cloud edge on top of a section, in its own colour. */
.edge::before {
  content: ""; position: absolute; left: 0; right: 0; top: -38px; height: 40px;
  background: url("../img/edge-cream.svg") left bottom / 120px 40px repeat-x;
  pointer-events: none;
}
.section--white.edge::before { background-image: url("../img/edge-white.svg"); }
.section--sky-low.edge::before { background-image: url("../img/edge-sky.svg"); }
.section--candy.edge::before { background-image: url("../img/edge-candy.svg"); }
.section--night.edge::before, .site-footer.edge::before { background-image: url("../img/edge-night.svg"); }

/* The meadow hills at the bottom of a sky section; sliced from the middle on narrow screens. */
.hills { position: relative; margin-top: clamp(8px, 2vw, 24px); }
.hills::before { /* the lighter band low in the sky, behind the hills (SkyBands) */
  content: ""; position: absolute; left: 0; right: 0; top: -36px; bottom: 30%; background: var(--sky-low); z-index: -1;
}
.hills img { width: 100%; aspect-ratio: 1440 / 220; min-height: 120px; object-fit: cover; object-position: center bottom; }
.hills + .section--grass { margin-top: -2px; }

/* ------------------------------------------------------------ the sky: sun, clouds, floaters */

.sky { position: relative; overflow: hidden; isolation: isolate; background: var(--sky); }
/* The page's first sky slides under the floating header. */
.site-header + main > .sky:first-child { margin-top: -86px; padding-top: calc(86px + clamp(40px, 6vw, 72px)); }
.sun { position: absolute; z-index: -1; width: clamp(180px, 26vw, 300px); top: clamp(60px, 9vw, 110px); right: clamp(-90px, -4vw, -30px); }
.cloud { position: absolute; z-index: -1; left: 0; width: var(--w, 140px); animation: drift var(--t, 40s) linear infinite; animation-delay: var(--delay, 0s); }
@keyframes drift { from { transform: translateX(-30vw); } to { transform: translateX(110vw); } }

.float { animation: float 3.2s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-14px) rotate(1.5deg); } }
.float--slow { animation-duration: 4.4s; }
.float--late { animation-delay: -1.6s; }

/* ------------------------------------------------------------ hero */

.hero { padding-top: clamp(40px, 6vw, 72px); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero__logo { margin: 0; }
.hero__logo img { display: inline-block; width: clamp(260px, 42vw, 560px); }
.hero__ribbon { margin: -.3em 0 1.4em .2em; }
.hero .lead { margin-bottom: 1.6em; }
.hero__art { position: relative; display: flex; flex-direction: column; align-items: center; }
.hero__art .bubble { align-self: flex-start; margin-left: 4%; margin-bottom: 10px; }
.hero__ziggy { width: min(100%, 340px); }
.hero__kite { position: absolute; width: 70px; right: 0; bottom: 18%; }
.hero__bird { position: absolute; width: 74px; left: -2%; top: 34%; }
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__grid .btn-row, .hero__grid .pills { justify-content: center; }
  .hero .lead { margin-inline: auto; }
  .hero__art { order: -1; }
  .hero__ziggy { width: min(62vw, 280px); }
  .hero__art .bubble { align-self: center; margin-left: 0; }
  .hero__bird { left: 4%; }
  .hero__kite { right: 4%; }
}

/* ------------------------------------------------------------ home: games */

.game-card { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(20px, 3vw, 40px); align-items: center; }
.game-card__icon { width: clamp(110px, 14vw, 160px); border: var(--bw) solid var(--ink); border-radius: 26%; box-shadow: 0 6px 0 var(--ink); }
.game-card h3 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: .25em; }
.game-card .tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.game-card__phone { width: 190px; transform: rotate(4deg); }
@media (max-width: 960px) {
  .game-card { grid-template-columns: auto 1fr; }
  .game-card__phone { display: none; }
}
@media (max-width: 600px) {
  .game-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .game-card .tags, .game-card .btn-row { justify-content: center; }
}

.hatching { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin-top: 40px; }
.hatching img { width: 110px; }
.hatching h3 { margin-bottom: .2em; }
.hatching p { margin: 0; }
@media (max-width: 600px) { .hatching { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* ------------------------------------------------------------ promise tiles */

.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tile { display: flex; gap: 16px; align-items: flex-start; background: var(--white); border: var(--bw) solid var(--ink); border-radius: 24px; box-shadow: 0 6px 0 var(--ink); padding: 20px; }
.tile img { width: 60px; height: 60px; flex: none; }
.tile h3 { font-size: 1.3rem; margin: .1em 0 .25em; }
.tile p { margin: 0; font-size: 1rem; line-height: 1.5; color: var(--ink-soft); }
@media (max-width: 960px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tiles { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------ about / split blocks */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}

.contact-card { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; justify-content: space-between; }
.contact-card h2 { margin: 0 0 .2em; font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.contact-card p { margin: 0; }
.contact-card__who { display: flex; gap: 20px; align-items: center; }
.contact-card__who img { width: 84px; flex: none; }
@media (max-width: 600px) { .contact-card__who { flex-direction: column; text-align: center; } .contact-card { justify-content: center; } }

/* ------------------------------------------------------------ phones & screenshots */

.phone {
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 40px;
  padding: 8px;
  box-shadow: 0 10px 0 rgba(42, 36, 87, .35);
}
.phone img { width: 100%; aspect-ratio: 554 / 1200; object-fit: cover; border-radius: 32px; background: var(--sky); }

.shots {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(200px, 22vw, 240px);
  gap: 28px; overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  padding: 12px var(--gutter) 28px;
  scrollbar-width: thin; scrollbar-color: var(--ink) transparent;
}
.shots figure { margin: 0; scroll-snap-align: start; }
.shots figcaption { margin-top: 18px; text-align: center; }
.shots figcaption span { display: inline-block; font: 800 1.05rem/1.2 var(--display); background: var(--cream); border: 3px solid var(--ink); border-radius: 999px; padding: .45em 1em .35em; box-shadow: 0 4px 0 var(--ink); }
.shots-hint { text-align: center; font-size: .95rem; color: var(--ink-soft); margin-top: 4px; }

/* ------------------------------------------------------------ game page */

.game-hero__logo { margin: 0 0 1.2em; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.game-hero__logo .hop { font-size: clamp(4.4rem, 12vw, 8rem); line-height: .9; }
.game-hero__logo .ribbon { margin-left: .4em; font-size: clamp(1.2rem, 2.6vw, 1.7rem); }
.game-hero__phone { position: relative; width: min(78%, 300px); margin-inline: auto; transform: rotate(-3deg); }
.game-hero__buddy { position: absolute; width: 46%; right: -34%; bottom: -6%; }
@media (max-width: 860px) {
  .game-hero__logo { align-items: center; }
  .game-hero__logo .ribbon { margin-left: 0; }
  .game-hero__phone { width: min(62vw, 250px); }
  .game-hero__buddy { right: -30%; }
}

/* The practice flight. */
.demo {
  position: relative;
  height: clamp(340px, 46vw, 480px);
  border: var(--bw) solid var(--ink);
  border-radius: 34px;
  box-shadow: 0 10px 0 var(--ink);
  overflow: hidden;
  background: linear-gradient(var(--sky) 62%, var(--sky-low) 62%);
  cursor: pointer;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  touch-action: none;
  isolation: isolate;
}
.demo:focus-visible { outline-offset: 6px; border-radius: 34px; }
/* Three copies, the middle one mirrored, so the strip joins without a seam and loops after two. */
.demo__hills { position: absolute; left: 0; bottom: 0; height: 34%; width: max-content; display: flex; z-index: 1; }
.demo__hills img { height: 100%; width: auto; max-width: none; flex: none; }
.demo__hills .flip { transform: scaleX(-1); }
.demo.is-playing .demo__hills { animation: scroll-hills 22s linear infinite; }
@keyframes scroll-hills { to { transform: translateX(-66.6667%); } }
.demo .cloud { z-index: 0; transform: none; }
@keyframes demo-cloud { from { left: 105%; } to { left: -25%; } }
/* Ziggy is as tall next to the box as the balloon is in the game's flight space. */
.demo__ziggy { position: absolute; left: 12%; top: 0; height: 30%; aspect-ratio: 216 / 330; z-index: 3; will-change: transform; }
.demo__ziggy.is-hurt { opacity: .55; animation: blink .24s steps(1) infinite; }
@keyframes blink { 50% { opacity: .15; } }
.demo img { pointer-events: none; -webkit-user-drag: none; }
.demo__ziggy img { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo__flame { transform-origin: 50% 65.15%; transform: scale(.55); }
.demo__star { position: absolute; top: 0; left: 0; width: 38px; height: 38px; z-index: 2; will-change: transform; }
.demo__star.is-got { animation: got .35s ease-out forwards; }
.demo__obstacle { position: absolute; top: 0; left: 0; max-width: none; z-index: 2; will-change: transform; }
@keyframes got { to { opacity: 0; scale: 1.8; } }
.demo__hud { position: absolute; top: 14px; left: 14px; z-index: 4; display: flex; gap: 10px; }
.demo__hearts { gap: 3px; padding-inline: .55em; }
.pill .demo__heart { width: 24px; height: 23px; transition: opacity .3s, filter .3s; }
.pill .demo__heart.is-lost { opacity: .3; filter: grayscale(1); }
.demo__over {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center; padding: 16px;
  background: rgb(42 36 87 / .28); cursor: default;
}
.demo__over[hidden] { display: none; }
.demo__card {
  background: var(--cream); border: var(--bw) solid var(--ink); border-radius: 26px; box-shadow: 0 8px 0 var(--ink);
  padding: 14px 28px 24px; text-align: center;
  animation: card-pop .4s cubic-bezier(.3, 1.6, .6, 1);
}
.demo__card p { margin: 0 0 16px; font-weight: 800; }
.demo__card .demo__bonk { font: 800 clamp(2.2rem, 5vw, 2.8rem)/1.1 var(--display); margin-bottom: 8px; }
@keyframes card-pop { from { transform: scale(.6); opacity: 0; } }
.demo__hint {
  position: absolute; z-index: 4; top: 14px; right: 14px;
  display: flex; align-items: center; gap: 10px;
  background: var(--white); border: var(--bw) solid var(--ink); border-radius: 999px; box-shadow: 0 5px 0 var(--ink);
  padding: .5em 1.1em .45em .6em; font: 800 1.15rem/1.1 var(--display); white-space: nowrap;
  transition: opacity .4s;
}
.demo__hint img { width: 34px; height: 40px; animation: tap 1.2s ease-in-out infinite; }
@keyframes tap { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
.demo.has-played .demo__hint { opacity: 0; pointer-events: none; }
.demo-note { text-align: center; margin-top: 26px; font-size: .95rem; }

/* How to play cards. */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.how .card { display: flex; flex-direction: column; align-items: center; text-align: center; }
.how h3 { font-size: 1.9rem; margin: .4em 0 .2em; }
.how p { margin: 0; color: var(--ink-soft); }
.how__art { display: flex; align-items: center; justify-content: center; gap: 10px; height: 170px; }
.how__art .mini { height: 150px; }
.how__art .arrow { width: 40px; }
.how__items { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 16px; height: auto; min-height: 170px; align-content: center; }
.how__item { position: relative; display: flex; flex-direction: column; align-items: center; font: 800 1rem/1 var(--display); gap: 4px; }
.how__item > img:first-child { height: 54px; width: 64px; object-fit: contain; }
.how__item .badge { position: absolute; top: -6px; right: 6px; width: 24px; height: 24px; }
@media (max-width: 960px) { .how { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }

/* Worlds. */
.worlds { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.world { text-align: center; }
.world img { width: 100%; max-width: 180px; margin: 0 auto 10px; }
.world:nth-child(even) img { animation-delay: -1.6s; }
.world h3 { font-size: 1.35rem; margin: 0 0 .35em; }
.world .tag { font-size: .72rem; }
@media (max-width: 960px) { .worlds { grid-template-columns: repeat(3, 1fr); row-gap: 36px; } }
@media (max-width: 560px) { .worlds { grid-template-columns: repeat(2, 1fr); } }

/* Hangar. */
.hangar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.hangar__item { background: var(--white); border: var(--bw) solid var(--ink); border-radius: 22px; box-shadow: 0 6px 0 var(--ink); padding: 14px 10px 14px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.hangar__item img { height: 86px; width: 100%; object-fit: contain; transition: transform .2s; }
.hangar__item:hover img { transform: translateY(-4px) rotate(-3deg); }
.hangar__item strong { font: 800 1.15rem/1 var(--display); }
.hangar__item .tag { font-size: .68rem; }
.hangar-label { font: 800 1.5rem/1 var(--display); margin: 44px 0 18px; text-align: center; }
.hangar-label:first-of-type { margin-top: 0; }
@media (max-width: 960px) { .hangar { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .hangar { grid-template-columns: repeat(2, 1fr); } }

/* Daily challenge (night). */
.stars-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.stars-bg i { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: var(--sun-ray); opacity: .8; animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .9; transform: scale(1); } 50% { opacity: .3; transform: scale(.6); } }
.week { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; margin: 26px 0 30px; max-width: 520px; }
.day { display: flex; flex-direction: column; align-items: center; gap: 8px; font: 800 .95rem/1 var(--display); color: var(--cream); }
.day b {
  display: grid; place-items: center; width: 100%; max-width: 58px; aspect-ratio: 1;
  background: var(--night-hi); border: var(--bw) solid var(--ink); border-radius: 50%;
}
.day b img { width: 70%; }
.day--done b { background: var(--ziggy); }
.day--today b { background: var(--sun); box-shadow: 0 0 0 4px var(--sun-ray); }
.day--gift b { background: var(--pink); }
.night-ziggy { width: min(100%, 300px); margin-inline: auto; }
/* The night finale's light ring around ink outlines on the dark sky (ObstacleArt.nightOutline). */
.night-ring { filter: drop-shadow(1.6px 0 0 #DCE2FF) drop-shadow(-1.6px 0 0 #DCE2FF) drop-shadow(0 1.6px 0 #DCE2FF) drop-shadow(0 -1.6px 0 #DCE2FF); }
.section--night .title { color: var(--sun-ray); }
.section--night .lead, .section--night p { color: #E9E7FF; }
.reward { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }

/* Little ones mode toggle (Settings). */
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 18px; background: var(--white); border: var(--bw) solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--ink); margin-bottom: 18px; }
.toggle-row strong { font: 800 1.35rem/1.1 var(--display); }
.toggle { flex: none; width: 66px; height: 38px; border-radius: 999px; background: var(--ziggy); border: var(--bw) solid var(--ink); position: relative; }
.toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: var(--white); border: 3px solid var(--ink); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list img { width: 26px; height: 26px; flex: none; margin-top: 2px; }

/* Facts. */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fact { background: var(--white); border: var(--bw) solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--ink); padding: 18px; text-align: center; }
.fact b { display: block; font: 800 2rem/1 var(--display); margin-bottom: 6px; }
.fact span { color: var(--ink-soft); font-size: .98rem; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, 1fr); } }

/* FAQ accordions. */
.faq { display: grid; gap: 16px; max-width: 820px; margin-inline: auto; }
.faq details { background: var(--white); border: var(--bw) solid var(--ink); border-radius: 24px; box-shadow: 0 5px 0 var(--ink); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font: 800 1.25rem/1.25 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 38px; height: 38px;
  background: var(--sun); border: 3px solid var(--ink); border-radius: 50%; font: 800 1.6rem/1 var(--display); padding-top: 3px;
  transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 18px; color: var(--ink-soft); }
.faq details > div p:last-child { margin-bottom: 0; }

/* Final call to action. */
.cta { text-align: center; }
.cta img.cta__ziggy { width: min(70%, 260px); margin: 0 auto 10px; }
.cta .btn-row { justify-content: center; }

/* ------------------------------------------------------------ text pages (privacy, legal, support) */

.page-hero { padding: clamp(48px, 7vw, 88px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.page-hero .title { margin-bottom: .25em; }
.page-hero .lead { margin-inline: auto; }
.page-hero__art { width: 120px; margin: 0 auto 12px; }

.prose { max-width: 760px; margin-inline: auto; }
.prose h2 { font-size: clamp(1.6rem, 3vw, 2rem); margin-top: 1.6em; }
.prose h3 { font-size: 1.35rem; margin-top: 1.4em; }
.prose ul { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--ribbon); }
.prose .card { margin-bottom: 1.8em; }
.prose .card h2 { margin-top: 0; }
.effective { display: inline-block; margin-bottom: 1.6em; }
.address { font-style: normal; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 22px; margin: 0; }
.kv dt { font-weight: 900; }
.kv dd { margin: 0; color: var(--ink-soft); }
@media (max-width: 560px) { .kv { grid-template-columns: 1fr; gap: 2px; } .kv dd { margin-bottom: 10px; } }

/* Press kit. */
.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; }
.download { text-decoration: none; background: var(--white); border: var(--bw) solid var(--ink); border-radius: 22px; box-shadow: 0 5px 0 var(--ink); padding: 14px; text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; }
.download__img { height: 150px; width: 100%; display: grid; place-items: center; background: var(--sky-low); border-radius: 14px; border: 3px solid var(--ink); overflow: hidden; }
.download__img img { max-height: 130px; max-width: 86%; object-fit: contain; }
.download__img--shot img { max-height: 140px; border-radius: 8px; }
.download strong { font: 800 1.1rem/1.15 var(--display); }
.download span { font-size: .85rem; color: var(--ink-soft); }

/* ------------------------------------------------------------ footer */

.site-footer { position: relative; background: var(--night); color: #E9E7FF; padding: 72px 0 40px; margin-top: 0; }
.site-footer a { color: #E9E7FF; text-decoration: none; }
.site-footer a:hover { color: var(--sun); text-decoration: underline; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 32px; }
.footer__brand p { margin-top: 14px; font-size: .98rem; max-width: 30ch; }
.site-footer h2 { font: 800 1.2rem/1 var(--display); color: var(--sun-ray); margin: 8px 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer__legal { margin-top: 44px; padding-top: 22px; border-top: 3px dashed rgba(233, 231, 255, .25); font-size: .85rem; color: #BDB9E8; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; }
.footer__legal p { margin: 0; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }

/* ------------------------------------------------------------ 404 */

.lost { min-height: 100vh; display: flex; flex-direction: column; }
.lost main { flex: 1; display: grid; place-items: center; text-align: center; padding: 40px var(--gutter) 0; }
.lost__ziggy { width: min(56vw, 260px); margin: 0 auto 8px; }

/* ------------------------------------------------------------ motion */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .cloud { display: none; }
}
