/* The invitation remains behind this entrance until Mew is tapped. */
body.entry-locked { overflow: hidden; }

.entry {
  --entry-ink: #744566;
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  padding: max(18px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  isolation: isolate;
  color: var(--entry-ink);
  background:
    radial-gradient(circle at 8% 20%, #fff7d6 0 3px, transparent 4px),
    radial-gradient(circle at 88% 16%, #ffffff 0 5px, transparent 6px),
    radial-gradient(circle at 13% 83%, #ffffff 0 4px, transparent 5px),
    radial-gradient(circle at 87% 78%, #fff2ad 0 4px, transparent 5px),
    radial-gradient(ellipse at 50% 63%, #fffdf8 0%, #fcebf5 50%, #e9dff9 100%);
  transition: opacity .46s ease, visibility .46s ease;
}
.entry::before,
.entry::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(38vw, 330px);
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(5px);
  pointer-events: none;
}
.entry::before { top: 15%; left: -14%; background: #ffdcecd0; }
.entry::after { right: -14%; bottom: 4%; background: #d9f2e3c4; }
.entry[hidden] { display: none; }
.entry.is-leaving { opacity: 0; visibility: hidden; pointer-events: none; }
.entry-topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(100%, 1100px); margin: 0 auto; }
.entry-brand { font: 1.35rem Pacifico, cursive; color: #ad4f7b; white-space: nowrap; }
.entry-brand span { color: #ef93b3; }
.entry-lang { flex: none; }
.entry-content { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; width: 100%; max-width: 620px; margin: auto; text-align: center; }
.entry-kicker { margin: 10px 0 8px; font-size: .75rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #ba6d90; }
.entry h2 { margin: 0; font: 400 clamp(2.1rem, 6vw, 3.65rem)/1.18 Pacifico, cursive; color: #ce5b8e; text-wrap: balance; }
.entry-subtitle { max-width: 450px; margin: 12px 0 4px; line-height: 1.5; font-size: clamp(.95rem, 2.2vw, 1.1rem); }
.entry-mew { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; width: min(78vw, 350px); min-height: min(44dvh, 330px); padding: 4px 10px 0; margin: 2px auto 0; border: 0; background: transparent; color: #8c3e66; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
.entry-mew-glow { position: absolute; top: 7%; left: 10%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #fffefc 0 34%, #ffcde4 60%, #f1dcff00 75%); filter: drop-shadow(0 0 32px #fff); animation: entry-glow 2.7s ease-in-out infinite alternate; }
.entry-mew img { position: relative; z-index: 1; display: block; width: min(72vw, 270px); max-height: min(34dvh, 270px); object-fit: contain; height: auto; filter: drop-shadow(0 18px 16px #9a66924d); animation: entry-float 3.2s ease-in-out infinite; user-select: none; pointer-events: none; }
.entry-tap { position: relative; z-index: 1; display: inline-block; min-width: 200px; margin-top: 1px; padding: 12px 20px; border-radius: 999px; background: linear-gradient(125deg, #ea72a0, #b877d6); color: #fff; box-shadow: 0 9px 22px #b861a061; font-weight: 900; font-size: 1rem; line-height: 1.2; transition: transform .2s ease, box-shadow .2s ease; }
.entry-mew:hover .entry-tap { transform: translateY(-3px); box-shadow: 0 12px 26px #b861a078; }
.entry-mew:focus-visible { outline: 3px solid #a34d88; outline-offset: 4px; border-radius: 28px; }
.entry-hint { margin: 8px 0 0; font-size: .88rem; color: #8e7182; }
.entry-date { margin: 13px 0 4px; padding: 7px 16px; border: 1px solid #eac6da; border-radius: 999px; background: #fff9; color: #a94d7b; font-weight: 900; font-size: .9rem; }
.entry-bottom { text-align: center; color: #da8eb1; letter-spacing: .35em; font-size: 1.1rem; padding: 5px 0; }
.entry.is-opening .entry-mew img { animation: entry-launch .65s cubic-bezier(.2,.8,.2,1) forwards; }
.entry.is-opening .entry-mew-glow { animation: entry-bloom .65s ease-out forwards; }
.entry.is-opening .entry-content > :not(.entry-mew) { opacity: 0; transition: opacity .3s ease; }
.entry-spark { position: fixed; z-index: 4; pointer-events: none; font-size: 24px; color: var(--spark-color); animation: entry-spark .8s ease-out forwards; }
body.is-revealed .hero-copy { animation: invitation-rise .8s ease-out both; }
body.is-revealed .hero-photo { animation: invitation-photo .9s cubic-bezier(.2,.7,.2,1) both; }
.hero .eyebrow, .hero h1 { -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; }
.gallery-controls .dot { width: 9px; height: 9px; min-width: 9px; min-height: 9px; padding: 0; }
.balloon { z-index: 5; }
@keyframes entry-float { 50% { transform: translateY(-12px) rotate(-3deg); } }
@keyframes entry-glow { to { transform: scale(1.09); opacity: .72; } }
@keyframes entry-launch { to { transform: translateY(-38px) rotate(-12deg) scale(1.7); opacity: 0; } }
@keyframes entry-bloom { to { transform: scale(3); opacity: 0; } }
@keyframes entry-spark { to { transform: translate(var(--spark-x), var(--spark-y)) rotate(180deg) scale(.2); opacity: 0; } }
@keyframes invitation-rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes invitation-photo { from { opacity: 0; transform: translateY(22px) scale(.93); } to { opacity: 1; transform: none; } }

/* More breathing room and reliable touch targets on phones. */
@media (max-width: 740px) {
  .entry-topbar { align-items: flex-start; }
  .entry-brand { padding-top: 7px; }
  .entry-lang button { padding-inline: 11px; min-height: 44px; }
  .hero .wrap { padding-inline: max(18px, env(safe-area-inset-right)) max(18px, env(safe-area-inset-left)); }
  .hero-grid { margin-top: 23px; }
  .hero-photo { height: clamp(285px, 87vw, 420px); }
  .hero-copy { position: relative; z-index: 2; }
  .hero h1 { font-size: clamp(3.25rem, 14vw, 5.2rem); }
  .date-chip { margin-block: 8px 17px; }
  .cta-row { flex-direction: column; gap: 8px; }
  .cta-row .primary { width: min(100%, 310px); }
  .section { padding-block: 57px; }
  .mapbox iframe { height: 280px; }
  .balloon { pointer-events: auto; }
}
@media (max-width: 390px) {
  .entry-brand { font-size: 1.1rem; }
  .entry-lang { padding: 3px; }
  .entry-lang button { font-size: .77rem; padding-inline: 8px; }
  .entry h2 { font-size: clamp(1.85rem, 8.6vw, 2.4rem); }
  .entry-subtitle { font-size: .91rem; margin-top: 7px; }
  .entry-mew { min-height: min(42dvh, 285px); }
  .entry-mew img { width: min(67vw, 245px); max-height: min(32dvh, 245px); }
  .hero .topbar { gap: 7px; }
  .hero .brand { font-size: 1.1rem; }
  .hero .lang button { font-size: .76rem; padding-inline: 8px; }
}
@media (max-width: 350px) {
  .entry-brand, .hero .brand { display: none; }
  .entry-topbar, .hero .topbar { justify-content: center; }
  .entry-lang button, .hero .lang button { font-size: .74rem; padding-inline: 8px; }
}
@media (max-height: 650px) {
  .entry-content { justify-content: flex-start; }
  .entry-subtitle { margin-top: 6px; }
  .entry-mew { min-height: 0; width: min(66vw, 250px); }
  .entry-mew img { width: min(53vw, 190px); max-height: 190px; }
  .entry-hint { margin-top: 4px; }
  .entry-date { margin-top: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .entry, .entry *, body.is-revealed .hero-copy, body.is-revealed .hero-photo { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* A warmer, pinker invitation and a portrait crop that keeps Mila's face visible. */
:root { --pink: #f45f9e; --deep: #a83d72; --cream: #fff7fb; --ink: #583848; }
body { background: var(--cream); }
.hero { background: radial-gradient(ellipse at 52% 20%, #fff 0, #fff0f7 48%, #ffdce9 100%); }
.details { background: #ffeaf3; }
.play { background: linear-gradient(155deg, #fff7fb 0%, #ffeaf4 55%, #fce9f8 100%); }
.end { background: #ffe2ef; }
.card, .play-card { border-color: #f8d1e2; box-shadow: 0 14px 34px #ae4e7514; }
.photo-frame { box-shadow: 0 20px 55px #b74c7b2f; }
.photo-frame img { object-position: center top; }
.photo-frame img[src$="tasya-3.jpg"] { object-position: center bottom; }
.entry { background:
  radial-gradient(circle at 8% 20%, #fff7d6 0 3px, transparent 4px),
  radial-gradient(circle at 88% 16%, #ffffff 0 5px, transparent 6px),
  radial-gradient(circle at 13% 83%, #ffffff 0 4px, transparent 5px),
  radial-gradient(circle at 87% 78%, #fff2ad 0 4px, transparent 5px),
  radial-gradient(ellipse at 50% 63%, #fffdfb 0%, #ffe8f2 51%, #f6cfe7 100%);
}
.entry::after { background: #f4bde2aa; }

/* Two playful worlds: Pokémon on the left, a pastel block-builder on the right. */
.games-grid { max-width: 1030px; align-items: stretch; gap: 24px; }
.game-card { min-width: 0; padding: 25px 22px 20px; border: 1px solid #f4c5da; border-radius: 30px; background: #fff; box-shadow: 0 18px 42px #a6457419; text-align: center; }
.pokemon-card { background: linear-gradient(165deg, #fffafd, #fff0f8); }
.minecraft-card { background: linear-gradient(165deg, #fffafd, #fff2f7); }
.game-label { display: inline-block; margin-bottom: 7px; color: #c05a89; font-size: .75rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.game-card h3 { margin: 4px 0 5px; color: #a93f76; font: 400 clamp(1.55rem, 2.3vw, 2rem)/1.28 Pacifico, cursive; }
.game-card > p:not(.game-feedback) { margin: 6px auto 14px; min-height: 42px; line-height: 1.45; }
.game-score { display: flex; justify-content: space-between; align-items: center; gap: 10px; max-width: 270px; margin: 0 auto 12px; padding: 7px 12px; color: #995171; background: #fff; border: 1px solid #f3c8dc; border-radius: 999px; font-size: .86rem; font-weight: 800; }
.game-score strong { color: #c44883; font-size: 1rem; }
.pokemon-stage, .minecraft-world { position: relative; height: 285px; overflow: hidden; border: 2px solid #f6d3e6; border-radius: 25px; }
.pokemon-stage { background: radial-gradient(circle at 50% 23%, #fff 0 13%, transparent 39%), radial-gradient(circle at 20% 75%, #ffd6e9 0 12%, transparent 13%), radial-gradient(circle at 80% 68%, #e9ddff 0 13%, transparent 14%), linear-gradient(150deg, #ffe6f2, #fff7fd 65%, #ffe4f3); }
.pokemon-stage::before, .pokemon-stage::after { content: "✦"; position: absolute; color: #e58db5; font-size: 22px; pointer-events: none; }
.pokemon-stage::before { top: 14%; left: 19%; }
.pokemon-stage::after { top: 20%; right: 15%; font-size: 16px; }
.catch-heart { position: absolute; z-index: 2; left: 50%; top: 30%; display: grid; place-items: center; width: 62px; height: 62px; padding: 0; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 8px 22px #d55f9877; font-size: 34px; transform: translate(-50%, -50%); animation: heart-beat 1.4s ease-in-out infinite; touch-action: manipulation; }
.catch-heart:focus-visible, .pokemon-friend:focus-visible, .creeper:focus-visible, .game-reset:focus-visible { outline: 3px solid #9e4579; outline-offset: 3px; }
.catch-heart:disabled { opacity: .45; cursor: default; animation: none; }
.pokemon-friends { position: absolute; z-index: 3; bottom: 7px; left: 50%; display: flex; justify-content: center; gap: 7px; width: calc(100% - 12px); max-width: 335px; transform: translateX(-50%); }
.pokemon-friend { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: end; min-width: 0; height: 112px; padding: 5px 3px 7px; border: 2px solid transparent; border-radius: 18px; background: #ffffffdb; color: #944d70; font-size: .72rem; font-weight: 900; line-height: 1.1; touch-action: manipulation; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.pokemon-friend.selected { background: #ffe1ef; border-color: #ee89b4; box-shadow: 0 5px 15px #d6639730; }
.pokemon-friend:hover { transform: translateY(-3px); }
.pokemon-friend img { width: min(100%, 74px); height: 78px; object-fit: contain; filter: drop-shadow(0 5px 4px #b34d7740); pointer-events: none; }
.pokemon-friend.pop img { animation: friend-hop .7s ease-out; }
.pokemon-friend span { white-space: normal; overflow-wrap: anywhere; }
.game-pop { position: absolute; z-index: 5; pointer-events: none; font-size: 23px; animation: game-float .85s ease-out forwards; }
.game-feedback { min-height: 30px; margin: 12px 0 4px; color: #a64175; font-weight: 900; line-height: 1.35; }
.game-reset { min-height: 42px; padding: 8px 18px; border: 1px solid #e9acc9; border-radius: 999px; background: #fff; color: #ac477c; font-weight: 900; }
.game-reset:hover { background: #ffe5f0; }

.minecraft-world { background: linear-gradient(#f8dcf3 0 64%, #f4a6c7 64% 70%, #a5d3ae 70% 100%); image-rendering: pixelated; }
.minecraft-world::before { content: ""; position: absolute; inset: 0; opacity: .13; background-image: linear-gradient(#b772a8 1px, transparent 1px), linear-gradient(90deg, #b772a8 1px, transparent 1px); background-size: 26px 26px; pointer-events: none; }
.pixel-cloud { position: absolute; top: 36px; width: 62px; height: 18px; background: #fff8fe; box-shadow: 13px -13px #fff8fe, 31px -7px #fff8fe; opacity: .9; }
.cloud-one { left: 12%; }
.cloud-two { right: 16%; top: 62px; transform: scale(.8); }
.pixel-sun { position: absolute; top: 20px; right: 19%; color: #fff1a3; font-size: 38px; text-shadow: 0 0 20px #fff; }
.pixel-ground { position: absolute; right: 0; bottom: 0; left: 0; height: 31px; background: repeating-linear-gradient(90deg, #8dbd93 0 25px, #95c99c 25px 50px); border-top: 6px solid #7fb78e; }
.creeper { position: absolute; z-index: 3; bottom: 25px; left: 50%; display: flex; flex-direction: column; align-items: center; width: 156px; height: 218px; padding: 0; border: 0; background: none; transform: translateX(-50%); touch-action: manipulation; filter: drop-shadow(0 10px 5px #345b4a56); }
.creeper[hidden], .creeper-heart[hidden] { display: none; }
.creeper-head { position: relative; z-index: 2; display: block; width: 112px; height: 112px; border: 5px solid #3d8949; border-radius: 3px; background: repeating-linear-gradient(0deg, #67bf68 0 16px, #72c773 16px 32px); box-shadow: inset 10px 8px #94df82, inset -10px -9px #358d4c; }
.creeper-head::after { content: ""; position: absolute; inset: 0; opacity: .2; background-image: linear-gradient(90deg, #265e34 50%, transparent 50%), linear-gradient(#9fe584 50%, transparent 50%); background-size: 23px 23px; pointer-events: none; }
.creeper-eye { position: absolute; z-index: 1; top: 25px; width: 20px; height: 21px; background: #193d2c; }
.creeper-eye.left { left: 19px; }
.creeper-eye.right { right: 19px; }
.creeper-mouth { position: absolute; z-index: 1; top: 51px; left: 31px; width: 42px; height: 45px; background: #193d2c; clip-path: polygon(0 0, 25% 0, 25% 22%, 75% 22%, 75% 0, 100% 0, 100% 72%, 76% 72%, 76% 100%, 24% 100%, 24% 72%, 0 72%); }
.creeper-body { display: block; width: 80px; height: 73px; margin-top: -2px; background: repeating-linear-gradient(90deg, #65b969 0 18px, #76c874 18px 36px); border: 5px solid #3b8648; border-top: 0; box-shadow: inset 8px 0 #8dd584, inset -7px -6px #4a9e57; }
.creeper-legs { display: flex; justify-content: center; gap: 3px; margin-top: -2px; }
.creeper-legs i { display: block; width: 22px; height: 31px; background: #4c9b58; border: 3px solid #347d45; box-shadow: inset 4px 0 #7bc77b; }
.creeper.recoil { animation: creeper-recoil .55s cubic-bezier(.25,.65,.2,1); }
.creeper.exploding { animation: creeper-explode .7s steps(7, end) forwards; }
.creeper-heart { position: absolute; z-index: 4; top: 36%; left: 50%; font-size: 94px; line-height: 1; transform: translate(-50%, -50%); filter: drop-shadow(0 8px 12px #ae568a82); animation: creeper-heart .7s ease-out both; }
.creeper-fragment { position: absolute; z-index: 5; width: 13px; height: 13px; display: grid; place-items: center; border-radius: 2px; color: #9463a3; pointer-events: none; animation: creeper-fragment .9s ease-out forwards; }
.minecraft-world.won { background: linear-gradient(#ffe5f3 0 64%, #f6b6d4 64% 70%, #a5d3ae 70% 100%); }
@keyframes heart-beat { 50% { transform: translate(-50%, -50%) scale(1.12); } }
@keyframes friend-hop { 50% { transform: translateY(-22px) rotate(-6deg) scale(1.12); } }
@keyframes game-float { to { transform: translateY(-85px) rotate(20deg); opacity: 0; } }
@keyframes creeper-recoil { 0%, 100% { transform: translateX(-50%); } 38% { transform: translateX(calc(-50% + var(--recoil-x))) translateY(-20px) rotate(-9deg); } 72% { transform: translateX(calc(-50% - 8px)) translateY(2px) rotate(4deg); } }
@keyframes creeper-explode { 0% { transform: translateX(-50%) scale(1); opacity: 1; } 30% { transform: translateX(-50%) scale(1.16); filter: brightness(1.8) drop-shadow(0 0 18px #fff); } 65% { transform: translateX(-50%) scale(1.38); opacity: 1; } 100% { transform: translateX(-50%) scale(1.8); opacity: 0; } }
@keyframes creeper-heart { from { transform: translate(-50%, -50%) scale(.2); opacity: 0; } 70% { transform: translate(-50%, -50%) scale(1.2); } to { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
@keyframes creeper-fragment { to { transform: translate(var(--dx), var(--dy)) rotate(180deg) scale(.25); opacity: 0; } }
@media (max-width: 740px) {
  .games-grid { gap: 20px; }
  .game-card { padding: 22px 17px 18px; }
  .pokemon-stage, .minecraft-world { height: 278px; }
}
@media (max-width: 350px) {
  .game-card { padding-inline: 12px; }
  .pokemon-friend { font-size: .64rem; }
  .pokemon-friend img { height: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  .catch-heart, .pokemon-friend.pop img, .game-pop, .creeper.recoil, .creeper.exploding, .creeper-heart, .creeper-fragment { animation-duration: .01ms !important; }
}
