:root {
  --primary: #0066cc;
  --primary-focus: #0071e3;
  --primary-on-dark: #2997ff;
  --ink: #1d1d1f;
  --muted: #7a7a7a;
  --muted-dark: #cccccc;
  --canvas: #ffffff;
  --parchment: #f5f5f7;
  --pearl: #fafafc;
  --tile-dark: #272729;
  --tile-dark-2: #2a2a2c;
  --tile-dark-3: #252527;
  --black: #000000;
  --hairline: #e0e0e0;
  --divider-soft: rgba(0, 0, 0, 0.04);
  --product-shadow: rgba(0, 0, 0, 0.22) 3px 5px 30px 0;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family:
    "SF Pro Text", "Apple SD Gothic Neo", "Malgun Gothic", system-ui,
    -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.47;
  letter-spacing: -0.374px;
}

img,
video {
  display: block;
  max-width: 100%;
}

button,
a {
  font: inherit;
}

a {
  color: var(--primary);
  text-decoration: none;
}

.sub-nav-inner {
  width: min(100%, 980px);
  height: 100%;
  margin: 0 auto;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sub-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 52px;
  background: rgba(245, 245, 247, 0.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(180%) blur(20px);
}

.sub-nav-title {
  color: var(--ink);
  font-family:
    "SF Pro Display", "Apple SD Gothic Neo", system-ui, -apple-system,
    sans-serif;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.231px;
}

.sub-nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.sub-nav-actions a:not(.pill-button) {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.29;
  letter-spacing: -0.224px;
}

.pill-button,
.more-button,
.closing a {
  display: inline-flex;
  width: auto;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9999px;
  background: var(--primary);
  color: #fff;
  padding: 11px 22px;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
}

.pill-button:active,
.more-button:active,
.closing a:active,
.lightbox-close:active,
.lightbox-nav:active {
  transform: scale(0.95);
}

.pill-button:focus-visible,
.more-button:focus-visible,
.closing a:focus-visible,
.memory-card:focus-visible,
.game-reset:focus-visible,
.photo-button:focus-visible,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  outline: 2px solid var(--primary-focus);
  outline-offset: 3px;
}

.hero {
  position: relative;
  min-height: calc(100svh - 52px);
  overflow: hidden;
  display: grid;
  place-items: end center;
  isolation: isolate;
  background: var(--tile-dark);
}

.hero-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.24) 0%,
      rgba(0, 0, 0, 0.16) 36%,
      rgba(0, 0, 0, 0.42) 100%
    ),
    rgba(0, 0, 0, 0.18);
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(100%, 980px);
  padding: 80px 22px 72px;
  color: #fff;
  text-align: center;
}

.hero-content::before {
  content: "";
  position: absolute;
  inset: 28px max(0px, calc((100% - 760px) / 2)) 34px;
  z-index: -1;
  border-radius: 36px;
  background:
    radial-gradient(
      ellipse at center,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.46) 44%,
      rgba(0, 0, 0, 0.18) 72%,
      rgba(0, 0, 0, 0) 100%
    );
  filter: blur(14px);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary-on-dark);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: -0.224px;
}

.hero .eyebrow {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.72);
}

.eyebrow.dark {
  color: var(--primary);
}

h1,
h2 {
  margin: 0;
  font-family:
    "SF Pro Display", "Apple SD Gothic Neo", system-ui, -apple-system,
    sans-serif;
  font-weight: 600;
}

h1 {
  font-size: 56px;
  line-height: 1.07;
  letter-spacing: 0;
  text-shadow:
    0 2px 3px rgba(0, 0, 0, 0.5),
    0 12px 32px rgba(0, 0, 0, 0.68);
}

h2 {
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  margin: 18px auto 0;
  color: rgba(255, 255, 255, 0.96);
  font-family:
    "SF Pro Display", "Apple SD Gothic Neo", system-ui, -apple-system,
    sans-serif;
  font-size: 28px;
  font-weight: 400;
  line-height: 1.14;
  letter-spacing: 0.196px;
  word-break: keep-all;
  text-shadow:
    0 1px 2px rgba(0, 0, 0, 0.62),
    0 8px 22px rgba(0, 0, 0, 0.72);
}

