:root {
  color-scheme: dark;
  font-family: system-ui, sans-serif;
  background: #081c22;
  color: #f9f0dc;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
.trail {
  min-height: 100svh;
  max-width: 970px;
  margin: auto;
  padding: clamp(16px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(225px, .85fr) minmax(290px, 1.15fr);
  align-items: center;
  gap: clamp(18px, 4vw, 42px);
}
.trail h1 { margin: 0; font: 650 clamp(2.7rem, 7vw, 5.5rem)/.94 Fraunces, Georgia, serif; }
.trail-copy p { max-width: 29ch; line-height: 1.5; color: #ceded6; }
.trail-copy .round { color: #f4cf7a; font-size: .87rem; margin-top: 1.6rem; }
.game-status { min-height: 1.5rem; margin: .5rem 0 .8rem; font-weight: 650; }
button {
  font: inherit;
  color: inherit;
  border: 1px solid #49615e;
  border-radius: .8rem;
  background: #173638;
  cursor: pointer;
  min-height: 46px;
  padding: .55rem .75rem;
}
button:focus-visible, .game-status:focus-visible { outline: 3px solid #ffe2a0; outline-offset: 3px; }
button[disabled] { cursor: default; opacity: .55; }
.start {
  background: #f2ce80;
  color: #1e241b;
  border-color: #f2ce80;
  padding-inline: 1.2rem;
  font-weight: 750;
}
.start:not(:disabled):hover { background: #ffe3a5; }
.trail-share { margin-top: .65rem; }
.trail-listing { margin: 0; font-size: .85rem; }
.trail-listing a { color: #ceded6; }
.trail-share span { display: block; margin-top: .25rem; font-size: .85rem; color: #ceded6; }
.trail-share input { width: 100%; padding: .45rem; background: #173638; color: inherit; border: 1px solid #49615e; border-radius: .45rem; }
.trail-share input:focus-visible { outline: 2px solid #ffe2a0; outline-offset: 2px; }
.board { max-width: 545px; }
canvas { width: 100%; height: auto; display: block; border: 1px solid #455751; border-radius: 1.15rem; }
canvas.accepts-guess { cursor: pointer; }
[aria-pressed="false"] { color: #ceded6; background: #102b2d; }
.ornaments { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; margin: .65rem 0 0; }
.ornaments button { display: grid; place-items: center; gap: .2rem; font-size: .85rem; padding-inline: .15rem; }
.ornaments button span { font-size: 1.04rem; font-weight: 700; }
.ornaments button:nth-child(1) span { color: #ffc968; }
.ornaments button:nth-child(2) span { color: #fd969b; }
.ornaments button:nth-child(3) span { color: #a6dcff; }
.ornaments button:nth-child(4) span { color: #a3dfbb; }
.ornaments button:not(:disabled):hover, .ornaments .lit { border-color: #f2ce80; background: #35514d; opacity: 1; }
.keys { font-size: .78rem; color: #ceded6; text-align: center; margin: .55rem 0 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 660px) {
  .trail { grid-template-columns: 1fr; max-width: 470px; align-content: start; }
  .trail h1 { font-size: clamp(2.6rem, 9vw, 4rem); }
  .trail-copy .round { margin-top: .85rem; }
}
