:root {
  --ag-bg: #050a13;
  --ag-bg-deep: #030710;
  --ag-panel: #0b1422;
  --ag-panel-strong: #101d30;
  --ag-panel-soft: rgba(15, 28, 47, .72);
  --ag-line: rgba(158, 190, 224, .16);
  --ag-line-bright: rgba(83, 215, 255, .38);
  --ag-text: #f4f7fb;
  --ag-muted: #aab8ca;
  --ag-cyan: #55d8ff;
  --ag-cyan-deep: #0a8fbe;
  --ag-violet: #9a7cff;
  --ag-coral: #ff7381;
  --ag-gold: #f6c96b;
  --ag-shadow: 0 28px 80px rgba(0, 3, 10, .42);
}

html {
  overflow-x: clip;
  background: #050a13;
}

body[data-theme="adrasteagames"] {
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --font-heading: "Space Grotesk", "Segoe UI", sans-serif;
  --color-bg: var(--ag-bg);
  --color-surface: var(--ag-panel);
  --color-surface-alt: var(--ag-panel-strong);
  --color-text: var(--ag-text);
  --color-muted: var(--ag-muted);
  --color-accent: var(--ag-cyan);
  --color-accent-contrast: #03111b;
  --nav-submenu-bg: rgba(5, 12, 23, .98);
  --nav-submenu-color: var(--ag-text);
  --nav-overlay-bg: rgba(1, 5, 12, .82);
  --radius-panel: 1.5rem;
  --radius-card: 1.25rem;
  --radius-media: 1.2rem;
  --radius-button: .85rem;
  background:
    radial-gradient(circle at 12% 8%, rgba(35, 119, 168, .12), transparent 32rem),
    radial-gradient(circle at 88% 22%, rgba(117, 72, 193, .1), transparent 32rem),
    linear-gradient(180deg, var(--ag-bg-deep), var(--ag-bg) 36rem);
  color: var(--ag-text);
  overflow-x: clip;
  letter-spacing: -.005em;
}

body[data-theme="adrasteagames"] ::selection {
  color: #021018;
  background: var(--ag-cyan);
}

body[data-theme="adrasteagames"] :where(h1, h2, h3, h4) {
  color: var(--ag-text);
  font-family: var(--font-heading);
  letter-spacing: -.035em;
  text-wrap: balance;
}

body[data-theme="adrasteagames"] :where(p, li, dd) {
  text-wrap: pretty;
}

body[data-theme="adrasteagames"] :where(a, button) {
  -webkit-tap-highlight-color: transparent;
}

body[data-theme="adrasteagames"] :where(a, button):focus-visible {
  outline: 3px solid var(--ag-gold);
  outline-offset: 4px;
}

body[data-theme="adrasteagames"] .skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 9999;
  padding: .8rem 1rem;
  border-radius: .7rem;
  color: #06111c;
  background: var(--ag-gold);
  font-weight: 800;
  transform: translateY(-180%);
}

body[data-theme="adrasteagames"] .skip-link:focus {
  transform: translateY(0);
}

/* Header and navigation */
body[data-theme="adrasteagames"] .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  color: var(--ag-text);
  background: rgba(4, 10, 19, .84);
  border-bottom: 1px solid rgba(147, 180, 215, .13);
  box-shadow: 0 14px 46px rgba(0, 3, 10, .32);
  backdrop-filter: blur(20px) saturate(135%);
}

body[data-theme="adrasteagames"] .site-header__inner {
  width: min(100%, 1380px);
  min-height: 78px;
  padding: .8rem clamp(1rem, 3vw, 2rem);
  gap: clamp(1rem, 2.3vw, 2rem);
}

body[data-theme="adrasteagames"] .logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: .72rem;
  color: var(--ag-text);
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.45vw, 1.25rem);
  font-weight: 700;
  letter-spacing: -.025em;
  text-decoration: none;
}

body[data-theme="adrasteagames"] .logo::before {
  content: "";
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  background: url("/site-assets/image/adrastea-games-mark.png") center / contain no-repeat;
  filter: drop-shadow(0 0 16px rgba(85, 216, 255, .2));
}

