﻿:root {
  --ink: #160d18;
  --paper: #fff7e8;
  --hot: #ff2e63;
  --gold: #ffd166;
  --acid: #7cf576;
  --cyan: #3dd6ff;
  --violet: #6d4aff;
  --deep: #10121f;
}

* {
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  position: relative;
  color: var(--paper);
  background:
    radial-gradient(circle at 14% 15%, rgba(255, 209, 102, 0.32), transparent 28rem),
    radial-gradient(circle at 88% 12%, rgba(61, 214, 255, 0.24), transparent 24rem),
    linear-gradient(135deg, #191124 0%, #0b1420 42%, #211015 100%);
  font-family: "Arial Black", Impact, system-ui, sans-serif;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

#fireworks {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.12;
  background-image:
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
  mix-blend-mode: screen;
}

main {
  position: relative;
  z-index: 2;
}

.ticker {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9;
  height: 38px;
  overflow: hidden;
  color: #160d18;
  background: repeating-linear-gradient(135deg, var(--gold) 0 16px, #ff9f1c 16px 32px);
  border-bottom: 3px solid #000;
  white-space: nowrap;
}

.ticker__track {
  display: flex;
  width: max-content;
  height: 100%;
  animation: ticker 20s linear infinite;
}

.ticker__track span {
  display: block;
  padding: 7px 34px 0 0;
  font-size: 15px;
  white-space: nowrap;
}

.hero {
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.85fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  padding: 82px clamp(18px, 5vw, 72px) 54px;
}

.hero__copy {
  max-width: 850px;
}

.kicker {
  width: fit-content;
  margin: 0 0 18px;
  padding: 8px 12px;
  color: #10121f;
  background: var(--acid);
  border: 3px solid #000;
  box-shadow: 6px 6px 0 #000;
  max-width: calc(100vw - 56px);
  line-height: 1.15;
  transform: rotate(-2deg);
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  color: #fff;
  font-size: 8.8rem;
  line-height: 0.83;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 7px 7px 0 #000, 12px 12px 0 var(--hot);
}

.name-tip {
  position: relative;
  display: inline-block;
  color: var(--gold);
  cursor: help;
  filter: drop-shadow(0 0 20px rgba(255, 209, 102, 0.5));
}

.tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 12px);
  z-index: 20;
  width: max-content;
  max-width: 240px;
  padding: 10px 12px;
  color: #10121f;
  background: #fff;
  border: 3px solid #000;
  border-radius: 6px;
  box-shadow: 6px 6px 0 var(--hot);
  font-family: system-ui, sans-serif;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: none;
  text-shadow: none;
  opacity: 0;
  transform: translate(-50%, 8px) rotate(2deg);
  transition: opacity 160ms ease, transform 160ms ease;
  pointer-events: none;
}

.name-tip:hover .tip,
.name-tip:focus-visible .tip {
  opacity: 1;
  transform: translate(-50%, 0) rotate(-2deg);
}

.hero__lead {
  max-width: 760px;
  color: rgba(255, 247, 232, 0.88);
  font-family: system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 800;
  line-height: 1.35;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.boom,
.ghost {
  min-height: 54px;
  padding: 14px 18px;
  border: 3px solid #000;
  border-radius: 7px;
  box-shadow: 7px 7px 0 #000;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.boom {
  color: #10121f;
  background: var(--gold);
}

.ghost {
  color: #fff;
  background: var(--hot);
}

.boom:hover,
.ghost:hover {
  transform: translate(3px, 3px);
  box-shadow: 4px 4px 0 #000;
}

.hero__stage {
  position: relative;
  min-height: min(740px, 82svh);
}

.cutout,
.photo-card img,
.panel--smoke img,
.finale__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cutout {
  position: absolute;
  border: 4px solid #000;
  box-shadow: 12px 12px 0 #000, 0 0 40px rgba(255,255,255,0.18);
  background: #fff;
  animation: floaty 5s ease-in-out infinite;
}

.cutout--main {
  left: 10%;
  top: 6%;
  width: min(78%, 430px);
  height: 72%;
  clip-path: polygon(16% 0, 100% 6%, 94% 88%, 58% 100%, 10% 88%, 0 18%);
}

.cutout--sly {
  right: -2%;
  bottom: 7%;
  width: 48%;
  height: 40%;
  clip-path: circle(47% at 58% 44%);
  animation-delay: -1.4s;
}

.cutout--stairs {
  left: -4%;
  bottom: 0;
  width: 42%;
  height: 36%;
  clip-path: polygon(0 18%, 100% 0, 88% 100%, 8% 88%);
  animation-delay: -2.4s;
}

.stamp {
  position: absolute;
  z-index: 3;
  padding: 12px 14px;
  color: #10121f;
  background: #fff;
  border: 3px solid #000;
  border-radius: 6px;
  box-shadow: 6px 6px 0 var(--cyan);
  font-size: 1.35rem;
  line-height: 1;
  text-transform: uppercase;
}

.stamp--one {
  right: 8%;
  top: 9%;
  transform: rotate(8deg);
}

.stamp--two {
  left: 2%;
  bottom: 35%;
  transform: rotate(-9deg);
  box-shadow: 6px 6px 0 var(--acid);
}

.meme-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  padding: 32px clamp(18px, 5vw, 72px) 70px;
}

.manifesto {
  grid-column: 1 / -1;
  padding: clamp(20px, 4vw, 38px);
  color: #10121f;
  background: #fff;
  border: 4px solid #000;
  border-radius: 8px;
  box-shadow: 10px 10px 0 var(--hot);
}

.manifesto p {
  margin: 0;
  font-size: 4.1rem;
  line-height: 0.98;
  text-transform: uppercase;
}

.panel {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  padding: 28px;
  color: #10121f;
  background: var(--paper);
  border: 4px solid #000;
  border-radius: 8px;
  box-shadow: 10px 10px 0 #000;
}

.panel__art {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.42;
  filter: saturate(1.18) contrast(1.05);
}

.panel--dota {
  color: #f5f1ff;
  background: radial-gradient(circle at 50% 18%, #234a9b, #151427 66%, #0b1020);
}

.panel--dota::before,
.panel--deadlock::before,
.panel--factorio::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.02), rgba(0,0,0,0.34) 38%, rgba(0,0,0,0.78));
  pointer-events: none;
}

.panel--factorio::before {
  background: linear-gradient(180deg, rgba(255, 209, 102, 0.10), rgba(20, 18, 10, 0.48) 45%, rgba(18, 12, 5, 0.84));
}

.panel--dota h2,
.panel--dota p,
.panel--factorio h2,
.panel--factorio p {
  color: #fff;
  text-shadow: 3px 3px 0 #000;
}

.panel h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 14px;
  font-size: 2.15rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.panel p {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: 19px;
  font-weight: 900;
  line-height: 1.35;
}

.factory {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin-bottom: 28px;
  padding: 9px;
  background: #2f3136;
  border: 3px solid #000;
}