.section {
  width: 100%;
  margin: 0;
  padding: 80px 22px;
}

.section > *,
.message-band > div,
.closing > * {
  width: min(100%, 980px);
  margin-left: auto;
  margin-right: auto;
}

.intro {
  background: var(--canvas);
  text-align: center;
}

.intro .date {
  display: inline-flex;
  width: auto;
  min-height: 44px;
  align-items: center;
  margin: 0 0 18px;
  padding: 11px 22px;
  border: 1px solid var(--primary);
  border-radius: 9999px;
  color: var(--primary);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.47;
  letter-spacing: -0.374px;
}

.intro p:last-child {
  max-width: 720px;
  margin-top: 24px;
  color: var(--ink);
  word-break: keep-all;
}

.message-band {
  background: var(--tile-dark);
  color: #fff;
  padding: 80px 22px;
  text-align: center;
}

.message-band div {
  display: grid;
  gap: 12px;
}

.message-band span {
  color: var(--primary-on-dark);
  font-size: 17px;
  line-height: 1.47;
}

.message-band strong {
  font-family:
    "SF Pro Display", "Apple SD Gothic Neo", system-ui, -apple-system,
    sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: 0;
  word-break: keep-all;
}

.profile-section {
  background: linear-gradient(180deg, #fffdf8 0%, #f5f5f7 100%);
}

.profile-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 34px;
  align-items: center;
  padding: 34px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.08);
  backdrop-filter: saturate(150%) blur(18px);
}

.profile-illustration {
  overflow: hidden;
  aspect-ratio: 6 / 5;
  border-radius: 22px;
  background: var(--pearl);
}

.profile-illustration img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.profile-content {
  min-width: 0;
}

.profile-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 12px;
  padding: 5px 10px;
  border-radius: 9999px;
  background: rgba(184, 76, 108, 0.1);
  color: #b84c6c;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.29;
  letter-spacing: 0;
}

.profile-content h3 {
  margin: 0 0 24px;
  font-family:
    "SF Pro Display", "Apple SD Gothic Neo", system-ui, -apple-system,
    sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.14;
  letter-spacing: 0;
  word-break: keep-all;
}

.profile-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.profile-list div {
  min-height: 82px;
  padding: 14px 16px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 16px;
  background: #fff;
}

.profile-list dt {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
}

.profile-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
  word-break: keep-all;
}

.profile-list div:nth-child(5),
.profile-list div:nth-child(6) {
  grid-column: 1 / -1;
}

.numbers-section {
  background: #fff;
}

