/* monkgamez.com
   Themed on the monkgamez logo: its black, its red aura, its heavy white
   italic. Three shrines, one lit; the logo stands over them. */

:root {
  --black: #040302; /* the logo's own background */
  --niche: #0d0908;
  --red: #f80808; /* the aura */
  --red-deep: #a10505;
  --white: #f3f0ea;
  --grey: #a39d95;
  --line: #2b1412;
  --dr: #ffb547; /* DUSTRUNNER's own amber */
  --gutter: clamp(16px, 4vw, 56px);
  --body: 'Barlow', 'Segoe UI', system-ui, sans-serif;
  --display: 'Barlow Condensed', 'Bahnschrift', 'Arial Narrow', sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--body);
  font-size: 1.125rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

/* ------------------------------------------------------------------ facade */
.facade {
  position: relative;
  padding: clamp(14px, 3vh, 32px) var(--gutter) 0;
  /* (the aura, low behind the shrines) */
  background: radial-gradient(60% 55% at 50% 100%, rgba(248, 8, 8, 0.16), rgba(248, 8, 8, 0) 70%);
}
.alcoves {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1fr;
  align-items: end;
  gap: clamp(14px, 2.4vw, 40px);
}
/* the logo, over the first shrine */
.brand {
  grid-column: 1;
  grid-row: 1;
  align-self: start;
  justify-self: center;
  width: min(100%, 340px);
  margin: 0;
}
.brand img {
  width: 100%;
}
.alcove {
  position: relative;
  overflow: hidden;
  /* round arches: the radii are clipped to half the width */
  border-radius: 100vmax 100vmax 0 0;
  background: var(--niche);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
/* (the red rim, drawn inside so the arch clips nothing) */
.alcove::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 2px rgba(248, 8, 8, 0.4);
  pointer-events: none;
}
/* DUSTRUNNER in the middle, tallest; the unfinished two either side */
.alcove.lit {
  grid-column: 2;
  grid-row: 1;
  height: clamp(540px, calc(100vh - 70px), 820px);
  box-shadow:
    0 0 36px rgba(248, 8, 8, 0.38),
    0 0 110px rgba(248, 8, 8, 0.16);
}
.alcove.lit::before {
  box-shadow: inset 0 0 0 2px var(--red);
}
.alcove.veiled {
  align-self: end;
  height: clamp(380px, calc((100vh - 70px) * 0.58), 480px);
  background:
    radial-gradient(90% 55% at 50% 100%, rgba(248, 8, 8, 0.2), rgba(248, 8, 8, 0) 70%),
    var(--niche);
}
.alcove.veiled::after {
  /* (the monk, barely there: an unlit shrine) */
  content: '';
  position: absolute;
  inset: 0;
  background: url('/assets/brand/ghost-monk.webp') center 32% / min(62%, 240px) no-repeat;
  opacity: 0.2;
  pointer-events: none;
}
.alcove.veiled:nth-child(3) {
  grid-column: 1;
  grid-row: 1;
}
.alcove.veiled:nth-child(4) {
  grid-column: 3;
  grid-row: 1;
}
.sill {
  height: 2px;
  margin: 0 calc(var(--gutter) * -1);
  background: linear-gradient(90deg, rgba(248, 8, 8, 0), rgba(248, 8, 8, 0.75) 20%, rgba(248, 8, 8, 0.75) 80%, rgba(248, 8, 8, 0));
  box-shadow: 0 0 18px rgba(248, 8, 8, 0.45);
}

