:root {
  --ink: #20211d;
  --muted: #65685d;
  --paper: #fffaf0;
  --panel: #ffffff;
  --line: #dfd7c8;
  --leaf: #4d7c45;
  --leaf-dark: #2f5b36;
  --amber: #bf7a2f;
  --rose: #b75548;
  --sky: #3d7690;
  --shadow: 0 18px 50px rgba(47, 37, 24, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Hiragino Maru Gothic ProN", "Hiragino Maru Gothic Pro", "Yu Gothic", "YuGothic", "Arial Rounded MT Bold", sans-serif;
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

.hero {
  position: relative;
  line-height: 0;
  overflow: hidden;
  background: #2b2219;
}

.hero picture {
  display: block;
}

.hero__image {
  display: block;
  width: 100%;
  height: auto;
}

.hero__title-image {
  position: absolute;
  left: clamp(48px, 9vw, 150px);
  bottom: clamp(164px, calc(9vw + 100px), 250px);
  width: clamp(360px, 43vw, 760px);
  height: auto;
  pointer-events: none;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  color: #f2c684;
}

main {
  margin-top: 0;
  position: relative;
  z-index: 2;
}

.intro,
.library {
  width: calc(100% - 32px);
  max-width: 1160px;
  margin: 0 auto;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: 28px;
  align-items: end;
  padding: clamp(28px, 5vw, 44px);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.intro > * {
  min-width: 0;
}

.intro h2,
.library h2 {
  margin: 0;
  font-size: 2.2rem;
  line-height: 1.22;
  letter-spacing: 0;
}

.intro p:last-child {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
  word-break: break-all;
}

code {
  padding: 2px 6px;
  background: #f2eadc;
  border-radius: 5px;
}

.section-kicker {
  color: var(--leaf-dark);
}

.library {
  padding: clamp(54px, 8vw, 88px) 0;
}

.library__head {
  margin-bottom: 24px;
}

.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 16px;
}

.game-card {
  min-height: 132px;
  display: grid;
  place-items: center;
  padding: 14px;
  background: var(--panel);
  border: 2px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 8px 22px rgba(47, 37, 24, 0.08);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.game-card:hover {
  border-color: #f5c56f;
  box-shadow: 0 14px 30px rgba(47, 37, 24, 0.14);
  transform: translateY(-3px);
}

.game-card[href="#"] {
  pointer-events: none;
}

.game-card__label {
  color: var(--leaf-dark);
  font-weight: 900;
  font-size: 3rem;
  line-height: 1;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(16px, 4vw, 44px);
  color: #fffaf0;
  background: #20211d;
}

.footer p {
  margin: 0;
  font-weight: 800;
}

.footer a {
  color: #f2c684;
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero__title-image {
    display: none;
  }

  .intro h2,
  .library h2 {
    font-size: 1.6rem;
  }

  .intro {
    grid-template-columns: 1fr;
    padding: 24px;
    overflow: hidden;
  }

  .intro p:last-child {
    font-size: 0.95rem;
  }

  .game-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .game-card {
    min-height: 96px;
    border-radius: 20px;
  }

  .game-card__label {
    font-size: 2.25rem;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