body[data-theme="adrasteagames"] .site-nav {
  gap: clamp(.75rem, 1.6vw, 1.25rem);
}

body[data-theme="adrasteagames"] .site-nav__list {
  gap: clamp(.15rem, .6vw, .65rem);
}

body[data-theme="adrasteagames"] .nav-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: #d6e0ec;
  padding: .65rem .68rem;
  border-radius: .7rem;
  font-size: .88rem;
  font-weight: 650;
  letter-spacing: .01em;
  text-decoration: none;
}

body[data-theme="adrasteagames"] .nav-link:hover,
body[data-theme="adrasteagames"] .nav-link.is-active {
  color: #fff;
  background: rgba(85, 216, 255, .08);
}

body[data-theme="adrasteagames"] .site-nav a.nav-link::after {
  height: 2px;
  bottom: .22rem;
  background: linear-gradient(90deg, var(--ag-cyan), var(--ag-violet));
}

body[data-theme="adrasteagames"] .site-nav__submenu {
  min-width: 245px;
  padding: .55rem;
  border: 1px solid var(--ag-line);
  border-radius: 1rem;
  background: rgba(5, 12, 23, .98);
  box-shadow: 0 24px 55px rgba(0, 0, 0, .5);
}

body[data-theme="adrasteagames"] .site-nav__submenu .nav-link {
  width: 100%;
  min-height: 42px;
  padding: .6rem .75rem;
  font-size: .86rem;
}

body[data-theme="adrasteagames"] .language-switch {
  gap: .32rem;
}

body[data-theme="adrasteagames"] .language-switch a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .48rem .62rem;
  border: 1px solid transparent;
  color: var(--ag-muted);
  border-radius: .75rem;
  font-size: .78rem;
  font-weight: 700;
}

body[data-theme="adrasteagames"] .language-switch a img {
  width: 24px;
  height: 18px;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .18);
}

body[data-theme="adrasteagames"] .language-switch a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .05);
}

body[data-theme="adrasteagames"] .language-switch a.is-active {
  color: #fff;
  border-color: rgba(85, 216, 255, .28);
  background: rgba(85, 216, 255, .1);
}

body[data-theme="adrasteagames"] .menu-toggle,
body[data-theme="adrasteagames"] .site-nav__close {
  color: #06111c;
  border: 1px solid rgba(255, 255, 255, .5);
  background: linear-gradient(135deg, var(--ag-cyan), #91e9ff);
  box-shadow: 0 10px 26px rgba(30, 158, 206, .28);
}

/* Framework shell */
body[data-theme="adrasteagames"] .content-area {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body[data-theme="adrasteagames"] .content-grid,
body[data-theme="adrasteagames"] .content-grid--full {
  display: block;
}

body[data-theme="adrasteagames"] .content-block,
body[data-theme="adrasteagames"] .content-block--hero {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body[data-theme="adrasteagames"] .content-body {
  min-width: 0;
}

body[data-theme="adrasteagames"] [id] {
  scroll-margin-top: 96px;
}

/* Shared typography and controls */
.ag-kicker {
  margin: 0 0 .85rem;
  color: var(--ag-cyan);
  font-size: .74rem;
  font-weight: 800;
  letter-spacing: .18em;
  line-height: 1.4;
  text-transform: uppercase;
}

.ag-actions,
.ag-inline-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}

.ag-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .78rem 1.12rem;
  border: 1px solid transparent;
  border-radius: .85rem;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.ag-btn:hover {
  color: inherit;
  transform: translateY(-2px);
}

.ag-btn--primary {
  color: #04131e;
  background: linear-gradient(135deg, var(--ag-cyan), #8ce8ff 65%, #c6f5ff);
  box-shadow: 0 15px 34px rgba(38, 174, 220, .24);
}

.ag-btn--primary:hover {
  color: #021018;
  box-shadow: 0 20px 42px rgba(38, 174, 220, .34);
}

.ag-btn--secondary,
.ag-btn--glass {
  color: var(--ag-text);
  border-color: rgba(178, 207, 235, .24);
  background: rgba(12, 23, 39, .72);
  box-shadow: inset 0 1px rgba(255, 255, 255, .05);
  backdrop-filter: blur(12px);
}

.ag-btn--secondary:hover,
.ag-btn--glass:hover {
  color: #fff;
  border-color: rgba(85, 216, 255, .58);
  background: rgba(25, 47, 72, .8);
}

.ag-text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  color: var(--ag-cyan);
  font-weight: 800;
  text-decoration: none;
}

.ag-text-link:hover {
  color: #a6edff;
}

.ag-section {
  width: min(100% - 2rem, 1240px);
  margin: 0 auto;
  padding: clamp(3.4rem, 7vw, 6.5rem) 0;
}

.ag-section + .ag-section {
  border-top: 1px solid var(--ag-line);
}

.ag-section__head {
  width: min(100%, 800px);
  margin-bottom: clamp(1.6rem, 3vw, 2.5rem);
}

.ag-section__head--split {
  width: 100%;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
}

.ag-section__head--split > div {
  max-width: 800px;
}

.ag-section h2,
.ag-page-hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4.4vw, 4.2rem);
  line-height: .99;
}

