:root {
  --navy: #071b43;
  --navy-2: #0d2d62;
  --blue: #2e68ac;
  --paper: #f7f5ee;
  --white: #fffdfa;
  --yellow: #ffe34f;
  --red: #f04a47;
  --ink: #081b3e;
  --shadow: 0 32px 80px rgba(0, 7, 27, 0.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html,
body,
body * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--white);
  background: var(--navy);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
img {
  -webkit-user-drag: none;
  user-drag: none;
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; touch-action: manipulation; }

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.055;
  background-image:
    radial-gradient(circle at 12% 23%, white 0 0.45px, transparent 0.7px),
    radial-gradient(circle at 74% 61%, white 0 0.45px, transparent 0.7px);
  background-size: 5px 5px, 7px 7px;
}
.diagonal {
  position: fixed;
  z-index: -1;
  width: 90vw;
  height: 10vw;
  background: #020f2d;
  transform: rotate(63deg);
  opacity: 0.75;
}
.diagonal-one { left: -32vw; top: 24vh; }
.diagonal-two { right: -39vw; bottom: 12vh; background: #244c83; }

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px clamp(22px, 4vw, 64px);
}
.brand { display: flex; align-items: center; gap: 13px; color: inherit; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 48px;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  color: var(--yellow);
  font: 900 17px/1 Arial Black, sans-serif;
  transform: rotate(-8deg);
}
.brand-copy { display: grid; gap: 3px; }
.brand-copy strong { font-size: 12px; letter-spacing: 0.16em; }
.brand-copy small { color: #b5c8e5; font-size: 9px; letter-spacing: 0.14em; }
.mini-wish {
  padding: 11px 15px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 999px;
  color: var(--white);
  background: rgba(255,255,255,.06);
  backdrop-filter: blur(10px);
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
  transition: background .2s ease, transform .2s ease;
}
.mini-wish:hover { background: rgba(255,255,255,.14); transform: translateY(-2px); }

.hero {
  position: relative;
  display: grid;
  min-height: 104svh;
  place-items: center;
  overflow: hidden;
  padding: 100px 20px 70px;
  background: radial-gradient(circle at 50% 37%, rgba(84,132,192,.72), transparent 36%), linear-gradient(135deg, #07173a 0%, #153665 52%, #071a42 100%);
}
.eyebrow {
  position: absolute;
  top: 12.5vh;
  margin: 0;
  color: #cfdaeb;
  font-size: clamp(9px, 1vw, 12px);
  font-weight: 800;
  letter-spacing: .42em;
}
.hero-word {
  position: absolute;
  top: 10.5vh;
  left: 50%;
  display: grid;
  justify-items: center;
  color: rgba(255,255,255,.98);
  font: 900 clamp(122px, 19.5vw, 320px)/.67 Arial Black, Impact, sans-serif;
  letter-spacing: -.085em;
  transform: translateX(-51%);
  white-space: nowrap;
  text-shadow: 0 12px 30px rgba(4,15,45,.22);
}
.hero-word span:last-child {
  color: transparent;
  font-size: .62em;
  letter-spacing: -.045em;
  -webkit-text-stroke: 3px rgba(255,255,255,.55);
}
.hero-doodle {
  position: absolute;
  z-index: 2;
  color: white;
  font-family: "Bradley Hand", "Comic Sans MS", cursive;
  font-weight: 900;
  filter: drop-shadow(2px 2px 0 #183b70);
  opacity: .92;
}
.doodle-one { top: 17%; left: 7%; font-size: clamp(44px,6vw,84px); transform: rotate(-18deg) scaleX(.84); }
.doodle-two { top: 31%; right: 8%; font-size: clamp(35px,4vw,62px); transform: rotate(11deg); }
.doodle-three { top: 64%; left: 9%; color: var(--yellow); font-size: clamp(45px,6vw,90px); transform: rotate(-11deg) scaleX(1.5); }
.social-card {
  --card-rx: 0deg;
  --card-ry: 0deg;
  --back-x: 0px;
  --back-y: 0px;
  --mid-x: 0px;
  --mid-y: 0px;
  --front-x: 0px;
  --front-y: 0px;
  --title-x: 0px;
  --title-y: 0px;
  --spark-x: 0px;
  --spark-y: 0px;
  --glow-x: 50%;
  --glow-y: 40%;
  position: relative;
  z-index: 3;
  width: min(610px, 88vw);
  margin-top: 10vh;
  overflow: hidden;
  border: 8px solid rgba(255,255,255,.98);
  border-radius: 36px;
  color: var(--ink);
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(-.55deg) perspective(1100px) rotateX(var(--card-rx)) rotateY(var(--card-ry));
  transform-style: preserve-3d;
  transition: transform .22s ease-out;
  will-change: transform;
}
.post-topbar { display: flex; align-items: center; height: 68px; padding: 10px 16px; gap: 11px; }
.avatar {
  display: grid;
  width: 38px;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid var(--blue);
  border-radius: 50%;
  color: white;
  background: var(--navy-2);
  font: 900 16px/1 Arial Black, sans-serif;
}
.post-topbar div:nth-child(2) { display: grid; gap: 2px; }
.post-topbar strong { font-size: 13px; }
.post-topbar small { color: #697690; font-size: 9px; letter-spacing: .04em; }
.motion-toggle {
  display: flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid #d6dfeb;
  border-radius: 999px;
  color: #58657c;
  background: #f6f8fb;
  cursor: pointer;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .1em;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.motion-toggle[hidden] { display: none; }
.motion-toggle:active { transform: scale(.93); }
.motion-toggle:focus-visible { outline: 3px solid rgba(46,104,172,.25); outline-offset: 2px; }
.motion-toggle[aria-pressed="true"] { color: white; border-color: var(--blue); background: var(--blue); }
.motion-label { white-space: nowrap; }
.motion-dot { width: 7px; aspect-ratio: 1; border: 1.5px solid currentColor; border-radius: 50%; box-shadow: inset 0 0 0 1.5px white; }
.motion-toggle[aria-pressed="true"] .motion-dot { background: var(--yellow); box-shadow: 0 0 0 3px rgba(255,227,79,.2); animation: motion-pulse 1.8s ease-in-out infinite; }
.post-menu { margin-left: 0; letter-spacing: 3px; }
.motion-toggle[hidden] + .post-menu { margin-left: auto; }
.motion-toggle:not([hidden]) + .post-menu { display: none; }

.portrait-stage {
  position: relative;
  height: min(61vh, 590px);
  min-height: 480px;
  overflow: visible;
  -webkit-clip-path: inset(-36px 0 0 0);
  clip-path: inset(-36px 0 0 0);
  isolation: isolate;
  transform-style: preserve-3d;
  background: radial-gradient(circle at 70% 30%, rgba(183,214,246,.92), transparent 28%), linear-gradient(145deg, #204d8d, #7ea2d1 54%, #193f77);
}
.portrait-stage::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  opacity: .34;
  background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(255,255,255,.35), transparent 34%);
  transition: background-position .2s ease-out;
}
.outline-words {
  position: absolute;
  inset: 34px -62px auto;
  display: grid;
  color: transparent;
  font: 900 clamp(82px, 9.5vw, 122px)/.82 Arial Black, Impact, sans-serif;
  letter-spacing: -.07em;
  -webkit-text-stroke: 2.5px rgba(255,255,255,.5);
  transform: rotate(-1deg);
  translate: var(--back-x) var(--back-y);
  transition: translate .2s ease-out;
}
.portrait {
  position: absolute;
  z-index: 2;
  right: 6%;
  bottom: -7%;
  width: auto;
  height: 111%;
  max-width: none;
  pointer-events: none;
  object-fit: contain;
  filter: drop-shadow(0 18px 14px rgba(5,21,53,.28));
  transform: translateZ(52px) scale(1.01);
  translate: var(--front-x) var(--front-y);
  transition: translate .18s ease-out;
  will-change: translate;
}
.sun-doodle {
  position: absolute;
  z-index: 1;
  top: 34px;
  right: 36px;
  width: 108px;
  aspect-ratio: 1;
  border: 3px solid #f7ce2f;
  border-radius: 47% 53% 46% 54% / 55% 44% 56% 45%;
  background: var(--yellow);
  box-shadow: inset 8px -5px 0 rgba(255,255,255,.12), 0 0 0 4px rgba(255,227,79,.05);
  transform: rotate(-8deg);
  translate: var(--mid-x) var(--mid-y);
  transition: translate .22s ease-out;
}
.sun-doodle::after {
  content: "";
  position: absolute;
  inset: 10px 8px 8px 12px;
  border: 2px solid rgba(181,133,20,.22);
  border-radius: 54% 46% 52% 48% / 45% 56% 44% 55%;
  transform: rotate(13deg);
}
.sun-doodle i {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 37px;
  border-radius: 60% 35% 55% 40%;
  background: var(--yellow);
  box-shadow: 1px 0 0 rgba(207,158,24,.25);
}
.sun-doodle i:nth-of-type(1) { height: 43px; transform: rotate(3deg) translateY(-93px) rotate(-5deg); }
.sun-doodle i:nth-of-type(2) { height: 30px; transform: rotate(43deg) translateY(-91px) rotate(4deg); }
.sun-doodle i:nth-of-type(3) { height: 45px; transform: rotate(88deg) translateY(-96px) rotate(-3deg); }
.sun-doodle i:nth-of-type(4) { height: 33px; transform: rotate(132deg) translateY(-90px) rotate(6deg); }
.sun-doodle i:nth-of-type(5) { height: 42px; transform: rotate(181deg) translateY(-94px) rotate(-4deg); }
.sun-doodle i:nth-of-type(6) { height: 34px; transform: rotate(223deg) translateY(-91px) rotate(5deg); }
.sun-doodle i:nth-of-type(7) { height: 46px; transform: rotate(268deg) translateY(-96px) rotate(-4deg); }
.sun-doodle i:nth-of-type(8) { height: 31px; transform: rotate(316deg) translateY(-90px) rotate(4deg); }
.star {
  position: absolute;
  z-index: 4;
  color: white;
  font-family: "Bradley Hand", "Comic Sans MS", cursive;
  -webkit-text-stroke: .7px white;
  text-shadow: 2px 2px 0 var(--navy);
  filter: drop-shadow(1px 1px 0 rgba(255,255,255,.45));
  translate: var(--spark-x) var(--spark-y);
  transition: translate .2s ease-out;
}
.star-a { top: 22px; left: 25px; font-size: 48px; transform: rotate(-21deg) scaleX(.82); }
.star-b { top: 94px; left: 76px; font-size: 32px; transform: rotate(13deg) scaleY(1.12); }
.star-c { right: 19px; bottom: 27px; font-size: 52px; transform: rotate(-9deg) scaleX(.88); }

.title-burst { position: absolute; z-index: 5; bottom: 32px; left: 18px; display: grid; justify-items: start; transform: translateZ(68px) rotate(-6deg); translate: var(--title-x) var(--title-y); transition: translate .17s ease-out; will-change: translate; }
.title-burst::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -35px -50px -45px -40px;
  background: var(--yellow);
  clip-path: polygon(0 43%,29% 43%,15% 4%,42% 33%,48% 0,58% 35%,88% 18%,72% 50%,100% 64%,67% 67%,80% 100%,50% 75%,25% 96%,31% 68%);
}
.title-burst span, .title-burst strong {
  display: inline-block;
  border: 3px solid var(--navy);
  color: white;
  background: var(--blue);
  box-shadow: 3px 3px 0 white;
  font-family: Arial Black, Impact, sans-serif;
  line-height: .95;
  text-shadow: 2px 2px 0 var(--navy);
}
.title-burst span { padding: 5px 9px; font-size: clamp(15px, 2.2vw, 23px); }
.title-burst strong { max-width: 400px; padding: 7px 12px; font-size: clamp(28px, 5.6vw, 56px); letter-spacing: -.05em; }

.post-actions {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px 7px;
}
.action-group { display: flex; align-items: center; gap: 6px; }
.social-action {
  position: relative;
  display: flex;
  min-height: 39px;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  padding: 5px 9px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  transition: color .24s ease, background .24s ease, border-color .24s ease, transform .24s cubic-bezier(.2,.9,.25,1.35), box-shadow .24s ease;
}
.social-action:hover {
  border-color: #dce3ed;
  background: #f2f5f9;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(17,49,93,.09);
}
.social-action:active { transform: scale(.92); }
.social-action:focus-visible { outline: 3px solid rgba(46,104,172,.28); outline-offset: 2px; }
.action-icon { display: grid; width: 25px; height: 25px; place-items: center; font: 400 29px/1 Arial, sans-serif; }
.action-number { font-size: 8px; font-weight: 900; letter-spacing: .045em; }
.heart-icon { transition: color .22s ease, transform .42s cubic-bezier(.2,1.7,.35,1); }
.like-button[aria-pressed="true"] { color: var(--red); border-color: rgba(240,74,71,.18); background: rgba(240,74,71,.08); }
.like-button[aria-pressed="true"] .heart-icon { font-size: 0; transform: scale(1.08) rotate(-7deg); }
.like-button[aria-pressed="true"] .heart-icon::after { content: "♥"; font-size: 27px; }
.comment-icon { position: relative; font-size: 27px; transform: scaleX(1.06); }
.comment-icon::after { content: ""; position: absolute; right: 3px; bottom: 2px; width: 7px; height: 7px; border-left: 2px solid currentColor; transform: rotate(-28deg); }
.comment-button[aria-expanded="true"] { color: white; border-color: var(--blue); background: var(--blue); box-shadow: 0 7px 18px rgba(46,104,172,.27); }
.send-icon { font-size: 25px; font-weight: 700; transform: rotate(-11deg); transition: transform .35s cubic-bezier(.2,1.5,.35,1); }
.send-button:hover .send-icon { transform: translate(3px,-3px) rotate(-11deg); }
.bookmark-button { padding-inline: 10px; }
.bookmark-mark {
  position: relative;
  width: 17px;
  height: 23px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
  clip-path: polygon(0 0,100% 0,100% 100%,50% 72%,0 100%);
  background: transparent;
  transition: background .25s ease, transform .45s cubic-bezier(.2,1.6,.35,1);
}
.bookmark-button[aria-pressed="true"] { color: white; border-color: var(--navy); background: var(--navy); box-shadow: 0 7px 18px rgba(7,27,67,.25); }
.bookmark-button[aria-pressed="true"] .bookmark-mark { background: var(--yellow); transform: translateY(-2px) rotate(7deg) scale(1.08); }
.bookmark-label { font-size: 8px; font-weight: 900; letter-spacing: .1em; }
.action-ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: currentColor;
  opacity: .16;
  pointer-events: none;
  transform: translate(-50%,-50%) scale(0);
  animation: action-ripple .55s ease-out forwards;
}
.mini-heart {
  position: fixed;
  z-index: 120;
  left: var(--heart-x);
  top: var(--heart-y);
  color: var(--heart-color);
  pointer-events: none;
  font-size: var(--heart-size);
  text-shadow: 0 2px 0 white;
  animation: heart-pop var(--heart-time) cubic-bezier(.16,.7,.32,1) forwards;
}
.comment-panel {
  max-height: 0;
  overflow: hidden;
  padding: 0 15px;
  opacity: 0;
  visibility: hidden;
  background: linear-gradient(180deg,#f3f6fa,#fffdfa);
  transform: translateY(-12px);
  transition: max-height .48s cubic-bezier(.2,.8,.22,1), opacity .3s ease, transform .48s cubic-bezier(.2,.8,.22,1), padding .48s ease, visibility 0s .48s;
}
.comment-panel.is-open {
  max-height: 390px;
  padding: 12px 15px 15px;
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  transition-delay: 0s;
}
.comment-panel-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 10px; border-bottom: 1px dashed #bdc9d9; }
.comment-panel-head > div { display: grid; gap: 2px; }
.comment-panel-head strong { color: var(--blue); font-size: 9px; letter-spacing: .19em; }
.comment-panel-head small { color: #7b879a; font-size: 8px; }
.comment-close { width: 28px; height: 28px; border: 1px solid #d8e0ea; border-radius: 50%; color: var(--ink); background: white; cursor: pointer; font-size: 18px; line-height: 1; }
.comment-list { display: grid; gap: 10px; padding: 12px 0; }
.comment-item { display: flex; align-items: flex-start; gap: 9px; }
.comment-avatar { display: grid; flex: 0 0 31px; aspect-ratio: 1; place-items: center; border: 2px solid var(--ink); border-radius: 50%; font: 900 10px/1 Arial Black,sans-serif; transform: rotate(-5deg); }
.avatar-yellow { background: var(--yellow); }
.avatar-blue { color: white; background: var(--blue); transform: rotate(6deg); }
.comment-item p { margin: 0; color: #45516a; font-size: 9px; line-height: 1.45; }
.comment-item p strong { margin-right: 5px; color: var(--ink); font-size: 9px; }
.comment-item p small { display: block; margin-top: 3px; color: #949dac; font-size: 7px; letter-spacing: .06em; }
.quick-reactions { display: flex; align-items: center; gap: 6px; padding-top: 10px; border-top: 1px dashed #bdc9d9; }
.quick-reactions > span { margin-right: 2px; color: #8791a1; font-size: 7px; font-weight: 900; letter-spacing: .1em; }
.quick-reactions button { display: grid; min-width: 31px; height: 31px; padding: 0 7px; place-items: center; border: 1px solid #d8e0ea; border-radius: 999px; background: white; cursor: pointer; transition: transform .2s cubic-bezier(.2,1.6,.35,1), background .2s ease; }
.quick-reactions button:hover { background: #f8efd0; transform: translateY(-3px) rotate(-6deg) scale(1.1); }
.quick-reactions .write-wish { margin-left: auto; padding-inline: 11px; color: white; border-color: var(--navy); background: var(--navy); font-size: 7px; font-weight: 900; letter-spacing: .08em; }
.action-toast {
  position: absolute;
  z-index: 12;
  left: 50%;
  bottom: 92px;
  max-width: calc(100% - 40px);
  padding: 9px 13px;
  border-radius: 999px;
  color: white;
  background: rgba(7,27,67,.92);
  box-shadow: 0 12px 30px rgba(7,27,67,.25);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%,12px) scale(.92);
  transition: opacity .25s ease, transform .35s cubic-bezier(.2,1.4,.35,1);
  white-space: nowrap;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
}
.action-toast.is-visible { opacity: 1; transform: translate(-50%,0) scale(1); }
.post-caption { padding: 0 17px 15px; }
.post-caption strong { font-size: 12px; }
.post-caption p { margin: 7px 0 9px; color: #34425e; font-size: 11px; line-height: 1.48; }
.post-caption time { color: #8a92a2; font-size: 8px; letter-spacing: .11em; }
.orbit-note { position: absolute; z-index: 2; display: grid; gap: 7px; color: #a9bddb; font-size: 9px; font-weight: 800; letter-spacing: .2em; }
.orbit-note-left { left: clamp(20px,7vw,110px); top: 47%; transform: rotate(-90deg) translateX(-50%); }
.orbit-note-right { right: clamp(18px,6vw,90px); top: 43%; transform: rotate(90deg) translateX(50%); text-align: right; }
.yellow-burst {
  position: absolute;
  z-index: 1;
  left: calc(50% - 390px);
  bottom: 12vh;
  width: 160px; height: 120px;
  background: var(--yellow);
  clip-path: polygon(0 49%,34% 44%,11% 14%,46% 36%,49% 0,60% 37%,97% 20%,70% 51%,100% 69%,63% 64%,70% 100%,49% 70%,13% 95%,34% 62%);
}
.scroll-note { position: absolute; right: clamp(25px,5vw,75px); bottom: 35px; margin: 0; color: #bdd0e9; font-size: 9px; font-weight: 800; letter-spacing: .17em; }

.wish-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(220px,.6fr);
  min-height: 74svh;
  align-items: center;
  gap: clamp(40px,8vw,120px);
  padding: clamp(80px,10vw,150px) clamp(28px,10vw,160px);
  color: var(--ink);
  background: linear-gradient(90deg, transparent 49.85%, rgba(11,35,76,.1) 50%, transparent 50.15%), var(--paper);
}
.wish-section::after {
  content: "BIRTHDAY";
  position: absolute;
  right: -2vw; bottom: -3vw;
  color: transparent;
  font: 900 11vw/1 Arial Black, sans-serif;
  -webkit-text-stroke: 1px rgba(20,55,103,.1);
  pointer-events: none;
}
.section-kicker { display: inline-block; margin-bottom: 25px; color: var(--blue); font-size: 10px; font-weight: 900; letter-spacing: .3em; }
.wish-copy h2 { max-width: 900px; margin: 0; font: 900 clamp(40px,6.4vw,94px)/.95 Arial Black, Impact, sans-serif; letter-spacing: -.055em; text-transform: uppercase; }
.wish-copy h2 em { color: var(--blue); font-style: normal; }
.wish-copy > p { max-width: 650px; margin: 34px 0; color: #3d4b65; font-size: clamp(15px,1.4vw,19px); line-height: 1.8; }
.wish-actions { display: flex; align-items: center; gap: 24px; }
.primary-button {
  padding: 17px 22px;
  border: 0;
  border-radius: 2px;
  color: white;
  background: var(--navy);
  box-shadow: 6px 6px 0 var(--yellow);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
  transition: transform .2s ease, box-shadow .2s ease;
}
.primary-button:hover { transform: translate(3px,3px); box-shadow: 3px 3px 0 var(--yellow); }
.wish-count { color: #71809a; font-size: 9px; letter-spacing: .16em; text-transform: uppercase; }
.wish-count strong { color: var(--blue); font-size: 17px; }
.year-stamp {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%,300px);
  aspect-ratio: 1;
  place-items: center;
  justify-self: center;
  border: 2px solid var(--navy);
  border-radius: 50%;
  transform: rotate(8deg);
}
.year-stamp::before, .year-stamp::after { content: ""; position: absolute; inset: 12px; border: 1px dashed var(--blue); border-radius: 50%; }
.year-stamp::after { inset: -14px; border-style: solid; opacity: .2; }
.year-stamp strong { color: var(--yellow); font: 900 clamp(85px,10vw,150px)/1 Arial Black, sans-serif; text-shadow: 3px 3px 0 var(--navy); }
.year-stamp span { position: absolute; font-size: 9px; font-weight: 900; letter-spacing: .24em; }
.year-stamp span:first-child { top: 28px; }
.year-stamp span:last-child { bottom: 28px; }

footer { display: flex; justify-content: center; align-items: center; gap: 22px; min-height: 105px; padding: 30px; color: #aebed8; background: #041431; font-size: 9px; font-weight: 800; letter-spacing: .24em; }
.footer-star { color: var(--yellow); font-size: 18px; }
.motion-gate {
  position: fixed;
  z-index: 240;
  inset: 0;
  display: grid;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  place-items: center;
  background: radial-gradient(circle at 50% 36%, rgba(74,126,188,.46), transparent 38%), rgba(3,16,44,.92);
  -webkit-backdrop-filter: blur(13px);
  backdrop-filter: blur(13px);
}
.motion-gate[hidden] { display: none; }
.motion-gate-card {
  position: relative;
  width: min(100%, 390px);
  overflow: hidden;
  padding: 52px 30px 30px;
  border: 5px solid white;
  border-radius: 28px;
  color: var(--ink);
  background: var(--paper);
  box-shadow: 0 30px 90px rgba(0,7,27,.55);
  text-align: center;
}
.motion-gate-card::before {
  content: "TILT";
  position: absolute;
  top: -15px;
  left: 50%;
  color: transparent;
  font: 900 88px/1 Arial Black, sans-serif;
  letter-spacing: -.08em;
  -webkit-text-stroke: 1.5px rgba(46,104,172,.12);
  transform: translateX(-50%);
}
.motion-gate-orbit { position: relative; display: inline-grid; width: 64px; aspect-ratio: 1; margin-bottom: 22px; place-items: center; border: 2px solid var(--blue); border-radius: 50%; }
.motion-gate-orbit::before, .motion-gate-orbit::after { content: ""; position: absolute; width: 88px; height: 28px; border: 2px solid var(--yellow); border-radius: 50%; transform: rotate(28deg); }
.motion-gate-orbit::after { transform: rotate(-28deg); }
.motion-gate-orbit i { width: 15px; aspect-ratio: 1; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 6px rgba(46,104,172,.12); animation: motion-pulse 1.8s ease-in-out infinite; }
.motion-gate-kicker { display: block; margin-bottom: 12px; color: var(--blue); font-size: 8px; font-weight: 900; letter-spacing: .26em; }
.motion-gate-card h2 { margin: 0; font: 900 clamp(34px,10vw,48px)/.98 Arial Black, sans-serif; letter-spacing: -.055em; text-transform: uppercase; }
.motion-gate-card p { margin: 18px auto 25px; color: #536078; font-size: 12px; line-height: 1.7; }
.motion-gate-enable { width: 100%; min-height: 50px; }
.motion-gate-skip { margin-top: 17px; padding: 6px 10px; border: 0; color: #7a8598; background: transparent; cursor: pointer; font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.motion-gate-skip:focus-visible { outline: 2px solid rgba(46,104,172,.35); outline-offset: 3px; }
body.motion-gate-open { overflow: hidden; }
.wish-dialog {
  width: min(580px,calc(100vw - 36px));
  padding: clamp(38px,6vw,70px);
  border: 7px solid white;
  border-radius: 28px;
  color: white;
  background: var(--navy-2);
  box-shadow: var(--shadow);
  text-align: center;
}
.wish-dialog::backdrop { background: rgba(2,10,30,.78); backdrop-filter: blur(8px); }
.wish-dialog p { color: var(--yellow); font-size: 10px; font-weight: 900; letter-spacing: .28em; text-transform: uppercase; }
.wish-dialog h2 { margin: 18px 0 35px; font: 900 clamp(32px,5vw,57px)/1.04 Arial Black, sans-serif; letter-spacing: -.045em; text-transform: uppercase; }
.dialog-close { position: absolute; top: 14px; right: 18px; border: 0; color: white; background: transparent; cursor: pointer; font-size: 34px; }
.dialog-spark { display: inline-block; color: var(--yellow); font-size: 42px; animation: twirl 5s linear infinite; }

.confetti {
  position: fixed;
  z-index: 100;
  top: -20px;
  left: var(--x);
  width: var(--w);
  height: calc(var(--w) * 1.8);
  border-radius: 2px;
  background: var(--c);
  pointer-events: none;
  animation: confetti-fall var(--d) var(--delay) cubic-bezier(.12,.65,.35,1) forwards;
}
@keyframes confetti-fall { to { transform: translate3d(var(--drift),110vh,0) rotate(var(--spin)); opacity: .8; } }
@keyframes twirl { to { transform: rotate(360deg); } }
@keyframes motion-pulse { 50% { transform: scale(.72); opacity: .72; } }
@keyframes action-ripple { to { opacity: 0; transform: translate(-50%,-50%) scale(8); } }
@keyframes heart-pop {
  0% { opacity: 0; transform: translate(-50%,-20%) scale(.4) rotate(0deg); }
  18% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--heart-drift)),calc(-100% - var(--heart-rise))) scale(1.15) rotate(var(--heart-rotate)); }
}

@media (max-width: 840px) {
  .hero { padding-inline: 12px; }
  .hero-word { top: 14vh; font-size: 24vw; }
  .eyebrow { top: 14vh; }
  .orbit-note, .yellow-burst { display: none; }
  .social-card { width: min(570px,94vw); margin-top: 8vh; border-width: 6px; border-radius: 28px; }
  .wish-section { grid-template-columns: 1fr; }
  .year-stamp { width: min(70vw,290px); }
}
@media (max-width: 560px) {
  .site-header {
    padding: calc(16px + env(safe-area-inset-top)) max(14px, env(safe-area-inset-right)) 16px max(14px, env(safe-area-inset-left));
  }
  .brand-mark { width: 40px; }
  .brand-copy strong { font-size: 9px; }
  .brand-copy small { display: none; }
  .mini-wish { padding: 9px 11px; font-size: 8px; }
  .hero {
    min-height: max(100svh, 820px);
    padding: calc(82px + env(safe-area-inset-top)) max(9px, env(safe-area-inset-right)) calc(62px + env(safe-area-inset-bottom)) max(9px, env(safe-area-inset-left));
  }
  .hero-word { top: calc(132px + env(safe-area-inset-top)); font-size: clamp(86px, 27vw, 116px); line-height: .72; }
  .hero-word span:last-child { font-size: .72em; -webkit-text-stroke-width: 2px; }
  .doodle-one { top: 19%; left: 3%; font-size: 44px; }
  .doodle-two { top: 28%; right: 2%; font-size: 34px; }
  .doodle-three { display: none; }
  .eyebrow { top: calc(108px + env(safe-area-inset-top)); width: 100%; padding-left: .42em; text-align: center; white-space: nowrap; }
  .social-card {
    width: min(calc(100% - 24px), 360px);
    margin-top: 60px;
    border-width: 4px;
    border-radius: 22px;
    transform: perspective(1100px) rotateX(var(--card-rx)) rotateY(var(--card-ry));
  }
  .post-topbar { height: 55px; padding-inline: 12px; }
  .avatar { width: 34px; }
  .portrait-stage { height: auto; min-height: 0; aspect-ratio: .69; }
  .portrait { right: -4%; height: 104%; bottom: -2%; }
  .outline-words { inset: 10% -44px auto; font-size: clamp(68px, 22vw, 88px); line-height: .8; }
  .sun-doodle { width: 78px; top: 35px; right: 25px; }
  .sun-doodle i { width: 4px; height: 25px; }
  .sun-doodle i:nth-of-type(1) { height: 29px; transform: rotate(3deg) translateY(-67px) rotate(-5deg); }
  .sun-doodle i:nth-of-type(2) { height: 22px; transform: rotate(43deg) translateY(-65px) rotate(4deg); }
  .sun-doodle i:nth-of-type(3) { height: 31px; transform: rotate(88deg) translateY(-69px) rotate(-3deg); }
  .sun-doodle i:nth-of-type(4) { height: 23px; transform: rotate(132deg) translateY(-64px) rotate(6deg); }
  .sun-doodle i:nth-of-type(5) { height: 29px; transform: rotate(181deg) translateY(-67px) rotate(-4deg); }
  .sun-doodle i:nth-of-type(6) { height: 23px; transform: rotate(223deg) translateY(-65px) rotate(5deg); }
  .sun-doodle i:nth-of-type(7) { height: 31px; transform: rotate(268deg) translateY(-69px) rotate(-4deg); }
  .sun-doodle i:nth-of-type(8) { height: 22px; transform: rotate(316deg) translateY(-64px) rotate(4deg); }
  .title-burst { bottom: clamp(24px, 8vw, 34px); left: 9px; }
  .title-burst span { padding: 4px 7px; font-size: clamp(13px, 4.4vw, 18px); }
  .title-burst strong { max-width: min(78vw, 300px); padding: 6px 9px; font-size: clamp(28px, 9vw, 36px); }
  .post-actions { padding-inline: 8px; }
  .social-action { min-width: 42px; min-height: 44px; justify-content: center; padding: 5px 7px; }
  .action-group { gap: 1px; }
  .send-button .action-number, .bookmark-label { display: none; }
  .comment-panel.is-open { max-height: 460px; padding-inline: 11px; }
  .quick-reactions { gap: 4px; }
  .quick-reactions > span { display: none; }
  .quick-reactions .write-wish { padding-inline: 8px; }
  .post-caption { padding: 0 14px 13px; }
  .post-caption p { font-size: 10px; }
  .scroll-note { right: max(15px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); }
  .wish-section { min-height: auto; padding: 74px max(20px, env(safe-area-inset-right)) 82px max(20px, env(safe-area-inset-left)); gap: 62px; }
  .wish-copy h2 { font-size: clamp(34px, 11vw, 43px); line-height: .98; }
  .wish-copy > p { margin: 26px 0; }
  .wish-actions { align-items: flex-start; flex-direction: column; }
  .primary-button { min-height: 48px; }
  .year-stamp { width: min(68vw, 250px); }
  footer { min-height: 112px; flex-wrap: wrap; gap: 10px 12px; padding: 28px max(18px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left)); font-size: 7px; text-align: center; }
  .wish-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow-y: auto;
    padding: 48px 22px 36px;
    border-width: 5px;
    border-radius: 22px;
  }
  .wish-dialog h2 { font-size: clamp(29px, 9vw, 42px); }
  .motion-gate-card { padding: 46px 24px 26px; border-width: 4px; border-radius: 24px; }
}

@media (max-width: 370px) {
  .brand { gap: 9px; }
  .brand-copy strong { max-width: 125px; line-height: 1.25; }
  .mini-wish { padding-inline: 9px; letter-spacing: .1em; }
  .hero { min-height: max(100svh, 740px); }
  .hero-word { font-size: 86px; }
  .social-card { width: calc(100% - 24px); margin-top: 54px; border-radius: 20px; }
  .portrait-stage { aspect-ratio: .68; }
  .post-topbar { padding-inline: 12px; }
  .avatar { width: 34px; }
  .post-actions { gap: 2px; padding-inline: 5px; }
  .social-action { min-width: 39px; padding-inline: 5px; }
  .action-number { font-size: 7px; }
  .bookmark-button { padding-inline: 7px; }
  .quick-reactions .write-wish { font-size: 6px; letter-spacing: .05em; }
  .post-caption { padding-inline: 13px; }
  .wish-section { padding-inline: 19px; }
  .wish-copy h2 { font-size: 34px; }
  footer { letter-spacing: .16em; }
}

@media (max-height: 560px) and (orientation: landscape) {
  .site-header { padding-top: max(12px, env(safe-area-inset-top)); }
  .hero { min-height: 760px; }
  .hero-word { top: 94px; font-size: 18vw; }
  .eyebrow { top: 78px; }
  .social-card { margin-top: 74px; }
}

@media (hover: none) {
  .mini-wish:hover,
  .social-action:hover,
  .quick-reactions button:hover,
  .primary-button:hover {
    transform: none;
  }
  .social-action:hover { border-color: transparent; background: transparent; box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
