@font-face {
  font-family: "Lilita One";
  src: url("assets/LilitaOne-Regular.ttf") format("truetype");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  --cream: #fff3d6;
  --gold: #f5b847;
  --gold-bright: #ffda68;
  --orange: #f28a28;
  --ink: #0f111a;
  --outline: #160b1f;
  --steam: #171d25;
  --steam-dark: #050506;
  --steam-edge: #d2a645;
}

* { box-sizing: border-box; }
html, body {
  min-height: 100%;
  overflow: hidden;
}

html {
  scrollbar-color: #765087 #0b0b12;
  scrollbar-width: thin;
}

::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: #0b0b12; }
::-webkit-scrollbar-thumb {
  background: #765087;
  border: 2px solid #0b0b12;
  border-radius: 99px;
}

body {
  margin: 0;
  color: var(--cream);
  background: var(--ink);
  font-family: "Lilita One", system-ui, sans-serif;
}

.landing {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
}

.background,
.shade {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.background {
  background: url("assets/hero-dungeon.webp") center / cover no-repeat;
  transform: scale(1.01);
  animation: breathe 18s ease-in-out infinite alternate;
}

.shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 7, 13, .9) 0%, rgba(7, 8, 15, .72) 31%, rgba(7, 8, 15, .14) 63%, rgba(7, 8, 15, .08) 100%),
    linear-gradient(0deg, rgba(5, 6, 12, .88), transparent 28%, rgba(7, 6, 13, .2));
}

.hero {
  width: min(100% - 96px, 1180px);
  margin: auto 0;
  padding: 24px 0 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.game-logo {
  position: relative;
  z-index: 2;
  width: clamp(270px, 24vw, 320px);
  height: auto;
  margin: 0 auto -18px;
  filter: drop-shadow(0 18px 24px rgba(1, 0, 5, .72));
}

.content-panel {
  position: relative;
  width: min(100%, 570px);
  margin: 0 auto;
  padding: 32px 38px 28px;
  border: 1px solid rgba(92, 57, 121, .84);
  border-radius: 18px;
  background:
    radial-gradient(circle at 10% 0%, rgba(126, 61, 133, .22), transparent 260px),
    linear-gradient(145deg, rgba(20, 24, 36, .96), rgba(10, 12, 20, .93));
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 211, .09),
    inset 0 -20px 38px rgba(0, 0, 0, .2),
    0 24px 60px rgba(0, 0, 0, .5),
    0 0 0 5px rgba(12, 8, 20, .26);
  backdrop-filter: blur(10px);
}

.content-panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 13%;
  width: 74%;
  height: 1px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, rgba(157, 108, 190, .78), transparent);
  box-shadow: 0 0 12px rgba(117, 68, 151, .35);
}

.genre {
  margin: 0 0 8px;
  color: var(--gold-bright);
  font-size: .94rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  -webkit-text-stroke: 1.5px var(--outline);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .38);
}

h1 {
  margin: 0 0 15px;
  color: var(--cream);
  font-size: clamp(2.6rem, 4vw, 4.05rem);
  font-weight: 400;
  line-height: .88;
  letter-spacing: .005em;
  -webkit-text-stroke: clamp(3px, .075em, 5px) var(--outline);
  paint-order: stroke fill;
  text-shadow:
    0 5px 0 #6b311d,
    0 9px 16px rgba(0, 0, 0, .5);
}

h1 span {
  color: var(--gold-bright);
  text-shadow:
    0 5px 0 #9d451d,
    0 9px 16px rgba(0, 0, 0, .5);
}

.hook {
  max-width: 430px;
  margin: 0 auto 9px;
  color: var(--gold-bright);
  font-size: clamp(1.15rem, 2vw, 1.34rem);
  line-height: 1.08;
  letter-spacing: .015em;
  -webkit-text-stroke: 1.5px var(--outline);
  paint-order: stroke fill;
  text-shadow: 0 3px 0 rgba(0, 0, 0, .34);
}

.description {
  max-width: 470px;
  margin: 0 auto 17px;
  color: #f6e8ce;
  font-size: 1rem;
  line-height: 1.4;
  -webkit-text-stroke: 1.4px #09070c;
  paint-order: stroke fill;
  text-shadow: 0 3px 5px rgba(0, 0, 0, .6);
}

.game-loop {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  max-width: 500px;
  margin: 0 auto 21px;
}

.game-loop span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 5px 10px;
  color: rgba(255, 243, 214, .86);
  background: rgba(39, 27, 54, .64);
  border: 1px solid rgba(117, 77, 145, .62);
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .045em;
  line-height: 1;
  white-space: nowrap;
  text-transform: uppercase;
  text-shadow: 0 2px 3px rgba(0, 0, 0, .45);
}

.cta-group {
  display: grid;
  gap: 10px;
  width: 100%;
}

.cta-button {
  position: relative;
  width: 100%;
  min-height: 58px;
  height: 58px;
  padding: 9px 12px 9px 20px;
  color: var(--cream);
  text-decoration: none;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease, filter .16s ease;
  background: linear-gradient(135deg, #242a35, #12161e);
  border: 1px solid rgba(255, 243, 214, .19);
  border-radius: 11px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  overflow: hidden;
  box-shadow: 0 5px 14px rgba(0, 0, 0, .3), inset 0 1px 0 rgba(255,255,255,.06);
}

.cta-button::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 18%, rgba(255,255,255,.08) 48%, transparent 78%);
  transform: translateX(-120%);
  transition: transform .45s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 218, 104, .72);
  filter: brightness(1.08);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .42), 0 0 0 2px rgba(245, 184, 71, .1);
}

.cta-button:hover::before {
  transform: translateX(120%);
}

