/* happyhillz.com — the page borrows the show's own frame: Impact-style lettering,
   skewed HUD tags, starburst pops, magenta halftone and black letterbox bars. */

@font-face { font-family: "Anton"; src: url("/fonts/anton-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Comic Neue"; src: url("/fonts/comic-neue-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Comic Neue"; src: url("/fonts/comic-neue-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* the show's palette (ACC and INK in the episode engine) */
  --ink: #0b0b0f;
  --pop: #ffe600;
  --hot: #ff2e88;
  --zap: #14e0ff;
  /* savanna */
  --paper: #fff6e0;
  --sky-1: #f2a765;
  --sky-2: #f6c486;
  --sky-3: #f9dcab;
  --sand: #ecc882;
  --sand-deep: #dcae5e;

  --display: "Anton", Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  --body: "Comic Neue", "Comic Sans MS", "Chalkboard SE", system-ui, sans-serif;

  --line: 3px;
  --drop: 6px 6px 0 var(--ink);
  --skew: -9deg;
  --gutter: clamp(16px, 4vw, 40px);
  --bar-h: 60px;
  --ground: clamp(72px, 11vw, 150px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.125rem/1.55 var(--body); overflow-x: hidden; }
img, svg, iframe { display: block; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--zap); outline-offset: 3px; box-shadow: 0 0 0 6px var(--ink); }

.wrap { width: min(1180px, 100%); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: 12px; top: -80px; z-index: 30; padding: 10px 14px; background: var(--pop); border: var(--line) solid var(--ink); font-weight: 700; }
.skip:focus { top: 12px; }

.i { width: .72em; height: .72em; flex: none; fill: currentColor; }

/* ---------- lettering ---------- */
h2, h3, .page-title, .wordmark, .btn, .chip, .lockup, .card__title, .burst__text {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .012em;
}
h2 { font-size: clamp(2.3rem, 6.2vw, 4.2rem); line-height: .96; font-style: italic; text-wrap: balance; }
h3 { font-size: 1.55rem; line-height: 1.04; }

/* HUD tags: the PANTHERA / EP.24 chips from the top-left of every episode */
.chip { display: inline-flex; align-items: center; gap: .5em; padding: .44em .72em .46em; font-size: .95rem; line-height: 1; letter-spacing: .04em; transform: skewX(var(--skew)); }
.chip--ink { background: var(--ink); color: #fff; }
.chip--pop { background: var(--pop); color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  padding: .82em 1.15em .8em; font-size: 1.15rem; line-height: 1; letter-spacing: .035em; text-decoration: none;
  color: var(--ink); background: #fff; border: var(--line) solid var(--ink); box-shadow: 5px 5px 0 var(--shade, var(--ink));
  transition: transform .12s ease-out, box-shadow .12s ease-out;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--shade, var(--ink)); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--shade, var(--ink)); }
.btn--pop { background: var(--pop); }
.btn--sm { padding: .6em .85em .58em; font-size: .98rem; box-shadow: 3px 3px 0 var(--shade, var(--ink)); }
.btn--sm:hover { box-shadow: 5px 5px 0 var(--shade, var(--ink)); }
.btn--lg { padding: .9em 1.4em .88em; font-size: clamp(1.25rem, 2.6vw, 1.6rem); }

/* halftone fringe, as on the show's letterbox bars */
.bar::after, .join::before, .join::after {
  content: ""; position: absolute; left: 0; right: 0; height: 30px; pointer-events: none;
  background-image: radial-gradient(circle at 50% 50%, var(--hot) 0 2.3px, transparent 2.9px);
  background-size: 9px 9px; background-position: 50% 0;
}

/* ---------- top bar ---------- */
.bar { position: sticky; top: 0; z-index: 20; background: var(--ink); color: #fff; }
.bar::after { top: 100%; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.bar__in { height: var(--bar-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wordmark { font-size: 1.6rem; line-height: 1; font-style: italic; letter-spacing: .03em; text-decoration: none; color: #fff; white-space: nowrap; }
.wordmark--sm { font-size: 1.15rem; margin-right: .6em; }
.bar__nav { display: flex; align-items: center; gap: clamp(14px, 2.6vw, 30px); }
.bar__link { font: 400 1.02rem/1 var(--display); text-transform: uppercase; letter-spacing: .05em; text-decoration: none; color: #fff; padding: 8px 2px; }
.bar__link:hover, .bar__link[aria-current="page"] { color: var(--pop); }
.bar .btn { --shade: var(--hot); border-color: var(--ink); }
@media (max-width: 560px) { .bar__link { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; border-bottom: var(--line) solid var(--ink); }
.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: linear-gradient(180deg, var(--sky-1) 0%, var(--sky-2) 40%, var(--sky-3) 100%); }
.hero__ground { position: absolute; left: 0; right: 0; bottom: 0; height: var(--ground); background: linear-gradient(180deg, var(--sand), var(--sand-deep)); }
.horizon { position: absolute; left: 0; bottom: calc(var(--ground) - 3px); width: 100%; height: clamp(84px, 15vw, 210px); }

.hero__in { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); align-items: center; gap: clamp(24px, 5vw, 72px); padding-top: clamp(40px, 6vw, 76px); padding-bottom: clamp(36px, 5vw, 64px); }
.hero__copy { padding-bottom: clamp(0px, 7vw, 96px); }

.chips { display: flex; flex-wrap: wrap; margin-left: 4px; }
.lockup { display: flex; flex-direction: column; align-items: flex-start; gap: .07em; margin: .22em 0 .34em .06em; font-size: clamp(4.1rem, 16.5vw, 9.4rem); line-height: .93; }
.lockup span { display: inline-block; padding: .05em .2em .09em; transform: skewX(var(--skew)); }
.lockup__a { background: var(--ink); color: #fff; }
.lockup__b { background: var(--pop); color: var(--ink); margin-left: .92em; box-shadow: .07em .07em 0 var(--ink); }
.lede { max-width: 31em; font-size: clamp(1.12rem, 1.55vw, 1.3rem); font-weight: 700; line-height: 1.5; text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 16px 18px; margin-top: 1.5em; }

.hero__stage { position: relative; display: grid; justify-items: center; }
.sun { position: absolute; z-index: -1; top: -6%; left: 50%; width: min(118%, 560px); aspect-ratio: 1; border-radius: 50%; background: #fff3d2; opacity: .78; transform: translateX(-46%); }
.phone { width: min(72vw, 304px); transform: rotate(3deg); }
.phone__screen { position: relative; aspect-ratio: 9 / 16; overflow: hidden; background: var(--ink); border: 10px solid var(--ink); border-radius: 32px; box-shadow: 12px 12px 0 var(--hot); }
.phone__screen img, .phone__screen iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.phone__screen iframe { opacity: 0; pointer-events: none; transition: opacity .6s ease-out; }
.phone__screen iframe.is-live { opacity: 1; }
.phone__play { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 0 12px 15%; text-decoration: none; }
.phone__play .chip { font-size: .82rem; border: 2px solid var(--ink); transition: transform .12s ease-out; }
.phone__play:hover .chip { transform: skewX(var(--skew)) scale(1.07); }
.phone figcaption {
  width: fit-content; max-width: min(100%, 17.5em); margin: 22px auto 0; padding: 8px 12px;
  background: var(--paper); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-size: .95rem; line-height: 1.35; text-align: center; transform: rotate(-3deg);
}

/* starburst pops */
.burst { position: relative; display: grid; place-items: center; width: var(--burst-w, 210px); aspect-ratio: 240 / 150; }
.burst__shape { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(5px 5px 0 var(--ink)); }
.burst__shape polygon { fill: var(--burst-fill, var(--hot)); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.burst__text {
  position: relative; font-size: var(--burst-size, 1.9rem); line-height: .95; text-align: center; font-style: italic; color: var(--burst-ink, var(--pop));
  text-shadow: 2px 0 var(--ink), -2px 0 var(--ink), 0 2px var(--ink), 0 -2px var(--ink), 2px 2px var(--ink), -2px -2px var(--ink), 2px -2px var(--ink), -2px 2px var(--ink), 4px 4px var(--ink);
}
/* a sticker on the phone's top-right corner */
.burst--new { position: absolute; z-index: 2; top: -3%; left: calc(50% + min(36vw, 152px) - 86px); --burst-w: clamp(132px, 16vw, 184px); --burst-size: clamp(1.1rem, 2vw, 1.5rem); transform: rotate(9deg); }

@media (max-width: 860px) {
  .hero__in { grid-template-columns: minmax(0, 1fr); padding-bottom: 28px; }
  .hero__copy { padding-bottom: 0; }
  .hero__stage { margin-top: 26px; }
  .sun { top: -3%; width: min(104%, 460px); }
}

/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 9vw, 112px); }
.head { display: grid; gap: 12px; margin-bottom: clamp(26px, 4vw, 44px); }
.head p { max-width: 34em; font-size: 1.2rem; }

.reel { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.7vw, 22px); list-style: none; }
.card { display: block; text-decoration: none; }
.card__art { position: relative; display: block; aspect-ratio: 9 / 16; overflow: hidden; background: var(--ink); border: var(--line) solid var(--ink); box-shadow: var(--drop); transition: transform .15s ease-out, box-shadow .15s ease-out; }
.card__art img { width: 100%; height: 100%; object-fit: cover; }
.reel li:nth-child(odd) .card__art { transform: rotate(-.7deg); }
.reel li:nth-child(even) .card__art { transform: rotate(.7deg); }
.reel li .card:hover .card__art { transform: translate(-3px, -4px) rotate(-1.4deg); box-shadow: 9px 10px 0 var(--hot); }
.card__play { position: absolute; right: 9px; bottom: 9px; display: grid; place-items: center; width: 42px; height: 42px; padding-left: 3px; background: var(--pop); border: var(--line) solid var(--ink); border-radius: 50%; font-size: 1.3rem; }
.card__title { display: block; margin-top: .8em; font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.06; text-wrap: balance; }
.more { margin-top: clamp(30px, 4vw, 48px); }

@media (max-width: 1000px) { .reel { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px 20px; } }
@media (max-width: 620px) {
  .reel { display: flex; gap: 16px; margin-inline: calc(-1 * var(--gutter)); padding: 6px var(--gutter) 16px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .reel::-webkit-scrollbar { display: none; }
  .reel li { flex: 0 0 58%; scroll-snap-align: start; }
}

/* ---------- the show, as a three-panel strip ---------- */
.show { padding-top: 0; }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); list-style: none; }
.panel { display: flex; flex-direction: column; background: #fff; border: var(--line) solid var(--ink); box-shadow: var(--drop); }
.panel__art { position: relative; display: grid; place-items: center; min-height: 190px; overflow: hidden; border-bottom: var(--line) solid var(--ink); background: var(--field); }
.panel__art::before { content: ""; position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg at 50% 50%, var(--rays) 0deg 5deg, transparent 5deg 15deg); }
.panel__art .burst { --burst-w: 218px; --burst-size: 2.5rem; }
.panel--zoom { --field: var(--sky-2); --rays: rgba(255, 255, 255, .42); }
.panel--zoom .burst { --burst-fill: var(--zap); --burst-ink: var(--pop); transform: rotate(-6deg); }
.panel--uhoh { --field: #2a2140; --rays: rgba(255, 46, 136, .2); }
.panel--uhoh .burst { --burst-fill: var(--hot); transform: rotate(4deg); }
.panel--phew { --field: #bfe9c4; --rays: rgba(255, 255, 255, .5); }
.panel--phew .burst { --burst-fill: var(--pop); --burst-ink: #fff; transform: rotate(-3deg); }
.panel__copy { padding: 22px 22px 26px; }
.panel__copy h3 { display: flex; align-items: flex-start; gap: .5em; margin-bottom: .45em; }
.panel__n { flex: none; display: grid; place-items: center; width: 1.5em; height: 1.5em; margin-top: -.14em; background: var(--pop); border: 2px solid var(--ink); font-size: .9em; line-height: 1; }
@media (max-width: 860px) { .strip { grid-template-columns: minmax(0, 1fr); } .panel__art { min-height: 170px; } }

/* ---------- subscribe band ---------- */
.join { position: relative; background: var(--ink); color: #fff; padding-block: clamp(84px, 12vw, 150px); text-align: center; }
.join::before { top: 0; -webkit-mask-image: linear-gradient(#000, transparent); mask-image: linear-gradient(#000, transparent); }
.join::after { bottom: 0; -webkit-mask-image: linear-gradient(transparent, #000); mask-image: linear-gradient(transparent, #000); }
.join__in { display: grid; justify-items: center; gap: 22px; }
.join h2 { font-size: clamp(3rem, 10.5vw, 7rem); line-height: .92; color: var(--pop); }
.join p { max-width: 32em; font-size: 1.2rem; }
.join .btn { --shade: var(--hot); margin-top: 8px; }

.foot { background: var(--ink); color: #d9d6cf; font-size: 1rem; }
.foot__in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 32px; padding-block: 26px 34px; border-top: 1px solid rgba(255, 255, 255, .16); }
.foot a { color: #fff; }
.foot a:hover { color: var(--pop); }

/* ---------- player ---------- */
.player { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 16px; border: 0; background: transparent; color: #fff; }
.player[open] { display: grid; place-items: center; }
.player::backdrop { background: rgba(11, 11, 15, .92); }
.player__box { display: grid; gap: 12px; }
.player__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.player__top h2 { font-size: clamp(1.3rem, 3vw, 1.9rem); }
.player__close { display: grid; place-items: center; width: 44px; height: 44px; flex: none; background: var(--pop); color: var(--ink); border: var(--line) solid var(--ink); box-shadow: 3px 3px 0 var(--hot); cursor: pointer; font-size: 1.5rem; }
.player__frame { width: min(92vw, calc(min(72dvh, 760px) * 9 / 16)); aspect-ratio: 9 / 16; background: #000; box-shadow: 10px 10px 0 var(--hot); }
.player.is-wide .player__frame { width: min(92vw, 1100px, calc(72dvh * 16 / 9)); aspect-ratio: 16 / 9; }
.player__frame iframe { width: 100%; height: 100%; border: 0; }
.player__more { font-size: 1rem; }
.player__more a { color: #fff; }

/* ---------- inner pages ---------- */
.page-title { font-size: clamp(2.6rem, 7.4vw, 4.8rem); line-height: .94; font-style: italic; text-wrap: balance; }
.crumbs { margin-bottom: clamp(18px, 3vw, 30px); font-size: 1rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 0; list-style: none; }
.crumbs li + li::before { content: "›"; margin: 0 .55em; font-weight: 700; }
.crumbs a { font-weight: 700; }
.crumbs [aria-current] { color: #4a4337; }

.listing { padding-top: clamp(32px, 5vw, 56px); }
.reel--all { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 34px clamp(14px, 2vw, 24px); }
.card__meta { display: block; margin-top: .25em; font-size: .95rem; font-weight: 700; color: #4a4337; }
@media (max-width: 620px) {
  .reel.reel--all { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 14px; margin-inline: 0; padding: 0; overflow: visible; }
}

.ep { padding-top: clamp(32px, 5vw, 56px); padding-bottom: clamp(36px, 6vw, 72px); }
.ep__grid { display: grid; gap: clamp(26px, 4vw, 48px); align-items: start; }
.ep__grid--wide { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
.ep__grid--tall { grid-template-columns: minmax(0, 380px) minmax(0, 1fr); }
.ep__player { background: #000; border: var(--line) solid var(--ink); box-shadow: 10px 10px 0 var(--hot); }
.ep__grid--wide .ep__player { aspect-ratio: 16 / 9; }
.ep__grid--tall .ep__player { aspect-ratio: 9 / 16; }
.ep__player iframe { width: 100%; height: 100%; border: 0; }
.ep__info .chips { margin-bottom: 14px; }
.ep__info .page-title { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.ep__meta { margin-top: 12px; font-size: 1rem; font-weight: 700; color: #4a4337; }
.ep__desc { margin-top: 16px; font-size: 1.15rem; }
.ep__desc p + p { margin-top: .8em; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; list-style: none; }
.tags li { padding: 4px 10px; border: 2px solid var(--ink); border-radius: 999px; background: #fff; font-size: .9rem; font-weight: 700; line-height: 1.25; }
.ep__nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: clamp(30px, 5vw, 52px); }
.ep__step { display: grid; gap: 2px; padding: 14px 18px; background: #fff; border: var(--line) solid var(--ink); box-shadow: 4px 4px 0 var(--ink); text-decoration: none; transition: transform .12s ease-out, box-shadow .12s ease-out; }
.ep__step:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--hot); }
.ep__step span { font-size: .95rem; }
.ep__step strong { font: 400 1.3rem/1.05 var(--display); text-transform: uppercase; }
.ep__step--prev span::before { content: "← "; }
.ep__step--next { text-align: right; }
.ep__step--next span::after { content: " →"; }
.more-eps { padding-top: 0; }
@media (max-width: 1000px) { .ep__grid--wide { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .ep__grid--tall { grid-template-columns: minmax(0, 1fr); }
  .ep__grid--tall .ep__player { width: min(100%, 340px); justify-self: center; }
}
@media (max-width: 520px) { .ep__nav { grid-template-columns: minmax(0, 1fr); } .ep__step--next { text-align: left; } }

/* ---------- about the cartoon ---------- */
.about { padding-top: 0; }
.about__in { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 18px clamp(24px, 5vw, 64px); align-items: start; }
.about__text { display: grid; gap: 1em; font-size: 1.15rem; }
.meet { grid-column: 2; display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin-top: 6px; }
.meet li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; background: #fff; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); font-weight: 700; font-size: 1rem; }
.meet__dot { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ink); }
.meet__dot--black { background: #1c1a22; }
.meet__dot--leopard { background: radial-gradient(circle at 35% 35%, #4b2f12 0 2.5px, transparent 3px), radial-gradient(circle at 70% 65%, #4b2f12 0 2.5px, transparent 3px), #e7b75c; }
.meet__dot--jaguar { background: radial-gradient(circle at 30% 60%, #3b240e 0 3px, transparent 3.5px), radial-gradient(circle at 68% 34%, #3b240e 0 3px, transparent 3.5px), #d29a3e; }
@media (max-width: 860px) { .about__in { grid-template-columns: minmax(0, 1fr); } .meet { grid-column: 1; } }

/* ---------- 404 ---------- */
.lost__in { display: grid; justify-items: center; gap: 18px; text-align: center; padding-block: clamp(20px, 6vw, 60px); }
.burst--lost { --burst-w: 260px; --burst-size: 2.4rem; transform: rotate(-5deg); }

/* ---------- games ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* the homepage teaser and the /games/ list */
.play-teaser { padding-top: 0; }
.teaser { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 4vw, 52px); padding: clamp(14px, 2.4vw, 28px); background: var(--ink); color: #fff; text-decoration: none; box-shadow: 10px 10px 0 var(--hot); }
.teaser__art { position: relative; display: block; }
.teaser__art img { width: 100%; height: auto; aspect-ratio: 40 / 21; object-fit: cover; border: var(--line) solid #fff; transition: transform .15s ease-out; }
.teaser:hover .teaser__art img { transform: rotate(-1deg) scale(1.015); }
.burst--game { position: absolute; top: -22px; right: -16px; --burst-w: clamp(118px, 14vw, 168px); --burst-size: clamp(1.05rem, 1.8vw, 1.45rem); transform: rotate(8deg); }
.teaser__copy { display: grid; justify-items: start; gap: 14px; }
.teaser__title { color: var(--pop); }
.teaser__text { display: block; max-width: 30em; font-size: 1.15rem; }
.teaser .btn { --shade: var(--hot); margin-top: 6px; }
.teaser:hover .btn { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--hot); }
@media (max-width: 760px) { .teaser { grid-template-columns: minmax(0, 1fr); } }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 430px), 1fr)); gap: 30px; list-style: none; }
.game-card { display: grid; height: 100%; background: #fff; border: var(--line) solid var(--ink); box-shadow: var(--drop); text-decoration: none; transition: transform .15s ease-out, box-shadow .15s ease-out; }
.game-card:hover { transform: translate(-3px, -4px); box-shadow: 9px 10px 0 var(--hot); }
.game-card__art img { width: 100%; height: auto; aspect-ratio: 40 / 21; object-fit: cover; border-bottom: var(--line) solid var(--ink); }
.game-card__body { display: grid; justify-items: start; align-content: start; gap: 12px; padding: 18px 20px 22px; }
.game-card__title { font-size: 2.2rem; line-height: 1; font-style: italic; }
.game-card__text { display: block; font-size: 1.1rem; }
@media (min-width: 860px) {   /* one game so far: picture and words side by side */
  .games:has(> li:only-child) { grid-template-columns: minmax(0, 1fr); max-width: 1000px; }
  .games > li:only-child .game-card { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: center; }
  .games > li:only-child .game-card__art img { border-bottom: 0; border-right: var(--line) solid var(--ink); }
  .games > li:only-child .game-card__body { padding: 24px 28px; }
}

/* the game page: the stage fills a phone screen under the top bar */
.play { background: var(--ink); }
.game { position: relative; width: min(1180px, 100%); margin-inline: auto; }
.game__stage {
  position: relative; height: max(360px, min(calc(100svh - var(--bar-h)), 900px)); overflow: hidden; outline: none;
  background: linear-gradient(180deg, #5d88c2 0%, var(--sky-1) 34%, var(--sky-3) 46%, var(--sand) 47%, var(--sand-deep) 100%);
  touch-action: manipulation; user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; -webkit-touch-callout: none;
}
.game[data-state="go"] .game__stage, .game[data-state="run"] .game__stage { touch-action: none; }
@media (min-width: 900px) {
  .play { padding: 26px var(--gutter) 34px; background: var(--paper) radial-gradient(circle at 50% 50%, rgba(255, 46, 136, .16) 0 2.3px, transparent 2.9px) 0 0 / 9px 9px; }
  .game__stage { height: max(420px, min(calc(100svh - var(--bar-h) - 60px), 720px)); border: var(--line) solid var(--ink); box-shadow: 10px 10px 0 var(--hot); }
}
.game__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.game__noscript { padding: 24px var(--gutter); color: #fff; text-align: center; }
.game__noscript a { color: var(--pop); }

.game__hud { position: absolute; z-index: 2; top: 12px; left: 12px; right: 70px; display: flex; align-items: flex-start; flex-wrap: wrap; gap: 10px; pointer-events: none; }
.game__hud[hidden] { display: none; }
.game__score, .game__time { display: inline-flex; align-items: baseline; gap: .42em; padding: .34em .62em .36em; font: 400 clamp(.95rem, 2.4vw, 1.2rem)/1 var(--display); text-transform: uppercase; letter-spacing: .04em; transform: skewX(var(--skew)); box-shadow: 3px 3px 0 var(--ink); }
.game__score { background: var(--ink); color: #fff; }
.game__score strong, .game__time strong { display: inline-block; font-weight: 400; font-size: 1.45em; }
.game__score strong { min-width: 2.6ch; color: var(--pop); }
.game__score.is-bump strong { animation: chip-bump .28s ease-out; }
.game__time { background: var(--pop); color: var(--ink); border: 2px solid var(--ink); }
.game__time.is-low { background: var(--hot); color: #fff; }
.game__armor { order: 5; display: inline-flex; flex-direction: column; gap: 4px; padding: .3em .6em .4em; font: 400 clamp(.85rem, 2.2vw, 1.05rem)/1 var(--display); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); background: var(--armor, #4fd2ff); border: 2px solid var(--ink); transform: skewX(var(--skew)); box-shadow: 3px 3px 0 var(--ink); }
.game__armor[hidden] { display: none; }
.game__armor-bar { display: block; height: 6px; background: rgba(11,11,15,.25); border-radius: 3px; overflow: hidden; }
.game__armor-bar i { display: block; height: 100%; width: calc(var(--left, 1) * 100%); background: var(--ink); }
.game__paws { display: flex; gap: 3px; margin-left: auto; padding-top: 4px; }
@media (max-width: 440px) { .game__paws { width: 100%; margin-left: 2px; padding-top: 0; } .game__paw { width: 22px; height: 22px; } }
.game__paw { width: 26px; height: 26px; fill: var(--pop); stroke: var(--ink); stroke-width: 1.6; transition: fill .2s, opacity .2s; }
.game__paw.is-gone { fill: transparent; opacity: .55; }
.game__btn { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; background: var(--pop); color: var(--ink); border: var(--line) solid var(--ink); box-shadow: 3px 3px 0 var(--ink); cursor: pointer; pointer-events: auto; }
.game__btn .i { width: 22px; height: 22px; }
.game__btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.game__corner { position: absolute; z-index: 4; top: 12px; right: 12px; display: grid; gap: 10px; }
.game__corner [hidden] { display: none; }
.game__btn--sound .i-on, .has-sound .game__btn--sound .i-off { display: none; }
.has-sound .game__btn--sound .i-on { display: block; }
.has-sound .game__btn--sound { background: #fff; }

.game__pops { position: absolute; z-index: 2; inset: 0; overflow: hidden; pointer-events: none; }
.game__pop { position: absolute; --burst-w: clamp(150px, 30vw, 230px); --burst-size: clamp(1.4rem, 4.2vw, 2.2rem); transform: translate(-50%, -50%) rotate(var(--rot, 0deg)); animation: game-pop 1.1s cubic-bezier(.2, 1.6, .4, 1) both; }
.game__pop--big { --burst-w: clamp(230px, 54vw, 400px); --burst-size: clamp(2.1rem, 7.6vw, 3.8rem); animation-duration: 1.5s; }
.game__pop--small { --burst-w: clamp(140px, 27vw, 200px); --burst-size: clamp(1.2rem, 3.6vw, 1.8rem); }
.game__pop--pop { --burst-fill: var(--pop); --burst-ink: #fff; }
.game__pop--zap { --burst-fill: var(--zap); --burst-ink: var(--pop); }
.game__pop .burst__text { white-space: nowrap; }

.game__screen { position: absolute; z-index: 3; inset: 0; display: grid; place-items: end center; padding: 16px 16px calc(18px + env(safe-area-inset-bottom)); overflow: auto; }
.game__screen[hidden] { display: none; }
.game__screen--end { place-items: center; background: rgba(11, 11, 15, .28); }
.game__screen--pause { place-items: center; background: rgba(11, 11, 15, .5); }
.is-wide .game__screen--start { place-items: center start; padding-left: clamp(16px, 5%, 64px); }
.game__card { display: grid; justify-items: start; gap: 12px; width: min(100%, 430px); margin-top: auto; padding: 16px 20px 20px; background: var(--paper); border: var(--line) solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.is-wide .game__card, .game__card--end, .game__card--small { margin-block: auto; }
.game__card--end { justify-items: center; gap: 8px; width: min(100%, 580px); padding: 12px 18px 16px; text-align: center; }
.game__card--small { justify-items: center; width: auto; padding: 20px 26px 24px; }
.game__logo { flex-direction: row; flex-wrap: wrap; gap: .08em .14em; margin: 0; font-size: clamp(2.9rem, 12vw, 4.4rem); }
.game__logo .lockup__b { margin-left: 0; }
.game__pitch { font-weight: 700; line-height: 1.4; }
.game__go { min-width: 9em; }
.game__keys { font-size: .95rem; color: #4a4337; }
.game__keys .for-touch, .is-touch .game__keys .for-keys { display: none; }
.is-touch .game__keys .for-touch { display: inline; }
.game__pick { margin: 0; padding: 0; border: 0; }
.game__pick--level { margin-top: 10px; }
.game__pick--level legend { font-size: .85rem; margin-bottom: 6px; }
.game__pick--level input[value="hard"]:checked + span { background: var(--hot); color: #fff; }
.game__pick legend { margin-bottom: 8px; padding: 0; font-size: .95rem; font-weight: 700; }
.game__pick-row { display: flex; flex-wrap: wrap; gap: 8px 10px; }
.game__card--end .game__pick-row { justify-content: center; }
.game__card--end .game__pick legend { margin-inline: auto; margin-bottom: 6px; }
.game__card--end .game__pick span { font-size: .92rem; }
.game__pick label { position: relative; display: inline-grid; cursor: pointer; }
.game__pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.game__pick span { padding: .5em .78em .52em; font: 400 1.02rem/1 var(--display); text-transform: uppercase; letter-spacing: .04em; background: #fff; border: 2px solid var(--ink); transform: skewX(var(--skew)); }
.game__pick input:checked + span { background: var(--ink); color: var(--pop); }
.game__pick input:focus-visible + span { outline: 3px solid var(--zap); outline-offset: 3px; }
.game__burst { --burst-w: clamp(140px, 30vw, 170px); --burst-size: clamp(1.4rem, 4.4vw, 1.8rem); --burst-fill: var(--pop); --burst-ink: #fff; margin-top: -4px; transform: rotate(-4deg); }
.game__result { font-size: clamp(1.35rem, 4.4vw, 1.8rem); line-height: 1.02; text-wrap: balance; }
.game__final { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 12px; font: 400 1.3rem/1 var(--display); text-transform: uppercase; }
.game__final strong { font-weight: 400; font-size: 2.2em; line-height: .9; }
.game__stats { font-weight: 700; color: #4a4337; }
.game__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 14px; margin-top: 4px; }
.game__actions .btn { padding: .66em .92em .64em; font-size: .98rem; box-shadow: 4px 4px 0 var(--ink); }
.game__ep { font-size: 1rem; }
.game__ep a { font-weight: 700; }
@media (max-height: 560px) {
  .game__card { gap: 8px; padding: 12px 16px 14px; }
  .game__pitch, .game__stats { font-size: 1rem; }
  .game__logo { font-size: 2.6rem; }
  .game__burst { display: none; }
}

.game-info { padding-top: clamp(28px, 4vw, 48px); }
.game-info__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(28px, 5vw, 64px); }
.game-info h2 { margin-bottom: .5em; font-size: clamp(2rem, 4.6vw, 3rem); }
.game-info__text p { font-size: 1.15rem; }
.game-info__text p + h2 { margin-top: 1em; }
.howto { display: grid; gap: 14px; list-style: none; }
.howto li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; background: #fff; border: var(--line) solid var(--ink); box-shadow: 4px 4px 0 var(--ink); }
.howto .panel__n { margin-top: 0; font: 400 1.3rem/1 var(--display); }
.reel--three { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; }
@media (max-width: 860px) { .game-info__grid { grid-template-columns: minmax(0, 1fr); } }

/* a still of the game for its share image (scripts/game-shot.js) */
.is-shot .bar, .is-shot .skip, .is-shot .foot, .is-shot .game-info, .is-shot .more-eps, .is-shot .game__btn--sound { display: none; }
.is-shot .game__stage { position: fixed; z-index: 50; inset: 0; height: auto; border: 0; box-shadow: none; }
.game__shot-title { position: absolute; z-index: 5; top: 34px; left: 40px; display: grid; gap: 6px; }
.game__shot-title .game__logo { font-size: 6.4rem; filter: drop-shadow(6px 6px 0 var(--hot)); }
.is-shot .lockup span { animation: none; }

/* ---------- shop ---------- */
.teaser--shop { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); box-shadow: 10px 10px 0 var(--pop); }
@media (max-width: 760px) { .teaser--shop { grid-template-columns: minmax(0, 1fr); } }
.teaser--shop .teaser__art img { aspect-ratio: 1; max-height: 420px; object-fit: contain; background: #fff; }
.teaser--shop .btn { --shade: var(--pop); }
.teaser--shop:hover .btn { box-shadow: 7px 7px 0 var(--pop); }
.shop-teaser { padding-top: 0; }

.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 30px; list-style: none; }
@media (min-width: 760px) {   /* one product so far: picture and words side by side, like the games list */
  .products:has(> li:only-child) { grid-template-columns: minmax(0, 1fr); max-width: 940px; }
  .products > li:only-child .product-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
  .products > li:only-child .product-card__art img { border-bottom: 0; border-right: var(--line) solid var(--ink); }
  .products > li:only-child .product-card__body { padding: 28px 32px; gap: 10px; }
  .products > li:only-child .product-card__title { font-size: clamp(2rem, 3.6vw, 2.8rem); }
}
.product-card__body .btn { justify-self: start; margin-top: 10px; }
.product-card:hover .btn { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.product-card { display: grid; height: 100%; background: #fff; border: var(--line) solid var(--ink); box-shadow: var(--drop); text-decoration: none; transition: transform .15s ease-out, box-shadow .15s ease-out; }
.product-card:hover { transform: translate(-3px, -4px); box-shadow: 9px 10px 0 var(--hot); }
.product-card__art img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-bottom: var(--line) solid var(--ink); }
.product-card__body { display: grid; gap: 4px; padding: 14px 18px 18px; }
.product-card__title { font: italic 400 1.7rem/1.02 var(--display); text-transform: uppercase; }
.product-card__meta { font-weight: 700; color: #4a4337; }

.product { padding-top: clamp(32px, 5vw, 56px); }
.product__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 56px); align-items: start; }
@media (max-width: 860px) { .product__grid { grid-template-columns: minmax(0, 1fr); } }
.product__gallery { display: grid; gap: 14px; }
@media (min-width: 861px) { .product__gallery { position: sticky; top: calc(var(--bar-h) + 20px); } }
.product__main { background: #fff; border: var(--line) solid var(--ink); box-shadow: var(--drop); }
.product__main img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.product__thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; list-style: none; }
.product__thumb { display: block; width: 100%; padding: 0; background: #fff; border: 2px solid var(--ink); cursor: pointer; }
.product__thumb[aria-current="true"] { outline: 3px solid var(--hot); outline-offset: 1px; }
.product__thumb img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }

.product__info { display: grid; gap: 18px; justify-items: start; }
.product__info .page-title { font-size: clamp(2.3rem, 5vw, 3.8rem); }
.product__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.product__price [data-price] { font: italic 400 clamp(2.2rem, 4.6vw, 3rem)/1 var(--display); }
.product__ship { font-size: 1rem; font-weight: 700; color: #4a4337; }

.opt { min-width: 0; margin: 0; padding: 0; border: 0; }
.opt legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.opt__row { display: flex; flex-wrap: wrap; gap: 10px; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.swatch, .pill { position: relative; cursor: pointer; }
.swatch__dot { display: block; width: 42px; height: 42px; border-radius: 50%; background: var(--c); border: var(--line) solid var(--ink); box-shadow: inset 0 0 0 3px #fff; }
.swatch input:checked + .swatch__dot { outline: 3px solid var(--hot); outline-offset: 2px; }
.pill span { display: grid; place-items: center; min-width: 52px; height: 46px; padding: 0 12px; background: #fff; border: var(--line) solid var(--ink); font: 400 1.1rem/1 var(--display); letter-spacing: .04em; }
.pill input:checked + span { background: var(--ink); color: var(--pop); box-shadow: 3px 3px 0 var(--hot); }
.opt input:focus-visible + span { outline: 3px solid var(--zap); outline-offset: 3px; }
.is-out { cursor: not-allowed; opacity: .35; }
.is-out span { text-decoration: line-through; }

.product__buyrow { display: flex; flex-wrap: wrap; align-items: stretch; gap: 14px 18px; margin-top: 4px; }
.qty { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.qty select { height: 100%; min-height: 52px; padding: 0 12px; font: 700 1.15rem var(--body); background: #fff; color: var(--ink); border: var(--line) solid var(--ink); }
.product__buy:disabled { cursor: not-allowed; opacity: .55; transform: none; box-shadow: 5px 5px 0 var(--ink); }
.product__status { min-height: 1.4em; font-weight: 700; color: #b0004a; }
.product__status:empty { display: none; }
.product__desc { display: grid; gap: .8em; font-size: 1.1rem; }
.product__desc ul { display: grid; gap: .3em; padding-left: 1.2em; }
.product__h { margin-top: .4em; font-size: 1.3rem; font-style: normal; line-height: 1.1; }
.opt--fixed { font-weight: 700; }
.product__policy { width: 100%; padding: 14px 18px; background: #fff; border: 2px solid var(--ink); }
.product__policy summary { cursor: pointer; font: 400 1.25rem/1.2 var(--display); text-transform: uppercase; letter-spacing: .03em; }
.product__policy p { margin-top: .7em; font-size: 1.02rem; }

.checkout { width: min(100vw - 24px, 760px); max-width: none; max-height: calc(100dvh - 24px); margin: auto; padding: 0; border: var(--line) solid var(--ink); background: #fff; box-shadow: 10px 10px 0 var(--hot); overflow: auto; }
.checkout::backdrop { background: rgba(11, 11, 15, .88); }
.checkout__box { display: grid; gap: 10px; padding: clamp(14px, 3vw, 24px); }
.checkout__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.checkout__top h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.checkout__item { font-weight: 700; color: #4a4337; }
.checkout__mount { min-height: 240px; }
.checkout__wait, .checkout__error { padding: 40px 0; text-align: center; font-weight: 700; }
.checkout__error { color: #b0004a; }

.thanks__in { display: grid; justify-items: center; gap: 18px; max-width: 760px; text-align: center; padding-block: clamp(20px, 6vw, 60px); }
.burst--thanks { --burst-w: 250px; --burst-size: 2.2rem; --burst-fill: var(--zap); transform: rotate(-4deg); }

/* ---------- motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .lockup__a { animation: slam-l .5s cubic-bezier(.2, 1.3, .4, 1) both; }
  .lockup__b { animation: slam-r .5s cubic-bezier(.2, 1.3, .4, 1) .12s both; }
  .burst--new { animation: pop .45s cubic-bezier(.2, 1.6, .4, 1) .55s both; }
  @keyframes slam-l { from { opacity: 0; transform: translateX(-60px) skewX(-24deg); } }
  @keyframes slam-r { from { opacity: 0; transform: translateX(70px) skewX(-24deg); } }
  @keyframes pop { from { opacity: 0; scale: .2; } }
  .game__time.is-low { animation: chip-bump .5s ease-in-out infinite alternate; }
}
@keyframes game-pop { 0% { opacity: 0; scale: .2; } 14% { opacity: 1; scale: 1.08; } 24% { scale: 1; } 78% { opacity: 1; } 100% { opacity: 0; scale: 1.06; } }
@keyframes chip-bump { 50% { scale: 1.22; } }
@media (prefers-reduced-motion: reduce) {
  .game__pop { animation-name: game-fade; animation-timing-function: ease-out; }
  @keyframes game-fade { 0%, 100% { opacity: 0; } 12%, 78% { opacity: 1; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card__art, .phone__play .chip { transition: none; }
}