.factory span {
  aspect-ratio: 1;
  background:
    linear-gradient(45deg, transparent 42%, #f6c453 42% 58%, transparent 58%),
    #646b70;
  border: 2px solid #111;
  animation: belt 900ms linear infinite;
}

.panel--factorio {
  background: linear-gradient(135deg, #f8df9b, #c8e676);
}

.panel--deadlock {
  color: #f5f1ff;
  background: radial-gradient(circle at 50% 20%, #6d4aff, #20233d 58%, #10121f);
}

.panel--deadlock p,
.panel--deadlock h2 {
  color: #fff;
}

.deadlock-orbit {
  position: absolute;
  inset: 24px;
  border: 3px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  animation: spin 7s linear infinite;
}

.deadlock-orbit i {
  position: absolute;
  width: 22px;
  height: 22px;
  border: 3px solid #000;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 20px var(--gold);
}

.deadlock-orbit i:nth-child(1) { left: 50%; top: -12px; }
.deadlock-orbit i:nth-child(2) { right: 10%; bottom: 18%; background: var(--cyan); }
.deadlock-orbit i:nth-child(3) { left: 6%; bottom: 22%; background: var(--hot); }

.panel--smoke {
  display: grid;
  align-content: end;
  color: #fff;
  background: #10121f;
}

.panel--smoke::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(transparent 28%, rgba(0,0,0,0.78));
}

.panel--smoke::after {
  content: "";
  position: absolute;
  left: 24%;
  top: -20%;
  width: 120px;
  height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  filter: blur(22px);
  animation: smoke 4s ease-in-out infinite;
}

.panel--smoke img {
  position: absolute;
  inset: 0;
}

.panel--smoke h2,
.panel--smoke p {
  color: #fff;
}

.photo-chaos {
  position: relative;
  display: grid;
  grid-template-columns: 0.8fr 1.2fr 0.8fr;
  gap: 18px;
  min-height: 680px;
  padding: 48px clamp(18px, 5vw, 72px) 72px;
}

.photo-card {
  position: relative;
  margin: 0;
  height: 520px;
  overflow: hidden;
  color: #10121f;
  background: #fff;
  border: 4px solid #000;
  border-radius: 8px;
  box-shadow: 10px 10px 0 #000;
  animation: peek 5s ease-in-out infinite;
}

.photo-card figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 10px 12px;
  color: #10121f;
  background: var(--gold);
  border: 3px solid #000;
  border-radius: 6px;
  font-size: 1.2rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.pop-left {
  transform: rotate(-5deg);
  align-self: start;
}

.pop-top {
  height: 580px;
  transform: rotate(2deg);
  animation-delay: -1s;
}

.pop-right {
  transform: rotate(5deg);
  align-self: end;
  animation-delay: -2s;
}

.finale {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: 68px clamp(18px, 5vw, 72px) 96px;
  background: linear-gradient(90deg, rgba(255,46,99,0.24), rgba(124,245,118,0.18));
  border-top: 4px solid #000;
}

.finale__photo {
  position: relative;
  height: 520px;
  overflow: hidden;
  border: 4px solid #000;
  border-radius: 8px;
  box-shadow: 12px 12px 0 var(--gold);
  clip-path: polygon(0 0, 94% 4%, 100% 88%, 16% 100%, 4% 54%);
}

.finale h2 {
  margin-bottom: 18px;
  color: #fff;
  font-size: 5.3rem;
  line-height: 0.94;
  text-transform: uppercase;
  text-shadow: 6px 6px 0 #000;
}

.finale p:not(.kicker) {
  max-width: 880px;
  color: rgba(255,247,232,0.92);
  font-family: system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.35;
}
.sticker-photo {
  position: absolute;
  z-index: 6;
  display: block;
  width: 148px;
  padding: 0;
  color: #10121f;
  background: #fff;
  border: 5px solid #fff;
  border-radius: 12px;
  box-shadow: 6px 6px 0 #000, 0 0 24px rgba(255,255,255,0.38);
  cursor: crosshair;
  appearance: none;
  filter: saturate(1.22) contrast(1.08);
  animation: sticker-wiggle 4.5s ease-in-out infinite;
  transition: scale 140ms ease, filter 140ms ease;
}

.sticker-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  clip-path: polygon(7% 0, 96% 5%, 100% 86%, 84% 100%, 10% 93%, 0 15%);
}

.sticker-photo span {
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: max-content;
  max-width: 190px;
  padding: 7px 9px;
  color: #10121f;
  background: var(--gold);
  border: 3px solid #000;
  border-radius: 6px;
  box-shadow: 4px 4px 0 #000;
  font-size: 0.78rem;
  line-height: 1.02;
  text-transform: uppercase;
  transform: translateX(-50%) rotate(-3deg);
  pointer-events: none;
}

.sticker-photo:hover,
.sticker-photo:focus-visible {
  filter: saturate(1.38) contrast(1.14) brightness(1.06);
  scale: 1.07;
  outline: none;
}

.sticker-photo.is-popped {
  animation: pop-away 260ms ease forwards;
  pointer-events: none;
}

.sticker-photo--hero-corner { right: -18px; top: 44px; rotate: 11deg; }
.sticker-photo--hero-peek { left: -24px; bottom: 110px; width: 132px; rotate: -13deg; }
.sticker-photo--hero-peek img { clip-path: circle(48% at 58% 46%); }
.sticker-photo--dota-rage { right: 14px; bottom: 16px; width: 122px; rotate: 9deg; }
.sticker-photo--blueprint { left: -16px; top: 26px; width: 118px; rotate: -8deg; }
.sticker-photo--final-boss { right: -22px; top: -20px; width: 146px; rotate: 14deg; box-shadow: 7px 7px 0 var(--hot), 0 0 24px rgba(255,255,255,0.4); }

.floating {
  position: fixed;
  z-index: 8;
  padding: 9px 11px;
  color: #10121f;
  background: #fff;
  border: 3px solid #000;
  border-radius: 6px;
  box-shadow: 5px 5px 0 #000;
  font-size: 16px;
  cursor: crosshair;
  appearance: none;
  animation: drift 7s ease-in-out infinite;
  transition: scale 140ms ease, filter 140ms ease;
}

.floating:hover,
.floating:focus-visible {
  filter: brightness(1.08);
  scale: 1.08;
  outline: none;
}

.floating.is-popped {
  animation: pop-away 260ms ease forwards;
  pointer-events: none;
}

.floating--a { left: 4vw; top: 24vh; background: var(--acid); }
.floating--b { right: 5vw; top: 45vh; background: var(--cyan); animation-delay: -2s; }
.floating--c { left: 36vw; bottom: 5vh; background: var(--gold); animation-delay: -4s; }

.confetti {
  position: fixed;
  top: -20px;
  z-index: 11;
  width: 10px;
  height: 16px;
  border: 2px solid #000;
  pointer-events: none;
  animation: confetti-fall var(--fall, 3s) linear forwards;
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(2deg); }
}

@keyframes belt {
  to { background-position: 22px 0, 0 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes smoke {
  0%, 100% { transform: translate(0, 0) scale(0.9); opacity: 0.2; }
  50% { transform: translate(34px, 70px) scale(1.35); opacity: 0.5; }
}

@keyframes peek {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -18px; }
}

@keyframes sticker-wiggle {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -10px; }
}

@keyframes drift {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(16px, -22px) rotate(5deg); }
}

@keyframes pop-away {
  to {
    opacity: 0;
    scale: 2.8;
    filter: blur(6px) brightness(1.6);
  }
}

@keyframes confetti-fall {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: 0.2;
  }
}

@media (max-width: 940px) {
  h1 { font-size: 6rem; }

  .hero,
  .hero__stage,
  .meme-wall,
  .photo-chaos,
  .finale {
    overflow: hidden;
  }

  .hero,
  .finale {
    grid-template-columns: 1fr;
  }

  .hero__stage { min-height: 620px; }

  .meme-wall,
  .photo-chaos {
    grid-template-columns: 1fr;
  }

  .photo-chaos { min-height: auto; }

  .photo-card,
  .pop-top {
    height: min(560px, 88vw);
    transform: none;
  }
}

@media (max-width: 560px) {
  .hero { padding-top: 72px; }

  h1 {
    font-size: 3rem;
    overflow-wrap: normal;
    text-shadow: 4px 4px 0 #000, 7px 7px 0 var(--hot);
  }

  .hero__stage { min-height: 520px; }
  .cutout--main { left: 2%; width: 88%; }
  .cutout--sly { right: 0; width: 56%; }
  .cutout--stairs { width: 54%; }
  .stamp { font-size: 14px; }
  .manifesto p { font-size: 2.35rem; }
  .panel { min-height: 330px; padding: 22px; }
  .finale__photo { height: 440px; }
  .floating { display: none; }
  .sticker-photo { width: 108px; }
  .sticker-photo span { font-size: 0.64rem; max-width: 150px; }
  .sticker-photo--hero-corner { right: 0; top: 24px; }
  .sticker-photo--hero-peek { left: 2px; bottom: 150px; }
  .kicker { font-size: 0.92rem; }
}

/* Final layout pass: big generated art + full-size extra photos */
.meme-wall {
  grid-template-columns: repeat(3, minmax(320px, 1fr));
  align-items: stretch;
}

.panel {
  display: grid;
  grid-template-rows: minmax(320px, 1fr) auto;
  min-height: clamp(620px, 54vw, 760px);
  padding: 0;
  overflow: hidden;
  background: #10121f;
}

.panel__media {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 360px;
  place-items: center;
  background: rgba(0, 0, 0, 0.32);
}

.panel__art {
  position: static;
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
  object-position: center;
  opacity: 1;
  filter: saturate(1.14) contrast(1.04);
}

.panel__copy {
  position: relative;
  z-index: 2;
  padding: 24px;
  background: linear-gradient(180deg, rgba(10, 12, 24, 0.92), rgba(0, 0, 0, 0.96));
}

.panel--dota::before,
.panel--deadlock::before,
.panel--factorio::before {
  display: none;
}

.panel h2 {
  font-size: clamp(2.25rem, 3.2vw, 3.6rem);
}

.panel p {
  font-size: 1.08rem;
}

.deadlock-orbit {
  inset: auto 18px 18px auto;
  width: 140px;
  height: 140px;
  opacity: 0.7;
}

.extra-collage {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: 18px;
  align-items: center;
  margin-top: 14px;
}

.extra-card {
  position: relative;
  margin: 0;
  min-height: 390px;
  padding: 12px;
  color: #10121f;
  background: #fff;
  border: 4px solid #000;
  border-radius: 8px;
  box-shadow: 10px 10px 0 #000;
  animation: peek 5s ease-in-out infinite;
}

.extra-card img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(1.12) contrast(1.04);
}