.ag-section__head > p:last-child,
.ag-page-hero > p:last-child,
.ag-page-hero > p:not(.ag-kicker),
.ag-game-hero__lead {
  color: var(--ag-muted);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.72;
}

.ag-section__head h2 + p,
.ag-page-hero h1 + p {
  margin-top: 1.25rem;
}

/* Page heroes */
.ag-page-hero {
  position: relative;
  min-height: 440px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(5rem, 10vw, 9rem) max(1rem, calc((100vw - 1240px) / 2));
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 42%, rgba(121, 83, 221, .24), transparent 22rem),
    radial-gradient(circle at 92% 12%, rgba(85, 216, 255, .2), transparent 22rem),
    linear-gradient(145deg, #07111e 0%, #0a1525 58%, #10152d 100%);
  border-bottom: 1px solid var(--ag-line);
}

.ag-page-hero::before,
.ag-page-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.ag-page-hero::before {
  inset: 0;
  opacity: .25;
  background-image:
    linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, transparent, #000 55%, #000);
}

.ag-page-hero::after {
  width: 280px;
  height: 280px;
  right: max(2rem, calc((100vw - 1240px) / 2));
  top: 50%;
  border: 1px solid rgba(85, 216, 255, .24);
  border-radius: 50%;
  transform: translateY(-50%);
  box-shadow: 0 0 0 36px rgba(85, 216, 255, .03), 0 0 0 74px rgba(154, 124, 255, .025);
}

.ag-page-hero > * {
  position: relative;
  z-index: 1;
  max-width: 860px;
}

.ag-page-hero .ag-actions {
  margin-top: 1.5rem;
}

.ag-page-hero--scp {
  background:
    radial-gradient(circle at 80% 40%, rgba(194, 48, 65, .2), transparent 20rem),
    linear-gradient(140deg, #05090e, #10151d 58%, #1c0b10);
}

/* Homepage hero */
.ag-home-hero {
  position: relative;
  min-height: clamp(660px, 82vh, 850px);
  display: grid;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid var(--ag-line);
  isolation: isolate;
}

.ag-home-hero__media,
.ag-home-hero__media img,
.ag-home-hero__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.ag-home-hero__media {
  z-index: -2;
}

.ag-home-hero__media img {
  object-fit: cover;
  object-position: center;
}

.ag-home-hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 6, 13, .96) 0%, rgba(3, 8, 17, .89) 35%, rgba(5, 10, 20, .35) 66%, rgba(4, 8, 15, .2)),
    linear-gradient(0deg, rgba(4, 9, 17, .9), transparent 35%);
}

.ag-home-hero__content {
  width: min(100% - 2rem, 1240px);
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 8rem) 0;
}

.ag-home-hero__content h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3rem, 7.5vw, 7.1rem);
  line-height: .88;
  letter-spacing: -.065em;
}

