:root { --brand-blue: #0078ff; }

html { scrollbar-gutter: stable; }

body{
  margin:0;
  min-height:100vh;
  background:#fff;
  font-family:"Roboto",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  color:#111;
  display:flex;
  justify-content:center;
  align-items:flex-start;
  overflow-y:scroll;
}

/* =========================
   Layout
========================= */

.wrapper{
  margin-top:calc(8vh + 50px);
  text-align:center;
  max-width:720px;
  padding:0 16px 140px;
}

/* =========================
   Logo
========================= */

.logo{
  width:200px;
  margin:0 auto 118px;
}

.logo svg{
  width:200px;
  height:auto;
  display:block;
  transform-origin:50% 50%;
}

.logo svg.pulse{
  animation:logoPulse 1s ease-in-out 0s 4 forwards;
}

@keyframes logoPulse{
  0%{ transform:scale(1); }
  50%{ transform:scale(1.035); }
  100%{ transform:scale(1); }
}

@media (prefers-reduced-motion: reduce){
  .logo svg.pulse{
    animation:none!important;
    transform:none;
  }
}

/* =========================
   Intro
========================= */

.intro{
  opacity:0.001;
  animation:introFadeIn 3.90s ease-out 1.45s forwards;
}

@keyframes introFadeIn{
  to{ opacity:1; }
}

h1{
  margin:0 0 6px;
  font-size:1.7rem;
  font-weight:500;
}

.title{
  margin:0 0 16px;
  font-size:1.05rem;
  font-weight:400;
  color:#555;
}

.description{
  max-width:400px;
  margin:0 auto 18px;
  font-size:1rem;
  font-weight:300;
  line-height:1.55;
  color:#444;
  letter-spacing:0.01em;
}

/* =========================
   Photo section (replaces game)
========================= */

.photo-section{
  display:none;
  margin-top:58px;
  text-align:center;
}

.photo-section.is-visible{
  display:block;
}

.photo-wrapper{
  width:284px;
  height: 284px;
  margin:30px auto 0;
  border-radius:16px;
  overflow:hidden;
  position:relative;
  background:#ffffff;
transform: translateZ(0);
}

.photo-wrapper img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* Overlay fades in ONLY when scrolling back to top */
.photo-overlay{
  position:absolute;
  inset:0;
  background:#ffffff;
  opacity:0;
  pointer-events:none;
}

body.at-top .photo-overlay{
  opacity:1;
}

/* Mobile sizing */
@media (max-width: 350px){
  .photo-wrapper{
    width:140px;
    height:210px;
  }

  .photo-wrapper{
    width:92vw;
    height:138vw;
  }
}

/* =========================
   Flying dot (unchanged)
========================= */

#easter-dot{
  position:fixed;
  width:26px;
  height:26px;
  border-radius:999px;
  background:rgba(0,120,255,0.5);
  z-index:9999;
  cursor:pointer;
  user-select:none;
  -webkit-tap-highlight-color:transparent;
  box-shadow:0 0 0 4px rgba(0,120,255,0.12);
  opacity:0;
  transition:
    opacity 0.9s ease,
    background-color 0.12s ease,
    box-shadow 0.12s ease;
  left:0;
  top:0;
  touch-action:manipulation;
}

/* Bigger hit area */
#easter-dot::before{
  content:"";
  position:absolute;
  inset:-18px;
  border-radius:999px;
}

@media (pointer:coarse){
  #easter-dot::before{ inset:-11px; }
}

#easter-dot.is-hot{
  background:rgba(0,200,90,0.55);
  box-shadow:0 0 0 4px rgba(0,200,90,0.16);
}

#easter-dot::after{
  content:"catch me";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-150%);
  font-size:11px;
  font-weight:400;
  letter-spacing:0.02em;
  color:rgba(0,120,255,0.78);
  background:rgba(255,255,255,0.85);
  border:1px solid rgba(0,120,255,0.18);
  padding:3px 7px;
  border-radius:999px;
  white-space:nowrap;
  pointer-events:none;
  opacity:0;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    color 0.12s ease,
    border-color 0.12s ease;
}

#easter-dot.is-teasing::after{
  opacity:1;
  transform:translate(-50%,-165%);
}

#easter-dot .ring{
  position:absolute;
  inset:-10px;
  border-radius:999px;
  border:2px solid rgba(0,120,255,0.22);
  pointer-events:none;
  opacity:0;
  transform:scale(0.9);
}

#easter-dot.is-teasing .ring{
  opacity:1;
  animation:ringPulse 0.9s ease-out 0s 1;
}

@keyframes ringPulse{
  0%{ transform:scale(0.85); opacity:0.65; }
  100%{ transform:scale(1.25); opacity:0; }
}

#easter-dot.is-hot::after{
  color:rgba(0,170,80,0.85);
  border-color:rgba(0,170,80,0.22);
}

#easter-dot.is-hot .ring{
  border-color:rgba(0,170,80,0.24);
}

#easter-dot:focus-visible{
  outline:3px solid rgba(0,120,255,0.25);
  outline-offset:6px;
}