/* Soul Hunter's page, in the haveli's language: chalk on a blackboard, and only what matters burns.
   The policy pages keep their own site.css; this file is this page's alone. */
:root {
  --ink: #120f16; --ink-2: #1a1520; --chalk: #efe6d6; --chalk-2: #b9ad9c; --chalk-3: rgba(239,230,214,.35);
  --flame: #ffb347; --om: #ff6b4a; --soul: #ff3a24;
  --wrap: min(68rem, 100% - 2.5rem);
  --reveal: .9s cubic-bezier(.2,.7,.2,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--chalk); font: 400 1.12rem/1.55 "Kalam", cursive; }
body.reaping { overflow: hidden; }
a { color: var(--flame); }
h1, h2, h3 { font-weight: 700; line-height: 1.1; margin: 0; }
h2 { font-size: clamp(2.2rem, 6vw, 3.6rem); text-align: center; margin-bottom: 2rem; }
h2::after { content: ""; display: block; width: 7rem; height: 3px; margin: .5rem auto 0; background: var(--chalk-3); border-radius: 3px; transform: rotate(-1.5deg); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; z-index: 50; background: var(--ink); padding: .4rem .8rem; }

/* buttons: chalk outline, or a flame for the one that matters */
.btn { display: inline-block; font: 700 1.1rem "Kalam", cursive; text-decoration: none; cursor: pointer; padding: .6rem 1.2rem; border-radius: 8px;
  background: var(--om); color: #170c08; border: 2px solid var(--om); box-shadow: 0 0 0 rgba(255,107,74,0); transition: box-shadow .3s, transform .15s; }
.btn:hover, .btn:focus-visible { box-shadow: 0 0 24px rgba(255,107,74,.55); transform: translateY(-1px); }
.btn.ghost { background: rgba(18,15,22,.6); color: var(--chalk); border: 2px dashed var(--chalk-2); }
.btn.ghost:hover, .btn.ghost:focus-visible { border-color: var(--flame); color: var(--flame); box-shadow: none; }
.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* top bar */
.bar { position: absolute; z-index: 5; inset: 0 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; }
.home { color: var(--chalk); text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.home span { color: var(--om); }
.bar-cta { color: var(--chalk); border: 1.5px solid var(--chalk-2); border-radius: 6px; padding: .25rem .7rem; text-decoration: none; font-weight: 700; background: rgba(18,15,22,.7); }
.bar-cta:hover { color: var(--flame); border-color: var(--flame); }

/* hero: the graveyard plays itself; the words sit in a pool of dark */
.hero { position: relative; height: 100svh; min-height: 36rem; display: grid; align-items: center; overflow: hidden; }
.field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 60% 70% at 26% 52%, rgba(18,15,22,.92), rgba(18,15,22,.55) 60%, rgba(18,15,22,.1)),
              linear-gradient(to bottom, rgba(18,15,22,.6), transparent 20%, transparent 75%, var(--ink)); }
.hero-text { position: relative; z-index: 2; width: var(--wrap); margin: 0 auto; max-width: 68rem; }
.hero-text > :not(h1) { max-width: 34rem; }
.status { display: inline-flex; align-items: center; gap: .5rem; margin: 0 0 .8rem; color: var(--chalk-2); font-size: 1rem; }
.status i { width: .6rem; height: .6rem; border-radius: 50%; background: var(--soul); box-shadow: 0 0 10px var(--soul); animation: pulse 1.6s infinite; }
h1 { display: flex; align-items: center; gap: .8rem; font-size: clamp(2.8rem, 10vw, 6.2rem); letter-spacing: .01em; white-space: nowrap; text-shadow: 0 0 30px rgba(255,58,36,.25); }
h1 img { width: clamp(3rem, 9vw, 4.6rem); height: auto; border-radius: 18%; border: 2px solid var(--chalk-2); transform: rotate(-4deg); }
.tagline { font-size: clamp(1.2rem, 3vw, 1.5rem); margin: .6rem 0 1rem; }
.tally { margin: 0 0 1.4rem; color: var(--chalk-2); }
.tally b { color: var(--soul); font-size: 1.7rem; text-shadow: 0 0 14px rgba(255,58,36,.6); font-variant-numeric: tabular-nums; }
.down { position: absolute; z-index: 2; left: 50%; bottom: 1.2rem; translate: -50% 0; color: var(--chalk-2); text-decoration: none; font-size: 1.6rem; animation: bob 2s infinite; }

/* the pact: a sheet of contract, signed */
.pact { padding: 6rem 0 4rem; }
.scroll { width: min(42rem, 100% - 2.5rem); margin: 0 auto; padding: 2.4rem clamp(1.3rem, 5vw, 3rem); position: relative;
  background: var(--ink-2); border: 2px solid var(--chalk-2); border-radius: 4px 14px 6px 12px; box-shadow: 8px 8px 0 rgba(0,0,0,.45); transform: rotate(-.6deg); }