.ag-home-hero__content > p:not(.ag-kicker) {
  max-width: 680px;
  margin: 1.5rem 0 0;
  color: #c1cede;
  font-size: clamp(1rem, 1.55vw, 1.25rem);
  line-height: 1.72;
}

.ag-home-hero .ag-actions {
  margin-top: 1.8rem;
}

.ag-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem 1.35rem;
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid rgba(195, 216, 236, .16);
  list-style: none;
  color: #cfdae7;
  font-size: .86rem;
  font-weight: 700;
}

.ag-hero-points li {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.ag-hero-points i {
  color: var(--ag-cyan);
}

/* Cards and game catalogue */
.ag-card-grid,
.ag-game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(270px, 100%), 1fr));
  gap: 1rem;
}

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

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

.ag-card {
  position: relative;
  min-width: 0;
  padding: clamp(1.3rem, 2.6vw, 2rem);
  color: var(--ag-text);
  border: 1px solid var(--ag-line);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, rgba(15, 29, 48, .86), rgba(8, 17, 29, .94));
  box-shadow: inset 0 1px rgba(255, 255, 255, .035), 0 18px 45px rgba(0, 3, 10, .2);
}

.ag-card--featured {
  border-color: var(--ag-line-bright);
  background: linear-gradient(145deg, rgba(18, 43, 65, .94), rgba(10, 24, 40, .95));
}

.ag-card h3 {
  margin: .75rem 0 .65rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.ag-card p {
  color: var(--ag-muted);
}

.ag-card__number {
  color: var(--ag-cyan);
  font-family: var(--font-heading);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .13em;
}

.ag-card__icon,
.ag-link-card > i,
.ag-contact-card > i {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  color: var(--ag-cyan);
  border: 1px solid rgba(85, 216, 255, .2);
  border-radius: .85rem;
  background: rgba(85, 216, 255, .07);
  font-size: 1.2rem;
}

.ag-game-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ag-line);
  border-radius: 1.25rem;
  background: linear-gradient(155deg, rgba(14, 27, 44, .96), rgba(7, 14, 25, .98));
  box-shadow: 0 22px 55px rgba(0, 3, 10, .25);
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}

.ag-game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(85, 216, 255, .4);
  box-shadow: 0 30px 65px rgba(0, 3, 10, .42);
}

.ag-game-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  background: #0a1422;
}

.ag-game-card__media::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(transparent, rgba(5, 10, 17, .78));
}

.ag-game-card__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .5s ease;
}

.ag-game-card:hover .ag-game-card__media img {
  transform: scale(1.035);
}

.ag-game-card--mark .ag-game-card__media img {
  padding: 13%;
  object-fit: contain;
  background: radial-gradient(circle, rgba(85, 216, 255, .11), transparent 58%);
}

.ag-game-card__status {
  position: absolute;
  left: .8rem;
  bottom: .8rem;
  z-index: 1;
  max-width: calc(100% - 1.6rem);
  padding: .42rem .65rem;
  color: #ecf8ff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: .55rem;
  background: rgba(4, 12, 22, .8);
  backdrop-filter: blur(10px);
  font-size: .7rem;
  font-weight: 800;
  line-height: 1.25;
}

