/* ============================================================
   Anniversary Declaration (declaration.html) — read together on the LED or a phone.
   Sized in vh/vw so it fills any screen; deep green + gold reads best on an LED.
   ============================================================ */
:root{
  --night: #071F17;
  --night-2: #0F3D2E;
  --gold: #C6A24D;
  --gold-bright: #E7C873;
  --gold-pale: #F6DE98;
  --cream: #FAF3E4;
  --display: 'Fraunces', Georgia, serif;
  --body: 'Inter', 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}
*, *::before, *::after{ box-sizing: border-box; }
[hidden]{ display: none !important; }
html, body{ height: 100%; margin: 0; }
.dc{
  display: grid; grid-template-rows: auto minmax(0, 1fr) auto; min-height: 100vh; min-height: 100dvh; overflow: hidden;
  font-family: var(--body); color: var(--cream); -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(ellipse 70% 55% at 50% 45%, rgba(231,200,115,.16), transparent 70%),
    radial-gradient(ellipse 60% 60% at 100% 100%, rgba(30,107,69,.55), transparent 70%),
    linear-gradient(180deg, #0B2E22, var(--night));
}
.dc.idle{ cursor: none; }
.dc-sparks, .dc-confetti{ position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.dc-sparks{ z-index: 0; }
.dc-confetti{ z-index: 30; }
.dc-head, .dc-stage, .dc-bar{ position: relative; z-index: 1; }

.dc-head{ padding: max(3vh, 18px) 5vw 0; text-align: center; }
.dc-church{ margin: 0 0 .6vh; font-size: clamp(.68rem, 1.7vh, 1rem); font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-bright); }
.dc-title{ margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.6rem, 5vh, 3.4rem); line-height: 1.05; }

.dc-stage{ display: flex; align-items: center; justify-content: center; padding: 2vh 7vw; text-align: center; cursor: pointer; user-select: none; }

/* before starting */
.dc-intro{ max-width: 1100px; animation: dcRise .9s var(--ease) both; }
.dc-lede{ margin: 0 0 2vh; font-family: var(--display); font-style: italic; font-size: clamp(1rem, 2.8vh, 1.7rem); color: var(--gold-bright); }
.dc-full{ margin: 0 0 3.4vh; font-family: var(--display); font-weight: 600; font-size: clamp(1.15rem, 3.6vh, 2.5rem); line-height: 1.5; color: #E4ECE7; text-wrap: balance; }
.dc-start{
  padding: 1.6vh 3.4vh; border: none; border-radius: 999px; cursor: pointer; font: 800 clamp(1rem, 2.4vh, 1.5rem) var(--body); color: var(--night);
  background: linear-gradient(180deg, #FFE9A6, var(--gold)); box-shadow: 0 1.2vh 3.4vh rgba(0,0,0,.35); transition: transform .25s var(--ease);
}
.dc-start:hover{ transform: translateY(-2px) scale(1.03); }
.dc-hint{ margin: 2vh 0 0; font-size: clamp(.78rem, 1.6vh, 1rem); color: #9FB8AA; }
.dc-hint kbd{ padding: .1em .45em; border-radius: 4px; font: inherit; font-weight: 800; color: var(--night); background: var(--gold-bright); }

/* one phrase at a time */
.dc-phrase{
  margin: 0; max-width: 1400px; font-family: var(--display); font-weight: 700; font-size: clamp(2.2rem, 9.5vh, 8rem); line-height: 1.18; text-wrap: balance;
  opacity: 0; transform: translateY(3vh) scale(.98);
}
.dc-phrase.in{ opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .9s var(--ease); }
.dc-phrase span{ color: rgba(250,243,228,.28); transition: color .35s ease, text-shadow .35s ease; }
.dc-phrase span.lit{ color: var(--cream); text-shadow: 0 0 3vh rgba(231,200,115,.35); }
/* the last phrase, "To God be all the glory!", in shimmering gold */
.dc-phrase.dc-last{ font-style: italic; font-size: clamp(2.6rem, 11.5vh, 9.5rem); }
.dc-phrase.dc-last span.lit{
  background: linear-gradient(110deg, #B8902F, var(--gold-pale) 35%, var(--gold) 55%, #FFF1C4 75%, #9C7A28);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: dcShimmer 5s linear infinite; text-shadow: none;
}

/* the end */
.dc-end{ animation: dcRise 1.1s var(--ease) both; }
.dc-end-glory{
  margin: 0; font-family: var(--display); font-style: italic; font-weight: 700; font-size: clamp(2.8rem, 13vh, 11rem); line-height: 1.05;
  background: linear-gradient(110deg, #B8902F, var(--gold-pale) 35%, var(--gold) 55%, #FFF1C4 75%, #9C7A28);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: dcShimmer 5s linear infinite;
  filter: drop-shadow(0 1vh 4vh rgba(231,200,115,.3));
}
.dc-end-verse{ margin: 3vh auto 0; max-width: 900px; font-family: var(--display); font-style: italic; font-size: clamp(1rem, 3.2vh, 2.2rem); line-height: 1.45; color: #E4ECE7; }
.dc-end-verse span{ display: block; margin-top: 1vh; font-family: var(--body); font-style: normal; font-size: .55em; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-bright); }
@keyframes dcShimmer{ from{ background-position: 120% 0; } to{ background-position: -130% 0; } }
@keyframes dcRise{ from{ opacity: 0; transform: translateY(3vh); } }

/* ---------------- The bar: progress dots + controls ---------------- */
.dc-bar{ display: flex; flex-direction: column; align-items: center; gap: 1.4vh; padding: 0 16px max(2.6vh, 16px); transition: opacity .5s ease; }
.dc.idle .dc-controls{ opacity: 0; pointer-events: none; }
.dc-controls{ display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; transition: opacity .5s ease; }
.dc-controls > button, .dc-speed button{
  min-width: 44px; height: 44px; padding: 0 14px; border: none; border-radius: 999px; cursor: pointer;
  font: 700 .95rem var(--body); color: var(--cream); background: rgba(255,255,255,.1); transition: background .2s;
}
.dc-controls > button:hover, .dc-speed button:hover{ background: rgba(255,255,255,.2); }
.dc-controls .dc-play{ min-width: 130px; color: var(--night); background: linear-gradient(180deg, #FFE9A6, var(--gold)); }
.dc-speed{ display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(0,0,0,.25); }
.dc-speed button{ height: 38px; min-width: 0; padding: 0 12px; font-size: .82rem; background: transparent; }
.dc-speed button.on{ color: var(--night); background: var(--gold-bright); }
.dc-dots{ display: flex; gap: 1vh; }
.dc-dots i{ width: 1.1vh; height: 1.1vh; min-width: 8px; min-height: 8px; border-radius: 50%; background: rgba(250,243,228,.2); transition: background .4s, transform .4s var(--ease); }
.dc-dots i.done{ background: var(--gold); }
.dc-dots i.on{ background: var(--gold-bright); transform: scale(1.5); }

@media (prefers-reduced-motion: reduce){
  .dc-phrase, .dc-phrase.in{ opacity: 1; transform: none; transition: none; }
  .dc-intro, .dc-end{ animation: none; }
}
