@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@500;700;800&family=Manrope:wght@400;600;700&display=swap');

:root {
  --paper: #f3efe4;
  --ink: #1f1b18;
  --accent: #9b4d2f;
  --deep: #3b2f2a;
  --muted: #7c7069;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background: repeating-linear-gradient(90deg, #f7f4eb 0 36px, #f1ecdf 36px 72px);
}

.wrap {
  width: min(1300px, 100%);
  margin-inline: auto;
  padding-inline: 1.2rem;
}

header {
  border-bottom: 2px solid #d8cfbe;
  background: rgba(243, 239, 228, 0.95);
  position: sticky;
  top: 0;
  z-index: 15;
}

.headline {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  min-height: 82px;
}

.mark {
  text-decoration: none;
  color: var(--deep);
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
}

.mark img { width: 36px; height: 36px; }

.menu-btn {
  display: none;
  border: 1px solid #baa991;
  background: #fffaf1;
  border-radius: 6px;
  color: var(--deep);
  padding: 0.35rem 0.7rem;
  font-weight: 600;
}

nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: end;
  gap: 0.3rem;
}

nav a {
  text-decoration: none;
  color: var(--deep);
  padding: 0.45rem 0.72rem;
  border-radius: 5px;
  border: 1px solid transparent;
}

nav a:hover,
nav a.on {
  border-color: #c8b59f;
  background: #fff;
}

.banner {
  padding: 2.6rem 0 1.4rem;
}

.banner-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.lead {
  background: #fffdf8;
  border: 1px solid #d5cab7;
  padding: 1.6rem;
}

.lead h1 {
  margin: 0 0 0.8rem;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4.9vw, 3.6rem);
  line-height: 1.02;
}

.notes {
  background: #f9f2e6;
  border: 1px dashed #c4ac8f;
  padding: 1.2rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.8rem;
}

.badges span {
  font-size: 0.86rem;
  background: #3b2f2a;
  color: #fff;
  padding: 0.32rem 0.55rem;
  border-radius: 3px;
}

.home-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
  padding-bottom: 2.3rem;
}

.arcade {
  background: #0d0d0d;
  border: 6px solid #d2c4af;
  outline: 1px solid #998874;
}

.arcade iframe {
  width: 100%;
  min-height: 680px;
  border: 0;
}

.panel {
  background: #fffdf8;
  border: 1px solid #d5cab7;
  padding: 1rem;
  margin-bottom: 0.9rem;
}

.panel h2 {
  margin: 0 0 0.6rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
}

main.docs {
  padding: 2rem 0 3rem;
}

.sheet {
  max-width: 980px;
  background: #fffdf8;
  border: 1px solid #d5cab7;
  padding: 1.45rem;
}

.sheet h1 {
  font-family: 'Playfair Display', serif;
  margin-top: 0;
}

footer {
  border-top: 2px solid #d8cfbe;
  background: #f5f1e8;
}

.foot {
  padding: 1rem 0 1.4rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.links a { color: var(--accent); }

.age-mask {
  position: fixed;
  inset: 0;
  background: rgba(38, 29, 24, 0.84);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.age-mask.hidden { display: none; }

.age-card {
  width: min(520px, 100%);
  background: #fffaf0;
  border: 1px solid #ad9577;
  padding: 1.2rem;
}

.age-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.age-row button {
  border: 0;
  border-radius: 4px;
  padding: 0.55rem 0.82rem;
  font-weight: 700;
}

.age-row .ok { background: #3b2f2a; color: #fff; }
.age-row .stop { background: #d6c9b5; color: #2b211a; }

@media (max-width: 900px) {
  .banner-grid, .home-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .menu-btn { display: inline-block; }
  nav { display: none; grid-column: 1 / -1; border-top: 1px solid #d8cfbe; padding-top: 0.5rem; }
  nav.open { display: block; }
  nav ul { flex-direction: column; align-items: stretch; }
  .arcade iframe { min-height: 470px; }
  .foot { grid-template-columns: 1fr; }
}