:root {
  --ink: #13090a;
  --paper: #f4ead7;
  --felt: #260c12;
  --felt-light: #4b151e;
  --red: #8f2630;
  --red-bright: #b84548;
  --gold: #d99b3d;
  --bone: #f8f0e2;
  --muted: #c9bba8;
  --line: rgba(248, 240, 226, 0.2);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--felt);
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--bone);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  background:
    radial-gradient(circle at 50% -20%, rgba(184, 69, 72, 0.45), transparent 38rem),
    radial-gradient(circle at 12% 20%, rgba(217, 155, 61, 0.16), transparent 24rem),
    linear-gradient(145deg, #16070a 0%, var(--felt) 48%, #120608 100%);
}

body::before,
body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
}

body::before {
  opacity: 0.16;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
}

body::after {
  background: radial-gradient(circle at center, transparent 0 45%, rgba(0, 0, 0, 0.34) 100%);
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(30px, 6vw, 70px) 0 36px;
}

.hero {
  display: grid;
  justify-items: center;
  gap: clamp(18px, 4vw, 34px);
  margin-bottom: clamp(30px, 6vw, 58px);
}

.logo {
  display: block;
  width: min(900px, 94vw);
  height: auto;
  filter: drop-shadow(0 26px 34px rgba(0, 0, 0, 0.55));
}

.signup-form {
  width: min(680px, 100%);
  padding: clamp(18px, 4vw, 24px);
  border: 1px solid rgba(217, 155, 61, 0.48);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(43, 18, 18, 0.94), rgba(20, 9, 9, 0.94));
  box-shadow: var(--shadow);
}

.form-intro {
  max-width: 58ch;
  margin: 0 0 18px;
  color: rgba(248, 240, 226, 0.8);
  font-size: clamp(1rem, 2.6vw, 1.15rem);
  font-weight: 650;
  line-height: 1.45;
}

.field-label {
  display: block;
  margin: 0 0 12px;
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

input,
button {
  min-height: 54px;
  border: 1px solid rgba(248, 240, 226, 0.22);
  border-radius: 6px;
  font: inherit;
  letter-spacing: 0;
}

input {
  width: 100%;
  min-width: 0;
  padding: 0 18px;
  color: var(--bone);
  background: rgba(9, 5, 6, 0.72);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

input::placeholder {
  color: rgba(248, 240, 226, 0.62);
}

input:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(217, 155, 61, 0.78);
  outline-offset: 3px;
}

button {
  padding: 0 24px;
  border-color: rgba(217, 155, 61, 0.72);
  color: #170909;
  background: linear-gradient(180deg, #efbb62, var(--gold));
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.28);
  cursor: pointer;
  font-weight: 900;
}

button:hover {
  background: linear-gradient(180deg, #f4c879, #e0a545);
  transform: translateY(-1px);
}

.bot-field {
  display: none;
}

.game-stage {
  position: relative;
  width: min(100%, 1280px);
  margin: 0 auto;
  border: 1px solid rgba(217, 155, 61, 0.38);
  border-radius: 10px;
  background: #090606;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.game-preview-link {
  display: block;
  width: 100%;
  text-decoration: none;
  background: #111111;
}

.game-preview-link:hover .game-preview-image {
  transform: scale(1.015);
}

.game-preview-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1918 / 1076;
  object-fit: cover;
  transition: transform 180ms ease;
}

.game-preview-link:focus-visible {
  outline: 3px solid rgba(217, 155, 61, 0.78);
  outline-offset: 5px;
}

.site-footer {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 0 16px 28px;
  color: rgba(248, 240, 226, 0.62);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-footer a {
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.legal-page {
  background:
    radial-gradient(circle at 50% -20%, rgba(184, 69, 72, 0.42), transparent 36rem),
    var(--felt);
}

.legal-card {
  width: min(760px, calc(100% - 32px));
  margin: clamp(28px, 8vw, 70px) auto;
  padding: clamp(22px, 5vw, 38px);
  border: 1px solid rgba(217, 155, 61, 0.48);
  border-radius: 8px;
  color: var(--bone);
  background: linear-gradient(180deg, rgba(43, 18, 18, 0.94), rgba(20, 9, 9, 0.94));
  box-shadow: var(--shadow);
  line-height: 1.55;
}

.legal-card h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 8vw, 3.5rem);
  line-height: 1;
}

.legal-card h2 {
  margin: 28px 0 8px;
  color: var(--paper);
  font-size: 1rem;
  line-height: 1.25;
}

.legal-card h1 + h2 {
  margin-top: 0;
}

.legal-card a {
  color: var(--gold);
  font-weight: 700;
}

@media (max-width: 680px) {
  .logo {
    width: min(350px, 88vw);
    filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.5));
  }

  .signup-form {
    width: 100%;
  }

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

  button {
    width: 100%;
  }

  .page-shell {
    width: min(100% - 20px, 1280px);
  }

  .game-stage {
    border-radius: 8px;
  }
}
