html {
  min-height: 100%;
  background: #080c20;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  background: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at top center, rgba(90, 72, 160, 0.24), transparent 32%),
    linear-gradient(180deg, #0a0d23 0%, #090d22 44%, #080b1d 100%);
}

.lore-shell {
  position: relative;
  z-index: 2;
  width: min(1260px, calc(100% - 40px));
  margin: 110px auto 88px;
}

.lore-brand {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  pointer-events: auto;
}

.lore-brand img {
  width: min(170px, 48vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.28));
}

.lore-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.lore-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 16px;
  border-radius: 14px;
  text-decoration: none;
  color: white;
  background: rgba(20, 20, 40, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  transition:
    transform 0.22s ease,
    background 0.22s ease,
    border-color 0.22s ease;
}

.lore-button:hover {
  transform: translateY(-2px);
  background: rgba(30, 25, 60, 0.88);
  border-color: rgba(180, 140, 255, 0.22);
}

.lore-hero,
.lore-card,
.lore-note-panel,
.lore-list-panel {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(180, 140, 255, 0.16), transparent 34%),
    rgba(10, 14, 30, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lore-hero {
  margin-bottom: 24px;
}

.lore-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #ab99db;
}

.lore-title {
  margin: 0 0 14px;
  font-size: clamp(40px, 6vw, 66px);
  line-height: 0.96;
  color: white;
}

.lore-subtitle {
  max-width: 860px;
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.84);
}

.lore-hero-grid,
.lore-grid,
.lore-grid-2,
.lore-link-grid {
  display: grid;
  gap: 28px;
}

.lore-hero-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  margin-top: 24px;
}

.lore-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lore-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lore-link-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.lore-card {
  min-height: 210px;
}

.lore-card h2,
.lore-card h3,
.lore-list-panel h2,
.lore-note-panel h2 {
  color: white;
}

.lore-card h2,
.lore-list-panel h2,
.lore-note-panel h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.lore-card h3 {
  margin: 0 0 12px;
  font-size: 24px;
  line-height: 1.08;
}

.lore-card p,
.lore-card li,
.lore-list-panel p,
.lore-list-panel li,
.lore-note-panel p {
  font-size: 14px;
  line-height: 1.76;
  color: rgba(255, 255, 255, 0.82);
}

.lore-card ul,
.lore-list-panel ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.lore-card li,
.lore-list-panel li {
  margin-bottom: 6px;
}

.lore-card-kicker {
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #d7c4ff;
}

.lore-card-highlight {
  border-color: rgba(242, 213, 138, 0.2);
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(242, 213, 138, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.lore-card-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  align-items: center;
  gap: 18px;
}

.lore-card-art {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.lore-card-art img {
  width: min(180px, 100%);
  height: auto;
  display: block;
  filter: drop-shadow(0 16px 30px rgba(0, 0, 0, 0.34));
}

.lore-section {
  margin-bottom: 34px;
}

.lore-section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.lore-section-header h2 {
  margin: 0;
  font-size: 28px;
  color: white;
}

.lore-section-header p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.72;
}

.lore-link-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  min-height: 210px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.22s ease;
}

.lore-link-card:hover {
  transform: translateY(-4px);
}

.lore-link-arrow {
  margin-left: auto;
  font-size: 26px;
  color: rgba(255, 255, 255, 0.46);
  transition: transform 0.22s ease, color 0.22s ease;
}

.lore-link-arrow::before {
  content: "→";
}

.lore-link-card:hover .lore-link-arrow {
  transform: translateX(4px);
  color: rgba(242, 213, 138, 0.92);
}

.lore-note-panel {
  margin-bottom: 24px;
}

.lore-note-panel p {
  margin: 0 0 14px;
  font-size: 15px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

.lore-note-panel p:last-child {
  margin-bottom: 0;
}

.lore-list-panel {
  margin-top: 24px;
}

.lore-list-panel ul {
  list-style: none;
  padding-left: 0;
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.lore-list-panel li {
  position: relative;
  padding-left: 18px;
}

.lore-list-panel li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f2d58a 0%, #b67cff 100%);
  box-shadow: 0 0 12px rgba(180, 140, 255, 0.28);
}

.lore-footer-note {
  margin-top: 26px;
  text-align: center;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  line-height: 1.72;
}

.global-footer {
  position: fixed;
  right: -2px;
  bottom: -90px;
  z-index: 999;
  pointer-events: auto;
}

.global-footer img {
  width: 300px;
  height: auto;
  opacity: 0.5;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.global-footer:hover img {
  opacity: 1;
  transform: scale(1.18);
}

@media (max-width: 1100px) {
  .lore-hero-grid,
  .lore-grid,
  .lore-grid-2,
  .lore-link-grid {
    grid-template-columns: 1fr;
  }

  .lore-card-wide {
    grid-template-columns: 1fr;
  }

  .lore-card-art {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .lore-shell {
    width: calc(100% - 24px);
    margin-top: 88px;
    margin-bottom: 56px;
  }

  .lore-brand img {
    width: min(85px, 21vw);
  }

  .global-footer img {
    width: 200px;
    opacity: 1;
    pointer-events: none;
  }

  .global-footer {
    position: absolute;
    top: -48px;
    right: 90px;
    bottom: auto;
    left: auto;
    width: 140px;
    height: auto;
    z-index: 2;
    pointer-events: none;
  }

  .global-footer:hover img {
    opacity: 1;
    transform: none;
  }

  .lore-hero,
  .lore-card,
  .lore-note-panel,
  .lore-list-panel {
    padding: 20px 18px;
    border-radius: 22px;
  }

  .lore-title {
    line-height: 1.02;
  }

  .lore-card-art img {
    width: min(170px, 72vw);
  }
}