.cta-button:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 4px;
}

.cta-copy {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 100%;
  font-size: .92rem;
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: #f6e8d3;
  justify-self: start;
  text-align: left;
  text-shadow: 0 2px 4px rgba(0,0,0,.45);
}

.cta-mark {
  position: relative;
  z-index: 1;
  width: 124px;
  min-width: 124px;
  height: 38px;
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid rgba(255,255,255,.14);
}

.steam-button .cta-mark {
  padding: 3px 8px;
}

.steam-button .cta-mark img {
  width: 108px;
  max-width: 100%;
  height: auto;
  display: block;
}

.discord-button {
  background: linear-gradient(135deg, #5865f2, #3d49ba);
  border-color: rgba(151, 160, 255, .65);
  box-shadow: 0 5px 14px rgba(30, 34, 110, .38), inset 0 1px 0 rgba(255,255,255,.16);
}

.discord-icon svg {
  width: 25px;
  height: 25px;
  fill: #fff;
}

.discord-button .cta-mark {
  border-left-color: rgba(255,255,255,.25);
}

.steam-button.is-unconfigured { cursor: default; }
.steam-button.is-unconfigured:hover { transform: none; }

.coming-soon {
  margin: 10px 0 0;
  color: rgba(255, 243, 214, .62);
  font-size: .78rem;
  letter-spacing: .06em;
  text-align: center;
  text-transform: uppercase;
  -webkit-text-stroke: 1px rgba(0, 0, 0, .75);
  paint-order: stroke fill;
}

.studio-credit {
  width: min(100%, 570px);
  margin: 13px 0 0;
  padding-top: 11px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(92, 57, 121, .48);
  opacity: .9;
}

.studio-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  text-decoration: none;
}

.studio-logo {
  width: min(122px, 32vw);
  max-width: 122px;
  height: auto;
  display: block;
  opacity: 0.92;
}

.studio-credit p {
  margin: 0;
  color: rgba(255, 243, 214, .66);
  font-size: .68rem;
  letter-spacing: .03em;
  text-align: right;
  -webkit-text-stroke: 1px rgba(0, 0, 0, .7);
  paint-order: stroke fill;
}

.embers i {
  position: absolute;
  z-index: -1;
  left: var(--x);
  bottom: var(--y);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #ffd46b;
  box-shadow: 0 0 10px 3px rgba(255, 139, 38, .5);
  opacity: .75;
  animation: ember 5s ease-in-out infinite var(--delay);
}

.embers i:nth-child(1) { --x: 9%; --y: 15%; --delay: -1s; }
.embers i:nth-child(2) { --x: 38%; --y: 10%; --delay: -3.4s; }
.embers i:nth-child(3) { --x: 62%; --y: 23%; --delay: -2.1s; }
.embers i:nth-child(4) { --x: 82%; --y: 18%; --delay: -4.5s; }
.embers i:nth-child(5) { --x: 94%; --y: 35%; --delay: -.4s; }

@keyframes breathe { to { transform: scale(1.045); } }
@keyframes ember { 50% { transform: translateY(-28px) scale(.5); opacity: .2; } }

@media (max-width: 760px) {
  html, body { overflow-y: auto; }
  .landing { overflow-y: auto; }

  .background { background-position: 58% center; }

  .shade {
    background:
      linear-gradient(0deg, rgba(5, 6, 12, .97) 0%, rgba(6, 7, 13, .88) 53%, rgba(6, 7, 13, .26) 83%, rgba(7, 6, 13, .22)),
      linear-gradient(90deg, rgba(5, 7, 13, .25), transparent);
  }

  .hero {
    width: min(100% - 28px, 520px);
    padding: 18px 0 16px;
    align-items: center;
  }

  .game-logo {
    width: min(65vw, 275px);
    margin: 0 0 -16px;
  }

  .content-panel {
    padding: 29px 22px 23px;
    text-align: center;
    backdrop-filter: blur(6px);
  }

  .genre { font-size: .78rem; }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(2.45rem, 12vw, 3.45rem);
  }

  .hook {
    max-width: 330px;
    margin-bottom: 8px;
    font-size: 1.08rem;
  }

  .description {
    margin-inline: auto;
    font-size: 1rem;
    line-height: 1.32;
  }

  .game-loop {
    gap: 6px;
    margin-bottom: 18px;
  }

  .game-loop span {
    padding-inline: 8px;
    font-size: .66rem;
  }

  .cta-button {
    min-height: 54px;
    height: 54px;
    padding: 8px 10px 8px 16px;
  }

  .cta-copy { font-size: .91rem; }
  .cta-mark {
    width: 108px;
    min-width: 108px;
    height: 34px;
  }
  .steam-button .cta-mark img { width: 94px; }

  .discord-icon svg {
    width: 21px;
    height: 21px;
  }

  .studio-logo {
    width: min(108px, 31vw);
  }

  .studio-credit {
    width: 100%;
    gap: 10px;
  }

  .studio-credit p {
    max-width: 190px;
    font-size: .62rem;
  }
}

@media (max-height: 760px) and (min-width: 761px) {
  .hero { padding-top: 12px; padding-bottom: 12px; }
  .game-logo { width: 225px; margin-bottom: -16px; }
  .content-panel { width: 510px; padding: 25px 31px 20px; }
  h1 { font-size: 3.2rem; }
  .description { font-size: 1rem; margin-bottom: 18px; }
  .game-loop { margin-bottom: 16px; }
  .cta-button { min-height: 58px; height: 58px; }
  .studio-credit { margin-top: 11px; padding-top: 10px; }
  .studio-logo { width: 106px; }
  .studio-credit p { font-size: .64rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
