@font-face {
  font-family: "DM Sans";
  src: url(dm-sans.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #25392f;
  --forest: #2a493a;
  --forest-deep: #233b30;
  --paper: #f6f1e3;
  --light: #fcf8eb;
  --muted: #636854;
  --line: #ccc7af;
  --gold: #b78c46;
  --rust: #995336;
  --serif: Baskervville, Baskerville, "Palatino Linotype", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  font-family: var(--sans);
  color: var(--ink);
  background: #13251f;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: max(12px, env(safe-area-inset-top)) 10px max(12px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 50% 18%, #34483a 0%, #20392e 42%, #14271f 75%, #102018 100%);
}
button,
input,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
button:disabled {
  cursor: default;
}
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #b96b32;
  outline-offset: 3px;
}
button {
  touch-action: manipulation;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.06;
  font-weight: 600;
}
[hidden],
.symbols {
  display: none !important;
}
svg {
  width: 1.13em;
  height: 1.13em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  vertical-align: middle;
  pointer-events: none;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.game {
  width: min(704px, 100%);
  margin: auto;
  background: #274636;
  color: #f6edcf;
  border: 1px solid #7b7653;
  border-radius: 13px;
  box-shadow:
    0 0 0 3px #192b22,
    0 0 0 4px #5e654c,
    0 18px 65px #09160f88;
}
.hud {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 18px;
  background: linear-gradient(100deg, #213b2e, #243d30);
  border-radius: 12px 12px 0 0;
  border-bottom: 1px solid #a7905d;
}
.brand,
.vitals,
.vitals > span,
.tools,
.tools button,
.work-head,
.word-head,
.edit-tools,
.rack-head,
.rack-tools,
.rack-tools button,
.edit-tools button,
.forecast,
.forecast span,
.play,
.dialog-head,
.dialog-head button {
  display: flex;
  align-items: center;
}
.brand {
  gap: 9px;
  font: 600 30px/1.1 var(--serif);
  letter-spacing: -1.2px;
  color: #f4e7bf;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 33px;
  color: #294033;
  background: #dac182;
  clip-path: polygon(50% 0, 97% 14%, 90% 74%, 50% 100%, 10% 74%, 3% 14%);
}
.brand-mark svg {
  width: 20px;
  height: 22px;
}
.vitals {
  gap: 13px;
  margin-left: auto;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.vitals > span {
  gap: 5px;
}
.vitals svg {
  width: 16px;
  height: 16px;
}
.life svg {
  color: #e19c7a;
  fill: currentColor;
}
.gold svg {
  color: #e1c27d;
}
.tools {
  gap: 2px;
  border-left: 1px solid #71836b6b;
  padding-left: 9px;
}
.tools button,
.log-button,
.rack-tools button,
.edit-tools button,
.input-wrap button,
.dialog-head button {
  background: none;
  border: 0;
  justify-content: center;
}
.tools button {
  width: 35px;
  height: 35px;
  color: #d9ceaa;
  border-radius: 5px;
}
.tools button:hover,
.rack-tools button:hover,
.edit-tools button:hover:enabled {
  background: #a4ad8420;
  color: #fff8de;
}
#loading {
  padding: 22px;
}
.arena {
  border-radius: 0 0 12px 12px;
  overflow: hidden;
}
.encounter-card {
  position: relative;
  display: flex;
  align-items: stretch;
  color: #2b3b2d;
  background:
    repeating-linear-gradient(0deg, #8c765407 0px 1px, transparent 1px 3px),
    radial-gradient(ellipse at 95% 15%, #e6d3a8, transparent 60%), #ede4cb;
  border-bottom: 3px solid #a18e61;
}
.scene-emblem {
  position: relative;
  overflow: hidden;
  width: clamp(112px, 23vw, 159px);
  flex: none;
  min-height: 136px;
  border-right: 2px solid #b1a37d;
  display: grid;
  place-items: center;
  background: repeating-radial-gradient(circle, #cdd4b7 0 16px, #bfc9a8 17px 18px, #cdd4b7 19px 24px);
}
.scene-emblem svg {
  width: 46px;
  height: 46px;
}
.scene-text {
  flex: 1;
  min-width: 0;
  align-self: center;
  padding: 12px clamp(12px, 2.8vw, 23px);
}
.room-label,
.rack-head h3,
.turn,
.eyebrow {
  font: 750 10px/1.2 var(--sans);
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.room-label {
  color: #6c644b;
  padding-right: 20px;
  margin-bottom: 4px;
}
.scene-text h2 {
  font-size: clamp(28px, 5.3vw, 42px);
  font-weight: 550;
  letter-spacing: -1.4px;
  margin-right: 10px;
}
.log-button {
  position: absolute;
  right: 5px;
  top: 4px;
  width: 34px;
  height: 34px;
  color: #6d7057;
  border-radius: 4px;
}
.log-button:hover {
  background: #aa97642a;
}
.workbench {
  --gap: 6px;
  position: relative;
  background:
    radial-gradient(ellipse at 50% 0%, #42684b, transparent 70%),
    repeating-linear-gradient(35deg, #b9c39106 0 1px, transparent 1px 4px), #2b4a38;
  color: #f7efd6;
  padding: 16px clamp(14px, 3.8vw, 31px) 18px;
}
.work-head,
.rack-head,
.dialog-head {
  justify-content: space-between;
  gap: 8px;
}
.work-head {
  margin-bottom: 8px;
}
.word-head {
  gap: 9px;
}
.word-head h2 {
  font: 550 25px/1 var(--serif);
  letter-spacing: -0.6px;
}
.turn {
  color: #d0d5ae;
  border: 1px solid #89997588;
  border-radius: 20px;
  padding: 4px 7px;
  letter-spacing: 0.6px;
  font-size: 9px;
}
.edit-tools,
.rack-tools {
  gap: 3px;
}
.edit-tools button,
.rack-tools button {
  font-size: 12px;
  font-weight: 650;
  gap: 4px;
  min-height: 34px;
  padding: 4px 8px;
  color: #e7e3c8;
  border-radius: 4px;
}
.edit-tools button:disabled {
  color: #b7c1a6;
  opacity: 0.65;
}
.spelling {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: var(--gap);
  max-width: 548px;
  margin: 0 auto;
  padding: 7px 8px;
  border-radius: 6px;
  background: #233e2f;
  border: 1px solid #82906b;
  box-shadow: inset 0 2px 5px #14271c80;
}
.socket,
.spelling > .letter-tile {
  height: clamp(49px, 8.9vw, 70px);
  min-width: 0;
}
.socket {
  display: grid;
  place-items: center;
  color: #929d7f;
  font: 500 20px var(--serif);
  border: 1px dashed #879a747d;
  border-radius: 4px;
  background: #2d4a37;
}
.socket.lead {
  color: #e5ca83;
  border-style: solid;
  border-color: #b7a46b;
  background: #435940;
}
.socket svg {
  width: 19px;
  height: 19px;
}
.hand-note {
  font: 500 12px/1.35 var(--sans);
  color: #e1e1c7;
  text-align: center;
  margin: 7px 0 4px;
  min-height: 17px;
}
.rack-head {
  margin: 2px 0 5px;
}
.rack-head h3 {
  color: #e5dec2;
  font-size: 10px;
}
.rack-tools svg {
  width: 15px;
  height: 15px;
}
.hand-rack {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--gap);
  padding: 8px 8px 10px;
  border: 1px solid #a08959;
  border-bottom: 4px solid #806c40;
  border-radius: 6px;
  background:
    repeating-linear-gradient(2deg, transparent 0 6px, #8f784f12 7px 8px), linear-gradient(#e2d1a5, #c4af7f);
  box-shadow:
    inset 0 0 0 2px #e1d2ab85,
    0 3px 6px #16291b4f;
}
.letter-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
  cursor: grab;
  background: none;
  border: 0;
  padding: 0;
  color: #4b3826;
}
.tile-face {
  position: absolute;
  inset: 0;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2px 0 3px;
  transform-origin: top left;
  border: 1px solid #a48b5e;
  border-bottom: 3px solid #9a8053;
  border-radius: 5px;
  color: #4b3826;
  background: linear-gradient(135deg, #fff3d2, #efdab0);
  box-shadow:
    inset 0 1px 0 #fff7de,
    0 2px 3px #41321d38;
}
.hand-rack .letter-tile {
  flex: 0 0 calc((100% - 8 * var(--gap)) / 9);
  height: clamp(53px, 9vw, 71px);
}
.letter-tile.guard .tile-face {
  color: #304e3b;
  background: linear-gradient(135deg, #eef0d5, #d1d9b9);
  border-color: #9aa179;
  border-bottom-color: #788260;
}
.letter-tile .glyph {
  font: 600 clamp(25px, 4.6vw, 38px) / 1 var(--serif);
}
.tile-power {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 2px;
  color: #91502e;
  font: 750 11px/1 var(--sans);
}
.tile-power svg {
  width: 12px;
  height: 12px;
}
.guard .tile-power {
  color: #3d6243;
}
.spelling .letter-tile .glyph {
  font-size: clamp(24px, 4.1vw, 34px);
}
.spelling .tile-power {
  font-size: 10px;
}
.spelling .tile-power svg {
  width: 10px;
  height: 10px;
}
.letter-tile.picked .tile-face {
  background: transparent;
  color: #756744;
  box-shadow: inset 0 1px 4px #68573345;
  border: 1px dashed #a18c5f;
}
.letter-tile.picked .tile-power {
  opacity: 0.5;
}
.lead-bonus,
.etched {
  position: absolute;
  top: 3px;
  font: 750 9px/1 var(--sans);
}
.lead-bonus {
  right: 3px;
  color: #684518;
  background: #e7c878;
  border-radius: 2px;
  padding: 2px 3px;
}
.etched {
  left: 3px;
  color: #95502e;
}
.etched svg {
  width: 10px;
  height: 10px;
}
.letter-tile.selected {
  outline: 3px solid #f3cd6e;
  outline-offset: 1px;
}
.letter-tile.drag-source {
  opacity: 0.35;
}
.drop-target {
  outline: 3px solid #ffd474;
  outline-offset: 1px;
}
.drag-copy {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 20;
  margin: 0;
  pointer-events: none;
  cursor: grabbing;
  box-shadow: 0 6px 14px #11231580;
  will-change: transform;
}
.dragging {
  cursor: grabbing;
}
.play-strip {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 11px;
  border-top: 1px solid #80907188;
}
.readout {
  min-width: 0;
}
.forecast {
  gap: 15px;
  font-size: 12px;
  font-weight: 600;
  color: #efe8cd;
}
.forecast span {
  gap: 4px;
  white-space: nowrap;
}
.forecast b {
  font: 650 22px/1 var(--serif);
  font-variant-numeric: tabular-nums;
}
.forecast svg {
  width: 16px;
  height: 16px;
}
.attack-stat svg {
  color: #eab487;
}
.block-stat svg {
  color: #d4e1b3;
}
.outcome {
  font: 500 12px/1.35 var(--sans);
  color: #d3d9c2;
  margin-top: 5px;
  min-height: 16px;
}
.play {
  gap: 12px;
  justify-content: center;
  min-width: 132px;
  max-width: 47%;
  min-height: 44px;
  padding: 9px 14px;
  border: 1px solid #f4d897;
  border-bottom: 3px solid #aa8245;
  border-radius: 6px;
  color: #2b3728;
  background: linear-gradient(#f5dca1, #d7b775);
  font: 700 15px/1.1 var(--sans);
  box-shadow: 0 2px 4px #1b3022a0;
  white-space: nowrap;
}
.play:enabled:hover {
  background: #f6dda4;
}
.play:enabled:active {
  transform: translateY(1px);
}
.play:disabled {
  background: #536849;
  border-color: #84906e;
  color: #d2d4b7;
  box-shadow: none;
}
.play svg {
  width: 17px;
  height: 17px;
}
.input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 4px;
  background: #f8f0d9;
  border: 1px solid #a49970;
  color: #2f4935;
  margin-top: 9px;
}
.input-wrap input {
  padding: 8px;
  min-width: 0;
  width: 100%;
  border: 0;
  background: none;
  font-size: 16px;
  color: inherit;
}
.input-wrap button {
  min-width: 37px;
  height: 35px;
}
.event {
  color: var(--ink);
}
.dialog-head button {
  display: grid;
  place-items: center;
}
.log-list {
  list-style: none;
  padding: 0;
}
.log-list li {
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
}
.event {
  min-width: 0;
  background: var(--light);
  border: 1px solid #bdb79d;
  border-radius: 0 0 8px 8px;
  padding: clamp(17px, 2.5vw, 32px);
}
.event .eyebrow {
  color: #897044;
  margin-bottom: 8px;
}
.event h2 {
  font-size: clamp(30px, 3.5vw, 43px);
  letter-spacing: -1.3px;
}
.event-intro,
.dialog-copy {
  color: #5b624f;
  font-size: 14px;
  line-height: 1.55;
  margin: 9px 0 16px;
}
.offers {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}
.offer {
  width: 100%;
  border: 1px solid #c6c2a9;
  border-radius: 4px;
  background: #f6f2e3;
  padding: 13px;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 13px;
}
.offer .offer-icon,
.bag-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 37px;
  height: 37px;
  border-radius: 3px;
  border: 1px solid #b8b995;
  background: #e6e7cf;
  color: #4b6045;
}
.offer-icon svg,
.bag-icon svg {
  width: 23px;
  height: 23px;
}
.offer strong {
  display: block;
  font: 600 20px/1.2 var(--serif);
}
.offer small {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
  margin-top: 3px;
}
.offer > svg {
  margin-left: auto;
  color: #677354;
}
.offer:hover:enabled {
  border-color: #698162;
  background: #eceddb;
}
.offer:disabled {
  opacity: 0.65;
}
dialog {
  border: 1px solid #525f49;
  border-radius: 8px;
  background: #f9f5e8;
  color: var(--ink);
  width: min(510px, calc(100% - 24px));
  max-height: min(84svh, 780px);
  padding: 0;
  box-shadow: 0 18px 70px #16291b50;
}
dialog::backdrop {
  background: #192c24a8;
}
.dialog-head {
  position: sticky;
  top: 0;
  padding: 16px 21px;
  background: var(--forest-deep);
  color: #f8ecd1;
  z-index: 2;
  border-bottom: 2px solid #b99d60;
}
.dialog-head h2 {
  font-size: 27px;
  letter-spacing: -0.8px;
}
.dialog-head button {
  height: 33px;
  width: 33px;
  color: #e0d8bd;
  border: 1px solid #74816e;
  border-radius: 50%;
}
.dialog-body {
  padding: 19px 21px 22px;
}
.feature-tools {
  display: flex;
  justify-content: center;
  padding: 6px 12px;
}
.feature-tools button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid #c7ae71;
  border-radius: 6px;
  background: #3c5948;
  color: #fff3d5;
  font-size: 14px;
  font-weight: 650;
}
.feature-tools button:hover {
  background: #466650;
}
#feature-form .dialog-copy {
  margin-top: 0;
}
#feature-form label {
  display: block;
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 6px;
}
#feature-idea {
  display: block;
  width: 100%;
  resize: vertical;
  padding: 10px;
  border: 1px solid #9c9f86;
  border-radius: 4px;
  background: var(--light);
  font-size: 16px;
  line-height: 1.45;
}
#feature-status {
  font-size: 14px;
  line-height: 1.55;
}
#feature-form:not([hidden]) + #feature-status:not(:empty),
#feature-done {
  margin-top: 12px;
}
.guide-row,
.bag-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
}
.guide-row > svg {
  width: 22px;
  height: 22px;
  color: #687957;
  margin-top: 2px;
}
.guide-row strong,
.bag-row strong {
  display: block;
  font: 600 19px/1.2 var(--serif);
}
.guide-row p,
.bag-row p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}
.secondary,
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 15px;
  font-size: 13px;
  font-weight: 650;
  border: 1px solid #a9b197;
  background: #e5e9d7;
  border-radius: 4px;
}
.primary {
  border-color: #2b4734;
  background: #375640;
  color: #fff7dc;
}
.secondary:hover {
  background: #d9e0ca;
}
.primary:hover {
  background: #294832;
}
.modal-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 17px;
}
.bag-title {
  margin: 16px 0 12px;
  font-size: 22px;
}
.bag-tiles {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.bag-glyph {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  min-width: 27px;
  padding: 5px;
  border: 1px solid #bdad87;
  background: #efdfb9;
  font: 600 17px var(--serif);
  border-radius: 3px;
}
.bag-glyph small {
  font: 600 9px var(--sans);
  color: #805434;
}
.map-area {
  color: var(--ink);
  font: 600 19px var(--serif);
  text-align: center;
}
.map-canvas {
  width: 100%;
  position: relative;
  background: radial-gradient(ellipse, #dee1c788, transparent 73%);
  margin: 4px 0 10px;
}
.paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  stroke: #c9c3a9;
  stroke-dasharray: 4 5;
  stroke-width: 1.4px;
}
.paths .walked {
  stroke: #668265;
  stroke-dasharray: none;
  stroke-width: 2.2px;
}
.map-node {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 30%;
  max-width: 140px;
  min-height: 36px;
  border: 1px solid #c9c4ac;
  background: #f4f0e0;
  color: #6c6f5b;
  border-radius: 4px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 4px;
  font: 600 12px/1.15 var(--sans);
}
.map-node svg {
  width: 14px;
  height: 14px;
}
.map-node.visited {
  border-color: #809579;
  background: #dfe6cf;
  color: #466045;
}
.map-node.current,
.map-node.open {
  background: #375640;
  color: #fff6da;
  border-color: #375640;
}
.map-node.open:hover {
  background: #253e2d;
}
.map-key {
  font-size: 11px;
  color: #61674e;
  line-height: 1.5;
}
.run-stats {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  padding: 15px 0;
  border-block: 1px solid var(--line);
  margin: 14px 0 20px;
}
.run-stats b {
  font: 600 24px var(--serif);
  display: block;
}
.run-stats small {
  font-size: 11px;
  color: var(--muted);
}
.log-list {
  display: grid;
  gap: 4px;
}
.log-list li {
  font-size: 13px;
}
.small-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 12px 0;
}

