@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@400;600;700&family=Inter:wght@400;600;700&display=swap');

:root {
  --bg: #080a12;
  --panel: rgba(20, 24, 39, 0.86);
  --panel-strong: #111522;
  --text: #f4f6ff;
  --muted: #aeb6d0;
  --line: rgba(255, 255, 255, 0.12);
  --cyan: #56efff;
  --violet: #a878ff;
  --pink: #ff5fd2;
  --yellow: #ffe268;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 20%, rgba(80, 75, 190, 0.18), transparent 34rem),
    radial-gradient(circle at 85% 8%, rgba(255, 70, 190, 0.12), transparent 30rem),
    linear-gradient(180deg, #080a12 0%, #0c1020 52%, #07090f 100%);
  font-family: Inter, system-ui, sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.15;
  background-image:
    linear-gradient(rgba(86, 239, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 239, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 75%);
}

.scanlines {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 20;
  opacity: 0.04;
  background: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 3px,
    #fff 4px
  );
}

a {
  color: inherit;
}

.site-header,
.site-footer,
main {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  text-decoration: none;
  font-family: "Chakra Petch", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(86, 239, 255, 0.7);
  background: rgba(86, 239, 255, 0.08);
  box-shadow: 0 0 24px rgba(86, 239, 255, 0.12);
}

.brand-text {
  font-size: 1.08rem;
}

.top-nav {
  display: flex;
  gap: 24px;
}

.top-nav a,
.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--cyan);
}

.hero {
  min-height: 620px;
  padding: 110px 0 70px;
  display: grid;
  align-content: center;
  position: relative;
}

.hero::after {
  content: "";
  width: min(36vw, 430px);
  aspect-ratio: 1;
  position: absolute;
  right: 1%;
  top: 14%;
  border: 1px solid rgba(86, 239, 255, 0.18);
  border-radius: 50%;
  box-shadow:
    0 0 0 40px rgba(86, 239, 255, 0.025),
    0 0 0 80px rgba(168, 120, 255, 0.025),
    inset 0 0 60px rgba(86, 239, 255, 0.06);
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(86, 239, 255, 0.15) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, rgba(86, 239, 255, 0.15) 50%, transparent 50.2%);
  transform: rotate(-8deg);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-family: "Chakra Petch", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: "Chakra Petch", sans-serif;
  margin-top: 0;
}

h1 {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3.7rem, 10vw, 8.2rem);
  line-height: 0.88;
  letter-spacing: -0.065em;
  text-transform: uppercase;
}

h1 span {
  color: transparent;
  -webkit-text-stroke: 2px var(--cyan);
  text-shadow: 0 0 28px rgba(86, 239, 255, 0.25);
}

.hero-copy {
  max-width: 620px;
  margin: 0 0 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 4px;
  font: 700 0.86rem "Chakra Petch", sans-serif;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.button-primary {
  color: #071015;
  background: var(--cyan);
  box-shadow: 0 0 26px rgba(86, 239, 255, 0.22);
}

.button-primary:hover,
.button-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 34px rgba(86, 239, 255, 0.38);
}

