
:root {
  --bg: #06131f;
  --bg-soft: #0a2031;
  --card: rgba(255,255,255,.07);
  --line: rgba(255,255,255,.14);
  --text: #f5f7f8;
  --muted: #a8bbc8;
  --cyan: #4ed9e6;
  --yellow: #ffd35a;
  --orange: #ff7a45;
  --red: #ff4d5f;
  --green: #63e6a8;
  --radius: 28px;
  --shadow: 0 24px 80px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}
body::selection { background: var(--yellow); color: #111; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.section { padding: 110px 0; }
.section-heading { margin-bottom: 44px; }
.section-heading h2, .pipe-copy h2, .rocket-copy h2, .wishes-copy h2, .finale h2 {
  margin: 8px 0 0;
  font-family: "Unbounded", "Manrope", sans-serif;
  font-size: clamp(2rem, 4.6vw, 4.4rem);
  line-height: 1.03;
  letter-spacing: -.05em;
}
.section-heading--split { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.section-heading--split > p { max-width: 420px; color: var(--muted); margin: 0; }
.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

#confetti { position: fixed; inset: 0; z-index: 100; pointer-events: none; }

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 25%, rgba(255,122,69,.18), transparent 26%),
    radial-gradient(circle at 20% 70%, rgba(78,217,230,.12), transparent 30%),
    linear-gradient(145deg, #06131f 0%, #092337 54%, #071824 100%);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}
.hero__glow { position: absolute; border-radius: 50%; filter: blur(20px); opacity: .24; }
.hero__glow--one { width: 420px; height: 420px; background: var(--orange); top: -210px; right: -80px; }
.hero__glow--two { width: 300px; height: 300px; background: var(--cyan); bottom: 60px; left: -180px; }
.nav { position: relative; z-index: 4; display: flex; justify-content: space-between; align-items: center; padding-top: 28px; }
.nav__brand { font-family: "Unbounded", sans-serif; font-weight: 800; font-size: 1rem; }
.nav__brand span { margin-right: 7px; }
.nav__button { border: 1px solid var(--line); padding: 11px 17px; border-radius: 999px; font-size: .83rem; color: #d6e2e8; backdrop-filter: blur(12px); transition: .25s ease; }
.nav__button:hover { background: #fff; color: #06131f; transform: translateY(-2px); }
.hero__grid { position: relative; z-index: 3; display: grid; grid-template-columns: 1.03fr .87fr; align-items: center; gap: 70px; padding: 80px 0 100px; }
.hero__copy h1 {
  font-family: "Unbounded", sans-serif;
  margin: 0;
  font-size: clamp(3.2rem, 7vw, 7.4rem);
  line-height: .92;
  letter-spacing: -.075em;
}
.hero__copy h1 span { color: var(--yellow); text-shadow: 0 8px 30px rgba(255,211,90,.16); }
.hero__lead { max-width: 690px; color: #bed0da; font-size: clamp(1.05rem, 1.6vw, 1.32rem); line-height: 1.7; margin: 30px 0; }
.pulse-dot { display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(255,77,95,.8); animation: pulse 1.7s infinite; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 16px;
  font-family: inherit;
  font-size: .94rem;
  font-weight: 800;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-3px); }
.button--primary { color: #17200b; background: var(--yellow); box-shadow: 0 13px 40px rgba(255,211,90,.2); }
.button--primary:hover { box-shadow: 0 18px 44px rgba(255,211,90,.3); }
.button--ghost { border: 1px solid var(--line); color: #fff; background: rgba(255,255,255,.04); }
.button--ghost:hover { background: rgba(255,255,255,.1); }
.statusbar { margin-top: 34px; display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .8rem; }
.statusbar span { border: 1px solid var(--line); border-radius: 999px; padding: 7px 11px; }
.statusbar strong { color: var(--green); padding: 7px 0; }
.hero__visual { position: relative; min-height: 650px; display: grid; place-items: center; }
.portrait { position: relative; width: min(100%, 480px); border-radius: 48% 48% 24px 24px; padding: 10px; background: linear-gradient(145deg, rgba(255,255,255,.5), rgba(255,255,255,.06)); box-shadow: var(--shadow); transform: rotate(2deg); }
.portrait::before { content: ""; position: absolute; inset: -24px; border: 1px solid rgba(255,255,255,.12); border-radius: 50% 50% 40px 40px; z-index: -1; }
.portrait img { height: 590px; object-fit: cover; object-position: 50% 32%; border-radius: 47% 47% 18px 18px; }
.portrait__tag { position: absolute; right: -32px; bottom: 35px; background: var(--yellow); color: #14200d; padding: 14px 17px; border-radius: 14px; font-weight: 900; font-size: .78rem; line-height: 1.25; transform: rotate(-5deg); box-shadow: 0 16px 30px rgba(0,0,0,.28); }
.pressure-card { position: absolute; left: -10px; top: 48px; width: 190px; display: flex; align-items: center; gap: 13px; padding: 14px; background: rgba(4,18,28,.84); border: 1px solid var(--line); border-radius: 20px; backdrop-filter: blur(14px); box-shadow: var(--shadow); transform: rotate(-5deg); }
.pressure-card span { color: var(--muted); font-size: .67rem; line-height: 1.25; display: block; }
.pressure-card strong { color: var(--green); font-family: "Unbounded", sans-serif; font-size: 1.25rem; }
.gauge { position: relative; width: 62px; height: 62px; flex: 0 0 62px; border-radius: 50%; border: 5px solid #203644; box-shadow: inset 0 0 0 2px rgba(255,255,255,.07); }
.gauge__needle { position: absolute; width: 24px; height: 3px; background: var(--red); left: 29px; top: 29px; transform-origin: left center; transform: rotate(-35deg); border-radius: 3px; animation: needle 2.6s ease-in-out infinite alternate; }
.gauge__center { position: absolute; width: 8px; height: 8px; background: #fff; border-radius: 50%; left: 25px; top: 25px; }
.ticker { position: relative; z-index: 3; overflow: hidden; border-top: 1px solid rgba(255,255,255,.12); border-bottom: 1px solid rgba(255,255,255,.12); background: rgba(0,0,0,.16); transform: rotate(-1deg) scale(1.02); }
.ticker__track { width: max-content; display: flex; align-items: center; gap: 28px; padding: 14px 0; animation: ticker 28s linear infinite; font-family: "Unbounded", sans-serif; font-size: .75rem; color: #d8e6ed; letter-spacing: .08em; }
.ticker__track b { color: var(--yellow); }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric { min-height: 230px; padding: 26px; border-radius: var(--radius); background: linear-gradient(150deg, rgba(255,255,255,.095), rgba(255,255,255,.035)); border: 1px solid var(--line); position: relative; overflow: hidden; }
.metric::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; right: -60px; bottom: -70px; background: rgba(78,217,230,.09); }
.metric--danger::after { background: rgba(255,77,95,.12); }
.metric__icon { display: block; font-size: 1.8rem; margin-bottom: 38px; }
.metric strong { font-family: "Unbounded", sans-serif; font-size: clamp(2.2rem, 4vw, 4rem); line-height: 1; letter-spacing: -.06em; }
.metric em { font-family: "Unbounded", sans-serif; font-style: normal; color: var(--cyan); font-size: 1.15rem; margin-left: 3px; }
.metric p { color: var(--muted); margin: 12px 0 0; line-height: 1.45; }

.section--pipe { background: #f0eee8; color: #101820; position: relative; overflow: hidden; }
.section--pipe::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(#8a8d8f 1px, transparent 1px); background-size: 20px 20px; opacity: .13; }
.pipe-layout { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 75px; }
.pipe-scene { height: 440px; position: relative; overflow: hidden; border-radius: 34px; background: #d8d2c6; box-shadow: 0 30px 70px rgba(28,28,28,.18); }
.wall-grid { position: absolute; inset: 0; background: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px); background-size: 52px 52px; }
.pipe { position: absolute; top: 178px; width: 45%; height: 86px; background: linear-gradient(#596671, #9ca7ae 32%, #58636a 70%, #303b44); border: 4px solid #303941; box-shadow: 0 15px 24px rgba(0,0,0,.2); }
.pipe::after { content: ""; position: absolute; top: -13px; width: 25px; height: 105px; border-radius: 8px; background: linear-gradient(90deg, #39444c, #9ca5aa, #39444c); border: 3px solid #2f3940; }
.pipe--left { left: -10px; transform: rotate(-2deg); border-radius: 0 12px 12px 0; }
.pipe--left::after { right: -14px; }
.pipe--right { right: -10px; transform: rotate(2deg); border-radius: 12px 0 0 12px; }
.pipe--right::after { left: -14px; }
.pipe-gap { position: absolute; width: 120px; height: 160px; left: 50%; top: 135px; transform: translateX(-50%); filter: blur(.2px); }
.gas { position: absolute; border-radius: 50%; background: rgba(255,221,80,.68); box-shadow: 0 0 40px rgba(255,190,30,.46); animation: gas 1.8s infinite ease-out; }
.gas--1 { width: 60px; height: 60px; left: 15px; top: 52px; }
.gas--2 { width: 40px; height: 40px; right: 14px; top: 20px; animation-delay: -.45s; }
.gas--3 { width: 26px; height: 26px; left: 45px; top: 0; animation-delay: -.8s; }
.gas--4 { width: 32px; height: 32px; right: 0; top: 86px; animation-delay: -1.15s; }
.warning-sign { position: absolute; width: 96px; height: 86px; display: grid; place-items: center; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--yellow); color: #111; font-family: "Unbounded", sans-serif; font-size: 3.2rem; font-weight: 900; clip-path: polygon(50% 0, 100% 100%, 0 100%); padding-top: 23px; }
.pipe-caption { position: absolute; left: 24px; top: 24px; background: #151d22; color: #fff; border-radius: 12px; padding: 10px 13px; font-family: "Unbounded", sans-serif; font-size: .72rem; transform: rotate(-4deg); }
.pipe-copy .eyebrow { color: #ad2e3d; }
.pipe-copy p:not(.eyebrow) { color: #4c575e; font-size: 1.05rem; line-height: 1.75; margin: 24px 0; }
.button--warning { background: #101820; color: #fff; }
.repair-result { margin-top: 18px; min-height: 48px; padding: 14px 16px; border: 1px solid rgba(16,24,32,.15); border-radius: 14px; color: #48525a; font-size: .85rem; background: rgba(255,255,255,.4); }
.repair-result.success { color: #12663d; border-color: rgba(18,102,61,.22); background: rgba(92,220,153,.15); }

.team-grid { display: grid; grid-template-columns: 1.18fr .91fr .91fr; gap: 18px; }
.team-card { position: relative; min-height: 500px; border-radius: 30px; overflow: hidden; background: #122636; border: 1px solid var(--line); }
.team-card img { height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.team-card:hover img { transform: scale(1.045); }
.team-card__overlay { position: absolute; inset: auto 0 0; padding: 95px 24px 25px; background: linear-gradient(transparent, rgba(3,12,18,.95)); }
.team-card__overlay span { color: var(--yellow); font-size: .67rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 800; }
.team-card blockquote { margin: 12px 0 0; font-size: 1rem; line-height: 1.55; font-weight: 700; }

.section--rocket { position: relative; overflow: hidden; background: linear-gradient(160deg, #02060e, #0a1732 55%, #0e2442); }
.stars { position: absolute; inset: 0; opacity: .55; background-image: radial-gradient(circle, white 1px, transparent 1.5px); background-size: 47px 47px; animation: stars 18s linear infinite; }
.rocket-layout { position: relative; display: grid; grid-template-columns: .98fr 1.02fr; gap: 65px; align-items: center; }
.rocket-copy > p:not(.eyebrow):not(.tiny) { color: var(--muted); font-size: 1.06rem; line-height: 1.75; max-width: 600px; }
.launch-panel { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 30px; padding: 16px; border: 1px solid var(--line); background: rgba(255,255,255,.045); border-radius: 20px; }
.launch-status span { display: block; color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; }
.launch-status strong { display: block; margin-top: 5px; color: var(--green); font-size: .9rem; }
.button--launch { background: var(--red); color: #fff; box-shadow: 0 12px 35px rgba(255,77,95,.22); }
.tiny { color: #70899a; font-size: .72rem; margin-top: 17px; }
.space-window { height: 610px; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.16); border-radius: 50% 50% 36px 36px; background: radial-gradient(circle at 50% 70%, rgba(71,118,204,.22), transparent 42%), #020815; box-shadow: inset 0 0 80px rgba(33,114,255,.11), 0 30px 80px rgba(0,0,0,.4); }
.planet { position: absolute; width: 260px; height: 260px; border-radius: 50%; left: -90px; bottom: -85px; background: radial-gradient(circle at 65% 28%, #60d7e0, #1f6890 35%, #102747 75%); box-shadow: 0 0 60px rgba(70,216,230,.2); }
.orbit { position: absolute; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.orbit--one { width: 540px; height: 310px; left: -130px; bottom: -45px; transform: rotate(14deg); }
.orbit--two { width: 400px; height: 580px; right: -170px; top: -120px; transform: rotate(20deg); }
.rocket { position: absolute; left: 50%; top: 46%; width: 100px; height: 230px; transform: translate(-50%,-50%) rotate(7deg); transition: transform 2.4s cubic-bezier(.25,.7,.2,1), opacity 2.2s ease; filter: drop-shadow(0 18px 35px rgba(0,0,0,.55)); }
.rocket.launched { transform: translate(360px,-620px) rotate(29deg) scale(.65); opacity: .15; }
.rocket__body { position: absolute; width: 80px; height: 150px; left: 10px; top: 44px; border-radius: 43px 43px 22px 22px; background: linear-gradient(90deg, #d5dce0, #fff 45%, #9caab5); border: 3px solid #6f7b83; }
.rocket__body span { position: absolute; left: 50%; bottom: 25px; transform: translateX(-50%) rotate(90deg); color: #26323b; font-family: "Unbounded", sans-serif; font-size: .6rem; letter-spacing: .12em; }
.rocket__nose { position: absolute; z-index: 2; left: 10px; top: 0; width: 80px; height: 80px; background: var(--red); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.rocket__window { position: absolute; z-index: 3; width: 34px; height: 34px; border: 6px solid #66737c; background: var(--cyan); border-radius: 50%; left: 33px; top: 78px; box-shadow: inset 8px 8px 10px rgba(255,255,255,.32); }
.rocket__fin { position: absolute; z-index: -1; width: 42px; height: 72px; bottom: 17px; background: var(--red); }
.rocket__fin--left { left: -4px; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.rocket__fin--right { right: -4px; clip-path: polygon(0 0, 100% 100%, 0 100%); }
.rocket__fire { position: absolute; width: 44px; height: 84px; left: 28px; bottom: -54px; background: linear-gradient(var(--yellow), var(--orange), transparent); clip-path: polygon(15% 0, 85% 0, 100% 55%, 64% 45%, 50% 100%, 36% 45%, 0 55%); animation: fire .22s infinite alternate; }
.space-label { position: absolute; right: 25px; bottom: 23px; color: #718ca0; text-align: right; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; }
.space-label strong { color: var(--red); font-size: .82rem; }

.wishes-layout { display: grid; grid-template-columns: .78fr 1.22fr; gap: 75px; align-items: center; }
.travel-photo { position: relative; padding: 9px; border-radius: 28px; background: linear-gradient(145deg, rgba(255,255,255,.3), rgba(255,255,255,.04)); transform: rotate(-2deg); box-shadow: var(--shadow); }
.travel-photo img { min-height: 580px; object-fit: cover; border-radius: 21px; }
.travel-photo__stamp { position: absolute; right: -28px; top: 45px; border: 4px double var(--red); color: var(--red); border-radius: 50%; width: 125px; height: 125px; display: grid; place-content: center; text-align: center; font-family: "Unbounded", sans-serif; font-size: .7rem; transform: rotate(16deg); background: rgba(6,19,31,.88); }
.travel-photo__stamp span { font-family: "Manrope", sans-serif; text-transform: uppercase; font-size: .58rem; }
.wish-list { list-style: none; padding: 0; margin: 32px 0; }
.wish-list li { display: grid; grid-template-columns: 48px 1fr; gap: 12px; padding: 15px 0; border-bottom: 1px solid var(--line); color: #d7e2e8; line-height: 1.5; }
.wish-list li span { color: var(--cyan); font-family: "Unbounded", sans-serif; font-size: .72rem; }
.final-toast { display: flex; gap: 18px; align-items: center; padding: 20px; border-radius: 20px; background: rgba(255,211,90,.08); border: 1px solid rgba(255,211,90,.22); }
.final-toast > span { font-size: 2rem; }
.final-toast p { margin: 0; color: #d8e2e7; line-height: 1.55; }
.final-toast strong { color: var(--yellow); }

.finale { padding: 100px 0; text-align: center; background: var(--yellow); color: #111c22; position: relative; overflow: hidden; }
.finale::before, .finale::after { content: ""; position: absolute; border: 30px solid rgba(255,255,255,.25); border-radius: 50%; width: 280px; height: 280px; }
.finale::before { left: -100px; top: -150px; }
.finale::after { right: -120px; bottom: -170px; }
.finale__inner { position: relative; z-index: 2; }
.finale p { text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 800; }
.finale h2 { max-width: 880px; margin: 15px auto 32px; }
.finale .button--primary { background: #111c22; color: #fff; }
.footer { min-height: 105px; display: flex; align-items: center; justify-content: space-between; gap: 30px; color: #7f98a8; font-size: .78rem; }
.footer a { color: var(--cyan); }
.toast { position: fixed; z-index: 120; left: 50%; bottom: 24px; transform: translate(-50%, 150%); max-width: calc(100% - 32px); padding: 13px 17px; border-radius: 14px; color: #06131f; background: var(--green); font-weight: 800; font-size: .84rem; box-shadow: 0 18px 50px rgba(0,0,0,.35); transition: transform .35s ease; }
.toast.show { transform: translate(-50%, 0); }

@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,77,95,0); } 100% { box-shadow: 0 0 0 0 rgba(255,77,95,0); } }
@keyframes needle { from { transform: rotate(-45deg); } to { transform: rotate(45deg); } }
@keyframes ticker { to { transform: translateX(-50%); } }
@keyframes gas { 0% { transform: translate(0,35px) scale(.2); opacity: 0; } 35% { opacity: .8; } 100% { transform: translate(12px,-70px) scale(1.4); opacity: 0; } }
@keyframes stars { to { transform: translateY(47px); } }
@keyframes fire { from { transform: scaleY(.85); filter: brightness(.9); } to { transform: scaleY(1.15); filter: brightness(1.2); } }

@media (max-width: 1000px) {
  .hero__grid, .pipe-layout, .rocket-layout, .wishes-layout { grid-template-columns: 1fr; }
  .hero__copy { padding-top: 35px; }
  .hero__visual { min-height: 610px; }
  .metrics { grid-template-columns: repeat(2,1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .team-card--wide { grid-column: 1 / -1; min-height: 560px; }
  .rocket-copy { order: 2; }
  .space-window { max-width: 670px; width: 100%; margin-inline: auto; }
  .travel-photo { max-width: 560px; width: 100%; margin-inline: auto; }
}

@media (max-width: 680px) {
  .shell { width: min(100% - 24px, 1180px); }
  .section { padding: 78px 0; }
  .nav__button { display: none; }
  .hero__grid { padding: 55px 0 80px; gap: 35px; }
  .hero__copy h1 { font-size: clamp(3rem, 16vw, 5.2rem); }
  .hero__lead { font-size: 1rem; }
  .hero__actions .button { width: 100%; }
  .hero__visual { min-height: 470px; }
  .portrait { width: calc(100% - 24px); border-radius: 44% 44% 20px 20px; }
  .portrait img { height: 430px; }
  .portrait__tag { right: -8px; bottom: 18px; }
  .pressure-card { left: 0; top: 14px; transform: rotate(-3deg) scale(.9); transform-origin: left top; }
  .metrics { grid-template-columns: 1fr; }
  .metric { min-height: 205px; }
  .pipe-layout { gap: 45px; }
  .pipe-scene { height: 330px; }
  .pipe { top: 130px; height: 70px; }
  .pipe::after { height: 87px; top: -12px; }
  .pipe-gap { top: 95px; }
  .warning-sign { bottom: 18px; transform: translateX(-50%) scale(.8); }
  .section-heading--split { display: block; }
  .section-heading--split > p { margin-top: 18px; }
  .team-grid { grid-template-columns: 1fr; }
  .team-card, .team-card--wide { grid-column: auto; min-height: 480px; }
  .launch-panel { align-items: stretch; flex-direction: column; }
  .space-window { height: 500px; }
  .rocket { transform: translate(-50%,-50%) rotate(7deg) scale(.82); }
  .rocket.launched { transform: translate(280px,-520px) rotate(29deg) scale(.45); }
  .travel-photo img { min-height: 450px; }
  .travel-photo__stamp { right: -3px; top: 25px; transform: rotate(12deg) scale(.78); }
  .footer { padding: 28px 0; align-items: flex-start; flex-direction: column; }
}

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

/* === Birthday animation upgrade === */
.balloon-layer {
  position: fixed;
  inset: 0;
  z-index: 96;
  pointer-events: none;
  overflow: hidden;
}
.balloon {
  position: absolute;
  bottom: -180px;
  width: var(--size, 54px);
  height: calc(var(--size, 54px) * 1.2);
  left: var(--left, 50%);
  animation: balloonUp var(--duration, 8s) ease-in forwards;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,.22));
}
.balloon__body {
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 46% 46%;
  background: var(--balloon-color, #ffd35a);
  box-shadow: inset -10px -12px 0 rgba(0,0,0,.08), inset 10px 12px 0 rgba(255,255,255,.18);
}
.balloon__body::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 12px;
  height: 12px;
  background: inherit;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 2px;
}
.balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% + 6px);
  width: 2px;
  height: var(--string-height, 90px);
  background: rgba(255,255,255,.6);
  transform: translateX(-50%);
}
.balloon--emoji .balloon__body {
  display: grid;
  place-items: center;
  color: #111;
  font-size: calc(var(--size, 54px) * .36);
  font-weight: 900;
}

.space-window.party {
  box-shadow: inset 0 0 110px rgba(33,114,255,.18), 0 0 0 1px rgba(255,255,255,.08), 0 30px 80px rgba(0,0,0,.4), 0 0 60px rgba(255,211,90,.16);
}
.rocket {
  will-change: transform;
}
.rocket__rider {
  position: absolute;
  z-index: 7;
  width: 90px;
  left: 50%;
  top: 4px;
  transform: translate(-50%, -62%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.rocket__rider img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center;
  border: 4px solid #fff;
  box-shadow: 0 12px 24px rgba(0,0,0,.35);
}
.rocket__rider span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(10px);
  font-size: .62rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-weight: 900;
}
.rocket__rider::before,
.rocket__rider::after {
  content: "";
  position: absolute;
  bottom: 10px;
  width: 24px;
  height: 3px;
  background: rgba(255,255,255,.7);
  border-radius: 999px;
}
.rocket__rider::before { left: 9px; transform: rotate(24deg); }
.rocket__rider::after { right: 9px; transform: rotate(-24deg); }
.rocket__body {
  overflow: hidden;
}
.rocket__window {
  overflow: hidden;
}
.rocket__window::after {
  content: "🚀";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: .8rem;
  opacity: .22;
}
.rocket__fire {
  filter: drop-shadow(0 0 16px rgba(255,180,0,.45));
}
.rocket.launched .rocket__fire {
  animation-duration: .09s;
  height: 112px;
  bottom: -82px;
  filter: drop-shadow(0 0 28px rgba(255,180,0,.75));
}
.launch-panel {
  position: relative;
  z-index: 2;
}
@keyframes balloonUp {
  0% {
    transform: translate3d(0, 0, 0) rotate(-6deg);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  40% {
    transform: translate3d(-18px, -35vh, 0) rotate(5deg);
  }
  75% {
    transform: translate3d(20px, -78vh, 0) rotate(-4deg);
    opacity: 1;
  }
  100% {
    transform: translate3d(-8px, -118vh, 0) rotate(8deg);
    opacity: 0;
  }
}

@media (max-width: 680px) {
  .rocket__rider {
    width: 76px;
    top: 8px;
  }
  .rocket__rider img {
    width: 64px;
    height: 64px;
  }
  .rocket__rider span {
    font-size: .56rem;
    padding: 4px 8px;
  }
  .balloon {
    width: var(--size, 48px);
    height: calc(var(--size, 48px) * 1.18);
  }
}

/* === Maximum birthday mode: gas chaos, RКИИЭ in space and vacation escape === */
.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__button--vacation {
  border-color: rgba(255,211,90,.35);
  color: var(--yellow);
}

.pipe-scene.is-chaotic {
  animation: pipePanic .16s linear 8;
}
.pipe-scene.is-repaired .pipe {
  filter: saturate(.75) brightness(1.08);
}
.alarm-light {
  position: absolute;
  right: 28px;
  top: 24px;
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 8px 8px;
  background: #ff334a;
  border: 5px solid #363f46;
  box-shadow: 0 0 0 7px rgba(255,51,74,.12), 0 0 30px rgba(255,51,74,.65);
  animation: alarmBlink .48s steps(2) infinite;
}
.alarm-light::after {
  content: "";
  position: absolute;
  width: 46px;
  height: 7px;
  left: 50%;
  bottom: -11px;
  transform: translateX(-50%);
  background: #363f46;
  border-radius: 8px;
}
.pipe-eyes {
  position: absolute;
  left: 50%;
  top: 153px;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 8px;
}
.pipe-eyes i {
  width: 20px;
  height: 26px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid #202a31;
  position: relative;
}
.pipe-eyes i::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 9px;
  border-radius: 50%;
  background: #111;
  right: 2px;
  bottom: 4px;
  animation: nervousEyes .9s infinite alternate;
}
.gas-joke {
  position: absolute;
  z-index: 5;
  padding: 7px 9px;
  border-radius: 11px;
  background: #fff;
  color: #111820;
  font-size: .64rem;
  line-height: 1.15;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0,0,0,.15);
  opacity: 0;
  animation: gasJoke 3.2s infinite ease-in-out;
}
.gas-joke::after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  background: #fff;
  transform: rotate(45deg);
  bottom: -4px;
  left: 18px;
}
.gas-joke--one { left: -74px; top: -22px; animation-delay: .25s; }
.gas-joke--two { right: -73px; top: 22px; animation-delay: 1.55s; }
.repair-tape {
  position: absolute;
  z-index: 8;
  left: 50%;
  top: 182px;
  transform: translate(-50%, -50%) rotate(-8deg) scale(.15);
  opacity: 0;
  padding: 18px 26px;
  background: repeating-linear-gradient(-45deg, #f6cf37 0 14px, #161b1e 14px 28px);
  color: #fff;
  border: 4px solid #fff;
  border-radius: 8px;
  font-family: "Unbounded", sans-serif;
  font-size: .72rem;
  letter-spacing: .08em;
  text-shadow: 0 2px 3px #000;
  box-shadow: 0 14px 30px rgba(0,0,0,.28);
  transition: .45s cubic-bezier(.2,.8,.2,1.3);
}
.pipe-scene.is-repaired .repair-tape {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(-5deg) scale(1);
}
.pipe-scene.is-repaired .gas,
.pipe-scene.is-repaired .gas-joke,
.pipe-scene.is-repaired .alarm-light {
  animation-play-state: paused;
  opacity: 0;
  transition: opacity .25s ease;
}
.pipe-scene.is-repaired .pipe-eyes i::after {
  right: 5px;
  bottom: 7px;
}

.space-joke {
  position: absolute;
  z-index: 6;
  max-width: 190px;
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 13px;
  background: rgba(3,11,25,.65);
  color: #dbe9f4;
  backdrop-filter: blur(9px);
  font-size: .67rem;
  line-height: 1.35;
  opacity: .66;
  animation: spaceFloat 4s ease-in-out infinite alternate;
}
.space-joke--one { right: 28px; top: 40px; }
.space-joke--two { left: 25px; top: 155px; animation-delay: 1.2s; }
.space-joke--three { right: 36px; bottom: 48px; animation-delay: 2.1s; }
.space-window.party .space-joke {
  opacity: 1;
  border-color: rgba(255,211,90,.38);
}
.space-window.party .space-joke--two {
  background: rgba(255,77,95,.2);
}

/* Vacation escape */
.section--vacation {
  position: relative;
  overflow: hidden;
  color: #15212b;
  background:
    radial-gradient(circle at 78% 20%, rgba(255,255,255,.82), transparent 17%),
    linear-gradient(180deg, #82d9ff 0%, #beeaff 58%, #f3e5b9 58%, #ead195 100%);
}
.vacation-sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.cloud {
  position: absolute;
  width: 145px;
  height: 42px;
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  filter: drop-shadow(0 14px 20px rgba(26,97,130,.10));
  animation: cloudDrift 20s linear infinite;
}
.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: inherit;
}
.cloud::before { width: 70px; height: 70px; left: 22px; bottom: 8px; }
.cloud::after { width: 84px; height: 84px; right: 15px; bottom: 2px; }
.cloud--one { top: 14%; left: -180px; }
.cloud--two { top: 32%; left: -280px; transform: scale(.68); animation-delay: -7s; animation-duration: 26s; }
.cloud--three { top: 8%; left: -220px; transform: scale(1.18); animation-delay: -13s; animation-duration: 31s; }
.vacation-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  align-items: center;
  gap: 62px;
}
.vacation-copy .eyebrow { color: #146f98; }
.vacation-copy > p:not(.eyebrow):not(.tiny) {
  max-width: 620px;
  font-size: 1.06rem;
  line-height: 1.75;
  color: #32505f;
}
.vacation-panel {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(21,33,43,.14);
  border-radius: 22px;
  background: rgba(255,255,255,.62);
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 50px rgba(34,95,122,.12);
}
.vacation-panel span {
  display: block;
  color: #557381;
  font-size: .67rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.vacation-panel strong {
  display: block;
  margin-top: 5px;
  font-family: "Unbounded", sans-serif;
  font-size: .78rem;
}
.button--vacation {
  color: #fff;
  background: #ff624f;
  box-shadow: 0 14px 35px rgba(255,98,79,.25);
}
.vacation-copy .tiny { color: #577989; }
.vacation-scene {
  min-height: 590px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 48px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02)),
    linear-gradient(180deg, transparent 0 66%, rgba(104,151,61,.45) 66% 72%, #d9bd79 72% 100%);
  box-shadow: 0 34px 80px rgba(31,93,118,.18), inset 0 0 60px rgba(255,255,255,.14);
}
.sun {
  position: absolute;
  width: 92px;
  height: 92px;
  right: 44px;
  top: 42px;
  border-radius: 50%;
  background: #ffd45a;
  box-shadow: 0 0 0 18px rgba(255,212,90,.16), 0 0 70px rgba(255,212,90,.45);
  animation: sunPulse 2.2s ease-in-out infinite alternate;
}
.runway {
  position: absolute;
  left: -8%;
  bottom: 35px;
  width: 116%;
  height: 105px;
  background: #56636c;
  transform: perspective(260px) rotateX(8deg);
  clip-path: polygon(10% 0, 90% 0, 100% 100%, 0 100%);
  border-top: 8px solid #f2cf52;
}
.runway::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 38px;
  width: 55%;
  height: 8px;
  transform: translateX(-50%);
  background: repeating-linear-gradient(90deg, #fff 0 42px, transparent 42px 78px);
}
.cage {
  position: absolute;
  z-index: 4;
  width: 250px;
  height: 305px;
  left: 50%;
  bottom: 107px;
  transform: translateX(-50%);
  border: 12px solid #454f56;
  border-radius: 28px 28px 8px 8px;
  background: rgba(255,255,255,.14);
  box-shadow: 0 20px 35px rgba(0,0,0,.20), inset 0 0 0 4px rgba(255,255,255,.24);
  transition: opacity .45s ease, transform .55s ease;
}
.cage::before {
  content: "";
  position: absolute;
  left: -12px;
  right: -12px;
  top: -34px;
  height: 38px;
  border: 10px solid #454f56;
  border-bottom: 0;
  border-radius: 50% 50% 0 0;
}
.cage__sign {
  position: absolute;
  z-index: 8;
  top: -56px;
  left: 50%;
  transform: translateX(-50%) rotate(-4deg);
  min-width: 174px;
  padding: 9px 12px;
  border-radius: 10px;
  background: #ffd35a;
  color: #17202a;
  text-align: center;
  font-family: "Unbounded", sans-serif;
  font-size: .67rem;
  box-shadow: 0 10px 22px rgba(0,0,0,.16);
}
.cage__sign span {
  display: block;
  margin-top: 3px;
  font-family: "Manrope", sans-serif;
  font-size: .58rem;
}
.cage__portrait {
  position: absolute;
  inset: 34px 34px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.cage__portrait img {
  width: 132px;
  height: 168px;
  object-fit: cover;
  border-radius: 70px 70px 20px 20px;
  border: 6px solid rgba(255,255,255,.78);
  box-shadow: 0 16px 26px rgba(0,0,0,.18);
}
.cage__portrait b {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff;
  font-size: .66rem;
}
.cage__bars {
  position: absolute;
  z-index: 9;
  top: 0;
  width: 50%;
  height: 100%;
  background: repeating-linear-gradient(90deg, transparent 0 19px, #3e474e 19px 27px);
  transition: transform 1s cubic-bezier(.2,.8,.2,1);
  transform-origin: left center;
}
.cage__bars--left { left: 0; border-right: 5px solid #3e474e; transform-origin: left center; }
.cage__bars--right { right: 0; border-left: 5px solid #3e474e; transform-origin: right center; }
.cage__lock {
  position: absolute;
  z-index: 12;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #ffd35a;
  font-size: 1.5rem;
  box-shadow: 0 10px 25px rgba(0,0,0,.25);
  transition: transform .45s ease, opacity .25s ease;
}
.vacation-scene.is-escaping .cage__bars--left { transform: perspective(480px) rotateY(-112deg); }
.vacation-scene.is-escaping .cage__bars--right { transform: perspective(480px) rotateY(112deg); }
.vacation-scene.is-escaping .cage__lock { transform: translate(-50%, 170px) rotate(360deg) scale(.25); opacity: 0; }
.vacation-scene.is-escaping .cage__portrait { animation: portraitEscape 1.05s .45s forwards; }
.vacation-scene.is-escaped .cage { opacity: .5; transform: translateX(-50%) scale(.92); }

.vacation-plane {
  position: absolute;
  z-index: 14;
  width: 285px;
  height: 120px;
  left: -380px;
  top: 190px;
  transform: rotate(-5deg);
  filter: drop-shadow(0 24px 22px rgba(0,0,0,.20));
  opacity: 0;
}
.vacation-plane__body {
  position: absolute;
  left: 25px;
  top: 27px;
  width: 225px;
  height: 63px;
  border-radius: 70% 22% 24% 60%;
  background: linear-gradient(#fff, #dce8ef 67%, #9ab2bf);
  border: 3px solid #657c89;
}
.vacation-plane__body::before {
  content: "";
  position: absolute;
  right: -34px;
  top: 11px;
  border-left: 48px solid #f4f9fc;
  border-top: 19px solid transparent;
  border-bottom: 19px solid transparent;
  filter: drop-shadow(3px 0 0 #657c89);
}
.vacation-plane__wing {
  position: absolute;
  z-index: 2;
  left: 105px;
  top: 55px;
  width: 105px;
  height: 42px;
  background: #ff6250;
  clip-path: polygon(0 0, 100% 44%, 33% 100%);
  transform: rotate(5deg);
}
.vacation-plane__tail {
  position: absolute;
  z-index: 3;
  left: 37px;
  top: 5px;
  width: 62px;
  height: 58px;
  background: #ff6250;
  clip-path: polygon(0 100%, 55% 0, 100% 100%);
  transform: rotate(-12deg);
}
.vacation-plane__label {
  position: absolute;
  left: 83px;
  top: 31px;
  color: #24404d;
  font-family: "Unbounded", sans-serif;
  font-size: .47rem;
  letter-spacing: .06em;
}
.vacation-plane__window {
  position: absolute;
  left: 42px;
  top: 7px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid #426271;
  background: #65d5f3;
}
.vacation-plane__window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
}
.vacation-plane__trail {
  position: absolute;
  left: -210px;
  top: 58px;
  white-space: nowrap;
  color: rgba(255,255,255,.9);
  font-weight: 900;
  font-size: .67rem;
  text-shadow: 0 2px 8px rgba(29,80,102,.25);
}
.vacation-scene.is-escaping .vacation-plane {
  animation: planeArrival 1.2s 1.05s cubic-bezier(.16,.77,.27,1) forwards,
             planeDeparture 4.3s 2.45s cubic-bezier(.3,.1,.18,1) forwards;
}
.vacation-stamp {
  position: absolute;
  z-index: 20;
  right: 28px;
  bottom: 28px;
  transform: rotate(12deg) scale(2.4);
  opacity: 0;
  padding: 13px 17px;
  border: 5px double #0b8d61;
  border-radius: 50%;
  color: #0b8d61;
  background: rgba(255,255,255,.75);
  text-align: center;
  font-family: "Unbounded", sans-serif;
  font-size: .65rem;
  transition: .5s 2s cubic-bezier(.2,.8,.2,1.35);
}
.vacation-stamp span { font-size: .52rem; }
.vacation-scene.is-escaping .vacation-stamp {
  opacity: 1;
  transform: rotate(-9deg) scale(1);
}
.finale__buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.button--dark {
  color: #fff;
  background: #20313d;
}

@keyframes pipePanic {
  0%,100% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-5px) rotate(-.4deg); }
  75% { transform: translateX(5px) rotate(.4deg); }
}
@keyframes alarmBlink {
  0%,45% { opacity: 1; filter: brightness(1.25); }
  46%,100% { opacity: .35; filter: brightness(.75); }
}
@keyframes nervousEyes {
  from { transform: translateX(-2px); }
  to { transform: translateX(3px); }
}
@keyframes gasJoke {
  0%,18% { opacity: 0; transform: translateY(20px) scale(.7); }
  30%,62% { opacity: 1; transform: translateY(0) scale(1); }
  80%,100% { opacity: 0; transform: translateY(-22px) scale(.9); }
}
@keyframes spaceFloat {
  from { transform: translateY(-4px) rotate(-1deg); }
  to { transform: translateY(7px) rotate(1deg); }
}
@keyframes cloudDrift {
  from { left: -280px; }
  to { left: calc(100% + 300px); }
}
@keyframes sunPulse {
  from { transform: scale(.95); }
  to { transform: scale(1.04); }
}
@keyframes portraitEscape {
  0% { transform: translate(0,0) scale(1); opacity: 1; }
  48% { transform: translate(0,-18px) scale(.94); opacity: 1; }
  100% { transform: translate(-240px,-70px) scale(.45) rotate(-8deg); opacity: 0; }
}
@keyframes planeArrival {
  0% { left: -380px; top: 250px; opacity: 0; transform: rotate(-2deg) scale(.8); }
  20% { opacity: 1; }
  100% { left: 26%; top: 220px; opacity: 1; transform: rotate(-2deg) scale(1); }
}
@keyframes planeDeparture {
  0% { left: 26%; top: 220px; opacity: 1; transform: rotate(-2deg) scale(1); }
  22% { left: 34%; top: 202px; transform: rotate(-8deg) scale(1); }
  100% { left: 118%; top: -80px; opacity: .2; transform: rotate(-17deg) scale(.62); }
}

@media (max-width: 1000px) {
  .vacation-layout { grid-template-columns: 1fr; }
  .vacation-scene { min-height: 570px; }
}
@media (max-width: 680px) {
  .nav__actions { display: none; }
  .gas-joke { font-size: .55rem; }
  .gas-joke--one { left: -36px; }
  .gas-joke--two { right: -38px; }
  .repair-tape { font-size: .56rem; padding: 13px 18px; top: 148px; }
  .space-joke { max-width: 135px; font-size: .55rem; }
  .space-joke--one { right: 14px; top: 22px; }
  .space-joke--two { left: 12px; top: 125px; }
  .space-joke--three { right: 14px; bottom: 25px; }
  .vacation-panel { align-items: stretch; flex-direction: column; }
  .vacation-scene { min-height: 520px; border-radius: 28px; }
  .cage { width: 205px; height: 265px; bottom: 100px; }
  .cage__portrait img { width: 108px; height: 140px; }
  .cage__bars { background: repeating-linear-gradient(90deg, transparent 0 15px, #3e474e 15px 22px); }
  .vacation-plane { transform: scale(.72); transform-origin: left center; }
  .vacation-plane__trail { display: none; }
  @keyframes planeArrival {
    0% { left: -310px; top: 230px; opacity: 0; transform: rotate(-2deg) scale(.62); }
    20% { opacity: 1; }
    100% { left: 8%; top: 210px; opacity: 1; transform: rotate(-2deg) scale(.72); }
  }
  @keyframes planeDeparture {
    0% { left: 8%; top: 210px; opacity: 1; transform: rotate(-2deg) scale(.72); }
    22% { left: 18%; top: 190px; transform: rotate(-8deg) scale(.72); }
    100% { left: 116%; top: -20px; opacity: .2; transform: rotate(-17deg) scale(.45); }
  }
}

/* === Final polishing: helper for pipe repair === */
.pipe {
  transition: transform .75s cubic-bezier(.2,.8,.2,1), filter .35s ease;
}
.pipe-connector {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 178px;
  width: 72px;
  height: 86px;
  transform: translateX(-50%) scaleX(.25);
  opacity: 0;
  border-radius: 16px;
  background: linear-gradient(90deg, #44525d, #9ba8af 30%, #d7e1e6 50%, #96a3ab 70%, #44525d);
  border: 4px solid #2f3940;
  box-shadow: 0 12px 26px rgba(0,0,0,.16);
  transition: transform .45s .34s cubic-bezier(.2,.8,.2,1.2), opacity .25s .34s ease;
}
.pipe-helper {
  position: absolute;
  z-index: 9;
  right: 18px;
  bottom: 26px;
  width: 170px;
  opacity: 0;
  transform: translateX(38px) scale(.9);
  transition: transform .45s .22s ease, opacity .32s .22s ease;
}
.pipe-helper__face {
  position: absolute;
  right: 0;
  bottom: 18px;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid #fff;
  box-shadow: 0 16px 28px rgba(0,0,0,.18);
  background: #fff;
}
.pipe-helper__face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
}
.pipe-helper__arm {
  position: absolute;
  right: 56px;
  bottom: 42px;
  width: 96px;
  height: 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, #c69e84, #f0c3a8 55%, #d39f7f);
  transform-origin: right center;
  transform: rotate(-18deg) scaleX(.6);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.22), 0 10px 18px rgba(0,0,0,.14);
}
.pipe-helper__arm::after {
  content: "";
  position: absolute;
  left: -8px;
  top: -4px;
  width: 22px;
  height: 26px;
  border-radius: 10px 12px 12px 10px;
  background: #f2c7ac;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.22);
}
.pipe-helper__bubble {
  position: absolute;
  right: 64px;
  bottom: 102px;
  padding: 8px 11px;
  border-radius: 14px;
  background: #fff;
  color: #141b20;
  font-size: .68rem;
  font-weight: 900;
  box-shadow: 0 10px 18px rgba(0,0,0,.14);
  white-space: nowrap;
}
.pipe-helper__bubble::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: -6px;
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: #fff;
}
.pipe-scene.is-repaired .pipe--left {
  transform: translateX(58px) rotate(-1deg);
}
.pipe-scene.is-repaired .pipe--right {
  transform: translateX(-58px) rotate(1deg);
}
.pipe-scene.is-repaired .pipe-connector {
  opacity: 1;
  transform: translateX(-50%) scaleX(1);
}
.pipe-scene.is-repaired .pipe-helper {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.pipe-scene.is-repaired .pipe-helper__arm {
  transform: rotate(-8deg) scaleX(1);
}
.pipe-scene.is-repaired .pipe-gap {
  opacity: .08;
  transition: opacity .3s ease;
}

@media (max-width: 680px) {
  .nav__actions {
    display: none;
  }
  .pipe-connector {
    top: 130px;
    height: 70px;
    width: 64px;
  }
  .pipe-helper {
    right: 10px;
    bottom: 12px;
    width: 118px;
  }
  .pipe-helper__face {
    width: 54px;
    height: 54px;
  }
  .pipe-helper__arm {
    right: 36px;
    bottom: 26px;
    width: 64px;
    height: 14px;
  }
  .pipe-helper__bubble {
    right: 38px;
    bottom: 70px;
    padding: 6px 8px;
    font-size: .58rem;
  }
  .pipe-scene.is-repaired .pipe--left {
    transform: translateX(30px) rotate(-1deg);
  }
  .pipe-scene.is-repaired .pipe--right {
    transform: translateX(-30px) rotate(1deg);
  }
}

/* === Mini-game: gas network === */
.section--game {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(78,217,230,.08), transparent 24%),
    radial-gradient(circle at 86% 12%, rgba(255,122,69,.08), transparent 20%),
    linear-gradient(180deg, #071723 0%, #0a2031 100%);
}
.game-layout {
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  gap: 28px;
  align-items: stretch;
}
.game-copy {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
}
.game-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 12px;
  margin-bottom: 20px;
}
.game-panel > div {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}
.game-panel span {
  display: block;
  font-size: .68rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--muted);
}
.game-panel strong {
  display: block;
  margin-top: 8px;
  font-family: "Unbounded", sans-serif;
  font-size: 1.25rem;
}
.game-rules {
  color: #d1dee6;
  line-height: 1.72;
  margin: 0 0 20px;
}
.game-status {
  margin-top: 18px;
  min-height: 54px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.05);
  color: #c7d8e2;
}
.game-status.is-danger {
  color: #ffd0d5;
  border-color: rgba(255,77,95,.28);
  background: rgba(255,77,95,.10);
}
.game-status.is-good {
  color: #baf7d8;
  border-color: rgba(99,230,168,.26);
  background: rgba(99,230,168,.10);
}
.game-board {
  position: relative;
  min-height: 560px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.10);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    linear-gradient(180deg, #102b39 0%, #0e1f2b 100%);
  box-shadow: var(--shadow);
}
.game-grid {
  position: absolute;
  inset: 0;
  opacity: .16;
  background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 42px 42px;
}
.game-line {
  position: absolute;
  background: linear-gradient(180deg, #7a8f9c, #dde6eb 48%, #6e818c);
  box-shadow: 0 10px 20px rgba(0,0,0,.18);
  border-radius: 999px;
}
.game-line--h1,
.game-line--h2,
.game-line--h3 { left: 10%; width: 80%; height: 18px; }
.game-line--h1 { top: 23%; }
.game-line--h2 { top: 48%; }
.game-line--h3 { top: 73%; }
.game-line--v1,
.game-line--v2,
.game-line--v3 { top: 10%; height: 76%; width: 18px; }
.game-line--v1 { left: 17%; }
.game-line--v2 { left: 49%; }
.game-line--v3 { left: 79%; }
.game-node {
  position: absolute;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 30%, #fff, #9fc8d8 40%, #355266 75%);
  box-shadow: 0 0 0 5px rgba(255,255,255,.06), 0 10px 18px rgba(0,0,0,.2);
  transform: translate(-50%, -50%);
}
.game-node--1 { left: 18%; top: 24%; }
.game-node--2 { left: 50%; top: 24%; }
.game-node--3 { left: 80%; top: 24%; }
.game-node--4 { left: 18%; top: 49%; }
.game-node--5 { left: 50%; top: 49%; }
.game-node--6 { left: 80%; top: 49%; }
.game-node--7 { left: 18%; top: 74%; }
.game-node--8 { left: 50%; top: 74%; }
.game-node--9 { left: 80%; top: 74%; }
.game-station {
  position: absolute;
  z-index: 2;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(255,211,90,.14);
  border: 1px solid rgba(255,211,90,.24);
  color: #ffe58d;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .04em;
}
.game-station--one { left: 5%; top: 8%; }
.game-station--two { right: 5%; top: 8%; }
.game-station--three { left: 5%; bottom: 10%; }
.game-station--four { right: 5%; bottom: 10%; }
.game-rupture {
  position: absolute;
  z-index: 4;
  width: 82px;
  height: 82px;
  margin-left: -41px;
  margin-top: -41px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: scale(.5);
  transition: opacity .12s ease, transform .12s ease;
}
.game-rupture::before,
.game-rupture::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}
.game-rupture::before {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #111;
  box-shadow:
    0 -20px 0 0 #ff4d5f,
    0 20px 0 0 #ff4d5f,
    20px 0 0 0 #ff4d5f,
    -20px 0 0 0 #ff4d5f,
    14px 14px 0 0 #ff8d3a,
    -14px -14px 0 0 #ff8d3a,
    -14px 14px 0 0 #ff8d3a,
    14px -14px 0 0 #ff8d3a;
}
.game-rupture::after {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 3px dashed rgba(255,211,90,.9);
}
.game-rupture.active {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  animation: rupturePulse .7s infinite alternate;
}
.game-rupture.patched {
  opacity: 1;
  pointer-events: none;
  transform: scale(.95);
  animation: none;
}
.game-rupture.patched::before {
  width: 48px;
  height: 18px;
  border-radius: 6px;
  background: repeating-linear-gradient(-45deg, #ffd35a 0 10px, #192026 10px 20px);
  box-shadow: 0 0 0 3px #fff;
}
.game-rupture.patched::after {
  width: 0;
  height: 0;
  border: 0;
}
@keyframes rupturePulse {
  from { filter: drop-shadow(0 0 0 rgba(255,77,95,.3)); }
  to { filter: drop-shadow(0 0 18px rgba(255,77,95,.9)); }
}

@media (max-width: 1000px) {
  .game-layout { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .game-board { min-height: 460px; }
  .game-panel { grid-template-columns: 1fr 1fr; }
  .game-line--h1, .game-line--h2, .game-line--h3 { height: 14px; }
  .game-line--v1, .game-line--v2, .game-line--v3 { width: 14px; }
  .game-station { font-size: .64rem; padding: 7px 9px; }
  .game-rupture { width: 68px; height: 68px; margin-left: -34px; margin-top: -34px; }
}

/* === Final interactive update === */
.nav__actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav__button {
  font-size: .76rem;
  padding: 10px 14px;
}
.nav__button--games {
  color: #baf7d8;
  border-color: rgba(99,230,168,.34);
}
.error-shortcuts {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 4px;
}
.error-shortcuts a {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  padding: 7px 9px;
  border: 1px solid rgba(255,77,95,.35);
  border-radius: 10px;
  color: #ffd0d5;
  background: rgba(255,77,95,.08);
  font-family: "Unbounded", sans-serif;
  font-size: .68rem;
  transition: .2s ease;
}
.error-shortcuts a:hover {
  color: #fff;
  background: rgba(255,77,95,.24);
  transform: translateY(-2px) rotate(-2deg);
}

/* Rocket astronaut and stronger label */
.rocket__body span {
  bottom: 33px;
  padding: 7px 10px;
  border-radius: 9px;
  color: #fff;
  background: #18242c;
  font-size: .72rem;
  font-weight: 1000;
  letter-spacing: .08em;
  text-shadow: 0 1px 0 #000;
  box-shadow: 0 0 0 2px rgba(255,255,255,.22);
}
.rocket__rider {
  top: -1px;
  width: 112px;
  transform: translate(-50%, -67%);
  gap: 0;
}
.rocket__helmet {
  position: relative;
  z-index: 3;
  width: 92px;
  height: 92px;
  padding: 10px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f8fbfd 0%, #a8b6bf 48%, #65727b 100%);
  border: 4px solid #eaf2f6;
  box-shadow: 0 13px 26px rgba(0,0,0,.38), inset -8px -10px 12px rgba(44,57,66,.25);
}
.rocket__helmet::before {
  content: "";
  position: absolute;
  inset: 6px;
  z-index: 2;
  border-radius: 50%;
  border: 4px solid rgba(65,79,88,.78);
  box-shadow: inset 7px 8px 12px rgba(255,255,255,.22);
  pointer-events: none;
}
.rocket__helmet::after {
  content: "";
  position: absolute;
  z-index: 4;
  left: 22px;
  top: 15px;
  width: 38px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255,255,255,.28);
  transform: rotate(-15deg);
  pointer-events: none;
}
.rocket__helmet img,
.rocket__rider img {
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 18%;
  box-shadow: none;
  background: #6bd1ef;
}
.rocket__spacesuit {
  position: relative;
  z-index: 2;
  width: 86px;
  height: 56px;
  margin-top: -13px;
  border-radius: 25px 25px 14px 14px;
  background: linear-gradient(90deg, #c8d1d7, #fff 48%, #a3afb7);
  border: 3px solid #6c7880;
  box-shadow: 0 9px 18px rgba(0,0,0,.24);
}
.rocket__spacesuit::before,
.rocket__spacesuit::after {
  content: "";
  position: absolute;
  top: 12px;
  width: 39px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(#f8fbfd, #9aa8b1);
  border: 2px solid #6c7880;
}
.rocket__spacesuit::before { left: -30px; transform: rotate(24deg); }
.rocket__spacesuit::after { right: -30px; transform: rotate(-24deg); }
.rocket__spacesuit span {
  position: absolute;
  left: 50%;
  bottom: 5px;
  transform: translateX(-50%);
  padding: 3px 7px;
  border-radius: 999px;
  color: #fff;
  background: #ff4d5f;
  font-size: .5rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.rocket__rider::before,
.rocket__rider::after { display: none; }

/* Game mode controls */
.game-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -12px 0 28px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  background: rgba(255,255,255,.04);
}
.game-modes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.game-mode-button,
.game-sound-toggle {
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 13px;
  color: #dbe8ef;
  background: rgba(255,255,255,.05);
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: .2s ease;
}
.game-mode-button:hover,
.game-sound-toggle:hover { transform: translateY(-2px); background: rgba(255,255,255,.1); }
.game-mode-button.active {
  color: #17200b;
  background: var(--yellow);
  border-color: var(--yellow);
}
.game-sound-toggle[aria-pressed="true"] {
  color: #06231a;
  background: var(--green);
  border-color: var(--green);
}
.game-mode-view[hidden] { display: none !important; }
.game-mode-view.active { animation: gameModeIn .35s ease both; }
@keyframes gameModeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Pan versus fireworks game */
.pan-game-board {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  touch-action: none;
  cursor: crosshair;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 34px;
  background:
    radial-gradient(circle at 75% 15%, rgba(255,211,90,.13), transparent 18%),
    linear-gradient(180deg, #071221 0%, #132d42 68%, #172b25 68%, #0d1c18 100%);
  box-shadow: var(--shadow);
  user-select: none;
}
.pan-game-stars {
  position: absolute;
  inset: 0;
  opacity: .52;
  background-image: radial-gradient(circle, #fff 1px, transparent 1.6px);
  background-size: 38px 38px;
  animation: stars 16s linear infinite;
}
.pan-game-hint {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 18px;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 8px 12px;
  border-radius: 999px;
  color: #b9ccda;
  background: rgba(0,0,0,.24);
  border: 1px solid rgba(255,255,255,.1);
  font-size: .68rem;
}
.pan-game-pipe {
  position: absolute;
  z-index: 3;
  left: 5%;
  right: 5%;
  bottom: 28px;
  height: 58px;
  border: 5px solid #394852;
  border-radius: 999px;
  background: linear-gradient(#667985, #d5e0e5 43%, #677985 76%, #374650);
  box-shadow: 0 18px 26px rgba(0,0,0,.34), inset 0 0 0 3px rgba(255,255,255,.16);
}
.pan-game-pipe::before,
.pan-game-pipe::after {
  content: "";
  position: absolute;
  top: -11px;
  width: 24px;
  height: 70px;
  border: 4px solid #34434c;
  border-radius: 8px;
  background: linear-gradient(90deg, #42515b, #aebbc2, #42515b);
}
.pan-game-pipe::before { left: 17%; }
.pan-game-pipe::after { right: 17%; }
.pan-game-pipe span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
  padding: 6px 10px;
  border-radius: 8px;
  color: #111;
  background: var(--yellow);
  font-family: "Unbounded", sans-serif;
  font-size: .62rem;
  font-weight: 900;
  white-space: nowrap;
}
.pan-game-pipe.hit { animation: pipeDamage .28s linear 2; }
@keyframes pipeDamage {
  0%,100% { filter: none; transform: translateX(0); }
  50% { filter: drop-shadow(0 0 15px rgba(255,77,95,.9)); transform: translateX(7px); }
}
.pan-player {
  position: absolute;
  z-index: 8;
  left: 50%;
  bottom: 88px;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  transform: translateX(-50%) rotate(-15deg);
  font-size: 4.6rem;
  line-height: 1;
  filter: drop-shadow(0 16px 14px rgba(0,0,0,.35));
  transition: left .06s linear, transform .08s ease;
}
.pan-player.hit {
  transform: translateX(-50%) rotate(12deg) scale(1.12);
}
.pan-firework {
  position: absolute;
  z-index: 6;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  font-size: 2.3rem;
  line-height: 1;
  will-change: transform;
  filter: drop-shadow(0 0 14px rgba(255,211,90,.72));
}
.pan-firework::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -36px;
  width: 3px;
  height: 42px;
  transform: translateX(-50%);
  background: linear-gradient(transparent, rgba(255,255,255,.72));
}
.pan-firework.deflected { animation: fireworkDeflect .28s ease-out forwards; }
@keyframes fireworkDeflect {
  to { opacity: 0; transform: translateY(-70px) rotate(140deg) scale(1.45); }
}
.pan-explosion {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: 60px;
  transform: translateX(-50%) scale(.2);
  opacity: 0;
  font-size: 5rem;
  pointer-events: none;
}
.pan-explosion.show { animation: panExplosion .45s ease-out; }
@keyframes panExplosion {
  0% { opacity: 0; transform: translateX(-50%) scale(.2); }
  45% { opacity: 1; transform: translateX(-50%) scale(1.2); }
  100% { opacity: 0; transform: translateX(-50%) scale(1.7); }
}

@media (max-width: 1080px) {
  .nav__actions { max-width: 720px; }
}
@media (max-width: 680px) {
  .error-shortcuts { width: 100%; margin-top: 4px; }
  .game-toolbar { align-items: stretch; flex-direction: column; }
  .game-modes { display: grid; grid-template-columns: 1fr 1fr; }
  .game-mode-button, .game-sound-toggle { width: 100%; font-size: .76rem; }
  .pan-game-board { min-height: 470px; }
  .pan-player { width: 74px; height: 74px; bottom: 80px; font-size: 3.8rem; }
  .pan-game-pipe { height: 50px; bottom: 25px; }
  .pan-game-hint { font-size: .58rem; max-width: 90%; white-space: normal; text-align: center; }
  .rocket__helmet { width: 78px; height: 78px; padding: 8px; }
  .rocket__spacesuit { width: 74px; height: 49px; }
  .rocket__rider { width: 96px; }
  .rocket__body span { font-size: .64rem; }
}
.error-shortcuts small {
  color: #8fa7b6;
  font-size: .68rem;
  white-space: nowrap;
}

/* Final control polish for the frying-pan game */
.pan-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}
.pan-control-button {
  min-height: 48px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 15px;
  color: #fff;
  background: rgba(255,255,255,.07);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  touch-action: none;
  transition: transform .12s ease, background .12s ease;
}
.pan-control-button:active {
  transform: translateY(2px) scale(.98);
  background: rgba(255,211,90,.18);
}
.pan-player {
  width: 104px;
  height: 104px;
  font-size: 5rem;
}
.pan-firework {
  font-size: 2.7rem;
}

@media (max-width: 680px) {
  .pan-controls { position: sticky; bottom: 8px; z-index: 5; }
  .pan-control-button { min-height: 54px; background: rgba(5,18,29,.92); }
  .pan-player { width: 88px; height: 88px; font-size: 4.2rem; }
}
