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

:root {
  --lav:       #C4A8FF;
  --lav-deep:  #9B78E8;
  --pink:      #FFB8D4;
  --pink-deep: #FF88B5;
  --blue:      #A8D8FF;
  --yellow:    #FFE878;
  --mint:      #B8F0D8;
  --sky-deep:  #0D0528;
  --text-dark: #3D2060;
  --text-mid:  #6B4B9F;
  --ease:      cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--sky-deep);
  color: var(--text-dark);
  overflow-x: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}

/* ══════════════════════════════════════
   CURSOR
══════════════════════════════════════ */
#cursor {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 0; height: 0;
  pointer-events: none;
  z-index: 10000;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after { cursor: none !important; }
  #cursor { display: block; }
}
#cursor::before {
  content: '';
  position: absolute;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,232,120,.22) 0%, transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
}
#cursor::after {
  content: '✦';
  position: absolute;
  font-size: 22px;
  color: var(--yellow);
  transform: translate(-50%, -50%);
  animation: cursor-spin 4s linear infinite;
  text-shadow: 0 0 12px rgba(255,232,120,1), 0 0 28px rgba(255,232,120,.55);
}
@keyframes cursor-spin {
  from { transform: translate(-50%,-50%) rotate(0deg) scale(1); }
  50%  { transform: translate(-50%,-50%) rotate(180deg) scale(1.35); }
  to   { transform: translate(-50%,-50%) rotate(360deg) scale(1); }
}

#star-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ══════════════════════════════════════
   SCROLL REVEAL
══════════════════════════════════════ */
.will-animate {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
}
.will-animate.animated { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ══════════════════════════════════════
   HERO
══════════════════════════════════════ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px 100px;
  z-index: 1;
  background: linear-gradient(180deg,
    #0D0528  0%,   #1A0845  18%,
    #311270  40%,  #6B2BA8  62%,
    #B560C8  80%,  #EE90D8  95%,
    #FBBDE8 100%
  );
  overflow: hidden;
}

