:root {
  --primary: #ff87d7;
  --accent: #c45868;
  --bg: #17101a;
  --surface: #241826;
  --text: #f7e8f0;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, var(--bg), var(--surface) 52%, var(--bg));
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.masthead {
  min-height: 94px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--accent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
}

.brand-mark {
  color: var(--primary);
  font-size: 2.8rem;
  line-height: 1;
  letter-spacing: -0.14em;
  text-shadow: 0 0 20px var(--accent);
}

.brand-rule {
  width: 42px;
  height: 4px;
  background: var(--accent);
  transform: skew(-25deg);
}

.masthead-note,
.section-label,
.eyebrow,
.lobby-count,
.game-meta,
.launch,
.footer {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.masthead-note {
  color: var(--primary);
}

.hero {
  display: grid;
  grid-template-columns: 1fr 280px;
  align-items: end;
  gap: 36px;
  padding: 90px 0 72px;
}

.eyebrow,
.section-label {
  color: var(--primary);
  margin: 0 0 18px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(3.4rem, 9vw, 7.8rem);
  line-height: .86;
  letter-spacing: -.08em;
  text-transform: uppercase;
}

h1 em {
  color: var(--primary);
  font-style: normal;
}

.tagline {
  color: var(--text);
  font-size: 1.05rem;
  margin-bottom: 0;
}

.hero-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid var(--accent);
  color: var(--text);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero-panel strong {
  width: 100%;
  color: var(--primary);
  font-size: 1.35rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 14px var(--primary);
}

.panel-line {
  flex: 1;
  height: 1px;
  background: var(--accent);
}

.intro {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 36px;
  padding: 24px 0 56px;
  border-top: 1px solid var(--accent);
}

.intro-text {
  max-width: 790px;
  margin: 0;
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  line-height: 1.55;
}

.lobby-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 3px solid var(--primary);
  padding-bottom: 12px;
  margin-bottom: 18px;
}

.lobby-heading h2 {
  margin: 0;
  font-size: 1.4rem;
  letter-spacing: -.03em;
  text-transform: uppercase;
}

.lobby-count {
  color: var(--primary);
}

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

.game-card {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--accent);
  transition: transform .2s ease, border-color .2s ease;
}

.game-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.game-card.featured {
  grid-column: span 2;
}

.game-link {
  min-width: 0;
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 255px;
}

.featured .game-link {
  grid-template-columns: 58% 1fr;
  min-height: 330px;
}

.art {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-right: 1px solid var(--accent);
  background: var(--bg);
}

.art svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  min-height: 100%;
  object-fit: cover;
  overflow: hidden;
}

.art-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--primary);
  color: var(--primary);
  background: var(--bg);
  font-size: .72rem;
  font-weight: 800;
}

.game-info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

.game-meta {
  width: 100%;
  display: flex;
  justify-content: space-between;
  color: var(--primary);
}

.game-meta span:last-child {
  font-size: 1.3rem;
  line-height: 1;
}

.game-info h3 {
  max-width: 290px;
  margin: 28px 0 10px;
  font-size: clamp(1.15rem, 2vw, 1.7rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.game-info p {
  max-width: 310px;
  margin-bottom: 20px;
  color: var(--text);
  font-size: .92rem;
  line-height: 1.45;
}

.launch {
  margin-top: auto;
  color: var(--primary);
}

.launch b {
  margin-left: 7px;
  font-size: 1.15rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 70px 0 26px;
  color: var(--accent);
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 64px 0 52px;
  }

  .hero-panel {
    max-width: 360px;
  }

  .game-link,
  .featured .game-link {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .art {
    border-right: 0;
    border-bottom: 1px solid var(--accent);
  }

  .art svg {
    min-height: 0;
  }

  .game-info {
    min-height: 235px;
  }
}

@media (max-width: 600px) {
  .site-shell {
    width: min(100% - 28px, 520px);
  }

  .masthead {
    min-height: 76px;
  }

  .masthead-note {
    max-width: 130px;
    text-align: right;
    line-height: 1.3;
  }

  .brand-mark {
    font-size: 2.3rem;
  }

  .hero {
    padding: 54px 0 42px;
  }

  h1 {
    font-size: clamp(3.1rem, 17vw, 5rem);
  }

  .intro {
    display: block;
    padding-bottom: 40px;
  }

  .intro .section-label {
    margin-bottom: 14px;
  }

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

  .game-card.featured {
    grid-column: auto;
  }

  .game-info {
    min-height: 220px;
    padding: 20px;
  }

  .footer {
    flex-direction: column;
    gap: 8px;
    padding-top: 50px;
  }
}