/* =========================================================
   Surpriza romantike — stilet kryesore
   ========================================================= */

:root {
  --ink: #fff8fc;
  --muted: rgba(255, 240, 249, 0.7);
  --rose: #ff477e;
  --rose-hot: #ff215f;
  --blush: #ff8fb5;
  --wine: #7e133d;
  --violet: #54235f;
  --night: #080713;
  --night-purple: #1d0d30;
  --glass: rgba(255, 255, 255, 0.09);
  --glass-line: rgba(255, 255, 255, 0.19);
  --walk-duration: 6.2s;
  --arm-duration: 1.8s;
  --arrival-scale: 1;
  --far-scale: 0.2;
  --ease-cinematic: cubic-bezier(0.22, 0.82, 0.27, 1);
  --font-body: "Manrope", "Trebuchet MS", sans-serif;
  --font-script: "Parisienne", "Brush Script MT", cursive;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(255, 202, 224, 0.95);
  outline-offset: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================================
   1. Ekrani i hyrjes
   ========================================================= */

.entry-screen {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  height: 100vh;
  height: 100dvh;
  min-height: 100svh;
  padding: clamp(20px, 4vw, 52px);
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 120%, rgba(255, 69, 124, 0.55), transparent 42%),
    radial-gradient(circle at 7% 12%, rgba(255, 58, 109, 0.28), transparent 36%),
    linear-gradient(145deg, #300a29 0%, #661330 42%, #2d103f 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.9s ease, visibility 0.9s ease;
}

.entry-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 18% 25%, rgba(255, 255, 255, 0.06) 0 1px, transparent 1.5px),
    radial-gradient(circle at 72% 64%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1.5px);
  background-size: 13px 13px, 17px 17px;
  opacity: 0.18;
}

.entry-screen.is-leaving {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.entry-aurora {
  position: absolute;
  width: 42vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.26;
  animation: aurora-drift 9s ease-in-out infinite alternate;
}

.entry-aurora--one {
  top: -20%;
  right: -8%;
  background: #d657ff;
}

.entry-aurora--two {
  bottom: -32%;
  left: -10%;
  background: #ff174f;
  animation-delay: -4s;
}

.entry-hearts {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.floating-heart {
  position: absolute;
  bottom: -12vh;
  left: var(--left);
  color: rgba(255, 217, 232, var(--opacity));
  font-size: var(--size);
  filter: drop-shadow(0 0 7px rgba(255, 125, 174, 0.34));
  animation: float-heart var(--duration) linear var(--delay) infinite;
}

.login-card {
  position: relative;
  z-index: 2;
  width: min(100%, 510px);
  padding: clamp(30px, 7vw, 42px);
  overflow: hidden;
  border: 1px solid var(--glass-line);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.145), rgba(255, 255, 255, 0.055));
  box-shadow:
    0 34px 90px rgba(20, 0, 18, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  text-align: center;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  transform: translateZ(0);
  transition: box-shadow 0.45s ease, border-color 0.45s ease, transform 0.45s ease;
}

.login-card::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  top: -105px;
  left: -90px;
  border-radius: 50%;
  background: rgba(255, 170, 203, 0.14);
  filter: blur(5px);
}

.card-shine {
  position: absolute;
  top: 0;
  left: -80%;
  width: 50%;
  height: 100%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
  pointer-events: none;
}

