/* site.css — helloruhi
   Bright outdoor world: sky blue + grass green + sunshine, chunky rounded type (Baloo 2 + Nunito).
   Deliberately different from her twin's cosy blush site and from ProjectAadit's dark space theme. */

:root {
  --bg: #eef9ff;
  --sky-1: #d6f0ff;
  --sky-2: #eef9ff;
  --card: #ffffff;
  --ink: #10313f;
  --muted: #4d6b7a;
  --faint: #4f7181;
  --line: rgba(16, 49, 63, .1);
  --line-strong: rgba(16, 49, 63, .2);
  --sky: #1f9fe0;
  --sky-deep: #16719f;    /* for small text on white */
  --grass: #3fbf6a;
  --sun: #ffb703;
  --coral: #ff6b5b;
  --coral-deep: #c93a2b;  /* white text on this passes 4.5:1 */
  --berry: #b45cd6;
  --r: 24px;
  --maxw: 1140px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --display: "Baloo 2", "Trebuchet MS", system-ui, cursive;
  --body: "Nunito", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: linear-gradient(180deg, var(--sky-1), var(--sky-2) 40%, #fff 100%);
  background-attachment: fixed;
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 12px; }
::selection { background: var(--sun); color: var(--ink); }

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--sky-deep); color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 800; }
.skip-link:focus { top: 16px; }

/* ---------------------------------------------------------------- atmosphere */
#clouds { position: fixed; inset: 0; z-index: -3; width: 100%; height: 100%; pointer-events: none; }
.sunshine {
  position: fixed; top: -80px; right: -60px; width: 300px; height: 300px; border-radius: 50%; z-index: -2; pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 183, 3, .5), rgba(255, 183, 3, 0) 68%);
}

