:root {
  color-scheme: dark;
  --surface: #100e20;
  --ink: #fff6e8;
  --muted: #c5bccc;
  --gold: #ffb850;
  --line: #ffffff24;
  --display: "Arial Black", "Helvetica Neue", system-ui, sans-serif;
}
html[data-play] #front { display: none; }
html:not([data-play]) body {
  display: block;
  width: auto;
  height: auto;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
  font: 400 1rem/1.55 system-ui, sans-serif;
}
html:not([data-play]), html:not([data-play]) body { overflow: visible; height: auto; }
html:not([data-play]) #game { display: none; }
#front a { color: inherit; text-decoration: none; }
#front a:focus-visible { outline: 2px solid var(--gold); outline-offset: 5px; }
#front { --gutter: clamp(1.25rem, 6.4vw, 6.75rem); }
.site-header {
  position: absolute;
  z-index: 1;
  top: max(0px, env(safe-area-inset-top));
  left: var(--gutter);
  right: var(--gutter);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  height: 5rem;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand img { width: clamp(8.4rem, 16vw, 12rem); height: auto; display: block; }
.site-header nav { display: flex; align-items: center; gap: clamp(.85rem, 3vw, 2.5rem); }
.site-header nav a { font-weight: 650; font-size: .9rem; }
.site-header nav a:hover, .site-footer a:hover { color: var(--gold); }
.hero {
  background-color: #2b2149;
  background-image:
    linear-gradient(90deg, #141124eb 0%, #14112498 29%, #14112416 61%, transparent 78%),
    linear-gradient(0deg, #100e20, transparent 38%),
    url(tower-siege.webp);
  background-size: cover;
  background-position: center, center, center 45%;
  min-height: clamp(34rem, 78svh, 55rem);
  box-sizing: border-box;
  display: grid;
  align-items: center;
  padding: 8rem var(--gutter) 5rem;
}
.hero-copy { max-width: 40rem; }
.hero h1 {
  margin: 0;
  font: 950 clamp(3.5rem, 8.25vw, 9rem)/.87 var(--display);
  letter-spacing: -.079em;
}
.hero h1 span {
  display: block;
  margin-top: .62em;
  font: 800 clamp(1.12rem, 2.15vw, 2.05rem)/1.15 system-ui, sans-serif;
  letter-spacing: .23em;
  text-transform: uppercase;
  color: var(--gold);
}
.hero p { color: #eee3ed; max-width: 23rem; margin: 1.55rem 0 1.8rem; font-size: clamp(1rem, 1.6vw, 1.18rem); }
#front .play-link {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  min-height: 3.35rem;
  padding: 0 1.3rem;
  background: var(--gold);
  color: #21121c;
  border-radius: .4rem;
  font-weight: 800;
}
#front .play-link:hover { background: #ffd18c; }
.play-icon {
  width: 0;
  height: 0;
  border-block: .34rem solid transparent;
  border-left: .55rem solid currentColor;
}
.guide, .site-footer { margin-inline: var(--gutter); }
.guide {
  border-top: 1px solid var(--line);
  padding: clamp(2.3rem, 5.5vw, 5.5rem) 0;
  display: grid;
  grid-template-columns: minmax(14rem, 1fr) 2fr;
  gap: 1.6rem 4vw;
}
.guide h2 { margin: 0; font: 850 clamp(1.8rem, 4vw, 3.3rem)/1.05 var(--display); letter-spacing: -.055em; }
.guide dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; margin: 0; }
.guide dt { color: var(--gold); font-weight: 750; margin-bottom: .35rem; }
.guide dd { margin: 0; color: var(--muted); }
.site-footer {
  border-top: 1px solid var(--line);
  min-height: 5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: env(safe-area-inset-bottom);
  color: var(--muted);
}
@media (max-width: 650px) {
  .site-header { height: 4rem; }
  .hero {
    min-height: max(36rem, 85svh);
    align-items: end;
    padding-top: 12rem;
    padding-bottom: 2.3rem;
    background-image: linear-gradient(0deg, #100e20 1%, #100e20cf 27%, #100e2035 65%, #100e2099), url(tower-siege.webp);
    background-size: cover, auto 79%;
    background-repeat: no-repeat;
    background-position: center, 71% 0;
  }
  .hero h1 { font-size: clamp(3.05rem, 13vw, 5.5rem); }
  .hero p { margin: 1.1rem 0 1.4rem; }
  .guide { grid-template-columns: 1fr; }
}
@media (max-width: 370px) {
  .guide dl { grid-template-columns: 1fr; }
  .site-header nav { gap: .65rem; }
  .site-header nav a { font-size: .82rem; }
}
html[data-play] #game { display: contents; }