.number-play {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.number-card {
  min-height: 214px;
  padding: 24px;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 18px;
  background: #f8f8fa;
  display: grid;
  align-content: space-between;
  gap: 18px;
}

.number-card-wide {
  grid-column: span 2;
  background: linear-gradient(135deg, #fff5c8 0%, #ffe3ee 58%, #e0f6ff 100%);
}

.number-card-soft {
  background: #1d1d1f;
  color: #fff;
}

.number-value {
  display: block;
  margin-bottom: 30px;
  color: var(--primary);
  font-family:
    "SF Pro Display", "Apple SD Gothic Neo", system-ui, -apple-system,
    sans-serif;
  font-size: 48px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
}

.number-card-soft .number-value {
  color: #ffd95a;
}

.number-card-top .number-value {
  margin-bottom: 0;
}

.number-card-top {
  display: flex;
  min-height: 76px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.number-doodle {
  width: clamp(82px, 24%, 118px);
  min-width: 82px;
  height: auto;
  overflow: visible;
  flex: 0 0 auto;
  transform: rotate(-2deg);
  filter: drop-shadow(0 6px 0 rgba(255, 255, 255, 0.65));
}

.number-card:not(.number-card-wide) .number-doodle {
  width: 92px;
}

.number-card:nth-child(2n) .number-doodle {
  transform: rotate(3deg);
}

.number-card:nth-child(3n) .number-doodle {
  transform: rotate(-4deg);
}

.number-card-soft .number-doodle {
  filter: none;
}

.crayon-line,
.crayon-fill {
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.crayon-line {
  fill: none;
  stroke-width: 5.2;
  opacity: 0.9;
}

.crayon-wobble {
  stroke-width: 3.2;
  opacity: 0.62;
}

.crayon-fill {
  stroke-width: 0;
  opacity: 0.78;
}

.crayon-pink {
  stroke: #f06b9a;
}

.crayon-red {
  stroke: #dd4c4c;
}

.crayon-blue {
  stroke: #2f8be6;
}

.crayon-yellow {
  stroke: #f0bf2e;
}

.crayon-orange {
  stroke: #ec8738;
}

.crayon-green {
  stroke: #3f9f64;
}

.crayon-ink {
  stroke: #3c3c3f;
}

.crayon-sun-fill {
  fill: #ffde67;
}

.crayon-face-fill {
  fill: #ffd77a;
}

.crayon-book-fill {
  fill: #dff4cf;
}

.crayon-banana-fill {
  fill: #ffdf58;
}

.crayon-ice-fill {
  fill: #efb05b;
}

.crayon-cream-fill {
  fill: #ffc6dc;
}

.number-card-soft .crayon-ink {
  stroke: #ffffff;
}

.number-card h3 {
  margin: 0 0 10px;
  font-family:
    "SF Pro Display", "Apple SD Gothic Neo", system-ui, -apple-system,
    sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.17;
  letter-spacing: 0;
  word-break: keep-all;
}

.number-card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  word-break: keep-all;
}

.number-card-soft p {
  color: rgba(255, 255, 255, 0.74);
}

.section-heading {
  margin-bottom: 32px;
  text-align: center;
}

.section:not(.intro):not(.gallery-section):not(.video-section):not(.profile-section):not(.numbers-section):not(.game-section) {
  background: var(--parchment);
}

.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.notes article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--hairline);
  border-radius: 18px;
  background: var(--canvas);
  display: grid;
  align-content: space-between;
}

.notes p {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.47;
  word-break: keep-all;
}

.notes span {
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.29;
  letter-spacing: -0.224px;
}

.game-section {
  background:
    linear-gradient(180deg, #fffaf1 0%, #f4fbff 100%),
    var(--parchment);
}

.memory-game {
  position: relative;
  display: grid;
  gap: 22px;
}

.game-panel {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 24px;
  border: 3px solid #2d2d31;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 216, 102, 0.22) 0 2px, transparent 2px 28px),
    linear-gradient(0deg, rgba(66, 143, 222, 0.16) 0 2px, transparent 2px 28px),
    #fffefa;
  box-shadow: 7px 8px 0 rgba(45, 45, 49, 0.12);
  transform: rotate(-0.35deg);
}

.game-copy {
  min-width: 0;
}

.game-label {
  display: inline-flex;
  margin-bottom: 10px;
  color: #df5d7e;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.game-copy h3 {
  margin: 0;
  font-family:
    "SF Pro Display", "Apple SD Gothic Neo", system-ui, -apple-system,
    sans-serif;
  font-size: 30px;
  line-height: 1.14;
  letter-spacing: 0;
  word-break: keep-all;
}

.game-copy p {
  max-width: 540px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  letter-spacing: 0;
  word-break: keep-all;
}

.game-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  color: var(--ink);
  font-weight: 700;
  white-space: nowrap;
}

.game-stats strong {
  color: #2f8be6;
  font-size: 26px;
  line-height: 1;
}

.game-reset {
  min-height: 42px;
  border: 2px solid #2d2d31;
  border-radius: 8px;
  background: #ffd95a;
  color: var(--ink);
  padding: 9px 15px;
  box-shadow: 4px 5px 0 rgba(45, 45, 49, 0.16);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.game-reset:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 3px 0 rgba(45, 45, 49, 0.16);
}

.memory-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.memory-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  perspective: 900px;
}

.memory-card:nth-child(2n) {
  transform: rotate(1.4deg);
}

.memory-card:nth-child(3n) {
  transform: rotate(-1.8deg);
}

.memory-card-inner {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transition: transform 360ms ease;
}

.memory-card.is-flipped .memory-card-inner,
.memory-card.is-matched .memory-card-inner {
  transform: rotateY(180deg);
}

.memory-face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 3px solid #2d2d31;
  border-radius: 8px;
  backface-visibility: hidden;
  box-shadow: 5px 7px 0 rgba(45, 45, 49, 0.14);
}