.ag-game-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.ag-game-card__meta {
  margin: 0;
  color: var(--ag-cyan);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ag-game-card h3 {
  margin: .65rem 0 .65rem;
  font-size: clamp(1.35rem, 2.1vw, 1.75rem);
  line-height: 1.08;
}

.ag-game-card h3 a {
  color: var(--ag-text);
  text-decoration: none;
}

.ag-game-card__body > p:not(.ag-game-card__meta) {
  flex: 1;
  margin: 0 0 .7rem;
  color: var(--ag-muted);
  font-size: .92rem;
  line-height: 1.65;
}

/* Timelines and feature layouts */
.ag-era {
  position: relative;
}

.ag-timeline {
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.ag-timeline li {
  display: grid;
  grid-template-columns: minmax(100px, 160px) 1fr;
  gap: clamp(1rem, 4vw, 4rem);
  padding: 1.8rem 0;
  border-top: 1px solid var(--ag-line);
}

.ag-timeline li > span {
  color: var(--ag-cyan);
  font-family: var(--font-heading);
  font-size: .9rem;
  font-weight: 800;
}

.ag-timeline h3,
.ag-timeline p {
  margin: 0;
}

.ag-timeline h3 {
  font-size: clamp(1.25rem, 2.3vw, 1.75rem);
}

.ag-timeline p {
  max-width: 760px;
  margin-top: .45rem;
  color: var(--ag-muted);
}

.ag-split-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}

.ag-split-feature__visual {
  min-height: 310px;
  overflow: hidden;
  border: 1px solid var(--ag-line);
  border-radius: 1.5rem;
  background: var(--ag-panel);
  box-shadow: var(--ag-shadow);
}

.ag-split-feature__visual img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  display: block;
  object-fit: cover;
}

.ag-split-feature h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.ag-split-feature p:not(.ag-kicker) {
  margin: 1rem 0 1.5rem;
  color: var(--ag-muted);
  font-size: 1.05rem;
}

.ag-story {
  display: grid;
  grid-template-columns: minmax(240px, .75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.ag-story--accent {
  width: min(100% - 2rem, 1320px);
  padding-left: clamp(1.2rem, 4vw, 3.2rem);
  padding-right: clamp(1.2rem, 4vw, 3.2rem);
  border: 1px solid var(--ag-line-bright) !important;
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at 100% 0, rgba(85, 216, 255, .1), transparent 24rem),
    linear-gradient(145deg, rgba(12, 27, 44, .9), rgba(8, 17, 29, .92));
}

.ag-story h2 {
  font-size: clamp(1.8rem, 3.7vw, 3.25rem);
}

.ag-story > p,
.ag-story > div:last-child > p {
  margin: 0;
  color: var(--ag-muted);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.82;
}

.ag-callout,
.ag-license,
.ag-privacy-note,
.ag-archive-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 5vw, 4rem);
}

.ag-callout {
  width: min(100% - 2rem, 1280px);
  padding-left: clamp(1.4rem, 4vw, 3.2rem);
  padding-right: clamp(1.4rem, 4vw, 3.2rem);
  border: 1px solid rgba(85, 216, 255, .31) !important;
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 85% 20%, rgba(154, 124, 255, .2), transparent 20rem),
    linear-gradient(135deg, rgba(12, 33, 52, .96), rgba(15, 18, 39, .96));
  box-shadow: var(--ag-shadow);
}

.ag-callout > div:first-child {
  max-width: 750px;
}

.ag-callout h2,
.ag-next h2 {
  font-size: clamp(1.8rem, 4vw, 3.25rem);
}

.ag-callout p:not(.ag-kicker),
.ag-license p,
.ag-privacy-note p,
.ag-archive-note p {
  color: var(--ag-muted);
}

.ag-next {
  text-align: center;
}

.ag-next .ag-btn {
  margin-top: 1rem;
}

.ag-step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: steps;
}

.ag-step-grid li {
  padding: 1.7rem;
  border: 1px solid var(--ag-line);
  border-radius: 1.2rem;
  background: rgba(11, 22, 37, .78);
}

.ag-step-grid li > span {
  color: var(--ag-cyan);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .14em;
}

.ag-step-grid h3 {
  margin: 1rem 0 .6rem;
  font-size: 1.3rem;
}

.ag-step-grid p {
  margin: 0;
  color: var(--ag-muted);
}

.ag-language-list {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.4rem;
}

.ag-language-list span {
  min-width: 42px;
  padding: .5rem .6rem;
  color: #d9f7ff;
  border: 1px solid rgba(85, 216, 255, .22);
  border-radius: .6rem;
  background: rgba(85, 216, 255, .08);
  font-size: .76rem;
  font-weight: 800;
  text-align: center;
}