.extra-card figcaption {
  margin-top: 10px;
  padding: 9px 10px;
  color: #10121f;
  background: var(--gold);
  border: 3px solid #000;
  border-radius: 6px;
  box-shadow: 4px 4px 0 #000;
  font-size: 0.94rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.extra-card--wide {
  grid-column: span 2;
  transform: rotate(-2deg);
}

.extra-card--tall {
  min-height: 500px;
  transform: rotate(2deg);
}

.extra-card--tall img {
  height: 430px;
}

.extra-card--boss {
  grid-column: span 2;
  transform: rotate(1deg);
}

.extra-card--tilt-left { transform: rotate(-4deg); }
.extra-card--tilt-right { transform: rotate(4deg); }

@media (max-width: 1100px) {
  .meme-wall {
    grid-template-columns: 1fr;
  }

  .panel {
    min-height: 680px;
  }

  .extra-collage {
    grid-template-columns: 1fr 1fr;
  }

  .extra-card,
  .extra-card--wide,
  .extra-card--boss,
  .extra-card--tall,
  .extra-card--tilt-left,
  .extra-card--tilt-right {
    grid-column: auto;
    transform: none;
  }
}

@media (max-width: 560px) {
  .panel {
    min-height: 520px;
    grid-template-rows: minmax(260px, 1fr) auto;
  }

  .panel__media,
  .panel__art {
    min-height: 260px;
  }

  .panel__copy {
    padding: 18px;
  }

  .extra-collage {
    grid-template-columns: 1fr;
  }

  .extra-card,
  .extra-card--tall {
    min-height: auto;
  }

  .extra-card img,
  .extra-card--tall img {
    height: min(440px, 86vw);
  }
}

/* Requested photo rearrangement: two by title, three aligned below memes */
.hero__headline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 18px;
  align-items: center;
}

.hero__headline h1 {
  margin-bottom: 0;
}

.hero__bonus-photos {
  display: grid;
  gap: 14px;
  align-content: center;
}

.hero-photo {
  position: relative;
  margin: 0;
  min-height: 210px;
  overflow: hidden;
  color: #10121f;
  background: #fff;
  border: 4px solid #000;
  border-radius: 8px;
  box-shadow: 8px 8px 0 #000;
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 230px;
  object-fit: contain;
  object-position: center bottom;
  filter: saturate(1.12) contrast(1.05);
}

.hero-photo figcaption {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  padding: 8px 9px;
  color: #10121f;
  background: var(--gold);
  border: 3px solid #000;
  border-radius: 6px;
  box-shadow: 4px 4px 0 #000;
  font-size: 0.82rem;
  line-height: 1.05;
  text-transform: uppercase;
}

.hero-photo--squat {
  transform: rotate(3deg);
}

.hero-photo--grin {
  transform: rotate(-4deg);
}

.extra-collage {
  display: none;
}

.photo-chaos {
  grid-template-columns: repeat(3, minmax(260px, 1fr));
  gap: 22px;
  min-height: auto;
  align-items: stretch;
}

.photo-card,
.pop-top {
  height: 540px;
  align-self: stretch;
}

.photo-card img {
  object-fit: cover;
  object-position: center;
}

.photo-chaos .photo-card:nth-child(n + 4) img {
  object-fit: contain;
  object-position: center bottom;
  background: #fff;
}

.photo-chaos .photo-card:nth-child(n + 4) {
  transform: none;
}

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

  .hero__bonus-photos {
    grid-template-columns: 1fr 1fr;
    max-width: 620px;
  }

  .photo-chaos {
    grid-template-columns: repeat(2, minmax(260px, 1fr));
  }
}

@media (max-width: 560px) {
  .hero__bonus-photos,
  .photo-chaos {
    grid-template-columns: 1fr;
  }

  .hero-photo,
  .hero-photo--squat,
  .hero-photo--grin {
    transform: none;
  }

  .hero-photo img {
    height: min(340px, 78vw);
  }

  .photo-card,
  .pop-top {
    height: min(620px, 118vw);
  }
}