.login-card.is-success {
  border-color: rgba(255, 207, 227, 0.75);
  box-shadow:
    0 0 55px rgba(255, 52, 115, 0.42),
    0 34px 90px rgba(20, 0, 18, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transform: scale(1.02);
}

.login-card.is-success .card-shine {
  animation: success-shine 0.9s ease forwards;
}

.login-card.is-shaking {
  animation: card-shake 0.46s ease;
}

.eyebrow {
  margin: 0 0 11px;
  color: rgba(255, 228, 239, 0.76);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.mini-heart {
  position: relative;
  width: 24px;
  height: 21px;
  margin: 0 auto 22px;
  transform: rotate(-45deg);
  border-radius: 4px 0 4px 4px;
  background: linear-gradient(135deg, var(--blush), var(--rose-hot));
  box-shadow: 0 0 22px rgba(255, 70, 127, 0.75);
  animation: mini-heartbeat 2.1s ease-in-out infinite;
}

.mini-heart::before,
.mini-heart::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: inherit;
}

.mini-heart::before {
  top: -12px;
  left: 0;
}

.mini-heart::after {
  top: 0;
  left: 12px;
}

.login-card h1 {
  max-width: 390px;
  margin: 0 auto;
  font-family: var(--font-script);
  font-size: clamp(2.25rem, 7vw, 3.45rem);
  font-weight: 400;
  line-height: 1.03;
  text-wrap: balance;
  text-shadow: 0 5px 24px rgba(42, 0, 20, 0.28);
}

.entry-copy {
  margin: 17px auto 30px;
  color: var(--muted);
  font-size: clamp(0.86rem, 2.5vw, 0.96rem);
  line-height: 1.65;
}

.login-card label {
  display: block;
  margin-bottom: 14px;
  color: rgba(255, 242, 247, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.code-wrap {
  position: relative;
}

#secret-code {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: rgba(18, 4, 20, 0.3);
  color: white;
  box-shadow: inset 0 1px 14px rgba(7, 0, 7, 0.16);
  caret-color: #ffb0cc;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.46em;
  text-align: center;
  text-indent: 0.46em;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

#secret-code::placeholder {
  color: rgba(255, 235, 243, 0.38);
  letter-spacing: 0.55em;
}

#secret-code:focus {
  border-color: rgba(255, 172, 204, 0.85);
  background: rgba(32, 7, 29, 0.42);
  box-shadow:
    0 0 0 4px rgba(255, 102, 158, 0.11),
    0 0 26px rgba(255, 65, 128, 0.12);
}

#secret-code.is-invalid {
  border-color: #ff547d;
  box-shadow:
    0 0 0 4px rgba(255, 43, 91, 0.12),
    0 0 24px rgba(255, 39, 93, 0.2);
}

.code-hint,
.error-message {
  min-height: 18px;
  margin: 9px 0 14px;
  font-size: 0.72rem;
  line-height: 1.4;
}

.code-hint {
  color: rgba(255, 230, 240, 0.5);
}

.error-message {
  display: none;
  margin-bottom: 14px;
  color: #ffc0cf;
  font-weight: 600;
}

.login-card.has-error .code-hint {
  display: none;
}

.login-card.has-error .error-message {
  display: block;
}

