:root {
  --paper: #F2EDE4;
  --ink: #0E1A24;
  --signal: #FF5C1A;
  --line: #D9D0C3;
  --card: #FFFDF8;
  --side: 280px;
  --font-display: "Literata", Georgia, serif;
  --font-ui: "Public Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

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

a {
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--signal);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1rem;
}

.layout {
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  min-height: 100vh;
}

.side {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  background: var(--ink);
  color: #F2EDE4;
  padding: 1.75rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 40;
}

.side a {
  color: #F2EDE4;
}

.side a:hover {
  color: var(--signal);
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.brand__mark {
  width: 48px;
  height: 48px;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  word-break: break-word;
}

.nav-toggle {
  display: none;
  border: 1px solid rgba(242, 237, 228, 0.35);
  background: transparent;
  color: #F2EDE4;
  font: inherit;
  padding: 0.55rem 0.85rem;
  cursor: pointer;
}

.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.side-nav a {
  text-decoration: none;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.side-nav a[aria-current="page"] {
  color: var(--signal);
  border-bottom-color: rgba(255, 92, 26, 0.45);
}

.side-age {
  margin-top: auto;
  font-size: 0.82rem;
  opacity: 0.75;
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(8px);
}

.auth-cluster {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.auth-cluster [data-auth] {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.auth-cluster [data-auth][hidden] {
  display: none !important;
}

.player-name {
  font-weight: 600;
}

.content {
  padding: 1.75rem 1.5rem 3rem;
  max-width: 920px;
}

.hero {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.hero__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border: 1px solid var(--line);
}

.hero__copy h1 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  max-width: 16ch;
}

.hero__copy p {
  max-width: 42ch;
  color: rgba(14, 26, 36, 0.82);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0.75rem 1.15rem;
  background: var(--signal);
  color: #fff;
  text-decoration: none;
}

.btn:hover {
  filter: brightness(0.95);
  color: #fff;
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}

.btn--ghost:hover {
  color: var(--signal);
  border-color: var(--signal);
}

.btn--dark {
  background: var(--ink);
  color: #F2EDE4;
}

.btn--dark:hover {
  color: #F2EDE4;
}

.section-title {
  font-size: 1.45rem;
  margin-bottom: 1rem;
}

.game-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.75rem;
}

.game-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 0.85rem;
}

.game-row__img {
  width: 160px;
  height: 110px;
  object-fit: cover;
}

.game-row__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  min-width: 0;
}

.game-row__body h3 {
  margin: 0;
  font-size: 1.15rem;
}

.game-row__body p {
  margin: 0;
  color: rgba(14, 26, 36, 0.78);
  font-size: 0.95rem;
}

.game-row__body a {
  margin-top: 0.35rem;
  font-weight: 600;
  width: fit-content;
}

.story {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 2.75rem;
  padding: 1rem;
  background: var(--card);
  border: 1px solid var(--line);
}

.story img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.reasons {
  margin-bottom: 2.75rem;
}

.reason-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.reason-list li {
  padding: 0.9rem 1rem;
  border-left: 3px solid var(--signal);
  background: var(--card);
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.band {
  position: relative;
  margin-bottom: 2rem;
  overflow: hidden;
  border: 1px solid var(--line);
}

.band img {
  width: 100%;
  min-height: 220px;
  object-fit: cover;
  filter: brightness(0.55);
}

.band__copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.4rem;
  color: #F2EDE4;
}

.band__copy h2 {
  color: #F2EDE4;
  max-width: 16ch;
}

.band__copy p {
  max-width: 36ch;
  color: rgba(242, 237, 228, 0.9);
}

.page-lead {
  margin-bottom: 1.75rem;
}

.page-lead p {
  max-width: 48ch;
}

.legal,
.plain {
  max-width: 62ch;
}

.legal h2,
.plain h2 {
  font-size: 1.2rem;
  margin-top: 1.6rem;
}

.form {
  display: grid;
  gap: 0.9rem;
  max-width: 420px;
}

.form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

.form input,
.form textarea {
  font: inherit;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  width: 100%;
}

.form textarea {
  min-height: 140px;
  resize: vertical;
}

.form .check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
}

.form .check input {
  width: auto;
  margin-top: 0.2rem;
}

.form-error {
  color: #8a1f0a;
  font-size: 0.92rem;
  min-height: 1.2em;
}

.form-ok {
  padding: 0.85rem 1rem;
  background: var(--card);
  border: 1px solid var(--line);
  margin-bottom: 1rem;
}

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 1.5rem;
  background: #ebe4d8;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.1rem;
  margin-bottom: 1rem;
}

.footer-nav a {
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-note {
  font-size: 0.88rem;
  color: rgba(14, 26, 36, 0.78);
  max-width: 62ch;
  margin: 0;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 26, 36, 0.55);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 80;
}

.overlay[hidden] {
  display: none !important;
}

.modal {
  width: min(100%, 420px);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.25rem;
  position: relative;
}

.modal h2 {
  font-size: 1.35rem;
}

.modal-close {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
  padding: 0.25rem 0.45rem;
}

.age-gate {
  z-index: 90;
}

.age-box,
.cookie-box {
  width: min(100%, 440px);
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1.35rem;
}

.age-actions,
.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 70;
  max-width: 520px;
  margin-inline: auto;
}

.cookie-banner[hidden] {
  display: none !important;
}

@media (max-width: 880px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .side {
    position: sticky;
    top: 0;
    height: auto;
    min-height: 0;
    padding: 0.9rem 1rem;
    gap: 0.75rem;
  }

  .brand {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
  }

  .brand__text {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
  }

  .brand__mark {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
  }

  .brand__name {
    font-size: 1rem;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .side-nav,
  .side-age {
    display: none;
  }

  body.nav-open .side-nav,
  body.nav-open .side-age {
    display: flex;
  }

  body.nav-open .side {
    height: auto;
  }

  .topbar {
    position: static;
  }

  .content {
    padding: 1.25rem 1rem 2.5rem;
  }

  .game-row {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .game-row__img {
    width: 120px;
    height: 90px;
  }

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

@media (max-width: 560px) {
  .game-row {
    grid-template-columns: 1fr;
  }

  .game-row__img {
    width: 100%;
    height: 150px;
  }

  .topbar {
    justify-content: stretch;
  }

  .auth-cluster {
    width: 100%;
  }

  .auth-cluster .btn {
    flex: 1 1 auto;
  }
}