/* Individual game pages */
.ag-game-hero {
  position: relative;
  min-height: clamp(620px, 78vh, 820px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  isolation: isolate;
  border-bottom: 1px solid var(--ag-line);
  background: #050a12;
}

.ag-game-hero__media,
.ag-game-hero__shade {
  position: absolute;
  inset: 0;
}

.ag-game-hero__media {
  z-index: -2;
}

.ag-game-hero__media img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.ag-game-hero__media--mark {
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(85, 216, 255, .15), transparent 38%), #07111d;
}

.ag-game-hero__media--mark img {
  width: min(50vw, 520px);
  height: min(50vw, 520px);
  object-fit: contain;
}

.ag-game-hero__shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 7, 14, .95), rgba(3, 8, 17, .77) 45%, rgba(3, 8, 16, .18) 75%),
    linear-gradient(0deg, rgba(3, 8, 15, .96), transparent 55%);
}

.ag-game-hero__content {
  width: min(100% - 2rem, 1240px);
  margin: 0 auto;
  padding: clamp(5rem, 11vw, 8.5rem) 0 clamp(3.5rem, 7vw, 6rem);
}

.ag-backlink {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2.2rem;
  color: #d5e2ef;
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
}

.ag-game-hero h1 {
  max-width: 960px;
  margin: 0;
  font-size: clamp(3rem, 8vw, 7.5rem);
  line-height: .88;
  letter-spacing: -.065em;
}

.ag-game-hero__lead {
  max-width: 760px;
  margin: 1.4rem 0 0;
  color: #c5d2df;
}

.ag-game-hero .ag-actions {
  margin-top: 1.75rem;
}

.ag-game-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr);
  gap: clamp(2.5rem, 7vw, 7rem);
  align-items: start;
}

.ag-facts {
  margin: 0;
  border-top: 1px solid var(--ag-line);
}

.ag-facts > div {
  display: grid;
  grid-template-columns: minmax(110px, .7fr) 1.3fr;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--ag-line);
}

.ag-facts dt {
  color: var(--ag-muted);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ag-facts dd {
  margin: 0;
  color: var(--ag-text);
  font-weight: 700;
}

.ag-feature-card {
  min-height: 260px;
}

.ag-media-section {
  width: min(100% - 2rem, 1320px);
}

.ag-video {
  width: 100%;
  max-height: min(76vh, 780px);
  display: block;
  border: 1px solid var(--ag-line);
  border-radius: 1.4rem;
  background: #000;
  box-shadow: var(--ag-shadow);
}

.ag-local-media {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--ag-muted);
  font-size: .78rem;
  font-weight: 700;
}

.ag-local-media i {
  color: var(--ag-cyan);
}

.ag-requirements__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ag-requirements dl {
  margin: 1.2rem 0 0;
}

.ag-requirements dl > div {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: .75rem;
  padding: .65rem 0;
  border-bottom: 1px solid var(--ag-line);
}

.ag-requirements dt {
  color: var(--ag-muted);
  font-size: .74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ag-requirements dd {
  margin: 0;
}

.ag-note {
  color: var(--ag-muted);
  font-size: .82rem;
}

.ag-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .75rem;
}

.ag-gallery a {
  position: relative;
  aspect-ratio: 16 / 9;
  display: block;
  overflow: hidden;
  border: 1px solid var(--ag-line);
  border-radius: 1rem;
  background: var(--ag-panel);
}

.ag-gallery a::after {
  content: "↗";
  position: absolute;
  right: .65rem;
  bottom: .65rem;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: .55rem;
  background: rgba(4, 10, 18, .78);
  opacity: 0;
  transition: opacity .2s ease;
}

.ag-gallery a:hover::after,
.ag-gallery a:focus-visible::after {
  opacity: 1;
}

.ag-gallery img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform .35s ease;
}

.ag-gallery a:hover img {
  transform: scale(1.03);
}

.ag-license {
  border-color: rgba(246, 201, 107, .3) !important;
}

.ag-license > div {
  flex: 1;
}

.ag-license .ag-inline-links a,
.ag-story .ag-inline-links a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--ag-cyan);
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
}