/* Factorio card cleanup */
.panel h2 {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.panel--factorio h2 {
  font-size: clamp(1.85rem, 2.55vw, 2.8rem);
}

/* Keep Factorio title readable without clipping */
.panel--factorio h2 {
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

/* Move bonus photos into right hero collage without captions/white cards */
.hero__headline {
  display: block;
}

.hero__headline h1 {
  margin-bottom: 20px;
}

.hero__bonus-photos,
.hero-photo {
  display: none;
}

.cutout--extra-squat {
  right: 28%;
  top: 0;
  width: 31%;
  height: 30%;
  object-fit: cover;
  clip-path: polygon(8% 0, 100% 8%, 92% 100%, 0 88%);
  animation-delay: -0.7s;
}

.cutout--extra-grin {
  right: 24%;
  top: 31%;
  width: 29%;
  height: 30%;
  object-fit: cover;
  clip-path: polygon(0 8%, 92% 0, 100% 92%, 12% 100%);
  animation-delay: -1.9s;
}

@media (max-width: 940px) {
  .cutout--extra-squat {
    right: 10%;
    top: 0;
    width: 38%;
    height: 25%;
  }

  .cutout--extra-grin {
    right: 8%;
    top: 25%;
    width: 36%;
    height: 25%;
  }
}

@media (max-width: 560px) {
  .cutout--extra-squat,
  .cutout--extra-grin {
    display: none;
  }
}

/* Bottom extra photos: no white side padding, card follows image ratio */
.photo-chaos .photo-card:nth-child(n + 4) {
  height: auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: transparent;
}

.photo-chaos .photo-card:nth-child(n + 4) img {
  width: 100%;
  height: auto;
  max-height: 640px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border-radius: 3px 3px 0 0;
}

.photo-chaos .photo-card:nth-child(n + 4) figcaption {
  position: static;
  margin: 0;
  border-radius: 0 0 6px 6px;
  font-size: clamp(0.86rem, 1.45vw, 1.15rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .photo-chaos .photo-card:nth-child(n + 4) img {
    max-height: none;
  }
}

/* Let each lower photo card keep its own natural height */
.photo-chaos {
  align-items: start;
}

.photo-chaos .photo-card:nth-child(n + 4) {
  align-self: start;
}

.wish-button {
  min-height: 54px;
  font-family: inherit;
  font-weight: 900;
  text-transform: uppercase;
  padding: 14px 18px;
  color: #10121f;
  background: var(--acid);
  border: 3px solid #000;
  border-radius: 7px;
  box-shadow: 7px 7px 0 #000;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.wish-button:hover,
.wish-button:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: 4px 4px 0 #000;
  outline: none;
}

.generated-wish {
  position: fixed;
  z-index: 12;
  max-width: min(520px, calc(100vw - 32px));
  padding: 18px 20px;
  color: #10121f;
  background: #fff;
  border: 4px solid #000;
  border-radius: 8px;
  box-shadow: 10px 10px 0 var(--hot), 0 0 34px rgba(255,255,255,0.42);
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  line-height: 1.02;
  text-transform: uppercase;
  text-align: center;
  pointer-events: none;
  animation: wish-pop 260ms ease both;
}

.generated-wish.is-booming {
  animation: wish-boom 320ms ease forwards;
}

@keyframes wish-pop {
  from { transform: scale(0.55) rotate(-7deg); opacity: 0; }
  to { transform: scale(1) rotate(var(--wish-rotate, 2deg)); opacity: 1; }
}

@keyframes wish-boom {
  to {
    transform: scale(2.4) rotate(var(--wish-rotate, 2deg));
    opacity: 0;
    filter: blur(7px) brightness(1.6);
  }
}



.party-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

.game-button {
  min-height: 50px;
  padding: 12px 16px;
  color: #10121f;
  background: var(--cyan);
  border: 3px solid #000;
  border-radius: 7px;
  box-shadow: 7px 7px 0 #000;
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
  text-transform: uppercase;
  transition: transform 140ms ease, box-shadow 140ms ease;
}

.game-button:hover,
.game-button:focus-visible {
  transform: translate(3px, 3px);
  box-shadow: 4px 4px 0 #000;
  outline: none;
}

.game-modal[hidden] {
  display: none;
}

.game-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 54px 18px 22px;
  background: rgba(4, 5, 10, 0.64);
  backdrop-filter: blur(5px);
}

.game-dialog {
  width: min(900px, 100%);
  max-height: min(760px, calc(100svh - 76px));
  display: grid;
  grid-template-rows: auto auto minmax(320px, 1fr) auto;
  gap: 14px;
  padding: clamp(14px, 2.4vw, 24px);
  color: #fff;
  background: linear-gradient(145deg, #141827 0%, #271025 100%);
  border: 4px solid #000;
  border-radius: 8px;
  box-shadow: 14px 14px 0 #000, 0 0 48px rgba(61, 214, 255, 0.25);
}

.game-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.game-eyebrow {
  width: fit-content;
  margin: 0 0 6px;
  padding: 5px 8px;
  color: #10121f;
  background: var(--acid);
  border: 2px solid #000;
  box-shadow: 4px 4px 0 #000;
  font-size: 0.84rem;
  line-height: 1.05;
  transform: rotate(-2deg);
}

.game-header h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 4.4rem);
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 4px 4px 0 #000, 7px 7px 0 var(--hot);
}

.game-close {
  width: 48px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: #10121f;
  background: var(--gold);
  border: 3px solid #000;
  border-radius: 7px;
  box-shadow: 5px 5px 0 #000;
  cursor: pointer;
  font-size: 1.8rem;
  line-height: 1;
}

.game-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.game-stats span {
  min-height: 48px;
  display: grid;
  place-items: center;
  padding: 8px;
  color: #10121f;
  background: #fff;
  border: 3px solid #000;
  border-radius: 6px;
  box-shadow: 5px 5px 0 #000;
  font-size: clamp(0.78rem, 1.6vw, 1rem);
  line-height: 1.05;
  text-align: center;
}

.game-field {
  position: relative;
  min-height: 320px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    radial-gradient(circle at 50% 40%, rgba(124,245,118,0.2), transparent 22rem),
    #0d1220;
  background-size: 44px 44px, 44px 44px, auto, auto;
  border: 4px solid #000;
  border-radius: 8px;
  cursor: crosshair;
}

.lohk-target {
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(96px, 16vw, 148px);
  display: none;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: pointer;
  filter: drop-shadow(8px 8px 0 #000);
  transform: translate(-50%, -50%) scale(1);
  transition: transform 90ms ease;
}

.lohk-target.is-active {
  display: block;
  animation: lohk-pop 170ms ease both;
}

.lohk-target.is-hit {
  transform: translate(-50%, -50%) scale(0.78) rotate(12deg);
}

.lohk-target img {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
}

.lohk-target span {
  position: absolute;
  left: 50%;
  bottom: calc(100% - 8px);
  width: max-content;
  max-width: 190px;
  padding: 7px 9px;
  color: #10121f;
  background: var(--gold);
  border: 3px solid #000;
  border-radius: 6px;
  box-shadow: 4px 4px 0 var(--hot);
  font-size: clamp(0.72rem, 1.4vw, 1rem);
  line-height: 1;
  text-transform: uppercase;
  transform: translateX(-50%) rotate(-4deg);
  pointer-events: none;
}

.game-start {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 22px;
  color: #fff;
  background: rgba(13, 18, 32, 0.82);
  text-align: center;
}

.game-start.is-hidden {
  display: none;
}

.game-start p {
  max-width: 620px;
  margin: 0;
  font-family: system-ui, sans-serif;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 900;
  line-height: 1.25;
}

.game-start-button {
  min-height: 54px;
  padding: 13px 22px;
  color: #10121f;
  background: var(--acid);
  border: 3px solid #000;
  border-radius: 7px;
  box-shadow: 7px 7px 0 #000;
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
  text-transform: uppercase;
}

.game-result {
  min-height: 46px;
  padding: 10px 12px;
  color: #10121f;
  background: var(--paper);
  border: 3px solid #000;
  border-radius: 6px;
  box-shadow: 5px 5px 0 #000;
  font-size: clamp(0.9rem, 1.8vw, 1.2rem);
  line-height: 1.08;
  text-align: center;
  text-transform: uppercase;
}

@keyframes lohk-pop {
  from { transform: translate(-50%, -50%) scale(0.35) rotate(-16deg); opacity: 0; }
  to { transform: translate(-50%, -50%) scale(1) rotate(0); opacity: 1; }
}

@media (max-width: 720px) {
  .hero__actions {
    align-items: flex-start;
  }

  .game-stats {
    grid-template-columns: 1fr;
  }

  .game-dialog {
    grid-template-rows: auto auto minmax(300px, 1fr) auto;
  }
}

/* Final layout fixes: hero buttons, whack-a-mole game, gift envelope */
.hero__actions {
  align-items: flex-start;
}

.hero__actions > .ghost,
.hero__actions > .game-button {
  min-height: 54px;
  display: inline-grid;
  place-items: center;
}

.party-stack {
  min-width: min(330px, 100%);
}

.party-stack .boom,
.party-stack .wish-button {
  width: 100%;
}

.game-dialog {
  width: min(880px, 100%);
  max-height: calc(100svh - 72px);
  grid-template-rows: auto auto minmax(360px, 1fr) auto;
}

.game-field {
  min-height: 360px;
  cursor: grab;
}

.game-field:active {
  cursor: grabbing;
}

.whack-grid {
  position: absolute;
  inset: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.6vw, 14px);
}

.mole-hole {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: 0;
  background: radial-gradient(ellipse at 50% 86%, #05070c 0 38%, #27202b 39% 58%, #4a3542 59% 72%, transparent 73%);
  border: 3px solid #000;
  border-radius: 8px;
  box-shadow: inset 0 -10px 0 rgba(0,0,0,0.35), 5px 5px 0 #000;
  cursor: inherit;
}

.hole-dirt {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 7%;
  height: 26%;
  z-index: 3;
  border: 3px solid #000;
  border-radius: 50%;
  background: repeating-linear-gradient(135deg, #6b4335 0 9px, #3a2527 9px 18px);
  box-shadow: 0 -8px 0 rgba(0,0,0,0.28);
  pointer-events: none;
}

.mole-hole .lohk-target {
  position: absolute;
  left: 50%;
  top: auto;
  bottom: 11%;
  z-index: 2;
  width: min(74%, 128px);
  display: block;
  padding: 0;
  background: transparent;
  border: 0;
  cursor: inherit;
  opacity: 0;
  filter: drop-shadow(5px 5px 0 #000);
  transform: translate(-50%, 84%) scale(0.9);
  transition: transform 150ms ease, opacity 120ms ease;
  pointer-events: none;
}

.mole-hole.is-active .lohk-target {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.mole-hole.is-hit .lohk-target {
  transform: translate(-50%, 8%) scale(0.78) rotate(10deg);
}

.mole-hole .lohk-target img {
  width: 100%;
  height: auto;
  max-height: 92px;
  object-fit: contain;
}

.mole-hole .lohk-target span {
  left: 50%;
  top: 0;
  bottom: auto;
  max-width: 96%;
  padding: 5px 6px;
  font-size: clamp(0.55rem, 1.15vw, 0.82rem);
  line-height: 0.95;
  white-space: normal;
  transform: translate(-50%, -6%) rotate(-3deg);
}

.game-start,
.game-finish-plaque {
  z-index: 7;
}

.game-start p {
  display: none;
}

.game-finish-plaque[hidden] {
  display: none;
}

.game-finish-plaque {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 22px;
  color: #10121f;
  background: rgba(255, 247, 232, 0.9);
  text-align: center;
}

.game-finish-plaque > div {
  max-width: 620px;
  padding: 18px 20px;
  background: #fff;
  border: 4px solid #000;
  border-radius: 8px;
  box-shadow: 10px 10px 0 var(--hot);
  font-size: clamp(1.15rem, 2.8vw, 2rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.gift-section {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 20px clamp(18px, 5vw, 72px) 96px;
}

.gift-envelope {
  position: relative;
  width: min(760px, 92vw);
  height: clamp(280px, 45vw, 420px);
  perspective: 1200px;
}

.envelope-back,
.envelope-paper,
.envelope-front,
.envelope-flap,
.gift-letter,
.gift-open {
  position: absolute;
}

.envelope-back {
  inset: 22% 5% 8%;
  background: linear-gradient(135deg, #ff6b9a, #ffd166);
  border: 5px solid #000;
  border-radius: 8px;
  box-shadow: 14px 14px 0 #000;
}

.envelope-paper {
  left: 10%;
  right: 10%;
  bottom: 18%;
  height: 54%;
  background: repeating-linear-gradient(#fff 0 22px, #ffeebf 22px 25px);
  border: 4px solid #000;
  border-radius: 8px;
  transform: translateY(38%);
  transition: transform 650ms cubic-bezier(.2,.9,.2,1);
}

.gift-letter {
  left: 14%;
  right: 14%;
  bottom: 28%;
  z-index: 3;
  display: grid;
  gap: 8px;
  place-items: center;
  padding: 18px;
  color: #10121f;
  background: #fff7e8;
  border: 4px solid #000;
  border-radius: 8px;
  box-shadow: 8px 8px 0 var(--cyan);
  text-align: center;
  transform: translateY(92%);
  transition: transform 700ms cubic-bezier(.18,.92,.18,1);
}

.gift-letter p {
  margin: 0;
  font-size: clamp(1.3rem, 4vw, 3rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.gift-letter span {
  font-family: system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(0.86rem, 1.8vw, 1.08rem);
}

.envelope-front {
  inset: 38% 5% 8%;
  z-index: 4;
  background:
    linear-gradient(32deg, transparent 49%, rgba(0,0,0,0.18) 50%, transparent 51%),
    linear-gradient(-32deg, transparent 49%, rgba(0,0,0,0.18) 50%, transparent 51%),
    linear-gradient(135deg, #ff2e63, #ffd166);
  border: 5px solid #000;
  border-radius: 8px;
  box-shadow: 14px 14px 0 #000;
}

.envelope-flap {
  left: 5%;
  right: 5%;
  top: 22%;
  height: 38%;
  z-index: 5;
  background: linear-gradient(160deg, #ffd166, #ff2e63);
  border: 5px solid #000;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: 50% 0;
  transition: transform 600ms ease;
}

.gift-open {
  left: 50%;
  bottom: 28%;
  z-index: 6;
  min-height: 58px;
  padding: 14px 24px;
  color: #10121f;
  background: var(--acid);
  border: 4px solid #000;
  border-radius: 8px;
  box-shadow: 8px 8px 0 #000;
  cursor: pointer;
  font-family: inherit;
  font-weight: 900;
  text-transform: uppercase;
  transform: translateX(-50%) rotate(-2deg);
}

.gift-envelope.is-open .envelope-flap {
  transform: rotateX(178deg);
}

.gift-envelope.is-open .envelope-paper {
  transform: translateY(-26%);
}

.gift-envelope.is-open .gift-letter {
  transform: translateY(-42%);
}

.gift-envelope.is-open .gift-open {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .hero__actions {
    flex-direction: column;
  }

  .hero__actions > .ghost,
  .hero__actions > .game-button,
  .party-stack {
    width: min(330px, 100%);
  }

  .game-dialog {
    grid-template-rows: auto auto minmax(330px, 1fr) auto;
  }

  .game-field {
    min-height: 330px;
  }

  .whack-grid {
    inset: 10px;
    gap: 8px;
  }

  .mole-hole .lohk-target img {
    max-height: 70px;
  }
}

/* Keep requested hero button order stable on desktop */
.hero__actions {
  display: grid;
  grid-template-columns: max-content max-content minmax(250px, 300px);
  align-items: start;
  gap: 14px;
}

.party-stack {
  width: 100%;
  min-width: 0;
}

.party-stack .wish-button {
  font-size: 0.9rem;
  line-height: 1.05;
}

@media (max-width: 760px) {
  .hero__actions {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Keep mole head and speech text fully inside each hole */
.mole-hole.is-active .lohk-target {
  transform: translate(-50%, -4%) scale(1);
}

.mole-hole.is-hit .lohk-target {
  transform: translate(-50%, 20%) scale(0.78) rotate(10deg);
}

.mole-hole .lohk-target span {
  top: 10px;
  transform: translateX(-50%) rotate(-3deg);
}

/* Mobile finale overflow cleanup */
.finale > * {
  min-width: 0;
}

.finale__photo {
  width: 100%;
  max-width: 420px;
}

@media (max-width: 940px) {
  .finale {
    justify-items: stretch;
  }

  .finale__photo {
    max-width: min(420px, calc(100vw - 40px));
  }

  .finale h2 {
    font-size: clamp(2.35rem, 12vw, 4.2rem);
    overflow-wrap: anywhere;
  }

  .finale p:not(.kicker) {
    font-size: 1.12rem;
  }
}

/* Requested final hero button order */
.hero__actions {
  display: grid;
  grid-template-columns: max-content max-content max-content;
  align-items: start;
  gap: 14px;
}

.hero__actions > .boom,
.hero__actions > .wish-button,
.hero__actions > .ghost,
.hero__actions > .game-button {
  min-height: 54px;
  width: auto;
  display: inline-grid;
  place-items: center;
  white-space: nowrap;
}

.hero__actions > .game-button {
  grid-column: 1 / -1;
  justify-self: start;
}

.hero__actions > .wish-button {
  font-size: 0.9rem;
  line-height: 1.05;
}

@media (max-width: 860px) {
  .hero__actions {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero__actions > .game-button {
    grid-column: auto;
  }

  .hero__actions > .boom,
  .hero__actions > .wish-button,
  .hero__actions > .ghost,
  .hero__actions > .game-button {
    width: min(360px, 100%);
    white-space: normal;
  }
}

/* Whack-a-mole: keep the face above the hole lip instead of half-covered */
.mole-hole {
  overflow: hidden;
}

.hole-dirt {
  z-index: 2;
  bottom: 2%;
  height: 18%;
}

.mole-hole .lohk-target {
  z-index: 4;
  bottom: 5%;
  width: min(70%, 118px);
  transform: translate(-50%, 102%) scale(0.9);
}

.mole-hole.is-active .lohk-target {
  transform: translate(-50%, -4%) scale(1);
}

.mole-hole.is-hit .lohk-target {
  transform: translate(-50%, 4%) scale(0.8) rotate(10deg);
}

.mole-hole .lohk-target img {
  max-height: 86px;
}

.mole-hole .lohk-target span {
  top: 2px;
  max-width: 92%;
  padding: 4px 5px;
  font-size: clamp(0.5rem, 1vw, 0.74rem);
}

/* Rebuilt envelope: closed is clean, open pulls the whole note out */
.gift-section {
  padding-top: 56px;
  overflow: hidden;
}

.gift-envelope {
  width: min(760px, 92vw);
  height: clamp(360px, 52vw, 500px);
  overflow: visible;
}

.envelope-back {
  inset: 38% 5% 5%;
  z-index: 1;
  border-radius: 10px;
}

.envelope-paper {
  display: none;
}

.gift-letter {
  left: 13%;
  right: 13%;
  bottom: 12%;
  min-height: 42%;
  z-index: 2;
  transform: translateY(46%);
  opacity: 0;
  transition: transform 700ms cubic-bezier(.18,.92,.18,1), opacity 260ms ease;
}

.envelope-front {
  inset: 42% 5% 5%;
  z-index: 5;
  border-radius: 10px;
  background:
    linear-gradient(32deg, transparent 49%, rgba(0,0,0,0.18) 50%, transparent 51%),
    linear-gradient(-32deg, transparent 49%, rgba(0,0,0,0.18) 50%, transparent 51%),
    linear-gradient(135deg, #ff2e63 0%, #ff6b6b 52%, #ffd166 100%);
}

.envelope-flap {
  left: 5%;
  right: 5%;
  top: 26%;
  height: 35%;
  z-index: 6;
  border-radius: 10px 10px 0 0;
  transform-origin: 50% 0;
}

.gift-open {
  bottom: 20%;
  z-index: 8;
}

.gift-envelope.is-open .envelope-flap {
  transform: rotateX(178deg);
  z-index: 3;
}

.gift-envelope.is-open .gift-letter {
  z-index: 7;
  opacity: 1;
  transform: translateY(-72%);
}

.gift-envelope.is-open .gift-open {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 720px) {
  .gift-section {
    padding-top: 42px;
  }

  .gift-envelope {
    height: 390px;
  }

  .gift-letter {
    left: 9%;
    right: 9%;
  }

  .gift-envelope.is-open .gift-letter {
    transform: translateY(-66%);
  }
}

/* Pull the gift note fully out of the envelope when opened */
.gift-envelope.is-open .gift-letter {
  transform: translateY(-118%);
}

@media (max-width: 720px) {
  .gift-envelope.is-open .gift-letter {
    transform: translateY(-104%);
  }
}

/* Fix envelope flap: attach it to the same top edge as the envelope body */
.gift-envelope {
  --env-left: 5%;
  --env-top: 38%;
  --env-bottom: 5%;
}

.envelope-back {
  inset: var(--env-top) var(--env-left) var(--env-bottom);
}

.envelope-front {
  inset: var(--env-top) var(--env-left) var(--env-bottom);
}

.envelope-flap {
  left: var(--env-left);
  right: var(--env-left);
  top: var(--env-top);
  height: 31%;
  border-bottom: 0;
  border-radius: 10px 10px 0 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.gift-open {
  bottom: 24%;
}

.gift-envelope.is-open .envelope-flap {
  transform: rotateX(172deg);
}

/* Faster dynamic whack game: label above face, good/bad face variants */
.mole-hole .lohk-target {
  bottom: -2%;
  width: min(68%, 112px);
  transition: transform 105ms ease, opacity 90ms ease;
}

.mole-hole.is-active .lohk-target {
  transform: translate(-50%, -4%) scale(1);
}

.mole-hole.is-hit .lohk-target {
  transform: translate(-50%, 4%) scale(0.76) rotate(10deg);
}

.mole-hole .lohk-target img {
  max-height: 58px;
  margin-top: 30px;
}

.mole-hole .lohk-target span {
  top: 0;
  bottom: auto;
  z-index: 5;
  max-width: 112%;
  padding: 4px 7px;
  color: #10121f;
  background: var(--gold);
  border: 3px solid #000;
  box-shadow: 4px 4px 0 var(--hot);
  font-size: clamp(0.52rem, 0.95vw, 0.72rem);
  line-height: 0.92;
  transform: translateX(-50%) rotate(-3deg);
}

.mole-hole.is-birthday .lohk-target span {
  background: var(--acid);
  box-shadow: 4px 4px 0 var(--cyan);
}

.mole-hole.is-birthday .lohk-target img {
  filter: drop-shadow(0 0 10px rgba(124, 245, 118, 0.55));
}

.mole-hole.is-loh .lohk-target img {
  filter: drop-shadow(0 0 8px rgba(255, 46, 99, 0.4));
}

@media (max-width: 720px) {
  .mole-hole .lohk-target img {
    max-height: 48px;
    margin-top: 28px;
  }

  .mole-hole .lohk-target span {
    font-size: 0.5rem;
    padding: 3px 5px;
  }
}
/* Final interactive easter eggs and whack-game polish */
:root {
  --hammer-cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 24 24' fill='none' stroke='%23ffd166' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 12-8.5 8.5a2.12 2.12 0 0 1-3-3L12 9'/%3E%3Cpath d='M17.64 15 22 10.64'/%3E%3Cpath d='m20.91 11.7-6.6-6.61 1.78-1.78a2.12 2.12 0 0 1 3 0l3.52 3.52a2.12 2.12 0 0 1 0 3z'/%3E%3Cpath d='m14.31 5.09-2.12 2.12'/%3E%3C/svg%3E") 6 26, pointer;
}

.mom-psych-link {
  appearance: none;
  border: 0;
  padding: 0 2px;
  color: #3dd6ff;
  background: transparent;
  font: inherit;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
  text-shadow: 0 0 12px rgba(61, 214, 255, 0.9);
}

.hero__stage .cutout[data-caption] { cursor: pointer; }
.hero__stage .cutout[data-caption]:focus-visible,
.panel__art[data-lightbox]:focus-visible,
.finale-toast-trigger:focus-visible,
.mom-psych-link:focus-visible {
  outline: 4px solid var(--cyan);
  outline-offset: 5px;
}

.hero-cutout-caption {
  position: absolute;
  left: 62%;
  top: -0.72em;
  z-index: 8;
  min-width: max-content;
  max-width: min(220px, 70vw);
  padding: 7px 10px;
  color: #10121f;
  background: var(--acid);
  border: 3px solid #000;
  border-radius: 8px;
  box-shadow: 5px 5px 0 #000;
  font-family: inherit;
  font-size: clamp(0.75rem, 1.4vw, 1rem);
  line-height: 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px) rotate(-3deg) scale(0.94);
  transition: opacity 130ms ease, transform 130ms ease;
  white-space: normal;
}
.hero-cutout-caption.is-visible { opacity: 1; transform: translateY(0) rotate(-3deg) scale(1); }
.panel__art[data-lightbox] { cursor: zoom-in; }
.psych-popup[hidden], .meme-lightbox[hidden] { display: none; }

.psych-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 70;
  width: min(560px, 88vw);
  border: 5px solid #000;
  border-radius: 10px;
  background: #fff;
  box-shadow: 14px 14px 0 var(--hot), 0 0 0 999vmax rgba(9, 10, 18, 0.35);
  transform: translate(-50%, -50%) rotate(-2deg);
  animation: psych-pop 2s ease both;
  pointer-events: none;
}
.psych-popup img { display: block; width: 100%; height: auto; border-radius: 4px; }
@keyframes psych-pop {
  0% { opacity: 0; transform: translate(-50%, -45%) rotate(4deg) scale(0.75); }
  12%, 84% { opacity: 1; transform: translate(-50%, -50%) rotate(-2deg) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -54%) rotate(2deg) scale(0.88); }
}

.meme-lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 46px);
  background: rgba(6, 8, 16, 0.92);
  backdrop-filter: blur(7px);
}
.meme-lightbox__img {
  display: block;
  max-width: min(1180px, 94vw);
  max-height: 88vh;
  object-fit: contain;
  border: 5px solid #000;
  border-radius: 10px;
  box-shadow: 14px 14px 0 var(--hot), 0 0 34px rgba(61, 214, 255, 0.35);
  background: #05070c;
}
.meme-lightbox__close {
  position: fixed;
  right: clamp(14px, 3vw, 34px);
  top: clamp(14px, 3vw, 28px);
  width: 52px;
  height: 52px;
  color: #10121f;
  background: var(--gold);
  border: 4px solid #000;
  border-radius: 50%;
  box-shadow: 6px 6px 0 #000;
  font-size: 2rem;
  font-weight: 900;
  cursor: pointer;
}

.finale-toast-trigger {
  display: inline-block;
  cursor: pointer;
  border: 0;
  font: inherit;
  text-align: left;
}
.finale-toast-trigger:hover { transform: rotate(-2deg) translateY(-2px); }
.beer-burst {
  position: fixed;
  z-index: 95;
  left: 0;
  top: 0;
  pointer-events: none;
  font-size: clamp(1.6rem, 3vw, 3.1rem);
  filter: drop-shadow(4px 4px 0 #000);
  animation: beer-fly var(--beer-life, 1000ms) cubic-bezier(.12,.75,.25,1) forwards;
}
@keyframes beer-fly {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.55) rotate(0deg); }
  12% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--beer-x)), calc(-50% + var(--beer-y))) scale(1.15) rotate(var(--beer-rot)); }
}
.game-field, .mole-hole { cursor: var(--hammer-cursor); }
.mole-hole.is-active.is-birthday .lohk-target span::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 50%;
  width: 16px;
  height: 16px;
  border: 3px solid #000;
  border-radius: 50%;
  background: #1ee55a;
  box-shadow: 2px 2px 0 #000;
  transform: translateY(-50%);
}
@media (max-width: 720px) {
  .hero-cutout-caption { left: 6%; top: 100%; max-width: 210px; }
  .meme-lightbox__close { width: 46px; height: 46px; }
}
/* Second wave easter eggs: Matrix/code/console backgrounds, vibe physics, MVP spam */
.bg-mode-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 280ms ease, filter 280ms ease;
  filter: blur(0.8px) brightness(0.62);
  overflow: hidden;
  background: transparent;
}
body.bg-matrix .bg-mode-layer,
body.bg-code .bg-mode-layer,
body.bg-console .bg-mode-layer {
  opacity: 0.72;
}
body.bg-matrix .bg-mode-layer { background: #020704; }
body.bg-code .bg-mode-layer {
  background:
    linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.74)),
    repeating-linear-gradient(0deg, rgba(124,245,118,0.05) 0 2px, transparent 2px 28px),
    #061014;
}
body.bg-console .bg-mode-layer {
  background:
    linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.78)),
    #030609;
}
.bg-mode-layer canvas {
  width: 100%;
  height: 100%;
  display: block;
}
.bg-code-lines,
.bg-console-lines {
  position: absolute;
  inset: 7vh 7vw;
  color: rgba(124, 245, 118, 0.82);
  font-family: Consolas, "Courier New", monospace;
  font-size: clamp(0.76rem, 1.55vw, 1.35rem);
  line-height: 1.5;
  white-space: pre-wrap;
  text-shadow: 0 0 12px rgba(124, 245, 118, 0.55);
}
.bg-console-lines {
  color: rgba(61, 214, 255, 0.86);
  text-shadow: 0 0 12px rgba(61, 214, 255, 0.5);
}
.bg-mode-trigger,
.name-digit,
.mvp-medal,
.powered-vibe {
  appearance: none;
}
.bg-mode-trigger {
  cursor: pointer;
  border: 3px solid #000;
  font: inherit;
}
.name-tip { cursor: help; }
.hero-name-word { display: inline-block; white-space: nowrap; }
.name-digit {
  display: inline;
  margin: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  font: inherit;
  line-height: inherit;
  text-shadow: inherit;
  cursor: pointer;
}
.name-digit:hover { color: var(--acid); }
.name-letter-l.is-swapped { color: var(--cyan); }
.name-question { color: var(--gold); }
.mvp-medal {
  display: inline-block;
  margin: 0 0.12em;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-0.03em);
}
.mvp-medal:hover { filter: drop-shadow(0 0 10px var(--gold)); transform: translateY(-0.08em) rotate(-8deg); }
.mvp-fly {
  position: fixed;
  z-index: 96;
  left: 0;
  top: 0;
  pointer-events: none;
  color: var(--mvp-color, var(--gold));
  font-family: "Arial Black", Impact, system-ui, sans-serif;
  font-size: var(--mvp-size, 42px);
  text-transform: uppercase;
  text-shadow: 4px 4px 0 #000, 0 0 18px currentColor;
  animation: mvp-chaos 5s cubic-bezier(.12,.84,.26,1) forwards;
}
@keyframes mvp-chaos {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.35) rotate(var(--mvp-rot)); }
  8%, 84% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--mvp-x)), calc(-50% + var(--mvp-y))) scale(1.1) rotate(calc(var(--mvp-rot) + 180deg)); }
}
.powered-vibe {
  position: fixed;
  right: 10px;
  bottom: 8px;
  z-index: 120;
  padding: 4px 7px;
  color: rgba(255, 247, 232, 0.58);
  background: rgba(0, 0, 0, 0.16);
  border: 2px solid rgba(255, 247, 232, 0.2);
  border-radius: 6px;
  font-family: system-ui, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  cursor: pointer;
}
.powered-vibe:hover { color: var(--acid); border-color: var(--acid); }
body.is-site-falling main,
body.is-site-falling .ticker,
body.is-site-falling .floating,
body.is-site-falling .noise {
  animation: site-fall 1150ms cubic-bezier(.18,.76,.34,1) forwards;
  transform-origin: 50% 100%;
}
body.is-site-falling .floating--a { animation-delay: 80ms; }
body.is-site-falling .floating--b { animation-delay: 150ms; }
body.is-site-falling .floating--c { animation-delay: 40ms; }
body.is-site-falling.is-site-restoring main,
body.is-site-falling.is-site-restoring .ticker,
body.is-site-falling.is-site-restoring .floating,
body.is-site-falling.is-site-restoring .noise {
  animation: site-rise 780ms cubic-bezier(.18,.82,.2,1) forwards;
}
@keyframes site-fall {
  0% { transform: translateY(0) rotate(0deg); }
  36% { transform: translateY(22vh) rotate(2deg); }
  68% { transform: translateY(88vh) rotate(-5deg); }
  100% { transform: translateY(118vh) rotate(7deg); }
}
@keyframes site-rise {
  0% { transform: translateY(118vh) rotate(7deg); }
  70% { transform: translateY(-2vh) rotate(-1deg); }
  100% { transform: translateY(0) rotate(0deg); }
}
@media (max-width: 720px) {
  .bg-code-lines,
  .bg-console-lines { inset: 8vh 5vw; font-size: 0.72rem; }
  .powered-vibe { font-size: 10px; }
}
/* Final fixes: bottom vibe credit, separate physics pieces, money burst */
.hero-cutout-caption {
  left: calc(100% + 12px);
  top: 0.1em;
  max-width: min(230px, 48vw);
  transform: translateY(0) rotate(-3deg) scale(0.94);
}
.hero-cutout-caption.is-visible {
  transform: translateY(0) rotate(-3deg) scale(1);
}
.mole-hole.is-active.is-birthday .lohk-target span::after {
  display: none;
}
.money-trigger {
  appearance: none;
  display: inline;
  margin: 0;
  padding: 0 0.08em;
  border: 0;
  color: #27ff8a;
  background: transparent;
  font: inherit;
  line-height: inherit;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.08em;
  cursor: pointer;
  text-shadow: 0 0 13px rgba(39, 255, 138, 0.72);
}
.money-trigger:hover {
  color: var(--gold);
}
.powered-vibe {
  position: relative;
  right: auto;
  bottom: auto;
  z-index: 6;
  display: block;
  width: fit-content;
  margin: 26px 12px 12px auto;
}
body.is-site-falling main,
body.is-site-falling .ticker,
body.is-site-falling .floating,
body.is-site-falling .noise,
body.is-site-falling.is-site-restoring main,
body.is-site-falling.is-site-restoring .ticker,
body.is-site-falling.is-site-restoring .floating,
body.is-site-falling.is-site-restoring .noise {
  animation: none;
  transform: none;
}
.vibe-fall-piece {
  will-change: transform, opacity;
  transform-origin: var(--fall-origin, 50% 50%);
}
body.is-site-falling .vibe-fall-piece {
  animation: vibe-piece-fall 1350ms cubic-bezier(.16,.72,.2,1) forwards;
  animation-delay: var(--fall-delay, 0ms);
}
body.is-site-restoring .vibe-fall-piece {
  animation: vibe-piece-rise 820ms cubic-bezier(.18,.82,.2,1) forwards;
}
@keyframes vibe-piece-fall {
  0% { transform: translate(0, 0) rotate(0deg); }
  42% { transform: translate(calc(var(--fall-x) * 0.25), 28vh) rotate(calc(var(--fall-rot) * 0.25)); }
  72% { transform: translate(calc(var(--fall-x) * 0.75), 86vh) rotate(calc(var(--fall-rot) * 0.75)); }
  100% { transform: translate(var(--fall-x), var(--fall-y)) rotate(var(--fall-rot)); }
}
@keyframes vibe-piece-rise {
  0% { transform: translate(var(--fall-x), var(--fall-y)) rotate(var(--fall-rot)); }
  72% { transform: translate(calc(var(--fall-x) * -0.03), -2vh) rotate(-2deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}
.money-burst {
  position: fixed;
  z-index: 97;
  left: 0;
  top: 0;
  pointer-events: none;
  font-size: clamp(1.4rem, 2.8vw, 3rem);
  filter: drop-shadow(4px 4px 0 #000);
  animation: money-fly var(--money-life, 1050ms) cubic-bezier(.12,.78,.24,1) forwards;
}
@keyframes money-fly {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.4) rotate(0deg); }
  10%, 82% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--money-x)), calc(-50% + var(--money-y))) scale(1.2) rotate(var(--money-rot)); }
}
@media (max-width: 720px) {
  .hero-cutout-caption {
    left: 0;
    top: 100%;
    max-width: 210px;
  }
}
/* Toast and game-found easter eggs */
.soft-word {
  appearance: none;
  display: inline;
  margin: 0;
  padding: 0 0.06em;
  border: 0;
  border-radius: 0.18em;
  color: inherit;
  background: rgba(255, 247, 232, 0.08);
  font: inherit;
  line-height: inherit;
  text-transform: inherit;
  text-shadow: inherit;
  cursor: pointer;
  box-shadow: inset 0 -0.12em 0 rgba(255, 209, 102, 0.22);
}