.memory-back {
  background:
    radial-gradient(circle at 20% 22%, rgba(255, 116, 151, 0.24) 0 12px, transparent 13px),
    radial-gradient(circle at 78% 72%, rgba(47, 139, 230, 0.2) 0 14px, transparent 15px),
    repeating-linear-gradient(-14deg, #fff4bf 0 9px, #ffec8a 9px 18px);
}

.memory-back::before {
  content: "?";
  color: #2d2d31;
  font-size: clamp(36px, 7vw, 72px);
  font-weight: 900;
  line-height: 1;
  transform: rotate(-8deg);
}

.memory-front {
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 10px 10px 12px;
  background: #fffefa;
  transform: rotateY(180deg);
}

.memory-card.is-matched .memory-front {
  background: #f0ffe9;
}

.memory-character {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 6px;
  filter: saturate(1.03) drop-shadow(0 5px 0 rgba(0, 0, 0, 0.06));
}

.memory-name {
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
  word-break: keep-all;
}

.game-complete {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px 20px;
  border: 3px dashed #df5d7e;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  text-align: center;
}

.game-complete.is-visible {
  display: flex;
}

.game-complete strong {
  color: #df5d7e;
}

.party-particles {
  position: absolute;
  inset: -28px 0 auto;
  height: min(420px, 62vw);
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.party-particle {
  position: absolute;
  left: 50%;
  top: 48%;
  width: var(--particle-size, 12px);
  height: var(--particle-size, 12px);
  border: 2px solid rgba(45, 45, 49, 0.28);
  border-radius: var(--particle-radius, 50%);
  background: var(--particle-color, #ffd95a);
  box-shadow: inset 2px 2px 0 rgba(255, 255, 255, 0.28);
  transform: translate(-50%, -50%) rotate(0deg);
  animation: party-pop 980ms cubic-bezier(0.12, 0.74, 0.22, 1) forwards;
}

.party-particle:nth-child(3n) {
  border-radius: 3px;
}

.party-particle:nth-child(4n) {
  width: calc(var(--particle-size, 12px) * 0.55);
  height: calc(var(--particle-size, 12px) * 1.7);
}

@keyframes party-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.32) rotate(0deg);
  }

  12% {
    opacity: 1;
  }

  72% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform:
      translate(
        calc(-50% + var(--particle-x, 0px)),
        calc(-50% + var(--particle-y, -180px))
      )
      scale(1)
      rotate(var(--particle-rotate, 240deg));
  }
}

.gallery-section {
  background: var(--canvas);
}

.gallery {
  width: min(100%, 1440px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.photo-button {
  border: 0;
  padding: 0;
  background: var(--parchment);
  border-radius: 0;
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
}

.photo-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.photo-button:hover img {
  transform: scale(1.02);
}

.more-button {
  display: flex;
  width: auto;
  margin-top: 24px;
  margin-left: auto;
  margin-right: auto;
}

.more-button:disabled {
  background: var(--hairline);
  color: var(--muted);
  cursor: default;
}

.more-button:disabled:active {
  transform: none;
}

.video-section {
  background: var(--tile-dark-3);
  color: #fff;
}

.video-section .eyebrow {
  color: var(--primary-on-dark);
}

.video-frame {
  position: relative;
  overflow: hidden;
  background: var(--black);
  aspect-ratio: 16 / 9;
}

.video-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-frame.is-empty video {
  opacity: 0.2;
  filter: saturate(0.8);
}

.video-empty {
  display: none;
  position: absolute;
  inset: 0;
  padding: 32px;
  color: #fff;
  place-content: center;
  text-align: center;
  background: rgba(0, 0, 0, 0.42);
}

.video-frame.is-empty .video-empty {
  display: grid;
}

.video-empty strong {
  font-family:
    "SF Pro Display", "Apple SD Gothic Neo", system-ui, -apple-system,
    sans-serif;
  font-size: 40px;
  font-weight: 600;
  line-height: 1.1;
}

.video-empty span {
  max-width: 500px;
  margin: 12px auto 0;
  color: var(--muted-dark);
  font-size: 17px;
  line-height: 1.47;
}

.closing {
  padding: 64px 22px;
  background: var(--parchment);
  text-align: center;
}

.closing p {
  margin-top: 0;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
  letter-spacing: 0.231px;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.9);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(100%, 1120px);
  max-height: 86svh;
  object-fit: contain;
  box-shadow: var(--product-shadow);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(210, 210, 215, 0.64);
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: saturate(180%) blur(20px);
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(210, 210, 215, 0.64);
  color: var(--ink);
  font-size: 0;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: saturate(180%) blur(20px);
  transition: transform 160ms ease, background-color 160ms ease;
}

.lightbox-nav::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
}

