:root {
  color-scheme: dark;
  --bg: #0b1515;
  --ink: #e5eee5;
  --muted: #9fb49e;
  --line: #2a3c31;
  --panel: #13241d;
  --accent: #c6e796;
  --accent-ink: #1a291d;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); }
button, a { font: inherit; }
button {
  cursor: pointer;
  padding: 8px 13px;
  border: 1px solid #3b5145;
  background: #1a2c24;
  color: #d9e4d5;
  border-radius: 7px;
}
button:hover { border-color: #cce798; background: #304434; }
button:focus-visible, a:focus-visible {
  outline: 2px solid #d0ec9b;
  outline-offset: 3px;
}
.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
}
.primary:hover { background: #dbf3b9; }
a { color: #c0dba1; text-decoration: none; }
.eyebrow {
  font-size: 13px;
  letter-spacing: 1.5px;
  color: #b7d18a;
  margin: 0 0 8px;
}
h1, h2 { font-weight: 550; letter-spacing: .4px; }
.lead { color: var(--muted); line-height: 1.7; max-width: 42rem; }

.home { min-height: 100vh; padding: 28px 6% 48px; }
.home-head { display: flex; gap: 20px; margin-bottom: 48px; font-size: 14px; }
.home h1 { font-size: clamp(28px, 4vw, 44px); margin: 0 0 12px; }
.nights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 36px 0 28px;
  max-width: 1100px;
}
.night-card {
  display: block;
  text-align: left;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  color: var(--ink);
  width: 100%;
}
.night-card small { display: block; color: #91ae99; font-size: 12px; margin-bottom: 8px; }
.night-card strong { display: block; font-size: 20px; margin-bottom: 8px; }
.night-card span { display: block; font-size: 14px; color: var(--muted); line-height: 1.5; }
.night-card .status { margin-top: 14px; font-size: 12px; color: #c7e496; }
.night-card.is-stub .status { color: #8aa58a; }
.hint { font-size: 14px; color: #8aa58a; }

.deck-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-bottom: 1px solid var(--line);
  background: #10201a;
  flex-shrink: 0;
}
.deck-bar span { font-size: 14px; color: #b6c8a7; }
#deck-night { margin-right: auto; color: #d9e4d5; }

.deck {
  height: 100vh;
  display: flex;
  flex-direction: column;
}
.slide {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
}
.slide-visual {
  position: relative;
  background: #081210;
  overflow: hidden;
}
.slide-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.slide-copy {
  padding: 7vh 5% 6vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
  background: #11221c;
}
.kicker { font-size: 14px; color: #b7d18a; margin: 0 0 12px; letter-spacing: 1px; }
.slide-copy h2 {
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.35;
  margin: 0;
}
.note { margin: 18px 0 0; font-size: 16px; color: var(--muted); line-height: 1.65; }
#btn-reveal { align-self: flex-start; margin-top: 22px; }
.reveal {
  margin: 18px 0 0;
  font-size: 20px;
  line-height: 1.55;
  color: var(--accent);
}

.slide-anim { position: absolute; inset: 0; pointer-events: none; }
.slide-anim[hidden] { display: none; }

.anim-smoke {
  position: absolute;
  left: 46%;
  top: 28%;
  width: 8%;
  height: 18%;
  border-radius: 40%;
  background: radial-gradient(circle, rgba(180,190,190,.35), transparent 70%);
  animation: drift 2.8s ease-in-out infinite;
}
.anim-flame {
  position: absolute;
  left: 49%;
  top: 52%;
  width: 14px;
  height: 28px;
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle at 50% 70%, #fff6c8, #ff9a3c 45%, transparent 70%);
  transform: translate(-50%, -50%);
  animation: flicker 0.9s ease-in-out infinite;
}
.anim-leaf {
  position: absolute;
  right: 28%;
  top: 38%;
  width: 48px;
  height: 48px;
  border-radius: 0 70% 40% 70%;
  background: #6fbf6a;
  opacity: 0;
  animation: sprout 1.4s ease forwards;
}
@keyframes drift {
  0%, 100% { transform: translate(-50%, 0) scale(1); opacity: .5; }
  50% { transform: translate(-40%, -18px) scale(1.2); opacity: .2; }
}
@keyframes flicker {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  50% { transform: translate(-50%, -56%) scale(1.08); opacity: .85; }
}
@keyframes sprout {
  from { opacity: 0; transform: scale(0.4) rotate(-20deg); }
  to { opacity: .9; transform: scale(1) rotate(12deg); }
}
.anim-drop {
  position: absolute;
  left: 62%;
  top: 18%;
  width: 14px;
  height: 18px;
  border-radius: 40% 40% 55% 55%;
  background: #c4892a;
  animation: drip 1.6s ease-in infinite;
}
.anim-stain {
  position: absolute;
  left: 22%;
  top: 28%;
  width: 28%;
  height: 44%;
  border-radius: 42% 38% 48% 40%;
  background: radial-gradient(circle, rgba(18, 32, 72, .0), rgba(18, 32, 72, .45));
  animation: stain 1.8s ease forwards;
}
@keyframes drip {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(90px); opacity: .9; }
  100% { transform: translateY(110px); opacity: 0; }
}
@keyframes stain {
  from { opacity: 0; transform: scale(0.6); }
  to { opacity: 1; transform: scale(1); }
}
.slide-link {
  display: inline-block;
  align-self: flex-start;
  margin-top: 22px;
  padding: 10px 16px;
  border-radius: 7px;
}
.slide-link[hidden] { display: none !important; }

.home[hidden], .stub[hidden], .deck[hidden] { display: none !important; }
.stub { min-height: 100vh; display: flex; flex-direction: column; }
.stub-body { padding: 40px 8% 60px; max-width: 720px; }
.stub-body h2 { font-size: 28px; margin: 8px 0 12px; }
.stub-body ol { font-size: 18px; line-height: 1.7; color: #d4e5bc; padding-left: 1.2em; }

.deck:fullscreen, .deck:-webkit-full-screen { height: 100vh; background: var(--bg); }

@media (max-width: 900px) {
  .slide { grid-template-columns: 1fr; grid-template-rows: minmax(38vh, 48vh) auto; }
  .slide-copy { border-left: 0; border-top: 1px solid var(--line); padding: 24px 6% 32px; }
  .slide-copy h2 { font-size: 24px; }
  .deck-bar { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .anim-smoke, .anim-flame, .anim-leaf, .anim-drop, .anim-stain { animation: none; opacity: .7; }
}
