* { box-sizing: border-box; }

:root {
  --bg: #14100f;
  --bg2: #1d1715;
  --card: #241c1a;
  --line: #3a2c28;
  --text: #efe6e0;
  --muted: #b3a49c;
  --blood: #d13a2c;
  --blood2: #ff5b45;
  --tear: #7fc4ff;
  --gold: #f0c05a;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 20% -10%, rgba(209,58,44,.16), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(127,196,255,.10), transparent 60%),
    var(--bg);
  line-height: 1.6;
}

#tears { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .55; }

.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .7rem 1rem;
  background: rgba(20,16,15,.88); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
}
.brand { color: var(--blood2); font-weight: bold; text-decoration: none; letter-spacing: 2px; font-size: 1.1rem; }
.nav { display: flex; gap: .2rem; flex-wrap: wrap; }
.nav a {
  color: var(--muted); text-decoration: none; font-size: .9rem;
  padding: .35rem .6rem; border-radius: 6px;
}
.nav a:hover { color: var(--text); background: rgba(209,58,44,.18); }

main { position: relative; z-index: 1; }
.section { max-width: 1040px; margin: 0 auto; padding: 3.5rem 1.25rem; }
.section--alt { background: linear-gradient(180deg, rgba(255,255,255,.03), transparent 70%); }
.section__title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem); margin: 0 0 .4rem;
  color: var(--blood2); letter-spacing: 1px;
}
.section__lead { color: var(--muted); margin: 0 0 2rem; }

.hero { max-width: 1040px; margin: 0 auto; padding: 4.5rem 1.25rem 3rem; text-align: center; }
.hero__kicker { color: var(--gold); letter-spacing: 4px; font-size: .78rem; margin: 0; }
.hero__title {
  font-size: clamp(2.1rem, 6vw, 4rem); margin: .5rem 0 1rem; line-height: 1.1;
  text-shadow: 0 4px 24px rgba(209,58,44,.35);
}
.hero__title span { color: var(--blood2); }
.hero__sub { max-width: 620px; margin: 0 auto 1.6rem; color: var(--muted); font-size: 1.05rem; }
.hero__cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  font-family: inherit; font-size: 1rem; padding: .75rem 1.5rem; border-radius: 8px;
  transition: transform .15s, box-shadow .15s;
}
.btn--primary { background: var(--blood); color: #fff; box-shadow: 0 6px 18px rgba(209,58,44,.4); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(209,58,44,.55); }
.btn--ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--tear); color: var(--tear); }

.stats {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: 1.5rem; padding: 0; margin: 3rem 0 0;
}
.stats li { display: flex; flex-direction: column; min-width: 110px; }
.stats b { font-size: 2.2rem; color: var(--gold); font-family: 'Courier New', monospace; }
.stats span { color: var(--muted); font-size: .85rem; }

.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.tl { position: relative; padding: 0 0 2rem 1.6rem; }
.tl::before {
  content: ''; position: absolute; left: -9px; top: 4px; width: 16px; height: 16px;
  background: var(--blood); border-radius: 50%; box-shadow: 0 0 0 4px rgba(209,58,44,.2);
}
.tl__date { color: var(--gold); font-family: 'Courier New', monospace; font-size: .85rem; letter-spacing: 1px; }
.tl h3 { margin: .2rem 0 .4rem; font-size: 1.25rem; }
.tl p { margin: 0; color: var(--muted); }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  padding: 1.3rem; position: relative; overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--blood); }
.card__num {
  position: absolute; top: .4rem; right: .8rem; font-size: 3rem; font-weight: bold;
  color: rgba(209,58,44,.16); font-family: 'Courier New', monospace;
}
.card h3 { margin: 0 0 .5rem; color: var(--tear); font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: .95rem; }

.eggs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.egg { perspective: 900px; min-height: 190px; cursor: pointer; outline: none; }
.egg__inner {
  position: relative; width: 100%; height: 100%; min-height: 190px;
  transition: transform .6s; transform-style: preserve-3d;
}
.egg:hover .egg__inner, .egg:focus .egg__inner, .egg.is-open .egg__inner { transform: rotateY(180deg); }
.egg__front, .egg__back {
  position: absolute; inset: 0; backface-visibility: hidden;
  border-radius: 12px; padding: 1.2rem; display: flex; flex-direction: column; justify-content: center;
  border: 1px solid var(--line); background: var(--card);
}
.egg__back { transform: rotateY(180deg); background: #2b1f1c; border-color: var(--blood); }
.egg__tag { color: var(--gold); font-size: .7rem; letter-spacing: 2px; margin-bottom: .5rem; }
.egg__front h3 { margin: 0; font-size: 1.12rem; color: var(--text); }
.egg__back p { margin: 0; color: var(--muted); font-size: .92rem; }

.gacha, .guppy {
  margin-top: 2.5rem; background: var(--card); border: 1px dashed var(--line);
  border-radius: 12px; padding: 1.5rem;
}
.gacha h3, .guppy h3 { margin-top: 0; color: var(--blood2); }
.gacha__out {
  min-height: 1.6rem; margin-top: 1rem; color: var(--tear);
  font-family: 'Courier New', monospace;
}
.guppy__items { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.guppy__items button {
  font-family: inherit; font-size: .9rem; padding: .5rem .9rem; cursor: pointer;
  background: #30241f; color: var(--text); border: 1px solid var(--line); border-radius: 8px;
}
.guppy__items button:hover { border-color: var(--gold); }
.guppy__items button.picked { background: var(--blood); border-color: var(--blood2); color: #fff; }
.guppy__status { color: var(--gold); font-family: 'Courier New', monospace; }
.guppy__status.done { color: #8dff9a; }

.quiz { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 1.5rem; }
.quiz__head {
  display: flex; justify-content: space-between; color: var(--gold);
  font-family: 'Courier New', monospace; font-size: .85rem;
}
.quiz__q { font-size: 1.25rem; margin: .9rem 0 1rem; }
.quiz__answers { display: grid; gap: .6rem; }
.quiz__answers button {
  font-family: inherit; font-size: 1rem; text-align: left; cursor: pointer;
  padding: .7rem .9rem; background: #30241f; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px;
}
.quiz__answers button:hover:not(:disabled) { border-color: var(--tear); }
.quiz__answers button.right { background: #1f4a26; border-color: #46d16a; }
.quiz__answers button.wrong { background: #4a1f1f; border-color: var(--blood2); }
.quiz__feedback { min-height: 1.4rem; color: var(--muted); margin-bottom: 0; }
.quiz__feedback.win { color: #8dff9a; }

.sources { color: var(--muted); padding-left: 1.2rem; }
.sources li { margin-bottom: .4rem; }

.footer {
  border-top: 1px solid var(--line); text-align: center; color: var(--muted);
  padding: 2rem 1rem; font-size: .9rem; position: relative; z-index: 1;
}
.footer p { margin: .3rem 0; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 600px) {
  .stats b { font-size: 1.7rem; }
  .nav a { font-size: .8rem; padding: .3rem .45rem; }
}