.primary-button,
.action-button {
  position: relative;
  isolation: isolate;
  border: 0;
  color: white;
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.primary-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 16px;
  background: linear-gradient(135deg, #ff2e68, #cf276b 54%, #87225d);
  box-shadow:
    0 13px 30px rgba(113, 8, 54, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.23);
}

.primary-button::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(135deg, #ff5d8e, #ec2d78);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.primary-button:hover::before {
  opacity: 1;
}

.primary-button:hover,
.action-button:hover {
  transform: translateY(-2px);
}

.primary-button:active,
.action-button:active {
  transform: translateY(1px) scale(0.99);
}

.primary-button:disabled,
.action-button:disabled {
  cursor: default;
  opacity: 0.65;
}

.button-heart {
  font-size: 1.15em;
}

.login-card.is-success .primary-button {
  box-shadow:
    0 0 35px rgba(255, 79, 139, 0.75),
    0 13px 30px rgba(113, 8, 54, 0.36);
}

/* =========================================================
   2. Skena e natës
   ========================================================= */

.love-scene {
  position: fixed;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100svh;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  background:
    radial-gradient(circle at 50% 63%, rgba(112, 61, 124, 0.2), transparent 25%),
    linear-gradient(180deg, #070611 0%, #100b20 44%, #29142e 77%, #130a18 100%);
  transition: opacity 1.05s ease, visibility 1.05s ease;
}

.love-scene::after {
  content: "";
  position: absolute;
  z-index: 30;
  inset: 0;
  pointer-events: none;
  box-shadow:
    inset 0 0 140px rgba(0, 0, 0, 0.65),
    inset 0 -120px 130px rgba(4, 1, 8, 0.55);
  transition: background 1.5s ease, box-shadow 1.5s ease;
}

.love-scene.is-visible {
  opacity: 1;
  visibility: visible;
}

.love-scene.is-revealed::after {
  background: radial-gradient(circle at 50% 54%, rgba(255, 84, 143, 0.12), transparent 27%);
  box-shadow:
    inset 0 0 120px rgba(0, 0, 0, 0.48),
    inset 0 -90px 110px rgba(4, 1, 8, 0.46);
}

.night-stars {
  position: absolute;
  inset: 0 0 30%;
}

.star {
  position: absolute;
  top: var(--top);
  left: var(--left);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: white;
  box-shadow: 0 0 calc(var(--size) * 3) rgba(255, 224, 243, 0.65);
  opacity: var(--opacity);
  animation: star-twinkle var(--duration) ease-in-out var(--delay) infinite;
}

/* Yjësi e personalizuar: pikat e dritës formojnë emrin ILDA. */
.ilda-constellation {
  position: absolute;
  z-index: 35;
  top: clamp(58px, 8vh, 92px);
  left: clamp(28px, 5vw, 75px);
  width: clamp(260px, 23vw, 300px);
  aspect-ratio: 18 / 7;
  pointer-events: none;
  filter: drop-shadow(0 0 18px rgba(255, 195, 229, 0.36));
}

.ilda-star {
  position: absolute;
  top: var(--star-y);
  left: var(--star-x);
  width: var(--ilda-size);
  height: var(--ilda-size);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: #fff9fd;
  box-shadow:
    0 0 5px #fff,
    0 0 13px rgba(255, 184, 225, 0.95),
    0 0 27px rgba(226, 132, 255, 0.54);
  opacity: 0.45;
  animation: ilda-shine var(--ilda-duration) ease-in-out var(--ilda-delay) infinite;
}

.ilda-star::before,
.ilda-star::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 245, 252, 0.92), transparent);
}

.ilda-star::before {
  width: calc(var(--ilda-size) * 4.8);
  height: 1px;
  transform: translate(-50%, -50%);
}

.ilda-star::after {
  width: 1px;
  height: calc(var(--ilda-size) * 4.8);
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, transparent, rgba(255, 245, 252, 0.92), transparent);
}

.moon {
  position: absolute;
  top: clamp(38px, 8vh, 90px);
  right: clamp(28px, 9vw, 130px);
  width: clamp(68px, 9vw, 116px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 33% 31%, #fffdf3 0%, #f9dfeb 46%, #d8b4d5 100%);
  box-shadow:
    0 0 32px rgba(255, 235, 248, 0.38),
    0 0 95px rgba(224, 151, 219, 0.18);
  opacity: 0.93;
}

.moon-crater {
  position: absolute;
  border-radius: 50%;
  background: rgba(156, 115, 156, 0.14);
  box-shadow: inset 2px 1px 4px rgba(128, 88, 130, 0.11);
}

.moon-crater--one {
  width: 22%;
  height: 22%;
  top: 22%;
  left: 23%;
}

.moon-crater--two {
  width: 13%;
  height: 13%;
  right: 23%;
  bottom: 25%;
}

.sky-glow {
  position: absolute;
  top: 31%;
  left: 50%;
  width: min(82vw, 1050px);
  height: 42vh;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(143, 80, 151, 0.19), transparent 67%);
  filter: blur(10px);
}

.horizon-glow {
  position: absolute;
  z-index: 1;
  bottom: 26%;
  left: 50%;
  width: min(82vw, 900px);
  height: 16vh;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(211, 128, 184, 0.13);
  filter: blur(55px);
}

