/* Colours and spacing — change these to restyle the whole site */
:root {
  --bg: #0d0918;
  --bg-alt: #140f24;
  --surface: #1c1533;
  --surface-hover: #241b40;
  --text: #f1edfb;
  --muted: #a99fc4;
  --accent: #7c3aed;
  --accent-hover: #6d28d9;
  --accent-soft: #c9b8ff;
  --accent-text: #ffffff;
  --border: #2d2448;
  --steam: #1b2838;
  --coming: #f59e0b;
  --radius: 12px;
  --max-width: 1080px;
  --font-display: "Russo One", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-soft);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 16px;
}

.narrow {
  max-width: 760px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 9, 24, 0.9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo img {
  height: 40px;
  width: auto;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--text);
  cursor: pointer;
}

/* Hero banner */
.hero {
  padding: 88px 0 96px;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(124, 58, 237, 0.35), transparent 65%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}

.hero-logo {
  width: min(760px, 100%);
  height: auto;
  margin: 0 auto 28px;
  filter: drop-shadow(0 10px 40px rgba(124, 58, 237, 0.45));
}

.hero h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.lead {
  font-size: 1.25rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius);
  background: var(--accent);
  color: var(--accent-text);
  text-decoration: none;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.15s;
}

.button:hover {
  background: var(--accent-hover);
}

.button.secondary {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.button.secondary:hover {
  background: var(--surface-hover);
}

.button.steam {
  background: var(--steam);
  border-color: #2a475e;
}

.button.steam:hover {
  background: #2a475e;
}

.button svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* Sections */
.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section-title {
  font-size: 2rem;
  margin: 0 0 8px;
}

.section-intro {
  color: var(--muted);
  margin: 0 0 32px;
}

/* Game tiles */
.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.game-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s;
}

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

.game-cover {
  position: relative;
  aspect-ratio: 1232 / 706;
  background: #000;
}

.game-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.badge {
  position: absolute;
  z-index: 1;
  top: 10px;
  right: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--coming);
  color: #1a1000;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.game-body h3 {
  margin: 0 0 4px;
  font-size: 1.4rem;
}

.game-body .release {
  margin: 0 0 12px;
  color: var(--coming);
  font-weight: 600;
  font-size: 0.95rem;
}

.game-body p {
  margin: 0 0 16px;
  color: var(--muted);
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.platforms li {
  padding: 3px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
}

.game-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.game-actions .button {
  justify-content: center;
}

.store-row {
  display: flex;
  gap: 10px;
}

.store-row > * {
  flex: 1;
  justify-content: center;
}

.store-soon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.store-soon svg {
  width: 18px;
  height: 18px;
}

/* Support */
.support-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.support-box h2 {
  margin: 0 0 6px;
  font-size: 1.6rem;
}

.support-box p {
  margin: 0;
  color: var(--muted);
}

.email-link {
  font-size: 1.15rem;
  font-weight: 600;
  word-break: break-all;
}

/* Support form */
.support-form {
  display: grid;
  gap: 18px;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  display: grid;
  align-content: start;
  gap: 6px;
}

.field label {
  font-weight: 600;
}

.optional {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 11px 12px;
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.field textarea {
  resize: vertical;
  min-height: 120px;
}

.field select {
  appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23a99fc4' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field select:invalid {
  color: var(--muted);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: #f87171;
}

.hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.support-form .button {
  justify-self: start;
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.support-form .button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-status {
  margin: 0;
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

.form-status.success {
  color: #4ade80;
}

.form-status.error {
  color: #f87171;
}

/* Hidden spam trap */
.hp {
  position: absolute;
  left: -9999px;
}

.checklist {
  padding-left: 20px;
}

.checklist li {
  margin-bottom: 6px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq summary {
  font-weight: 600;
  cursor: pointer;
}

.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
}

/* Long text pages (privacy policy etc.) */
.page-header {
  padding: 56px 0 24px;
}

.page-header h1 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin: 0 0 8px;
}

.page-header p {
  color: var(--muted);
  margin: 0;
}

.prose {
  padding-bottom: 72px;
}

.prose h2 {
  font-size: 1.4rem;
  margin: 40px 0 12px;
}

.prose p,
.prose li {
  color: #d9d3ea;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 0.95rem;
}

.prose th,
.prose td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.prose th {
  color: var(--text);
}

.prose code {
  background: var(--surface);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.9em;
}

.table-wrap {
  overflow-x: auto;
}

.policy-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 12px;
}

.policy-list a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
}

.policy-list a:hover {
  border-color: var(--accent);
}

.policy-list img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

/* 404 */
.not-found {
  padding: 96px 0;
  text-align: center;
}

.not-found img {
  width: 160px;
  margin: 0 auto 24px;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-inner p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--text);
}

/* Phones */
@media (max-width: 640px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--bg-alt);
    border-bottom: 1px solid var(--border);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 16px;
  }

  .logo img {
    height: 32px;
  }

  .hero {
    padding: 56px 0 64px;
  }

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

  .support-box,
  .support-form {
    padding: 20px;
  }

  .form-row {
    grid-template-columns: 1fr;
  }
}
