@import url("/styles/base.css");
@import url("/styles/scene.css");
:root {
  color: #f5eee1;
  background: #080b13;
}
body {
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 100svh;
  overflow-x: clip;
}
button {
  color: inherit;
}
header,
footer {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
header {
  padding: max(16px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right));
}
.wordmark {
  font-size: 22px;
  font-weight: 300;
  letter-spacing: 3px;
  text-decoration: none;
  color: #e9dcc5;
  white-space: nowrap;
}
.wordmark span {
  color: #ad9272;
  font-size: 16px;
}
.header-right {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2vw, 30px);
}
.build {
  font-size: 11px;
  letter-spacing: 2px;
  color: #dbd3c2;
  border: 1px solid #ddd2b940;
  padding: 5px 12px;
  white-space: nowrap;
}
nav {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
}
nav button {
  border: 0;
  background: none;
  padding: 8px 2px;
  cursor: pointer;
  opacity: 0.7;
}
nav button[aria-pressed="true"] {
  opacity: 1;
  color: #f0d9ad;
}
nav .music-toggle {
  border: 1px solid #d5b88955;
  padding: 6px 10px;
}
nav span {
  opacity: 0.25;
}
main {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  min-width: 0;
  padding: clamp(16px, 4vh, 60px) 16px;
}
.brand {
  min-width: 0;
  animation: reveal 1.8s ease both;
  text-shadow: 0 4px 24px #060b16;
}
.crest {
  font-size: 34px;
  color: #dec698;
  margin-bottom: 18px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  font-weight: 300;
  color: #eadcc2;
}
h1 {
  font-size: clamp(32px, 10.7vw, 155px);
  font-weight: 300;
  letter-spacing: 0.16em;
  line-height: 1.2;
  margin: 12px -0.16em 16px 0;
  color: #f6ebd8;
  text-shadow:
    0 2px 2px #e8d5a522,
    0 6px 35px #000b;
}
.rule {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: center;
  color: #dec698;
}
.rule span {
  height: 1px;
  width: 85px;
  background: linear-gradient(90deg, transparent, #dec698);
}
.rule span:last-child {
  transform: rotate(180deg);
}
.rule i {
  font-style: normal;
  font-size: 16px;
}
.tagline {
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.13em;
  margin: 20px 0;
}
.enter {
  min-height: 48px;
  margin-top: clamp(20px, 7svh, 90px);
  border: none;
  background: none;
  display: flex;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  padding: 20px;
  font-size: 15px;
  letter-spacing: 0.3em;
  animation: pulse 3s ease-in-out infinite;
  text-shadow: 0 2px 15px #000;
}
.enter-line {
  width: 40px;
  height: 1px;
  background: #d9bf8e88;
}
.hint {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #dbd7d0c4;
  margin: 0;
}
.notice {
  font-size: 11px;
  color: #c7c7cd;
  margin: 26px 0 0;
  max-width: 100%;
}
footer {
  padding: 16px max(20px, env(safe-area-inset-left))
    max(16px, env(safe-area-inset-bottom));
  flex-wrap: wrap;
  font-size: 10px;
  letter-spacing: 0.13em;
  color: #c9c9d0bd;
}
.footer-center {
  color: #cfc7bdbf;
}
.version b {
  color: #d9bf8e;
  font-weight: 400;
  margin-left: 8px;
}
.transition {
  background: #080b13;
  opacity: 0;
  transition: opacity 0.65s;
  z-index: 10;
}
.leaving .transition {
  opacity: 1;
}
.leaving .brand {
  opacity: 0;
  transition: opacity 0.4s;
}
@media (max-width: 600px) {
  h1 {
    letter-spacing: 0.09em;
    margin-right: -0.09em;
  }
  .tagline {
    font-size: 12px;
  }
  .footer-center {
    display: none;
  }
  .enter {
    font-size: 12px;
    gap: 12px;
  }
  .enter-line {
    width: 25px;
  }
  .notice {
    max-width: 270px;
    line-height: 1.8;
  }
}
@media (max-width: 480px) {
  .build {
    display: none;
  }
}
@media (max-width: 360px) {
  .tagline {
    letter-spacing: 0;
  }
  .enter {
    letter-spacing: 0.15em;
  }
}
@media (orientation: landscape) and (max-height: 540px) {
  header {
    padding: 8px 24px;
  }
  .crest {
    display: none;
  }
  main {
    padding: 4px 20px;
  }
  h1 {
    font-size: clamp(32px, 12svh, 76px);
    margin: 4px 0;
  }
  .eyebrow,
  .tagline {
    margin: 6px 0;
  }
  .rule {
    gap: 10px;
  }
  .rule span {
    width: 45px;
  }
  .enter {
    margin-top: 8px;
    padding: 8px 16px;
  }
  .notice {
    margin-top: 8px;
  }
  footer {
    padding-top: 8px;
    padding-bottom: 8px;
  }
}
/* The title is a viewport-sized game screen, not a scrolling landing page. */
body {
  height: 100svh;
  height: 100dvh;
  min-height: 0;
  overflow: hidden;
}
header {
  padding-top: max(8px, env(safe-area-inset-top));
  padding-bottom: 8px;
}
main {
  min-height: 0;
  padding-top: 8px;
  padding-bottom: 8px;
}
.crest {
  margin-bottom: 12px;
  line-height: 1;
}
.crest img {
  width: clamp(40px, 8svh, 78px);
  height: clamp(40px, 8svh, 78px);
  filter: drop-shadow(0 0 20px #d7b47722);
}
h1 {
  font-weight: 500;
  font-size: clamp(32px, 10vw, 148px);
  letter-spacing: 0.13em;
  margin-right: -0.13em;
  line-height: 1.1;
  background: linear-gradient(#fff4db, #d6b77d);
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.enter {
  margin-top: clamp(12px, 5svh, 64px);
}
footer {
  padding-top: 8px;
  padding-bottom: max(8px, env(safe-area-inset-bottom));
}
@media (max-height: 600px) {
  .crest {
    display: none;
  }
  .eyebrow {
    margin: 6px 0;
  }
  .tagline {
    margin: 10px 0;
  }
  .notice {
    margin-top: 12px;
  }
}