.ground {
  position: absolute;
  z-index: 1;
  right: -10%;
  bottom: -32%;
  left: -10%;
  height: 63%;
  transform: perspective(600px) rotateX(61deg);
  transform-origin: bottom;
  border-radius: 50% 50% 0 0;
  background:
    radial-gradient(ellipse at 50% 28%, rgba(216, 137, 190, 0.13), transparent 34%),
    linear-gradient(180deg, #1c101f, #08060d 78%);
  box-shadow: inset 0 36px 70px rgba(164, 82, 139, 0.08);
}

.light-path {
  position: absolute;
  z-index: 2;
  bottom: -2%;
  left: 50%;
  width: min(52vw, 580px);
  height: 55%;
  transform: translateX(-50%);
  clip-path: polygon(43% 0, 57% 0, 100% 100%, 0 100%);
  background: linear-gradient(
    180deg,
    rgba(254, 202, 228, 0.04),
    rgba(236, 164, 211, 0.15) 75%,
    rgba(255, 194, 222, 0.04)
  );
  filter: blur(2px);
}

.mist {
  position: absolute;
  z-index: 3;
  right: -20%;
  left: -20%;
  height: 18vh;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(205, 174, 213, 0.15), transparent 38%),
    radial-gradient(ellipse at 73% 42%, rgba(215, 169, 211, 0.12), transparent 36%);
  filter: blur(25px);
  opacity: 0.6;
  animation: mist-drift 12s ease-in-out infinite alternate;
}

.mist--back {
  bottom: 20%;
}

.mist--front {
  z-index: 20;
  bottom: -2%;
  opacity: 0.36;
  animation-direction: alternate-reverse;
}

/* =========================================================
   3. Personazhi dhe afrimi
   ========================================================= */

.boy {
  position: absolute;
  z-index: 10;
  bottom: 6.5vh;
  left: 50%;
  width: 180px;
  height: 420px;
  transform: translate(-50%, -12vh) scale(var(--far-scale));
  transform-origin: 50% 100%;
  will-change: transform;
}

.love-scene.is-walking .boy {
  animation: boy-approach var(--walk-duration) var(--ease-cinematic) forwards;
}

.love-scene.is-arrived .boy,
.love-scene.is-revealed .boy,
.love-scene.is-complete .boy {
  transform: translate(-50%, 0) scale(var(--arrival-scale));
}

.boy-shadow {
  position: absolute;
  bottom: -6px;
  left: 50%;
  width: 122px;
  height: 26px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: rgba(2, 0, 5, 0.7);
  filter: blur(8px);
  opacity: 0.7;
}

.boy-core {
  position: absolute;
  inset: 0;
  transform-origin: 50% 100%;
}

.love-scene.is-walking .boy-core {
  animation: walk-bob 0.72s ease-in-out infinite;
}

.head {
  position: absolute;
  z-index: 7;
  top: 14px;
  left: 58px;
  width: 65px;
  height: 79px;
  border-radius: 44% 44% 48% 48% / 38% 38% 58% 58%;
  background: linear-gradient(115deg, #d99a86 0%, #a86158 65%, #79413f 100%);
  box-shadow:
    inset 9px -4px 15px rgba(75, 25, 33, 0.22),
    0 5px 14px rgba(0, 0, 0, 0.24);
}

.face-light {
  position: absolute;
  top: 26px;
  right: 9px;
  width: 18px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 217, 190, 0.1);
  filter: blur(3px);
}

.ear {
  position: absolute;
  z-index: -1;
  top: 36px;
  width: 11px;
  height: 20px;
  border-radius: 50%;
  background: #a7625b;
}

.ear--left {
  left: -6px;
}

.ear--right {
  right: -6px;
}

.hair {
  position: absolute;
  z-index: 2;
  background: #150e17;
}

.hair--one {
  top: -5px;
  left: -1px;
  width: 67px;
  height: 35px;
  border-radius: 54% 52% 32% 18%;
  transform: rotate(-3deg);
}

.hair--two {
  top: 12px;
  left: -3px;
  width: 16px;
  height: 31px;
  border-radius: 50% 0 70% 40%;
  transform: rotate(8deg);
}

.hair--three {
  top: -6px;
  right: 4px;
  width: 28px;
  height: 26px;
  border-radius: 50% 75% 30% 55%;
  transform: rotate(20deg);
}

