:root {
  --bg: #07111f;
  --panel: rgba(7, 25, 47, 0.82);
  --panel-strong: rgba(10, 35, 66, 0.95);
  --line: rgba(132, 191, 255, 0.24);
  --text: #eef5ff;
  --muted: #b4c4da;
  --accent: #1f9cff;
  --accent-soft: #72c2ff;
  --gold: #ffcc4d;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(31, 156, 255, 0.24), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 204, 77, 0.18), transparent 22%),
    linear-gradient(180deg, #030a13 0%, #07111f 40%, #081728 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.6), transparent);
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.hero,
.section,
.game-detail,
.song-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px 28px 32px;
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(11, 33, 58, 0.96), rgba(7, 21, 39, 0.92)),
    linear-gradient(135deg, rgba(31, 156, 255, 0.14), transparent);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 26px;
  align-items: start;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto auto 30px -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 204, 77, 0.2), transparent 70%);
  animation: pulse-glow 6s ease-in-out infinite;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 156, 255, 0.5), transparent 70%);
  filter: blur(12px);
}

.topbar {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.brand {
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--accent-soft);
}

.toplink {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 100%;
  padding-right: 0;
  align-self: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.76rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1.02;
  margin-bottom: 20px;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  margin-bottom: 10px;
}

h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.lead,
.intro-grid p,
.game-summary,
.song-card p,
.notes-grid p,
.game-meta li,
.song-meta li,
.timeline-item p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}

.button.primary {
  color: #02111f;
  background: linear-gradient(135deg, var(--gold), #ffe08b);
}

.button.secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
}

.hero-panel {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 10px;
  grid-column: 1 / -1;
}

.hero-visual {
  position: relative;
  width: 100%;
  min-height: 520px;
  z-index: 0;
  pointer-events: none;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: drop-shadow(0 28px 70px rgba(0, 0, 0, 0.38));
  animation: float-poster 7s ease-in-out infinite;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.orbit {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
}

.orbit-one {
  top: 10%;
  left: -8%;
  animation: orbit-float 6s ease-in-out infinite;
}

.orbit-two {
  top: 48%;
  right: -5%;
  animation: orbit-float 5.5s ease-in-out infinite 0.5s;
}

.orbit-three {
  bottom: 8%;
  left: 4%;
  animation: orbit-float 6.5s ease-in-out infinite 1s;
}

.hero-panel article,
.timeline-item,
.game-button,
.game-detail,
.song-card,
.notes-grid article,
.section {
  backdrop-filter: blur(10px);
}

.hero-panel article,
.timeline-item,
.song-card,
.notes-grid article {
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.metric {
  display: block;
  margin-bottom: 10px;
  color: var(--accent-soft);
  font-size: 2rem;
  font-weight: 700;
}

.section {
  margin-top: 26px;
  padding: 28px;
  border-radius: 24px;
  background: var(--panel);
}

.section-heading {
  margin-bottom: 22px;
}

.intro-grid,
.notes-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.timeline-track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

.gallery-card {
  margin: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  transition: transform 0.22s ease, border-color 0.22s ease;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 204, 77, 0.42);
}

.gallery-card img {
  display: block;
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(180deg, rgba(6, 16, 31, 0.8), rgba(9, 28, 49, 0.95));
}

.gallery-card-large img {
  object-fit: cover;
}

.gallery-card figcaption {
  padding: 14px 16px 18px;
  color: var(--muted);
  line-height: 1.6;
}

.timeline-item .year {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--gold);
  font-weight: 700;
}

.timeline-item {
  position: relative;
  overflow: hidden;
}

.timeline-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 20%, rgba(255, 255, 255, 0.08), transparent 80%);
  transform: translateX(-130%);
  animation: card-sheen 9s linear infinite;
}

.game-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.game-button {
  width: 100%;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.game-button:hover,
.game-button.is-active {
  transform: translateY(-3px);
  border-color: rgba(114, 194, 255, 0.7);
  background: rgba(31, 156, 255, 0.12);
}

.game-button strong,
.game-button span {
  display: block;
}

.game-button span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

.game-detail {
  padding: 24px;
  border-radius: 22px;
  background: var(--panel-strong);
}

.game-kicker {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 204, 77, 0.12);
  color: var(--gold);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.game-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
}

.game-art {
  display: block;
  width: 100%;
  max-width: 260px;
  aspect-ratio: 4 / 3;
  margin-bottom: 18px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.2);
  object-fit: cover;
  object-position: center;
}

.game-meta,
.song-meta {
  list-style: none;
  padding: 0;
  margin: 0;
}

.game-meta li,
.song-meta li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.game-meta strong,
.song-meta strong {
  color: var(--text);
}

.game-songs h3 {
  margin-bottom: 14px;
}

.mini-song-list {
  display: grid;
  gap: 12px;
}

.mini-song {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.mini-song:hover {
  transform: translateX(4px);
  border-color: rgba(255, 204, 77, 0.38);
}

.mini-song strong {
  display: block;
  margin-bottom: 6px;
}

.songs-banner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(31, 156, 255, 0.08));
}

.songs-banner img {
  width: 100%;
  max-width: 260px;
  filter: drop-shadow(0 14px 36px rgba(0, 0, 0, 0.22));
  animation: float-poster 6.2s ease-in-out infinite;
}

.songs-banner p {
  color: var(--muted);
  line-height: 1.7;
}

.song-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.song-card {
  padding: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(13, 36, 62, 0.95), rgba(8, 22, 38, 0.95));
  position: relative;
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.song-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 204, 77, 0.42);
}

.song-card::before {
  content: "";
  position: absolute;
  top: -24px;
  right: -24px;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 10px solid rgba(255, 204, 77, 0.15);
}

.song-card .tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(31, 156, 255, 0.16);
  color: var(--accent-soft);
  font-size: 0.8rem;
}

.song-card h3 {
  margin-bottom: 8px;
}

.song-meta {
  margin-top: 16px;
}

.platform-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.platform-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.platform-link:hover {
  transform: translateY(-2px);
  background: rgba(31, 156, 255, 0.14);
  border-color: rgba(114, 194, 255, 0.6);
}

@keyframes float-poster {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes orbit-float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.75;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes card-sheen {
  0% {
    transform: translateX(-130%);
  }
  100% {
    transform: translateX(130%);
  }
}

@media (max-width: 900px) {
  .hero-panel,
  .intro-grid,
  .notes-grid,
  .game-layout,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-visual {
    min-height: 420px;
    width: min(100%, 520px);
    margin: 12px auto 0;
  }

  .songs-banner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  .hero,
  .section {
    padding: 20px;
    border-radius: 20px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 34px;
  }

  .hero-visual {
    width: 100%;
    min-height: 320px;
  }

  .orbit {
    font-size: 0.74rem;
    min-width: 72px;
    padding: 8px 12px;
  }

  .songs-banner {
    padding: 16px;
  }

  .gallery-card img {
    height: 220px;
  }
}
