
:root {
  --night-top: #0b1a2b;
  --night-bottom: #14382f;
  --gold: #f2c46d;
  --gold-soft: #f7dfaa;
  --text: #f6f1e6;
  --muted: #b9c7c2;
  --card: rgba(255, 255, 255, .06);
  --card-line: rgba(242, 196, 109, .35);
  --bulb-a: #f4c15d;
  --bulb-b: #ef6f80;
  --bulb-c: #7fd0a8;
  --bulb-d: #8ec5f2;
  --tree: #0c2a22;
  --tree-back: #0f3a2e;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(242,196,109,.14), transparent 55%),
    linear-gradient(180deg, var(--night-top), var(--night-bottom));
  background-attachment: fixed;
  color: var(--text);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px);
}
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }

.lights { width: 100%; height: 70px; display: block; position: relative; z-index: 2; }
.lights path { stroke: #5e7a72; fill: none; stroke-width: 1.5; }
.bulb { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .bulb { animation: glow 3.2s ease-in-out infinite; }
  .star { animation: pulse 4s ease-in-out infinite; }
  .num.tick { animation: tick .35s ease-out; }
}
@keyframes glow { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .6; transform: scale(.9); } }
@keyframes tick { from { transform: translateY(-4px); opacity: .5; } to { transform: none; opacity: 1; } }

main {
  position: relative;
  z-index: 2;
  max-width: 660px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 11rem;
  text-align: center;
}
.star { color: var(--gold); font-size: 1.6rem; margin: 0 0 .5rem; }
h1 {
  font-family: "Young Serif", Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 8vw, 3.4rem);
  line-height: 1.15;
  margin: 0 0 1rem;
  color: var(--gold-soft);
  text-shadow: 0 0 28px rgba(242,196,109,.35);
}
.lead { color: var(--muted); margin: 0 auto 2.5rem; max-width: 36ch; font-size: 1.1rem; }

.timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .8rem;
  margin: 0 auto 1.25rem;
}
.unit {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 16px;
  padding: 1.2rem .25rem 1rem;
  box-shadow: 0 0 24px rgba(242,196,109,.08), inset 0 0 0 4px rgba(11,26,43,.35);
  backdrop-filter: blur(4px);
}
.num {
  display: block;
  font-family: "Young Serif", Georgia, serif;
  font-size: clamp(2.2rem, 10vw, 3.6rem);
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 18px rgba(242,196,109,.4);
}
.label { display: block; margin-top: .55rem; font-size: .9rem; color: var(--muted); }

.when { color: var(--gold-soft); margin: 0 0 2.5rem; font-size: 1rem; }
.note { font-size: 1.1rem; max-width: 36ch; margin: 0 auto; }
[hidden] { display: none !important; }

.trees { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; height: 130px; z-index: 1; pointer-events: none; }
@media (max-width: 380px) { .timer { gap: .4rem; } }

.plan {
  margin: 3rem auto 0;
  max-width: 460px;
  padding: 1.75rem 1.5rem;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 18px;
  backdrop-filter: blur(4px);
}
.plan h2 { font-family: "Young Serif", Georgia, serif; font-weight: 400; font-size: 1.6rem; color: var(--gold-soft); margin: 0 0 .5rem; }
.plan-text { color: var(--muted); margin: 0 0 1.25rem; }
.fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: .75rem; margin-bottom: 1.25rem; text-align: left; }
.fields label { display: flex; flex-direction: column; gap: .35rem; font-size: .9rem; color: var(--muted); }
.fields input {
  font: inherit; font-size: 1rem; color: var(--text);
  background: rgba(11,26,43,.55); border: 1px solid var(--card-line);
  border-radius: 10px; padding: .65rem .7rem; color-scheme: dark; width: 100%;
}
.fields input:focus-visible, #send:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
#send {
  font: inherit; font-weight: 500; cursor: pointer;
  background: var(--gold); color: #1b2a22; border: 0; border-radius: 999px;
  padding: .8rem 1.6rem; transition: transform .15s, box-shadow .15s;
}
#send:hover { transform: translateY(-1px); box-shadow: 0 0 20px rgba(242,196,109,.45); }
.status { min-height: 1.5em; margin: 1rem 0 0; color: var(--gold-soft); font-size: .95rem; }
@media (max-width: 420px) { .fields { grid-template-columns: 1fr; } }

