:root {
  color-scheme: dark;
  --gold: #f6b80a;
  --gold-light: #ffd758;
  --blue: #087ee8;
  --blue-deep: #0353a6;
  --ink: #07121b;
  --stone: #17212a;
  --text: #fffaf0;
  --muted: #d8e0e6;
  --line: rgba(255, 215, 88, 0.36);
  --panel: rgba(7, 18, 27, 0.83);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  color: var(--text);
  background: transparent;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

.scene,
.scene-shade {
  position: fixed;
  inset: 0;
}

.scene {
  z-index: 0;
  display: block;
  background: #173850;
}

.scene img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47% center;
  filter: saturate(0.92) contrast(1.04);
  transform: scale(1.015);
}

.scene-shade {
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(4, 12, 19, 0.16) 0%, rgba(4, 12, 19, 0.34) 35%, rgba(4, 12, 19, 0.86) 100%),
    radial-gradient(circle at 50% 34%, rgba(8, 126, 232, 0.09), transparent 48%);
}

.page-shell {
  position: relative;
  z-index: 2;
  width: 100%;
  min-height: calc(100svh - 70px);
  display: grid;
  place-items: center;
  padding: max(22px, env(safe-area-inset-top)) 16px 30px;
}

.hero {
  width: min(100%, 520px);
  padding: 24px 19px 22px;
  text-align: center;
  background:
    linear-gradient(145deg, rgba(15, 31, 43, 0.91), rgba(5, 15, 23, 0.93)),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brand-mark {
  display: block;
  width: 118px;
  height: 118px;
  margin: -2px auto 15px;
  object-fit: cover;
  border: 3px solid var(--gold);
  border-radius: 22px;
  box-shadow:
    0 0 0 5px rgba(3, 83, 166, 0.55),
    0 14px 32px rgba(0, 0, 0, 0.44);
}

.eyebrow {
  margin: 0 0 3px;
  color: var(--gold-light);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 13vw, 4.4rem);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
  text-shadow:
    0 3px 0 var(--blue-deep),
    0 8px 22px rgba(0, 0, 0, 0.5);
}

.intro {
  max-width: 38ch;
  margin: 17px auto 22px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.58;
}

.primary-action,
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  text-decoration: none;
  transition: transform 150ms ease, border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.primary-action {
  width: 100%;
  gap: 11px;
  padding: 14px 20px;
  color: #fff;
  background: #e62117;
  border: 1px solid #ff6c64;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(180, 19, 12, 0.3);
  font-size: 1.05rem;
  font-weight: 800;
}

.primary-action svg {
  width: 28px;
  fill: currentColor;
}

.social-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
  margin-top: 12px;
}

.social-links a {
  flex-direction: column;
  gap: 5px;
  padding: 11px 5px 10px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 13px;
  font-size: 0.75rem;
  font-weight: 700;
}

.social-links svg {
  width: 23px;
  height: 23px;
  fill: var(--gold-light);
}

.primary-action:hover,
.social-links a:hover {
  transform: translateY(-2px);
}

.primary-action:hover {
  background: #f02a20;
  box-shadow: 0 13px 32px rgba(180, 19, 12, 0.42);
}

.social-links a:hover {
  background: rgba(8, 126, 232, 0.14);
  border-color: rgba(255, 215, 88, 0.54);
}

.primary-action:focus-visible,
.social-links a:focus-visible,
.back-link:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 4px;
}

.coming-soon {
  margin: 17px 0 0;
  color: rgba(216, 224, 230, 0.78);
  font-size: 0.83rem;
}

footer {
  position: relative;
  z-index: 2;
  min-height: 70px;
  display: grid;
  place-items: center;
  padding: 14px 20px max(16px, env(safe-area-inset-bottom));
  color: rgba(216, 224, 230, 0.7);
  background: rgba(3, 9, 14, 0.9);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.72rem;
}

footer p {
  max-width: 720px;
  margin: 0;
}

.error-page .hero {
  padding-top: 30px;
}

.error-page .brand-mark {
  width: 96px;
  height: 96px;
}

.error-page h1 {
  font-size: clamp(2.4rem, 11vw, 4rem);
}

.back-link {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  padding: 12px 20px;
  color: var(--ink);
  background: var(--gold-light);
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
}

.library-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  color: var(--gold-light);
  font-size: 0.9rem;
  font-weight: 800;
  text-underline-offset: 4px;
}

.library-link:focus-visible,
.site-header a:focus-visible,
.video-article a:focus-visible,
.library-panel a:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 4px;
  border-radius: 5px;
}

.site-header {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(100% - 28px, 1080px);
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 auto;
  padding: max(10px, env(safe-area-inset-top)) 0 8px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 700;
  text-decoration: none;
  text-shadow: 0 2px 0 var(--blue-deep);
}

.site-brand img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border: 2px solid var(--gold);
  border-radius: 10px;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 7px;
}

.site-header nav a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  color: var(--text);
  background: rgba(7, 18, 27, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 750;
  text-decoration: none;
}