.soft-word:hover,
.soft-word:focus-visible {
  background: rgba(255, 247, 232, 0.14);
  outline: 2px solid rgba(255, 209, 102, 0.36);
  outline-offset: 2px;
}

.finale .money-trigger.soft-word,
.finale .ai-trigger,
.panel .match-trigger {
  color: rgba(255, 247, 232, 0.98);
  box-shadow: inset 0 -0.12em 0 rgba(255, 209, 102, 0.26);
}

.panel .match-trigger[data-game="deadlock"] {
  box-shadow: inset 0 -0.12em 0 rgba(61, 214, 255, 0.24);
}

.finale__photo {
  cursor: pointer;
  transform-origin: 50% 50%;
}

.finale__photo.is-toast-spin {
  animation: toast-photo-spinner 2s cubic-bezier(.14,.8,.2,1) both;
  z-index: 8;
}

@keyframes toast-photo-spinner {
  0% { transform: rotate(0deg) scale(1); filter: saturate(1); }
  24% { transform: rotate(280deg) scale(1.2); filter: saturate(1.35) contrast(1.08); }
  54% { transform: rotate(780deg) scale(0.72); filter: saturate(1.5) hue-rotate(18deg); }
  78% { transform: rotate(1080deg) scale(1.16); filter: saturate(1.25); }
  100% { transform: rotate(1080deg) scale(1); filter: saturate(1); }
}