/* the lit one: the game's own picture fills it */
.art {
  position: absolute;
  inset: 0;
}
.art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 40%;
  animation: lamp 1.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes lamp {
  from {
    opacity: 0;
    filter: brightness(0.35) saturate(0.6);
  }
  to {
    opacity: 1;
    filter: none;
  }
}
.lit::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 3, 2, 0.94) 0%, rgba(4, 3, 2, 0.55) 30%, rgba(4, 3, 2, 0) 58%);
  pointer-events: none;
}
.plaque {
  position: relative;
  z-index: 3;
  padding: clamp(20px, 2.6vw, 36px);
}
.dr-logo {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.75rem, 5vw, 4.5rem);
  line-height: 0.9;
  letter-spacing: 0.03em;
  color: #f4ede0;
}
.dr-logo span {
  color: var(--dr);
}
.pitch {
  max-width: 34ch;
  margin: 14px 0 22px;
  color: #e2dbd0;
}
.act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
}
/* the logo's banner: a red slab with slanted ends */
.play {
  display: inline-block;
  padding: 11px 34px 12px;
  background: linear-gradient(#e70b0b, #b10606);
  color: #fff;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 1.375rem;
  line-height: 1;
  letter-spacing: 0.02em;
  text-decoration: none;
  clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
  transition: filter 0.15s;
}
.play:hover {
  filter: brightness(1.15);
}
.play:focus-visible {
  clip-path: none;
  outline-offset: 4px;
}
.live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: #e2dbd0;
  font-size: 1rem;
}
.live i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(248, 8, 8, 0.9);
}
.needs {
  margin: 14px 0 0;
  color: var(--grey);
  font-size: 1rem;
}

/* the unfinished two */
.veiled .plaque h2 {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: 2rem;
  line-height: 1;
  letter-spacing: 0.01em;
}
.veiled .state {
  margin: 6px 0 10px;
  color: var(--red);
  font-weight: 600;
  font-size: 1rem;
}
.veiled .plaque p:last-child {
  margin: 0;
  max-width: 30ch;
  color: var(--grey);
  font-size: 1rem;
  line-height: 1.5;
}

/* ------------------------------------------------------------------ DUSTRUNNER */
.game {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  padding: clamp(64px, 11vh, 120px) var(--gutter);
}
.dr-logo.small {
  font-size: clamp(2.25rem, 3.6vw, 3.25rem);
}
.game-lead {
  max-width: 58ch;
  margin: 18px 0 0;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: #e2dbd0;
}
.game-text .play {
  margin-top: 30px;
}
.shots {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.shot {
  margin: 0;
  overflow: hidden;
  background: var(--niche);
  box-shadow: 0 0 0 1px var(--line);
}
.shot.wide {
  grid-column: 1 / -1;
}
.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ------------------------------------------------------------------ foot */
.foot {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 22px var(--gutter) 30px;
  border-top: 1px solid var(--line);
  color: var(--grey);
  font-size: 0.9375rem;
}
.foot p {
  margin: 0;
}
.foot-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
}

/* ------------------------------------------------------------------ narrow */
@media (max-width: 900px) {
  .game {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .alcoves {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
  .brand {
    grid-column: 1 / -1;
    width: min(72vw, 300px);
    margin-bottom: 6px;
  }
  .alcove.lit {
    grid-column: 1 / -1;
    grid-row: 2;
    height: auto;
    min-height: 0;
    aspect-ratio: 4 / 5.4;
    max-height: 86vh;
  }
  .alcove.veiled,
  .alcove.veiled:nth-child(3),
  .alcove.veiled:nth-child(4) {
    grid-column: auto;
    grid-row: 3;
    height: auto;
    min-height: 300px;
  }
  .veiled .plaque {
    padding: 16px;
  }
  .veiled .plaque h2 {
    font-size: 1.625rem;
  }
}
@media (max-width: 420px) {
  .alcoves {
    grid-template-columns: 1fr;
  }
  .alcove.veiled,
  .alcove.veiled:nth-child(3),
  .alcove.veiled:nth-child(4) {
    grid-row: auto;
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .art img {
    animation: none;
  }
}

/* ------------------------------------------------------------------ 404 */
.lost-main {
  min-height: 100vh;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 8px;
  padding: var(--gutter);
  text-align: center;
}
.lost-logo {
  width: min(70vw, 300px);
}
.lost h1 {
  margin: 10px 0 18px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.1;
}