.scroll::before, .scroll::after { content: ""; position: absolute; left: -10px; right: -10px; height: 14px; border: 2px solid var(--chalk-2); border-radius: 10px; background: var(--ink); }
.scroll::before { top: -9px; } .scroll::after { bottom: -9px; }
.scroll h2 { margin-bottom: 1.2rem; }
.terms { font-size: 1.35rem; }
.terms b { color: var(--soul); }
.signed { display: flex; justify-content: space-between; align-items: end; margin-top: 2rem; gap: 1rem; }
.sign { text-align: center; flex: 1; }
.sign small { display: block; color: var(--chalk-2); border-top: 1.5px dashed var(--chalk-3); padding-top: .2rem; }
.hand { display: inline-block; font: 300 2.6rem "Kalam", cursive; color: var(--soul); text-shadow: 0 0 12px rgba(255,58,36,.7);
  clip-path: inset(0 100% 0 0); transition: clip-path 1.4s .4s steps(14, end); }
.hand.death { transition-delay: 1.6s; }
.pact.seen .hand { clip-path: inset(0 0 0 0); }
.seal { width: 5.2rem; height: 5.2rem; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #2a0c08;
  background: radial-gradient(circle at 40% 35%, #ff7a5c, #c2281a 70%); box-shadow: 0 0 0 4px rgba(194,40,26,.35), 0 0 24px rgba(255,58,36,.45);
  transform: scale(0) rotate(-30deg); transition: transform .5s 2.6s cubic-bezier(.3,1.6,.5,1); }
.pact.seen .seal { transform: scale(1) rotate(-12deg); }

/* the game: shots pinned to the board, grey until you look at them */
.game { width: var(--wrap); margin: 0 auto; padding: 4rem 0; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 28rem), 1fr)); gap: 2.2rem 2rem; }
.shot { margin: 0; padding: .6rem .6rem .3rem; background: var(--ink-2); border: 2px solid var(--chalk-2); border-radius: 4px; position: relative; box-shadow: 6px 6px 0 rgba(0,0,0,.4); }
.shot:nth-child(odd) { transform: rotate(-1.2deg); } .shot:nth-child(even) { transform: rotate(1deg); }
.shot::before { content: ""; position: absolute; top: -12px; left: 50%; width: 5rem; height: 1.4rem; translate: -50% 0; rotate: -3deg; background: rgba(239,230,214,.18); border: 1px solid var(--chalk-3); }
.shot img { display: block; width: 100%; height: auto; border-radius: 2px; filter: grayscale(1) contrast(1.1) brightness(.8); transition: filter 1.2s; }
.shot.seen img, .shot:hover img { filter: none; }
.shot figcaption { text-align: center; color: var(--chalk-2); padding-top: .3rem; }

.numbers { list-style: none; padding: 0; margin: 4rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); gap: 2rem 1.5rem; }
.numbers li { text-align: center; }
.numbers b { display: block; font-size: 4rem; line-height: 1; color: var(--flame); text-shadow: 0 0 18px rgba(255,179,71,.35); font-variant-numeric: tabular-nums; }
.numbers h3 { font-size: 1.3rem; margin: .4rem 0 .3rem; }
.numbers p { margin: 0; color: var(--chalk-2); font-size: 1rem; }

/* the early test: two tickets */
.test { width: var(--wrap); margin: 0 auto; padding: 4rem 0 5rem; }
.intro { text-align: center; max-width: 36rem; margin: -1rem auto 2.5rem; }
.tickets { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 2rem; }
.ticket { position: relative; padding: 1.6rem 1.5rem 1.6rem 4.6rem; background: var(--ink-2); border: 2px dashed var(--chalk-2); border-radius: 12px; }
.ticket .num { position: absolute; left: 1.1rem; top: 1rem; font-size: 3.4rem; font-weight: 700; line-height: 1; color: var(--om); text-shadow: 0 0 16px rgba(255,107,74,.45); }
.ticket h3 { font-size: 1.45rem; margin-bottom: .4rem; }
.ticket p { margin: 0 0 1.1rem; }
.ticket strong { color: var(--flame); }
.fineprint { max-width: 42rem; margin: 2.5rem auto 0; text-align: center; color: var(--chalk-2); font-size: 1rem; }

footer { border-top: 1.5px dashed var(--chalk-3); text-align: center; color: var(--chalk-2); padding: 2rem 1.25rem 3rem; font-size: 1rem; }
footer p { margin: .3rem 0; }

/* things arrive as you reach them */
.reveal { opacity: 0; translate: 0 1.6rem; transition: opacity var(--reveal), translate var(--reveal); }
.reveal.seen { opacity: 1; translate: 0 0; }

@keyframes pulse { 50% { opacity: .35; } }
@keyframes bob { 50% { translate: -50% .4rem; } }

@media (max-width: 40rem) {
  .hero::before { background: linear-gradient(to bottom, rgba(18,15,22,.55), rgba(18,15,22,.85) 45%, rgba(18,15,22,.85) 80%, var(--ink)); }
  .hero { align-items: end; padding-bottom: 4.5rem; }
  .signed { gap: .4rem; } .seal { width: 4.2rem; height: 4.2rem; } .hand { font-size: 2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .reveal.seen { opacity: 1; translate: none; transition: none; }
  .hand { clip-path: none; transition: none; } .seal { transform: rotate(-12deg); transition: none; }
  .status i, .down { animation: none; }
}