.ai-doom-comment {
  position: fixed;
  z-index: 80;
  left: var(--ai-x, 50vw);
  top: var(--ai-y, 50vh);
  max-width: 260px;
  padding: 8px 11px;
  color: #10121f;
  background: #fff7e8;
  border: 3px solid #000;
  border-radius: 6px;
  box-shadow: 5px 5px 0 #000;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(0.82rem, 1.4vw, 1.18rem);
  letter-spacing: 0;
  text-transform: uppercase;
  pointer-events: none;
  transform: translate(-50%, -50%) rotate(var(--ai-rot, 0deg)) scale(0.72);
  animation: ai-doom-pop 2.35s cubic-bezier(.12,.86,.22,1) forwards;
}

@keyframes ai-doom-pop {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(var(--ai-rot)) scale(0.35); }
  12%, 70% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--ai-dx)), calc(-50% + var(--ai-dy))) rotate(calc(var(--ai-rot) + 18deg)) scale(1.05); }
}

body.bg-faces .bg-mode-layer {
  opacity: 0.48;
  filter: blur(0.3px) brightness(0.54) saturate(1.18);
  background: radial-gradient(circle at 50% 35%, rgba(255, 209, 102, 0.16), rgba(0, 0, 0, 0.78) 68%), #090a12;
}

