@font-face {
  font-family: "Cinzel";
  src: url("/assets/fonts/cinzel.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}
@font-face {
  font-family: "Exo 2";
  src: url("/assets/fonts/exo2.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --deep-slate: #0C0D14;
  --slate: #1C2030;
  --slate-blue: #343A4E;
  --lavender: #A99BE0;
  --gold: #F1CD84;
  --deep-gold: #DDA24E;
  --moonlight: #FCEBBE;
  --text: #C9CBD8;
  --muted: #7C8199;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse 70% 560px at 50% 280px, rgba(52, 58, 78, .55), transparent 70%),
    radial-gradient(ellipse 120% 600px at 50% 100%, rgba(169, 155, 224, .08), transparent 60%),
    var(--deep-slate);
  background-repeat: no-repeat;
  color: var(--text);
  font-family: "Exo 2", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.stage {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 16px 32px;
}

.emblem {
  position: relative;
  width: clamp(168px, 34vmin, 260px);
  aspect-ratio: 1;
  margin-bottom: clamp(24px, 4vh, 40px);
  animation: rise 1.4s cubic-bezier(.2, .7, .2, 1) both, float 9s ease-in-out 1.4s infinite;
}
.emblem img {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .55));
}
.halo {
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(169, 155, 224, .28) 0%, rgba(169, 155, 224, .08) 45%, transparent 68%);
  animation: breathe 7s ease-in-out infinite;
}

.wordmark {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 700;
  font-size: clamp(2.1rem, 7.2vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--moonlight) 10%, var(--gold) 55%, #E4B45F 95%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 18px rgba(241, 205, 132, .12));
  animation: fade 1.2s ease .25s both;
}

.tagline {
  margin: .9em 0 0;
  font-weight: 500;
  font-size: clamp(.8rem, 1.9vw, 1.05rem);
  letter-spacing: .6em;
  margin-right: -.6em; /* offsets trailing tracking so the text centres */
  text-transform: uppercase;
  color: var(--lavender);
  animation: fade 1.2s ease .45s both;
}

.divider {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(320px, 70vw);
  margin: clamp(28px, 5vh, 44px) 0 clamp(20px, 3.5vh, 30px);
  color: var(--gold);
  font-size: .8rem;
  animation: fade 1.2s ease .65s both;
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241, 205, 132, .55));
}
.divider::after { transform: scaleX(-1); }

.status {
  margin: 0;
  font-family: "Cinzel", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.05rem, 2.6vw, 1.35rem);
  letter-spacing: .28em;
  margin-right: -.28em;
  text-transform: uppercase;
  color: var(--moonlight);
  animation: fade 1.2s ease .8s both;
}

.lede {
  max-width: 34em;
  margin: 1em 0 0;
  font-size: clamp(.98rem, 2vw, 1.1rem);
  font-weight: 400;
  line-height: 1.7;
  text-wrap: balance;
  color: var(--text);
  animation: fade 1.2s ease .95s both;
}

.intro {
  margin: 1.4em 0 0;
  font-size: clamp(.95rem, 1.9vw, 1.05rem);
  letter-spacing: .04em;
  color: var(--text);
  animation: fade 1.2s ease .55s both;
}

.game {
  width: 100%;
  max-width: 960px;
  animation: fade 1.2s ease .8s both;
}
.game .status { margin-bottom: clamp(18px, 3vh, 26px); }

.game-card {
  overflow: hidden;
  border: 1px solid rgba(241, 205, 132, .22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(28, 32, 48, .82), rgba(12, 13, 20, .9));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(252, 235, 190, .06);
  text-align: left;
  transition: border-color .3s;
}
.game-card:hover { border-color: rgba(241, 205, 132, .42); }

.game-card__art {
  position: relative;
  display: block;
  aspect-ratio: 16 / 7;
  overflow: hidden;
}
.game-card__key {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 55%;
  display: block;
  transition: transform 1.2s cubic-bezier(.2, .7, .2, 1);
}
.game-card__art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 13, 20, .55) 0%, transparent 55%),
    linear-gradient(0deg, rgba(20, 23, 34, .95) 0%, transparent 45%);
}
.game-card__logo {
  position: absolute;
  z-index: 1;
  left: clamp(18px, 4%, 40px);
  top: 50%;
  width: clamp(150px, 34%, 320px);
  height: auto;
  transform: translateY(-58%);
  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, .6));
}
.game-card__art:hover .game-card__key { transform: scale(1.04); }
.game-card__art:focus-visible { outline: 2px solid var(--lavender); outline-offset: -4px; }