@media (max-width: 550px) {
  body {
    padding: max(5px, env(safe-area-inset-top)) 5px max(6px, env(safe-area-inset-bottom));
  }
  .game {
    margin: 0 auto;
    border-radius: 9px;
    box-shadow: 0 0 0 2px #182b21;
  }
  .hud {
    padding: 4px 9px;
    gap: 8px;
  }
  .brand {
    font-size: 25px;
    gap: 5px;
  }
  .brand-mark {
    width: 23px;
    height: 27px;
  }
  .brand-mark svg {
    width: 17px;
    height: 18px;
  }
  .vitals {
    gap: 7px;
    font-size: 11px;
  }
  .vitals > span {
    gap: 3px;
  }
  .vitals svg {
    width: 13px;
    height: 13px;
  }
  .tools {
    gap: 0;
    padding-left: 4px;
  }
  .tools button {
    width: 30px;
    height: 36px;
  }
  .scene-emblem {
    min-height: 96px;
    width: 99px;
  }
  .scene-text {
    padding: 8px 11px;
  }
  .room-label {
    font-size: 8px;
    margin-bottom: 3px;
  }
  .scene-text h2 {
    font-size: 27px;
    margin-right: 6px;
    letter-spacing: -0.7px;
  }
  .log-button {
    width: 27px;
    height: 27px;
    right: 1px;
    top: 0;
    font-size: 12px;
  }
  .workbench {
    --gap: 4px;
    padding: 9px 11px 12px;
  }
  .word-head h2 {
    font-size: 22px;
  }
  .turn {
    font-size: 8px;
    padding: 3px 5px;
  }
  .work-head {
    margin-bottom: 4px;
  }
  .rack-tools button,
  .edit-tools button {
    min-height: 32px;
    font-size: 11px;
    padding: 4px 6px;
  }
  .spelling {
    padding: 5px;
  }
  .socket,
  .spelling > .letter-tile {
    height: 46px;
  }
  .hand-note {
    font-size: 11px;
    margin: 5px 0 1px;
  }
  .rack-head {
    margin: 0 0 3px;
  }
  .hand-rack {
    padding: 5px 6px 7px;
  }
  .hand-rack .letter-tile {
    flex-basis: calc((100% - 4 * var(--gap)) / 5);
    height: 51px;
  }
  .letter-tile .glyph {
    font-size: 28px;
  }
  .spelling .letter-tile .glyph {
    font-size: 23px;
  }
  .spelling .tile-power {
    font-size: 8px;
  }
  .spelling .tile-power svg {
    width: 9px;
    height: 9px;
  }
  .lead-bonus {
    font-size: 7px;
    right: 1px;
    top: 1px;
    padding: 1px 2px;
  }
  .play-strip {
    margin-top: 9px;
    padding-top: 8px;
    gap: 6px;
  }
  .forecast {
    gap: 10px;
    font-size: 11px;
  }
  .forecast b {
    font-size: 20px;
  }
  .outcome {
    font-size: 11px;
    margin-top: 3px;
  }
  .play {
    min-width: 104px;
    gap: 5px;
    font-size: 13px;
    padding: 8px;
    min-height: 42px;
  }
  .event {
    padding: 16px;
  }
  .offer strong {
    font-size: 18px;
  }
  .map-node {
    font-size: 10px;
  }
  .map-node svg {
    width: 11px;
  }
}
@media (max-width: 355px) {
  .brand {
    font-size: 22px;
  }
  .hud {
    gap: 4px;
    padding-inline: 6px;
  }
  .brand-mark {
    width: 19px;
  }
  .vitals {
    gap: 4px;
  }
  .tools button {
    width: 28px;
  }
  .workbench {
    padding-inline: 8px;
  }
  .scene-emblem {
    width: 82px;
  }
  .scene-text {
    padding-inline: 9px;
  }
  .forecast {
    gap: 6px;
  }
  .forecast span {
    gap: 2px;
  }
  .play {
    min-width: 92px;
  }
}
@media (orientation: landscape) and (min-width: 551px) and (max-width: 920px) and (max-height: 500px) {
  body {
    padding: 5px max(7px, env(safe-area-inset-right)) 5px max(7px, env(safe-area-inset-left));
  }
  .game {
    width: min(780px, 100%);
  }
  .hud {
    padding: 2px 13px;
  }
  .brand {
    font-size: 24px;
  }
  .brand-mark {
    width: 22px;
    height: 26px;
  }
  .tools button {
    height: 32px;
  }
  .arena:has(.workbench:not([hidden])) {
    display: grid;
    grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
  }
  .room-label {
    font-size: 8px;
    letter-spacing: 0.8px;
    padding-right: 0;
  }
  .scene-text h2 {
    font-size: 23px;
    letter-spacing: -0.5px;
  }
  .log-button {
    background: #efe6cee6;
    width: 27px;
    height: 27px;
  }
  .workbench {
    --gap: 4px;
    padding: 6px 12px 9px;
  }
  .word-head h2 {
    font-size: 21px;
  }
  .work-head,
  .rack-head {
    margin: 0 0 3px;
  }
  .edit-tools button,
  .rack-tools button {
    min-height: 26px;
    font-size: 11px;
    padding: 4px 6px;
  }
  .spelling {
    padding: 4px;
  }
  .socket,
  .spelling > .letter-tile {
    height: 44px;
  }
  .spelling .letter-tile .glyph {
    font-size: 23px;
  }
  .hand-note {
    font-size: 10px;
    min-height: 14px;
    margin: 3px 0 1px;
  }
  .hand-rack {
    padding: 4px 4px 5px;
  }
  .hand-rack .letter-tile {
    height: 47px;
  }
  .letter-tile .glyph {
    font-size: 26px;
  }
  .tile-power {
    font-size: 9px;
  }
  .lead-bonus {
    font-size: 7px;
    top: 1px;
    right: 1px;
  }
  .play-strip {
    margin-top: 6px;
    padding-top: 6px;
  }
  .play {
    min-height: 37px;
    font-size: 13px;
    padding: 5px 10px;
    min-width: 108px;
  }
  .forecast b {
    font-size: 19px;
  }
  .outcome {
    font-size: 11px;
    margin-top: 2px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
