@font-face {
  font-family: Nunito;
  src: url(/fonts/nunito.woff2) format("woff2");
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
}
:root {
  --ink: #183f43;
  --dark: #174d4c;
  --soft: #eaf1e4;
  --paper: #fffdf5;
  --edge: #dedbca;
  --tone: #a34d26;
  --muted: #506360;
  --shadow: 0 5px 0 #e5e0ce;
  line-height: 1.45;
  font-family: Nunito, ui-rounded, system-ui, sans-serif;
  color: var(--ink);
  background: #faf7ed;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 8% 22%, #f5edd95c, transparent 58%), #faf7ed;
}
body[data-theme="cove"] {
  --dark: #20556b;
  --soft: #e4f2f0;
  --tone: #984b32;
}
a {
  color: inherit;
}
button,
input,
textarea {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #0b69a0;
  outline-offset: 4px;
}
h1:focus,
main:focus {
  outline: 0;
}
header,
main,
footer {
  width: min(1180px, calc(100% - 64px));
  margin: 0 auto;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 86px;
  border-bottom: 1px solid var(--edge);
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 950;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  letter-spacing: -0.055em;
  text-decoration: none;
}
.brand img {
  width: 34px;
  height: 39px;
  transform: rotate(-6deg);
}
#mode {
  font-weight: 850;
  font-size: 0.86rem;
  color: var(--muted);
}
main {
  flex: 1;
  padding: 30px 0 36px;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--muted);
  font-weight: 750;
  font-size: 0.78rem;
  padding: 19px 0;
  border-top: 1px solid var(--edge);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  line-height: 1.07;
  letter-spacing: -0.045em;
  font-weight: 950;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.3rem, 4.4vw, 4.25rem);
}
h1 em {
  font-style: normal;
  color: var(--tone);
}
h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.55rem);
}
h3 {
  font-size: 1.32rem;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  color: var(--tone);
  margin-bottom: 12px;
}
.lead,
.gamedesc {
  color: var(--muted);
  line-height: 1.5;
  font-size: clamp(1.06rem, 1.6vw, 1.25rem);
  font-weight: 650;
}
.fine {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
}
.ico {
  width: 1.18em;
  height: 1.18em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.primary,
.secondary,
.textlink,
.bag-action,
.station,
.tray button {
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  text-decoration: none;
  font-weight: 900;
  line-height: 1.2;
  min-height: 48px;
  border-radius: 14px;
  padding: 12px 19px;
  font-size: 1rem;
}
.primary {
  background: var(--dark);
  color: #fffdf5;
  box-shadow: 0 3px 0 #113a39;
}
.secondary {
  border: 1.5px solid #c4cec1;
  background: var(--paper);
  color: var(--dark);
}
.textlink {
  background: transparent;
  color: var(--dark);
  padding: 7px 2px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.primary:hover,
.station:hover,
.bag-action:hover,
.tray button:hover {
  filter: brightness(1.05);
}
.actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.actions .primary {
  flex-shrink: 0;
}
.skip,
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(100%);
}
.skip:focus {
  position: fixed;
  z-index: 99;
  top: 8px;
  left: 8px;
  clip-path: none;
  width: auto;
  height: auto;
  background: white;
  padding: 12px;
}
.spread,
.game-shell,
.clinic-card,
.paper {
  border: 1px solid var(--edge);
  background: var(--paper);
  border-radius: 25px;
  box-shadow: var(--shadow);
}
.spread {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  overflow: hidden;
  margin: 18px 0 23px;
}
.copy {
  padding: clamp(25px, 4.5vw, 66px);
  align-self: center;
}
.copy .lead {
  margin: 20px 0 26px;
}
.copy .fine {
  margin-top: 23px;
}
.mini-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #f8e7c9;
  color: #834d27;
  margin: 16px 0;
}
.mini-icon svg {
  width: 24px;
  height: 24px;
}
.hero-art,
.card-art {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #e7ddc7;
  min-height: 0;
}
.hero-art {
  min-height: 450px;
}
.room-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-art .room-bg {
  position: absolute;
  inset: 0;
}
.hero-guide {
  position: absolute;
  left: 7%;
  bottom: 2%;
  width: 30%;
  max-height: 54%;
  object-fit: contain;
  filter: drop-shadow(2px 6px 4px #30221230);
}
.homehead {
  margin: 10px 0 25px;
}
.homehead h1 {
  font-size: clamp(2.65rem, 5vw, 4.5rem);
}
.homehead > p:last-child {
  margin-top: 12px;
  color: var(--muted);
  font-weight: 650;
}
.clinic-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.clinic-card {
  overflow: hidden;
}
.card-art {
  aspect-ratio: 2.5;
}
.card-art .room-bg {
  object-position: 50% 50%;
}
.clinic-card > div:last-child {
  padding: 20px 25px 25px;
}
.clinic-card .eyebrow {
  margin: 0 0 4px;
}
.clinic-card p:not(.eyebrow) {
  margin: 7px 0 12px;
  color: var(--muted);
}
.game-meta,
.reviewmeta,
.draftbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.game-meta {
  margin: 3px 4px 11px;
  font-size: 0.9rem;
  font-weight: 850;
}
.game-meta span:last-child {
  display: flex;
  gap: 5px;
  align-items: center;
  color: var(--muted);
}
.game-meta .ico {
  color: #9c6723;
}
.game-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(0, 1fr);
  overflow: hidden;
  align-items: stretch;
}
.game-panel {
  padding: clamp(24px, 3.4vw, 52px);
  align-self: center;
}
.game-panel h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.7rem);
}
.gamedesc {
  margin: 12px 0 22px;
}
.scene-frame {
  position: relative;
  overflow: hidden;
  background: #e1d8bf;
  min-height: 350px;
  aspect-ratio: 1.33;
  align-self: center;
  width: 100%;
  isolation: isolate;
}
.world {
  position: absolute;
  overflow: visible;
}
.normal {
  inset: 0;
}
.scene {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}
.guide {
  position: absolute;
  bottom: 1%;
  left: 5%;
  width: 27%;
  height: 41%;
  border: 0;
  background: none;
  padding: 0;
  object-fit: contain;
  object-position: bottom;
  transform-origin: 50% 95%;
  filter: drop-shadow(1px 5px 3px #47301e38);
}
.guide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom;
}
.clue .guide,
.hunt .guide {
  width: 23%;
  height: 35%;
}
.target {
  position: absolute;
  background: transparent;
  border: none;
  border-radius: 40%;
  min-width: 44px;
  min-height: 44px;
}
.target:focus-visible {
  outline: 4px dashed #143b4c;
  background: #fff8;
}
.target.outlined {
  box-shadow:
    0 0 0 4px #fff3af,
    0 0 0 7px #86561b;
  background: #fff5a826;
}
.station-list {
  display: grid;
  gap: 9px;
}
.station {
  background: #f1f1df;
  border: 1px solid #d4d6bb;
  color: var(--ink);
  text-align: left;
  font-size: 1.13rem;
  justify-content: flex-start;
  padding: 10px 13px;
}
.station:nth-child(2) {
  background: #e6eee8;
  border-color: #c8d9d0;
}
.station-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: #fffdf5;
}
.station > .ico:last-child {
  margin-left: auto;
}
.bag-action,
.clue-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f9ebcf;
  border: 1px solid #e7cba4;
  color: #56391e;
}
.bag-action {
  min-height: 68px;
  justify-content: space-between;
  width: 100%;
  padding: 6px 16px;
}
.bag {
  display: inline-flex;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
}
.bag img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.clue-card {
  border-radius: 17px;
  padding: 8px 14px;
  gap: 12px;
  font-size: 1.18rem;
  font-weight: 900;
  margin-bottom: 14px;
}
.clue-card .bag {
  margin-left: auto;
  width: 37px;
  height: 37px;
}
.clue-card .stamp {
  width: 52px;
  height: 52px;
}
.stamp {
  object-fit: contain;
  display: block;
  width: 65px;
  height: 65px;
  filter: drop-shadow(1px 2px 1px #57453040);
}
.won-sticker {
  position: absolute;
  right: 7%;
  bottom: 8%;
  transform: rotate(8deg);
  background: #fff4d5;
  border: 4px solid white;
  border-radius: 25%;
  padding: 11px;
  box-shadow: 0 5px 18px #563b274a;
}
.won-sticker .stamp {
  width: 70px;
  height: 70px;
}
.choices,
.tray {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.choices {
  margin: 6px 0;
}
.tray button {
  background: #f7ecd5;
  border: 2px dashed #b69467;
  color: var(--ink);
  flex-direction: column;
}
.postcard {
  margin: 25px;
  align-self: center;
  padding: 19px;
  border: 1px solid #c4ae87;
  background: repeating-linear-gradient(
    135deg,
    #f4e8c9 0 6px,
    #f8efd9 6px 12px
  );
  box-shadow: 2px 4px 0 #c5b89c;
  transform: rotate(-1deg);
  position: relative;
  color: #4d4a35;
}
.posthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 800;
}
.postmark {
  font-size: 0.65rem;
  border: 1px solid #92795a;
  border-radius: 50%;
  padding: 5px 9px;
  transform: rotate(7deg);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.postpic {
  position: relative;
  overflow: hidden;
  margin: 12px 0 7px;
  aspect-ratio: 1.9;
  border: 5px solid #fffcf0;
  background: #eee;
}
.postpic > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.postguide {
  position: absolute;
  bottom: 0;
  left: 5%;
  width: 20%;
  height: 57%;
  object-fit: contain;
}
.stamps {
  display: flex;
  gap: 8px;
}
.stamps > div {
  border: 1px dashed #907650;
  background: #fff9e5;
  padding: 3px;
  border-radius: 10px;
}
.stamps .stamp {
  width: 45px;
  height: 45px;
}
.empty-stamp img {
  filter: brightness(0);
  opacity: 0.17;
}
.reviewtop {
  margin: 8px 0 20px;
}
.reviewtop h1 {
  font-size: clamp(2.1rem, 4vw, 3.5rem);
}
.reviewmeta {
  margin-top: 11px;
  justify-content: flex-start;
  color: var(--muted);
  font-size: 0.9rem;
}
.reviewmeta .textlink {
  margin-left: auto;
}
.pill {
  background: var(--soft);
  padding: 5px 12px;
  border-radius: 20px;
  font-weight: 850;
}
.reviewlayout {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 22px;
  align-items: start;
}
.paper {
  padding: clamp(20px, 3vw, 36px);
}
.paper h2 {
  font-size: 1.65rem;
  margin-bottom: 12px;
}
.paper p {
  margin: 9px 0;
  color: var(--muted);
}
.review-room {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 16px;
  align-items: center;
  padding-top: 17px;
  margin-top: 17px;
  border-top: 1px solid var(--edge);
}
.room-thumb {
  position: relative;
  aspect-ratio: 1.2;
  overflow: hidden;
  border-radius: 12px;
}
.review-room p {
  font-size: 0.88rem;
}
.controls {
  display: grid;
  gap: 8px;
}
.field {
  display: grid;
  gap: 5px;
  margin: 6px 0;
}
.field span {
  font-size: 0.9rem;
  font-weight: 850;
}
input,
textarea {
  width: 100%;
  border-radius: 9px;
  border: 1.5px solid #b7c3b3;
  padding: 10px;
  background: #fffefa;
  color: var(--ink);
  min-height: 44px;
}
textarea {
  min-height: 88px;
  resize: vertical;
}
.checkbox {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 48px;
  font-size: 0.9rem;
}
.checkbox input {
  width: 22px;
  height: 22px;
  min-height: 22px;
  flex: none;
}
.controls hr {
  width: 100%;
  border: 0;
  border-top: 1px solid var(--edge);
}
#error {
  color: #993f29;
  font-weight: 800;
}
.log,
.narrow {
  margin: 20px 0;
}
.draftbar {
  background: #f1e3bd;
  padding: 5px 15px;
  border-radius: 12px;
  font-weight: 800;
  margin-bottom: 15px;
}
@keyframes perk {
  0% {
    transform: scale(0.95) rotate(-4deg);
  }
  45% {
    transform: scale(1.045) rotate(2deg);
  }
  100% {
    transform: none;
  }
}
@keyframes lift {
  0% {
    opacity: 0;
    transform: translateY(15px) scale(0.75);
  }
  70% {
    transform: translateY(-3px) scale(1.06);
  }
  100% {
    opacity: 1;
    transform: none;
  }
}
@keyframes bagopen {
  0% {
    transform: rotate(-13deg) scale(0.8);
  }
  45% {
    transform: rotate(9deg) scale(1.15);
  }
  100% {
    transform: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .clue .guide,
  .celebrate .guide {
    animation: perk 0.55s ease-out;
  }
  .open,
  .hunt .guide {
    animation: bagopen 0.48s ease-out;
  }
  .clue-card .stamp,
  .won-sticker,
  .placed:last-child {
    animation: lift 0.46s ease-out;
  }
  .station:hover > .ico:last-child,
  .primary:hover .ico {
    transform: translateX(2px);
  }
}
@media (max-width: 800px) {
  header,
  main,
  footer {
    width: calc(100% - 36px);
  }
  header {
    min-height: 66px;
  }
  main {
    padding: 17px 0 24px;
  }
  .game-panel {
    padding: 21px;
  }
  .game-shell {
    grid-template-columns: 1.1fr 1fr;
  }
  .scene-frame {
    min-height: 290px;
  }
  .spread {
    grid-template-columns: 0.95fr 1fr;
  }
  .hero-art {
    min-height: 355px;
  }
  .reviewlayout {
    grid-template-columns: 1fr;
  }
  .review-room {
    grid-template-columns: 125px 1fr;
  }
  .actions {
    gap: 9px;
  }
}
@media (max-width: 620px) {
  header,
  main,
  footer {
    width: calc(100% - 24px);
  }
  header {
    min-height: 56px;
  }
  .brand {
    gap: 7px;
  }
  .brand img {
    width: 27px;
    height: 32px;
  }
  #mode {
    font-size: 0.75rem;
  }
  main {
    padding-top: 11px;
  }
  .game-meta {
    font-size: 0.78rem;
    margin: 0 2px 7px;
  }
  .game-shell,
  .spread,
  .clinic-grid {
    display: flex;
    flex-direction: column;
  }
  .game-shell,
  .spread,
  .paper,
  .clinic-card {
    border-radius: 18px;
  }
  .scene-frame {
    aspect-ratio: 1.42;
    min-height: 0;
  }
  .game-panel {
    width: 100%;
    padding: 16px 19px 18px;
  }
  .game-panel h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.4rem);
  }
  .game-panel .eyebrow {
    font-size: 0.62rem;
    margin-bottom: 5px;
  }
  .gamedesc {
    font-size: 1rem;
    margin: 6px 0 12px;
  }
  .station-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .station {
    font-size: 0.98rem;
    padding: 8px;
    gap: 5px;
    min-height: 52px;
  }
  .station-icon {
    width: 28px;
    height: 29px;
  }
  .station > .ico:last-child {
    width: 0.9em;
  }
  .spread {
    margin: 5px 0 14px;
  }
  .hero-art {
    order: -1;
    min-height: 0;
    aspect-ratio: 1.75;
  }
  .copy {
    padding: 22px;
  }
  .copy h1 {
    font-size: 2.45rem;
  }
  .copy .lead {
    margin: 10px 0 18px;
  }
  .copy .fine {
    margin-top: 15px;
  }
  .mini-icon {
    display: none;
  }
  .homehead {
    margin: 8px 0 18px;
  }
  .homehead h1 {
    font-size: 2.6rem;
  }
  .clinic-grid {
    gap: 18px;
  }
  .card-art {
    aspect-ratio: 2.25;
  }
  .clinic-card > div:last-child {
    padding: 16px 18px;
  }
  .postcard {
    width: calc(100% - 42px);
    margin: 19px 21px 3px;
    padding: 12px;
  }
  .postpic {
    aspect-ratio: 2.9;
  }
  .postcard h2 {
    font-size: 1.65rem;
  }
  .posthead {
    font-size: 0.74rem;
  }
  .stamps .stamp {
    width: 35px;
    height: 35px;
  }
  .review-room {
    grid-template-columns: 90px 1fr;
    gap: 12px;
  }
  .reviewmeta .textlink {
    margin: 0;
  }
  .paper {
    padding: 19px;
  }
  .game-panel .textlink {
    font-size: 0.9rem;
  }
  .bag-action {
    min-height: 51px;
  }
  .bag {
    width: 41px;
    height: 41px;
  }
  .clue-card {
    margin-bottom: 8px;
    padding: 5px 12px;
  }
  .clue-card .stamp {
    width: 42px;
    height: 42px;
  }
  .primary,
  .secondary {
    min-height: 45px;
  }
  .reviewtop {
    margin: 5px 0 12px;
  }
  .won-sticker .stamp {
    width: 48px;
    height: 48px;
  }
}
@media (max-width: 360px) {
  .station-icon {
    display: none;
  }
  .game-panel {
    padding: 14px;
  }
  .actions {
    align-items: stretch;
  }
  .review-room {
    display: block;
  }
  .room-thumb {
    aspect-ratio: 2.3;
    margin-bottom: 9px;
  }
}
.review-room details {
  grid-column: 1/-1;
}
.review-room summary {
  cursor: pointer;
  min-height: 44px;
  font-weight: 800;
}
.reference-photo {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}
.scene-frame {
  aspect-ratio: var(--frame-ratio, 1.5);
  min-height: 0;
}
.game-shell {
  background: linear-gradient(90deg, #e8ebdf 0 53%, var(--paper) 53%);
}
.game-panel {
  background: var(--paper);
}
.postcard-state {
  background: var(--paper);
}
@media (max-width: 620px) {
  .game-shell {
    background: var(--paper);
  }
}
.game-panel > .textlink {
  display: flex;
  width: fit-content;
}
.game-panel > .textlink + .textlink {
  margin-top: 2px;
}
