:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #162b28;
  color: #e9e9da;
  --gold: #dfbd7d;
  --muted: #adbbb0;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header,
main {
  max-width: 1100px;
  margin: auto;
  padding: 25px 32px;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid #40584c;
  font-size: 13px;
}
header span,
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.8px;
  color: var(--gold);
}
a {
  color: var(--gold);
  text-underline-offset: 4px;
}
.introduction {
  max-width: 690px;
}
h1 {
  font:
    clamp(42px, 6vw, 66px)/1.1 Georgia,
    serif;
  margin: 20px 0;
}
h1 em {
  color: var(--gold);
}
h2 {
  font:
    28px Georgia,
    serif;
}
p {
  line-height: 1.7;
}
.instructions,
.credit,
.legend {
  color: var(--muted);
  font-size: 13px;
}
.game-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 45px;
  align-items: start;
  margin-top: 30px;
}
.world {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 5px;
  background: #0e201c;
  padding: 12px;
  border: 1px solid #536b52;
  border-radius: 5px;
}
.tile {
  aspect-ratio: 1;
  border: 1px solid #314b3a;
  background: #253e30;
  border-radius: 3px;
  color: #8ca17f;
  font:
    clamp(20px, 4vw, 30px) Georgia,
    serif;
  cursor: pointer;
  padding: 0;
  touch-action: manipulation;
}
.tile.fragment {
  color: var(--gold);
  background: #3c4529;
  border-color: #a18449;
}
.tile.garden {
  border-color: #94a17c;
  background: #344d36;
}
.tile.player {
  color: #fff7d9;
  background: #63764b;
  border: 2px solid var(--gold);
}
.tile.tended {
  background: #617745;
  color: #f5e7b5;
}
.legend {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
}
.controls {
  text-align: center;
  margin: 15px auto;
}
.controls button,
button {
  background: transparent;
  color: inherit;
  border: 1px solid #697e61;
  padding: 12px 18px;
  border-radius: 4px;
  cursor: pointer;
  font: inherit;
}
.controls button {
  min-width: 50px;
  min-height: 46px;
  margin: 3px;
}
.controls > button {
  margin-bottom: 0;
}
.counter {
  font-size: 13px;
  color: var(--gold);
}
.status {
  min-height: 80px;
}
blockquote {
  font:
    23px/1.5 Georgia,
    serif;
  margin: 22px 0;
  padding-left: 18px;
  border-left: 2px solid var(--gold);
}
.found-fragment {
  font:
    17px/1.5 Georgia,
    serif;
  padding: 14px 0;
  border-bottom: 1px solid #40584c;
}
.choice-button {
  display: block;
  width: 100%;
  text-align: left;
  margin: 10px 0;
  font:
    17px/1.5 Georgia,
    serif;
}
.primary {
  display: inline-block;
  background: var(--gold);
  color: #162b28;
  padding: 13px 18px;
  border-radius: 4px;
  font-weight: 600;
}
.restart {
  margin: 25px 0 10px;
  font-size: 13px;
}
.choice-button:hover,
button:hover {
  border-color: var(--gold);
}
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 720px) {
  header,
  main {
    padding: 22px;
  }
  header span {
    display: none;
  }
  .game-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .world {
    max-width: 480px;
  }
  .status {
    min-height: 0;
  }
  .tile {
    font-size: 28px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .tile {
    transition: background 0.2s;
  }
}