.game-card__body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px 36px;
  align-items: end;
  padding: 4px clamp(18px, 4%, 40px) 26px;
}
.game-card__title {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.game-card__genre {
  margin: 0 0 .6em;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--lavender);
}
.game-card__text p:not(.game-card__genre) {
  margin: 0;
  max-width: 36em;
  line-height: 1.7;
  color: var(--text);
}
.game-card__facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.game-card__facts li {
  padding: .3em .85em;
  border: 1px solid rgba(169, 155, 224, .28);
  border-radius: 999px;
  font-size: .8rem;
  letter-spacing: .04em;
  color: #D7D2F0;
  background: rgba(169, 155, 224, .07);
}

.game-card__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn {
  display: inline-block;
  padding: .8em 1.5em;
  border: 1px solid rgba(241, 205, 132, .4);
  border-radius: 999px;
  color: var(--gold);
  font-weight: 600;
  font-size: .92rem;
  letter-spacing: .06em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .25s, background-color .25s, color .25s, box-shadow .25s, filter .25s;
}
.btn:hover {
  color: var(--moonlight);
  border-color: rgba(241, 205, 132, .8);
  background: rgba(52, 58, 78, .45);
}
.btn--gold {
  border-color: transparent;
  color: #1A1408;
  background: linear-gradient(180deg, var(--moonlight), var(--gold) 45%, var(--deep-gold));
  box-shadow: 0 6px 22px rgba(221, 162, 78, .25);
}
.btn--gold:hover {
  color: #1A1408;
  border-color: transparent;
  background: linear-gradient(180deg, var(--moonlight), var(--gold) 45%, var(--deep-gold));
  filter: brightness(1.07);
  box-shadow: 0 8px 30px rgba(221, 162, 78, .4);
}
.btn:focus-visible, .game-card__shots:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 3px;
}

.game-card__shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 0 clamp(18px, 4%, 40px) clamp(18px, 4%, 32px);
}
.game-card__shots img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  border: 1px solid rgba(252, 235, 190, .1);
  opacity: .85;
  transition: opacity .25s, transform .25s, border-color .25s;
}
.game-card__shots:hover img { opacity: 1; }
.game-card__shots img:hover {
  transform: translateY(-2px);
  border-color: rgba(241, 205, 132, .45);
}

@media (max-width: 720px) {
  .game-card__art { aspect-ratio: 16 / 9; }
  .game-card__logo { width: 52%; top: 46%; }
  .game-card__body { grid-template-columns: 1fr; }
  .game-card__actions .btn { width: 100%; }
  .game-card__shots { gap: 6px; }
}

.contact {
  margin-top: clamp(24px, 4vh, 36px);
  padding: .75em 1.6em;
  border: 1px solid rgba(241, 205, 132, .35);
  border-radius: 999px;
  color: var(--gold);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .08em;
  text-decoration: none;
  background: rgba(28, 32, 48, .4);
  backdrop-filter: blur(4px);
  transition: border-color .25s, background-color .25s, color .25s, box-shadow .25s;
  animation: fade 1.2s ease 1.1s both;
}
.contact:hover {
  color: var(--moonlight);
  border-color: rgba(241, 205, 132, .75);
  background: rgba(52, 58, 78, .45);
  box-shadow: 0 0 24px rgba(241, 205, 132, .15);
}
.contact:focus-visible {
  outline: 2px solid var(--lavender);
  outline-offset: 4px;
}

.foot {
  position: relative;
  z-index: 1;
  padding: 20px 16px 28px;
  text-align: center;
  font-size: .8rem;
  letter-spacing: .12em;
  color: var(--muted);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px) scale(.96); }
  to { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes breathe {
  0%, 100% { opacity: .65; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.04); }
}
@keyframes fade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
