/* ========== RESET / BASE ========== */
*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  max-width: 100%;
  overflow-x: hidden;            /* никакого горизонтального скролла */
  overscroll-behavior-x: none;   /* без «резинки» влево-вправо */
  touch-action: pan-y;           /* только вертикальный свайп, без пинч-зума и горизонт. свайпа */
}
body {
  font-family: 'Manrope', system-ui, -apple-system, sans-serif;
  background: #FFFBF2;
  color: #1A1A1A;
  font-size: 17px;
  line-height: 1.55;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }

/* ========== PRELOADER / INTRO ========== */
.preloader {
  position: fixed; inset: 0; z-index: 2000;
  background: #FFFBF2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; text-align: center; padding: 24px;
  transition: opacity .5s ease, visibility .5s ease;
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.pl-bike {
  width: min(280px, 82vw);
  line-height: 1;
  animation: pl-ride 1s ease-in-out infinite;
}
.pl-bike-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.pl-bike-art {
  transform-origin: 140px 86px;
  animation: pl-engine 0.34s ease-in-out infinite;
}
.pl-wheel {
  transform-box: fill-box;
  transform-origin: center;
  animation: pl-wheel-spin 0.7s linear infinite;
}
.pl-smoke {
  animation: pl-smoke 1.15s ease-out infinite;
}
.pl-headlight {
  animation: pl-headlight 0.85s ease-in-out infinite;
}
@keyframes pl-ride {
  0%,100% { transform: translateX(-10px) rotate(-4deg); }
  50%     { transform: translateX(10px)  rotate(4deg); }
}
@keyframes pl-engine {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
@keyframes pl-wheel-spin {
  to { transform: rotate(360deg); }
}
@keyframes pl-smoke {
  0% { transform: translate(0, 0) scale(0.82); opacity: 0; }
  30% { opacity: 0.8; }
  100% { transform: translate(-18px, -9px) scale(1.25); opacity: 0; }
}
@keyframes pl-headlight {
  0%,100% { filter: drop-shadow(0 0 0 rgba(255,214,74,0)); }
  50% { filter: drop-shadow(0 0 8px rgba(255,214,74,0.95)); }
}
.pl-title {
  font-family: 'Russo One', sans-serif; text-transform: uppercase;
  font-size: clamp(22px, 4vw, 34px); letter-spacing: -0.5px;
}
.pl-sub { font-family: 'Caveat', cursive; font-size: 22px; opacity: 0.7; }
.pl-bar {
  margin-top: 10px; width: min(280px, 70vw); height: 14px;
  background: #fff; border: 2px solid #1A1A1A; border-radius: 999px;
  overflow: hidden; box-shadow: 3px 3px 0 #1A1A1A;
}
.pl-bar-fill {
  height: 100%; width: 0%;
  background: repeating-linear-gradient(45deg, #4A8BFF 0 10px, #FFD64A 10px 20px);
  animation: pl-fill 1.8s ease-out forwards;
}
@keyframes pl-fill {
  0%   { width: 0%; }
  60%  { width: 70%; }
  100% { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-bike, .pl-bike-art, .pl-wheel, .pl-smoke, .pl-headlight { animation: none; }
  .pl-bar-fill { animation: none; width: 100%; }
}

/* ========== CONTAINER ========== */
.container { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ========== CONFETTI BG ========== */
.confetti {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.confetti .c {
  position: absolute; width: 14px; height: 22px; border-radius: 3px;
  transform: rotate(20deg); opacity: 0.85;
}
.c1  { top: 4%;  left: 6%;  background: #4A8BFF; transform: rotate(-12deg);}
.c2  { top: 8%;  left: 92%; background: #FFD64A; transform: rotate(28deg);}
.c3  { top: 18%; left: 2%;  background: #FF4D5A; transform: rotate(50deg);}
.c4  { top: 24%; left: 96%; background: #2DD178; transform: rotate(-30deg);}
.c5  { top: 35%; left: 4%;  background: #C155FF; transform: rotate(15deg);}
.c6  { top: 38%; left: 94%; background: #FFD64A; transform: rotate(-45deg);}
.c7  { top: 50%; left: 1%;  background: #4A8BFF; transform: rotate(10deg);}
.c8  { top: 55%; left: 98%; background: #FF4D5A; transform: rotate(60deg);}
.c9  { top: 68%; left: 3%;  background: #2DD178; transform: rotate(-20deg);}
.c10 { top: 72%; left: 95%; background: #FFD64A; transform: rotate(40deg);}
.c11 { top: 80%; left: 5%;  background: #C155FF; transform: rotate(70deg);}
.c12 { top: 86%; left: 92%; background: #4A8BFF; transform: rotate(-15deg);}
.c13 { top: 14%; left: 30%; background: #FF4D5A; width: 8px; height: 8px; border-radius: 50%;}
.c14 { top: 22%; left: 60%; background: #2DD178; width: 8px; height: 8px; border-radius: 50%;}
.c15 { top: 46%; left: 22%; background: #FFD64A; width: 8px; height: 8px; border-radius: 50%;}
.c16 { top: 66%; left: 70%; background: #4A8BFF; width: 8px; height: 8px; border-radius: 50%;}
.c17 { top: 90%; left: 40%; background: #C155FF; width: 8px; height: 8px; border-radius: 50%;}
.c18 { top: 30%; left: 80%; background: #FF4D5A; width: 8px; height: 8px; border-radius: 50%;}
.c19 { top: 12%; left: 50%; background: #2DD178; transform: rotate(35deg);}
.c20 { top: 60%; left: 36%; background: #4A8BFF; width: 8px; height: 8px; border-radius: 50%;}
.c21 { top: 76%; left: 56%; background: #FFD64A; transform: rotate(-25deg);}
.c22 { top: 28%; left: 14%; background: #C155FF; width: 8px; height: 8px; border-radius: 50%;}
.c23 { top: 52%; left: 88%; background: #2DD178; transform: rotate(15deg);}
.c24 { top: 84%; left: 26%; background: #FF4D5A; transform: rotate(-50deg);}

/* ========== NAV ========== */
.nav {
  position: sticky; top: 18px; z-index: 50;
  padding: 0 24px;
}
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  background: #fff; border: 2px solid #1A1A1A; border-radius: 999px;
  padding: 12px 22px;
  display: flex; align-items: center; justify-content: space-between;
  box-shadow: 6px 6px 0 #1A1A1A;
}
.logo { display: flex; align-items: baseline; gap: 6px; position: relative; }
.logo-script { font-family: 'Caveat', cursive; font-size: 28px; font-weight: 700; }
.logo-num { font-family: 'Russo One', sans-serif; font-size: 26px; color: #4A8BFF; }
.logo-crown {
  position: absolute; top: -16px; left: 52px;
  width: 42px; height: 26px; transform: rotate(-10deg);
  filter: drop-shadow(1px 1px 0 #1A1A1A);
}
.nav-links { list-style: none; display: flex; gap: 6px; margin: 0; padding: 0; }
.nav-links a {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  font-weight: 700; font-size: 15px; color: #1A1A1A;
  transition: background .15s ease;
}
.nav-links a:hover { background: #FFF1C7; }
.nav-links a.active { background: #4A8BFF; color: #fff; }
.nav-emoji { width: 38px; height: 38px; display: block; }

/* ========== HERO ========== */
.hero { position: relative; padding: 50px 0 70px; z-index: 1; }
.hero-grid {
  max-width: 1240px; margin: 0 auto; padding: 0 28px;
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center;
}
.hero-left { position: relative; }

/* Yellow circle doodle note — sits ABOVE title, not overlapping */
.hero-note {
  display: inline-block;
  width: 108px; height: 108px;
  margin: 0 0 18px -10px;
  transform: rotate(-10deg);
}
.hero-note-inner {
  width: 100%; height: 100%; border-radius: 50%;
  background: #FFE14A; border: 2px solid #1A1A1A;
  display: grid; place-items: center; text-align: center;
  box-shadow: 4px 4px 0 #1A1A1A;
  font-family: 'Caveat', cursive; font-weight: 700;
  font-size: 24px; line-height: 1.05; padding: 0 10px;
}

.hero-title {
  font-family: 'Russo One', sans-serif; font-weight: 800;
  font-size: clamp(48px, 6.5vw, 90px); line-height: 1.0;
  margin: 0 0 28px 0; letter-spacing: -1px;
  text-transform: lowercase;
  position: relative;
}
.hero-title > span {
  display: inline-block; vertical-align: baseline;
  position: relative;
}
.hero-title > span + span { margin-left: 14px; }
.title-blue {
  color: #4A8BFF;
}
.title-blue::before {
  content: ""; position: absolute; left: -4px; right: -8px; bottom: 6px; height: 28%;
  background: #FFE14A; z-index: -1; transform: skewX(-6deg) rotate(-1deg);
  border-radius: 3px;
}
.title-black {
  color: #1A1A1A; position: relative; display: inline-block;
  transform: rotate(-1.5deg);
}
.title-black::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 6px;
  background: #FF4D5A; border-radius: 3px; transform: rotate(-1deg);
}
.title-crown {
  position: absolute; font-size: 28px; top: -4px; left: 200px;
  transform: rotate(-10deg);
}

.hero-sub {
  font-size: 18px; max-width: 560px; margin: 0 0 16px;
}
.hero-sub.small { font-size: 16px; margin-bottom: 32px; opacity: 0.85; }

.hero-buttons { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 24px; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 16px;
  border: 2px solid #1A1A1A; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease;
  box-shadow: 4px 4px 0 #1A1A1A;
  text-decoration: none;
}
.btn:hover { transform: translate(-1px, -1px); box-shadow: 6px 6px 0 #1A1A1A; }
.btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #1A1A1A; }
.btn-primary { background: #4A8BFF; color: #fff; }
.btn-outline { background: #fff; color: #1A1A1A; }
.btn-outline .btn-ico { color: #FF4D5A; }
.btn-large { font-size: 19px; padding: 18px 36px; background: #FF4D5A; color: #fff; }
.btn-ico { font-size: 18px; }

/* hero decorations: balloons + cake */
.hero-deco {
  display: flex; gap: 12px; align-items: flex-end;
  font-size: 56px; line-height: 1;
  margin-top: 8px;
}
.emoji-balloon { font-size: 44px; }
.eb1 { transform: rotate(-8deg) translateY(-4px); }
.eb2 { transform: rotate(6deg); }
.emoji-cake { font-size: 60px; transform: rotate(-3deg); }

/* HERO RIGHT — Honda Dio image with badges */
.hero-right { position: relative; min-height: 460px; }
.hero-hero-img {
  width: 100%; max-width: 560px; margin-left: auto;
  filter: drop-shadow(0 14px 30px rgba(0,0,0,0.15));
}
.hero-tag {
  position: absolute; background: #fff; border: 2px solid #1A1A1A;
  padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 14px;
  box-shadow: 3px 3px 0 #1A1A1A; z-index: 3;
}
.hero-tag-1 { top: 6%;  left: -2%;  background: #FFD9D9; transform: rotate(-8deg); }
.hero-tag-2 { top: 44%; right: -4%; background: #DCE9FA; transform: rotate(6deg); }
.hero-tag-3 { bottom: 8%; left: 6%;  background: #FFF1C7; transform: rotate(-4deg); }

.hero-right .badge-level {
  position: absolute; bottom: -16px; right: 6%;
  background: #fff; border: 2px solid #1A1A1A; padding: 10px 16px; border-radius: 18px;
  box-shadow: 3px 3px 0 #1A1A1A; display: flex; align-items: center; gap: 10px;
  transform: rotate(-3deg); z-index: 4;
}
.badge-num {
  font-family: 'Russo One', sans-serif; font-size: 40px; color: #FF4D5A; line-height: 1;
}
.badge-text { font-size: 12px; font-weight: 700; line-height: 1.15; text-transform: uppercase; }

.hero-right .badge-hot {
  position: absolute; top: 4%; right: -4%;
  width: 120px; height: 92px; display: grid; place-items: center;
  transform: rotate(8deg); z-index: 4;
}
.badge-burst { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(3px 3px 0 #1A1A1A); }
.badge-hot-text {
  position: relative; z-index: 2; font-family: 'Russo One', sans-serif;
  text-align: center; line-height: 1; text-transform: uppercase;
}
.badge-hot-text span { font-size: 13px; }
.badge-hot-text b { font-size: 19px; color: #FF4D5A; }

.hero-scroll {
  text-align: center; margin-top: 40px;
  font-family: 'Caveat', cursive; font-size: 22px; opacity: 0.6;
}

/* ========== SECTION HEAD ========== */
.section-head { text-align: center; margin: 0 0 48px; position: relative; z-index: 1; }
.section-head.left-aligned { text-align: left; }
.section-head h2 {
  font-family: 'Russo One', sans-serif; font-size: clamp(34px, 4vw, 52px);
  margin: 0 0 8px; text-transform: uppercase; letter-spacing: -0.5px;
}
.under-yellow, .under-pink, .under-blue {
  position: relative; display: inline-block;
}
.under-yellow::before {
  content: ""; position: absolute; left: -4px; right: -8px; bottom: 4px; height: 32%;
  background: #FFE14A; z-index: -1; transform: skewX(-6deg) rotate(-1deg); border-radius: 3px;
}
.under-pink::before {
  content: ""; position: absolute; left: -4px; right: -8px; bottom: 4px; height: 32%;
  background: #FFD0D6; z-index: -1; transform: skewX(-6deg) rotate(-1deg); border-radius: 3px;
}
.under-blue::before {
  content: ""; position: absolute; left: -4px; right: -8px; bottom: 4px; height: 32%;
  background: #BDD3FF; z-index: -1; transform: skewX(-6deg) rotate(-1deg); border-radius: 3px;
}
.section-sub { font-family: 'Caveat', cursive; font-size: 22px; opacity: 0.65; margin: 0; }

/* ========== ABOUT ========== */
.about { padding: 80px 0 60px; position: relative; z-index: 1; }
.about-grid {
  display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 28px; align-items: stretch;
}
.fact {
  background: #fff; border: 2px solid #1A1A1A; border-radius: 22px;
  padding: 24px; box-shadow: 6px 6px 0 #1A1A1A; position: relative;
}
.fact-photo { padding: 18px; text-align: center; transform: rotate(-2deg); }
.fact-photo img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: 14px; border: 2px solid #1A1A1A; }
.fact-cap {
  font-family: 'Caveat', cursive; font-size: 22px; margin-top: 12px; line-height: 1.15;
}
.fact-list h3 {
  margin: 0 0 14px; font-family: 'Russo One', sans-serif; font-size: 22px;
  text-transform: uppercase;
}
.fact-list h3 .emoji { font-family: inherit; }
.fact-list ul { list-style: none; padding: 0; margin: 0; }
.fact-list li {
  padding: 8px 0; border-bottom: 2px dashed #ddd; font-size: 16px;
}
.fact-list li:last-child { border-bottom: none; }
.fact-quote {
  background: #FFE14A; transform: rotate(2deg);
  display: flex; flex-direction: column; justify-content: center;
}
.quote-mark {
  font-family: 'Russo One', sans-serif; font-size: 90px; line-height: 0.7;
  color: #FF4D5A; margin: -10px 0 -10px -8px;
}
.quote-text {
  font-family: 'Russo One', sans-serif; font-size: 22px; line-height: 1.15;
  text-transform: uppercase; margin: 0 0 14px;
}
.quote-author { font-family: 'Caveat', cursive; font-size: 22px; }

/* ========== GALLERY ========== */
.gallery { padding: 80px 0; position: relative; z-index: 1; }
.cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px 28px;
}
.card {
  background: #fff; border: 2px solid #1A1A1A; border-radius: 18px;
  padding: 12px 12px 14px; margin: 0; position: relative;
  box-shadow: 6px 6px 0 #1A1A1A;
  transition: transform .2s ease;
}
.card:hover { transform: translateY(-4px) rotate(0) !important; }
.card img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 10px;
  border: 2px solid #1A1A1A; background: #f0f0f0;
}
.card figcaption {
  font-family: 'Caveat', cursive; font-size: 20px; text-align: center;
  margin-top: 8px; line-height: 1.15;
}
/* very subtle rotation — much calmer than before */
.card-r1 { transform: rotate(-0.8deg); background: #DCE9FA; }
.card-l2 { transform: rotate(1deg);    background: #FFF1C7; }
.card-r3 { transform: rotate(-1deg);   background: #FFD9D9; }
.card-l1 { transform: rotate(1deg);    background: #FFF1C7; }
.card-r2 { transform: rotate(-1deg);   background: #FFD9D9; }
.card-l3 { transform: rotate(0.8deg);  background: #DCE9FA; }

/* ========== WASHI TAPE ========== */
.washi {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-4deg);
  width: 100px; height: 26px; border-radius: 4px; z-index: 3;
  opacity: 0.85;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.4) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.4) 50%, rgba(255,255,255,0.4) 75%, transparent 75%);
  background-size: 14px 14px;
  box-shadow: 2px 2px 0 rgba(0,0,0,0.25);
}
.washi-yellow { background-color: #FFD64A; }
.washi-blue   { background-color: #6AA7FF; }
.washi-pink   { background-color: #FF8FA3; }

/* ========== JOKES ========== */
.jokes { padding: 80px 0; position: relative; z-index: 1; }
.jokes-grid {
  display: grid; grid-template-columns: 1.2fr 0.9fr; gap: 40px; align-items: center;
}
.jokes-list { display: flex; flex-direction: column; gap: 16px; }
.bubble {
  background: #fff; border: 2px solid #1A1A1A; border-radius: 22px;
  padding: 16px 22px; box-shadow: 5px 5px 0 #1A1A1A;
  font-size: 17px; display: flex; gap: 14px; align-items: flex-start;
}
.bubble:nth-child(odd) { transform: rotate(-0.5deg); }
.bubble:nth-child(even) { transform: rotate(0.5deg); }
.bubble-emoji { font-size: 22px; flex-shrink: 0; }

.jokes-photo { position: relative; }
.jokes-photo img {
  width: 100%; aspect-ratio: 4/5; object-fit: cover; border-radius: 18px;
  border: 2px solid #1A1A1A; box-shadow: 8px 8px 0 #1A1A1A; background: #FFD9D9;
  transform: rotate(-3deg);
}
.badge-pop {
  position: absolute; bottom: -20px; right: -10px;
  background: #FFE14A; border: 2px solid #1A1A1A; padding: 10px 16px;
  border-radius: 14px; box-shadow: 3px 3px 0 #1A1A1A;
  font-family: 'Russo One', sans-serif; text-transform: uppercase;
  font-size: 13px; line-height: 1.15; transform: rotate(-6deg); text-align: center;
}
.badge-pop b { font-size: 16px; color: #FF4D5A; }

/* ========== WISHES ========== */
.wishes { padding: 80px 0; position: relative; z-index: 1; }
.wishes-grid {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 50px; align-items: start;
}
.msg-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 14px; }
.msg {
  background: #fff; border: 2px solid #1A1A1A; border-radius: 18px;
  padding: 14px 18px; display: flex; gap: 14px; align-items: flex-start;
  box-shadow: 4px 4px 0 #1A1A1A;
}
.ava {
  width: 44px; height: 44px; border-radius: 50%; border: 2px solid #1A1A1A;
  display: grid; place-items: center; font-family: 'Russo One', sans-serif;
  font-size: 18px; color: #fff; flex-shrink: 0;
}
.ava-1 { background: #4A8BFF; }
.ava-2 { background: #FF8FA3; }
.ava-3 { background: #2DD178; }
.ava-4 { background: #FFD64A; color: #1A1A1A; }
.ava-5 { background: #C155FF; }
.msg-body { flex: 1; }
.msg-head { display: flex; gap: 10px; align-items: baseline; }
.msg-time { font-family: 'Caveat', cursive; font-size: 16px; opacity: 0.5;}
.msg-text { margin-top: 4px; }

.msg-form {
  display: grid; grid-template-columns: 0.8fr 1.4fr auto; gap: 10px;
  background: #fff; border: 2px solid #1A1A1A; border-radius: 18px;
  padding: 12px; box-shadow: 5px 5px 0 #1A1A1A;
}
.msg-form input {
  border: 2px solid #1A1A1A; border-radius: 12px; padding: 12px 14px;
  font: inherit; background: #FFFBF2;
}
.msg-form button { padding: 12px 20px; }

.wishes-right { position: sticky; top: 100px; }
.card-pin {
  background: #fff; border: 2px solid #1A1A1A; border-radius: 18px;
  padding: 16px; box-shadow: 8px 8px 0 #1A1A1A; position: relative;
  transform: rotate(2deg);
}
.card-pin img {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 12px;
  border: 2px solid #1A1A1A;
}
.card-pin-cap { font-family: 'Caveat', cursive; font-size: 22px; text-align: center; margin-top: 10px; }
.comic {
  position: relative; width: 180px; height: 180px;
  margin: 24px auto 0; transform: rotate(-6deg);
}
.comic svg { width: 100%; height: 100%; filter: drop-shadow(3px 3px 0 #1A1A1A); }
.comic-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  font-family: 'Russo One', sans-serif; text-transform: uppercase;
  text-align: center; color: #fff; line-height: 0.95; font-size: 22px;
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 rgba(0,0,0,.35);
  padding: 20px;
}

/* ========== COUNTDOWN ========== */
.countdown-wrap { padding: 60px 0; position: relative; z-index: 1; }
.countdown {
  background: #DCE9FA; border: 2px solid #1A1A1A; border-radius: 28px;
  padding: 28px 36px; display: grid;
  grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center;
  box-shadow: 8px 8px 0 #1A1A1A;
}
.cd-label { font-family: 'Caveat', cursive; font-size: 26px; line-height: 1.1; }
.cd-digits { display: flex; gap: 14px; }
.cd-box {
  background: #fff; border: 2px solid #1A1A1A; border-radius: 14px;
  padding: 14px 18px; text-align: center; min-width: 82px;
}
.cd-box span { font-family: 'Russo One', sans-serif; font-size: 36px; line-height: 1; display: block; }
.cd-box small { font-size: 12px; opacity: 0.6; text-transform: uppercase; }
.cd-tail {
  font-family: 'Russo One', sans-serif; text-transform: uppercase; font-size: 18px;
  display: flex; align-items: center; gap: 10px;
}
.cd-arrow { font-family: 'Caveat', cursive; font-size: 36px; transform: rotate(8deg); }

/* countdown -> birthday state at 00:00 */
.countdown.is-birthday {
  display: block; text-align: center;
  background: #FFE7A6; padding: 40px 28px;
  animation: cd-pop 0.5s ease;
}
@keyframes cd-pop { 0% { transform: scale(0.92); } 60% { transform: scale(1.03); } 100% { transform: scale(1); } }
.cd-bday-icons { display: flex; justify-content: center; align-items: flex-end; gap: 10px; }
.cd-bday-icons .ic { width: 48px; height: 48px; display: block; filter: drop-shadow(2px 2px 0 rgba(26,26,26,0.18)); }
.cd-bday-icons .flip { display: inline-flex; transform: scaleX(-1); }
.ic-cake { width: 56px !important; height: 56px !important; animation: cd-bounce 1.4s ease-in-out infinite; }
.ic-popper { animation: ic-wiggle 2s ease-in-out infinite; }
.ic-flame { animation: ic-flicker 0.6s ease-in-out infinite alternate; transform-origin: 32px 16px; }
@keyframes ic-wiggle { 0%,100% { transform: rotate(0deg); } 50% { transform: rotate(-7deg); } }
@keyframes ic-flicker { from { transform: scaleY(0.9); opacity: 0.85; } to { transform: scaleY(1.08); opacity: 1; } }
@keyframes cd-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.cd-bday-title {
  font-family: 'Russo One', sans-serif; font-size: 44px; line-height: 1.05;
  margin: 12px 0 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.cd-bday-sub { font-family: 'Caveat', cursive; font-size: 28px; margin: 0; }
@media (max-width: 600px) {
  .cd-bday-title { font-size: 30px; }
  .cd-bday-icons .ic { width: 40px; height: 40px; }
  .cd-bday-icons .ic-cake { width: 46px !important; height: 46px !important; }
  .cd-bday-sub { font-size: 22px; }
}

/* ========== FINAL ========== */
.final {
  padding: 90px 0 110px; position: relative; z-index: 1;
  background: linear-gradient(180deg, transparent, #FFE7C4);
}
.final-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 60px;
  max-width: 1100px; margin: 0 auto;
}
.final-copy { text-align: left; }
.final-title {
  font-family: 'Russo One', sans-serif; text-transform: uppercase;
  font-size: clamp(38px, 4.8vw, 64px); margin: 0 0 16px; line-height: 1.05;
}
.final-sub { font-size: 18px; max-width: 540px; margin: 0 0 28px; opacity: 0.85; }
.final-cake {
  position: relative;
  width: 100%; aspect-ratio: 1 / 1;
  display: grid; place-items: center;
}
.cake-img {
  position: relative; z-index: 2;
  width: 100%; max-width: 460px; height: auto;
  filter: drop-shadow(0 18px 24px rgba(0,0,0,0.18));
  animation: cake-float 4.2s ease-in-out infinite;
}
@keyframes cake-float {
  0%,100% { transform: translateY(0) rotate(-1deg); }
  50%     { transform: translateY(-10px) rotate(1deg); }
}
.cake-glow {
  position: absolute; inset: 8% 8% 8% 8%;
  background: radial-gradient(closest-side, rgba(255,221,80,0.55), rgba(255,221,80,0) 70%);
  filter: blur(8px);
  z-index: 1;
  animation: cake-glow 3s ease-in-out infinite;
}
@keyframes cake-glow { 0%,100% { opacity: 0.7; } 50% { opacity: 1; } }
.cake-spark {
  position: absolute; z-index: 3;
  font-family: 'Russo One', sans-serif;
  color: #FFD64A; text-shadow: 1px 1px 0 #1A1A1A;
  font-size: 24px;
  animation: cake-twinkle 1.8s ease-in-out infinite;
}
.cake-spark.s1 { top: 6%; left: 8%; animation-delay: 0s; }
.cake-spark.s2 { top: 18%; right: 4%; font-size: 20px; animation-delay: -0.6s; }
.cake-spark.s3 { bottom: 18%; left: 2%; font-size: 18px; animation-delay: -1.2s; }
@keyframes cake-twinkle {
  0%,100% { opacity: 0.2; transform: scale(0.8) rotate(0); }
  50%     { opacity: 1;   transform: scale(1.2) rotate(20deg); }
}
@media (max-width: 860px) {
  .final-grid { grid-template-columns: 1fr; gap: 30px; text-align: center; }
  .final-copy { text-align: center; }
  .final-sub { margin-left: auto; margin-right: auto; }
  .final-cake { max-width: 380px; margin: 0 auto; }
}

/* ========== FOOTER ========== */
.foot { padding: 26px 0 40px; border-top: 2px solid #1A1A1A; background: #FFFBF2; position: relative; z-index: 1; }
.foot-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot-logo { display: flex; align-items: baseline; gap: 6px; }
.foot-text { font-family: 'Caveat', cursive; font-size: 20px; opacity: 0.75; }

/* ========== VOICE MESSAGE (per-wisher) ========== */
.voice-btn {
  margin-top: 8px;
  display: flex; align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 8px;
  width: 100%; max-width: 360px;
  background: linear-gradient(180deg,#EAF2FF 0%, #DCE9FF 100%);
  color: #1A1A1A;
  border: 2px solid #1A1A1A; border-radius: 999px;
  box-shadow: 3px 3px 0 #1A1A1A;
  cursor: pointer;
  font-family: inherit; font-weight: 700;
  transition: transform .12s ease, box-shadow .12s ease;
}
.voice-btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 #1A1A1A; }
.voice-btn:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 #1A1A1A; }
.voice-btn .vb-icon {
  flex: 0 0 auto;
  width: 38px; height: 38px; border-radius: 50%;
  background: #4A8BFF; color: #fff;
  border: 2px solid #1A1A1A;
  display: grid; place-items: center;
}
.voice-btn .vb-icon svg { width: 18px; height: 18px; }
.voice-btn .vb-pause { display: none; }
.voice-btn[data-playing="true"] .vb-play { display: none; }
.voice-btn[data-playing="true"] .vb-pause { display: block; }
.voice-btn .vb-time {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums; font-size: 12px;
  font-weight: 700; color: rgba(0,0,0,.55);
  min-width: 32px; text-align: right;
}
/* Waveform: 32 bars rendered via CSS gradients */
.voice-btn .vb-wave {
  flex: 1 1 auto;
  height: 28px;
  background-image: var(--wave);
  background-repeat: no-repeat;
  background-position: left center;
  background-size: 0% 100%, 100% 100%;
  --wave:
    linear-gradient(90deg, #4A8BFF 0%, #4A8BFF 100%),
    var(--wave-bars);
  background-image: var(--wave-bars);
  position: relative;
  --wave-bars: none;
}
/* Use multi-bar approach with inline gradient bars */
.voice-btn .vb-wave {
  background: none;
  display: flex; align-items: center; gap: 2px;
  position: relative; padding: 0;
}
.voice-btn .vb-wave::before,
.voice-btn .vb-wave::after { display: none; }
/* JS injects bars as <i>; style them: */
.voice-btn .vb-wave i {
  display: block; width: 3px; border-radius: 2px;
  background: rgba(0,0,0,.25);
  transition: background .15s ease;
}
.voice-btn .vb-wave i.played { background: #4A8BFF; }
.voice-btn[data-playing="true"] .vb-wave i.current {
  animation: vb-pulse .6s ease-in-out infinite;
}
@keyframes vb-pulse {
  0%,100% { transform: scaleY(1); }
  50% { transform: scaleY(1.4); }
}

/* ========== MUSIC WIDGET ========== */
.music-widget {
  position: fixed; bottom: 22px; right: 22px; z-index: 900;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 18px 10px 10px;
  background: linear-gradient(135deg, #FFF7E0 0%, #FFE7C2 100%);
  border: 2.5px solid #1A1A1A; border-radius: 999px;
  box-shadow: 6px 6px 0 #1A1A1A;
  font-family: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.music-widget:hover { transform: translate(-1px,-1px); box-shadow: 7px 7px 0 #1A1A1A; }


/* Vinyl disc */
.mw-disc {
  flex: 0 0 auto; position: relative;
  width: 56px; height: 56px; border-radius: 50%;
  background: none; border: 2.5px solid #1A1A1A;
  padding: 0; cursor: pointer;
  overflow: hidden;
  box-shadow: 2px 2px 0 #1A1A1A;
}
.mw-disc:hover { transform: scale(1.04); }
.mw-vinyl {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, #2a2a2a 0 2px, #1a1a1a 2px 4px),
    radial-gradient(circle at 50% 50%, #2a2a2a 0%, #0e0e0e 80%);
  display: grid; place-items: center;
}
.mw-vinyl-center {
  width: 16px; height: 16px; border-radius: 50%;
  background: #FF4D5A; border: 2px solid #1A1A1A;
  box-shadow: 0 0 0 1px #fff inset;
}
.mw-vinyl-glint {
  position: absolute; top: 8%; left: 18%;
  width: 22px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
  transform: rotate(-30deg);
  filter: blur(1px);
}
.mw-overlay-icon {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  background: rgba(0,0,0,0.35);
  opacity: 1; transition: opacity .2s ease;
}
.mw-overlay-icon svg { width: 22px; height: 22px; }
.mw-overlay-icon .mw-pause { display: none; }
.music-widget[data-state="playing"] .mw-overlay-icon { opacity: 0; }
.music-widget[data-state="playing"] .mw-disc:hover .mw-overlay-icon { opacity: 1; }
.music-widget[data-state="playing"] .mw-vinyl { animation: mw-spin 6s linear infinite; }
.music-widget[data-state="playing"] .mw-disc:hover .mw-overlay-icon .mw-play { display: none; }
.music-widget[data-state="playing"] .mw-disc:hover .mw-overlay-icon .mw-pause { display: block; }
@keyframes mw-spin { from{transform:rotate(0)} to{transform:rotate(360deg)} }

/* Info */
.mw-info {
  display: flex; flex-direction: column; line-height: 1.15; min-width: 0;
  position: relative;
}
.mw-label {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.2px; color: #FF4D5A;
}
.mw-track {
  font-weight: 800; font-size: 14px; color: #1A1A1A;
  white-space: nowrap;
}


.mw-count { opacity: .75; }

/* Controls */
.mw-controls { display: flex; align-items: center; gap: 8px; }
.mw-mute, .mw-nav {
  width: 32px; height: 32px; border-radius: 50%;
  background: #fff; border: 2px solid #1A1A1A;
  display: grid; place-items: center;
  cursor: pointer; padding: 0;
  flex: 0 0 auto;
}
.mw-mute:hover, .mw-nav:hover { transform: scale(1.08); }
.mw-mute svg, .mw-nav svg { width: 16px; height: 16px; }
.mw-nav:active { transform: scale(0.94); }
.mw-mute .mw-icon-mute { display: none; }
.music-widget[data-muted="true"] .mw-mute .mw-icon-vol { display: none; }
.music-widget[data-muted="true"] .mw-mute .mw-icon-mute { display: block; }
.mw-vol {
  -webkit-appearance: none; appearance: none;
  width: 84px; height: 8px;
  background: #fff; border: 2px solid #1A1A1A; border-radius: 999px;
  outline: none; cursor: pointer; padding: 0;
}
.mw-vol::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px; border-radius: 50%;
  background: #FF4D5A; border: 2px solid #1A1A1A;
}
.mw-vol::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: #FF4D5A; border: 2px solid #1A1A1A;
}
@media (max-width: 700px) {
  /* На телефоне — широкая панель внизу: видно трек, счётчик и все кнопки */
  .music-widget {
    left: 12px; right: 12px; bottom: 12px;
    flex-wrap: wrap; align-items: center;
    padding: 10px 14px; gap: 10px 12px;
    border-radius: 20px;
  }
  .mw-disc { width: 46px; height: 46px; }
  .mw-info { display: flex; flex: 1 1 auto; min-width: 0; }
  .mw-track {
    font-size: 13px;
    overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  }
  .mw-controls { flex: 1 1 100%; justify-content: space-between; gap: 8px; }
  .mw-nav, .mw-mute { width: 40px; height: 40px; }
  .mw-nav svg, .mw-mute svg { width: 18px; height: 18px; }
  .mw-vol { flex: 1 1 auto; width: auto; min-width: 60px; }
}



/* ========== LIGHTBOX ========== */
.card { cursor: zoom-in; }
.lb {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(20,20,20,0.92);
  display: none; align-items: center; justify-content: center;
  padding: 24px;
}
.lb.is-open { display: flex; animation: lb-fade .18s ease-out; }
@keyframes lb-fade { from { opacity: 0; } to { opacity: 1; } }
.lb-stage {
  margin: 0; max-width: min(1100px, 100%); max-height: 100%;
  display: flex; flex-direction: column; align-items: center;
  position: relative;
}
.lb-stage img {
  max-width: 100%; max-height: calc(100vh - 160px);
  object-fit: contain; border-radius: 12px;
  border: 3px solid #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  background: #fff;
}
.lb-stage figcaption {
  margin-top: 16px; color: #fff;
  font-family: 'Caveat', cursive; font-size: 26px; text-align: center;
  max-width: 100%;
}
.lb-counter {
  position: absolute; top: -42px; left: 0;
  color: #fff; opacity: 0.7; font-size: 13px;
  font-family: 'Manrope', sans-serif; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
}
.lb-close, .lb-nav {
  position: absolute; background: #fff; color: #1A1A1A;
  border: 3px solid #1A1A1A; border-radius: 50%;
  width: 56px; height: 56px;
  font-size: 32px; font-weight: 700; line-height: 1;
  display: grid; place-items: center; cursor: pointer;
  box-shadow: 4px 4px 0 rgba(0,0,0,.4);
  transition: transform .12s ease;
  font-family: inherit;
}
.lb-close:hover, .lb-nav:hover { transform: scale(1.08); }
.lb-close { top: 24px; right: 24px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-nav:hover { transform: translateY(-50%) scale(1.08); }
.lb-prev { left: 24px; }
.lb-next { right: 24px; }
@media (max-width: 700px) {
  .lb-close { width: 44px; height: 44px; font-size: 26px; top: 14px; right: 14px; }
  .lb-nav { width: 44px; height: 44px; font-size: 26px; }
  .lb-prev { left: 10px; } .lb-next { right: 10px; }
  .lb-stage img { max-height: calc(100vh - 200px); }
  .lb-stage figcaption { font-size: 20px; }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
  .nav { top: 10px; padding: 0 12px;}
  .nav-inner { padding: 10px 14px; }
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-right { order: -1; min-height: 360px; }
  .hero-hero-img { max-width: 100%; margin: 0 auto; }
  .hero-note { width: 92px; height: 92px; margin: 0 0 14px 0; }
  .hero-note-inner { font-size: 15px; }
  .about-grid { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 26px 18px; }
  .jokes-grid { grid-template-columns: 1fr; }
  .wishes-grid { grid-template-columns: 1fr; }
  .countdown { grid-template-columns: 1fr; text-align: center; }
  .cd-digits { justify-content: center; }
  .cd-tail { justify-content: center; }
  .msg-form { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .cards { grid-template-columns: 1fr; }
  .countdown { padding: 22px 16px; }
  .cd-digits { gap: 8px; }
  .cd-box { min-width: 0; padding: 10px 4px; flex: 1; }
  .cd-box span { font-size: 24px; }
  .cd-box small { font-size: 10px; }
  .cd-label { font-size: 22px; }
  .cd-tail { font-size: 15px; }
  .title-crown { display: none; }
  .comic { width: 150px; height: 150px; }
  .comic-text { font-size: 18px; padding: 16px; }
  /* small-phone safety: keep big titles from overflowing */
  .hero-title { font-size: 42px; letter-spacing: -0.5px; overflow-wrap: break-word; }
  .final-title { font-size: 34px; }
  .cd-bday-title { font-size: 26px; }
  .hbd-card { padding: 28px 22px; }
}

/* ===== VIDEOS section ===== */
.videos { padding: 80px 0 60px; position: relative; z-index: 1; }
.videos-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
  max-width: 1100px; margin: 0 auto;
}
.vid-card {
  position: relative; background: #fff; border: 2px solid #1A1A1A;
  border-radius: 20px; padding: 18px 18px 22px;
  box-shadow: 8px 8px 0 #1A1A1A; transform: rotate(-0.6deg);
  transition: transform 0.18s ease;
}
.vid-card:nth-child(2) { transform: rotate(0.7deg); }
.vid-card:hover { transform: rotate(0) translateY(-3px); }
.vid-tape {
  position: absolute; top: -14px; left: 38px;
  width: 80px; height: 22px;
  background: repeating-linear-gradient(45deg, #FFE14A 0 6px, #FFD000 6px 12px);
  border: 2px solid #1A1A1A; border-radius: 4px;
  transform: rotate(-8deg);
  box-shadow: 2px 2px 0 #1A1A1A;
}
.vid-tape-2 {
  left: auto; right: 42px; transform: rotate(7deg);
  background: repeating-linear-gradient(45deg, #BDD3FF 0 6px, #8FB1FF 6px 12px);
}
.vid-frame {
  position: relative;
  border: 2px solid #1A1A1A; border-radius: 14px; overflow: hidden;
  background: #1A1A1A; aspect-ratio: 16/9;
}
.vid-frame video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.vid-meta { margin-top: 16px; }
.vid-title {
  font-family: 'Russo One', sans-serif; text-transform: uppercase;
  font-size: 20px; letter-spacing: -0.3px; margin: 0 0 6px;
}
.vid-cap {
  font-family: 'Manrope', sans-serif; font-size: 15px;
  line-height: 1.45; margin: 0 0 12px; color: #2a2a2a;
}
.vid-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.vid-tag {
  display: inline-block; font-family: 'Manrope', sans-serif; font-weight: 700;
  font-size: 12px; padding: 4px 10px; border: 2px solid #1A1A1A;
  border-radius: 999px; text-transform: lowercase; line-height: 1.4;
}
.tag-yellow { background: #FFE14A; }
.tag-blue { background: #DCE9FA; }
.tag-pink { background: #FFD9D9; }

@media (max-width: 860px) {
  .videos-grid { grid-template-columns: 1fr; gap: 36px; }
  .videos { padding: 60px 0 40px; }
}
@media (max-width: 540px) {
  .vid-card { padding: 16px 14px 18px; transform: none; }
  .vid-card:nth-child(2) { transform: none; }
  .vid-title { font-size: 18px; }
  .vid-cap { font-size: 14px; }
}

/* ===== Fireworks / HBD overlay ===== */
.hbd-overlay {
  position: fixed; inset: 0; z-index: 9998;
  background: radial-gradient(ellipse at center, rgba(74,139,255,0.4) 0%, rgba(10,10,20,0.92) 70%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.4s ease;
  padding: 20px;
}
.hbd-overlay.show { opacity: 1; }
.hbd-card {
  background: #FFF7E6; border: 4px solid #1A1A1A; border-radius: 28px;
  box-shadow: 14px 14px 0 #1A1A1A;
  padding: 36px 40px; text-align: center; max-width: 480px;
  transform: scale(0.6) rotate(-3deg); transition: transform 0.5s cubic-bezier(.34,1.56,.64,1);
}
.hbd-overlay.show .hbd-card { transform: scale(1) rotate(0); }
.hbd-emoji { font-size: 56px; line-height: 1; margin-bottom: 8px; animation: hbd-bounce 1.4s ease-in-out infinite; display: flex; justify-content: center; gap: 6px; }
.hbd-emoji .ic { width: 56px; height: 56px; display: block; filter: drop-shadow(2px 2px 0 rgba(26,26,26,0.2)); }
.hbd-emoji .flip { display: inline-flex; transform: scaleX(-1); }
.hbd-title {
  font-family: 'Russo One', sans-serif; text-transform: uppercase;
  font-size: clamp(36px, 6vw, 60px); margin: 0 0 10px; line-height: 0.95;
}
.hbd-title span { color: #4A8BFF; }
.hbd-sub { font-family: 'Manrope', sans-serif; font-size: 17px; margin: 0 0 22px; opacity: 0.85; }
.hbd-close {
  font-family: 'Russo One', sans-serif; text-transform: uppercase; font-size: 13px;
  background: #FFD64A; border: 3px solid #1A1A1A; border-radius: 999px;
  padding: 12px 28px; cursor: pointer; box-shadow: 4px 4px 0 #1A1A1A;
  transition: transform 0.15s, box-shadow 0.15s;
}
.hbd-close:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 #1A1A1A; }
.hbd-close:active { transform: translate(2px,2px); box-shadow: 1px 1px 0 #1A1A1A; }
@keyframes hbd-bounce {
  0%,100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-12px) rotate(6deg); }
}

/* ===== Levelup tip ===== */
.levelup-tip {
  position: fixed; z-index: 9999; pointer-events: none;
  transform: translate(-50%, -8px) scale(0.6);
  font-family: 'Russo One', sans-serif; text-transform: uppercase;
  font-size: 13px; padding: 8px 14px;
  background: #FFD64A; border: 2px solid #1A1A1A; border-radius: 999px;
  box-shadow: 3px 3px 0 #1A1A1A; white-space: nowrap;
  opacity: 0; transition: transform 0.35s cubic-bezier(.34,1.56,.64,1), opacity 0.2s;
}
.levelup-tip.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ===== Bike shake on click ===== */
@keyframes bike-shake {
  0%, 100% { transform: translate(0,0) rotate(0); }
  10% { transform: translate(-3px,-2px) rotate(-1deg); }
  20% { transform: translate(3px,1px) rotate(1.5deg); }
  30% { transform: translate(-4px,2px) rotate(-1.5deg); }
  40% { transform: translate(2px,-3px) rotate(1deg); }
  55% { transform: translate(-2px,1px) rotate(-0.5deg); }
  70% { transform: translate(2px,2px) rotate(0.5deg); }
  85% { transform: translate(-1px,0) rotate(0); }
}
.bike-shake { animation: bike-shake 0.7s ease-in-out; }

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.65,.25,1);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* Wobble for stickers (chained after fade-in) */
.reveal-wobble {
  transform: translateY(28px) rotate(0deg);
}
.reveal-wobble.in { animation: sticker-wobble 0.9s cubic-bezier(.34,1.56,.64,1) 0.25s both; }
@keyframes sticker-wobble {
  0%   { transform: translateY(12px) rotate(0deg) scale(0.85); opacity: 0; }
  40%  { transform: translateY(-4px) rotate(-5deg) scale(1.06); opacity: 1; }
  60%  { transform: translateY(2px)  rotate(4deg)  scale(0.98); }
  80%  { transform: translateY(-1px) rotate(-2deg) scale(1.01); }
  100% { transform: translateY(0)    rotate(0)     scale(1);    }
}
/* preserve existing transforms for stickers that had rotate baked in */
.hero-tag-1.reveal-wobble.in { animation: tag1-wobble 0.9s cubic-bezier(.34,1.56,.64,1) 0.25s both; }
.hero-tag-2.reveal-wobble.in { animation: tag2-wobble 0.9s cubic-bezier(.34,1.56,.64,1) 0.30s both; }
.hero-tag-3.reveal-wobble.in { animation: tag3-wobble 0.9s cubic-bezier(.34,1.56,.64,1) 0.35s both; }
@keyframes tag1-wobble { 0%{opacity:0;transform:translateY(12px) rotate(0deg) scale(.85);} 100%{opacity:1;transform:translateY(0) rotate(-8deg) scale(1);} }
@keyframes tag2-wobble { 0%{opacity:0;transform:translateY(12px) rotate(0deg) scale(.85);} 100%{opacity:1;transform:translateY(0) rotate(6deg) scale(1);} }
@keyframes tag3-wobble { 0%{opacity:0;transform:translateY(12px) rotate(0deg) scale(.85);} 100%{opacity:1;transform:translateY(0) rotate(-4deg) scale(1);} }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-wobble { opacity: 1; transform: none; transition: none; animation: none !important; }
}

/* preserve rotation on cards that have it baked */
.vid-card.reveal { transform: translateY(28px) rotate(-0.6deg); }
.vid-card.reveal.in { transform: translateY(0) rotate(-0.6deg); }
.vid-card.reveal:nth-child(2) { transform: translateY(28px) rotate(0.7deg); }
.vid-card.reveal:nth-child(2).in { transform: translateY(0) rotate(0.7deg); }
.comic.reveal { transform: translateY(20px) rotate(-6deg); opacity: 0; }
.comic.reveal.in { transform: translateY(0) rotate(-6deg); opacity: 1; }
@media (max-width: 540px) {
  .vid-card.reveal, .vid-card.reveal.in,
  .vid-card.reveal:nth-child(2), .vid-card.reveal:nth-child(2).in {
    transform: translateY(0);
  }
}