.ag-archive-note,
.ag-privacy-note {
  align-items: flex-start;
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.ag-archive-note > i,
.ag-privacy-note > i {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  color: var(--ag-cyan);
  border: 1px solid rgba(85, 216, 255, .24);
  border-radius: 1rem;
  background: rgba(85, 216, 255, .08);
}

.ag-archive-note > div,
.ag-privacy-note > div {
  flex: 1;
}

.ag-archive-note h2,
.ag-privacy-note h2 {
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

/* Legal and text-heavy pages */
.ag-prose {
  width: min(100% - 2rem, 880px);
  color: #d6dfeb;
}

.ag-prose h2 {
  margin: 3.2rem 0 1rem;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  line-height: 1.15;
}

.ag-prose h2:first-child {
  margin-top: 0;
}

.ag-prose p,
.ag-prose li,
.ag-address {
  color: #c0ccda;
  font-size: 1rem;
  line-height: 1.82;
}

.ag-prose a,
.ag-address a {
  color: var(--ag-cyan);
  text-decoration-thickness: .08em;
  text-underline-offset: .18em;
}

.ag-prose strong {
  color: #f5f8fc;
}

.ag-address {
  margin: 0;
  font-style: normal;
}

.ag-credits-list {
  display: grid;
  gap: .55rem;
  margin: 1.5rem 0;
}

.ag-credits-list article {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem 1rem;
  border: 1px solid var(--ag-line);
  border-radius: .8rem;
  background: rgba(12, 23, 39, .7);
}

.ag-credits-list article > div {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .45rem 1rem;
}

.ag-credits-list span {
  min-width: 72px;
  color: var(--ag-cyan);
  font-weight: 800;
}

.ag-credits-list strong {
  overflow-wrap: anywhere;
}

.ag-credits-list a {
  flex: 0 0 auto;
  font-size: .8rem;
  font-weight: 800;
  text-decoration: none;
}

/* Footer */
body[data-theme="adrasteagames"] .site-footer {
  margin-top: 2rem;
  padding: clamp(2.5rem, 5vw, 4.5rem) max(1rem, calc((100vw - 1240px) / 2)) 1.5rem;
  color: var(--ag-muted);
  border-top: 1px solid var(--ag-line);
  background:
    radial-gradient(circle at 80% 100%, rgba(85, 216, 255, .08), transparent 25rem),
    #030811;
}

body[data-theme="adrasteagames"] .footer-utility {
  max-width: 1240px;
  margin: 0 auto;
}

body[data-theme="adrasteagames"] .footer-highlight__legal {
  color: #dce5ef;
  font-size: .82rem;
}

body[data-theme="adrasteagames"] .footer-links ul {
  gap: .35rem 1rem;
}

body[data-theme="adrasteagames"] .site-footer a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  color: var(--ag-muted);
  font-size: .82rem;
  font-weight: 700;
}

body[data-theme="adrasteagames"] .site-footer a:hover {
  color: var(--ag-cyan);
}

body[data-theme="adrasteagames"] .site-footer__bar {
  max-width: 1240px;
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(164, 194, 223, .1);
}

/* Responsive */
@media (max-width: 1180px) {
  body[data-theme="adrasteagames"] .language-switch a span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }

  body[data-theme="adrasteagames"] .language-switch a {
    padding-inline: .5rem;
  }
}

@media (max-width: 1024px) {
  body[data-theme="adrasteagames"] .site-header__inner {
    min-height: 68px;
    flex-wrap: nowrap;
    justify-content: space-between;
  }

  body[data-theme="adrasteagames"] .site-nav {
    top: .55rem;
    left: auto;
    right: .625rem;
    margin: 0;
    color: var(--ag-text);
    border-color: rgba(164, 196, 226, .18);
    background: rgba(5, 12, 23, .98);
    transform: translateY(-.45rem) scale(.985);
    transform-origin: top right;
  }

  body[data-theme="adrasteagames"] .site-nav.is-open {
    transform: translateY(0) scale(1);
  }

  body[data-theme="adrasteagames"] .site-nav__mobile-kicker,
  body[data-theme="adrasteagames"] .site-nav__mobile-home {
    color: var(--ag-text);
  }

  body[data-theme="adrasteagames"] .site-nav__item .nav-link {
    min-height: 44px;
    padding: .62rem .25rem;
    color: #e4ebf4;
    font-size: .92rem;
  }

  body[data-theme="adrasteagames"] .site-nav__item.has-children > .site-nav__submenu {
    border-color: var(--ag-line);
    background: rgba(10, 22, 37, .95);
  }

  body[data-theme="adrasteagames"] .site-nav__footer .language-switch a span {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
  }

  .ag-card-grid--three,
  .ag-step-grid,
  .ag-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ag-split-feature {
    grid-template-columns: 1fr;
  }

  .ag-split-feature__visual {
    min-height: 260px;
  }
}