.button-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.status-panel {
  width: fit-content;
  margin-top: 36px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.status-light {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #75ff9b;
  box-shadow: 0 0 14px #75ff9b;
}

.games-section {
  padding: 90px 0 110px;
  border-top: 1px solid var(--line);
}

.section-heading {
  margin-bottom: 34px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.section-heading h2,
.about-section h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
}

.section-note {
  max-width: 370px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.game-card {
  overflow: hidden;
  min-height: 490px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 60px rgba(0, 0, 0, 0.24);
  transition: transform 180ms ease, border-color 180ms ease;
}

.game-card:hover {
  transform: translateY(-6px);
  border-color: rgba(86, 239, 255, 0.5);
}

.game-art {
  height: 260px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.art-label {
  position: absolute;
  top: 16px;
  right: 18px;
  color: rgba(255, 255, 255, 0.7);
  font: 700 0.8rem "Chakra Petch", sans-serif;
}

.minefield-art {
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 95, 210, 0.3), transparent 36%),
    #111526;
}

.pixel-grid {
  position: absolute;
  inset: 38px;
  background-image:
    linear-gradient(rgba(86, 239, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 239, 255, 0.22) 1px, transparent 1px);
  background-size: 28px 28px;
  transform: perspective(500px) rotateX(57deg) rotateZ(-8deg);
  box-shadow: 0 0 45px rgba(86, 239, 255, 0.12);
}

.star-art {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(168, 120, 255, 0.24), transparent 38%),
    linear-gradient(180deg, #151329, #080a12);
}

.stars {
  position: absolute;
  inset: 0;
  opacity: 0.6;
  background-image:
    radial-gradient(circle at 10% 15%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 70% 22%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 35% 60%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 82% 76%, #fff 0 1px, transparent 2px),
    radial-gradient(circle at 22% 85%, #fff 0 1px, transparent 2px);
}

.ship {
  color: var(--pink);
  font-size: 6rem;
  filter: drop-shadow(0 0 22px rgba(255, 95, 210, 0.45));
  transform: rotate(0deg);
}

.settlement-art {
  background:
    linear-gradient(180deg, rgba(255, 226, 104, 0.18), transparent 50%),
    linear-gradient(180deg, #27203d, #111522);
}

.mountain {
  position: absolute;
  bottom: -55px;
  width: 250px;
  height: 230px;
  background: linear-gradient(135deg, #393154, #1d1b31);
  transform: rotate(45deg);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.mountain-one {
  left: -50px;
}

.mountain-two {
  right: -70px;
  width: 290px;
  height: 290px;
}

.tower {
  position: absolute;
  left: 50%;
  top: 46%;
  z-index: 2;
  color: var(--yellow);
  font-size: 5rem;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 22px rgba(255, 226, 104, 0.28));
}

.game-card-body {
  padding: 25px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.game-kicker {
  margin: 0 0 8px;
  color: var(--pink);
  font: 700 0.72rem "Chakra Petch", sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.game-card h3 {
  margin-bottom: 12px;
  font-size: 1.65rem;
}

.game-card p:not(.game-kicker) {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.65;
}

.coming-soon {
  width: fit-content;
  margin-top: auto;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--cyan);
  font: 700 0.74rem "Chakra Petch", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.about-section {
  max-width: 780px;
  padding: 110px 0 140px;
}

.about-section p:last-child {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
}

.site-footer {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .hero::after {
    opacity: 0.45;
  }

  .game-grid {
    grid-template-columns: 1fr;
  }

  .game-card {
    min-height: 0;
  }

  .game-art {
    height: 230px;
  }
}

@media (max-width: 650px) {
  .site-header {
    min-height: 74px;
  }

  .brand-text {
    display: none;
  }

  .top-nav {
    gap: 14px;
    font-size: 0.88rem;
  }

  .hero {
    min-height: 560px;
    padding-top: 80px;
  }

  .hero::after {
    width: 260px;
    top: 22%;
    right: -15%;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 5.2rem);
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .site-footer {
    padding: 26px 0;
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}

.play-now {
  color: #071015;
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 22px rgba(86, 239, 255, 0.2);
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.play-now:hover,
.play-now:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(86, 239, 255, 0.38);
}


/* DMD Coins channel banner */
.channel-promo {
  min-height: 430px;
  margin: 0 0 105px;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(390px, 0.82fr);
  overflow: hidden;
  border: 1px solid rgba(255, 226, 104, 0.24);
  border-radius: 10px;
  background: rgba(13, 16, 27, 0.92);
  box-shadow:
    0 26px 90px rgba(0, 0, 0, 0.38),
    0 0 45px rgba(255, 95, 210, 0.06);
}

.channel-artwork {
  min-height: 430px;
  position: relative;
  display: block;
  overflow: hidden;
  color: var(--text);
  text-decoration: none;
  background: #160f1c;
}

.channel-artwork img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 500ms ease, filter 500ms ease;
}

.channel-artwork:hover img,
.channel-artwork:focus-visible img {
  transform: scale(1.025);
  filter: saturate(1.08) contrast(1.03);
}

.channel-artwork:focus-visible {
  outline: 2px solid var(--yellow);
  outline-offset: -2px;
}

.channel-artwork-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 35%, rgba(5, 6, 12, 0.18) 56%, rgba(5, 6, 12, 0.92) 100%),
    linear-gradient(90deg, rgba(5, 6, 12, 0.22), transparent 45%);
}

.channel-artwork-copy {
  max-width: 520px;
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 26px;
  display: grid;
  gap: 7px;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.85);
}

.channel-artwork-copy strong {
  font: 700 clamp(2rem, 5vw, 3.8rem) "Chakra Petch", sans-serif;
  line-height: 0.95;
  letter-spacing: -0.035em;
  text-transform: uppercase;
}

.channel-artwork-copy > span:last-child {
  max-width: 470px;
  color: rgba(244, 246, 255, 0.84);
  line-height: 1.55;
}

.channel-badge {
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid rgba(255, 226, 104, 0.62);
  border-radius: 3px;
  color: var(--yellow);
  background: rgba(8, 10, 18, 0.72);
  font: 700 0.68rem "Chakra Petch", sans-serif;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.channel-video-panel {
  min-width: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 95, 210, 0.13), transparent 18rem),
    rgba(12, 15, 25, 0.96);
}

.channel-video-heading {
  margin-bottom: 16px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.channel-video-heading .eyebrow {
  margin-bottom: 7px;
  color: var(--yellow);
}

.channel-video-heading h2 {
  margin: 0;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  line-height: 1;
}

.sound-button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.035);
  font: 700 0.7rem "Chakra Petch", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.sound-button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.sound-button:not(:disabled):hover,
.sound-button:not(:disabled):focus-visible,
.sound-button[aria-pressed="true"] {
  color: #080a12;
  border-color: var(--yellow);
  background: var(--yellow);
}

.youtube-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 5px;
  background: #000;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
}

.youtube-frame iframe,
.youtube-frame > div {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

.channel-video-footer {
  margin-top: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.78rem;
}

.channel-video-footer a {
  color: var(--yellow);
  text-decoration: none;
  font-weight: 700;
}

.channel-video-footer a:hover,
.channel-video-footer a:focus-visible {
  text-decoration: underline;
}

@media (max-width: 980px) {
  .channel-promo {
    grid-template-columns: 1fr;
  }

  .channel-artwork {
    min-height: clamp(320px, 55vw, 520px);
  }

  .channel-video-panel {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
}

@media (max-width: 650px) {
  .top-nav a:first-child {
    display: none;
  }

  .channel-promo {
    margin-bottom: 78px;
  }

  .channel-artwork {
    min-height: 300px;
  }

  .channel-artwork-copy {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .channel-video-panel {
    padding: 18px;
  }

  .channel-video-heading {
    align-items: start;
    flex-direction: column;
  }

  .channel-video-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