.bg-face-tile {
  position: absolute;
  width: var(--face-size, 150px);
  opacity: var(--face-opacity, 0.72);
  filter: drop-shadow(8px 10px 0 rgba(0,0,0,0.55)) saturate(1.16) contrast(1.05);
  transform: translate(-50%, -50%) rotate(var(--face-rot, 0deg));
  animation: face-bg-drift var(--face-speed, 9s) ease-in-out infinite alternate;
}

@keyframes face-bg-drift {
  from { translate: 0 0; }
  to { translate: var(--face-dx, 12px) var(--face-dy, -16px); }
}

.match-popup[hidden] { display: none; }
.match-popup {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(3px);
}

.match-card {
  width: min(520px, calc(100vw - 32px));
  min-height: 300px;
  padding: 34px 34px 30px;
  color: #f7ead7;
  background: linear-gradient(180deg, rgba(26, 31, 42, 0.98), rgba(9, 12, 18, 0.98));
  border: 3px solid rgba(255, 209, 102, 0.7);
  box-shadow: 0 0 0 4px rgba(0,0,0,0.8), 0 24px 80px rgba(0,0,0,0.72), inset 0 0 60px rgba(255, 209, 102, 0.08);
  text-align: center;
  text-transform: uppercase;
  animation: match-card-pop 280ms cubic-bezier(.14,.8,.2,1) both;
}

.match-popup.is-deadlock .match-card {
  border-color: rgba(61, 214, 255, 0.72);
  background: linear-gradient(180deg, rgba(31, 33, 45, 0.98), rgba(10, 15, 23, 0.98));
  box-shadow: 0 0 0 4px rgba(0,0,0,0.8), 0 24px 80px rgba(0,0,0,0.72), inset 0 0 70px rgba(61, 214, 255, 0.1);
}

.match-card__eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 209, 102, 0.92);
  font-size: 1.05rem;
  letter-spacing: 0.08em;
}

.match-popup.is-deadlock .match-card__eyebrow { color: rgba(61, 214, 255, 0.95); }

.match-card h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(2.8rem, 10vw, 5.5rem);
  line-height: 0.9;
  text-shadow: 5px 5px 0 #000;
}

.match-card p:not(.match-card__eyebrow) {
  margin: 0 auto 18px;
  max-width: 360px;
  color: rgba(255, 247, 232, 0.86);
  font-family: system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 900;
}

.match-card__timer {
  display: inline-grid;
  place-items: center;
  width: 86px;
  height: 86px;
  margin: 8px auto 20px;
  color: #10121f;
  background: #ffd166;
  border: 4px solid #000;
  border-radius: 999px;
  box-shadow: 6px 6px 0 #000;
  font-size: 1.3rem;
  font-weight: 1000;
}