.neck {
  position: absolute;
  z-index: 4;
  top: 81px;
  left: 73px;
  width: 35px;
  height: 38px;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(90deg, #a76059, #c88170);
}

.body {
  position: absolute;
  z-index: 3;
  top: 103px;
  left: 34px;
  width: 112px;
  height: 170px;
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  border-radius: 28px 28px 12px 12px;
  background: linear-gradient(105deg, #17121f 0%, #292033 46%, #100d18 100%);
  box-shadow:
    inset 13px 0 16px rgba(101, 72, 111, 0.12),
    0 12px 22px rgba(0, 0, 0, 0.2);
}

.shirt {
  position: absolute;
  top: 0;
  left: 40px;
  width: 35px;
  height: 127px;
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  background: linear-gradient(180deg, #533147, #281a2a);
}

.jacket-edge {
  position: absolute;
  top: 0;
  width: 2px;
  height: 135px;
  background: rgba(255, 255, 255, 0.08);
}

.jacket-edge--left {
  left: 38px;
  transform: rotate(5deg);
}

.jacket-edge--right {
  right: 36px;
  transform: rotate(-5deg);
}

.arm {
  position: absolute;
  z-index: 5;
  top: 112px;
  width: 30px;
  height: 136px;
  transform-origin: 50% 13px;
  border-radius: 18px;
  background: linear-gradient(90deg, #17121f, #2b2033 55%, #100d17);
  box-shadow: 0 5px 13px rgba(0, 0, 0, 0.2);
  transition: transform var(--arm-duration) cubic-bezier(0.3, 0.8, 0.25, 1);
}

.arm--left {
  left: 35px;
  transform: rotate(-40deg);
}

.arm--right {
  right: 35px;
  transform: rotate(40deg);
}

.hand {
  position: absolute;
  bottom: -6px;
  left: 3px;
  width: 24px;
  height: 31px;
  border-radius: 46% 46% 55% 55%;
  background: linear-gradient(115deg, #d0907c, #9d5d58);
}

.love-scene.is-revealed .arm--left,
.love-scene.is-complete .arm--left {
  transform: rotate(68deg);
}

.love-scene.is-revealed .arm--right,
.love-scene.is-complete .arm--right {
  transform: rotate(-68deg);
}

.leg {
  position: absolute;
  z-index: 2;
  top: 260px;
  width: 43px;
  height: 143px;
  transform-origin: 50% 8px;
  border-radius: 9px 9px 18px 18px;
  background: linear-gradient(90deg, #0b0a11, #211927 60%, #09080d);
}

.leg--left {
  left: 45px;
}

.leg--right {
  right: 45px;
}

.love-scene.is-walking .leg--left {
  animation: leg-left-walk 0.72s ease-in-out infinite;
}

.love-scene.is-walking .leg--right {
  animation: leg-right-walk 0.72s ease-in-out infinite;
}

.shoe {
  position: absolute;
  right: -3px;
  bottom: -4px;
  width: 50px;
  height: 24px;
  border-radius: 60% 18% 20% 18%;
  background: #07070a;
  box-shadow: 0 5px 7px rgba(0, 0, 0, 0.35);
}

/* =========================================================
   4. Dialogu, zemra dhe përfundimi
   ========================================================= */

.dialogue {
  position: absolute;
  z-index: 40;
  top: clamp(7vh, 82px, 11vh);
  left: 50%;
  width: min(calc(100% - 42px), 560px);
  min-height: 80px;
  padding: 19px 25px;
  transform: translate(-50%, 18px) scale(0.97);
  border: 1px solid rgba(255, 224, 238, 0.17);
  border-radius: 20px;
  background: rgba(19, 9, 28, 0.58);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  color: rgba(255, 246, 250, 0.94);
  font-family: var(--font-script);
  font-size: clamp(1.58rem, 4.3vw, 2.22rem);
  line-height: 1.14;
  text-align: center;
  text-wrap: balance;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s ease;
}

.dialogue.is-visible {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
  visibility: visible;
}

.type-cursor {
  display: inline-block;
  width: 2px;
  height: 0.95em;
  margin-left: 4px;
  transform: translateY(2px);
  background: var(--blush);
  animation: cursor-blink 0.8s steps(1) infinite;
}

.heart {
  position: absolute;
  z-index: 9;
  top: 184px;
  left: 50%;
  width: 104px;
  height: 96px;
  transform: translate(-50%, -50%) scale(0.16);
  filter: saturate(0.65);
  opacity: 0.05;
  transition:
    opacity 1.35s ease,
    transform 1.6s cubic-bezier(0.22, 1.35, 0.35, 1),
    filter 1.2s ease;
}

.heart-shape {
  position: absolute;
  top: 17px;
  left: 21px;
  width: 62px;
  height: 62px;
  transform: rotate(-45deg);
  border-radius: 10px 4px 10px 4px;
  background: linear-gradient(135deg, #ff8cad 0%, #ff2a61 52%, #c90f4d 100%);
  box-shadow:
    0 0 25px rgba(255, 47, 103, 0.88),
    0 0 65px rgba(255, 64, 132, 0.58),
    inset 5px 5px 13px rgba(255, 255, 255, 0.22);
}

.heart-shape::before,
.heart-shape::after {
  content: "";
  position: absolute;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: inherit;
}

.heart-shape::before {
  top: -31px;
  left: 0;
}

.heart-shape::after {
  top: 0;
  left: 31px;
}

.heart-glint {
  position: absolute;
  z-index: 2;
  top: -15px;
  left: 11px;
  width: 10px;
  height: 24px;
  transform: rotate(22deg);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.43);
  filter: blur(2px);
}

.love-scene.is-revealed .heart,
.love-scene.is-complete .heart {
  transform: translate(-50%, -50%) scale(1);
  filter: saturate(1);
  opacity: 1;
}

.love-scene.is-revealed .heart-shape,
.love-scene.is-complete .heart-shape {
  animation: heart-beat 1.24s ease-in-out 1.3s infinite;
}

.heart-orbit {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffd5e5;
  box-shadow: 0 0 10px #ff5b9a;
  opacity: 0;
}

.heart-orbit--one {
  top: 6px;
  left: 5px;
}

.heart-orbit--two {
  top: 52px;
  right: -5px;
}

.heart-orbit--three {
  bottom: 2px;
  left: 19px;
}

.love-scene.is-revealed .heart-orbit,
.love-scene.is-complete .heart-orbit {
  animation: orbit-spark 2.1s ease-out 1.1s infinite;
}

.love-scene.is-revealed .heart-orbit--two,
.love-scene.is-complete .heart-orbit--two {
  animation-delay: 1.65s;
}

.love-scene.is-revealed .heart-orbit--three,
.love-scene.is-complete .heart-orbit--three {
  animation-delay: 2.15s;
}

.reveal-sparks,
.heart-burst {
  position: absolute;
  z-index: 38;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.reveal-particle {
  position: absolute;
  top: 54%;
  left: 50%;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--color);
  box-shadow: 0 0 12px var(--color);
  animation: reveal-particle 1.8s ease-out var(--delay) forwards;
}

.final-reveal {
  position: absolute;
  z-index: 41;
  bottom: max(122px, calc(env(safe-area-inset-bottom) + 114px));
  left: 50%;
  width: min(calc(100% - 38px), 760px);
  transform: translate(-50%, 10px);
  text-align: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease 0.75s, transform 1s ease 0.75s, visibility 1s ease 0.75s;
}

.love-scene.is-revealed .final-reveal,
.love-scene.is-complete .final-reveal {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

.love-scene.has-love-response .final-reveal {
  transform: translate(-50%, 10px);
  opacity: 0;
  visibility: hidden;
  transition-delay: 0s;
}

.heart-message {
  margin: 0;
  color: #fff5fa;
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 5vw, 3.35rem);
  line-height: 1.06;
  text-shadow:
    0 0 24px rgba(255, 87, 145, 0.4),
    0 5px 20px rgba(0, 0, 0, 0.3);
  text-wrap: balance;
}

.anniversary-message {
  margin: 8px 0 0;
  color: rgba(255, 216, 233, 0.8);
  font-size: clamp(0.72rem, 2.3vw, 0.93rem);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.final-actions {
  position: absolute;
  z-index: 45;
  right: 18px;
  bottom: max(46px, calc(env(safe-area-inset-bottom) + 38px));
  left: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
  transform: translateY(22px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, transform 0.8s ease, visibility 0.8s ease;
}

.love-scene.is-complete .final-actions {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.action-button {
  min-width: 165px;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 0.88rem;
}

.action-button--love {
  background: linear-gradient(135deg, #ff3c75, #b71959);
  box-shadow: 0 10px 30px rgba(255, 42, 104, 0.3);
}

.action-button--ghost {
  border: 1px solid rgba(255, 255, 255, 0.19);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.love-response {
  position: absolute;
  z-index: 50;
  right: 20px;
  bottom: max(122px, calc(env(safe-area-inset-bottom) + 114px));
  left: 20px;
  color: #fff4f8;
  font-family: var(--font-script);
  font-size: clamp(1.45rem, 4.5vw, 2.5rem);
  line-height: 1.14;
  text-align: center;
  text-shadow: 0 0 24px rgba(255, 59, 119, 0.75);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  pointer-events: none;
}

.love-response.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.burst-heart {
  position: absolute;
  z-index: 1;
  bottom: -45px;
  left: var(--left);
  color: var(--color);
  font-size: var(--size);
  text-shadow: 0 0 12px rgba(255, 50, 119, 0.62);
  animation: burst-heart var(--duration) cubic-bezier(0.16, 0.76, 0.28, 1) var(--delay) forwards;
}

/* =========================================================
   Animacione
   ========================================================= */

@keyframes aurora-drift {
  to {
    transform: translate(5vw, 4vh) scale(1.1);
  }
}

@keyframes float-heart {
  0% {
    transform: translate3d(0, 0, 0) rotate(-8deg);
    opacity: 0;
  }
  12% {
    opacity: var(--opacity);
  }
  50% {
    transform: translate3d(var(--drift), -55vh, 0) rotate(12deg);
  }
  100% {
    transform: translate3d(calc(var(--drift) * -0.5), -120vh, 0) rotate(-5deg);
    opacity: 0;
  }
}

@keyframes mini-heartbeat {
  0%,
  45%,
  100% {
    transform: rotate(-45deg) scale(1);
  }
  10%,
  25% {
    transform: rotate(-45deg) scale(1.14);
  }
  17% {
    transform: rotate(-45deg) scale(1.03);
  }
}

@keyframes card-shake {
  0%,
  100% {
    transform: translateX(0);
  }
  22% {
    transform: translateX(-8px) rotate(-0.3deg);
  }
  44% {
    transform: translateX(7px) rotate(0.3deg);
  }
  66% {
    transform: translateX(-5px);
  }
  82% {
    transform: translateX(3px);
  }
}

@keyframes success-shine {
  to {
    left: 130%;
  }
}

@keyframes star-twinkle {
  0%,
  100% {
    opacity: calc(var(--opacity) * 0.36);
    transform: scale(0.75);
  }
  50% {
    opacity: var(--opacity);
    transform: scale(1.24);
  }
}

@keyframes ilda-shine {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0.32;
  }
  38% {
    transform: translate(-50%, -50%) scale(1.3);
    opacity: 1;
  }
  54% {
    transform: translate(-50%, -50%) scale(0.9);
    opacity: 0.58;
  }
}

@keyframes mist-drift {
  to {
    transform: translateX(8vw) scale(1.04);
  }
}

@keyframes boy-approach {
  0% {
    transform: translate(-50%, -12vh) scale(var(--far-scale));
    filter: blur(1.8px) brightness(0.7);
  }
  25% {
    transform: translate(-50%, -9vh) scale(calc(var(--far-scale) + 0.12));
  }
  70% {
    filter: blur(0) brightness(0.9);
  }
  100% {
    transform: translate(-50%, 0) scale(var(--arrival-scale));
    filter: blur(0) brightness(1);
  }
}

@keyframes walk-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-0.5deg);
  }
  50% {
    transform: translateY(-5px) rotate(0.5deg);
  }
}

@keyframes leg-left-walk {
  0%,
  100% {
    transform: rotate(7deg);
  }
  50% {
    transform: rotate(-8deg);
  }
}

@keyframes leg-right-walk {
  0%,
  100% {
    transform: rotate(-8deg);
  }
  50% {
    transform: rotate(7deg);
  }
}

@keyframes cursor-blink {
  50% {
    opacity: 0;
  }
}

@keyframes heart-beat {
  0%,
  42%,
  100% {
    transform: rotate(-45deg) scale(1);
  }
  12%,
  28% {
    transform: rotate(-45deg) scale(1.13);
  }
  20% {
    transform: rotate(-45deg) scale(1.04);
  }
}

@keyframes orbit-spark {
  0% {
    transform: translate(0, 0) scale(0);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  100% {
    transform: translate(var(--spark-x, 18px), var(--spark-y, -28px)) scale(0);
    opacity: 0;
  }
}

@keyframes reveal-particle {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    transform: translate(
        calc(-50% + var(--particle-x)),
        calc(-50% + var(--particle-y))
      )
      scale(0);
    opacity: 0;
  }
}

@keyframes burst-heart {
  0% {
    transform: translate3d(0, 0, 0) rotate(var(--rotation)) scale(0.45);
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--drift), -115vh, 0) rotate(calc(var(--rotation) + 65deg)) scale(1.1);
    opacity: 0;
  }
}

/* =========================================================
   Responsive — optimizim për telefon
   ========================================================= */

@media (max-width: 720px) {
  :root {
    --arrival-scale: 0.8;
    --far-scale: 0.16;
  }

  .entry-screen {
    align-items: center;
    padding: 16px;
  }

  .login-card {
    max-height: calc(100svh - 32px);
    padding: 30px 23px 26px;
    border-radius: 25px;
  }

  .mini-heart {
    margin-bottom: 18px;
  }

  .entry-copy {
    margin: 13px auto 24px;
  }

  #secret-code {
    height: 57px;
  }

  .dialogue {
    top: 7.5vh;
    min-height: 72px;
    padding: 16px 19px;
  }

  .boy {
    bottom: 7.5vh;
  }

  .heart-message {
    max-width: 94%;
    margin: auto;
  }

  .anniversary-message {
    margin-top: 5px;
  }

  .final-actions {
    gap: 9px;
  }

  .action-button {
    min-width: 0;
    min-height: 49px;
    padding: 0 17px;
    font-size: 0.78rem;
  }

  .love-response {
    bottom: max(114px, calc(env(safe-area-inset-bottom) + 106px));
  }

  .moon {
    top: 4vh;
    right: 7vw;
  }

  .ilda-constellation {
    top: clamp(92px, 13vh, 126px);
    left: 18px;
    width: min(70vw, 260px);
  }
}

@media (max-width: 430px) {
  .login-card h1 {
    font-size: clamp(2.05rem, 10.8vw, 2.8rem);
  }

  .entry-copy {
    font-size: 0.79rem;
  }

  .eyebrow {
    letter-spacing: 0.18em;
  }

  .boy {
    bottom: 5.5vh;
  }

  .love-scene.is-complete .boy {
    transform: translate(-50%, 1.5vh) scale(0.74);
  }
}

@media (max-height: 670px) {
  .login-card {
    padding-top: 23px;
    padding-bottom: 22px;
  }

  .mini-heart {
    margin-bottom: 12px;
  }

  .entry-copy {
    margin: 9px auto 18px;
  }

  .code-hint,
  .error-message {
    margin-bottom: 9px;
  }

  .boy {
    bottom: 1vh;
  }

  .dialogue {
    top: 3.5vh;
  }

}

/* =========================================================
   Lëvizje e reduktuar — ruan emocionin, shmang lëvizjet intensive
   ========================================================= */

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

  .floating-heart,
  .entry-aurora,
  .mist,
  .star,
  .ilda-star,
  .mini-heart,
  .type-cursor,
  .heart-orbit {
    animation: none !important;
  }

  .ilda-star {
    opacity: 0.86;
  }

  .love-scene.is-walking .boy {
    animation-duration: 0.35s;
  }

  .love-scene.is-walking .boy-core,
  .love-scene.is-walking .leg {
    animation: none;
  }

  .heart-shape {
    animation-duration: 2s !important;
  }

  .arm,
  .heart,
  .dialogue,
  .final-reveal,
  .final-actions {
    transition-duration: 0.25s !important;
    transition-delay: 0s !important;
  }
}
