/* =========================================================
   andronik.dad — открытка
   ========================================================= */

:root {
  --bg: #120c0a;
  --bg-2: #1b1210;
  --surface: rgba(255, 240, 225, 0.05);
  --surface-2: rgba(255, 240, 225, 0.09);
  --border: rgba(255, 220, 190, 0.12);
  --text: #fbf1e8;
  --muted: #bda897;
  --ember: #ff6a2b;
  --ember-2: #ff3d3d;
  --gold: #ffc35a;
  --pink: #ff7aa8;
  --sky: #7ad3ff;
  --radius: 28px;
  --radius-sm: 16px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1180px;
  --font-display: "Unbounded", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-hand: "Caveat", cursive;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1200px 700px at 80% -10%, rgba(255, 106, 43, .18), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(255, 61, 61, .10), transparent 60%),
    radial-gradient(900px 700px at 110% 80%, rgba(255, 195, 90, .08), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 500 17px/1.6 var(--font-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body.is-locked { overflow: hidden; }

/* лёгкий шум для «плёночной» фактуры */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: .06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.05; letter-spacing: -.02em; }
p { margin: 0; }

/* ---------- кнопки ---------- */
.btn {
  --pad: 16px 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: var(--pad);
  border-radius: 999px;
  border: 1px solid transparent;
  font: 700 16px/1 var(--font-body);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.97); }
