:root {
  color-scheme: dark;
  --bg: #000;
  --blue: #22b8ff;
  --bright: #8cecff;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--blue);
  font-family: Arial, Helvetica, sans-serif;
}

body { min-height: 100vh; }

a { color: inherit; }

.home-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  overflow: hidden;
}

.logo,
.small-logo {
  color: #8cecff;
  -webkit-text-stroke: 0.055em #0675d8;
  paint-order: stroke fill;
  text-shadow:
    0 0 2px rgba(22, 168, 255, .7),
    0 0 12px rgba(22, 168, 255, .24),
    0 0 26px rgba(28, 169, 255, .12);
}

.logo {
  margin: 0;
  font-size: clamp(3.1rem, 10vw, 8.5rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: .92;
  text-align: center;
  user-select: none;
}

.home-menu {
  margin-top: 34px;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 240ms ease, transform 240ms ease;
}

body.interacted .home-menu,
.home-menu:focus-within {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.home-menu a,
.game-link {
  display: inline-block;
  text-decoration: none;
  font-size: clamp(1.15rem, 2.3vw, 1.55rem);
  font-weight: 700;
  letter-spacing: .08em;
  padding: 10px 18px;
  border-bottom: 1px solid transparent;
  transition: color 160ms ease, border-color 160ms ease, text-shadow 160ms ease;
}

.home-menu a:hover,
.home-menu a:focus-visible,
.game-link:hover,
.game-link:focus-visible {
  color: var(--bright);
  border-color: currentColor;
  text-shadow: 0 0 14px rgba(80, 210, 255, .45);
  outline: none;
}

.page-shell {
  width: min(900px, calc(100% - 48px));
  margin: 0 auto;
  padding: 56px 0 80px;
}

.small-logo {
  display: inline-block;
  font-size: 1.35rem;
  font-weight: 900;
  text-decoration: none;
}

.page-title {
  margin: 72px 0 28px;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  letter-spacing: -0.04em;
}

.game-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.game-link {
  padding-left: 0;
}

@media (prefers-reduced-motion: reduce) {
  .home-menu { transition: none; }
}
