:root {
  color-scheme: light;
  --paper: #f4f0e6;
  --ink: #203b30;
  --muted: #6b786a;
  --accent: #e8c76e;
  --line: #d7ddce;
  --danger: #a34733;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #ab653e;
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
.site-nav {
  max-width: 1440px;
  margin: auto;
  padding: 32px 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.wordmark {
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.05em;
  font-size: 23px;
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-block {
  width: 24px;
  height: 24px;
  background: #4c7454;
  display: inline-block;
  box-shadow: inset -8px -8px #31513c;
  transform: rotate(-5deg);
}
.brand-note {
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 500;
  color: var(--muted);
  border-left: 1px solid #bdc6b8;
  padding-left: 12px;
  margin-left: 6px;
}
.nav-note,
.back-link {
  font-size: 13px;
  color: var(--muted);
}
.back-link {
  text-decoration: none;
}
.home-main {
  max-width: 1440px;
  margin: auto;
  padding: 0 5vw;
}
.home-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.25fr;
  align-items: center;
  min-height: 620px;
  gap: 10px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  padding: 35px 0 55px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 0.2em;
  font-weight: 700;
  margin: 0 0 26px;
  color: #6b7c64;
}
h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: clamp(62px, 7.6vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.065em;
  margin: 0;
}
h1 em {
  font-weight: 400;
  color: #608267;
}
.hero-description {
  font-size: 17px;
  line-height: 1.75;
  color: var(--muted);
  margin: 30px 0;
}
.play-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 65px;
  text-decoration: none;
  background: var(--ink);
  color: #fbf7e9;
  padding: 18px 27px;
  border-radius: 4px;
  min-height: 60px;
  font-size: 17px;
  font-weight: 600;
  transition:
    background 0.2s,
    transform 0.2s;
}
.play-link:hover {
  background: #365c43;
  transform: translateY(-2px);
}
.play-link span {
  font-size: 24px;
  line-height: 1;
}
.play-note {
  font-size: 11px;
  color: var(--muted);
  margin: 13px 0 0 1px;
}
.world-art {
  position: relative;
  margin-left: -40px;
}
.world-art img {
  display: block;
  width: 100%;
  height: auto;
}
.art-caption {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.02em;
  margin-top: -48px;
  position: relative;
}
.art-caption > span {
  font-size: 24px;
  color: #a68b4d;
}
.home-details {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;
  padding: 30px 0 45px;
}
.home-details p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  margin: 0;
  max-width: 280px;
}
.home-details span {
  display: block;
  color: var(--ink);
  font-size: 10px;
  letter-spacing: 0.13em;
  font-weight: 700;
  margin-bottom: 10px;
}
.home-footer {
  max-width: 1440px;
  margin: auto;
  padding: 18px 5vw 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #7f8978;
  font-size: 10px;
}
.play-page {
  min-height: 100svh;
  background:
    radial-gradient(ellipse at 50% 55%, #e2e9d7, transparent 70%), var(--paper);
}
.play-wrap {
  display: grid;
  place-items: center;
  padding: 30px 20px 70px;
}
.play-wrap #launch-page {
  width: min(440px, 100%);
  text-align: center;
  padding: 26px 0;
}
.play-wrap h1,
.auth-card h1 {
  font-size: clamp(50px, 7vw, 68px);
  line-height: 1.02;
}
.play-wrap .eyebrow {
  margin-bottom: 23px;
}
#graphics-description {
  font-size: 13px;
  color: var(--muted);
  margin: 23px 0 30px;
  line-height: 1.7;
}
button {
  border: 0;
  cursor: pointer;
  border-radius: 4px;
  min-height: 44px;
}
#launch {
  width: 100%;
  background: var(--ink);
  color: #fffbed;
  font-size: 17px;
  font-weight: 600;
  padding: 18px 22px;
  min-height: 60px;
}
#launch:hover:not(:disabled) {
  background: #365c43;
}
#launch:disabled {
  opacity: 0.6;
  cursor: progress;
}
.loading-state {
  margin: 18px auto 0;
  max-width: 290px;
}
#status {
  color: var(--muted);
  font-size: 11px;
  min-height: 18px;
  margin: 0 0 10px;
}
progress {
  width: 100%;
  height: 3px;
  border: 0;
  display: block;
  accent-color: #7c9b6e;
  background: #dbe1d2;
}
progress::-webkit-progress-bar {
  background: #dbe1d2;
}
progress::-webkit-progress-value {
  background: #7c9b6e;
}
#account {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin: 22px 0 0;
}
#account a {
  margin-left: 4px;
  text-underline-offset: 3px;
}
.text-button {
  background: transparent;
  color: var(--ink);
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 5px 12px;
}
.launch-options {
  text-align: left;
  border-top: 1px solid var(--line);
  margin-top: 26px;
  padding-top: 12px;
}
.launch-options > summary {
  cursor: pointer;
  list-style: none;
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 8px;
}
.launch-options > summary::after {
  content: " +";
}
.launch-options[open] > summary::after {
  content: " −";
}
.launch-options > summary::-webkit-details-marker {
  display: none;
}
label {
  display: block;
  text-align: left;
  font-size: 12px;
  color: var(--muted);
  margin: 16px 0 6px;
}
input,
select {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 6px;
  color: var(--ink);
  border: 1px solid #c5cebd;
  border-radius: 4px;
  background: #faf8f0;
  min-height: 44px;
}
.launch-options button {
  background: #e0e6d6;
  padding: 10px;
  margin-top: 10px;
  width: 100%;
}
#local-account {
  padding: 10px 0;
}
#metered {
  text-align: left;
  padding: 16px;
  background: #eee3c2;
  border: 1px solid #d4bd80;
  border-radius: 4px;
  font-size: 13px;
  margin: 18px 0;
}
#metered button {
  background: var(--ink);
  color: white;
  padding: 10px 16px;
}
#error {
  color: var(--danger);
  font-size: 12px;
  line-height: 1.7;
  margin: 16px 0 0;
}
#error:empty {
  display: none;
}
#control-help {
  font-size: 10px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 24px;
}
.auth-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 28px;
}
.auth-card {
  max-width: 440px;
}
.auth-card > p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.7;
  margin: 28px 0;
}
.auth-card .play-link {
  font-size: 14px;
  gap: 20px;
}
.in-game .site-nav,
.in-game .site-wrap,
.in-game .play-wrap {
  display: none;
}
@media (min-width: 1500px) {
  .home-hero {
    min-height: 710px;
  }
  .world-art {
    max-width: 850px;
  }
}
@media (max-width: 760px) {
  .site-nav {
    padding: 24px 6vw;
  }
  .wordmark {
    font-size: 21px;
  }
  .nav-note {
    display: none;
  }
  .brand-note {
    font-size: 10px;
  }
  .home-main {
    padding: 0 7vw;
  }
  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 0;
  }
  .hero-copy {
    padding: 42px 0 15px;
    text-align: center;
  }
  .eyebrow {
    font-size: 9px;
    margin-bottom: 22px;
  }
  h1 {
    font-size: 76px;
  }
  .hero-description {
    font-size: 14px;
    margin: 24px 0;
  }
  .play-link {
    min-width: 170px;
    min-height: 56px;
    padding: 16px 24px;
  }
  .world-art {
    margin: -10px -6vw 30px;
  }
  .world-art img {
    max-height: 460px;
  }
  .art-caption {
    margin-top: -35px;
    font-size: 9px;
    gap: 8px;
  }
  .home-details {
    gap: 20px;
    padding: 26px 0;
    grid-template-columns: 1fr;
  }
  .home-details p {
    max-width: none;
    font-size: 12px;
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 12px;
    align-items: start;
  }
  .home-details span {
    font-size: 8px;
    margin: 4px 0;
  }
  .home-footer {
    padding: 20px 7vw 30px;
    font-size: 9px;
    flex-direction: column;
    gap: 10px;
  }
  .play-wrap {
    padding-top: 25px;
  }
  .play-wrap #launch-page {
    max-width: 360px;
  }
  .play-wrap h1 {
    font-size: 56px;
  }
  .back-link {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Native checkbox sizing also works with a custom Astro launcher. */
input[type="checkbox"] {
  display: inline-block;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 0 6px 0 0;
  padding: 0;
  vertical-align: middle;
  accent-color: var(--ink);
}
.home-page #install{display:block;width:auto;margin-top:18px;padding:10px 16px;border:1px solid #496452;border-radius:8px;background:#263e30;color:#d7e9dc;cursor:pointer;font:inherit}
#install-help{max-width:36rem;font-size:14px;line-height:1.6}