.btn--primary {
  background: linear-gradient(135deg, var(--gold), var(--ember) 55%, var(--ember-2));
  color: #1a0d07;
  box-shadow: 0 10px 40px -10px rgba(255, 106, 43, .7), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(255, 106, 43, .9), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn--ghost { background: var(--surface); border-color: var(--border); backdrop-filter: blur(10px); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--sm { --pad: 10px 18px; font-size: 14px; }

/* =========================================================
   INTRO — конверт
   ========================================================= */
.intro {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 18px;
  padding: 24px;
  background: radial-gradient(circle at 50% 45%, #2a1812, var(--bg) 70%);
  transition: opacity .9s var(--ease), visibility .9s;
}
.intro.is-gone { opacity: 0; visibility: hidden; }
.intro__glow {
  position: absolute;
  width: 520px; height: 520px;
  max-width: 120vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 43, .35), transparent 65%);
  filter: blur(30px);
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
}
.intro__hint { font: 600 clamp(20px, 5vw, 28px)/1.2 var(--font-display); text-align: center; position: relative; margin-top: 18px; }
.intro__small { color: var(--muted); font-size: 14px; position: relative; }
.intro__btn { position: relative; font-size: 18px; --pad: 18px 36px; }

.envelope {
  --w: min(320px, 78vw);
  --h: calc(var(--w) * .64);
  --paper: #f3e1cc;
  --paper-2: #e6ccb0;
  position: relative;
  width: var(--w);
  height: var(--h);
  perspective: 900px;
  animation: float 4s ease-in-out infinite;
  cursor: pointer;
}
.envelope__back,
.envelope__front,
.envelope__flap { position: absolute; inset: 0; border-radius: 10px; }
.envelope__back { background: var(--paper-2); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
.envelope__front {
  background: linear-gradient(160deg, var(--paper), var(--paper-2));
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
  z-index: 3;
}
.envelope__flap {
  background: linear-gradient(180deg, #ead2b8, #d9bb9c);
  clip-path: polygon(0 0, 100% 0, 50% 58%);
  transform-origin: top;
  z-index: 4;
  transition: transform .7s var(--ease), z-index 0s .35s;
}
.envelope__seal {
  position: absolute;
  left: 50%; top: 52%;
  width: 54px; height: 54px;
  margin: -27px 0 0 -27px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 35% 35%, #ff6f5a, #b3201a 70%);
  color: #ffd9cc;
  font: 900 22px/1 var(--font-display);
  box-shadow: 0 4px 10px rgba(0, 0, 0, .35), inset 0 -3px 6px rgba(0, 0, 0, .25);
  z-index: 5;
  transition: opacity .3s, transform .4s var(--ease);
}
.envelope__letter {
  position: absolute;
  left: 7%; right: 7%; top: 8%; bottom: 6%;
  background: #fffaf3;
  border-radius: 6px;
  z-index: 2;
  display: grid;
  place-content: center;
  text-align: center;
  color: #4a2a1a;
  transition: transform .8s var(--ease) .35s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}
.envelope__letter-text { font: 600 34px/1 var(--font-hand); }
.envelope__letter-sub { font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: .6; }

.intro.is-open .envelope { animation: none; }
.intro.is-open .envelope__flap { transform: rotateX(180deg); z-index: 1; }
.intro.is-open .envelope__seal { opacity: 0; transform: scale(.4); }
.intro.is-open .envelope__letter { transform: translateY(-62%); }

/* =========================================================
   фоновые канвасы
   ========================================================= */
.embers, .confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.embers { z-index: 0; }
.confetti { z-index: 90; }

/* =========================================================
   NAV
   ========================================================= */
.nav {
  position: fixed;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  width: min(calc(100% - 2 * 16px), 720px);
  justify-content: space-between;
  padding: 10px 12px 10px 22px;
  border-radius: 999px;
  background: rgba(18, 12, 10, .55);
  border: 1px solid var(--border);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}
.nav__logo { font: 800 16px/1 var(--font-display); text-decoration: none; letter-spacing: -.02em; }
.nav__logo span { color: var(--ember); }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); }

/* =========================================================
   общие секции
   ========================================================= */
main, .footer { position: relative; z-index: 2; }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(80px, 12vw, 140px) var(--gutter) 0;
}
.section__head { margin-bottom: clamp(32px, 5vw, 56px); max-width: 720px; }
.section__head h2 { font-size: clamp(36px, 7vw, 76px); font-weight: 900; }
.section__sub { color: var(--muted); margin-top: 14px; font-size: 18px; }
.eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* появление при скролле */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 110px var(--gutter) 90px;
}
.hero__date {
  color: var(--gold);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.hero__title { font-weight: 900; font-size: clamp(40px, 11vw, 128px); line-height: .95; letter-spacing: -.04em; }
.hero__line { display: block; }
.hero__name {
  background: linear-gradient(100deg, var(--gold), var(--ember) 35%, var(--ember-2) 55%, var(--pink) 75%, var(--gold));
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
  padding-bottom: .08em;
}
.hero__lead { max-width: 560px; margin-top: 26px; color: var(--muted); font-size: clamp(17px, 2.2vw, 20px); }
.hero__cake-hint { margin-top: 18px; color: var(--muted); font-size: 15px; min-height: 1.6em; transition: color .3s; }
.hero__cake-hint.is-win { color: var(--gold); font-weight: 700; }

.hero__scroll {
  position: absolute;
  bottom: 24px;
  width: 26px; height: 42px;
  border: 2px solid var(--border);
  border-radius: 999px;
}
.hero__scroll span {
  position: absolute;
  left: 50%; top: 8px;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--gold);
  animation: scrolldot 1.8s ease-in-out infinite;
}