@media (max-width: 760px) {
  body[data-theme="adrasteagames"] .logo {
    font-size: .96rem;
  }

  body[data-theme="adrasteagames"] .logo::before {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .ag-home-hero {
    min-height: 690px;
  }

  .ag-home-hero__media img {
    object-position: 62% center;
  }

  .ag-home-hero__shade {
    background: linear-gradient(90deg, rgba(2, 6, 13, .93), rgba(3, 8, 17, .66)), linear-gradient(0deg, rgba(4, 9, 17, .97), transparent 60%);
  }

  .ag-home-hero__content h1,
  .ag-game-hero h1 {
    font-size: clamp(2.8rem, 14vw, 5rem);
    line-height: .91;
  }

  .ag-page-hero {
    min-height: 390px;
    padding-top: 5rem;
    padding-bottom: 4rem;
  }

  .ag-page-hero::after {
    width: 180px;
    height: 180px;
    right: -50px;
    top: 28%;
  }

  .ag-section {
    width: min(100% - 1.35rem, 1240px);
    padding: 3.5rem 0;
  }

  .ag-section__head--split,
  .ag-callout,
  .ag-license,
  .ag-privacy-note,
  .ag-archive-note {
    align-items: flex-start;
    flex-direction: column;
  }

  .ag-card-grid--two,
  .ag-card-grid--three,
  .ag-step-grid,
  .ag-requirements__grid,
  .ag-gallery {
    grid-template-columns: 1fr;
  }

  .ag-story,
  .ag-game-intro {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ag-story--accent,
  .ag-callout {
    width: min(100% - 1.35rem, 1280px);
  }

  .ag-timeline li {
    grid-template-columns: 1fr;
    gap: .55rem;
  }

  .ag-game-hero {
    min-height: 680px;
  }

  .ag-game-hero__media img {
    object-position: 64% center;
  }

  .ag-game-hero__shade {
    background: linear-gradient(90deg, rgba(2, 7, 14, .85), rgba(3, 8, 17, .35)), linear-gradient(0deg, rgba(3, 8, 15, .98) 8%, rgba(3, 8, 15, .65) 60%, rgba(3, 8, 15, .16));
  }

  .ag-game-hero__content {
    width: min(100% - 1.35rem, 1240px);
  }

  .ag-gallery a {
    aspect-ratio: 16 / 10;
  }

  .ag-credits-list article {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 460px) {
  body[data-theme="adrasteagames"] .site-header__inner {
    padding-inline: .75rem;
  }

  body[data-theme="adrasteagames"] .logo {
    gap: .48rem;
  }

  .ag-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .ag-actions .ag-btn {
    width: 100%;
  }

  .ag-hero-points {
    align-items: flex-start;
    flex-direction: column;
  }

  .ag-facts > div,
  .ag-requirements dl > div {
    grid-template-columns: 1fr;
    gap: .25rem;
  }

  .ag-card,
  .ag-game-card__body {
    padding: 1.15rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-theme="adrasteagames"] *,
  body[data-theme="adrasteagames"] *::before,
  body[data-theme="adrasteagames"] *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media (forced-colors: active) {
  .ag-btn,
  .ag-card,
  .ag-game-card,
  .ag-gallery a,
  .ag-callout {
    border: 1px solid CanvasText;
  }
}
