:root {
  color-scheme: dark;
  --ink: #fff8cf;
  --muted: #c8b9cb;
  --plum: #200527;
  --plum-2: #120116;
  --panel: #2d0735;
  --cyan: #4fd1c5;
  --red: #f12d31;
  --gold: #ffcc58;
  --line: rgba(255,255,255,.13);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--plum-2); }
body { margin: 0; overflow-x: hidden; background: var(--plum); color: var(--ink); line-height: 1.62; }
body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  background:
    radial-gradient(circle at 78% 5%, rgba(79,209,197,.13), transparent 26rem),
    radial-gradient(circle at 30% 50%, rgba(241,45,49,.08), transparent 34rem),
    linear-gradient(180deg, #1d0323, #25062c 55%, #130117);
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem clamp(1rem,4vw,4rem);
  background: rgba(24,1,29,.94);
  border-bottom: 1px solid rgba(79,209,197,.24);
  backdrop-filter: blur(16px);
}
.brand {
  display: block;
  width: clamp(170px,18vw,235px);
  aspect-ratio: 2053/713;
  overflow: hidden;
  text-indent: -9999px;
  background: url("/assets/images/avantgarde-logo.png") left center / contain no-repeat;
}
.header-cta, .hero-cta, .section-cta {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: .78rem 1.25rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: .72rem;
  background: linear-gradient(135deg, var(--cyan), #39bcb7);
  box-shadow: 0 12px 35px rgba(79,209,197,.2);
  color: #16021a;
  font-weight: 900;
  text-decoration: none;
  transition: transform .2s ease, filter .2s ease;
}
.header-cta:hover, .hero-cta:hover, .section-cta:hover { transform: translateY(-2px); filter: brightness(1.08); }
.portal {
  width: min(1700px,100%);
  margin: auto;
  display: grid;
  grid-template-columns: 230px minmax(0,1fr);
}
.side-nav {
  position: sticky;
  top: 72px;
  align-self: start;
  min-height: calc(100vh - 72px);
  padding: 1.25rem .75rem;
  background: rgba(18,1,22,.66);
  border-right: 1px solid var(--line);
}
.side-nav strong {
  display: block;
  margin: .7rem .65rem .35rem;
  color: #fff;
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: .7rem;
  min-height: 42px;
  margin: .16rem 0;
  padding: .5rem .7rem;
  border-radius: .6rem;
  color: var(--muted);
  font-weight: 750;
  text-decoration: none;
}
.side-nav a::before { width: 1.2rem; color: var(--cyan); content: attr(data-icon); text-align: center; }
.side-nav a:hover, .side-nav a[aria-current="page"] { background: #33073d; color: var(--ink); }
.stage { min-width: 0; padding: clamp(1rem,2vw,2rem); }
.hero {
  position: relative;
  min-height: min(560px,72vh);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(18rem,.82fr) minmax(24rem,1.18fr);
  align-items: stretch;
  border: 1px solid rgba(79,209,197,.2);
  border-radius: 1.3rem;
  background: #120116;
  box-shadow: 0 22px 65px rgba(0,0,0,.28);
}
.hero.compact { min-height: 430px; }
.hero-copy {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(1.5rem,4vw,4.5rem);
  background: linear-gradient(90deg,#17011c 15%,rgba(23,1,28,.94) 70%,rgba(23,1,28,.26));
}
.hero-media { min-width: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 72% center; }
.eyebrow {
  margin: 0 0 .65rem;
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0 0 .65em; color: #fffbd2; line-height: 1.08; letter-spacing: -.03em; }
h1 { max-width: 13ch; font-size: clamp(2.25rem,5vw,5.4rem); }
h2 { font-size: clamp(1.65rem,3vw,2.8rem); }
h3 { font-size: 1.12rem; }
.hero p:not(.eyebrow) { max-width: 54ch; margin: 0 0 1.35rem; color: #dfd2df; font-size: clamp(1rem,1.45vw,1.18rem); }
.hero-cta { min-width: 190px; font-size: 1.05rem; }
.promo-strip {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .85rem;
  margin: 1.15rem 0;
}
.promo-card, .info-card, .faq details, .closing {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #2b0633;
}
.promo-card {
  min-height: 155px;
  padding: 1.15rem;
  background-image: linear-gradient(90deg,rgba(17,1,21,.96),rgba(17,1,21,.56)), url("/assets/images/hero.webp");
  background-size: cover;
  background-position: center;
}
.promo-card:nth-child(2) { background-position: 60% center; }
.promo-card:nth-child(3) { background-position: 88% center; }
.promo-card small { color: var(--cyan); font-weight: 850; }
.promo-card p { max-width: 32ch; margin: .35rem 0 0; color: var(--muted); }
.category-ribbon {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  padding: .5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #16021b;
  scrollbar-width: thin;
}
.category-ribbon a {
  flex: 0 0 auto;
  padding: .62rem 1rem;
  border-radius: 999px;
  color: #e6dce7;
  font-weight: 780;
  text-decoration: none;
}
.category-ribbon a:hover, .category-ribbon a:first-child { background: var(--cyan); color: #15021a; }
.section { padding: clamp(2.3rem,5vw,5rem) 0 0; scroll-margin-top: 88px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.section-head p { max-width: 62ch; margin: 0; color: var(--muted); }
.game-grid {
  display: grid;
  grid-template-columns: repeat(6,minmax(0,1fr));
  gap: .7rem;
}
.game-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  display: block;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: .82rem;
  background: #140119;
  box-shadow: 0 10px 25px rgba(0,0,0,.22);
  text-decoration: none;
}
.tile-art {
  width: 100%;
  aspect-ratio: 3/4;
  background-image: url("/assets/images/game-atlas.webp");
  background-size: 400% 300%;
  background-position: var(--x,0%) var(--y,0%);
  background-repeat: no-repeat;
}
.game-name {
  display: block;
  min-height: 54px;
  padding: .72rem .7rem;
  color: #fffbd2;
  font-size: .84rem;
  font-weight: 850;
  line-height: 1.25;
}
.game-overlay {
  position: absolute;
  inset: 0 0 54px;
  display: grid;
  place-content: center;
  padding: .85rem;
  background: linear-gradient(180deg,rgba(21,1,26,.55),rgba(21,1,26,.94));
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .2s ease, transform .2s ease;
  text-align: center;
}
.game-overlay span {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: .55rem .72rem;
  border-radius: .65rem;
  background: var(--cyan);
  color: #15021a;
  font-size: .79rem;
  font-weight: 950;
  line-height: 1.25;
}
.game-card:hover .game-overlay, .game-card:focus-visible .game-overlay { opacity: 1; transform: none; }
.article {
  display: grid;
  grid-template-columns: minmax(0,1.35fr) minmax(260px,.65fr);
  gap: 1rem;
}
.article > * { min-width: 0; }
.article-copy, .info-card { padding: clamp(1.2rem,3vw,2rem); }
.article-copy {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(17,1,21,.62);
}
.article-copy p, .info-card p, .article-copy li { color: #d7c9d8; }
.article-copy a { color: var(--cyan); }
.facts { margin: 0; padding: 0; list-style: none; }
.facts li { padding: .75rem 0; border-bottom: 1px solid var(--line); }
.facts li:last-child { border-bottom: 0; }
.facts strong { display: block; color: var(--cyan); }
.table-wrap { overflow-x: auto; margin: 1.1rem 0; border: 1px solid var(--line); border-radius: .8rem; }
table { width: 100%; min-width: 570px; border-collapse: collapse; background: rgba(25,2,30,.8); }
th, td { padding: .85rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #35073f; color: var(--cyan); }
.notice {
  margin: 1.2rem 0;
  padding: 1rem 1.1rem;
  border-left: 4px solid var(--red);
  background: rgba(241,45,49,.1);
  color: #f1e4ef;
}
.cards {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: .9rem;
}
.info-card {
  min-height: 230px;
  background-image: linear-gradient(180deg,rgba(30,3,36,.7),#2b0633 55%), url("/assets/images/game-atlas.webp");
  background-size: cover;
  background-position: var(--p,center);
}
.info-card .badge { display: inline-block; margin-bottom: 1rem; padding: .24rem .5rem; border-radius: .35rem; background: rgba(79,209,197,.18); color: var(--cyan); font-size: .78rem; font-weight: 850; }
.faq { display: grid; gap: .65rem; }
.faq details {
  padding: 1rem 1.1rem;
  background-image: linear-gradient(90deg,rgba(43,6,51,.98),rgba(43,6,51,.9)), url("/assets/images/game-atlas.webp");
  background-size: cover;
}
.faq summary { cursor: pointer; color: #fff; font-weight: 850; }
.faq p { margin: .7rem 0 0; color: var(--muted); }
.closing {
  margin-top: 3rem;
  padding: clamp(1.5rem,4vw,3.3rem);
  background-image: linear-gradient(90deg,rgba(18,1,22,.97),rgba(18,1,22,.56)), url("/assets/images/hero.webp");
  background-size: cover;
  background-position: center;
}
.closing p { max-width: 58ch; color: var(--muted); }
.footer-nav { display: flex; flex-wrap: wrap; gap: .85rem 1.2rem; margin-top: 2rem; padding: 1.2rem 0; border-top: 1px solid var(--line); }
.footer-nav a { color: var(--muted); font-weight: 750; text-decoration: none; }
.footer-nav a:hover { color: var(--cyan); }
footer { padding: 1.4rem clamp(1rem,4vw,4rem) 2.5rem; background: #100014; color: #9f8fa2; }
footer a { text-decoration: none; }
.source-note { color: #9f8fa2; font-size: .86rem; }
@media (max-width: 1250px) {
  .game-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
  .portal { grid-template-columns: 205px minmax(0,1fr); }
}
@media (max-width: 920px) {
  .portal { display: block; }
  .side-nav { position: static; min-height: 0; display: flex; gap: .25rem; overflow-x: auto; padding: .55rem 1rem; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-nav strong { display: none; }
  .side-nav a { flex: 0 0 auto; }
  .hero { min-height: 520px; grid-template-columns: 1fr; }
  .hero-copy { grid-area: 1/1; background: linear-gradient(90deg,rgba(19,1,23,.96),rgba(19,1,23,.58)); }
  .hero-media { grid-area: 1/1; }
  .hero-media img { object-position: 64% center; }
  .promo-strip, .cards { grid-template-columns: 1fr 1fr; }
  .article { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .site-header { min-height: 64px; padding: .55rem .75rem; }
  .brand { width: 148px; }
  .header-cta { min-height: 44px; padding: .62rem .85rem; font-size: .88rem; }
  .side-nav { top: 64px; }
  .side-nav a { min-height: 38px; font-size: .86rem; }
  .stage { padding: .7rem; }
  .hero, .hero.compact { min-height: 480px; border-radius: .9rem; }
  .hero-copy { padding: 1.35rem; }
  h1 { font-size: clamp(2.15rem,11vw,3.3rem); }
  .promo-strip, .cards { grid-template-columns: 1fr; }
  .promo-card { min-height: 135px; }
  .category-ribbon { margin: 1rem 0; border-radius: .8rem; }
  .game-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: .55rem; }
  .game-name { min-height: 50px; font-size: .77rem; }
  .game-overlay { inset: 0 0 50px; }
  .game-overlay span { font-size: .73rem; }
  .section { padding-top: 2.5rem; }
  .section-head { display: block; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
