:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color: #30291e;
  background: #e9dfc9;
  font-synthesis: none;
  --paper: #fff6df;
  --ink: #30291e;
  --green: #284d3d;
  --gold: #b77824;
  --edge: #927348;
  --red: #923b32;
  --radius: 8px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  min-height: 44px;
  border: 1px solid #8c7454;
  background: #f7ebd3;
  border-radius: 7px;
  padding: 8px 14px;
  touch-action: manipulation;
}
button:disabled {
  cursor: default;
  color: #665e50;
  background: #e2d7c2;
  border-color: #a99b85;
}
button:not(:disabled):hover {
  filter: brightness(1.045);
}
button:focus-visible,
input:focus-visible {
  outline: 3px solid #176857;
  outline-offset: 3px;
}
input {
  border: 1px solid #806d53;
  border-radius: 5px;
  min-height: 46px;
  padding: 9px 12px;
  color: var(--ink);
  background: #fffaf0;
  max-width: 100%;
}
input[type="range"] {
  padding: 0;
  accent-color: var(--green);
  width: 100%;
  min-height: 44px;
}
input[type="checkbox"] {
  width: 22px;
  min-height: 22px;
  accent-color: var(--green);
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
}
h1 {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
  line-height: 1.12;
}
h2 {
  font-size: clamp(1.15rem, 1.55vw, 1.5rem);
}
h3 {
  font-size: 1.1rem;
}
p {
  line-height: 1.5;
}
small {
  font-size: 0.79rem;
  line-height: 1.4;
}
img {
  max-width: 100%;
  object-fit: contain;
}
button img {
  pointer-events: none;
}
svg {
  display: block;
}
[hidden] {
  display: none !important;
}
.primary {
  background: var(--green);
  color: #fff9e9;
  border: 1px solid #183c2c;
  box-shadow: 0 3px 0 #183b2d;
  font-weight: 650;
  min-height: 48px;
}
.primary:disabled {
  background: #b4bead;
  box-shadow: none;
  color: #34402f;
}
.secondary {
  background: #fff4d9;
  font-weight: 600;
}
.quiet {
  background: transparent;
  border-color: transparent;
  padding: 8px 10px;
}
.text-button {
  border: 0;
  background: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 7px 4px;
  min-height: 38px;
  color: #355441;
}
.error {
  color: #90362e;
  font-size: 0.95rem;
  min-height: 1px;
}
.masthead {
  height: 65px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 22px;
  background: #f4e8cc;
  border-bottom: 1px solid #a58b62;
  gap: 12px;
  position: relative;
  z-index: 10;
}
.wordmark {
  font:
    bold 1.7rem Georgia,
    serif;
  letter-spacing: -1px;
  border: 0;
  background: transparent;
  padding: 4px;
  white-space: nowrap;
}
.wordmark span {
  color: #965419;
}
.utilities {
  display: flex;
  align-items: center;
  gap: 5px;
}
.flag {
  background: transparent;
  border: 2px solid transparent;
  padding: 6px;
  width: 48px;
  height: 44px;
}
.flag svg {
  width: 31px;
  height: 23px;
  transform: rotate(-3deg);
  border-radius: 2px;
  box-shadow: 0 1px 2px #2d241c55;
}
.flag[aria-pressed="true"] {
  border-color: var(--green);
  background: #e1e5cd;
}
.connection {
  font-size: 0.78rem;
  color: #355441;
  flex: 1;
  text-align: right;
}
.connection.offline {
  color: #8b332b;
}
.entry {
  min-height: calc(100dvh - 65px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 40px 8%;
  background: #3f373a;
}
.entry-art {
  position: absolute;
  inset: 0;
  overflow: hidden;
}
.entry-art > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 34% 50%;
}
.entry-paper {
  position: relative;
  max-width: 450px;
  width: 100%;
  padding: 30px 34px 24px;
  background: #fff4db;
  box-shadow: 0 14px 35px #21182088;
  transform: rotate(0.4deg);
  border-radius: 3px 14px 6px 9px;
}
.title-art {
  width: 230px;
  height: 115px;
  display: block;
  margin: -10px auto 8px;
}
.entry-paper h1 {
  font-size: 2rem;
}
.intro-copy {
  margin: 13px 0 23px;
  font-size: 1.02rem;
}
.entry form label {
  display: block;
  margin: 0 0 5px;
  font-weight: 650;
  font-size: 0.9rem;
}
.entry form input {
  width: 100%;
  margin-bottom: 12px;
}
.entry-primary,
.entry #entry-primary,
.entry #practice,
.entry #resume {
  width: 100%;
}
.entry-options {
  display: grid;
  gap: 5px;
  margin-top: 14px;
}
.entry-foot {
  font-size: 0.82rem;
  text-align: center;
  margin: 19px 0 8px;
}
.invite-note {
  padding: 8px 0 16px;
  color: #32513c;
  font-weight: 600;
}
.join-form {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #c4ad8b;
}
.join-form input {
  text-transform: uppercase;
}
.entry #entry-error {
  margin-top: 10px;
}
.lobby {
  min-height: calc(100dvh - 65px);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6vw;
  padding: 40px 25px;
  background: #e1dbc2;
}
.lobby-art {
  width: 240px;
  flex-shrink: 0;
}
.lobby-art img {
  width: 100%;
  max-height: 450px;
  filter: drop-shadow(0 12px 8px #4d382833);
}
.lobby-paper {
  width: 650px;
  max-width: 100%;
  background: var(--paper);
  padding: 30px;
  border-radius: 4px 12px 6px 9px;
  box-shadow: 0 8px 20px #4a392722;
}
.lobby-paper > p {
  margin: 12px 0;
}
.room-invite {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0;
  border-block: 1px solid #b09a78;
  padding: 14px 0;
}
.room-invite > span {
  font-size: 0.8rem;
}
.room-invite strong {
  font-size: 1.45rem;
  letter-spacing: 3px;
}
.room-invite button {
  margin-left: auto;
}
.lobby-players {
  list-style: none;
  padding: 0;
  margin: 5px 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lobby-players li {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.lobby-players .lobby-portrait {
  width: 64px;
  height: 75px;
  object-position: bottom;
}
.lobby-players li > div {
  min-width: 0;
  flex: 1;
}
.lobby-players strong {
  display: block;
  overflow-wrap: anywhere;
}
.lobby-players span {
  display: block;
  font-size: 0.8rem;
  margin-top: 4px;
}
.lobby-players button {
  font-size: 0.75rem;
  padding: 6px;
}
.difficulty {
  border: 0;
  padding: 0;
  margin: 16px 0;
}
.difficulty legend {
  font-family: Georgia, serif;
  font-weight: 700;
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.difficulty > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}
.difficulty button {
  padding: 12px 9px;
  text-align: left;
  min-height: 110px;
  background: #eee1c8;
  border: 2px solid #a8916a;
}
.difficulty button[aria-pressed="true"] {
  border-color: #31533e;
  background: #e0e7ce;
}
.difficulty strong {
  display: block;
  margin-bottom: 5px;
}
.difficulty span {
  font-size: 0.79rem;
  line-height: 1.35;
  display: block;
}
.lobby #start {
  float: right;
}
.save-note {
  font-size: 0.78rem;
  color: #5d513f;
  clear: both;
  padding-top: 16px;
}
.table {
  padding: 0 18px 14px;
  max-width: 1880px;
  margin: auto;
}
.table-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 77px;
  gap: 12px;
}
.players {
  list-style: none;
  display: flex;
  gap: 10px;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.player {
  display: flex;
  align-items: center;
  gap: 7px;
  position: relative;
  padding: 5px 10px 5px 3px;
  border-bottom: 3px solid transparent;
  max-width: 235px;
}
.player.active {
  border-color: var(--green);
  background: #f3ebd9;
}
.player img {
  width: 44px;
  height: 54px;
  object-position: bottom;
}
.player strong {
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}
.player span {
  display: block;
  font-size: 0.75rem;
  margin-top: 3px;
  color: #5d513e;
}
.player small {
  font-size: 0.7rem;
}
.player.cursed {
  opacity: 0.6;
}
.table-tools {
  display: flex;
  flex-shrink: 0;
}
.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 295px;
  gap: 20px;
}
.board-column {
  min-width: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  align-content: start;
}
.board-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 58px;
}
.board-heading #turn-guidance {
  font-size: 1rem;
  font-weight: 600;
  max-width: 60%;
  line-height: 1.35;
}
.clock {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.clock svg {
  width: 47px;
  height: 47px;
  fill: #f9efd6;
  stroke: #6d5230;
  stroke-width: 2;
}
.clock #clock-hand {
  transform-origin: 25px 25px;
  transition: transform 0.6s;
}
.clock strong {
  display: block;
  font:
    700 1.4rem Georgia,
    serif;
}
.clock span {
  font-size: 0.73rem;
  display: block;
  max-width: 150px;
}
.map-viewport {
  aspect-ratio: 8192/5792;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  align-self: center;
  justify-self: center;
  width: min(100%,calc((100dvh - 435px) * 1.41436));
  min-width: min(100%,460px);
  max-height: none;
  min-height: 0;
  border-radius: 11px;
  background: #75b7ba;
  touch-action: none;
  box-shadow: 0 4px 8px #40331d22;
}
.map {
  position: absolute;
  inset: 0;
  transform-origin: center center;
}
.castle {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: fill;
  user-select: none;
  pointer-events: none;
}
.paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.paths line {
  stroke: transparent;
  stroke-width: 1;
}
.paths .locked-path {
  stroke: #9c432f;
  stroke-width: 1.1;
  stroke-dasharray: 1 1;
  opacity: 0.75;
}
.room-target {
  position: absolute;
  border: 2px solid transparent;
  background: transparent;
  border-radius: 25% 20% 10% 10%;
  padding: 0;
  z-index: 3;
  min-height: 44px;
  touch-action: manipulation;
  transition:
    background 0.18s,
    border-color 0.18s;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.room-target:hover {
  background: #f9e5ad33;
  filter: none !important;
}
.room-target.legal {
  border-color: #fff0af;
  background: #fff7b80d;
  box-shadow:
    inset 0 0 0 2px #31573a,
    0 0 0 1px #31573a;
}
.room-target.selected {
  border-color: #244f37;
  background: #c3e09a44;
  box-shadow: inset 0 0 0 2px #ffe5a0;
}
.room-target.locked {
  background: #33343144;
}
.room-target.ghost-room {
  border-color: #e8eff1;
}
.room-label {
  position: relative;
  top: 0px;
  background: #fff2d7;
  color: #372b20;
  border: 1px solid #7c6547;
  border-radius: 3px;
  padding: 3px 5px;
  font-size: clamp(0.67rem, 0.9vw, 0.9rem);
  line-height: 1.15;
  font-weight: 650;
  box-shadow: 0 2px 0 #79604044;
  pointer-events: none;
  max-width: 96%;
}
.room-state {
  position: absolute;
  right: 1%;
  top: 28%;
  pointer-events: none;
}
.room-state img {
  width: 32px;
  height: 35px;
  filter: drop-shadow(0 2px 1px #241c1c77);
}
.room-state .lock-mark {
  font-size: 0.65rem;
  font-weight: bold;
  color: #fff2d6;
  background: #6d3d2e;
  padding: 3px 5px;
  border-radius: 4px;
}
.fed-mark {
  background: #fff6df;
  border: 1px solid #31503b;
  color: #264633;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  font-weight: bold;
  font-size: 1rem;
}
.search-mark {
  display: inline-block;
  background: #fff3d2;
  border-radius: 50%;
  padding: 2px;
}
.animal {
  position: absolute;
  width: 10%;
  height: 13%;
  object-fit: contain;
  pointer-events: none;
  z-index: 2;
  user-select: none;
  transform-origin: bottom center;
  animation: animal-breathe 6s ease-in-out infinite;
}
.animal-stable,
.animal-dungeons {
  width: 16%;
  left: 0;
  transform: translateX(-12%);
}
.animal-chapel {
  width: 12%;
}
.animal-dungeons { visibility: hidden; }
.ghost {
  position: absolute;
  width: 8%;
  height: 13%;
  object-fit: contain;
  transform: translate(-50%, -50%);
  z-index: 5;
  pointer-events: none;
  transition:
    left 0.65s ease-in-out,
    top 0.65s ease-in-out;
  filter: drop-shadow(0 5px 4px #3c485a55);
  animation: ghost-bob 4s ease-in-out infinite;
}
.pawn {
  position: absolute;
  width: 44px;
  height: 44px;
  min-height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  z-index: 6;
  transition:
    left 0.45s ease,
    top 0.45s ease;
  touch-action: none;
  user-select: none;
}
.pawn img {
  width: 36px;
  height: 36px;
  border: 3px solid #185777;
  background: #eee9d4;
  box-shadow: 0 3px 3px #30251c66;
  object-fit: contain;
  object-position: bottom;
  border-radius: 50%;
  pointer-events: none;
}
.pawn.color-1 img {
  border-color: #9f342b;
}
.pawn.color-2 img {
  border-color: #5a762d;
}
.pawn.color-3 img {
  border-color: #9e7216;
}
.pawn.my-pawn { z-index:7; }
.pawn.my-pawn img {
  box-shadow:
    0 0 0 2px #fff1b4,
    0 3px 3px #30251c66;
}
.pawn-follower {
  position: fixed !important;
  transform: none !important;
  z-index: 1000 !important;
  pointer-events: none !important;
  transition: none !important;
  opacity: 1 !important;
}
.pawn.dragging {
  opacity: 0.35;
}
.map-tools {
  position: absolute;
  left: 10px;
  bottom: 8px;
  display: flex;
  gap: 5px;
  z-index: 8;
}
.map-tools button {
  min-height: 44px;
  padding: 4px 10px;
  font-size: 0.79rem;
  background: #fff4dc;
}
.map-tools #undo {
  margin-left: 8px;
}
.move-preview {
  position: absolute;
  z-index: 9;
  transform: translate(-50%,-100%);
  min-width: 155px;
  max-width: 205px;
  background: #fff4d9;
  border: 1px solid #71583a;
  border-radius: 6px;
  box-shadow: 0 5px 15px #35291e55;
  padding: 7px;
  text-align: center;
  font-size: 0.8rem;
}
.move-preview > div {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-top: 5px;
}
.move-preview .confirm {
  background: #27523d;
  color: #fff9de;
  border-color: #173727;
  min-height: 44px;
  padding: 6px 12px;
}
.move-preview .confirm::before {
  content: "✓";
  margin-right: 5px;
  font-weight: bold;
}
.move-preview .small {
  font-size: 1.1rem;
  min-width: 40px;
  padding: 4px;
}
.action-shelf {
  margin-top: 12px;
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 10px 14px;
  background: var(--paper);
  border-top: 2px solid #a98a59;
  border-radius: 4px;
  position: relative;
}
.action-title {
  flex: 1;
  max-width: 500px;
  min-width: 0;
}
.action-title h2 {
  font-size: 1.25rem;
  line-height: 1.2;
}
.action-title p {
  font-size: 0.86rem;
  margin-top: 6px;
}
.action-title small {
  display: block;
  margin-top: 5px;
}
.die-art {
  width: 67px;
  height: 67px;
  flex-shrink: 0;
}
.die-wrap {
  width: 70px;
}
.action-animal {
  width: 77px;
  height: 86px;
  object-fit: contain;
  flex-shrink: 0;
}
.action-room {
  width: 90px;
  text-align: center;
  flex-shrink: 0;
}
.action-room > img {
  height: 55px;
  width: 65px;
}
.action-room h2 {
  font-size: 0.92rem;
  line-height: 1.15;
}
.action-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  flex: 1;
  min-width: 0;
}
.action-choice > button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 9px;
  min-height: 56px;
  background: #f1e1bc;
  border: 1px solid #80663e;
  font-weight: 650;
  font-size: 0.9rem;
}
.action-choice > button:disabled {
  background: #e9dfcc;
}
.action-choice img {
  width: 34px;
  height: 36px;
}
.action-choice small {
  display: block;
  line-height: 1.25;
  font-size: 0.71rem;
  margin-top: 5px;
  color: #5a4e3c;
}
.feed-buttons {
  display: grid;
  gap: 4px;
}
.feed-buttons .primary {
  display: flex;
  align-items: center;
  gap: 8px;
}
.feed-buttons img {
  width: 34px;
  height: 34px;
}
.compact-inventory {
  display: none;
}
.narration {
  margin-top: 10px;
  display: flex;
  gap: 11px;
  align-items: center;
  min-height: 79px;
  padding: 0 8px;
}
.narration > img {
  width: 57px;
  height: 75px;
  object-fit: contain;
  object-position: bottom;
}
.narration > div {
  flex: 1;
  min-width: 0;
}
.narration p {
  font-size: 0.89rem;
  line-height: 1.4;
  max-height: 5.5em;
  overflow-y: auto;
  padding-right: 6px;
}
.narration-controls {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.narration .text-button {
  font-size: 0.74rem;
  min-height: 32px;
  padding: 4px 0;
}
.notebook {
  background: #f7edd5;
  align-self: start;
  padding: 15px 16px 12px;
  border-radius: 4px 9px 5px 3px;
  border-top: 3px solid #9b7850;
  box-shadow: 1px 3px 5px #44321f1a;
  min-width: 0;
}
.cat-header {
  display: flex;
  gap: 9px;
  align-items: center;
}
.cat-header > img {
  width: 56px;
  height: 71px;
  object-fit: cover;
  border-radius: 50%;
}
.cat-header h2 {
  font-size: 1.18rem;
}
.cat-header p {
  font-size: 0.73rem;
  margin-top: 4px;
}
.inventory {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
}
.food-slots {
  display: flex;
  gap: 8px;
}
.food-slot {
  width: 70px;
  height: 70px;
  border: 1px dashed #8a795a;
  background: #eee1c0;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.food-slot img {
  width: 58px;
  height: 58px;
  filter: drop-shadow(0 2px 2px #4a331f44);
}
.food-slot span {
  font-size: 0.62rem;
  text-align: center;
  max-width: 50px;
  line-height: 1.25;
}
.keys {
  display: grid;
  grid-template-columns: 30px 25px;
  align-items: center;
  gap: 0 3px;
}
.keys img {
  width: 29px;
  height: 40px;
  grid-row: span 2;
}
.keys strong {
  font:
    700 1.55rem Georgia,
    serif;
}
.keys span {
  font-size: 0.7rem;
}
.pantry-link {
  display: block;
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  font-size: 0.77rem;
  padding: 9px 0;
  margin-bottom: 5px;
}
.suspect-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ad9774;
  padding-top: 13px;
  margin-bottom: 11px;
  gap: 8px;
}
.suspect-heading h2 {
  font-size: 1.17rem;
}
.suspect-heading > span {
  font-size: 0.7rem;
  white-space: nowrap;
}
.suspects {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 11px 6px;
}
.suspect {
  border: 0;
  padding: 0;
  background: transparent;
  position: relative;
  border-radius: 2px;
  min-width: 0;
  align-self: start;
}
.suspect > img {
  width: 100%;
  aspect-ratio: 531/768;
  object-fit: contain;
  filter: drop-shadow(0 2px 2px #5c422c55);
  transition:
    filter 0.3s,
    opacity 0.3s;
}
.suspect > span {
  display: block;
  line-height: 1.13;
  font-size: 0.63rem;
  padding-top: 4px;
  overflow-wrap: anywhere;
  min-height: 25px;
}
.suspect.cleared > img {
  filter: grayscale(1);
  opacity: 0.5;
}
.cleared-stamp {
  position: absolute;
  top: 40%;
  left: -4%;
  right: -4%;
  font-size: 0.6rem;
  background: #f7efd9e8;
  color: #315141;
  border-block: 1px solid #566a45;
  transform: rotate(-13deg);
  padding: 3px 1px;
  text-align: center;
}
.clue-book {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-top: 1px solid #ad9774;
  background: transparent;
  margin-top: 12px;
  padding: 10px 0;
  border-radius: 0;
  font:
    700 1.15rem Georgia,
    serif;
}
.clue-book strong {
  background: #e2d4b3;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
}
.latest-clue {
  font-size: 0.77rem;
  line-height: 1.4;
  margin: 4px 0 0;
}
.new-clue {
  animation: clue-arrival 1s ease-out;
}
.turn-cue {
  position: fixed;
  z-index: 20;
  bottom: 20px;
  left: 26px;
  display: flex;
  align-items: center;
  max-width: min(440px, calc(100vw - 35px));
  background: #fff3d1;
  border: 2px solid #4e6443;
  border-radius: 12px 12px 12px 0;
  padding: 12px 11px 12px 70px;
  box-shadow: 0 5px 18px #30251b44;
  animation: cue-in 0.4s ease-out;
  font-weight: 600;
  font-size: 0.92rem;
}
.turn-cue > img {
  position: absolute;
  width: 58px;
  height: 88px;
  left: 6px;
  bottom: 0;
}
.turn-cue button {
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  padding: 2px 8px;
  min-width: 32px;
  margin-left: 7px;
}
.toast {
  position: fixed;
  z-index: 2000;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  background: #283c30;
  color: #fff7e3;
  padding: 14px 20px;
  max-width: min(650px, 90vw);
  border-radius: 7px;
  box-shadow: 0 5px 18px #1e241d55;
  text-align: center;
  font-size: 0.92rem;
}
dialog {
  border: 1px solid #8d734f;
  border-radius: 9px 16px 9px 5px;
  background: var(--paper);
  color: var(--ink);
  padding: 23px;
  max-width: min(720px, calc(100vw - 30px));
  width: 680px;
  max-height: calc(100dvh - 35px);
  overflow-y: auto;
  box-shadow: 0 18px 70px #211c18aa;
}
dialog::backdrop {
  background: #1e251dcc;
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.dialog-heading > button {
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  padding: 0;
  min-width: 44px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.dialog-actions button {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dialog-actions img {
  height: 28px;
  width: 23px;
}
.settings {
  padding: 0 12px 12px;
}
.slider-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 650;
}
.settings .check {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
}
.settings .check input {
  flex-shrink: 0;
}
.settings #effects-volume {
  margin-bottom: 0;
}
.settings .slider-label:not(:first-child) {
  margin-top: 15px;
}
.settings p,
.settings small {
  margin: 12px 0;
  font-size: 0.8rem;
  color: #62533e;
}
.help-goal {
  font-size: 1.1rem;
  font-weight: 600;
}
.help-illustration {
  max-width: 450px;
  margin: 12px auto;
}
.rules-list > div {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin: 20px 0;
}
.rules-list img {
  width: 62px;
  height: 69px;
  object-fit: contain;
  flex-shrink: 0;
}
.rules-list p {
  font-size: 0.92rem;
}
.adaptation,
.credits {
  font-size: 0.77rem;
  padding-top: 12px;
  border-top: 1px solid #ac9671;
  margin-top: 14px;
}
.pantry-foods {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin: 15px 0 23px;
}
.pantry-foods > button {
  display: grid;
  justify-items: center;
  gap: 7px;
  padding: 12px;
}
.pantry-foods img {
  width: 70px;
  height: 70px;
}
.pantry-foods strong {
  font-size: 0.85rem;
}
.pantry-foods span {
  font-size: 0.77rem;
}
.suspect-inspect {
  display: flex;
  gap: 24px;
  align-items: center;
}
.large-suspect {
  width: 260px;
  max-height: 55dvh;
}
.suspect-inspect > div {
  flex: 1;
}
.suspect-inspect p {
  margin-bottom: 16px;
}
.innocent-label {
  color: #30543d;
  font-size: 1.3rem;
  font-family: Georgia, serif;
}
.room-inspect {
  display: flex;
  gap: 25px;
  align-items: center;
}
.room-inspect > img {
  width: 180px;
  max-height: 300px;
}
.room-inspect p {
  margin-top: 14px;
}
.chest-confirm {
  display: flex;
  gap: 20px;
  align-items: center;
}
.chest-confirm > img {
  width: 110px;
  height: 158px;
}
.clue-list > article {
  display: flex;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid #c4ac87;
}
.clue-list > article > img {
  width: 75px;
  height: 90px;
}
.clue-list h3 {
  margin-bottom: 8px;
}
.clue-list p {
  font-size: 0.95rem;
}
.clue-list small {
  display: block;
  margin-top: 10px;
}
.journal-list {
  padding-left: 24px;
}
.journal-list li {
  padding: 8px 0;
}
.journal-list small {
  color: #5d513f;
}
.journal-list p {
  font-size: 0.89rem;
}
.copy-field {
  width: 100%;
}
#finale {
  width: 690px;
  text-align: center;
  padding: 25px 30px 27px;
  background: #fff1d0;
}
#finale-stage {
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 0 25px;
}
.finale-close {
  display: block;
  margin: 0 0 0 auto;
  background: transparent;
  border-color: transparent;
  font-size: 0.8rem;
  text-decoration: underline;
}
.finale-animal img {
  width: 150px;
  height: 180px;
}
.finale-clue {
  font:
    1.17rem/1.5 Georgia,
    serif;
  margin: 16px auto;
  max-width: 500px;
}
.finale-progress {
  display: flex;
  gap: 9px;
  justify-content: center;
  margin-top: 18px;
}
.finale-progress i {
  width: 12px;
  height: 12px;
  background: #ceb98b;
  border-radius: 50%;
}
.finale-progress .done {
  background: #36573a;
}
.finale-chest img {
  width: 190px;
  height: 150px;
  animation: chest-rock 0.7s ease-in-out 2;
}
.revealed-suspect {
  position: relative;
  margin-bottom: 20px;
}
.revealed-suspect > img {
  height: 240px;
  filter: drop-shadow(0 5px 5px #7b603d55);
}
.ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 12px solid #d9a138;
  box-shadow:
    inset 2px 0 0 #80501c,
    2px 4px 0 #80501c,
    0 5px 20px #936a2c55;
  position: absolute;
  right: -35px;
  bottom: 12px;
  transform: rotate(-25deg);
  animation: ring-rise 0.9s ease-out;
}
.ring i {
  position: absolute;
  width: 31px;
  height: 27px;
  background: #9f3425;
  border: 5px solid #ecc355;
  left: 9px;
  top: -24px;
  border-radius: 8px 8px 4px 4px;
}
.finale-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.finale-controls button {
  font-size: 0.88rem;
}
.calm *,
.calm *::before,
.calm *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@keyframes animal-breathe {
  0%,
  100% {
    rotate: 0deg;
  }
  50% {
    rotate: 1deg;
  }
}
@keyframes ghost-bob {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -4px;
  }
}
@keyframes cue-in {
  from {
    opacity: 0;
    translate: 0 12px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes clue-arrival {
  0% {
    background: #e4cc87;
  }
  100% {
    background: transparent;
  }
}
@keyframes chest-rock {
  0%,
  100% {
    transform: rotate(0);
  }
  30% {
    transform: rotate(-5deg);
  }
  70% {
    transform: rotate(5deg);
  }
}
@keyframes ring-rise {
  from {
    opacity: 0;
    translate: 0 35px;
    rotate: 25deg;
  }
  to {
    opacity: 1;
    translate: 0 0;
    rotate: 0deg;
  }
}
@media (min-width: 1500px) {
  .play-layout {
    grid-template-columns: minmax(0, 1fr) 335px;
    gap: 24px;
  }
  .notebook {
    padding: 17px 20px;
  }
  .suspect > span {
    font-size: 0.73rem;
  }
  .map-viewport {
    width: min(100%,calc((100dvh - 435px) * 1.41436));
  }
  .action-choice > button {
    font-size: 1rem;
  }
  .room-label {
    font-size: 0.9rem;
  }
}
@media (max-width: 1120px) {
  .masthead {
    padding-inline: 14px;
  }
  .play-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
    gap: 12px;
  }
  .table {
    padding-inline: 12px;
  }
  .notebook {
    padding: 12px 10px;
  }
  .cat-header h2 {
    font-size: 1rem;
  }
  .cat-header > img {
    width: 43px;
    height: 60px;
  }
  .cat-header p {
    font-size: 0.66rem;
  }
  .food-slot {
    width: 60px;
    height: 60px;
  }
  .food-slot img {
    width: 50px;
    height: 50px;
  }
  .suspect-heading h2 {
    font-size: 1rem;
  }
  .suspects {
    gap: 9px 4px;
  }
  .suspect > span {
    font-size: 0.59rem;
  }
  .suspect-heading > span {
    font-size: 0.62rem;
  }
  .action-shelf {
    gap: 9px;
    padding-inline: 9px;
  }
  .action-room {
    width: 65px;
  }
  .action-room > img {
    height: 47px;
  }
  .action-room h2 {
    font-size: 0.8rem;
  }
  .action-buttons {
    gap: 6px;
  }
  .action-choice > button {
    flex-direction: column;
    gap: 2px;
    font-size: 0.79rem;
    padding: 6px 4px;
  }
  .action-choice small {
    font-size: 0.66rem;
  }
  .table-tools .quiet {
    padding-inline: 6px;
    font-size: 0.75rem;
  }
  .player {
    padding-right: 7px;
  }
  .player img {
    width: 35px;
    height: 45px;
  }
  .player strong {
    font-size: 0.8rem;
  }
  .player span {
    font-size: 0.65rem;
  }
  .players {
    gap: 4px;
  }
  .map-viewport {
    width: min(100%,calc((100dvh - 450px) * 1.41436));
  }
  .clock span {
    max-width: 112px;
  }
  .board-heading #turn-guidance {
    font-size: 0.88rem;
  }
  .clock strong {
    font-size: 1.23rem;
  }
  .clock svg {
    width: 40px;
  }
  .pawn {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .entry {
    padding: 35px 5%;
  }
  .entry-paper {
    max-width: 405px;
    padding: 25px;
  }
  .lobby {
    gap: 3vw;
  }
  .lobby-art {
    width: 180px;
  }
  .lobby-paper {
    padding: 24px;
  }
}
@media (max-width: 820px) {
  .masthead {
    height: auto;
    min-height: 60px;
    padding: 6px 10px;
    gap: 5px;
    flex-wrap: wrap;
  }
  .wordmark {
    font-size: 1.4rem;
  }
  .utilities {
    gap: 2px;
  }
  .utilities .quiet {
    font-size: 0.73rem;
    padding: 5px 7px;
  }
  .flag {
    width: 40px;
    padding: 4px;
  }
  .flag svg {
    width: 28px;
  }
  .connection {
    order: 3;
    flex-basis: 100%;
    text-align: center;
    font-size: 0.7rem;
  }
  .connection:empty,
  .connection:not(.offline) {
    display: none;
  }
  .entry {
    min-height: calc(100dvh - 60px);
    padding: 22px 20px;
  }
  .entry-art > img {
    object-position: 25% 50%;
  }
  .entry-paper {
    max-width: 380px;
    padding: 24px;
  }
  .play-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .board-column {
    display: block;
  }
  .table {
    padding: 0 10px 16px;
  }
  .table-top {
    min-height: 67px;
    gap: 5px;
  }
  .players {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2px;
  }
  .player {
    gap: 4px;
    padding: 2px 4px 3px;
    max-width: none;
    align-items: center;
  }
  .player img {
    width: 31px;
    height: 40px;
  }
  .player strong {
    font-size: 0.75rem;
    display: block;
    max-width: 135px;
    line-height: 1.15;
  }
  .player span {
    font-size: 0.63rem;
  }
  .player small {
    display: none;
  }
  .table-tools {
    display: none;
  }
  .board-heading {
    min-height: 55px;
    margin-bottom: 5px;
  }
  .board-heading #turn-guidance {
    font-size: 0.9rem;
  }
  .clock svg {
    width: 40px;
    height: 40px;
  }
  .clock span {
    max-width: 130px;
    font-size: 0.65rem;
  }
  .clock strong {
    font-size: 1.25rem;
  }
  .map-viewport {
    max-height: none;
    min-height: 0;
    aspect-ratio: 8192/5792;
    width: 100%;
  }
  .room-label {
    font-size: clamp(0.63rem, 1.65vw, 0.87rem);
  }
  .room-target {
    min-height: 44px;
  }
  .room-state img {
    width: 26px;
    height: 28px;
  }
  .room-state .lock-mark {
    font-size: 0.58rem;
  }
  .pawn {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .map-tools {
    left: 7px;
    bottom: 6px;
    gap: 4px;
  }
  .map-tools button {
    min-height: 44px;
    padding: 4px 12px;
    font-size: 0.75rem;
  }
  .map-tools #undo {
    margin-left: 6px;
  }
  .action-shelf {
    min-height: 115px;
    margin-top: 10px;
    padding: 10px 12px;
    gap: 12px;
  }
  .action-room {
    width: 72px;
  }
  .action-room > img {
    height: 49px;
  }
  .action-choice > button {
    flex-direction: row;
    font-size: 0.84rem;
    min-height: 55px;
    gap: 7px;
  }
  .action-choice small {
    font-size: 0.71rem;
  }
  .action-title h2 {
    font-size: 1.2rem;
  }
  .action-title p {
    font-size: 0.81rem;
  }
  .action-buttons {
    gap: 8px;
  }
  .notebook {
    margin-top: 16px;
    padding: 15px 18px;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 0 20px;
  }
  .cat-header {
    grid-column: 1;
  }
  .inventory {
    grid-column: 1;
    justify-content: flex-start;
    margin: 8px 0;
    gap: 20px;
  }
  .food-slot {
    width: 70px;
    height: 70px;
  }
  .food-slot img {
    width: 58px;
    height: 58px;
  }
  .pantry-link {
    grid-column: 1;
    width: fit-content;
    align-self: start;
  }
  .suspect-heading {
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
    border: 0;
    padding-top: 0;
    align-self: center;
  }
  .suspects {
    grid-column: 2;
    grid-row: 2 / span 3;
    gap: 12px 6px;
    align-self: start;
  }
  .suspect > span {
    font-size: 0.65rem;
  }
  .clue-book {
    grid-column: 1;
    margin-top: 5px;
  }
  .latest-clue {
    grid-column: 1;
    margin-top: 7px;
    max-width: 100%;
  }
  .narration {
    min-height: 85px;
  }
  .narration p {
    font-size: 0.84rem;
  }
  .turn-cue {
    bottom: 16px;
    left: 16px;
    font-size: 0.85rem;
  }
  .lobby-art {
    display: none;
  }
  .lobby {
    padding: 28px 18px;
  }
  .lobby-paper {
    width: 650px;
    padding: 25px;
  }
  .entry-foot {
    font-size: 0.75rem;
  }
  .difficulty button {
    min-height: 105px;
  }
  .entry h1 {
    font-size: 1.8rem;
  }
}
@media (max-width: 560px) {
  .masthead {
    padding: 5px 8px;
  }
  .wordmark {
    font-size: 1.28rem;
    letter-spacing: -0.6px;
  }
  .utilities .quiet {
    max-width: 68px;
    line-height: 1.13;
    padding: 4px 5px;
    font-size: 0.68rem;
  }
  .flag {
    width: 35px;
    padding: 2px;
    height: 44px;
  }
  .flag svg {
    width: 27px;
  }
  .entry {
    padding: 22px 16px;
    justify-content: center;
    align-items: flex-end;
    min-height: calc(100dvh - 59px);
  }
  .entry-art > img {
    object-position: 24% 30%;
  }
  .entry-paper {
    max-width: 420px;
    padding: 19px 22px;
    margin-top: 100px;
    transform: none;
  }
  .title-art {
    width: 190px;
    height: 88px;
    margin: -3px auto 7px;
  }
  .entry-paper h1 {
    font-size: 1.65rem;
  }
  .intro-copy {
    font-size: 0.88rem;
    margin: 9px 0 17px;
    line-height: 1.4;
  }
  .entry form label {
    font-size: 0.82rem;
  }
  .entry-options {
    margin-top: 12px;
  }
  .entry-foot {
    margin: 13px 0 2px;
  }
  .entry-paper .primary,
  .entry-paper .secondary {
    min-height: 46px;
  }
  .table {
    padding-inline: 7px;
  }
  .players {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px 8px;
  }
  .table-top {
    min-height: 57px;
    padding: 3px 0;
  }
  .player {
    padding: 2px 5px;
    border-bottom-width: 2px;
  }
  .player img {
    width: 32px;
    height: 37px;
  }
  .player strong {
    font-size: 0.76rem;
  }
  .player span {
    font-size: 0.62rem;
    margin-top: 2px;
  }
  .board-heading {
    min-height: 58px;
    gap: 5px;
  }
  .board-heading #turn-guidance {
    font-size: 0.81rem;
    max-width: 60%;
  }
  .clock {
    gap: 5px;
  }
  .clock svg {
    width: 34px;
    height: 34px;
  }
  .clock strong {
    font-size: 1.2rem;
  }
  .clock span {
    max-width: 104px;
    font-size: 0.61rem;
  }
  .map-viewport {
    border-radius: 6px;
  }
  .room-label {
    font-size: 0.75rem;
    padding: 3px 2px;
    border-width: 1px;
  }
  .room-target {
    border-width: 1px;
    min-height: 44px;
  }
  .room-state {
    right: 0;
    top: 35%;
  }
  .room-state img {
    width: 20px;
    height: 23px;
  }
  .room-state .lock-mark {
    font-size: 0.48rem;
    padding: 2px 3px;
  }
  .fed-mark {
    width: 17px;
    height: 17px;
    font-size: 0.7rem;
  }
  .pawn {
    width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .pawn img { width:30px;height:30px;border-width:2px; }
  .ghost {
    width: 9%;
    height: 15%;
  }
  .animal {
    height: 14%;
    width: 11%;
  }
  .animal-stable,
  .animal-dungeons {
    width: 17%;
  }
  .map-tools {
    bottom: 4px;
    left: 4px;
    gap: 3px;
  }
  .map-tools button {
    min-height: 44px;
    min-width: 37px;
    padding: 3px 7px;
    font-size: 0.69rem;
    background: #fff4d9f5;
  }
  .map-tools #undo {
    margin-left: 2px;
    padding: 3px 6px;
    max-width: 135px;
    line-height: 1.15;
  }
  .move-preview {
    min-width: 135px;
    max-width: 165px;
    padding: 5px;
    font-size: 0.7rem;
  }
  .move-preview .confirm {
    font-size: 0.73rem;
    padding: 6px 8px;
  }
  .move-preview .small {
    min-width: 32px;
    padding: 4px;
  }
  .action-shelf {
    margin-top: 8px;
    gap: 8px;
    padding: 28px 9px 10px;
    min-height: 125px;
    justify-content: flex-start;
    flex-wrap: wrap;
  }
  .compact-inventory {
    display: flex;
    position: absolute;
    right: 9px;
    top: 2px;
    height: 26px;
    align-items: center;
    gap: 5px;
  }
  .compact-inventory img {
    width: 25px;
    height: 24px;
  }
  .compact-inventory strong {
    font-size: 0.84rem;
  }
  .compact-inventory img[src$="key.svg"] {
    width: 18px;
    margin-left: 7px;
  }
  .action-room {
    width: 60px;
    align-self: flex-start;
    padding-top: 5px;
  }
  .action-room h2 {
    font-size: 0.73rem;
  }
  .action-room > img {
    height: 45px;
    width: 55px;
  }
  .action-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 7px;
  }
  .action-choice > button {
    min-height: 45px;
    font-size: 0.77rem;
    padding: 5px 6px;
    gap: 6px;
  }
  .action-choice img {
    width: 25px;
    height: 26px;
  }
  .action-choice small {
    font-size: 0.6rem;
    line-height: 1.2;
    margin-top: 3px;
  }
  .die-art {
    width: 49px;
    height: 49px;
  }
  .die-wrap {
    width: 49px;
  }
  .action-title {
    max-width: calc(100% - 60px);
    flex: 1;
  }
  .action-title h2 {
    font-size: 1.05rem;
  }
  .action-title p {
    font-size: 0.74rem;
    margin-top: 5px;
  }
  .action-shelf > .primary:not(.feed-buttons .primary) {
    width: 100%;
    min-height: 44px;
    font-size: 0.9rem;
    margin-top: 3px;
  }
  .action-shelf > .secondary {
    font-size: 0.8rem;
  }
  .action-animal {
    width: 53px;
    height: 67px;
  }
  .action-title small {
    font-size: 0.68rem;
  }
  .feed-buttons {
    width: 100%;
    padding-top: 3px;
  }
  .feed-buttons .primary {
    justify-content: center;
    font-size: 0.9rem;
  }
  .feed-buttons .text-button {
    font-size: 0.75rem;
  }
  .narration {
    gap: 8px;
    padding: 0 4px;
    min-height: 95px;
    margin-top: 6px;
    align-items: flex-start;
  }
  .narration > img {
    width: 45px;
    height: 70px;
  }
  .narration > div {
    padding-top: 4px;
  }
  .narration p {
    font-size: 0.78rem;
    line-height: 1.4;
    max-height: 5.5em;
  }
  .narration-controls {
    gap: 12px;
  }
  .narration .text-button {
    font-size: 0.66rem;
    min-height: 40px;
  }
  .notebook {
    display: block;
    margin-top: 8px;
    padding: 13px 14px 12px;
  }
  .cat-header {
    display: none;
  }
  .inventory {
    justify-content: center;
    margin: 0;
    gap: 18px;
  }
  .food-slot {
    width: 59px;
    height: 59px;
  }
  .food-slot img {
    width: 49px;
    height: 49px;
  }
  .pantry-link {
    margin: 0 auto;
    padding: 5px 0;
    font-size: 0.74rem;
  }
  .suspect-heading {
    border-top: 1px solid #ad9774;
    padding-top: 11px;
    margin-top: 4px;
    margin-bottom: 10px;
  }
  .suspect-heading h2 {
    font-size: 1.17rem;
  }
  .suspect-heading > span {
    font-size: 0.74rem;
  }
  .suspects {
    gap: 11px 8px;
  }
  .suspect > span {
    font-size: 0.64rem;
  }
  .clue-book {
    font-size: 1.15rem;
    margin-top: 9px;
  }
  .latest-clue {
    font-size: 0.78rem;
  }
  .lobby {
    padding: 18px 12px;
    align-items: flex-start;
  }
  .lobby-paper {
    padding: 23px 17px;
  }
  .lobby-paper h1 {
    font-size: 1.75rem;
  }
  .lobby-paper > p {
    font-size: 0.88rem;
  }
  .room-invite {
    gap: 7px;
    margin: 15px 0;
    padding: 12px 0;
  }
  .room-invite strong {
    font-size: 1.2rem;
    letter-spacing: 2px;
  }
  .room-invite > span {
    font-size: 0.72rem;
  }
  .room-invite button {
    font-size: 0.72rem;
    padding: 6px 9px;
  }
  .lobby-players {
    gap: 9px;
    grid-template-columns: 1fr 1fr;
  }
  .lobby-players .lobby-portrait {
    width: 48px;
    height: 61px;
  }
  .lobby-players strong {
    font-size: 0.9rem;
  }
  .lobby-players span {
    font-size: 0.69rem;
  }
  .lobby-players button {
    font-size: 0.62rem;
    padding: 3px;
  }
  .lobby-players li {
    gap: 4px;
    flex-wrap: wrap;
  }
  .difficulty > div {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .difficulty button {
    min-height: 62px;
    padding: 10px 12px;
  }
  .difficulty strong {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }
  .difficulty span {
    font-size: 0.75rem;
  }
  .lobby #start {
    float: none;
    width: 100%;
    margin-top: 13px;
  }
  .lobby #add-helper {
    width: 100%;
  }
  .turn-cue {
    padding-left: 58px;
    font-size: 0.8rem;
    left: 10px;
    bottom: 11px;
  }
  .turn-cue > img {
    width: 48px;
    height: 73px;
  }
  .turn-cue button {
    min-height: 40px;
    font-size: 1.2rem;
  }
  .toast {
    font-size: 0.8rem;
    padding: 12px 16px;
    width: max-content;
    max-width: 90vw;
  }
  dialog {
    padding: 17px;
    max-width: calc(100vw - 20px);
    max-height: calc(100dvh - 22px);
  }
  .dialog-heading {
    gap: 10px;
    margin-bottom: 15px;
  }
  .dialog-heading h2 {
    font-size: 1.35rem;
  }
  .settings {
    padding: 0 4px 8px;
  }
  .settings .check {
    font-size: 0.9rem;
  }
  .help-goal {
    font-size: 1rem;
  }
  .rules-list > div {
    gap: 12px;
    margin: 17px 0;
  }
  .rules-list img {
    width: 45px;
    height: 54px;
  }
  .rules-list p {
    font-size: 0.82rem;
  }
  .help-illustration {
    max-width: 360px;
  }
  .suspect-inspect {
    gap: 16px;
    align-items: flex-start;
  }
  .large-suspect {
    width: 45%;
    height: auto;
  }
  .suspect-inspect p {
    font-size: 0.85rem;
  }
  .room-inspect {
    gap: 16px;
  }
  .room-inspect > img {
    width: 34%;
  }
  .room-inspect p {
    font-size: 0.87rem;
    margin-top: 10px;
  }
  .pantry-foods {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
  }
  .pantry-foods > button {
    padding: 8px 5px;
  }
  .pantry-foods img {
    width: 52px;
    height: 55px;
  }
  .pantry-foods strong {
    font-size: 0.73rem;
  }
  .pantry-foods span {
    font-size: 0.7rem;
  }
  .clue-list > article {
    gap: 13px;
  }
  .clue-list > article > img {
    width: 52px;
    height: 70px;
  }
  .clue-list p {
    font-size: 0.86rem;
  }
  .chest-confirm {
    gap: 15px;
  }
  .chest-confirm p {
    font-size: 0.88rem;
  }
  #finale {
    padding: 15px 17px 20px;
  }
  #finale-stage {
    min-height: 350px;
  }
  .finale-animal img {
    width: 120px;
    height: 150px;
  }
  .finale-clue {
    font-size: 1.02rem;
  }
  .finale-controls button {
    font-size: 0.78rem;
  }
  .revealed-suspect > img {
    height: 220px;
  }
}
@media (max-height: 720px) and (min-width: 821px) {
  .map-viewport {
    width: min(100%,calc((100dvh - 350px) * 1.41436));
  }
  .table-top {
    min-height: 63px;
  }
  .board-heading {
    min-height: 48px;
  }
  .action-shelf {
    min-height: 100px;
    margin-top: 8px;
  }
  .action-choice small {
    font-size: 0.65rem;
  }
  .narration {
    min-height: 65px;
  }
  .narration > img {
    height: 60px;
  }
  .notebook {
    padding-top: 8px;
  }
  .cat-header > img {
    height: 52px;
  }
  .food-slot {
    width: 57px;
    height: 57px;
  }
  .suspect-heading {
    padding-top: 9px;
    margin-bottom: 9px;
  }
  .suspects {
    gap: 7px 6px;
  }
  .clue-book {
    margin-top: 7px;
  }
  .entry {
    padding-block: 20px;
  }
  .entry-paper {
    padding-block: 20px;
  }
  .title-art {
    height: 83px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
