/* ============================================================
   Party Hat Games — Marketing site
   Same "Confetti" sticker-comic aesthetic as the host & controller:
   warm paper, ink outlines, chunky drop shadows, Fredoka headlines,
   marker highlights, drifting confetti.
   ============================================================ */

:root {
  --paper:   #FFF4E6;
  --paper-2: #FBE8D0;
  --paper-3: #F5DCBD;
  --card:    #FFFFFF;
  --ink:     #2E1248;
  --ink-2:   #7A6A88;
  --ink-3:   #BAACC6;
  --ink-soft: rgba(46, 18, 72, 0.14);

  --pink:   #FF3D8B;  --pink-deep:   #C9165F;
  --yellow: #FFC42E;  --yellow-deep: #E2A400;
  --cyan:   #18C6DE;  --cyan-deep:   #0C93A6;
  --purple: #9B57F0;  --purple-deep: #6E2BCB;
  --lime:   #57CF3C;  --lime-deep:   #3A9E26;
  --tang:   #FF6B2C;  --tang-deep:   #D84E12;

  --line: 3px;
  --line-thick: 4px;
  --r-sm: 12px;
  --r:    22px;
  --r-lg: 32px;
  --r-pill: 999px;

  --shadow: 0 10px 0 var(--ink);
  --shadow-sm: 0 6px 0 var(--ink);
  --shadow-lg: 0 14px 0 var(--ink);

  --ease: cubic-bezier(.34, 1.32, .5, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --max: 1240px;
}

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

html, body {
  margin: 0; padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }

::selection { background: var(--yellow); color: var(--ink); }

/* ----------------------- Paper background ----------------------- */
.paperBg {
  position: fixed; inset: 0;
  z-index: -1; pointer-events: none;
  background-color: var(--paper);
  background-image:
    radial-gradient(circle, rgba(255, 61, 139, .10) 3px, transparent 3.6px),
    radial-gradient(circle, rgba(24, 198, 222, .10) 3px, transparent 3.6px),
    radial-gradient(circle, rgba(255, 196, 46, .13) 3px, transparent 3.6px);
  background-size: 64px 64px, 64px 64px, 64px 64px;
  background-position: 0 0, 24px 36px, 46px 12px;
  animation: dotsDrift 80s linear infinite;
}
@keyframes dotsDrift {
  from { background-position: 0 0, 24px 36px, 46px 12px; }
  to   { background-position: 0 -256px, 24px -220px, 46px -244px; }
}
.partyDrift { position: absolute; inset: 0; overflow: hidden; }
.drift {
  position: absolute;
  bottom: -10vmin;
  width: var(--size, 14px); height: var(--size, 14px);
  background: currentColor;
  opacity: 0;
  animation: driftUp linear infinite;
  will-change: transform, opacity;
}
.drift--dot { border-radius: 50%; }
.drift--strip {
  width: calc(var(--size, 14px) * 0.4);
  height: calc(var(--size, 14px) * 1.6);
  border-radius: 999px;
}
.drift--star {
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
@keyframes driftUp {
  0%   { transform: translate(0, 0) rotate(var(--rot, 0deg)); opacity: 0; }
  10%  { opacity: .55; }
  90%  { opacity: .55; }
  100% { transform: translate(var(--sway, 0), calc(-110vh - 20vmin)) rotate(calc(var(--rot, 0deg) + 540deg)); opacity: 0; }
}

/* ----------------------- Type ----------------------- */
.eyebrow {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: clamp(12px, 1vw, 15px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.eyebrow--center { text-align: center; }

.section__title {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 5.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 56px;
}

.mark {
  background: linear-gradient(104deg, transparent 0.4%, var(--yellow) 1.6%, var(--yellow) 97%, transparent 99%);
  background-size: 220% 56%;
  background-repeat: no-repeat;
  background-position: 0 82%;
  padding: 0 .12em;
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  animation: markSwipe 6s ease-in-out infinite;
}
.mark--cyan {
  background-image: linear-gradient(104deg, transparent 0.4%, var(--cyan) 1.6%, var(--cyan) 97%, transparent 99%);
}
@keyframes markSwipe {
  0%, 100% { background-position: 0 82%; }
  50%      { background-position: 30% 82%; }
}

/* ----------------------- Buttons (sticker style) ----------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 18px;
  line-height: 1;
  padding: 16px 28px;
  border-radius: var(--r-pill);
  border: var(--line) solid var(--ink);
  color: var(--ink);
  background: var(--card);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
  white-space: nowrap;
}
.btn:hover  { transform: translateY(-2px) rotate(-1deg); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--ink); }
.btn--primary { background: var(--pink); color: #fff; box-shadow: 0 6px 0 var(--pink-deep); }
.btn--primary:hover  { box-shadow: 0 8px 0 var(--pink-deep); }
.btn--primary:active { box-shadow: 0 2px 0 var(--pink-deep); }
.btn--ghost   { background: transparent; }
.btn--lg      { font-size: 20px; padding: 20px 36px; }

/* ----------------------- Nav ----------------------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; gap: 24px;
  padding: 18px clamp(16px, 4vw, 40px);
  background: color-mix(in srgb, var(--paper) 85%, transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: var(--line) solid var(--ink);
}
.nav__brand {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none; color: var(--ink);
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
}
.nav__hat { width: 38px; height: 38px; transform: rotate(-10deg); animation: hatFloat 3.6s ease-in-out infinite; }
@keyframes hatFloat {
  0%, 100% { transform: translateY(0) rotate(-10deg); }
  50%      { transform: translateY(-3px) rotate(-6deg); }
}
.nav__wordmark { font-size: 20px; letter-spacing: 0.02em; }
.nav__wordmark span { color: var(--pink); }
.nav__links {
  margin-left: auto;
  display: flex; gap: 24px;
  font-family: "Fredoka", sans-serif;
  font-weight: 500; font-size: 16px;
}
.nav__links a {
  text-decoration: none; color: var(--ink-2);
  padding: 6px 4px;
  transition: color .15s;
}
.nav__links a:hover { color: var(--ink); }
.nav__cta { padding: 12px 22px; font-size: 16px; }

@media (max-width: 720px) {
  .nav__links { display: none; }
}

/* ----------------------- Hero ----------------------- */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 9vw, 120px) clamp(20px, 4vw, 40px) clamp(48px, 7vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
.hero__inner { min-width: 0; }
.hero__title {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(40px, 6.4vw, 92px);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  text-shadow: 0 8px 0 var(--ink-soft);
}
.hero__sub {
  font-size: clamp(17px, 1.4vw, 22px);
  color: var(--ink-2);
  line-height: 1.45;
  max-width: 52ch;
  margin: 0 0 36px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 32px; }
.hero__bullets {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 18px 26px;
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  color: var(--ink-2);
}
.hero__bullets li { display: flex; align-items: center; gap: 10px; }
.hero__dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--c, var(--pink));
  border: 2.5px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
}

/* Hero art — sticker mock of TV + phones */
.hero__art {
  position: relative;
  min-height: 460px;
}
.tv {
  position: relative;
  width: 100%; max-width: 560px;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: var(--line-thick) solid var(--ink);
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  rotate: -2deg;
  margin: 0 auto;
  animation: tvSway 7s ease-in-out infinite;
}
@keyframes tvSway {
  0%, 100% { rotate: -2deg; translate: 0 0; }
  50%      { rotate: -0.5deg; translate: 0 -6px; }
}
.tv__screen {
  position: absolute; inset: 12px;
  border-radius: 14px;
  background: var(--paper);
  background-image:
    radial-gradient(circle, rgba(255, 61, 139, .14) 3px, transparent 3.6px),
    radial-gradient(circle, rgba(24, 198, 222, .14) 3px, transparent 3.6px),
    radial-gradient(circle, rgba(255, 196, 46, .18) 3px, transparent 3.6px);
  background-size: 36px 36px, 36px 36px, 36px 36px;
  background-position: 0 0, 14px 20px, 26px 6px;
  overflow: hidden;
  padding: 18px 22px 20px;
  display: flex; flex-direction: column;
  gap: 10px;
}
.tv__label {
  grid-column: 1 / -1;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.3vw, 18px);
  letter-spacing: 0.36em;
  color: var(--ink-2);
}
.tv__code {
  align-self: end;
  background: var(--card);
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  padding: 10px 22px 14px;
  box-shadow: 0 8px 0 var(--ink);
  rotate: -2deg;
  animation: roomCodeWobble 4.4s ease-in-out infinite;
}
@keyframes roomCodeWobble {
  0%, 100% { rotate: -2deg; translate: 0 0; }
  50%      { rotate: 1.4deg; translate: 0 -3px; }
}
.tv__codeLabel {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.28em;
  color: var(--ink-2);
}
.tv__codeValue {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(36px, 4vw, 56px);
  letter-spacing: 0.14em;
  line-height: 1;
}
.tv__qr {
  align-self: end; justify-self: end;
  width: 96px; height: 96px;
  background: var(--card);
  border: var(--line) solid var(--ink);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 8px 0 var(--ink);
  animation: qrBob 3.8s ease-in-out infinite;
}
@keyframes qrBob {
  0%, 100% { translate: 0 0; rotate: 0deg; }
  50%      { translate: 0 -4px; rotate: 2deg; }
}
.tv__qrGrid {
  width: 100%; height: 100%;
  background-image:
    linear-gradient(var(--ink) 50%, transparent 50%),
    linear-gradient(90deg, var(--ink) 50%, transparent 50%);
  background-size: 12px 12px, 12px 12px;
  background-position: 0 0, 0 0;
  -webkit-mask:
    radial-gradient(circle at 12px 12px, transparent 8px, #000 8px),
    radial-gradient(circle at calc(100% - 12px) 12px, transparent 8px, #000 8px),
    radial-gradient(circle at 12px calc(100% - 12px), transparent 8px, #000 8px);
  mask:
    radial-gradient(circle at 12px 12px, transparent 8px, #000 8px),
    radial-gradient(circle at calc(100% - 12px) 12px, transparent 8px, #000 8px),
    radial-gradient(circle at 12px calc(100% - 12px), transparent 8px, #000 8px);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  opacity: .85;
}
.tv__dots, .tv__label, .tv__code, .tv__qr { display: none; }

/* ----------------------------------------------------------------------
   Real-screen iframes
   Each demo page renders its actual game viewport (vmin-based), then we
   scale the iframe down with CSS transform so the marketing site shows
   the real UI rather than an approximation.
   TV viewport: 1280×720; phone viewport: 440×900.
   ---------------------------------------------------------------------- */
.tv__screen { padding: 0; overflow: hidden; border-radius: 8px; }
.phone__screen { padding: 0; overflow: hidden; }

/* TV iframe: host CSS sizes everything off vmin, so a fill-iframe in the
   bezel renders the real screen proportionally. No transform needed. */
.screenFrame--tv {
  display: block;
  width: 100%; height: 100%;
  border: 0; background: var(--paper);
  pointer-events: none;
}
.tv__screen { position: absolute; inset: 12px; background: var(--paper); }

/* Phone iframes: controller CSS uses fixed px, so we render the screen at
   its real mobile viewport (440×900) and CSS-scale it down to the bezel. */
.phone__screen { position: relative; overflow: hidden; background: var(--paper); }
.screenFrame--phone {
  position: absolute; top: 0; left: 0;
  display: block;
  width: 440px; height: 900px;
  border: 0; background: var(--paper);
  pointer-events: none;
  transform-origin: top left;
  transform: scale(var(--phoneScale, 0.26));
}
@media (max-width: 920px) {
  .hero { --phoneScale: 0.215; }
}

/* ================================================================
   MOCKUP SCREENS — mirror the actual game (host battle + controller)
   class prefix: .mk-*
   ================================================================ */

/* shared blob backdrops used by host gifs, vote cards, and the picker tiles */
.gifBlob {
  position: absolute;
  border-radius: 50%;
  filter: blur(6px);
  opacity: .8;
}
.gifBlob--a1 { width: 60%; height: 70%; background: #FF3D8B; top: -10%; left: -15%; animation: blob 5s ease-in-out infinite; }
.gifBlob--a2 { width: 55%; height: 55%; background: #FFC42E; bottom: -10%; right: -10%; animation: blob 6s ease-in-out infinite reverse; }
.gifBlob--a3 { width: 40%; height: 40%; background: #FFFFFF; top: 30%; left: 30%; animation: blob 4s ease-in-out infinite; }
.gifBlob--b1 { width: 60%; height: 70%; background: #9B57F0; top: -10%; right: -15%; animation: blob 5.5s ease-in-out infinite; }
.gifBlob--b2 { width: 55%; height: 55%; background: #18C6DE; bottom: -10%; left: -10%; animation: blob 5s ease-in-out infinite reverse; }
.gifBlob--b3 { width: 35%; height: 35%; background: #FFFFFF; top: 25%; right: 25%; animation: blob 4.5s ease-in-out infinite; }
.gifBlob--v1 { width: 90%; height: 90%; background: #FF3D8B; top: -10%; left: -10%; animation: blob 5s ease-in-out infinite; }
.gifBlob--v2 { width: 90%; height: 90%; background: #9B57F0; bottom: -10%; right: -10%; animation: blob 5.4s ease-in-out infinite reverse; }
@keyframes blob {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(8%, -6%) scale(1.12); }
}
.gifFace {
  position: relative; z-index: 1;
  filter: drop-shadow(0 2px 0 rgba(0,0,0,.3));
  animation: gifFaceWiggle 1.4s ease-in-out infinite;
}
@keyframes gifFaceWiggle {
  0%, 100% { transform: rotate(-6deg) scale(1); }
  50%      { transform: rotate(6deg) scale(1.08); }
}
.mk-klipy {
  position: absolute; right: 4px; bottom: 4px;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 7px;
  letter-spacing: 0.12em;
  color: #fff;
  background: rgba(0,0,0,.45);
  border-radius: 3px;
  padding: 1px 4px;
  z-index: 2;
}

/* ---------- HOST .battle screen ---------- */
.mk-stage {
  position: absolute; inset: 12px;
  border-radius: 14px;
  background: var(--paper);
  background-image:
    radial-gradient(circle, rgba(255, 61, 139, .14) 3px, transparent 3.6px),
    radial-gradient(circle, rgba(24, 198, 222, .14) 3px, transparent 3.6px),
    radial-gradient(circle, rgba(255, 196, 46, .18) 3px, transparent 3.6px);
  background-size: 36px 36px, 36px 36px, 36px 36px;
  background-position: 0 0, 14px 20px, 26px 6px;
  overflow: hidden;
  padding: 20px 24px;
  display: flex; flex-direction: column;
}
.mk-battle__prompt {
  margin: 0 auto 14px;
  max-width: 22ch;
  text-align: center;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.5vw, 20px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-shadow: 0 3px 0 var(--ink-soft);
}
.mk-battle__cards {
  flex: 1; min-height: 0;
  display: flex; align-items: stretch; gap: 12px;
}
.mk-matchup {
  flex: 1; min-width: 0;
  display: flex;
}
.mk-matchup__frame {
  position: relative;
  flex: 1;
  background: var(--card);
  border: 2.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 0 5px 0 var(--ink);
  padding: 5px;
  overflow: hidden;
}
.mk-matchup:nth-child(1) .mk-matchup__frame { rotate: -1.6deg; animation: cardSway 6s ease-in-out infinite; }
.mk-matchup:nth-child(3) .mk-matchup__frame { rotate: 1.4deg; animation: cardSway 6.6s ease-in-out infinite reverse; }
@keyframes cardSway {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -3px; }
}
.mk-gif {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 8px;
  overflow: hidden;
  display: grid; place-items: center;
  font-size: clamp(28px, 4vw, 44px);
}
.mk-gif--a { background: linear-gradient(135deg, #FFC42E, #FF6B2C); }
.mk-gif--b { background: linear-gradient(135deg, #18C6DE, #9B57F0); }
.mk-battle__vs {
  align-self: center;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(14px, 1.7vw, 22px);
  background: var(--yellow);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  width: clamp(34px, 4vw, 50px);
  height: clamp(34px, 4vw, 50px);
  display: grid; place-items: center;
  box-shadow: 0 4px 0 var(--yellow-deep);
  rotate: -8deg;
  animation: vsPulseTv 2.4s ease-in-out infinite;
}
@keyframes vsPulseTv {
  0%, 100% { transform: scale(1) rotate(-8deg); }
  50%      { transform: scale(1.08) rotate(-3deg); }
}
.mk-battle__foot {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 12px;
}
.mk-hostTimer {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 2px 14px;
  box-shadow: 0 3px 0 var(--ink);
}
.mk-voteCount {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 11px;
  color: var(--ink-2);
}

/* ---------- CONTROLLER mock — shared chrome ---------- */
.mk-ctrl {
  display: flex; flex-direction: column;
  padding: 12px 10px 10px;
  overflow: hidden;
}
.mk-eyebrow {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 8px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 6px;
}
.mk-title {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 13px;
  line-height: 1.07;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin: 0 0 4px;
}
.mk-title--sm { font-size: 11px; line-height: 1.1; }
.mk-mark {
  background: linear-gradient(104deg, transparent 0.4%, var(--yellow) 1.6%, var(--yellow) 97%, transparent 99%);
  background-size: 100% 58%;
  background-repeat: no-repeat;
  background-position: 0 80%;
  padding: 0 .1em;
}
.mk-sub {
  margin: 4px 0 8px;
  color: var(--ink-2);
  font-size: 9px; line-height: 1.3; font-weight: 500;
}
.mk-cta {
  margin-top: auto; padding-top: 8px;
}
.mk-btn {
  display: block;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 11px;
  text-align: center;
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: 14px;
  padding: 8px 0;
  box-shadow: 0 4px 0 var(--ink);
}
.mk-btn--primary { background: var(--pink); color: var(--ink); }

/* ---------- CONTROLLER: prompt entry ---------- */
.mk-form { display: grid; gap: 7px; margin-top: 4px; }
.mk-field { display: flex; flex-direction: column; gap: 3px; }
.mk-field__head { display: flex; align-items: center; justify-content: space-between; }
.mk-field__label {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 9px;
  color: var(--ink);
}
.mk-field__suggest {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 7.5px;
  letter-spacing: 0.04em;
  color: var(--ink);
  background: var(--paper-2);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 2px 7px;
  box-shadow: 0 2px 0 var(--ink);
}
.mk-input {
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  padding: 5px 7px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 9px;
  line-height: 1.2;
  color: var(--ink);
  min-height: 22px;
  box-shadow: 0 2px 0 var(--ink);
}
.mk-input--empty { color: var(--ink-3); font-style: italic; }
.mk-caret {
  display: inline-block;
  color: var(--pink);
  font-weight: 700;
  animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* ---------- CONTROLLER: vote ---------- */
.mk-voteCards {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 4px;
}
.mk-voteButton {
  position: relative;
  flex: 1;
  border-radius: 10px;
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);
  overflow: hidden;
  transition: opacity .2s;
}
.mk-voteButton.is-dim { opacity: .5; }
.mk-voteButton--picked {
  outline: 2.5px solid var(--pink);
  outline-offset: 2px;
  animation: pickedPulse 1.4s ease-in-out infinite;
}
@keyframes pickedPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.03); }
}
.mk-voteButton .mk-gif { font-size: 22px; }

/* ---------- CONTROLLER: gif picker ---------- */
.mk-gifPrompt {
  padding: 0 0 6px;
  border-bottom: 1.5px dashed var(--ink-3);
  margin-bottom: 6px;
}
.mk-search {
  display: flex; align-items: center; gap: 5px;
  background: var(--card);
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  padding: 4px 10px;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 9px;
  color: var(--ink-3);
  box-shadow: 0 2px 0 var(--ink);
  margin-bottom: 7px;
}
.mk-search svg { color: var(--ink-2); flex-shrink: 0; }
.mk-masonry {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  overflow: hidden;
}
.mk-mCol { display: flex; flex-direction: column; gap: 4px; }
.mk-mTile {
  position: relative;
  height: var(--h, 40px);
  background: var(--c, var(--pink));
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  box-shadow: 0 2px 0 var(--ink);
  display: grid; place-items: center;
  font-size: 16px;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.2));
}
.mk-mTile .mk-klipy { font-size: 5px; padding: 0 2px; }
.mk-mTile--picked {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  animation: pickedPulse 1.4s ease-in-out infinite;
}
.tv__stand {
  position: absolute; left: 50%;
  bottom: -22px;
  width: 38%;
  height: 14px;
  background: var(--ink);
  border-radius: 0 0 14px 14px;
  transform: translateX(-50%);
  box-shadow: 0 10px 0 var(--ink-soft);
}

/* Phones around the TV — bezel + screen surface; inner mock uses .mk-* above */
.phone {
  position: absolute;
  width: 128px;
  aspect-ratio: 9 / 19;
  background: var(--ink);
  border: var(--line-thick) solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 7px;
}
.phone__screen {
  width: 100%; height: 100%;
  border-radius: 14px;
  background: var(--paper);
  background-image:
    radial-gradient(circle, rgba(255, 61, 139, .10) 1.8px, transparent 2.3px),
    radial-gradient(circle, rgba(24, 198, 222, .10) 1.8px, transparent 2.3px),
    radial-gradient(circle, rgba(255, 196, 46, .14) 1.8px, transparent 2.3px);
  background-size: 22px 22px, 22px 22px, 22px 22px;
  background-position: 0 0, 8px 12px, 14px 4px;
  color: var(--ink);
  overflow: hidden;
}

.phone--1 {
  left: -2%; bottom: 4%;
  rotate: -12deg;
  animation: phoneSway1 6s ease-in-out infinite;
}
.phone--2 {
  right: -4%; top: 6%;
  rotate: 14deg;
  animation: phoneSway2 5.4s ease-in-out infinite;
}
.phone--3 {
  right: 8%; bottom: -2%;
  rotate: -6deg;
  animation: phoneSway3 6.6s ease-in-out infinite;
}
@keyframes phoneSway1 {
  0%, 100% { rotate: -12deg; translate: 0 0; }
  50%      { rotate: -8deg; translate: 0 -8px; }
}
@keyframes phoneSway2 {
  0%, 100% { rotate: 14deg; translate: 0 0; }
  50%      { rotate: 18deg; translate: 0 -6px; }
}
@keyframes phoneSway3 {
  0%, 100% { rotate: -6deg; translate: 0 0; }
  50%      { rotate: -2deg; translate: 0 -10px; }
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; }
  .hero__art { min-height: 380px; order: -1; margin-bottom: 12px; }
  .phone { width: 108px; }
}

/* ----------------------- HOW ----------------------- */
.how {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 8vw, 110px) clamp(20px, 4vw, 40px);
}
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 32px);
}
.stepCard {
  position: relative;
  background: var(--card);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 36px 28px 32px;
}
.stepCard--1 { rotate: -1.5deg; }
.stepCard--2 { rotate: 1deg; transform: translateY(8px); }
.stepCard--3 { rotate: -0.5deg; }
.stepCard:hover { transform: translateY(-4px) rotate(0deg); transition: transform .25s var(--ease); }
.stepCard__num {
  position: absolute;
  top: -22px; left: 24px;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  background: var(--yellow);
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 26px;
  box-shadow: 0 6px 0 var(--yellow-deep);
}
.stepCard--2 .stepCard__num { background: var(--cyan); box-shadow: 0 6px 0 var(--cyan-deep); }
.stepCard--3 .stepCard__num { background: var(--lime); box-shadow: 0 6px 0 var(--lime-deep); }
.stepCard__title {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(22px, 2vw, 28px);
  margin: 12px 0 12px;
}
.stepCard__body { color: var(--ink-2); font-size: 17px; line-height: 1.5; margin: 0; }

@media (max-width: 820px) {
  .how__grid { grid-template-columns: 1fr; gap: 36px; }
  .stepCard--2 { transform: none; }
}

/* ----------------------- GAMES ----------------------- */
.games {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 40px);
}
.games__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.gameCard {
  position: relative;
  background: var(--card);
  border: var(--line) solid var(--ink);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  padding: 28px;
  display: flex; flex-direction: column;
}
.gameCard--featured { rotate: -0.6deg; }
.gameCard--soon { rotate: 0.8deg; background: var(--paper-2); }
.gameCard__badge {
  align-self: flex-start;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--lime);
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  box-shadow: 0 4px 0 var(--lime-deep);
  margin-bottom: 18px;
}
.gameCard__badge--soon { background: var(--yellow); box-shadow: 0 4px 0 var(--yellow-deep); }
.gameCard__visual {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
  border: var(--line) solid var(--ink);
  background: var(--paper-2);
  margin-bottom: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  padding: 14px;
}
.gifFrame {
  background: var(--card);
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 5px 0 var(--ink);
  display: grid; place-items: center;
  font-size: clamp(28px, 4vw, 48px);
  animation: gifBob 3.6s ease-in-out infinite;
}
.gifFrame--1 { rotate: -3deg; background: var(--pink); }
.gifFrame--2 { rotate: 2deg; background: var(--cyan); animation-delay: .4s; }
.gifFrame--3 { rotate: -2deg; background: var(--yellow); animation-delay: .8s; }
.gifFrame--4 { rotate: 4deg; background: var(--lime); animation-delay: 1.2s; }
@keyframes gifBob {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -6px; }
}
.gifVs {
  grid-row: 1 / span 2;
  align-self: center; justify-self: center;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 32px);
  background: var(--yellow);
  color: var(--ink);
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  width: 64px; height: 64px;
  display: grid; place-items: center;
  box-shadow: 0 6px 0 var(--yellow-deep);
  rotate: -8deg;
  animation: vsPulse 2.6s ease-in-out infinite;
}
@keyframes vsPulse {
  0%, 100% { transform: scale(1) rotate(-8deg); }
  50%      { transform: scale(1.06) rotate(-4deg); }
}
.gameCard__visual--placeholder { display: grid; place-items: center; }
.soonGlyph {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(72px, 10vw, 130px);
  color: var(--ink-3);
}
.gameCard__title {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(26px, 2.6vw, 36px);
  margin: 0 0 10px;
}
.gameCard__body { color: var(--ink-2); font-size: 16px; line-height: 1.5; margin: 0 0 18px; }
.gameCard__meta {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: auto;
}
.gameCard__meta li {
  font-family: "Fredoka", sans-serif;
  font-weight: 500; font-size: 13px;
  background: var(--paper-2);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  color: var(--ink);
}
.gameCard__cta { align-self: flex-start; margin-top: 18px; }

.signup { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: auto; }
.signup input {
  flex: 1; min-width: 0;
  font-family: "Inter", sans-serif;
  font-size: 16px;
  padding: 14px 16px;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  background: var(--card);
  color: var(--ink);
  box-shadow: 0 4px 0 var(--ink);
}
.signup input:focus { outline: none; box-shadow: 0 4px 0 var(--ink), 0 0 0 4px var(--cyan); }
.signup__ok {
  flex-basis: 100%;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  color: var(--lime-deep);
  margin-top: 4px;
}

@media (max-width: 820px) {
  .games__grid { grid-template-columns: 1fr; }
}

/* ----------------------- FEATURES STRIP ----------------------- */
.features {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(20px, 4vw, 60px) clamp(20px, 4vw, 40px) clamp(48px, 7vw, 80px);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.featCard {
  background: var(--card);
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 22px 22px 24px;
}
.featCard:nth-child(1) { rotate: -1deg; }
.featCard:nth-child(2) { rotate: 0.7deg; }
.featCard:nth-child(3) { rotate: -0.5deg; }
.featCard:nth-child(4) { rotate: 1deg; }
.featCard__icon { font-size: 36px; margin-bottom: 10px; }
.featCard__h {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 6px;
}
.featCard__p { color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }

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

/* ----------------------- FAQ ----------------------- */
.faq {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(48px, 7vw, 96px) clamp(20px, 4vw, 40px);
}
.faq__grid {
  display: grid; gap: 14px;
}
.faqItem {
  background: var(--card);
  border: var(--line) solid var(--ink);
  border-radius: var(--r);
  box-shadow: var(--shadow-sm);
  padding: 0;
  overflow: hidden;
}
.faqItem summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 24px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 18px;
  display: flex; align-items: center; justify-content: space-between;
}
.faqItem summary::-webkit-details-marker { display: none; }
.faqItem summary::after {
  content: "+";
  font-size: 28px; line-height: 1;
  color: var(--pink);
  font-weight: 700;
  margin-left: 16px;
  transition: transform .2s var(--ease);
}
.faqItem[open] summary::after { transform: rotate(45deg); }
.faqItem p {
  margin: 0; padding: 0 24px 22px;
  color: var(--ink-2);
  line-height: 1.55;
  font-size: 16px;
}

/* ----------------------- FINAL CTA ----------------------- */
.finalCta {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 40px) clamp(80px, 10vw, 140px);
  text-align: center;
}
.finalCta__card {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  border: var(--line-thick) solid var(--ink);
  border-radius: var(--r-lg);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 48px);
  background-image:
    radial-gradient(circle, rgba(255, 61, 139, .8) 3px, transparent 3.6px),
    radial-gradient(circle, rgba(24, 198, 222, .8) 3px, transparent 3.6px),
    radial-gradient(circle, rgba(255, 196, 46, .9) 3px, transparent 3.6px);
  background-size: 56px 56px, 56px 56px, 56px 56px;
  background-position: 0 0, 20px 30px, 38px 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.finalCta__title {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(30px, 4.4vw, 56px);
  line-height: 1.08;
  margin: 0 0 28px;
  color: var(--paper);
  text-shadow: 0 6px 0 rgba(0,0,0,.25);
}
.finalCta .btn--primary {
  background: var(--yellow);
  color: var(--ink);
  box-shadow: 0 6px 0 var(--yellow-deep);
}
.finalCta .btn--primary:hover  { box-shadow: 0 8px 0 var(--yellow-deep); }
.finalCta .btn--primary:active { box-shadow: 0 2px 0 var(--yellow-deep); }
.finalCta__hint { color: var(--ink-3); font-size: 14px; margin: 16px 0 0; }

/* ----------------------- FOOTER ----------------------- */
.foot {
  border-top: var(--line) solid var(--ink);
  padding: 28px clamp(20px, 4vw, 40px);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--paper-2);
}
.foot__row {
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  display: flex; gap: 10px; align-items: center;
}
.foot__row--mute { color: var(--ink-2); font-size: 13px; }
.foot__brand { font-weight: 700; }
.foot__dot { color: var(--ink-3); }
.foot a { color: inherit; text-decoration: underline; text-decoration-color: var(--ink-3); text-underline-offset: 3px; }

/* ----------------------- Reduced motion ----------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
