@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Libre+Baskerville:wght@400;700&display=swap");

@font-face {
  font-family: "Ringbearer";
  src: url("assets/ringbearer.TTF") format("truetype");
}

:root {
  --wood-dark: #26170f;
  --wood-mid: #533424;
  --wood-light: #7c5238;
  --parchment: #e8d6a8;
  --parchment-deep: #cfbb88;
  --ink: #362416;
  --ink-soft: #634930;
  --gold-soft: rgba(229, 202, 138, 0.7);
}

body.splash-body {
  margin: 0;
  min-height: 100vh;
  color: #f5ecd4;
  background:
    radial-gradient(circle at top, rgba(246, 215, 151, 0.12), transparent 28%),
    linear-gradient(rgba(20, 13, 9, 0.22), rgba(20, 13, 9, 0.42)),
    linear-gradient(115deg, rgba(255, 255, 255, 0.04), transparent 18%, rgba(0, 0, 0, 0.1) 42%, transparent 72%),
    linear-gradient(90deg, var(--wood-dark), var(--wood-mid) 32%, var(--wood-light) 52%, var(--wood-mid) 72%, var(--wood-dark));
  font-family: "Libre Baskerville", Georgia, serif;
}

.splash-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
}

.splash-panel {
  width: 100%;
  max-width: 1200px;
  box-sizing: border-box;
  padding: 16px 20px 12px;
  border: 1px solid rgba(233, 214, 167, 0.16);
  border-radius: 28px;
  background:
    linear-gradient(rgba(28, 19, 13, 0.18), rgba(28, 19, 13, 0.36)),
    rgba(16, 11, 8, 0.36);
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    inset 0 0 0 1px rgba(255, 244, 217, 0.06);
  backdrop-filter: blur(2px);
}

.splash-kicker {
  margin: 0;
  color: #dfc991;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.98rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.splash-title {
  margin: 6px 0 0;
  color: #f6eed8;
  font-family: "Ringbearer", "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.1rem, 5vw, 3.9rem);
  line-height: 0.96;
  font-weight: normal;
}

.splash-copy {
  max-width: 54rem;
  margin: 6px 0 0;
  color: #e2d4b3;
  font-size: 1.3rem;
  line-height: 1.45;
}

.splash-table {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin-top: 14px;
  min-height: 620px;
  aspect-ratio: 1448 / 1131;
  padding: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 240, 207, 0.1);
  background:
    linear-gradient(rgba(11, 8, 6, 0.1), rgba(11, 8, 6, 0.24)),
    radial-gradient(circle at 16% 18%, rgba(255, 228, 171, 0.18), transparent 24%),
    url("assets/bag_end_study.png") center center / cover no-repeat;
  box-shadow:
    inset 0 18px 32px rgba(255, 245, 222, 0.05),
    inset 0 -28px 40px rgba(0, 0, 0, 0.18);
}

.splash-table::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.04), transparent 16%, rgba(0, 0, 0, 0.12) 82%, rgba(0, 0, 0, 0.18));
  mix-blend-mode: multiply;
}

.study-hotspots {
  position: absolute;
  inset: 0;
}

.study-hotspot {
  position: absolute;
  display: block;
  box-sizing: border-box;
  outline: none;
  border-radius: 18px;
  background: rgba(255, 243, 208, 0.02);
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.study-hotspot::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(244, 221, 168, 0.72);
  box-shadow:
    inset 0 0 0 1px rgba(71, 46, 18, 0.34),
    0 18px 30px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transition: opacity 180ms ease;
}

.study-hotspot:hover,
.study-hotspot:focus-visible {
  transform: translateY(-3px);
  background: rgba(255, 249, 231, 0.08);
}

.study-hotspot:hover::before,
.study-hotspot:focus-visible::before {
  opacity: 1;
}

.study-hotspot__label {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  padding: 7px 14px 6px;
  border-radius: 999px;
  background: rgba(47, 29, 18, 0.88);
  color: #f0dfb0;
  font-family: "Ringbearer", "Cormorant Garamond", Georgia, serif;
  font-size: 0.95rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-align: center;
  box-shadow:
    0 8px 22px rgba(0, 0, 0, 0.24),
    inset 0 0 0 1px rgba(255, 234, 183, 0.18);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.study-hotspot:hover .study-hotspot__label,
.study-hotspot:focus-visible .study-hotspot__label {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

.study-hotspot--middle-earth {
  top: 3.4%;
  left: 58.4%;
  width: 18.3%;
  height: 28.7%;
}

.study-hotspot--the-shire {
  top: 1.5%;
  left: 79.2%;
  width: 17.6%;
  height: 29.2%;
}

.study-hotspot--numenor {
  top: 31.9%;
  left: 58.2%;
  width: 18.4%;
  height: 29.2%;
}

.study-hotspot--beleriand {
  top: 33.4%;
  left: 79.2%;
  width: 17.5%;
  height: 28.9%;
}

.study-hotspot--family-tree {
  top: 67.3%;
  left: 16.8%;
  width: 44.8%;
  height: 28.7%;
}


.splash-blessing {
  margin: 10px 0 0;
  text-align: center;
  color: #d7c28f;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 0.88rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

@media (max-width: 1100px) {
  .splash-table {
    min-height: 540px;
  }
}

@media (max-width: 720px) {
  .splash-shell {
    padding: 16px 12px;
  }

  .splash-panel {
    padding: 20px 16px 22px;
    border-radius: 22px;
  }

  .splash-copy {
    font-size: 1.3rem;
    line-height: 1.65;
  }

  .splash-table {
    width: 100%;
    min-height: 0;
    aspect-ratio: 1448 / 1131;
    padding: 0;
  }

  .study-hotspot__label {
    font-size: 0.72rem;
    padding: 5px 10px 4px;
    bottom: 6px;
  }

  .splash-blessing {
    font-size: 0.9rem;
    line-height: 1.4;
  }
}
