:root {
  color-scheme: dark;
  --bg: #11151c;
  --panel: #171d27;
  --text: #f7f1dc;
  --muted: #c5cad6;
  --accent: #f3c64b;
  --cool: #65d6c5;
  --line: #303744;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
}

.footer,
.plain-page,
.support-page,
.admin-page,
.landing {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: min(720px, calc(100vh - 128px));
  display: grid;
  align-content: space-between;
  gap: clamp(28px, 8vh, 92px);
  overflow: visible;
  margin: 16px 0 clamp(180px, 18vw, 260px);
  padding: clamp(24px, 5vw, 64px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0d1118;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(
      90deg,
      rgba(17, 21, 28, 0.94),
      rgba(17, 21, 28, 0.66) 48%,
      rgba(17, 21, 28, 0.18)
    ),
    linear-gradient(0deg, rgba(17, 21, 28, 0.84), rgba(17, 21, 28, 0) 48%);
}

.eyebrow {
  color: var(--cool);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 14px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.actions .button {
  flex: 1;
  min-width: 200px;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  margin: 0 0 24px;
}

.lead,
.hero-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.7;
  max-width: 760px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  margin-top: 18px;
  padding: 0 18px;
  border: 0;
  border-radius: 6px;
  background: var(--accent);
  color: #171511;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  overflow: hidden;
  border-radius: 8px;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-heading-panel {
  position: relative;
  z-index: 2;
  align-self: start;
  width: min(760px, 100%);
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: translateY(-24px);
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.68);
}

.hero-body-panel {
  position: relative;
  z-index: 2;
  align-self: end;
  width: min(720px, 100%);
  min-width: 0;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid rgba(247, 241, 220, 0.16);
  border-radius: 8px;
  background: rgba(13, 17, 24, 0.12);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  transform: translateY(70%);
}

.hero-heading-panel h1 {
  margin-bottom: 0;
}

.footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px 24px;
  align-items: start;
  padding: 24px 0 36px;
}

.footer p {
  grid-column: 2;
  margin: 0;
  text-align: center;
}

.privacy-link {
  grid-column: 3;
  justify-self: end;
}

.plain-page,
.support-page,
.admin-page {
  padding: 32px 0 72px;
}

.plain-page h1,
.support-page h1,
.admin-page h1 {
  font-size: clamp(2.4rem, 7vw, 4.8rem);
  margin-top: 56px;
}

.game-banner {
  margin: 42px 0 28px;
  min-height: 220px;
  padding: 32px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, #171d27, #222718);
  background-position: center;
  background-size: cover;
}

.support-form,
.admin-page form {
  display: grid;
  gap: 18px;
  max-width: 760px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0d1118;
  color: var(--text);
  font: inherit;
  padding: 12px;
}

textarea {
  resize: vertical;
}

.honeypot {
  display: none;
}

.errors {
  max-width: 760px;
  margin-bottom: 20px;
  border: 1px solid #8f3e3e;
  color: #ffd4d4;
  padding: 12px 16px;
}

.game-list {
  display: grid;
  grid-template-columns: minmax(0, 760px);
  gap: 16px;
  margin-top: 28px;
}

.game-link {
  min-height: 172px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--text);
  display: grid;
  overflow: hidden;
  text-decoration: none;
}

.game-link img,
.game-link-fallback {
  width: 100%;
  aspect-ratio: 1024 / 500;
  object-fit: cover;
}

.game-link-fallback {
  display: grid;
  place-items: center;
  background: #0d1118;
  color: var(--accent);
  font-size: 3rem;
  font-weight: 950;
}

.game-link strong {
  padding: 14px;
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    margin-top: 4px;
    margin-bottom: 360px;
    padding: 18px;
    gap: 22px;
  }

  .hero-body-panel {
    padding: 20px;
  }

  .hero-heading-panel {
    transform: translateY(-8px);
  }

  .hero h1 {
    font-size: 2.45rem;
  }

  .footer {
    display: grid;
  }
}
