:root {
  --forest-deep: #011915;
  --forest: #032f28;
  --lime: #e7fe25;
  --gold: #d9b457;
  --white: #fdfdfd;
  --coral: #ff5a45;
  --leaf: #9fc0a8;

  --display: 'Bricolage Grotesque', system-ui, sans-serif;
  --body: system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;

  --edge: rgba(217, 180, 87, 0.55);
  --edge-soft: rgba(217, 180, 87, 0.22);
  --maxw: 1140px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--forest-deep);
  color: var(--white);
  font-family: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

/* Faint isometric floor, echoing the Yard's tiled plaza. */
.tiles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background:
    repeating-linear-gradient(63.43deg, transparent 0 38px, rgba(159, 192, 168, 0.05) 38px 39px),
    repeating-linear-gradient(-63.43deg, transparent 0 38px, rgba(159, 192, 168, 0.05) 38px 39px),
    radial-gradient(120% 90% at 50% -10%, rgba(3, 47, 40, 0.9), var(--forest-deep) 60%);
}

main,
.nav,
.foot {
  position: relative;
  z-index: 1;
}

/* ---- shared brass double-frame: the game's own HUD surface ---- */
.frame {
  position: relative;
  background: linear-gradient(180deg, rgba(3, 47, 40, 0.82), rgba(1, 25, 21, 0.92));
  border: 2px solid var(--edge);
  border-radius: 16px;
}
.frame::after {
  content: '';
  position: absolute;
  inset: 5px;
  border: 1px solid var(--edge-soft);
  border-radius: 11px;
  pointer-events: none;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow--center {
  text-align: center;
  margin-bottom: 2.4rem;
}

/* ---- buttons ---- */
.btn {
  display: inline-block;
  font-family: var(--display);
  font-weight: 800;
  text-decoration: none;
  border-radius: 12px;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.btn--play {
  background: var(--lime);
  color: #101401;
  padding: 0.6rem 1.2rem;
  border: 2px solid rgba(217, 180, 87, 0.65);
  box-shadow: 0 0 0 rgba(231, 254, 37, 0);
}
.btn--play:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(231, 254, 37, 0.28);
}
.btn--lg {
  font-size: 1.15rem;
  padding: 0.85rem 1.8rem;
}

/* ---- nav ---- */
.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__brand img {
  height: 40px;
  width: auto;
}

/* ---- hero ---- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 5.5rem) 1.5rem clamp(3rem, 7vw, 5rem);
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.hero__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.3rem, 5.4vw, 4rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 1rem 0 1.3rem;
}
.hero__sub {
  color: var(--leaf);
  font-size: 1.08rem;
  max-width: 42ch;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
.hero__note {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--leaf);
}
.hero__shot {
  padding: 10px;
  overflow: hidden;
}
.hero__shot img {
  border-radius: 8px;
}
.frame__tag {
  position: absolute;
  top: -11px;
  left: 18px;
  z-index: 2;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest-deep);
  background: var(--gold);
  padding: 2px 9px;
  border-radius: 6px;
}

/* ---- section rhythm ---- */
.loop,
.cast,
.cta {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5rem) 1.5rem;
}

/* ---- the loop ---- */
.loop__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.step {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
}
.step__no {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.1em;
}
.step__no--coral {
  color: var(--coral);
}
.step__shot {
  margin: 0.9rem 0 1.1rem;
  border-radius: 9px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(217, 180, 87, 0.25);
}
.step__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.step__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.5rem;
  margin-bottom: 0.4rem;
}
.step__body {
  color: var(--leaf);
  font-size: 0.98rem;
}

/* ---- cast ---- */
.cast__row {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}
.cast__member {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.35rem;
  padding: 1.2rem 0.8rem;
  border-radius: 14px;
  background: radial-gradient(80% 60% at 50% 30%, rgba(3, 47, 40, 0.7), transparent 70%);
}
.cast__member img {
  height: 128px;
  width: auto;
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.45));
}
.cast__name {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.05rem;
  margin-top: 0.4rem;
}
.cast__line {
  color: var(--leaf);
  font-size: 0.85rem;
  max-width: 22ch;
}

/* ---- final cta ---- */
.cta__panel {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}
.cta__clock {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--gold);
  font-size: 0.85rem;
}
.cta__title {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 3.2rem);
  letter-spacing: -0.02em;
  margin: 0.6rem 0 1.6rem;
}
.cta__url {
  font-family: var(--mono);
  color: var(--leaf);
  margin-top: 1rem;
  font-size: 0.9rem;
}

/* ---- footer ---- */
.foot {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  border-top: 1px solid rgba(159, 192, 168, 0.12);
}
.foot img {
  height: 34px;
  width: auto;
  opacity: 0.85;
}
.foot p {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--leaf);
  letter-spacing: 0.08em;
}

/* ---- entrance ---- */
.hero__copy > *,
.hero__shot {
  animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero__copy > *:nth-child(2) {
  animation-delay: 0.06s;
}
.hero__copy > *:nth-child(3) {
  animation-delay: 0.12s;
}
.hero__copy > *:nth-child(4) {
  animation-delay: 0.18s;
}
.hero__shot {
  animation-delay: 0.1s;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---- responsive ---- */
@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .loop__grid {
    grid-template-columns: 1fr;
  }
  .cast__row {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 460px) {
  .cast__row {
    grid-template-columns: 1fr;
  }
  .nav__brand img {
    height: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