.lightbox-prev::before {
  transform: translate(-50%, -50%) rotate(-135deg);
}

.lightbox-next::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.lightbox-nav:hover,
.lightbox-close:hover {
  background: rgba(245, 245, 247, 0.82);
}

.lightbox-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.lightbox-prev {
  left: 18px;
}

.lightbox-next {
  right: 18px;
}

.lightbox-count {
  position: absolute;
  left: 50%;
  bottom: 16px;
  min-width: 72px;
  border-radius: 9999px;
  background: rgba(29, 29, 31, 0.62);
  color: #fff;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: saturate(180%) blur(20px);
}

@media (max-width: 833px) {
  .sub-nav-title {
    font-size: 15px;
    flex-shrink: 0;
  }

  .sub-nav-inner {
    gap: 10px;
    overflow: hidden;
  }

  .sub-nav-actions {
    overflow-x: auto;
    min-width: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .sub-nav-actions::-webkit-scrollbar {
    display: none;
  }

  .sub-nav-actions a {
    white-space: nowrap;
    flex-shrink: 0;
  }

  .hero-content {
    padding-top: 64px;
    padding-bottom: 56px;
  }

  h1,
  h2,
  .message-band strong,
  .video-empty strong {
    font-size: 40px;
  }

  .hero-copy {
    font-size: 24px;
    line-height: 1.5;
  }

  .notes {
    grid-template-columns: 1fr;
  }

  .number-play {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .number-card-wide {
    grid-column: 1 / -1;
  }

  .game-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .game-stats {
    justify-content: flex-start;
    white-space: normal;
  }

  .profile-card {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .profile-content h3 {
    font-size: 30px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sub-nav-inner {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero {
    min-height: calc(100svh - 52px);
  }

  .hero-content,
  .section,
  .message-band {
    padding-left: 18px;
    padding-right: 18px;
  }

  .section,
  .message-band {
    padding-top: 58px;
    padding-bottom: 58px;
  }

  .profile-card {
    padding: 20px;
    border-radius: 20px;
  }

  .profile-illustration {
    border-radius: 18px;
  }

  .profile-list {
    grid-template-columns: 1fr;
  }

  .profile-list div {
    min-height: 76px;
  }

  .number-play {
    grid-template-columns: 1fr;
  }

  .number-card {
    min-height: 188px;
    padding: 22px;
  }

  .number-value {
    font-size: 42px;
    margin-bottom: 0;
  }

  .number-card-top {
    min-height: 68px;
  }

  .number-card:not(.number-card-wide) .number-doodle,
  .number-doodle {
    width: 76px;
    min-width: 76px;
  }

  .memory-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .game-panel {
    padding: 20px;
  }

  .game-copy h3 {
    font-size: 25px;
  }

  .memory-name {
    font-size: 14px;
  }

  h1,
  h2,
  .message-band strong,
  .video-empty strong {
    font-size: 34px;
  }

  .hero-copy {
    font-size: 21px;
    line-height: 1.19;
  }

  .gallery {
    gap: 8px;
  }

  .lightbox {
    padding: 52px 10px;
  }

  .lightbox img {
    max-height: 78svh;
  }

  .lightbox-nav {
    width: 44px;
    height: 44px;
    font-size: 36px;
  }

  .lightbox-prev {
    left: 10px;
  }

  .lightbox-next {
    right: 10px;
  }
}

@media (max-width: 419px) {
  h1,
  h2,
  .message-band strong,
  .video-empty strong {
    font-size: 28px;
  }

  .hero-copy {
    font-size: 18px;
  }

  .profile-content h3 {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }

  .party-particles {
    display: none;
  }
}