.cloud-wrap { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.cloud {
  position: absolute;
  background: rgba(255,240,255,.75);
  border-radius: 60px;
  filter: blur(2px);
}
.cloud::before, .cloud::after {
  content: ''; position: absolute;
  background: inherit; border-radius: 50%;
}
.c1 { width:140px; height:38px; top:72%; animation: cloud-move 28s linear infinite -6s; }
.c1::before { width:70px;  height:65px;  top:-38px; left:18px; }
.c1::after  { width:48px;  height:46px;  top:-26px; left:60px; }
.c2 { width:200px; height:55px; top:58%; animation: cloud-move 38s linear infinite -20s; }
.c2::before { width:100px; height:90px;  top:-52px; left:22px; }
.c2::after  { width:68px;  height:66px;  top:-36px; left:90px; }
.c3 { width:110px; height:30px; top:82%; animation: cloud-move 22s linear infinite -12s; }
.c3::before { width:55px;  height:50px;  top:-28px; left:12px; }
.c3::after  { width:38px;  height:36px;  top:-20px; left:46px; }
.c4 { width:90px;  height:25px; top:45%; animation: cloud-move 32s linear infinite -3s; opacity:.45; }
.c4::before { width:46px;  height:42px;  top:-24px; left:10px; }
.c4::after  { width:32px;  height:30px;  top:-16px; left:38px; }
@keyframes cloud-move { from { left:-250px; } to { left:calc(100% + 250px); } }

.rainbow {
  position: absolute;
  bottom: -10px; left: 50%;
  transform: translateX(-50%);
  width: min(600px, 92vw);
  height: auto;
  opacity: .28;
  pointer-events: none;
}

/* Twin star characters */
.twins-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 32px;
  margin-bottom: 28px;
  opacity: 0;
  animation: fade-in .8s var(--ease) forwards .3s;
}
.twin {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: twin-float 3.5s ease-in-out infinite;
  will-change: transform;
}
.twin.lala { animation-delay: .6s; }
@keyframes twin-float {
  0%,100% { transform: translateY(0)    rotate(-2deg); }
  50%      { transform: translateY(-14px) rotate(2deg);  }
}
.twin-body {
  width: 80px; height: 80px;
  clip-path: polygon(50% 0%,63% 32%,98% 35%,72% 58%,82% 92%,50% 73%,18% 92%,28% 58%,2% 35%,37% 32%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.kiki .twin-body { background: radial-gradient(circle at 38% 32%,#C8EAFF,#5AAAE8); filter: drop-shadow(0 6px 18px rgba(90,170,232,.5)); }
.lala .twin-body { background: radial-gradient(circle at 38% 32%,#FFD8E8,#FF7AAE); filter: drop-shadow(0 6px 18px rgba(255,122,174,.5)); }
.twin-face { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.twin-eyes { position: absolute; top: 42%; display: flex; gap: 11px; transform: translateY(-50%); }
.twin-eye { width: 9px; height: 11px; background: #1E0A40; border-radius: 50%; position: relative; }
.twin-eye::after { content: ''; position: absolute; width: 3px; height: 3px; background: #fff; border-radius: 50%; top: 2px; right: 1px; }
.twin-smile { position: absolute; top: 55%; width: 14px; height: 7px; border-bottom: 2.5px solid #1E0A40; border-radius: 0 0 10px 10px; }
.twin-cheek { position: absolute; width: 12px; height: 7px; background: rgba(255,110,150,.45); border-radius: 50%; top: 55%; }
.twin-cheek.l { left: 22%; } .twin-cheek.r { right: 22%; }
.kiki-hair { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); display: flex; gap: 3px; }
.kiki-strand { width: 6px; height: 16px; background: #3A80CC; border-radius: 3px 3px 2px 2px; }
.kiki-strand:first-child { transform: rotate(-18deg); height: 12px; }
.kiki-strand:last-child  { transform: rotate(18deg);  height: 12px; }
.lala-hair { position: absolute; top: -10px; left: 50%; transform: translateX(-50%); display: flex; gap: 26px; }
.lala-tail { display: flex; flex-direction: column; align-items: center; }
.lala-bow { width: 14px; height: 14px; background: #FF4480; border-radius: 50%; box-shadow: 0 0 8px rgba(255,68,128,.5); }
.lala-tailhair { width: 8px; height: 16px; background: linear-gradient(180deg,#FFB0CC,#FF88AA); border-radius: 4px; }
.twin-spark { position: absolute; font-size: 14px; animation: spark-twinkle 2s ease-in-out infinite; pointer-events: none; }
@keyframes spark-twinkle {
  0%,100% { opacity: 1;  transform: scale(1)   rotate(0deg);  }
  50%      { opacity: .3; transform: scale(.65) rotate(25deg); }
}
.twin-shadow { width: 60px; height: 8px; background: radial-gradient(ellipse,rgba(60,10,120,.3),transparent 70%); margin-top: -4px; }

/* Hero text */
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 680px; width: 100%; }

.hero-eyebrow {
  font-size: .85rem; font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 14px;
  text-shadow: 0 0 14px rgba(255,232,120,.6);
  opacity: 0; animation: fade-up .8s var(--ease) forwards .5s;
}
.hero-divider {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 12px; opacity: 0; animation: fade-up .8s var(--ease) forwards .65s;
}
.hero-divider span {
  color: var(--yellow); font-size: 22px;
  animation: star-pulse 2.2s ease-in-out infinite;
  text-shadow: 0 0 16px rgba(255,232,120,.7);
}
.hero-divider span:nth-child(2) { animation-delay:.35s; font-size:16px; }
.hero-divider span:nth-child(4) { animation-delay:.7s;  font-size:16px; }
@keyframes star-pulse {
  0%,100% { transform: scale(1) rotate(0deg); }
  50%      { transform: scale(1.3) rotate(20deg); }
}

.hero-title {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(3.2rem, 10vw, 6rem);
  font-weight: 800; line-height: 1;
  color: #FFF0F8;
  text-wrap: balance;
  text-shadow: 0 0 60px rgba(255,224,248,.3);
  opacity: 0; animation: fade-up 1s var(--ease) forwards .8s;
  margin-bottom: 6px;
}
.hero-name {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(1.8rem, 5.5vw, 3.8rem);
  font-weight: 700;
  color: #FFE4F8;
  text-shadow: 0 0 50px rgba(255,184,212,.7), 0 0 100px rgba(255,184,212,.35);
  opacity: 0; animation: fade-up 1s var(--ease) forwards 1s;
  margin-bottom: 28px; letter-spacing: .02em;
}
.hero-sub {
  font-size: clamp(.95rem, 2.2vw, 1.15rem); font-style: italic;
  color: rgba(255,224,248,.8); line-height: 1.75;
  max-width: 460px; margin: 0 auto 36px;
  text-wrap: pretty;
  opacity: 0; animation: fade-up 1s var(--ease) forwards 1.2s;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50px; padding: 11px 28px;
  font-size: .9rem; font-weight: 600;
  color: rgba(255,240,255,.9); letter-spacing: .05em;
  opacity: 0; animation: fade-up 1s var(--ease) forwards 1.4s;
}
.scroll-hint {
  position: absolute;
  bottom: max(28px, env(safe-area-inset-bottom));
  left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,224,248,.45); font-size: .75rem;
  letter-spacing: .15em; text-transform: uppercase;
  opacity: 0; animation: fade-in 1s var(--ease) forwards 2.2s;
}
.scroll-arrow {
  width: 18px; height: 18px;
  border-right: 2px solid rgba(255,224,248,.4);
  border-bottom: 2px solid rgba(255,224,248,.4);
  transform: rotate(45deg);
  animation: arr-fall 1.6s ease-out infinite;
}
@keyframes arr-fall {
  0%,100% { transform: rotate(45deg) translateY(0); }
  60%      { transform: rotate(45deg) translateY(7px); }
}

/* ══════════════════════════════════════
   MESSAGE
══════════════════════════════════════ */
.message-section {
  position: relative; z-index: 1;
  padding: 110px 20px 100px;
  background: linear-gradient(180deg,
    #FBBDE8 0%, #FCC8EE 15%, #FBD8F4 35%,
    #F5E4FF 60%, #ECD8FF 80%, #E0C8FF 100%
  );
  overflow: hidden;
}
.message-section::before {
  content: ''; position: absolute; inset: 0 0 auto 0;
  height: 70px; background: linear-gradient(#FBBDE8,transparent); pointer-events: none;
}
.float-deco {
  position: absolute; pointer-events: none;
  font-size: 28px; opacity: .22;
  animation: gentle-float 4s ease-in-out infinite;
}
@keyframes gentle-float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(12deg); }
}
.msg-container { max-width: 680px; margin: 0 auto; position: relative; z-index: 1; }

.section-eyebrow {
  font-size: .8rem; font-weight: 700;
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--text-mid); text-align: center; margin-bottom: 10px;
}
.section-title {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700; text-align: center;
  color: var(--text-dark); margin-bottom: 50px;
  line-height: 1.2; text-wrap: balance;
}

.msg-card {
  background: rgba(255,255,255,.68);
  backdrop-filter: blur(14px);
  border-radius: 32px; padding: 52px 50px;
  border: 2px solid rgba(196,168,255,.28);
  box-shadow: 0 24px 70px rgba(130,80,210,.13), inset 0 0 0 1px rgba(255,255,255,.55);
  position: relative; overflow: hidden;
}
.msg-card::before { content: '✦'; position: absolute; top: 20px; right: 26px; font-size: 44px; color: var(--lav); opacity: .35; }
.msg-card::after  { content: '✦'; position: absolute; bottom: 20px; left: 26px; font-size: 30px; color: var(--pink); opacity: .35; }

.msg-text { font-size: clamp(.95rem, 2vw, 1.1rem); line-height: 1.95; color: var(--text-mid); }
.msg-text p { margin-bottom: 22px; text-wrap: pretty; }
.msg-text p:last-child { margin-bottom: 0; }
.hl   { color: var(--lav-deep); font-weight: 700; }
.ital { font-style: italic; color: #E0609A; }
.msg-sig {
  display: flex; align-items: center; gap: 10px;
  margin-top: 32px; padding-top: 28px;
  border-top: 1px dashed rgba(196,168,255,.4);
  font-family: 'Baloo 2', cursive;
  font-size: 1.3rem; font-weight: 600; color: var(--lav-deep);
}

/* ══════════════════════════════════════
   WISHES
══════════════════════════════════════ */
.wishes-section {
  position: relative; z-index: 1;
  padding: 100px 20px;
  background: linear-gradient(180deg,
    #E0C8FF 0%, #D4B8FF 30%, #C8A8F8 60%, #BC98F0 100%
  );
  overflow: hidden;
}
.wishes-list {
  max-width: 560px;
  margin: 64px auto 0;
  display: flex; flex-direction: column;
  position: relative; z-index: 1;
}
.wish-item {
  text-align: center;
  padding: 48px 20px;
}
.wish-item + .wish-item::before {
  content: '✦  ·  ✦  ·  ✦';
  display: block; text-align: center;
  color: rgba(255,232,120,.5);
  font-size: 13px; letter-spacing: .5em;
  margin-bottom: 48px;
}
.wish-icon {
  font-size: 80px; display: block;
  margin-bottom: 20px;
  will-change: transform;
  animation: wish-bob 3s ease-in-out infinite;
}
.wish-item:nth-child(2) .wish-icon { animation-delay: .7s; }
.wish-item:nth-child(3) .wish-icon { animation-delay: 1.3s; }
.wish-item:nth-child(4) .wish-icon { animation-delay: 1.9s; }
@keyframes wish-bob {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.wish-title {
  font-family: 'Baloo 2', cursive;
  font-size: 1.55rem; font-weight: 700;
  color: var(--text-dark); margin-bottom: 14px;
}
.wish-text {
  font-size: 1rem; line-height: 1.85;
  color: var(--text-dark);
  max-width: 440px; margin: 0 auto;
  text-wrap: pretty;
}

/* ══════════════════════════════════════
   PHOTO
══════════════════════════════════════ */
.photo-section {
  position: relative; z-index: 1;
  padding: 100px 20px;
  background: linear-gradient(180deg,
    #BC98F0 0%, #D0A8FF 25%, #E8C0FF 55%, #FFD4F0 85%, #FFE4F8 100%
  );
  overflow: hidden; text-align: center;
}
.photo-frame-wrap { max-width: 480px; margin: 58px auto 0; }
.photo-frame {
  position: relative;
  background: rgba(255,255,255,.65);
  backdrop-filter: blur(12px);
  border-radius: 32px; padding: 20px;
  border: 3px solid rgba(255,255,255,.7);
  box-shadow: 0 32px 90px rgba(140,90,230,.28), inset 0 0 0 1px rgba(255,255,255,.3);
}
.photo-inner {
  border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg,rgba(196,168,255,.25),rgba(255,184,212,.25));
  aspect-ratio: 4 / 3;
  display: flex; align-items: center; justify-content: center;
  border: 2px dashed rgba(196,168,255,.38); min-height: 240px;
}
.photo-inner img { width: 100%; height: 100%; object-fit: cover; border-radius: 18px; display: block; }
.photo-placeholder { text-align: center; color: var(--lav-deep); opacity: .65; }
.photo-placeholder-icon { font-size: 52px; display: block; margin-bottom: 10px; }
.photo-placeholder-text { font-size: .85rem; font-style: italic; line-height: 1.5; max-width: 200px; }
.frame-badge { position: absolute; font-size: 20px; }
.fb-tl { top: 6px; left: 6px; } .fb-tr { top: 6px; right: 6px; }
.fb-bl { bottom: 6px; left: 6px; } .fb-br { bottom: 6px; right: 6px; }
.photo-caption { margin-top: 18px; font-family: 'Baloo 2', cursive; font-size: 1.05rem; color: var(--text-mid); font-style: italic; }

/* ══════════════════════════════════════
   CLOSING
══════════════════════════════════════ */
.closing {
  position: relative; z-index: 1;
  padding: 120px 20px max(90px, env(safe-area-inset-bottom));
  text-align: center;
  background: linear-gradient(180deg,
    #FFE4F8 0%, #FFD0EE 18%, #FFB8E0 38%,
    #FF88C0 60%, #CC50A0 80%, #8A2878 100%
  );
  overflow: hidden;
}
.closing-heart {
  font-size: 90px; display: inline-block;
  animation: heartbeat 1.6s ease-in-out infinite;
  will-change: transform;
  filter: drop-shadow(0 0 24px rgba(255,80,140,.65));
  margin-bottom: 18px;
}
@keyframes heartbeat {
  0%,100% { transform: scale(1);    }
  20%      { transform: scale(1.12); }
  40%      { transform: scale(1.06); }
  60%      { transform: scale(1.16); }
}
.closing-title {
  font-family: 'Baloo 2', cursive;
  font-size: clamp(2.8rem, 9vw, 5.5rem);
  font-weight: 800;
  color: #FFFFFF;
  text-shadow: 0 2px 12px rgba(120,30,90,.55), 0 0 40px rgba(255,232,120,.35), 0 0 80px rgba(255,200,100,.15);
  text-wrap: balance;
  margin-bottom: 18px;
}
.closing-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem); font-style: italic;
  color: #FFFFFF;
  text-shadow: 0 1px 8px rgba(120,30,90,.45);
  max-width: 400px; margin: 0 auto 50px;
  line-height: 1.85; text-wrap: pretty;
}
.closing-stars {
  display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 28px;
}
.closing-stars span { color: var(--yellow); animation: star-pulse 2.2s ease-in-out infinite; }
.closing-stars span:nth-child(2) { animation-delay:.3s;  font-size:18px; }
.closing-stars span:nth-child(3) { animation-delay:.6s; }
.closing-stars span:nth-child(4) { animation-delay:.9s;  font-size:18px; }
.closing-stars span:nth-child(5) { animation-delay:1.2s; }

footer {
  background: #0D0528;
  padding: 28px 20px max(28px, env(safe-area-inset-bottom));
  text-align: center; font-size: .8rem;
  letter-spacing: .1em; color: rgba(196,168,255,.4);
  position: relative; z-index: 1;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 580px) {
  .msg-card { padding: 32px 22px; }
  .twin-body { width: 62px; height: 62px; }
  .wishes-list { margin-top: 48px; }
  .wish-item { padding: 36px 16px; }
  .wish-item + .wish-item::before { margin-bottom: 36px; }
}
@media (min-width: 768px) {
  .hero { padding: 80px 40px 130px; }
  .twin-body { width: 96px; height: 96px; }
  .twin-shadow { width: 72px; }
  .twins-wrap { gap: 44px; margin-bottom: 36px; }
  .msg-card { padding: 60px 64px; }
}

/* ══════════════════════════════════════
   GATE — password entry screen
══════════════════════════════════════ */
#gate {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: linear-gradient(180deg,
    #0D0528 0%, #1A0845 20%,
    #311270 45%, #6B2BA8 75%,
    #B560C8 95%, #CC88D8 100%
  );
  overflow: hidden;
}
#gate-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#gate::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, rgba(200,120,255,.18), transparent);
  pointer-events: none;
  z-index: 0;
}
#gate ~ #cursor { display: none !important; }

#gate.gate-exit {
  animation: gate-roll-up 1s cubic-bezier(0.76, 0, 0.24, 1) forwards;
  pointer-events: none;
}
@keyframes gate-roll-up {
  0%   { clip-path: inset(0% 0% 0% 0%); }
  100% { clip-path: inset(0% 0% 100% 0%); }
}

.gate-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 380px;
}

.gate-twins {
  display: flex;
  align-items: flex-end;
  gap: 18px;
  opacity: 0;
  animation: fade-in .8s var(--ease) forwards .2s;
}
.gate-twin {
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: twin-float 3.5s ease-in-out infinite;
  will-change: transform;
}
.gate-twin.g-lala { animation-delay: .6s; }
.gate-twin-body {
  width: 54px; height: 54px;
  clip-path: polygon(50% 0%,63% 32%,98% 35%,72% 58%,82% 92%,50% 73%,18% 92%,28% 58%,2% 35%,37% 32%);
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
.g-kiki .gate-twin-body {
  background: radial-gradient(circle at 38% 32%,#C8EAFF,#5AAAE8);
  filter: drop-shadow(0 4px 14px rgba(90,170,232,.55));
}
.g-lala .gate-twin-body {
  background: radial-gradient(circle at 38% 32%,#FFD8E8,#FF7AAE);
  filter: drop-shadow(0 4px 14px rgba(255,122,174,.55));
}
.gate-twin-face {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.gate-twin-eyes { position: absolute; top: 42%; display: flex; gap: 7px; transform: translateY(-50%); }
.gate-twin-eye { width: 6px; height: 7px; background: #1E0A40; border-radius: 50%; position: relative; }
.gate-twin-eye::after { content:''; position:absolute; width:2px; height:2px; background:#fff; border-radius:50%; top:1px; right:1px; }
.gate-twin-smile { position:absolute; top:55%; width:9px; height:4px; border-bottom:2px solid #1E0A40; border-radius:0 0 7px 7px; }
.gate-twin-cheek { position:absolute; width:8px; height:4px; background:rgba(255,110,150,.45); border-radius:50%; top:55%; }
.gate-twin-cheek.l { left:20%; } .gate-twin-cheek.r { right:20%; }
.gate-twin-shadow { width:36px; height:5px; background:radial-gradient(ellipse,rgba(60,10,120,.3),transparent 70%); margin-top:-2px; }

.gate-card {
  width: 100%;
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(196,168,255,.22);
  border-radius: 28px;
  padding: 40px 32px;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0,0,0,.45), inset 0 0 0 1px rgba(255,255,255,.07);
  opacity: 0;
  animation: fade-in .9s var(--ease) forwards .5s;
}
.gate-decor {
  display: block;
  font-size: 15px;
  letter-spacing: .65em;
  color: rgba(255,232,120,.55);
  margin-bottom: 28px;
  animation: star-pulse 2.4s ease-in-out infinite;
}

#gate-form {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.05);
  border: 1.5px solid rgba(196,168,255,.28);
  border-radius: 50px;
  padding: 5px 5px 5px 22px;
  transition: border-color .2s, box-shadow .2s;
}
#gate-form:focus-within {
  border-color: rgba(196,168,255,.65);
  box-shadow: 0 0 0 3px rgba(196,168,255,.1);
}
#gate-form.gate-shake { animation: gate-shake .45s ease; }
@keyframes gate-shake {
  0%,100% { transform: translateX(0); }
  20%      { transform: translateX(-9px); }
  40%      { transform: translateX(9px); }
  60%      { transform: translateX(-5px); }
  80%      { transform: translateX(4px); }
}

#gate-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-size: 1.5rem;
  letter-spacing: .38em;
  color: #FFE4F8;
  caret-color: var(--yellow);
  font-family: 'Nunito', sans-serif;
  min-width: 0;
  padding: 9px 0;
}
#gate-input::placeholder { color: rgba(196,168,255,.28); font-size: .9rem; letter-spacing: .12em; }
#gate-input:disabled { opacity: .35; }

#gate-btn {
  flex-shrink: 0;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--lav), var(--lav-deep));
  color: #1A0A38;
  font-size: 19px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: transform .2s var(--ease), box-shadow .2s, opacity .2s;
  box-shadow: 0 4px 18px rgba(130,80,220,.45);
}
#gate-btn:not(:disabled):hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(130,80,220,.7); }
#gate-btn:not(:disabled):active { transform: scale(.94); }
#gate-btn:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; }
#gate-btn:disabled { opacity: .35; cursor: not-allowed; }

.gate-status {
  min-height: 1.3em;
  margin-top: 16px;
  font-size: .78rem;
  letter-spacing: .12em;
  color: var(--yellow);
}

/* ══════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .twins-wrap,
  .hero-eyebrow, .hero-divider,
  .hero-title, .hero-name, .hero-sub,
  .hero-badge, .scroll-hint {
    opacity: 1 !important;
    animation: none !important;
  }
}
