:root {
  --ink: #183c2c;
  --paper: #fffaf0;
  --cream: #f7f0d8;
  --leaf: #c7ec8e;
  --orange: #e6a262;
  --line: #183c2c30;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: inherit;
}
button {
  font: inherit;
  cursor: pointer;
}
button:disabled {
  cursor: wait;
}
button:focus-visible,
a:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #d4793e;
  outline-offset: 5px;
}
.skip-link {
  position: fixed;
  left: 12px;
  top: -70px;
  z-index: 10;
  background: var(--paper);
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.site-header {
  max-width: 1280px;
  margin: auto;
  padding: 26px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.site-header > a:last-child {
  font-size: 13px;
  text-decoration: none;
  font-weight: 700;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  text-decoration: none;
}
main {
  max-width: 1280px;
  margin: auto;
  padding: 0 36px;
}
.intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  padding: 38px 0 28px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 10px;
  font-weight: 800;
  margin: 0 0 14px;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  font:
    normal clamp(64px, 7.5vw, 96px)/0.95 Georgia,
    serif;
  letter-spacing: -5px;
  margin-bottom: 0;
}
em {
  font-weight: normal;
}
h1 em {
  color: #5b783a;
}
.intro-copy {
  font-size: 14px;
  line-height: 1.7;
  margin: 0 10px 3px 20px;
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 800px) minmax(240px, 1fr);
  gap: 38px;
  align-items: start;
}
.game-frame {
  border: 1px solid #254e3a;
  border-radius: 15px;
  overflow: hidden;
  background: #153c35;
  box-shadow: 0 14px 40px #183c2c13;
}
.dashboard {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  color: var(--paper);
  background: #193d30;
  padding: 17px 20px;
  gap: 12px;
}
.dashboard > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #bfcfba;
}
.dashboard strong {
  font-size: 19px;
  font-weight: 650;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.dashboard small {
  color: #bdccaa;
  font-size: 12px;
  font-weight: 400;
}
#hearts {
  color: #c7ec8e;
  letter-spacing: 2px;
  font-size: 15px;
  padding-top: 3px;
}
.pond-wrap {
  position: relative;
  line-height: 0;
}
canvas {
  display: block;
  width: 100%;
  height: auto;
  touch-action: manipulation;
}
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #f7f0d8ef;
  text-align: center;
  line-height: 1.4;
  padding: 24px;
}
.overlay[hidden] {
  display: none;
}
.overlay .eyebrow {
  color: #5f7447;
  font-size: 9px;
  margin-bottom: 12px;
}
.overlay h2 {
  font:
    normal clamp(28px, 3.5vw, 47px)/1.04 Georgia,
    serif;
  letter-spacing: -1.2px;
  margin: 0 0 18px;
}
.overlay p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.primary {
  border: 0;
  border-radius: 7px;
  background: #193d30;
  color: #fffaf0;
  padding: 15px 29px;
  font-size: 14px;
  font-weight: 750;
  box-shadow: 0 4px 0 #10251e;
}
.primary:hover {
  background: #2c5139;
}
.primary:active {
  transform: translateY(2px);
  box-shadow: 0 2px 0 #10251e;
}
.overlay p.overlay-hint {
  font-size: 10px;
  margin: 18px 0 0;
}
.postmark {
  width: 83px;
  height: 83px;
  border: 1px solid #6a8158;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1.4px;
  transform: rotate(-14deg);
  margin-bottom: 24px;
  color: #557647;
  line-height: 1.4;
  outline: 1px dashed #6a8158;
  outline-offset: -5px;
}
.postmark span {
  font-size: 22px;
  line-height: 0.7;
}
.message {
  position: absolute;
  top: 44%;
  left: 50%;
  transform: translateX(-50%);
  background: #fffaf0f2;
  color: #183c2c;
  padding: 12px 22px;
  border-radius: 7px;
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  line-height: 1.4;
  box-shadow: 0 6px 25px #0a241940;
  pointer-events: none;
}
.message:empty {
  display: none;
}
.game-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #193d30;
  color: #e2e7cf;
  padding: 12px 16px;
  font-size: 10px;
}
.game-toolbar > div {
  display: flex;
  gap: 8px;
}
.game-toolbar button {
  background: transparent;
  border: 1px solid #c7d7b960;
  color: #fffaf0;
  padding: 9px 10px;
  border-radius: 5px;
  font-size: 10px;
  min-height: 35px;
}
.game-toolbar button:hover {
  background: #ffffff15;
}
.game-toolbar button:disabled {
  opacity: 0.45;
}
.field-guide {
  padding-top: 9px;
}
.field-guide > .eyebrow {
  color: #6b7a51;
}
.field-guide h2 {
  font:
    normal 32px/1.08 Georgia,
    serif;
  letter-spacing: -0.7px;
  margin-bottom: 30px;
}
.field-guide h2 em {
  color: #6b803f;
}
.field-guide ol {
  list-style: none;
  padding: 0;
  margin: 0;
}
.field-guide li {
  display: flex;
  gap: 13px;
  margin-bottom: 21px;
}
.field-guide li > span {
  flex: 0 0 25px;
  font-size: 10px;
  padding-top: 3px;
  color: #648149;
}
.field-guide li strong {
  font-size: 12px;
}
.field-guide li p {
  font-size: 11px;
  line-height: 1.7;
  margin: 5px 0 0;
  color: #55664d;
}
.route-note {
  display: flex;
  align-items: center;
  gap: 15px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 17px 0;
  margin: 25px 0 20px;
}
.route-note > span {
  font-size: 30px;
  color: #657f41;
}
.route-note p {
  font-size: 11px;
  line-height: 1.8;
  margin: 0;
}
.route-note strong {
  font-weight: 600;
}
.dpad {
  display: grid;
  grid-template-columns: repeat(3, 49px);
  grid-template-rows: repeat(3, 43px);
  gap: 5px;
  justify-content: center;
  touch-action: manipulation;
  user-select: none;
}
.dpad button {
  border: 1px solid #183c2c50;
  border-bottom: 3px solid #183c2c65;
  border-radius: 7px;
  background: #e4e9cb;
  color: #183c2c;
  font-size: 21px;
  font-weight: 700;
  touch-action: manipulation;
  min-width: 44px;
  min-height: 43px;
}
.dpad button:hover {
  background: #c7dfa2;
}
.dpad button:active {
  background: #b5d778;
  transform: translateY(1px);
}
.dpad [data-direction="up"] {
  grid-column: 2;
  grid-row: 1;
}
.dpad [data-direction="left"] {
  grid-column: 1;
  grid-row: 2;
}
.dpad [data-direction="right"] {
  grid-column: 3;
  grid-row: 2;
}
.dpad [data-direction="down"] {
  grid-column: 2;
  grid-row: 3;
}
.dpad span {
  grid-column: 2;
  grid-row: 2;
  display: grid;
  place-items: center;
  font-size: 8px;
  letter-spacing: 1px;
  color: #6d7d55;
}
.control-note {
  text-align: center;
  font-size: 9px;
  line-height: 1.9;
  color: #657459;
  margin: 13px 0 20px;
}
.best {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin: 0;
}
.best strong {
  font-variant-numeric: tabular-nums;
}
.live-status {
  font-size: 11px;
  line-height: 1.6;
  color: #55664d;
  margin: 12px 0 0;
  min-height: 36px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: #5f7354;
  padding: 27px 0 35px;
}
footer a {
  text-decoration: none;
}
@media (min-width: 1100px) {
  .game-layout {
    grid-template-columns: minmax(0, 760px) minmax(240px, 1fr);
    gap: 52px;
  }
  .field-guide {
    padding: 10px 15px 0;
  }
}
@media (max-width: 850px) {
  .site-header {
    padding: 20px 24px;
  }
  main {
    padding: 0 24px;
  }
  .intro {
    padding-top: 30px;
  }
  .intro-copy {
    font-size: 12px;
  }
  .game-layout {
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 215px;
  }
  .field-guide h2 {
    font-size: 27px;
  }
  .field-guide li {
    margin-bottom: 14px;
  }
  .postmark {
    width: 65px;
    height: 65px;
    font-size: 5px;
    margin-bottom: 16px;
  }
  .overlay h2 {
    font-size: 32px;
  }
  .overlay p:not(.eyebrow) {
    font-size: 11px;
    margin-bottom: 14px;
  }
  .game-toolbar {
    flex-wrap: wrap;
  }
  .dashboard {
    padding: 12px;
  }
  .dashboard strong {
    font-size: 16px;
  }
  .dashboard small {
    font-size: 10px;
  }
}
@media (max-width: 650px) {
  .site-header {
    padding: 16px 18px;
  }
  .brand {
    font-size: 13px;
  }
  .site-header > a:last-child {
    font-size: 10px;
  }
  main {
    padding: 0 14px;
  }
  .intro {
    padding: 25px 5px 23px;
    align-items: start;
  }
  .intro .eyebrow {
    font-size: 8px;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
  }
  h1 {
    font-size: 61px;
    letter-spacing: -3px;
  }
  .intro-copy {
    max-width: 119px;
    font-size: 10px;
    line-height: 1.7;
    margin: 30px 0 0 12px;
  }
  .game-layout {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .game-frame {
    width: 100%;
    border-radius: 11px;
  }
  .dashboard {
    padding: 12px 13px;
    gap: 8px;
  }
  .label {
    font-size: 8px;
  }
  .dashboard strong {
    font-size: 16px;
  }
  #hearts {
    font-size: 11px;
  }
  .overlay {
    padding: 15px;
  }
  .overlay .eyebrow {
    font-size: 8px;
  }
  .postmark {
    display: none;
  }
  .overlay h2 {
    font-size: 33px;
    margin-bottom: 12px;
  }
  .overlay p:not(.eyebrow) {
    font-size: 11px;
    margin-bottom: 15px;
  }
  .primary {
    padding: 13px 22px;
    font-size: 13px;
  }
  .overlay p.overlay-hint {
    font-size: 8px;
    margin-top: 14px;
  }
  .game-toolbar {
    font-size: 9px;
    padding: 9px 10px;
    gap: 5px;
    flex-wrap: nowrap;
  }
  .game-toolbar > span {
    max-width: 145px;
  }
  .game-toolbar button {
    font-size: 9px;
    padding: 8px;
    min-height: 36px;
  }
  .message {
    font-size: 12px;
    padding: 10px 13px;
  }
  .field-guide {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 165px;
    gap: 0 15px;
    padding: 0 5px;
  }
  .field-guide > .eyebrow,
  .field-guide > h2 {
    display: none;
  }
  .dpad {
    grid-column: 2;
    grid-row: 1 / 4;
    grid-template-columns: repeat(3, 47px);
    grid-template-rows: repeat(3, 44px);
  }
  .control-note {
    grid-column: 1;
    grid-row: 1;
    text-align: left;
    margin: 0 0 9px;
    font-size: 9px;
  }
  .best {
    grid-column: 1;
    grid-row: 2;
    font-size: 10px;
    padding-top: 10px;
  }
  .live-status {
    grid-column: 1;
    grid-row: 3;
    font-size: 10px;
    margin: 9px 0 0;
  }
  .field-guide ol {
    grid-column: 1 / -1;
    grid-row: 4;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    border-top: 1px solid var(--line);
    padding-top: 22px;
    margin-top: 24px;
  }
  .field-guide li {
    display: block;
  }
  .field-guide li > span {
    display: block;
    margin-bottom: 5px;
  }
  .field-guide li strong {
    font-size: 10px;
  }
  .field-guide li p {
    font-size: 10px;
  }
  .route-note {
    grid-column: 1 / -1;
    margin: 0;
    padding: 10px 0;
    border-top: 0;
  }
  .route-note p {
    font-size: 10px;
  }
  .route-note > span {
    font-size: 25px;
  }
  footer {
    font-size: 9px;
    padding: 23px 5px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
  }
  .primary:active,
  .dpad button:active {
    transform: none;
  }
}

@media (min-width: 851px) {
  .site-header {
    padding-top: 20px;
    padding-bottom: 20px;
  }
  .intro {
    padding-top: 28px;
    padding-bottom: 24px;
  }
  h1 {
    font-size: 76px;
  }
  .game-layout {
    grid-template-columns: minmax(
        400px,
        min(720px, calc((100svh - 372px) * 1.125))
      ) minmax(240px, 1fr);
  }
}
@media (max-width: 650px) {
  .intro {
    display: block;
    padding: 22px 5px 20px;
  }
  .intro-copy {
    display: none;
  }
  .intro .eyebrow {
    margin-bottom: 10px;
  }
  h1 {
    font-size: 56px;
  }
}