/* ---------- торт ---------- */
.cake {
  position: relative;
  width: 220px;
  height: 190px;
  margin-top: 46px;
}
.cake__candles {
  position: absolute;
  left: 50%; bottom: 128px;
  transform: translateX(-50%);
  display: flex;
  gap: 16px;
  z-index: 3;
}
.candle {
  position: relative;
  width: 12px; height: 46px;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: repeating-linear-gradient(135deg, #fff 0 6px, var(--pink) 6px 12px);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
/* увеличенная зона нажатия */
.candle::before { content: ""; position: absolute; inset: -34px -10px -6px; }
.candle:nth-child(2n) { background: repeating-linear-gradient(135deg, #fff 0 6px, var(--sky) 6px 12px); height: 52px; }
.flame {
  position: absolute;
  left: 50%; bottom: 100%;
  width: 14px; height: 24px;
  margin-left: -7px;
  margin-bottom: 4px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: radial-gradient(ellipse at 50% 75%, #fff 0 20%, #ffe28a 35%, var(--ember) 70%, transparent 72%);
  box-shadow: 0 0 22px 8px rgba(255, 170, 60, .45);
  transform-origin: 50% 90%;
  animation: flicker .18s ease-in-out infinite alternate;
  transition: opacity .25s, transform .25s;
}
.candle.is-out .flame { opacity: 0; transform: scale(.2) translateY(6px); }
.candle.is-out::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 100%;
  width: 6px; height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: rgba(220, 210, 200, .55);
  filter: blur(2px);
  animation: smoke 1.6s ease-out forwards;
}

.cake__tier {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 14px 14px 10px 10px;
  overflow: hidden;
}
.cake__tier::before {
  /* глазурь с подтёками */
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 26px;
  background:
    radial-gradient(circle at 10% 100%, var(--icing) 9px, transparent 10px) 0 10px / 34px 22px repeat-x,
    linear-gradient(var(--icing), var(--icing)) 0 0 / 100% 14px no-repeat;
}
.cake__tier--top {
  --icing: #ffe9f1;
  bottom: 74px;
  width: 150px; height: 58px;
  background: linear-gradient(180deg, #ff9ab9, #e8628f);
  z-index: 2;
}
.cake__tier--bottom {
  --icing: #fff2dc;
  bottom: 16px;
  width: 210px; height: 66px;
  background: linear-gradient(180deg, #8a4b2c, #5d2f1a);
}
.cake__tier--bottom::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 14px;
  height: 8px;
  background: radial-gradient(circle, var(--gold) 3px, transparent 4px) 0 0 / 18px 8px repeat-x;
}
.cake__plate {
  position: absolute;
  left: 50%; bottom: 4px;
  transform: translateX(-50%);
  width: 250px; height: 16px;
  border-radius: 50%;
  background: linear-gradient(180deg, #e8e1da, #a69a90);
  box-shadow: 0 18px 40px -8px rgba(0, 0, 0, .7);
}

/* =========================================================
   BENTO
   ========================================================= */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 16px;
}
.tile {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .4s var(--ease), border-color .4s, opacity 1s var(--ease);
}
.tile:hover { border-color: rgba(255, 195, 90, .35); }
.tile h3 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
.tile p { color: var(--muted); }
.tile__emoji { font-size: 44px; line-height: 1; margin-bottom: auto; padding-bottom: 18px; }

.tile--dad {
  grid-column: span 4;
  grid-row: span 2;
  background:
    radial-gradient(500px 300px at 100% 0%, rgba(255, 106, 43, .35), transparent 60%),
    var(--surface);
}
.tile--dad h3 { font-size: clamp(44px, 7vw, 88px); font-weight: 900; }
.tile--dad .tile__emoji { font-size: 72px; }
.tile--dad p { max-width: 460px; font-size: 18px; }
.tile__level { display: flex; align-items: center; gap: 14px; margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--muted); }
.tile__level b { color: var(--gold); font-family: var(--font-display); }
.bar { flex: 1; height: 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar__fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold), var(--ember), var(--ember-2));
  transition: width 2s var(--ease) .4s;
}
.is-in .bar__fill { width: var(--w); }

.tile--husband { grid-column: span 2; background: linear-gradient(160deg, rgba(255, 122, 168, .22), transparent 70%), var(--surface); }
.tile--bbq { grid-column: span 2; background: linear-gradient(160deg, rgba(255, 106, 43, .28), transparent 70%), var(--surface); }

.tile--insta {
  grid-column: span 3;
  flex-direction: row;
  align-items: center;
  gap: 22px;
  text-decoration: none;
  background: linear-gradient(120deg, #feda75 -20%, #fa7e1e 15%, #d62976 50%, #962fbf 80%, #4f5bd5 115%);
  border: 0;
}
.tile--insta p { color: rgba(255, 255, 255, .85); }
.tile--insta:hover { transform: translateY(-4px) rotate(-.6deg); }
.tile__icon { width: 64px; height: 64px; flex: none; color: #fff; }

.tile--stats {
  grid-column: span 3;
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  text-align: center;
}
.stat b { display: block; font: 900 clamp(40px, 6vw, 64px)/1 var(--font-display); color: var(--gold); }
.stat span { font-size: 14px; color: var(--muted); }

/* =========================================================
   FAMILY
   ========================================================= */
.family {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.person {
  margin: 0;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform .5s var(--ease), opacity 1s var(--ease), box-shadow .5s;
}
.person:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px var(--accent); }
.person:nth-child(2) { transition-delay: .1s; }
.person:nth-child(3) { transition-delay: .2s; }
.person__photo {
  position: relative;
  aspect-ratio: 4 / 4.4;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 70%, white), transparent 60%),
    linear-gradient(160deg, var(--accent), color-mix(in srgb, var(--accent) 30%, #120c0a));
  background-size: cover;
  background-position: center;
}
.person__photo.has-photo .person__initial { display: none; }
.person__initial {
  font: 900 clamp(90px, 14vw, 160px)/1 var(--font-display);
  color: rgba(255, 255, 255, .9);
  mix-blend-mode: overlay;
}
.person figcaption { padding: 24px 26px 30px; }
.person__role { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.person h3 { font-size: 32px; font-weight: 800; margin: 6px 0 12px; }
.person__quote { font: 600 26px/1.15 var(--font-hand); color: var(--text); opacity: .9; }

.family-photo {
  margin-top: 20px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.family-photo img { width: 100%; height: auto; }

/* =========================================================
   GRILL
   ========================================================= */
.grill {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(18px, 3vw, 28px);
  border-radius: var(--radius);
  background: linear-gradient(180deg, #2a2421, #161210);
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.grill__score {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--muted);
}
.grill__score div { display: flex; align-items: baseline; gap: 6px; }
.grill__score b { font: 800 22px/1 var(--font-display); color: var(--text); }
.grill__score #grillBurnt { color: var(--ember-2); }
.grill__score .btn { margin-left: auto; }

.grill__body {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #0c0908;
  box-shadow: inset 0 0 0 6px #3a3330, inset 0 0 40px rgba(0, 0, 0, .9);
}
.grill__coals {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 70%, rgba(255, 90, 20, .9), transparent 18%),
    radial-gradient(circle at 40% 85%, rgba(255, 140, 40, .8), transparent 16%),
    radial-gradient(circle at 70% 75%, rgba(255, 70, 20, .9), transparent 18%),
    radial-gradient(circle at 88% 60%, rgba(255, 150, 50, .7), transparent 15%),
    radial-gradient(circle at 55% 40%, rgba(255, 90, 30, .6), transparent 20%),
    radial-gradient(circle at 25% 30%, rgba(255, 120, 40, .5), transparent 18%),
    #1a0c06;
  animation: coals 3s ease-in-out infinite alternate;
}
.grill__grate {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(12px, 3vw, 26px);
  padding: clamp(20px, 4vw, 40px);
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(150, 140, 135, .55) 22px 26px);
}

.meat {
  --c: #e2556a;
  position: relative;
  aspect-ratio: 1.45;
  border: 0;
  padding: 0;
  cursor: pointer;
  width: 86%;
  justify-self: center;
  border-radius: 46% 54% 50% 48% / 58% 48% 52% 42%;
  background:
    radial-gradient(ellipse at 30% 25%, rgba(255, 255, 255, .22), transparent 40%),
    radial-gradient(ellipse 34% 9% at 58% 42%, color-mix(in srgb, var(--c) 35%, #fff1e6) 40%, transparent 100%),
    radial-gradient(ellipse 22% 7% at 34% 66%, color-mix(in srgb, var(--c) 45%, #fff1e6) 40%, transparent 100%),
    radial-gradient(ellipse 14% 6% at 74% 70%, color-mix(in srgb, var(--c) 50%, #fff1e6) 40%, transparent 100%),
    var(--c);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, .55),
    inset 0 0 0 6px color-mix(in srgb, var(--c) 45%, #fff1e6),
    inset 0 -8px 14px rgba(0, 0, 0, .3);
  transition: transform .35s var(--ease), background-color .3s, opacity .4s;
  -webkit-tap-highlight-color: transparent;
}
.meat:nth-child(2n) { border-radius: 52% 48% 44% 56% / 46% 56% 44% 54%; }
.meat:nth-child(3n) { border-radius: 58% 42% 50% 50% / 50% 50% 50% 50%; }
.meat::after {
  /* полоски от решётки */
  content: "";
  position: absolute;
  inset: 18% 14%;
  border-radius: inherit;
  background: repeating-linear-gradient(-35deg, transparent 0 14px, rgba(30, 12, 6, .7) 14px 19px);
  opacity: var(--marks, 0);
  transition: opacity .3s;
}
.meat.is-flipping { animation: flip .45s var(--ease); }
.meat.is-sizzle { animation: sizzle .12s linear infinite; }
.meat.is-sizzle::before {
  content: "";
  position: absolute;
  left: 30%; top: -10%;
  width: 40%; height: 40%;
  border-radius: 50%;
  background: rgba(220, 220, 220, .35);
  filter: blur(8px);
  animation: steam 1.2s ease-out infinite;
}
.meat.is-ready { outline: 3px solid var(--gold); outline-offset: 4px; }
.meat.is-ready::before {
  content: "Снять ✓";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  padding: 6px 12px;
  border-radius: 99px;
  background: var(--gold);
  color: #1a0d07;
  font: 800 13px/1 var(--font-body);
  white-space: nowrap;
}
.meat.is-done { opacity: 0; transform: translateY(-40px) scale(.6); pointer-events: none; }
.meat.is-burnt { pointer-events: none; opacity: .6; }
.meat__sides {
  position: absolute;
  left: 50%; bottom: -14px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 2;
}
.meat__sides i {
  width: 22px; height: 6px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .15);
  overflow: hidden;
  position: relative;
}
.meat__sides i::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--p, 0%);
  background: var(--gold);
}
.meat__sides i.is-over::after { background: var(--ember-2); }

.grill__msg { margin-top: 18px; text-align: center; color: var(--muted); min-height: 1.6em; }
.grill__msg.is-win { color: var(--gold); font-weight: 700; }

.rules {
  list-style: none;
  padding: 0;
  margin: 40px auto 0;
  max-width: 820px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.rules li {
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}
.rules b { font: 800 14px/1 var(--font-display); color: var(--ember); }

/* =========================================================
   WISHES
   ========================================================= */
.wish-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  margin-bottom: 40px;
}
.wish-card__inner {
  width: 100%;
  max-width: 720px;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 40px clamp(22px, 5vw, 56px);
  border-radius: var(--radius);
  text-align: center;
  background:
    radial-gradient(400px 200px at 50% 0%, rgba(255, 195, 90, .22), transparent 70%),
    var(--surface);
  border: 1px solid var(--border);
  perspective: 800px;
}
.wish-card__inner.is-flip { animation: wishflip .6s var(--ease); }
.wish-card__emoji { font-size: 56px; line-height: 1; }
.wish-card__text { font: 700 clamp(20px, 3vw, 28px)/1.3 var(--font-display); letter-spacing: -.01em; }

.letter {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px);
  border-radius: 8px;
  background: #fbf3e7;
  color: #3a2418;
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, .9);
  transform: rotate(-1deg);
  font-size: 18px;
  line-height: 1.7;
}
.letter.is-in { transform: rotate(-1deg); }
.letter p + p { margin-top: 14px; }
.letter__hello { font: 600 40px/1 var(--font-hand); color: #b3401a; margin-bottom: 18px !important; }
.letter__sign { font: 600 32px/1.1 var(--font-hand); text-align: right; color: #b3401a; margin-top: 24px !important; }

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  margin-top: clamp(100px, 14vw, 160px);
  padding: clamp(60px, 8vw, 100px) var(--gutter) 50px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: radial-gradient(800px 300px at 50% 0%, rgba(255, 106, 43, .15), transparent 70%);
}
.footer__big { font: 900 clamp(32px, 7vw, 80px)/1 var(--font-display); letter-spacing: -.03em; }
.footer__big span { color: var(--ember); }
.footer__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 36px 0; }
.footer__small { color: var(--muted); font-size: 14px; }

/* =========================================================
   AUDIO PLAYER
   ========================================================= */
.player {
  position: fixed;
  right: 16px; bottom: 16px;
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(18, 12, 10, .7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: var(--text);
  font: 700 13px/1 var(--font-body);
  cursor: pointer;
}
.player[hidden] { display: none; }
.player__eq { display: flex; align-items: flex-end; gap: 3px; height: 16px; }
.player__eq i { width: 3px; height: 100%; border-radius: 2px; background: var(--ember); transform-origin: bottom; animation: eq 1s ease-in-out infinite; }
.player__eq i:nth-child(2) { animation-delay: -.3s; background: var(--gold); }
.player__eq i:nth-child(3) { animation-delay: -.6s; }
.player__eq i:nth-child(4) { animation-delay: -.15s; background: var(--gold); }
.player.is-paused .player__eq i { animation-play-state: paused; transform: scaleY(.3); }

/* =========================================================
   KEYFRAMES
   ========================================================= */
@keyframes float { 50% { transform: translateY(-12px) rotate(-1deg); } }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .7; } }
@keyframes shine { to { background-position: -250% 0; } }
@keyframes flicker { from { transform: scaleY(1) rotate(-2deg); } to { transform: scaleY(1.12) rotate(2deg); } }
@keyframes smoke { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-40px) scale(4); } }
@keyframes scrolldot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }
@keyframes coals { from { filter: brightness(.85); } to { filter: brightness(1.2); } }
@keyframes flip { 50% { transform: rotateX(90deg) scale(1.1) translateY(-14px); } }
@keyframes sizzle { 50% { transform: translateX(1px); } }
@keyframes steam { from { opacity: .8; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(-30px) scale(1.6); } }
@keyframes wishflip { 0% { transform: rotateY(0); } 50% { transform: rotateY(90deg); } 100% { transform: rotateY(0); } }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* =========================================================
   ADAPTIVE
   ========================================================= */
@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile--dad { grid-column: span 2; grid-row: auto; }
  .tile--husband, .tile--bbq { grid-column: span 1; }
  .tile--insta, .tile--stats { grid-column: span 2; }
  .family { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .person__photo { aspect-ratio: 4 / 3.2; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .nav { gap: 10px; padding-left: 16px; }
  .nav__links a { padding: 8px 9px; font-size: 13px; }
  .nav__logo { font-size: 14px; }
  .bento { grid-template-columns: 1fr; }
  .tile--dad, .tile--husband, .tile--bbq, .tile--insta, .tile--stats { grid-column: auto; }
  .tile { padding: 24px; }
  .tile--stats { gap: 8px; }
  .stat span { font-size: 12px; }
  .grill__grate { grid-template-columns: repeat(2, 1fr); }
  .grill__score { gap: 14px; }
  .rules { grid-template-columns: 1fr; }
  .cake { transform: scale(.9); margin-top: 30px; }
}

@media (max-width: 380px) {
  .nav__links a:last-child { display: none; }
}

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