.match-popup.is-deadlock .match-card__timer { background: #3dd6ff; }

.match-accept {
  display: block;
  width: min(310px, 100%);
  margin: 0 auto;
  padding: 14px 20px;
  color: #10121f;
  background: #7cf576;
  border: 4px solid #000;
  border-radius: 6px;
  box-shadow: 7px 7px 0 #000;
  font: inherit;
  font-size: 1.12rem;
  text-transform: uppercase;
  cursor: pointer;
}

.match-accept:hover { transform: translateY(-2px); }

@keyframes match-card-pop {
  from { opacity: 0; transform: translateY(28px) scale(0.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 620px) {
  .match-card { padding: 26px 18px 24px; }
  .ai-doom-comment { max-width: 210px; }
}

/* Softer inline highlights inside giant finale text */
.finale h2 .soft-word {
  color: rgba(255, 247, 232, 0.96);
  background: rgba(255, 247, 232, 0.035);
  box-shadow: inset 0 -0.045em 0 rgba(255, 209, 102, 0.14);
}

.finale p .soft-word {
  color: rgba(255, 247, 232, 0.96);
  background: rgba(255, 247, 232, 0.055);
  box-shadow: inset 0 -0.08em 0 rgba(61, 214, 255, 0.16);
}

.finale h2 .money-trigger.soft-word {
  color: rgba(255, 247, 232, 0.96);
  background: rgba(255, 247, 232, 0.035);
  box-shadow: inset 0 -0.035em 0 rgba(255, 209, 102, 0.12);
}

#fireworks { display: block; width: 100vw; height: 100vh; }

/* Hero actions: game button replaces the removed memes link */
.hero__actions > .game-button {
  grid-column: auto;
  justify-self: auto;
}

/* DOTA-style celebration ready popup */
.match-popup {
  background:
    radial-gradient(circle at 12% 18%, rgba(95, 207, 144, 0.16), transparent 22%),
    radial-gradient(circle at 88% 22%, rgba(95, 207, 144, 0.12), transparent 24%),
    rgba(0, 9, 7, 0.72);
  backdrop-filter: blur(2px) brightness(0.72);
}

.match-popup::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle, rgba(164, 255, 202, 0.42) 0 1px, transparent 1.8px),
    linear-gradient(120deg, transparent 0 44%, rgba(255,255,255,0.04) 45% 46%, transparent 47% 100%);
  background-size: 74px 74px, 180px 180px;
  opacity: 0.28;
  pointer-events: none;
}

.match-card {
  position: relative;
  width: min(620px, calc(100vw - 32px));
  min-height: 198px;
  padding: 18px 34px 22px;
  color: #e9eee9;
  background:
    linear-gradient(180deg, rgba(18, 22, 23, 0.97), rgba(24, 27, 29, 0.95)),
    linear-gradient(110deg, rgba(255,255,255,0.05), transparent 44%, rgba(83, 178, 126, 0.08));
  border: 1px solid rgba(88, 213, 139, 0.7);
  border-radius: 0;
  box-shadow:
    0 0 0 1px rgba(28, 89, 54, 0.75),
    0 0 20px rgba(79, 224, 133, 0.38),
    0 20px 70px rgba(0, 0, 0, 0.78),
    inset 0 0 32px rgba(71, 146, 100, 0.14);
  overflow: hidden;
}

.match-card::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 72px;
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
}

.match-card__eyebrow {
  margin: 0 0 5px;
  color: rgba(205, 213, 208, 0.62);
  font-family: Arial, system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-shadow: none;
}

.match-card h2 {
  margin: 0 0 28px;
  color: #f7f7f4;
  font-family: Arial, system-ui, sans-serif;
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 1000;
  letter-spacing: 0.12em;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.14);
}

.match-accept {
  width: min(242px, 78%);
  min-height: 50px;
  margin: 0 auto;
  padding: 11px 22px;
  color: #f2fff7;
  background:
    linear-gradient(180deg, rgba(86, 151, 120, 0.82), rgba(36, 86, 65, 0.92)),
    radial-gradient(circle at 50% 0, rgba(184,255,218,0.34), transparent 60%);
  border: 1px solid rgba(78, 185, 125, 0.56);
  border-radius: 0;
  box-shadow: inset 0 0 22px rgba(113, 235, 165, 0.14), 0 0 14px rgba(43, 151, 92, 0.28);
  font-family: Arial, system-ui, sans-serif;
  font-size: 1.45rem;
  font-weight: 1000;
  letter-spacing: 0.12em;
}

.match-cancel {
  position: absolute;
  right: 16px;
  bottom: 15px;
  margin: 0;
  padding: 0;
  color: rgba(222, 229, 224, 0.58);
  background: transparent;
  border: 0;
  font-family: Arial, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.match-cancel:hover { color: rgba(255, 255, 255, 0.9); }

.match-accept:hover {
  transform: none;
  filter: brightness(1.14);
}

.music-toggle {
  position: fixed;
  left: 12px;
  top: 48px;
  z-index: 20;
  min-height: 40px;
  padding: 8px 12px;
  color: #10121f;
  background: rgba(124, 245, 118, 0.92);
  border: 3px solid #000;
  border-radius: 6px;
  box-shadow: 5px 5px 0 #000;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
}

.music-toggle:hover,
.music-toggle:focus-visible {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.music-toggle.is-playing {
  background: rgba(255, 209, 102, 0.94);
}

@media (max-width: 640px) {
  .music-toggle {
    top: 44px;
    left: 8px;
    min-height: 36px;
    padding: 7px 10px;
    font-size: 0.78rem;
  }
}

/* Photo sound easter eggs */
.wide-photo-card,
.jojo-photo-card {
  cursor: pointer;
  transform-origin: 50% 50%;
}

.wide-photo-card.is-wide {
  z-index: 35;
  transform: rotate(0deg) scaleX(2.85) scaleY(0.98);
  box-shadow: 0 0 0 5px #000, 0 0 46px rgba(255, 209, 102, 0.72), 14px 14px 0 #000;
  transition: transform 320ms cubic-bezier(.14,.8,.2,1), box-shadow 320ms ease;
}

.wide-photo-card.is-wide img {
  object-fit: fill;
}

.jojo-photo-card.is-jojo-hit {
  z-index: 34;
  animation: jojo-photo-hit 900ms cubic-bezier(.14,.8,.2,1) both;
}

@keyframes jojo-photo-hit {
  0% { transform: rotate(2deg) scale(1); filter: saturate(1); }
  35% { transform: rotate(-2deg) scale(1.08); filter: saturate(1.35) contrast(1.08); box-shadow: 0 0 0 5px #000, 0 0 38px rgba(109, 74, 255, 0.72), 10px 10px 0 #000; }
  100% { transform: rotate(2deg) scale(1); filter: saturate(1); }
}

@media (max-width: 760px) {
  .wide-photo-card.is-wide {
    transform: rotate(0deg) scaleX(1.55) scaleY(0.98);
  }
}

/* Stronger, full-track toast spin and reliable wide photo mode */
.finale__photo.is-toast-spin {
  animation: toast-photo-spinner 7.76s cubic-bezier(.18,.7,.22,1) both;
}

@keyframes toast-photo-spinner {
  0% { transform: rotate(0deg) scale(1); filter: saturate(1); }
  12% { transform: rotate(540deg) scale(1.24); filter: saturate(1.35) contrast(1.08); }
  34% { transform: rotate(1620deg) scale(0.72); filter: saturate(1.55) hue-rotate(24deg); }
  58% { transform: rotate(2880deg) scale(1.22); filter: saturate(1.35); }
  82% { transform: rotate(3960deg) scale(0.88); filter: saturate(1.48) contrast(1.12); }
  100% { transform: rotate(4320deg) scale(1); filter: saturate(1); }
}

.wide-photo-card.is-wide {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 120;
  width: min(96vw, 1180px);
  height: min(82vh, 620px);
  transform: translate(-50%, -50%) rotate(0deg);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #05070c;
  box-shadow: 0 0 0 6px #000, 0 0 68px rgba(255, 209, 102, 0.86), 16px 16px 0 #000;
  transition: transform 320ms cubic-bezier(.14,.8,.2,1), box-shadow 320ms ease;
}

.wide-photo-card.is-wide img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: fill;
}

.wide-photo-card.is-wide figcaption {
  position: static;
  margin: 0;
}

@media (max-width: 760px) {
  .wide-photo-card.is-wide {
    width: min(96vw, 720px);
    height: min(74vh, 520px);
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

/* Wide photo uses overlay so it cannot escape the viewport */
.wide-photo-overlay {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: min(98vw, 1380px);
  height: min(76vh, 620px);
  margin: auto;
  color: #10121f;
  background: #05070c;
  border: 6px solid #000;
  border-radius: 8px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.45), 0 0 72px rgba(255, 209, 102, 0.88), 18px 18px 0 #000;
  opacity: 0;
  transform: scaleX(0.24) scaleY(0.94);
  transform-origin: 50% 50%;
  transition: opacity 220ms ease, transform 320ms cubic-bezier(.14,.8,.2,1);
  pointer-events: none;
}

.wide-photo-overlay.is-visible {
  opacity: 1;
  transform: scaleX(1) scaleY(1);
}

.wide-photo-overlay img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: fill;
}

.wide-photo-overlay div {
  padding: 12px 16px;
  color: #10121f;
  background: var(--gold);
  border-top: 4px solid #000;
  font-size: clamp(1.1rem, 2.2vw, 2rem);
  line-height: 1.05;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .wide-photo-overlay {
    width: min(96vw, 720px);
    height: min(74vh, 520px);
  }
}
