:root{
  --bg:#0b0b0b;
  --card:#0f0f0f;
  --muted:#bfc5c0;
  --accent:#2fbf4c;
  --glass: rgba(255,255,255,0.03);
  --rounded:14px;
  --gap:12px;
  --height:100svh;
  --safe-padding:16px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  color-scheme: dark;
}

*{box-sizing:border-box}
html,body{height:100%;margin:0;background:linear-gradient(180deg, #070707 0%, #0b0b0b 100%);color:#fff}
body{
  display:flex;
  align-items:stretch;
  justify-content:center;
  height:var(--height);
  padding:env(safe-area-inset-top) var(--safe-padding) env(safe-area-inset-bottom);
  position:relative;
  overflow:hidden;
}

/* animated technical lines background */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  background-image:
    repeating-linear-gradient(90deg, rgba(255,255,255,0.02) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.015) 0 1px, transparent 1px 32px),
    linear-gradient(180deg, rgba(47,191,76,0.02), transparent 40%, rgba(47,191,76,0.01));
  mix-blend-mode:screen;
  opacity:0.9;
  transform:translateZ(0);
  animation: techScroll 18s linear infinite;
  will-change:transform, background-position;
  z-index:0;
}

@keyframes techScroll{
  0%{ background-position:0 0, 0 0, 0 0; transform: translateY(0); }
  50%{ background-position:800px 0, -600px 0, 0 0; transform: translateY(-6px); }
  100%{ background-position:1600px 0, -1200px 0, 0 0; transform: translateY(0); }
}

#scene-root{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
}

/* ensure the three canvas is behind UI (app has higher stacking) */
#app, .brand, .card, .foot{position:relative; z-index:1}

#app{
  margin:auto;
  width:100%;
  max-width:560px;
  display:flex;
  flex-direction:column;
  gap:var(--gap);
  align-items:stretch;
  min-height:calc(var(--height) - 32px);
}

/* branding */
.brand{
  display:flex;
  justify-content:center;
  padding-top:6px;
  pointer-events:none;
}
.logo{
  height:84px;
  width:auto;
  image-rendering:crisp-edges;
  filter:drop-shadow(0 6px 12px rgba(0,0,0,0.6));
}

/* content card */
.card{
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border-radius:var(--rounded);
  padding:18px;
  box-shadow:0 6px 18px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.02);
  display:flex;
  flex-direction:column;
  gap:12px;
  align-items:stretch;
}

.headline{
  margin:0;
  font-size:20px;
  letter-spacing:0.2px;
  text-align:center;
}
.sub{
  margin:0;
  color:var(--muted);
  text-align:center;
  font-size:13px;
}

/* countdown & actions */
.row{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:center;
  margin-top:6px;
  flex-wrap:wrap;
}

/* GIF preview with glow */
.gif{
  height:88px;
  width:auto;
  border-radius:10px;
  box-shadow:
    0 6px 18px rgba(0,0,0,0.5),
    0 0 18px rgba(47,191,76,0.12),
    0 0 36px rgba(47,191,76,0.06);
  filter: drop-shadow(0 8px 24px rgba(47,191,76,0.12));
  image-rendering:optimizeSpeed;
  position:relative;
  z-index:2;
  animation: glowPulse 2.6s ease-in-out infinite;
}

/* gentle green pulse to emphasize the GIF */
@keyframes glowPulse{
  0%{ box-shadow:0 6px 18px rgba(0,0,0,0.5), 0 0 12px rgba(47,191,76,0.06), 0 0 28px rgba(47,191,76,0.03); transform: translateY(0); }
  50%{ box-shadow:0 8px 26px rgba(0,0,0,0.55), 0 0 26px rgba(47,191,76,0.18), 0 0 48px rgba(47,191,76,0.08); transform: translateY(-2px); }
  100%{ box-shadow:0 6px 18px rgba(0,0,0,0.5), 0 0 12px rgba(47,191,76,0.06), 0 0 28px rgba(47,191,76,0.03); transform: translateY(0); }
}

/* form */
.notify{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:6px;
}

.notify input{
  flex:1;
  min-height:44px;
  padding:10px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.06);
  background:transparent;
  color:#fff;
  font-size:14px;
  outline:none;
}

.btn{
  min-height:44px;
  background:transparent;
  border:1px solid rgba(255,255,255,0.08);
  color:#fff;
  padding:10px 14px;
  border-radius:10px;
  font-weight:600;
  cursor:pointer;
  flex-shrink:0;
}

.btn:active{transform:translateY(1px)}
.btn.primary{
  background:linear-gradient(180deg,var(--accent),#259f3f);
  border:0;
  box-shadow:0 6px 18px rgba(47,191,76,0.12);
}

/* status & footer */
.status{
  margin-top:6px;
  color:var(--muted);
  font-size:13px;
  text-align:center;
}

.foot{
  display:flex;
  align-items:center;
  justify-content:center;
  color:var(--muted);
  font-size:12px;
  padding-top:6px;
}

/* social button */
.social{
  display:inline-flex;
  gap:8px;
  align-items:center;
  justify-content:center;
  background:transparent;
  border:1px solid rgba(255,255,255,0.06);
  padding:8px 12px;
  border-radius:10px;
  color:var(--muted);
  text-decoration:none;
  transition:transform .12s ease, box-shadow .12s ease, color .12s ease;
  min-height:44px;
  min-width:140px;
}
.social:hover{ transform:translateY(-2px); box-shadow:0 8px 24px rgba(47,191,76,0.06); color:#fff; border-color:rgba(47,191,76,0.14); }
.social svg{ display:block; color:var(--accent); flex-shrink:0; }
.social-label{ font-weight:600; font-size:13px; color:inherit; }

/* utilities */
.visually-hidden{
  position:absolute!important;
  height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap;
}
@media(min-width:720px){
  .logo{height:98px}
}