/* The title is an illustrated invitation; gameplay keeps its own compact frame. */
body:has(#home:not([hidden])) {
  background: #142c29;
}
body:has(#home:not([hidden])) .page {
  width: 100%;
  padding: 0;
}
body:has(#home:not([hidden])) .page > header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
  padding: 24px 4vw;
  border: 0;
  background: linear-gradient(#102321b8, transparent);
}
body:has(#home:not([hidden])) .wordmark {
  text-shadow: 0 2px 12px #001c1b;
  font-size: 21px;
  letter-spacing: 4px;
}
body:has(#home:not([hidden])) header .header-actions button {
  background: #12312d88;
  border-color: #e6d5ab40;
  backdrop-filter: blur(12px);
}
body:has(#home:not([hidden])) .build-tag {
  color: #fff1c3;
  border-color: #f2dc984d;
  background: #19392e66;
}
.home {
  isolation: isolate;
  position: relative;
  display: flex;
  min-height: calc(100dvh - 45px);
  padding: 130px 6.8vw 75px;
  overflow: hidden;
}
.home .home-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  z-index: -2;
  background: #17493f;
  display: block;
}
.home .home-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
  filter: saturate(0.9);
}
.home .home-art:before {
  inset: 0;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  transform: none;
  background:
    linear-gradient(
      90deg,
      #0b2d2af2 0%,
      #0e302bbf 30%,
      #123e3355 52%,
      transparent 76%
    ),
    linear-gradient(0deg, #122a27a6, transparent 28%);
  z-index: 1;
}
.home .home-art:after {
  display: none;
}
.home .home-copy {
  max-width: 490px;
  position: relative;
  z-index: 1;
}
.home .eyebrow {
  font: 10px/1.6 system-ui;
  letter-spacing: 0.27em;
  color: #f0d895;
  display: flex;
  align-items: center;
  gap: 14px;
}
.home .eyebrow:before {
  content: "";
  width: 31px;
  height: 1px;
  background: #d9bd78;
}
.home h1 {
  font:
    normal clamp(42px, 5vw, 74px) / 1.035 Georgia,
    serif;
  letter-spacing: -0.045em;
  margin: 25px 0 24px;
  color: #fff3d4;
  text-shadow: 0 4px 24px #0a272977;
}
.home-copy > p {
  font-size: 15px;
  line-height: 1.8;
  max-width: 370px;
  color: #e3e9d2;
}
.home .home-buttons {
  max-width: 350px;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin: 30px 0 25px;
}
.home .home-buttons a {
  grid-column: span 2;
  min-height: 52px;
  color: #f5eacf;
  border: 1px solid #dec99466;
  background: linear-gradient(135deg, #345848cc, #183f37cf);
  box-shadow:
    inset 0 1px #e0ebc517,
    0 3px 14px #001c192f;
  border-radius: 7px;
  font-size: 13px;
}
.home .home-buttons a.primary {
  background: linear-gradient(130deg, #f4db9e, #d5b369);
  color: #233f34;
  border-color: #f8e6b4;
  font-weight: 700;
  box-shadow:
    inset 0 1px #fff8d7,
    0 5px 24px #091f2280;
}
.home .home-buttons a:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}
.home .home-buttons button {
  font-size: 10px;
  line-height: 1.5;
  padding: 10px 11px;
  color: #d3dbc6;
  background: #123b3166;
  border: 1px solid #d4cb992d;
  gap: 8px;
}
.home .scope-note {
  max-width: 350px;
  color: #d0dbc2;
  font-size: 10px !important;
  line-height: 1.75;
}
body:has(#home:not([hidden])) .page > footer {
  min-height: 45px;
  padding: 9px 4vw;
  margin: 0;
  border-top: 1px solid #b7c89526;
  background: #132c29;
  color: #9ab5a5;
  font-size: 9px;
  letter-spacing: 0.13em;
}
@media (max-width: 760px) {
  body:has(#home:not([hidden])) .page > header {
    padding: 17px 21px;
  }
  body:has(#home:not([hidden])) .header-actions {
    gap: 7px;
  }
  body:has(#home:not([hidden])) .header-actions button {
    font-size: 10px;
    padding: 7px 9px;
  }
  body:has(#home:not([hidden])) .build-tag {
    display: none;
  }
  .home {
    min-height: calc(100dvh - 42px);
    padding: 130px 7vw 38px;
    align-items: center;
  }
  .home .home-art img {
    object-position: 59% 50%;
  }
  .home .home-art:before {
    background:
      linear-gradient(90deg, #0b2d2aee, #123b30b8 75%, #123b3077),
      linear-gradient(0deg, #112b29, transparent 60%);
  }
  .home .home-copy {
    max-width: 440px;
  }
  .home h1 {
    font-size: clamp(40px, 8.5vw, 62px);
  }
  .home .eyebrow {
    font-size: 8px;
    letter-spacing: 0.2em;
  }
  .home-copy > p {
    font-size: 13px;
  }
  .home .home-buttons {
    margin: 24px 0 21px;
  }
  body:has(#home:not([hidden])) .page > footer span:last-child {
    display: none;
  }
}
@media (max-height: 620px) and (min-width: 761px) {
  .home {
    padding-top: 95px;
    padding-bottom: 25px;
  }
  .home h1 {
    font-size: 49px;
    margin: 14px 0;
  }
  .home .home-buttons {
    margin: 19px 0;
    gap: 7px;
  }
  .home .home-buttons a {
    min-height: 44px;
    padding: 10px 17px;
  }
  .home .scope-note {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .home .home-buttons a:hover {
    transform: none;
  }
}
