:root {
  --navy-deep: #030a14;
  --navy: #071427;
  --navy-panel: #0a1a30;
  --line: #1d3a59;
  --ivory: #f6e8bf;
  --ivory-bright: #fff2cc;
  --parchment: #ead7aa;
  --gold: #d99c43;
  --gold-deep: #a96127;
  --teal: #5dc6c0;
  --body: #c3cfdd;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--navy-deep);
  color: var(--body);
  font-family: 'Josefin Sans', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h2, h3 {
  font-family: 'Cardo', Georgia, serif;
  color: var(--ivory-bright);
  line-height: 1.15;
  font-weight: 700;
}

h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: 0.02em; }

.inner { max-width: 68rem; margin: 0 auto; padding: 0 1.5rem; }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
}

.hero-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  animation: heroDrift 28s ease-in-out infinite alternate;
}

@keyframes heroDrift {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-art { animation: none; }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(115% 90% at 50% 30%, transparent 55%, rgba(3, 10, 20, 0.55) 100%),
    linear-gradient(to bottom, rgba(3, 10, 20, 0.25), transparent 22%, transparent 52%, rgba(3, 10, 20, 0.72) 84%, var(--navy-deep) 100%);
}

.hero-text {
  position: relative;
  text-align: center;
  max-width: 46rem;
  padding: 0 1.5rem 5.5rem;
  text-shadow: 0 2px 16px rgba(0, 3, 10, 0.95);
}

.tagline {
  font-family: 'Cardo', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.3rem, 2.8vw, 1.85rem);
  color: var(--ivory-bright);
  margin-bottom: 1.7rem;
}

.cta-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  padding: 0.95rem 2.2rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  color: #2a1a05;
  background: linear-gradient(160deg, var(--ivory-bright) 0%, #f0cf8a 35%, var(--gold) 70%, #e7b967 100%);
  border: 1px solid rgba(105, 66, 31, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 228, 0.8),
    0 6px 22px rgba(217, 156, 67, 0.32);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 228, 0.8),
    0 10px 28px rgba(217, 156, 67, 0.45);
}

.btn-ghost {
  color: var(--ivory);
  background: rgba(7, 20, 39, 0.55);
  border: 1px solid rgba(234, 215, 170, 0.5);
  box-shadow: none;
}

.btn-ghost:hover { box-shadow: 0 8px 22px rgba(0, 3, 10, 0.5); border-color: var(--parchment); }

.note {
  margin-top: 1.15rem;
  font-size: 0.76rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--parchment);
}

.scroll-cue {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  width: 26px;
  height: 26px;
  transform: translateX(-50%) rotate(45deg);
  border-right: 2px solid rgba(234, 215, 170, 0.75);
  border-bottom: 2px solid rgba(234, 215, 170, 0.75);
  animation: cueSink 2.2s ease-in-out infinite;
}

@keyframes cueSink {
  0%, 100% { transform: translateX(-50%) translateY(0) rotate(45deg); opacity: 0.75; }
  50%      { transform: translateX(-50%) translateY(7px) rotate(45deg); opacity: 1; }
}

/* ---------- Game section ---------- */
.game {
  padding: 5.5rem 0 6rem;
  background:
    radial-gradient(90% 60% at 50% 0%, rgba(19, 41, 67, 0.55), transparent 70%),
    var(--navy-deep);
  text-align: center;
}

.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-bottom: 2.2rem;
}

.ornament img { border-radius: 50%; box-shadow: 0 0 26px rgba(93, 198, 192, 0.25); }

.ornament span {
  height: 1px;
  width: min(150px, 22vw);
  background: linear-gradient(to right, transparent, rgba(217, 156, 67, 0.65));
}

.ornament span:last-child {
  background: linear-gradient(to left, transparent, rgba(217, 156, 67, 0.65));
}

.lede {
  max-width: 42rem;
  margin: 0 auto 3.4rem;
  font-size: 1.14rem;
  color: var(--ivory);
  font-weight: 300;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.7rem;
  max-width: 68rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: left;
}

.tile {
  background: linear-gradient(to bottom, var(--navy-panel), rgba(10, 26, 48, 0.4));
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.tile:hover {
  transform: translateY(-5px);
  border-color: rgba(217, 156, 67, 0.55);
  box-shadow: 0 18px 40px rgba(0, 3, 10, 0.55);
}

.tile:nth-child(2) { transition-delay: 0.08s; }
.tile:nth-child(3) { transition-delay: 0.16s; }
.tile.in { transition-delay: 0s; }

.tile-art { aspect-ratio: 16 / 10; overflow: hidden; }

.tile-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.tile:hover .tile-art img { transform: scale(1.05); }

.tile h3 { font-size: 1.35rem; margin: 1.2rem 1.4rem 0.4rem; }

.tile p { margin: 0 1.4rem 1.5rem; font-size: 0.97rem; }

/* ---------- Battle band ---------- */
.battle {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.battle-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.battle-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, var(--navy-deep) 0%, transparent 22%, transparent 55%, rgba(3, 10, 20, 0.8) 88%, var(--navy-deep) 100%);
}

.battle-text {
  position: relative;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 3, 10, 0.95);
}

.battle-text h2 { margin-bottom: 0.8rem; }

.battle-text p { color: #dde5ee; font-size: 1.05rem; }

/* ---------- World ---------- */
.world { padding: 6rem 0; }

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.world-map { filter: drop-shadow(0 18px 34px rgba(0, 3, 10, 0.7)); }

.world h2 { margin-bottom: 0.9rem; }

.world p { font-size: 1.05rem; }

@media (max-width: 780px) {
  .two-col { grid-template-columns: 1fr; gap: 2.2rem; }
  .two-col img { order: 2; }
}

/* ---------- Outro ---------- */
.outro {
  padding: 5.5rem 0 6rem;
  text-align: center;
  background:
    radial-gradient(80% 90% at 50% 100%, rgba(19, 41, 67, 0.6), transparent 70%),
    var(--navy-deep);
}

.outro .inner { display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }

.outro img { border-radius: 12px; box-shadow: 0 0 34px rgba(93, 198, 192, 0.22); }

.outro h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

/* ---------- Footer ---------- */
.site-footer {
  padding: 1.8rem 1.5rem 2.2rem;
  text-align: center;
  border-top: 1px solid rgba(29, 58, 89, 0.6);
  font-size: 0.84rem;
  color: #7e91a6;
}

.site-footer a { color: var(--teal); text-decoration: none; }