.site-header nav a[aria-current="page"] {
  color: var(--gold-light);
  border-color: var(--line);
}

.content-shell {
  position: relative;
  z-index: 2;
  width: min(100% - 28px, 960px);
  min-height: calc(100svh - 142px);
  margin: 0 auto;
  padding: 18px 0 42px;
}

.video-article,
.library-panel {
  padding: 22px 17px 28px;
  background: linear-gradient(145deg, rgba(15, 31, 43, 0.95), rgba(5, 15, 23, 0.97));
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.82rem;
}

.breadcrumbs a {
  color: var(--gold-light);
  text-underline-offset: 3px;
}

.content-kicker,
.video-card-game {
  margin: 0 0 6px;
  color: var(--gold-light);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.content-page h1 {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(2.15rem, 9vw, 3.45rem);
  line-height: 1.06;
}

.content-lead {
  max-width: 66ch;
  margin: 16px 0 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
}

.video-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  color: rgba(216, 224, 230, 0.76);
  font-size: 0.82rem;
}

.video-embed {
  width: 100%;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 215, 88, 0.32);
  border-radius: 15px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38);
  aspect-ratio: 16 / 9;
}

.video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.companion-video-section {
  display: grid;
  gap: 14px;
  justify-items: center;
  text-align: center;
}

.companion-video-copy h2 {
  margin-bottom: 8px;
}


.short-embed {
  width: min(100%, 300px);
  margin-inline: auto;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(255, 215, 88, 0.32);
  border-radius: 18px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.38);
  aspect-ratio: 9 / 16;
}

.short-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}


.content-section {
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.content-section h2,
.empty-library h2 {
  margin: 0 0 12px;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.4rem, 6vw, 2rem);
  line-height: 1.15;
}

.content-section p,
.content-section li,
.empty-library p {
  color: var(--muted);
  line-height: 1.65;
}

.content-section p:last-child {
  margin-bottom: 0;
}

.faq-section details {
  margin-top: 10px;
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 12px;
}

.faq-section summary {
  padding: 14px 0;
  color: var(--text);
  cursor: pointer;
  font-weight: 800;
}

.faq-section details p {
  margin: 0;
  padding: 0 0 14px;
}

.content-section ul:not(.resource-list) {
  padding-left: 1.25rem;
}

.resource-list,
.topic-section ul {
  margin: 0;
  padding: 0;
  list-style: none;
}


.resource-list {
  display: grid;
  gap: 10px;
}

.resource-list a {
  display: flex;
  min-height: 58px;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 12px 14px;
  color: var(--text);
  background: rgba(8, 126, 232, 0.1);
  border: 1px solid rgba(255, 215, 88, 0.3);
  border-radius: 12px;
  text-decoration: none;
}

.resource-list a span {
  color: var(--muted);
  font-size: 0.86rem;
}

.topic-section {
  margin-top: 26px;
}

.topic-section ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.topic-section li {
  padding: 6px 9px;
  color: var(--gold-light);
  background: rgba(255, 215, 88, 0.08);
  border: 1px solid rgba(255, 215, 88, 0.22);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 750;
}

.video-grid {
  display: grid;
  gap: 16px;
  margin-top: 26px;
}

.video-card {
  overflow: hidden;
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.video-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 88, 0.35);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.24);
}

.video-card-image {
  display: block;
  background: #02070a;
  aspect-ratio: 16 / 9;
}

.video-card-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.video-card-copy {
  padding: 16px;
}

.video-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1.2;
}

.video-card h2 a {
  color: var(--text);
  text-decoration: none;
}

.video-card-copy > p:not(.video-card-game) {
  margin: 10px 0 13px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.video-card time {
  color: rgba(216, 224, 230, 0.7);
  font-size: 0.78rem;
}

.empty-library {
  padding: 24px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 215, 88, 0.3);
  border-radius: 14px;
}

@media (min-width: 700px) {
  .scene img {
    object-position: center;
  }

  .scene-shade {
    background:
      linear-gradient(90deg, rgba(4, 12, 19, 0.42), rgba(4, 12, 19, 0.08) 46%, rgba(4, 12, 19, 0.5)),
      linear-gradient(180deg, rgba(4, 12, 19, 0.05), rgba(4, 12, 19, 0.72));
  }

  .page-shell {
    padding: 48px 24px;
  }

  .hero {
    padding: 30px 34px 27px;
    border-radius: 28px;
  }

  .brand-mark {
    width: 132px;
    height: 132px;
  }

  .intro {
    font-size: 1.06rem;
  }

  .site-header {
    width: min(100% - 48px, 1080px);
    min-height: 84px;
  }

  .site-brand img {
    width: 48px;
    height: 48px;
  }

  .site-header nav a {
    padding-inline: 14px;
  }

  .content-shell {
    width: min(100% - 48px, 960px);
    padding: 28px 0 58px;
  }

  .video-article,
  .library-panel {
    padding: 34px 38px 42px;
    border-radius: 26px;
  }

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

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .primary-action,
  .social-links a,
  .video-card {
    transition: none;
  }
}