/* ---------------------------------------------------------------- layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: clamp(18px, 4.5vw, 40px); width: 100%; }
.band { padding-block: clamp(64px, 9vw, 116px); position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--sky-deep);
}
.eyebrow::before { content: ""; width: 24px; height: 5px; border-radius: 3px; background: var(--sun); }
.h2 { font-family: var(--display); font-weight: 800; font-size: clamp(34px, 5.4vw, 58px); line-height: 1.02; margin-top: 10px; max-width: 18ch; }
.h2 em { font-style: normal; color: var(--grass); }
.lede { color: var(--muted); font-size: clamp(16.5px, 1.4vw, 18.5px); max-width: 54ch; margin-top: 12px; }
.section-head { margin-bottom: clamp(32px, 4.5vw, 52px); }

/* ---------------------------------------------------------------- nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .35s var(--ease), box-shadow .35s var(--ease); }
.nav.scrolled { background: rgba(255, 255, 255, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 30px -22px rgba(16, 49, 63, .8); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; }
.monogram {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--display); font-weight: 800; font-size: 22px; color: #fff;
  background: linear-gradient(140deg, var(--sky), var(--grass));
  box-shadow: 0 8px 18px -8px rgba(31, 159, 224, .9);
  transition: transform .5s var(--bounce);
}
.brand:hover .monogram { transform: rotate(10deg) scale(1.08); }
.brand b { display: block; font-weight: 800; font-size: 17px; line-height: 1.1; font-family: var(--display); }
.brand small { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.links { display: flex; align-items: center; gap: 2px; }
.links a { padding: 9px 14px; border-radius: 999px; color: var(--muted); font-weight: 800; font-size: 15.5px; transition: color .2s, background .2s; }
.links a:hover { color: var(--ink); background: #e3f3fb; }
.links .nav-cta { background: var(--coral-deep); color: #fff; margin-left: 6px; }
.links .nav-cta:hover { background: #e04b3b; color: #fff; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 14px; border: 2px solid var(--line-strong); font-size: 20px; }

/* ---------------------------------------------------------------- hero */
.hero { min-height: 100svh; display: flex; align-items: center; padding-block: 110px 70px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 60px); align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.hero-meta b { color: var(--grass); }
.hero h1 { font-family: var(--display); font-weight: 800; font-size: clamp(52px, 9vw, 112px); line-height: .95; margin-top: 14px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--sky), var(--grass) 60%, var(--sun)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.wave { display: inline-block; transform-origin: 70% 80%; animation: wave 2.6s ease-in-out 1s infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(18deg); } 20%, 40% { transform: rotate(-12deg); } }
.hero-sub { color: var(--muted); font-size: clamp(17.5px, 1.6vw, 20px); max-width: 42ch; margin-top: 18px; }
.hero-sub b { color: var(--ink); font-weight: 800; }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 15px 26px; border-radius: 999px; font-weight: 800; font-size: 16.5px; transition: transform .35s var(--bounce), box-shadow .3s var(--ease), background .2s; }
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(0) scale(.97); }
.btn-primary { background: var(--coral-deep); color: #fff; box-shadow: 0 6px 0 #9e2c20, 0 16px 30px -18px rgba(255, 107, 91, 1); }
.btn-primary:hover { background: #e04b3b; }
.btn-primary:active { box-shadow: 0 2px 0 #9e2c20; }
.btn-ghost { border: 3px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--sky); color: var(--sky); }

.level { margin-top: 32px; max-width: 400px; }
.level-top { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.level-top b { color: var(--grass); }
.level-bar { margin-top: 8px; height: 16px; border-radius: 99px; background: #dff0f8; overflow: hidden; box-shadow: inset 0 2px 4px rgba(16, 49, 63, .12); }
.level-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--grass), var(--sun)); transition: width 1.6s var(--ease) .6s; }

/* hero art: her photo in a sunny circle */
.scene { position: relative; width: 100%; max-width: 440px; justify-self: center; aspect-ratio: 1; }
.scene .field {
  position: absolute; inset: 5%; border-radius: 50%; overflow: hidden;
  box-shadow: 0 46px 80px -44px rgba(16, 49, 63, .9);
}
.scene .field img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 24%; }
.scene .ring {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
  background: conic-gradient(from 210deg, var(--sky), var(--grass), var(--sun), var(--sky));
  -webkit-mask: radial-gradient(circle closest-side, transparent 0 calc(100% - 9px), #000 calc(100% - 9px) 100%);
  mask: radial-gradient(circle closest-side, transparent 0 calc(100% - 9px), #000 calc(100% - 9px) 100%);
  animation: spin 22s linear infinite;
}
.scene .sticker {
  position: absolute; font-size: clamp(28px, 4.6vw, 44px); filter: drop-shadow(0 8px 12px rgba(16, 49, 63, .3));
  animation: hop 2.4s var(--bounce) infinite;
}
.scene .s1 { left: -2%; top: 22%; animation-delay: .1s; }
.scene .s2 { right: -3%; top: 52%; animation-delay: .7s; }
.scene .s3 { left: 16%; bottom: -2%; animation-delay: 1.3s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes hop { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-14px); } }

/* ---------------------------------------------------------------- about */
.about-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.card-stage { justify-self: center; width: 100%; max-width: 360px; }
.player { position: relative; border-radius: 28px; padding: 22px; background: var(--card); box-shadow: 0 30px 60px -36px rgba(16, 49, 63, .8), 0 0 0 5px #e3f3fb; }
.player-top { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.player-top b { color: var(--coral); }
.avatar { margin: 16px 0 18px; aspect-ratio: 5 / 4; border-radius: 20px; overflow: hidden; background: linear-gradient(170deg, #bff0ff, #d8f7de); display: grid; place-items: center; }
.avatar picture, .avatar img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.avatar svg { width: 76%; height: auto; }
.player .player-name { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; }
.player .role { color: var(--sky-deep); font-weight: 800; font-size: 14.5px; margin-top: 2px; }
.stats { list-style: none; margin-top: 18px; display: grid; gap: 11px; }
.stats li { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; font-size: 14px; color: var(--muted); font-weight: 700; }
.stats li b { color: var(--ink); font-size: 13px; }
.stats .bar { grid-column: 1 / -1; height: 9px; border-radius: 9px; background: #e6f2f8; overflow: hidden; }
.stats .bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--c, var(--sky)); transition: width 1.2s var(--ease); }
.in .stats .bar i { width: var(--v); }

.about-copy p { color: var(--muted); font-size: clamp(16.5px, 1.4vw, 19px); margin-top: 16px; max-width: 52ch; }
.about-copy p b { color: var(--ink); font-weight: 800; }
.quick { list-style: none; margin-top: 26px; }
.quick li { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 13px 0; border-bottom: 3px dotted var(--line); align-items: baseline; }
.quick span { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.quick b { font-weight: 700; }

/* ---------------------------------------------------------------- loves */
.loves { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.love {
  position: relative; overflow: hidden; padding: 26px 24px; border-radius: var(--r); background: var(--card);
  box-shadow: 0 18px 36px -28px rgba(16, 49, 63, .8); border-bottom: 6px solid var(--c);
  transition: transform .45s var(--bounce), box-shadow .3s;
}
.love:hover { transform: translateY(-7px) rotate(.5deg); box-shadow: 0 28px 44px -26px rgba(16, 49, 63, .8); }
.love-icon { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-size: 31px; background: color-mix(in srgb, var(--c) 16%, #fff); transition: transform .5s var(--bounce); }
.love:hover .love-icon { transform: scale(1.14) rotate(10deg); }
.love h3 { font-family: var(--display); font-weight: 800; font-size: 25px; margin-top: 14px; }
.love p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }
.love small { display: block; margin-top: 14px; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c); }

/* ---------------------------------------------------------------- badges */
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.badge { text-align: center; padding: 26px 14px 22px; border-radius: var(--r); background: var(--card); box-shadow: 0 16px 32px -28px rgba(16, 49, 63, .8); transition: transform .45s var(--bounce), box-shadow .3s; }
.badge:hover { transform: translateY(-6px); box-shadow: 0 26px 40px -26px rgba(31, 159, 224, .9); }
.badge .medal {
  width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 33px;
  background: conic-gradient(from 210deg, #ffd978, #fff3cf, #ffd978, #ffc53d, #ffd978);
  box-shadow: inset 0 0 0 5px #fff, 0 10px 20px -12px rgba(255, 183, 3, 1);
  transition: transform .7s var(--bounce);
}
.badge:hover .medal, .badge.pop .medal { transform: rotate(360deg) scale(1.06); }
.badge h3 { font-size: 16px; font-weight: 800; margin-top: 14px; line-height: 1.25; }
.badge p { font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }
.badge.locked .medal { background: #e8eff3; filter: grayscale(.4); }
.badge.locked h3 { color: var(--muted); }

/* ---------------------------------------------------------------- game + joke */
.fun-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 18px; align-items: stretch; }
.panel { border-radius: 26px; background: var(--card); box-shadow: 0 22px 44px -34px rgba(16, 49, 63, .9); overflow: hidden; }
.game { position: relative; display: flex; flex-direction: column; }
.game-hud { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 3px dotted var(--line); font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.game-hud b { color: var(--ink); font-size: 18px; font-family: var(--display); }
.game-hud .time { color: var(--coral-deep); }
#game { width: 100%; aspect-ratio: 16 / 10; touch-action: none; cursor: pointer; background: linear-gradient(180deg, #cdefff, #eafaff 70%, #dff7e4); }
.game-overlay { position: absolute; inset: 52px 0 0; display: grid; place-items: center; text-align: center; padding: 24px; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.game-overlay h3 { font-family: var(--display); font-weight: 800; font-size: clamp(30px, 4vw, 44px); line-height: 1; }
.game-overlay p { color: var(--muted); margin: 10px auto 20px; max-width: 34ch; font-size: 15.5px; }

.side-stack { display: grid; gap: 18px; grid-template-rows: 1fr auto; }
.joke { padding: 28px; display: flex; flex-direction: column; }
.joke .eyebrow { color: var(--grass); }
.joke blockquote { font-family: var(--display); font-weight: 800; font-size: clamp(21px, 2vw, 27px); line-height: 1.22; margin: 14px 0 10px; }
.joke .punch { color: var(--coral-deep); font-weight: 800; font-size: 18px; margin-bottom: 18px; min-height: 2.6em; }
.joke .punch.hidden { opacity: 0; }
.joke .btn { align-self: flex-start; padding: 12px 20px; font-size: 15px; }
.countdown { padding: 24px 28px; }
.countdown .eyebrow { color: var(--berry); }
.cd-row { display: flex; gap: 10px; margin-top: 14px; }
.cd-row div { flex: 1; text-align: center; padding: 12px 4px; border-radius: 16px; background: #e3f3fb; }
.cd-row b { display: block; font-family: var(--display); font-weight: 800; font-size: 30px; line-height: 1; }
.cd-row span { font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }


/* ---------------------------------------------------------------- gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shot {
  position: relative; padding: 0; overflow: hidden; border-radius: 20px; aspect-ratio: 4 / 5; cursor: zoom-in;
  background: #e3f3fb; box-shadow: 0 16px 30px -24px rgba(0, 0, 0, .8);
  transition: transform .45s var(--bounce), box-shadow .3s;
}
.shot figure, .shot picture { display: block; width: 100%; height: 100%; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 26%; transition: transform .6s var(--ease); }
.shot figcaption {
  position: absolute; inset: auto 0 0; padding: 26px 14px 12px; text-align: left;
  font-size: 14px; font-weight: 700; color: #fff; line-height: 1.25;
  background: linear-gradient(to top, rgba(0, 0, 0, .68), transparent);
  opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s var(--ease);
}
.shot:hover, .shot:focus-visible { transform: translateY(-5px); box-shadow: 0 26px 40px -22px rgba(0, 0, 0, .8); }
.shot:hover img, .shot:focus-visible img { transform: scale(1.06); }
.shot:hover figcaption, .shot:focus-visible figcaption { opacity: 1; transform: none; }
.shot.wide { grid-column: span 2; aspect-ratio: 8 / 5; }
.gallery .shot:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
@media (max-width: 700px) { .gallery .shot:first-child { grid-column: span 2; grid-row: span 1; aspect-ratio: 8 / 7; } }

.lightbox { margin: auto; border: 0; padding: 0; background: transparent; max-width: min(94vw, 1000px); max-height: 94vh; overflow: visible; }
.lightbox::backdrop { background: rgba(20, 12, 18, .88); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox figure { background: #fff; padding: 10px 10px 14px; border-radius: 18px; }
.lightbox img { max-width: 100%; max-height: calc(94vh - 90px); width: auto; margin: 0 auto; border-radius: 10px; }
.lightbox figcaption { color: var(--ink); font-weight: 700; font-size: 17px; margin-top: 10px; text-align: center; }
.lb-close, .lb-nav {
  position: fixed; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; line-height: 1;
  background: rgba(255, 255, 255, .92); color: var(--ink); box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .9);
  transition: transform .3s var(--bounce), background .2s;
}
.lb-close:hover, .lb-nav:hover { transform: scale(1.1); background: #fff; }
.lb-close { top: 18px; right: 18px; }
.lb-nav { top: 50%; margin-top: -26px; }
.lb-nav.prev { left: 18px; } .lb-nav.next { right: 18px; }
.lb-count { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); color: #fff; font-weight: 700; font-size: 14px; letter-spacing: .08em; }
@media (max-width: 980px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } .shot figcaption { opacity: 1; transform: none; font-size: 12.5px; padding: 20px 10px 9px; } .lb-nav { top: auto; bottom: 18px; margin: 0; } .lb-count { bottom: 84px; } }


/* ---------------------------------------------------------------- game tabs + sprint */
.game-stack { display: flex; flex-direction: column; gap: 12px; }
.game-tabs { display: flex; gap: 8px; }
.game-tabs button {
  flex: 1; padding: 12px 14px; border-radius: 16px; font-weight: 800; font-size: 15.5px;
  background: #fff; color: var(--muted); box-shadow: 0 10px 22px -18px rgba(16, 49, 63, .9);
  border: 2px solid transparent; transition: transform .3s var(--bounce), color .2s, background .2s, border-color .2s;
}
.game-tabs button:hover { transform: translateY(-2px); color: var(--ink); }
.game-tabs button[aria-selected="true"] { background: var(--coral-deep); border-color: var(--coral-deep); color: #fff; }
#pane-sprint canvas { width: 100%; aspect-ratio: 16 / 9; background: #dff3ff; }
.pads { display: flex; gap: 10px; padding: 12px; }
.pad {
  flex: 1; padding: 18px 10px; border-radius: 18px; font-weight: 800; font-size: 17px; color: var(--ink);
  background: #e3f3fb; box-shadow: 0 5px 0 #b9dcec; transition: transform .12s, background .2s, box-shadow .12s, color .2s;
}
.pad:active { transform: translateY(4px); box-shadow: 0 1px 0 #b9dcec; }
.pad.on { background: var(--sun); box-shadow: 0 5px 0 #d69700; }
@media (max-width: 600px) { #pane-sprint canvas { aspect-ratio: 4 / 3; } .pad { padding: 20px 8px; font-size: 16px; } }

/* ---------------------------------------------------------------- crew */
.crew { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.member { display: flex; flex-direction: column; gap: 12px; padding: 26px; border-radius: var(--r); background: var(--card); box-shadow: 0 18px 36px -30px rgba(16, 49, 63, .8); border-bottom: 6px solid var(--c); transition: transform .4s var(--bounce); }
a.member:hover { transform: translateY(-6px); }
.member .mono-badge { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 23px; color: #10313f; background: var(--c); }
.member h3 { font-family: var(--display); font-weight: 800; font-size: 25px; }
.member p { color: var(--muted); font-size: 15.5px; }
.member .url { margin-top: auto; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: var(--c); display: flex; align-items: center; gap: 7px; }


/* ---------------------------------------------------------------- birthday mode */
.party-banner {
  position: sticky; top: 0; z-index: 60; text-align: center;
  padding: 10px 16px; font-weight: 800; font-size: clamp(15px, 2.4vw, 19px); color: #fff;
  background: linear-gradient(90deg, #1f9fe0, #3fbf6a, #ffb703, #1f9fe0);
  background-size: 300% 100%; animation: partySlide 6s linear infinite;
  box-shadow: 0 10px 24px -18px rgba(0, 0, 0, .9);
}
.party-banner b { font-size: 1.12em; }
@keyframes partySlide { to { background-position: 300% 0; } }
html.party .nav { top: 44px; }
.balloons { display: inline-block; margin-left: .12em; animation: floaty 3s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-12px) rotate(6deg); } }
.party-msg { margin-top: 10px; font-size: 18px; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .party-banner { animation: none; } .balloons { animation: none; } }

/* ---------------------------------------------------------------- footer */
.footer { padding-block: 40px 52px; border-top: 3px dotted var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.footer p { color: var(--faint); font-size: 14.5px; font-weight: 700; }
.footer p b { color: var(--muted); }
.to-top { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 999px; border: 3px solid var(--line-strong); font-weight: 800; font-size: 15px; transition: border-color .2s, color .2s; }
.to-top:hover { border-color: var(--grass); color: var(--grass); }
.to-top span { display: inline-block; transition: transform .5s var(--ease); }
.to-top.launch span { transform: translateY(-110px); }

#confetti { position: fixed; inset: 0; z-index: 90; pointer-events: none; width: 100%; height: 100%; }
html.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
html.js .reveal.in { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .hero-grid, .about-grid, .fun-grid { grid-template-columns: 1fr; }
  .scene { max-width: 340px; order: -1; }
  .loves { grid-template-columns: repeat(2, 1fr); }
  .badges { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .menu-btn { display: grid; place-items: center; }
  .links {
    position: fixed; inset: 74px 12px auto; flex-direction: column; align-items: stretch; gap: 4px; padding: 12px;
    background: #fff; border-radius: 22px; box-shadow: 0 20px 40px -20px rgba(16, 49, 63, .6);
    opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .25s, transform .25s var(--ease);
  }
  .links.open { opacity: 1; transform: none; pointer-events: auto; }
  .links a { padding: 13px 16px; font-size: 17px; }
  .links .nav-cta { text-align: center; margin: 6px 0 0; }
}
@media (max-width: 600px) {
  .loves { grid-template-columns: 1fr; }
  .badges { grid-template-columns: repeat(2, 1fr); }
  .quick li { grid-template-columns: 1fr; gap: 2px; }
  #game { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
}
