@font-face {
  font-family: RuneScape;
  src: url('/media/47fc165466ec7d6b/fonts/runescape.ttf') format('truetype');
  font-display: swap;
}
@font-face {
  font-family: RuneScape;
  src: url('/media/47fc165466ec7d6b/fonts/runescape_bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --bg: #1b1915;
  --panel: #302b23;
  --inner: #27231c;
  --edge: #514636;
  --gold: #e7bb62;
  --cream: #e4dac4;
  --muted: #b0a38b;
  --green: #a6d88a;
  --red: #f2a09a;
  --amber: #f0c56e;
  --pixel: RuneScape, Georgia, serif;
  --body: Arial, Helvetica, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 20%, #3b332440, transparent 65%),
    repeating-linear-gradient(115deg, #ffffff01 0 1px, transparent 1px 4px), var(--bg);
  color: var(--cream);
  font: 14px/1.6 var(--body);
  min-width: 320px;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
}
a {
  color: var(--gold);
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid #f7dc9e;
  outline-offset: 4px;
}
button {
  color: inherit;
}
img {
  image-rendering: pixelated;
  object-fit: contain;
}
h1,
h2,
h3,
p {
  margin: 0;
}
button:disabled {
  opacity: 0.43;
}
button:disabled:hover {
  filter: none;
}
button:enabled:hover {
  filter: brightness(1.16);
}
[hidden] {
  display: none !important;
}
.skip-link {
  position: absolute;
  top: -70px;
  left: 20px;
  z-index: 20;
  background: var(--gold);
  color: #211d17;
  padding: 10px;
}
.skip-link:focus {
  top: 10px;
}
.topbar {
  background: linear-gradient(#2b271f, #252119);
  border-bottom: 1px solid #5c4e36;
  box-shadow:
    0 3px 0 #0c0b09,
    0 4px 0 #3b3327;
}
.topbar-inner {
  max-width: 1232px;
  padding: 17px 32px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--gold);
  text-decoration: none;
  font: 700 30px/1 var(--pixel);
  text-shadow: 2px 2px #000;
  white-space: nowrap;
}
.brand small {
  display: block;
  font: 9px/1.5 var(--body);
  letter-spacing: 1.6px;
  color: #b0a18a;
  margin-top: 8px;
  text-shadow: none;
}
.brand img {
  width: 54px;
  height: 48px;
}
.topbar nav {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav-button {
  font: 20px/1.3 var(--pixel);
  border: none;
  background: none;
  color: var(--muted);
  padding: 13px 0;
  position: relative;
}
.nav-button.selected {
  color: var(--gold);
}
.nav-button.selected:after {
  content: '';
  position: absolute;
  height: 2px;
  background: var(--gold);
  bottom: 3px;
  left: 0;
  right: 0;
}
.preview-badge {
  font-size: 10px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: 1px solid #594d37;
  color: #c3af86;
  padding: 4px 7px;
  white-space: nowrap;
}
.page {
  max-width: 1232px;
  margin: auto;
  padding: 43px 32px 20px;
}
.welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 33px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.2px;
  color: #aa9a77;
  margin-bottom: 7px;
}
h1 {
  font: 700 42px/1.2 var(--pixel);
  color: var(--gold);
  text-shadow: 2px 3px #090807;
  margin-bottom: 8px;
}
.welcome > div > p:last-child {
  color: var(--muted);
  font-size: 13px;
}
.date-box {
  min-width: 190px;
  border-left: 1px solid #584b34;
  padding-left: 24px;
  display: grid;
  gap: 4px;
}
.date-box > span:first-child {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: #b5a383;
}
.date-box strong {
  font: 24px/1.2 var(--pixel);
  color: var(--cream);
}
.reset-label {
  font-size: 11px;
  color: #a89b83;
}
.reset-label span {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.game-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 210px;
  gap: 20px;
  align-items: start;
}
.stone-panel {
  background: linear-gradient(115deg, #ffffff02, transparent 60%), var(--panel);
  border: 1px solid #65563f;
  outline: 1px solid #100e0a;
  box-shadow:
    inset 0 0 0 3px #17140e,
    inset 0 0 0 4px #453a2b,
    0 4px 0 #0c0b09,
    0 10px 30px #0002;
  position: relative;
}
.panel-heading {
  font: 700 23px/1.2 var(--pixel);
  color: var(--gold);
  padding: 21px 18px 17px;
  border-bottom: 1px solid #4c402e;
  text-shadow: 1px 2px #000;
  display: flex;
  align-items: center;
  gap: 8px;
}
.panel-heading img {
  width: 27px;
  height: 24px;
}
.trail-panel {
  padding-bottom: 18px;
}
.trail-panel ol {
  padding: 10px 9px 0;
  margin: 0;
  list-style: none;
}
.trail-item {
  display: flex;
  width: 100%;
  text-align: left;
  align-items: center;
  gap: 11px;
  padding: 17px 12px;
  background: none;
  border: 1px solid transparent;
  border-bottom-color: #4a3e2c;
  position: relative;
}
.trail-item.active {
  background: linear-gradient(90deg, #68522f80, #4d3f2860);
  border-color: #75603a;
  box-shadow: inset 0 0 0 1px #30271b;
}
.trail-item.active .trail-name {
  color: #ffdb8a;
}
.trail-item.solved .trail-name {
  color: var(--green);
}
.trail-item.revealed .trail-name {
  color: #b4a793;
}
.trail-icon {
  width: 27px;
  height: 24px;
  flex: none;
}
.trail-name {
  display: block;
  font: 21px/1.2 var(--pixel);
  white-space: nowrap;
}
.trail-type {
  display: block;
  color: #b0a087;
  font-size: 10px;
  margin-top: 5px;
}
.trail-check {
  margin-left: auto;
  color: var(--green);
  font-size: 15px;
}
.trail-note {
  padding: 28px 14px 8px;
  display: flex;
  gap: 10px;
  justify-content: center;
  color: #b2a185;
  font-size: 11px;
  line-height: 1.7;
}
.little-star {
  color: #a78e5c;
  font-size: 18px;
}
.game-panel {
  min-height: 570px;
  padding: 27px 28px 23px;
}
.trial-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.trial-kicker {
  font-size: 10px;
  letter-spacing: 1.9px;
  color: #bba47e;
}
.trial-points {
  font: 19px/1 var(--pixel);
  color: var(--gold);
  white-space: nowrap;
}
.trial-title {
  font: 700 34px/1.15 var(--pixel);
  color: #f0cf83;
  text-shadow: 2px 2px #000;
  margin-bottom: 8px;
}
.trial-description {
  color: #f4ead0;
  font: 700 22px/1.3 var(--pixel);
  text-shadow: 1px 1px #000;
  margin-top: 14px;
}
.question-emphasis {
  color: #ffdb83;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.trial-rule {
  font-size: 11px;
  color: #a49375;
  margin: 10px 0 0;
}
.trial-visual {
  margin: 23px 0 22px;
}
.evidence-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
  font: 17px/1.3 var(--pixel);
  color: #b9a88a;
}
.evidence-header span:last-child {
  color: #c5a264;
}
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}
.item-tile {
  min-width: 0;
  min-height: 129px;
  background: linear-gradient(#413929, #342d21);
  border: 1px solid #746046;
  box-shadow:
    inset 0 0 0 2px #201b13,
    inset 0 0 0 3px #554731;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 11px;
  padding: 15px 7px 12px;
  position: relative;
  text-align: center;
}
.item-tile img {
  width: 54px;
  height: 48px;
  filter: drop-shadow(2px 3px 1px #0009);
}
.item-tile .item-name {
  font: 18px/1.15 var(--pixel);
  color: #e8d7ad;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.item-tile.locked {
  background: #28241c;
  border-color: #514430;
  box-shadow:
    inset 0 0 0 2px #1e1a13,
    inset 0 0 0 3px #393122;
}
.tile-question {
  font: 700 42px/48px var(--pixel);
  color: #77613e;
  text-shadow: 2px 2px #131009;
}
.locked .item-name {
  color: #998366;
}
.tile-index {
  position: absolute;
  top: 5px;
  left: 8px;
  font: 12px var(--pixel);
  color: #a18a60;
}
.inventory-caption {
  text-align: center;
  color: #c0b49d;
  font-size: 12px;
  line-height: 1.5;
  margin-top: 11px;
}
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, #655037, transparent);
  margin: 22px 0;
}
.guess-form label {
  font: 19px/1.2 var(--pixel);
  color: #d9c7a3;
  display: block;
  margin-bottom: 9px;
}
.guess-row {
  display: flex;
  gap: 8px;
}
.guess-row input {
  background: #1b1813;
  color: #f0dfbb;
  border: 1px solid #6e5b3c;
  box-shadow: inset 1px 2px 4px #0008;
  min-width: 0;
  flex: 1;
  padding: 11px 12px;
  font: 19px var(--pixel);
  border-radius: 0;
}
.guess-row input::placeholder {
  color: #8d7f67;
}
.button {
  background: linear-gradient(#69553b, #4b3926);
  box-shadow:
    inset 0 1px #a08253,
    inset 0 -2px #2d2116,
    0 2px #15100c;
  border: 1px solid #987947;
  border-radius: 0;
  color: #f7d88e;
  text-shadow: 1px 1px #000;
  font: 20px/1.2 var(--pixel);
  padding: 10px 17px;
  min-height: 43px;
  white-space: nowrap;
}
.button.primary {
  background: linear-gradient(#77704b, #544f31);
  border-color: #a69b5d;
  color: #fff0a8;
  box-shadow:
    inset 0 1px #b0a669,
    inset 0 -2px #302e1c,
    0 2px #15100c;
}
.button.secondary {
  background: linear-gradient(#39342b, #2d2820);
  border-color: #6a5a3f;
  box-shadow:
    inset 0 1px #5d5039,
    0 2px #18140f;
  color: #d4c19c;
}
.button.full {
  width: 100%;
}
.round-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}
.text-button {
  padding: 7px 0;
  background: none;
  border: 0;
  color: #b7a17d;
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.hint-button {
  font: 18px/1.3 var(--pixel);
  padding: 8px 10px;
}
.feedback {
  min-height: 22px;
  margin-top: 14px;
  color: #ceb68c;
  font: 18px/1.4 var(--pixel);
}
.guess-history {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}
.guess-chip {
  font-size: 10px;
  padding: 3px 7px;
  background: #261d18;
  color: var(--red);
  border: 1px solid #5f4232;
}
.guess-chip.correct {
  color: var(--green);
  border-color: #4c6740;
}
.attempts {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: 10px;
  color: #a99a80;
}
.attempt-dot {
  width: 7px;
  height: 7px;
  border: 1px solid #a78e56;
  background: #b6a067;
}
.attempt-dot.used {
  background: #3c3224;
  border-color: #6a5136;
}
.run-column {
  display: grid;
  gap: 21px;
}
.run-panel {
  padding: 0 18px 18px;
  text-align: center;
}
.run-panel .panel-heading {
  justify-content: center;
  margin: 0 -18px;
}
.casket-display {
  height: 143px;
  display: grid;
  place-items: center;
  position: relative;
}
.casket-display img {
  position: relative;
  width: 108px;
  height: 96px;
  filter: drop-shadow(3px 5px 1px #0007);
}
.casket-glow {
  position: absolute;
  inset: 5px 0;
  background: radial-gradient(ellipse, #ad8c3a24, transparent 68%);
}
.score-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
}
.score-display strong {
  font: 700 38px/1 var(--pixel);
  color: var(--gold);
  text-shadow: 2px 2px #000;
}
.score-display span {
  font: 16px var(--pixel);
  color: #ad9c7d;
}
.progress-gems {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin: 22px 0 12px;
}
.gem {
  width: 12px;
  height: 12px;
  transform: rotate(45deg);
  background: #222017;
  border: 1px solid #685939;
  box-shadow: inset 0 0 0 2px #322b1c;
}
.gem.solved {
  background: #8aa95d;
  border-color: #c1cf8e;
  box-shadow: inset 0 0 0 2px #59743c;
}
.gem.revealed {
  background: #806a45;
  border-color: #aa8b56;
}
.run-panel > p {
  font-size: 10px;
  color: #ad9c7d;
  margin-bottom: 20px;
}
.run-panel .button {
  font-size: 19px;
  padding: 9px 7px;
}
.parchment {
  background: radial-gradient(ellipse at 50% 0, #d9c28e, #b59a65);
  padding: 23px 20px 19px;
  color: #46351f;
  box-shadow:
    0 3px 0 #0d0b08,
    0 5px 12px #0004,
    inset 0 0 23px #62441950;
  border: 1px solid #a08250;
  clip-path: polygon(
    0 2%,
    8% 0,
    18% 1.5%,
    32% 0,
    45% 1%,
    60% 0,
    75% 1.2%,
    89% 0,
    100% 1.5%,
    100% 98%,
    89% 100%,
    72% 98.5%,
    60% 100%,
    45% 98.5%,
    30% 100%,
    18% 98.5%,
    0 100%
  );
}
.parchment-title {
  display: block;
  font: 700 23px var(--pixel);
  color: #49341c;
  margin-bottom: 10px;
}
.parchment p {
  font: 19px/1.35 var(--pixel);
}
.parchment-flourish {
  display: block;
  text-align: right;
  font: 16px/1.3 var(--pixel);
  margin-top: 17px;
  opacity: 0.8;
}
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid #3f3527;
  margin-top: 34px;
  padding-top: 20px;
  color: #8c806a;
  font-size: 10px;
}
.site-footer div {
  display: flex;
  align-items: center;
  gap: 10px;
}
.site-footer a,
.site-footer button {
  color: #a7997e;
  font-size: 10px;
  text-decoration: none;
  background: none;
  border: 0;
  padding: 0;
}
.site-footer a:hover,
.site-footer button:hover {
  color: var(--gold);
}
.loot-list {
  display: grid;
  gap: 7px;
}
.loot-row {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #252017;
  border: 1px solid #4c3e2b;
  padding: 9px 12px;
  min-height: 55px;
}
.loot-row img {
  width: 36px;
  height: 32px;
}
.loot-row .loot-name {
  font: 19px/1.2 var(--pixel);
}
.loot-row small {
  margin-left: auto;
  color: #9d8967;
  font-size: 10px;
  text-align: right;
}
.loot-row.locked {
  color: #8b7756;
  border-style: dashed;
  background: #28231b;
}
.loot-number {
  width: 36px;
  text-align: center;
  font: 25px var(--pixel);
  color: #867048;
}
.recipe-board {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 22px 10px;
  background: #241f17;
  border: 1px solid #56462e;
  box-shadow: inset 0 0 0 3px #1b1710;
}
.recipe-component {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  text-align: center;
}
.recipe-component img {
  width: 54px;
  height: 48px;
}
.recipe-component span {
  font: 18px/1.2 var(--pixel);
  min-height: 44px;
  max-width: 100px;
  color: #decca9;
}
.recipe-component .missing-slot {
  height: 48px;
  font: 42px/1 var(--pixel);
  color: var(--gold);
  border-bottom: 1px dashed #8d784c;
  width: 54px;
}
.recipe-operator {
  font: 27px var(--pixel);
  color: #917a50;
  margin-top: -37px;
}
.hint-notes {
  list-style: none;
  margin: 13px 0 0;
  padding: 0;
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: #c8b48e;
}
.hint-notes li:before {
  content: '✦';
  color: #ac8e52;
  margin-right: 8px;
}
.result-box {
  background: #29241b;
  border: 1px solid #79603c;
  padding: 20px;
  margin-top: 23px;
  box-shadow:
    inset 0 0 0 2px #18140e,
    inset 0 0 0 3px #483b29;
}
.result-box.revealed {
  background: #2b241b;
  border-color: #79603c;
}
.result-overline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font: 20px var(--pixel);
  color: var(--gold);
  margin-bottom: 9px;
}
.result-box.revealed .result-overline {
  color: #c9ad78;
}
.result-box.solved .result-overline {
  color: var(--green);
}
.result-box h3 {
  font: 700 27px/1.2 var(--pixel);
  color: #e9dfb9;
  margin-bottom: 10px;
}
.result-box p {
  font-size: 12px;
  color: #bdb49e;
  line-height: 1.8;
}
.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 13px 0 19px;
}
.source-links a {
  font-size: 10px;
  color: #c8b17e;
  text-underline-offset: 3px;
}
.result-box .button {
  width: 100%;
}
.trial-footnote {
  font-size: 10px;
  color: #918166;
  margin-top: 18px;
  text-align: center;
}
.knowledge-grid {
  display: grid;
  container: monster-grid / inline-size;
  grid-template-columns: 87px repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 19px 0;
}
.grid-col-label {
  font: 17px/1.15 var(--pixel);
  text-align: center;
  color: #d0b681;
  display: grid;
  place-items: center;
  min-height: 42px;
  padding: 0 4px;
}
.grid-row-label {
  font: 17px/1.2 var(--pixel);
  color: #d0b681;
  display: flex;
  align-items: center;
  padding-right: 2px;
}
.grid-cell {
  background: #241f17;
  border: 1px solid #75603e;
  box-shadow: inset 0 0 0 2px #19150f;
  min-height: 0;
  min-width: 0;
  /* Keep all answer states the same size without oversized empty cells. */
  height: 104px;
  padding: 6px;
  color: #b59b68;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  font: 19px/1.2 var(--pixel);
  text-align: center;
}
.grid-cell.active {
  background: #55472b;
  border-color: #e5bf72;
  box-shadow: inset 0 0 0 2px #312619;
}
.grid-cell.filled {
  color: var(--green);
  border-color: #6d8052;
  background: #2c3120;
}
.grid-cell small {
  font-size: 12px;
  color: #95ac72;
}
.grid-cell.filled small {
  color: var(--green);
}
.grid-picker-label {
  font: 18px var(--pixel);
  color: #d2b987;
  margin: 16px 0 10px;
}
.roster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.roster button {
  font: 17px/1.2 var(--pixel);
  min-height: 37px;
  background: #3c3223;
  border: 1px solid #695537;
  padding: 8px 5px;
  min-width: 0;
  color: #d2c09a;
}
.roster button.used {
  color: #8a946c;
  border-color: #4c5838;
  background: #262c1f;
  opacity: 0.6;
}
.grid-source-note {
  color: #a59476;
  font-size: 10px;
  margin-top: 10px;
}
.impostor-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.impostor-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(#403525, #342b1e);
  border: 1px solid #77613e;
  min-height: 80px;
  padding: 12px 9px;
  text-align: left;
  font: 18px/1.25 var(--pixel);
  color: #dfcc9e;
}
.impostor-option img {
  width: 36px;
  height: 32px;
  flex: none;
}
.impostor-option.selected {
  border-color: #e7c477;
  box-shadow: inset 0 0 0 2px #b18b41;
  background: #5a4728;
}
.impostor-option.eliminated {
  border-color: #64744a;
  background: #29301e;
  color: #9fb485;
  opacity: 0.7;
}
.impostor-option.answer {
  border-color: #bbcf84;
  box-shadow: inset 0 0 0 2px #687747;
}
.impostor-option small {
  position: absolute;
  right: 6px;
  bottom: 3px;
  font: 12px var(--pixel);
  color: #c6d39e;
}
.impostor-confirm {
  margin-top: 17px;
  width: 100%;
}
.summary-head {
  text-align: center;
  padding: 12px 0 22px;
}
.summary-head img {
  width: 108px;
  height: 96px;
  filter: drop-shadow(0 0 30px #bf9d4840);
}
.summary-head h2 {
  font: 700 35px/1.2 var(--pixel);
  color: var(--gold);
  text-shadow: 2px 2px #000;
}
.summary-head p {
  color: #b9a789;
  font-size: 12px;
  margin-top: 10px;
}
.summary-score {
  font: 700 45px/1.1 var(--pixel);
  color: #f4d889;
  margin-top: 19px;
}
.summary-score span {
  font: 22px var(--pixel);
  color: #b49b6f;
}
.summary-rounds {
  display: grid;
  gap: 0;
  margin: 0 0 23px;
}
.summary-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 3px;
  border-top: 1px solid #4b3d29;
  font: 20px var(--pixel);
}
.summary-row img {
  width: 27px;
  height: 24px;
}
.summary-row strong {
  margin-left: auto;
  font-weight: 400;
  color: var(--gold);
}
.summary-row small {
  color: #9b8b70;
  font: 12px var(--pixel);
}
.summary-actions {
  display: grid;
  gap: 10px;
}
.summary-divider {
  font: 17px var(--pixel);
  color: #ac9774;
  text-align: center;
  margin: 20px 0;
}
.summary-archive {
  display: block;
  margin-inline: auto;
}
.dialog-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #5b4a30;
  padding-bottom: 14px;
  margin-bottom: 20px;
}
dialog {
  padding: 25px 28px;
  max-width: 550px;
  width: calc(100% - 32px);
  max-height: 85dvh;
  overflow: auto;
  background: #30291e;
  color: var(--cream);
  border: 2px solid #917341;
  box-shadow:
    inset 0 0 0 3px #15110b,
    0 15px 60px #000a;
}
dialog::backdrop {
  background: #080705bb;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font: 700 30px var(--pixel);
  color: var(--gold);
}
.icon-button {
  background: none;
  border: 1px solid #725d3b;
  width: 36px;
  height: 36px;
  font-size: 23px;
  color: #d5bc8b;
  line-height: 1;
}
.dialog-copy p {
  font-size: 13px;
  color: #d0c0a5;
  margin: 0 0 15px;
}
.dialog-copy ul {
  padding-left: 20px;
  font-size: 12px;
  line-height: 1.9;
  color: #bfb092;
}
.dialog-copy strong {
  color: #f0d197;
}
.dialog-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}
.help-round {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  margin: 18px 0;
}
.help-round img {
  width: 36px;
  height: 32px;
}
.help-round h3 {
  font: 23px var(--pixel);
  color: #e0bf78;
  margin-bottom: 3px;
}
.help-round p {
  font-size: 12px;
  color: #bcac8f;
  margin: 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}
.stat-tile {
  background: #241f17;
  border: 1px solid #5f4e34;
  padding: 18px;
  text-align: center;
}
.stat-tile strong {
  display: block;
  font: 34px var(--pixel);
  color: var(--gold);
}
.stat-tile span {
  font-size: 11px;
  color: #beaa84;
}
.stats-note {
  margin-top: 20px;
  color: #a28d6a;
  font-size: 11px;
}
.record-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #4a3a25;
  color: #c9b58e;
  font-size: 12px;
}
.record-title {
  font: 24px var(--pixel);
  color: var(--gold);
  margin: 22px 0 10px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  max-width: calc(100% - 30px);
  background: #49402c;
  border: 1px solid #a58a52;
  padding: 10px 20px;
  color: #f3d88f;
  box-shadow: 0 3px 15px #0008;
  font: 20px var(--pixel);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
#toast.visible {
  opacity: 1;
}
.noscript {
  margin: 30px;
  padding: 20px;
  color: var(--gold);
}
@media (min-width: 1400px) {
  .page {
    padding-top: 55px;
  }
  .welcome {
    margin-bottom: 42px;
  }
  .game-panel {
    min-height: 596px;
  }
}
@media (max-width: 1100px) {
  .game-layout {
    grid-template-columns: 195px minmax(0, 1fr);
  }
  .run-column {
    grid-column: 1/-1;
    grid-template-columns: 1fr 1fr;
  }
  .run-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 15px;
    padding: 18px;
  }
  .run-panel .panel-heading {
    padding: 0;
    border: none;
    margin: 0;
    grid-column: 1/-1;
    justify-content: start;
  }
  .casket-display {
    grid-row: 2/5;
    height: 125px;
  }
  .score-display {
    align-self: end;
  }
  .progress-gems {
    margin: 14px 0 10px;
  }
  .run-panel > p {
    margin-bottom: 10px;
  }
  .run-panel .button {
    grid-column: 1/-1;
  }
  .parchment {
    align-self: stretch;
    padding: 30px;
  }
  .topbar-inner {
    gap: 20px;
  }
  .topbar nav {
    gap: 20px;
  }
  .preview-badge {
    display: none;
  }
  .game-panel {
    min-height: 555px;
  }
  .trail-name {
    font-size: 20px;
  }
  .trail-item {
    padding: 16px 9px;
    gap: 8px;
  }
  .site-footer {
    align-items: start;
  }
}
@media (max-width: 740px) {
  .topbar-inner {
    padding: 14px 20px;
    flex-wrap: wrap;
    gap: 15px;
  }
  .brand {
    font-size: 28px;
  }
  .brand small {
    font-size: 8px;
  }
  .topbar nav {
    margin: 0;
    width: 100%;
    gap: 24px;
    border-top: 1px solid #4d402b;
    padding-top: 5px;
  }
  .nav-button {
    font-size: 19px;
    padding: 8px 0;
  }
  .page {
    padding: 26px 18px 20px;
  }
  .welcome {
    align-items: start;
    gap: 20px;
  }
  .welcome h1 {
    font-size: 33px;
    max-width: 330px;
  }
  .welcome .eyebrow {
    font-size: 8px;
    letter-spacing: 1.6px;
  }
  .welcome > div > p:last-child {
    font-size: 11px;
    max-width: 290px;
  }
  .date-box {
    min-width: 130px;
    padding-left: 13px;
    margin-top: 3px;
  }
  .date-box strong {
    font-size: 21px;
  }
  .date-box > span:first-child {
    font-size: 8px;
  }
  .reset-label {
    font-size: 9px;
  }
  .game-layout {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .trail-panel {
    padding: 0;
    grid-column: 1;
  }
  .trail-panel .panel-heading,
  .trail-note {
    display: none;
  }
  .trail-panel ol {
    display: flex;
    gap: 0;
    padding: 5px;
  }
  .trail-panel li {
    flex: 1;
    min-width: 0;
  }
  .trail-item {
    flex-direction: column;
    gap: 5px;
    text-align: center;
    padding: 9px 2px;
    border-bottom: none;
    height: 91px;
    justify-content: center;
  }
  .trail-name {
    font-size: 16px;
    white-space: normal;
    line-height: 1.1;
  }
  .trail-type {
    display: none;
  }
  .trail-icon {
    width: 27px;
    height: 24px;
  }
  .trail-check {
    position: absolute;
    top: 3px;
    right: 4px;
    font-size: 11px;
  }
  .trail-item.active {
    box-shadow: inset 0 0 0 1px #30271b;
  }
  .game-panel {
    grid-column: 1;
    padding: 23px;
    min-height: 540px;
  }
  .run-column {
    grid-column: 1;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .run-panel {
    display: block;
    padding: 0 15px 15px;
  }
  .run-panel .panel-heading {
    justify-content: center;
    padding: 18px 0 12px;
    border-bottom: 1px solid #4c402e;
  }
  .casket-display {
    height: 105px;
  }
  .casket-display img {
    width: 81px;
    height: 72px;
  }
  .score-display strong {
    font-size: 33px;
  }
  .progress-gems {
    margin: 15px 0 12px;
    gap: 8px;
  }
  .parchment {
    padding: 24px 18px;
  }
  .parchment-title {
    font-size: 23px;
  }
  .parchment p {
    font-size: 19px;
  }
  .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    margin-top: 27px;
  }
  .trial-title {
    font-size: 32px;
  }
  .trial-description {
    font-size: 21px;
  }
  .item-tile img {
    width: 54px;
    height: 48px;
  }
  .inventory-grid {
    gap: 7px;
  }
  .item-tile {
    padding: 13px 4px 8px;
    min-height: 128px;
  }
  .item-tile .item-name {
    font-size: 18px;
  }
  .trial-visual {
    margin-top: 22px;
  }
  .round-tools {
    gap: 8px;
  }
  .round-tools .text-button {
    font-size: 10px;
  }
  .button {
    font-size: 19px;
  }
  .trial-footnote {
    font-size: 9px;
  }
}
@media (max-width: 460px) {
  .page {
    padding-left: 12px;
    padding-right: 12px;
  }
  .topbar-inner {
    padding-left: 16px;
    padding-right: 16px;
  }
  .welcome {
    flex-direction: column;
    gap: 18px;
    margin-bottom: 22px;
  }
  .welcome h1 {
    font-size: 36px;
    max-width: 100%;
  }
  .welcome > div > p:last-child {
    max-width: 100%;
  }
  .date-box {
    border-left: none;
    border-top: 1px solid #4f402b;
    padding: 13px 0 0;
    width: 100%;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
  }
  .date-box strong {
    font-size: 19px;
  }
  .date-box > span:first-child {
    font-size: 8px;
  }
  .reset-label {
    margin-left: auto;
    font-size: 9px;
  }
  .game-panel {
    padding: 22px 17px;
  }
  .trial-topline {
    margin-bottom: 17px;
  }
  .trial-kicker {
    font-size: 9px;
    letter-spacing: 1.1px;
  }
  .trial-points {
    font-size: 18px;
  }
  .trial-title {
    font-size: 31px;
  }
  .trial-description {
    font-size: 21px;
  }
  .inventory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .item-tile {
    min-height: 100px;
    flex-direction: row;
    padding: 15px 10px;
    gap: 7px;
  }
  .item-tile .item-name {
    font-size: 18px;
    min-height: 0;
    flex: 1;
    overflow-wrap: anywhere;
  }
  .tile-question {
    width: 48px;
    flex: none;
  }
  .item-tile img {
    width: 45px;
    height: 40px;
  }
  .tile-index {
    font-size: 10px;
    top: 4px;
    left: 5px;
  }
  .guess-row input {
    padding: 11px 9px;
    font-size: 19px;
  }
  .guess-row .button {
    padding: 10px 12px;
    font-size: 19px;
  }
  .round-tools {
    flex-wrap: wrap;
  }
  .hint-button {
    font-size: 17px;
  }
  .run-column {
    grid-template-columns: 1fr;
  }
  .run-panel {
    display: grid;
    grid-template-columns: 110px 1fr;
    padding: 16px 20px;
    gap: 0 12px;
  }
  .run-panel .panel-heading {
    grid-column: 1/-1;
    padding: 0 0 10px;
    justify-content: start;
    border: 0;
  }
  .run-panel .casket-display {
    grid-column: 1;
    grid-row: 2/5;
    height: 108px;
  }
  .run-panel .score-display {
    align-self: end;
  }
  .run-panel .button {
    grid-column: 1/-1;
    margin-top: 10px;
  }
  .parchment {
    display: none;
  }
  .knowledge-grid {
    grid-template-columns: 76px repeat(2, minmax(0, 1fr));
    gap: 5px;
  }
  .grid-col-label,
  .grid-row-label {
    font-size: 16px;
  }
  .grid-cell {
    font-size: 17px;
    padding: 6px 4px;
  }
  .roster {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .roster button {
    font-size: 18px;
    min-height: 40px;
  }
  .impostor-options {
    gap: 7px;
  }
  .impostor-option {
    font-size: 17px;
    padding: 13px 8px;
    min-height: 90px;
    gap: 8px;
  }
  .impostor-option img {
    width: 27px;
    height: 24px;
  }
  .recipe-board {
    padding: 20px 7px;
    gap: 2px;
  }
  .recipe-component span {
    font-size: 17px;
  }
  .recipe-component img {
    width: 45px;
    height: 40px;
  }
  .recipe-component .missing-slot {
    height: 40px;
    font-size: 38px;
    width: 40px;
  }
  .recipe-operator {
    font-size: 23px;
  }
  .loot-row {
    padding: 9px;
    gap: 10px;
  }
  .loot-row .loot-name {
    font-size: 18px;
  }
  .loot-row small {
    font-size: 9px;
  }
  .trial-footnote {
    line-height: 1.8;
  }
  .site-footer div {
    flex-wrap: wrap;
    justify-content: center;
  }
  dialog {
    padding: 23px 20px;
  }
}
.sound-button {
  background: #262118;
  border: 1px solid #6c5736;
  color: #d5bc88;
  font: 18px var(--pixel);
  padding: 8px 10px;
  white-space: nowrap;
  min-height: 38px;
}
.sound-button[aria-pressed='false'] {
  color: #a99b82;
  border-color: #4e4435;
}
.run-clock {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 19px 15px;
  margin: -9px 0 23px;
  background: #262219;
  border: 1px solid #71603e;
  box-shadow:
    inset 0 0 0 2px #17140e,
    0 3px 0 #100e0a;
  color: var(--gold);
}
.clock-title {
  display: flex;
  align-items: center;
  gap: 13px;
}
.clock-title > span {
  font: 25px var(--pixel);
  filter: grayscale(1) sepia(1);
}
.clock-title strong {
  display: block;
  font: 22px/1.2 var(--pixel);
  font-weight: 400;
}
.clock-title div > span {
  display: block;
  font: 10px/1.4 var(--body);
  color: var(--muted);
  margin-top: 3px;
}
#run-time {
  font: 700 35px/1 var(--pixel);
  font-variant-numeric: tabular-nums;
  min-width: 68px;
  text-align: right;
  text-shadow: 1px 2px #000;
}
.timer-rail {
  position: absolute;
  bottom: 3px;
  left: 3px;
  right: 3px;
  height: 3px;
  background: #15130f;
}
.timer-rail span {
  display: block;
  width: 100%;
  height: 100%;
  background: #ab975d;
  transform-origin: left;
}
.run-clock.warning {
  color: var(--amber);
  border-color: #b28a4b;
}
.run-clock.urgent {
  color: var(--red);
  border-color: #b36e55;
}
.warning .timer-rail span {
  background: var(--amber);
}
.urgent .timer-rail span {
  background: var(--red);
}
.start-screen {
  max-width: 375px;
  margin: 12px auto;
  text-align: center;
}
.start-screen > img {
  width: 81px;
  height: 72px;
  margin: 0 0 17px;
}
.start-screen h2 {
  font: 700 36px var(--pixel);
  color: var(--gold);
  margin: 12px 0;
}
.start-screen > p:not(.trial-kicker):not(.trial-footnote) {
  font: 21px/1.4 var(--pixel);
  color: #bfb091;
}
.start-time {
  font: 700 54px var(--pixel);
  color: #f6d58b;
  margin: 18px 0 8px;
}
.start-screen ul {
  padding-left: 17px;
  text-align: left;
  font-size: 11px;
  color: #b4a58b;
  line-height: 1.8;
  margin: 0 0 25px;
}
.start-screen li + li {
  margin-top: 7px;
}
.autocomplete {
  position: relative;
  flex: 1;
  min-width: 0;
}
.autocomplete input {
  width: 100%;
  min-height: 46px;
}
.autocomplete-panel {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  width: max(100%, 280px);
  max-width: min(460px, calc(100vw - 64px));
  border: 1px solid #a88a51;
  background: #211d16;
  box-shadow: 0 5px 16px #0009;
}
.autocomplete-panel [role='listbox'] {
  max-height: 230px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 4px;
}
.autocomplete-panel [role='option'] {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid #423626;
  background: none;
  text-align: left;
  padding: 9px 10px;
  color: #d6c3a1;
  font: 19px/1.2 var(--pixel);
  min-height: 38px;
}
.autocomplete-panel [role='option']:hover,
.autocomplete-panel [role='option'][aria-selected='true'] {
  background: #57462b;
  color: #ffe2a1;
}
.autocomplete-empty {
  padding: 12px;
  font-size: 11px;
  color: #c0af8e;
}
.autocomplete-footer {
  padding: 7px 10px;
  background: #30281c;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #655032;
}
.autocomplete-status {
  font-size: 10px;
  color: #bfa77c;
}
.autocomplete-pages {
  display: flex;
  gap: 5px;
}
.autocomplete-pages button {
  border: 1px solid #78613c;
  background: #433621;
  color: #f0d28e;
  font: 23px/1 var(--pixel);
  width: 32px;
  height: 30px;
}
.guess-row > .button {
  flex: none;
}
.feedback-inline {
  display: none;
}
.feedback-inline.has-message {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 10px 12px;
  margin: 12px 0 15px;
  border: 1px solid #78613e;
  background: #3c3222;
  color: #e3c68d;
  font: 19px/1.3 var(--pixel);
}
.feedback-inline > span:first-child {
  font-size: 23px;
  line-height: 1;
  flex: none;
}
#toast.error {
  background: #4b2c24;
  border-color: #b3795c;
  color: #ffd4c0;
}
#toast.warning {
  background: #47371f;
  border-color: #b68d46;
}
.grid-cell.cell-error {
  border-color: #e4a082;
  background: #4b2e24;
}
.grid-cell:disabled {
  opacity: 1;
}
.grid-cell:disabled:not(.filled) {
  opacity: 0.5;
}
@media (max-width: 1100px) {
  .topbar-inner {
    gap: 15px;
  }
  .topbar nav {
    gap: 18px;
  }
  .sound-button {
    font-size: 17px;
    padding: 8px;
  }
  .brand {
    font-size: 27px;
  }
}
@media (max-width: 740px) {
  .topbar-inner {
    position: relative;
    gap: 12px;
  }
  .topbar nav {
    order: 3;
  }
  .sound-button {
    margin-left: auto;
  }
  .brand {
    font-size: 26px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .brand img {
    width: 45px;
    height: 40px;
  }
  .run-clock {
    margin-top: 0;
  }
  .start-screen {
    margin-top: 0;
  }
}
@media (max-width: 460px) {
  .sound-button {
    font-size: 16px;
    padding: 7px;
  }
  .brand {
    font-size: 25px;
    gap: 5px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 0.8px;
  }
  .topbar-inner {
    padding-left: 12px;
    padding-right: 12px;
  }
  .run-clock {
    padding: 10px 12px 13px;
    margin-bottom: 18px;
  }
  .clock-title {
    gap: 9px;
  }
  .clock-title strong {
    font-size: 20px;
  }
  .clock-title div > span {
    font-size: 9px;
  }
  #run-time {
    font-size: 32px;
  }
  .autocomplete-panel {
    max-width: calc(100vw - 62px);
    width: calc(100vw - 62px);
  }
  .guess-row {
    flex-wrap: wrap;
  }
  .guess-row > .autocomplete {
    flex-basis: 100%;
  }
  .guess-row > .button {
    width: 100%;
  }
  .feedback-inline.has-message {
    font-size: 18px;
  }
  .start-screen {
    margin: 0 auto;
  }
  .start-screen > img {
    margin-bottom: 12px;
  }
  .start-screen ul {
    font-size: 11px;
  }
}

/* Time, banked points and current trial value stay together throughout play. */
.run-clock {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 0 22px;
  padding: 13px 21px 10px;
  scroll-margin-top: 10px;
  min-height: 104px;
}
.hud-stat {
  min-width: 0;
  border-right: 1px solid #51432d;
  padding-right: 14px;
}
.hud-stat > span {
  display: block;
  font: 10px/1.4 var(--body);
  color: #b7a586;
  letter-spacing: 0.2px;
  margin-bottom: 3px;
}
.hud-stat > div {
  white-space: nowrap;
  line-height: 1;
}
.hud-stat strong {
  display: inline-block;
  font: 700 32px/1.1 var(--pixel);
  color: #f0ce81;
  text-shadow: 1px 2px #000;
}
.hud-stat small {
  font: 16px var(--pixel);
  color: #b6a07a;
}
#run-time {
  min-width: 0;
  font-size: 32px;
  text-align: left;
}
.hud-utilities {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hud-utilities button {
  background: #332b1d;
  border: 1px solid #72603d;
  color: #cfb981;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  display: grid;
  place-items: center;
  flex: none;
  font: 23px/1 var(--pixel);
}
.score-event {
  grid-column: 1/-1;
  display: flex;
  gap: 11px;
  align-items: center;
  height: 25px;
  overflow: hidden;
  font: 11px/1.2 var(--body);
  color: #ad9a78;
  margin-top: 5px;
  white-space: nowrap;
}
.score-event strong {
  font: 21px/1 var(--pixel);
  font-weight: 700;
}
.score-event span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.score-event.loss strong,
.points-lost strong {
  color: var(--red);
}
.score-event.gain strong,
.points-gained strong {
  color: var(--green);
}
.run-clock.urgent #run-time {
  color: var(--red);
}
.run-clock.warning #run-time {
  color: var(--amber);
}
.answer-dock {
  position: relative;
  margin-top: 17px;
}
.answer-dock .guess-form {
  margin: 0;
}
.answer-dock .feedback-inline {
  margin-bottom: 0;
}
.feedback-inline,
.feedback-inline.has-message {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 15px;
  padding: 12px 14px;
  border: 1px solid #75603e;
  box-shadow:
    inset 0 0 0 2px #1c1811,
    inset 0 0 0 3px #493c29;
  background: #29241b;
  color: #ddc398;
  font: 19px/1.25 var(--pixel);
}
.feedback-inline.waiting {
  color: #988970;
  border-color: #473e2e;
  background: #29241b;
}
.feedback-inline > .feedback-symbol {
  font: 26px/1 var(--pixel);
  flex: none;
}
.feedback-inline > div {
  min-width: 0;
}
.feedback-points {
  display: block;
  font: 700 23px/1 var(--pixel);
  margin-bottom: 5px;
}
.feedback-message {
  display: block;
}
.feedback-inline.success .feedback-points,
.feedback-inline.success .feedback-symbol,
.feedback-inline .feedback-points.gain {
  color: var(--green);
}
.feedback-inline.error .feedback-points,
.feedback-inline.error .feedback-symbol,
.feedback-inline .feedback-points.loss {
  color: var(--red);
}
.feedback-inline.waiting .feedback-symbol {
  opacity: 0.6;
}
.hint-notes li {
  line-height: 1.45;
}
.hint-notes .sealed {
  color: #796d57;
  font-style: italic;
}
.hint-notes .sealed:before {
  color: #6b5b3e;
}
.guess-row > .button {
  min-width: 90px;
}
.trial-visual {
  scroll-margin-top: 130px;
}
#game {
  scroll-margin-top: 125px;
}
.impostor-confirm + .feedback-inline {
  margin-top: 12px;
}

@media (max-width: 740px) {
  .run-clock {
    grid-template-columns: 1fr 1fr 1.2fr 26px;
    padding: 10px 11px 7px;
    gap: 0 8px;
    min-height: 100px;
  }
  .hud-stat {
    padding-right: 6px;
  }
  .hud-stat > span {
    font-size: 9px;
    letter-spacing: 0;
    min-height: 13px;
    white-space: nowrap;
  }
  .hud-stat strong,
  #run-time {
    font-size: 29px;
  }
  .hud-stat small {
    font-size: 13px;
  }
  .hud-utilities {
    flex-direction: column;
    gap: 4px;
  }
  .hud-utilities button {
    font-size: 18px;
    width: 25px;
    height: 25px;
    min-width: 25px;
    min-height: 25px;
    padding: 0;
  }
  .score-event {
    margin-top: 2px;
    font-size: 10px;
    height: 23px;
  }
  .score-event strong {
    font-size: 19px;
  }
  .score-event span {
    display: none;
  }
  body.trail-started .topbar,
  body.trail-started .welcome {
    display: none;
  }
  body.trail-started .page {
    padding-top: 120px;
  }
  body.trail-started .run-clock {
    position: fixed;
    top: var(--viewport-top, 0px);
    left: 12px;
    right: 12px;
    margin: 0;
    z-index: 35;
    box-shadow: 0 5px 12px #0007;
  }
  .trail-started .trail-panel {
    margin-top: 0;
  }
  .trail-started .trail-item {
    height: 68px;
    padding: 6px 2px;
  }
  .trail-started .trail-name {
    font-size: 15px;
  }
  .trail-started .trail-icon {
    width: 23px;
    height: 21px;
  }
  .trail-started .game-panel {
    min-height: 0;
  }
  .trail-started .trial-topline {
    margin-bottom: 9px;
  }
  .trail-started .trial-title {
    font-size: 29px;
  }
  .trail-started .trial-description {
    font-size: 21px;
    line-height: 1.3;
    margin-top: 12px;
  }
  .trail-started .trial-rule {
    font-size: 10px;
    margin-top: 7px;
  }
  .trail-started .trial-points {
    display: none;
  }
  .trail-started .trial-visual {
    margin: 15px 0;
  }
  .trail-started .inventory-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
  }
  .trail-started .item-tile {
    min-height: 95px;
    flex-direction: column;
    padding: 13px 3px 6px;
    gap: 5px;
  }
  .trail-started .item-tile img {
    width: 36px;
    height: 32px;
  }
  .trail-started .item-tile .item-name {
    font-size: 15px;
    min-height: 32px;
    overflow-wrap: normal;
  }
  .trail-started .tile-question {
    font-size: 32px;
    line-height: 32px;
    height: 32px;
    width: auto;
  }
  .trail-started .inventory-caption {
    font-size: 11px;
  }
  .trail-started .divider {
    margin: 12px 0;
  }
  .trail-started .knowledge-grid {
    margin: 13px 0;
  }
  .trail-started .grid-col-label,
  .trail-started .grid-row-label {
    font-size: 15px;
  }
  .trail-started .trial-footnote {
    display: none;
  }
  .trail-started .run-column {
    display: none;
  }
  .trail-started .guess-history {
    max-height: 52px;
    overflow: auto;
  }
  .trail-started .site-footer {
    margin-top: 20px;
  }
  .trail-started .recipe-board {
    padding: 15px 7px;
  }
  body.has-answer-dock {
    padding-bottom: 174px;
  }
  .has-answer-dock .answer-dock {
    position: fixed;
    bottom: var(--keyboard-inset, 0px);
    left: 0;
    right: 0;
    z-index: 40;
    margin: 0;
    padding: 8px 12px max(7px, env(safe-area-inset-bottom));
    background: #282219;
    border-top: 2px solid #a18a51;
    box-shadow: 0 -5px 20px #0007;
  }
  .answer-dock .guess-form label {
    font-size: 16px;
    line-height: 18px;
    margin-bottom: 5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .answer-dock .guess-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 7px;
  }
  .answer-dock .guess-row > .autocomplete {
    flex: 1;
    flex-basis: 0;
  }
  .answer-dock .guess-row > .button {
    width: auto;
    min-width: 77px;
    font-size: 21px;
    padding: 9px 12px;
    min-height: 44px;
  }
  .answer-dock .guess-row input {
    font: 20px/1.2 var(--pixel);
    height: 44px;
    min-height: 44px;
    padding: 9px 10px;
  }
  .answer-dock .feedback-inline,
  .answer-dock .feedback-inline.has-message {
    margin: 7px 0 0;
    padding: 5px 7px;
    font-size: 16px;
    line-height: 1.18;
    border-color: #57462e;
    background: #211c14;
  }
  .answer-dock .feedback-inline > .feedback-symbol {
    font-size: 21px;
  }
  .answer-dock .feedback-points {
    display: inline;
    margin-right: 7px;
    font-size: 19px;
    line-height: 1.2;
  }
  .answer-dock .feedback-message {
    display: inline;
  }
  .answer-dock .feedback-inline > div {
    font-size: 16px;
  }
  .answer-dock .autocomplete-panel {
    top: auto;
    bottom: calc(100% + 8px);
    left: 0;
    width: calc(100vw - 24px);
    max-width: none;
    box-shadow: 0 -5px 16px #0009;
    display: flex;
    flex-direction: column;
  }
  .answer-dock .autocomplete-panel [role='listbox'] {
    max-height: var(--suggestion-height, 210px);
  }
  .answer-dock .autocomplete-panel [role='option'] {
    min-height: 37px;
    padding: 8px 10px;
  }
  .answer-dock .autocomplete-footer {
    padding: 5px 10px;
    min-height: 34px;
  }
  .answer-dock .autocomplete-pages button {
    height: 28px;
  }
  .keyboard-open .answer-dock {
    padding-bottom: 5px;
  }
  .keyboard-open #toast {
    bottom: auto;
    top: calc(var(--viewport-top, 0px) + 105px);
    font-size: 18px;
  }
  .casket-scene {
    width: 270px;
    height: 235px;
    margin-top: -12px;
  }
  .summary-head h2 {
    font-size: 32px;
  }
}
@media (max-width: 370px) {
  .knowledge-grid {
    grid-template-columns: 64px repeat(2, minmax(0, 1fr));
  }
  .hud-stat > span {
    font-size: 8px;
  }
  .hud-stat small {
    font-size: 11px;
  }
  .hud-stat strong,
  #run-time {
    font-size: 27px;
  }
  .run-clock {
    gap: 0 5px;
  }
  .trail-started .game-panel {
    padding: 18px 13px;
  }
  .trail-started .trial-title {
    font-size: 27px;
  }
  .trail-started .item-tile .item-name {
    font-size: 14px;
  }
  .casket-scene {
    width: 245px;
    height: 220px;
  }
}
@media (max-width: 740px) {
  .trail-started #toast {
    bottom: auto;
    top: calc(var(--viewport-top, 0px) + 108px);
    font-size: 18px;
  }
}

/* Original OSRS sprites: a short wind-up, a loose-coin spill, then a lasting reward. */
.casket-scene {
  position: relative;
  width: 280px;
  height: 230px;
  max-width: 100%;
  margin: -2px auto 8px;
  isolation: isolate;
  pointer-events: none;
}
.casket-aura {
  position: absolute;
  inset: 0 0 70px;
  background: radial-gradient(ellipse, #e2bd4b24, transparent 68%);
  z-index: -1;
}
.casket-shadow {
  position: absolute;
  left: 50%;
  top: 99px;
  width: 115px;
  height: 19px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, #0007, transparent 70%);
  z-index: -1;
}
.casket-prop {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 108px;
  height: 96px;
  transform: translateX(-50%);
  transform-origin: 50% 85%;
}
.summary-head .osrs-casket {
  display: block;
  width: 108px;
  height: 96px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(2px 3px 0 #0007);
}
.coin-pile {
  position: absolute;
  left: calc(50% - 2px);
  top: 60px;
  width: 72px;
  height: 64px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform-origin: 50% 100%;
  z-index: 2;
}
.summary-head .coin-pile img {
  width: var(--pile-width);
  height: var(--pile-height);
  image-rendering: pixelated;
  filter: drop-shadow(1px 2px 0 #0006);
}
.osrs-reward-tray {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(5, 42px);
  gap: 6px;
  background: #484338;
  border: 2px solid #211e17;
  box-shadow:
    inset 0 0 0 2px #716650,
    0 2px #0e0c08;
  padding: 13px 10px 10px;
}
.reward-slot {
  width: 42px;
  height: 48px;
  position: relative;
  display: grid;
  place-items: center;
  background: #3a352b;
  box-shadow:
    inset 1px 1px #302b23,
    inset -1px -1px #5b5242;
}
.summary-head .reward-slot img {
  width: 36px;
  height: 32px;
  filter: none;
}
.reward-slot small {
  position: absolute;
  left: 2px;
  top: -5px;
  z-index: 1;
  font: 16px/1 var(--pixel);
  color: #ffff00;
  text-shadow: 1px 1px #000;
}
.loot-particle {
  position: absolute;
  left: calc(50% - 12px);
  top: 49px;
  width: 24px;
  height: 16px;
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}
.coin-face {
  display: block;
  width: 24px;
  height: 16px;
}
.summary-head .loot-particle img {
  display: block;
  width: 24px;
  height: 16px;
  image-rendering: pixelated;
  filter: drop-shadow(1px 1px 0 #0005);
}
.casket-opening .casket-prop {
  animation: osrs-casket-reveal 1050ms ease-out var(--casket-delay, 0ms) both;
}
.casket-opening .casket-shadow {
  animation: osrs-casket-shadow 1050ms ease-out var(--casket-delay, 0ms) both;
}
.casket-opening .osrs-reward-tray {
  animation: osrs-rewards 350ms ease-out calc(950ms + var(--casket-delay, 0ms)) both;
}
.casket-opening .casket-aura {
  animation: osrs-treasure-glow 1500ms ease-out var(--casket-delay, 0ms) both;
}
.casket-opening .loot-particle {
  animation: osrs-coin-spill 820ms linear calc(var(--delay) + var(--casket-delay, 0ms)) both;
}
.casket-opening .coin-face {
  animation: osrs-coin-turn 240ms steps(2, end) calc(var(--delay) + var(--casket-delay, 0ms)) 4;
}
.casket-opening .coin-pile {
  animation: osrs-pile-settle 650ms ease-out calc(850ms + var(--casket-delay, 0ms)) both;
}
.casket-opening .summary-score {
  animation: osrs-score-reveal 350ms ease-out calc(1450ms + var(--casket-delay, 0ms)) both;
}
.replay-casket {
  justify-self: center;
}
.summary-score {
  position: relative;
}
@keyframes osrs-casket-reveal {
  0%,
  8% {
    transform: translate(-50%, 8px);
  }
  15% {
    transform: translate(calc(-50% - 3px), 8px) rotate(-4deg);
  }
  22% {
    transform: translate(calc(-50% + 3px), 8px) rotate(4deg);
  }
  29% {
    transform: translate(calc(-50% - 2px), 10px) rotate(-3deg);
  }
  42% {
    transform: translate(-50%, -9px) rotate(-7deg);
  }
  57% {
    transform: translate(-50%, -3px) rotate(5deg);
  }
  73% {
    transform: translate(-50%, 3px) rotate(-2deg);
  }
  87% {
    transform: translate(-50%, -1px) rotate(1deg);
  }
  100% {
    transform: translate(-50%, 0);
  }
}
@keyframes osrs-casket-shadow {
  0%,
  29% {
    transform: translateX(-50%) scaleX(1.05);
    opacity: 1;
  }
  42% {
    transform: translateX(-50%) scaleX(0.8);
    opacity: 0.55;
  }
  73% {
    transform: translateX(-50%) scaleX(1.05);
    opacity: 1;
  }
  100% {
    transform: translateX(-50%);
    opacity: 1;
  }
}
@keyframes osrs-rewards {
  from {
    opacity: 0;
    transform: translate(-50%, -7px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}
@keyframes osrs-treasure-glow {
  0%,
  25% {
    opacity: 0.2;
    transform: scale(0.7);
  }
  42% {
    opacity: 1;
    transform: scale(1.2);
  }
  100% {
    opacity: 0.75;
    transform: scale(1);
  }
}
@keyframes osrs-coin-spill {
  0% {
    opacity: 0;
    transform: translate(0, 0);
    animation-timing-function: ease-out;
  }
  8% {
    opacity: 1;
  }
  38% {
    opacity: 1;
    transform: translate(var(--arc-x), var(--arc-y));
    animation-timing-function: ease-in;
  }
  76% {
    opacity: 1;
    transform: translate(var(--land-x), var(--land-y));
    animation-timing-function: ease-out;
  }
  87% {
    opacity: 1;
    transform: translate(var(--land-x), calc(var(--land-y) - 7px));
    animation-timing-function: ease-in;
  }
  96% {
    opacity: 1;
    transform: translate(var(--land-x), var(--land-y));
  }
  100% {
    opacity: 0;
    transform: translate(var(--land-x), var(--land-y));
  }
}
@keyframes osrs-coin-turn {
  0%,
  100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(0.4);
  }
}
@keyframes osrs-pile-settle {
  0% {
    opacity: 0;
    transform: scale(0.55);
  }
  22% {
    opacity: 1;
    transform: scale(0.75);
  }
  55% {
    transform: scale(0.9);
  }
  80% {
    transform: scale(1.06, 0.96);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
@keyframes osrs-score-reveal {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  65% {
    opacity: 1;
    transform: translateY(-2px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.audio-volume-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 10px;
  font: 23px var(--pixel);
  color: var(--gold);
}
#effects-volume {
  width: 100%;
  accent-color: #c1a35c;
  min-height: 36px;
  margin: 0 0 20px;
  cursor: pointer;
}
#volume-value {
  font: 700 25px var(--pixel);
  min-width: 60px;
  text-align: right;
}
@media (max-width: 370px) {
  .casket-scene {
    width: 270px;
    height: 230px;
  }
  .osrs-reward-tray {
    grid-template-columns: repeat(5, 39px);
    gap: 5px;
    padding: 12px 8px 9px;
  }
  .reward-slot {
    width: 39px;
  }
}

.record-archive summary {
  cursor: pointer;
  font: 22px var(--pixel);
  color: var(--gold);
}
.cell-hint {
  padding: 9px 11px;
  border: 1px solid #75603e;
  background: #382f20;
  font: 18px/1.3 var(--pixel);
  color: #edd093;
  margin: 9px 0;
}
.grid-cell:disabled {
  opacity: 1;
  cursor: default;
}
.grid-cell.cell-closed {
  background: #30231d;
  color: #c49a83;
  border-color: #705243;
}
.grid-cell.cell-closed small {
  color: #b49783;
}

/* Archive uses the same inset stone panels as the game. */
.archive-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--edge);
  background: var(--inner);
  padding: 10px 16px;
  margin-bottom: 18px;
  color: var(--cream);
  font-size: 12px;
}
.archive-banner .text-button {
  white-space: nowrap;
}
.archive-list {
  display: grid;
  gap: 8px;
  margin: 20px 0;
}
.archive-entry {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px;
  background: #27231c;
  border: 1px solid #65563f;
  text-align: left;
}
.archive-entry > span {
  font: 22px var(--pixel);
  color: var(--gold);
}
.archive-entry small {
  font-size: 11px;
  color: var(--muted);
}
.archive-empty {
  padding: 20px 0;
}
.game-layout:has(.trail-panel[hidden]) {
  grid-template-columns: minmax(0, 640px);
  justify-content: center;
}
@media (max-width: 740px) {
  .topbar nav {
    gap: 16px;
  }
  .archive-banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 12px;
    gap: 0;
  }
  .archive-entry {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

/* Short, contextual motion; surfaces and the mobile answer dock stay anchored. */
.button,
.nav-button,
.text-button,
.sound-button,
.icon-button,
.hud-utilities button,
.archive-entry {
  transition:
    filter 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 120ms ease;
}
.trail-item {
  transition:
    background-color 160ms ease,
    border-color 160ms ease;
}
.trail-icon {
  transition: transform 160ms ease;
}
.button:enabled:active,
.sound-button:enabled:active,
.icon-button:enabled:active,
.hud-utilities button:enabled:active {
  transform: translateY(1px);
}
.grid-cell,
.impostor-option {
  transition:
    border-color 150ms ease,
    background-color 150ms ease,
    box-shadow 150ms ease;
}
.gem {
  transition:
    background-color 180ms ease,
    border-color 180ms ease;
}
.timer-rail span {
  transition:
    transform 250ms linear,
    background-color 200ms ease;
}
.run-clock {
  transition: border-color 200ms ease;
}
.casket-glow {
  opacity: 0.5;
  transition: opacity 300ms ease;
}
.casket-ready .casket-glow {
  opacity: 1;
  background: radial-gradient(ellipse, #d5ad4b45, transparent 68%);
}
.casket-ready #results-button {
  border-color: #ceb46e;
  box-shadow:
    inset 0 1px #b0a669,
    inset 0 -2px #302e1c,
    0 2px #15100c,
    0 0 12px #d2ad4820;
}
dialog[open] {
  animation: dialog-arrive 180ms ease-out;
}
dialog[open]::backdrop {
  animation: backdrop-arrive 180ms ease-out;
}
.autocomplete-panel:not([hidden]) {
  animation: menu-arrive 120ms ease-out;
}
#toast {
  transition:
    opacity 180ms ease,
    transform 180ms ease;
  transform: translate(-50%, 4px);
}
#toast.visible {
  transform: translate(-50%, 0);
}
.casket-opening .reward-slot {
  animation: reward-arrive 260ms ease-out calc(1050ms + var(--casket-delay, 0ms)) both;
}
.casket-opening .reward-slot:nth-child(2) {
  animation-delay: calc(1100ms + var(--casket-delay, 0ms));
}
.casket-opening .reward-slot:nth-child(3) {
  animation-delay: calc(1150ms + var(--casket-delay, 0ms));
}
.casket-opening .reward-slot:nth-child(4) {
  animation-delay: calc(1200ms + var(--casket-delay, 0ms));
}
.casket-opening .reward-slot:nth-child(5) {
  animation-delay: calc(1250ms + var(--casket-delay, 0ms));
}
@media (hover: hover) and (pointer: fine) {
  .button:enabled:hover {
    transform: translateY(-1px);
  }
  .button:enabled:active {
    transform: translateY(1px);
  }
  .trail-item:hover .trail-icon {
    transform: translateY(-2px);
  }
  .grid-cell:enabled:hover,
  .impostor-option:enabled:hover {
    border-color: #c9aa68;
  }
}
@keyframes dialog-arrive {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes backdrop-arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes menu-arrive {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes reward-arrive {
  from {
    opacity: 0.3;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Anonymous daily comparison, shown only after a trail finishes. */
.comparison-card {
  margin: 0 0 24px;
  padding: 23px 20px 17px;
  text-align: center;
  border: 1px solid #857044;
  background: radial-gradient(ellipse at 50% 0, #b99c3920, transparent 75%), #272319;
  box-shadow: inset 0 0 0 3px #19160f;
}
.comparison-card .trial-kicker {
  font-size: 10px;
  color: #c4b087;
  margin-bottom: 10px;
}
.comparison-card h3 {
  font: 700 38px/1.15 var(--pixel);
  color: #f4d889;
  text-shadow: 1px 2px #000;
  margin: 0 0 9px;
}
.comparison-card > p:not(.trial-kicker) {
  font-size: 12px;
  line-height: 1.7;
  color: #c8b99c;
  margin: 0 auto;
  max-width: 330px;
}
.comparison-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 20px 0 15px;
  padding: 15px 0;
  border-top: 1px solid #58482e;
  border-bottom: 1px solid #58482e;
}
.comparison-stats > div + div {
  border-left: 1px solid #58482e;
}
.comparison-stats strong {
  display: block;
  font: 28px/1.2 var(--pixel);
  color: var(--cream);
}
.comparison-stats small {
  font: 15px var(--pixel);
  color: #ae9b7c;
}
.comparison-stats span {
  display: block;
  font-size: 10px;
  color: #bdab89;
  margin-top: 4px;
}
.comparison-method {
  font-size: 10px;
  color: #bcaa88;
  line-height: 1.7;
}
.comparison-method summary {
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.comparison-method p {
  margin: 10px 0 0;
  text-align: left;
}
.comparison-pending h3 {
  font-size: 28px;
}
.comparison-note {
  display: block;
  font-size: 10px;
  color: #baa57d;
  margin-top: 13px;
  line-height: 1.6;
}

.summary-outcome {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 400;
}

/* User-selectable motion support, including effects implemented in CSS. */
html[data-motion='reduce'] *,
html[data-motion='reduce'] *::before,
html[data-motion='reduce'] *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
@media (prefers-reduced-motion: reduce) {
  html:not([data-motion='full']) *,
  html:not([data-motion='full']) *::before,
  html:not([data-motion='full']) *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
#motion-preference {
  display: block;
  width: 100%;
  padding: 12px;
  margin: 12px 0;
  color: var(--cream);
  background: var(--panel);
  border: 1px solid var(--gold);
}
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #f7dc9e;
  outline-offset: 4px;
}

.hint-budget-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

/* Catalog artwork shares a quiet frame across search, guesses and answers. */
.npc-portrait,
.catalog-icon {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  overflow: hidden;
  vertical-align: middle;
  border: 1px solid #665134;
  border-radius: 4px;
  background: radial-gradient(ellipse at center, #493a27, #211c15);
  box-shadow: inset 0 0 0 1px #17130f;
}
.npc-silhouette {
  width: 26px;
  height: 26px;
  color: #9a845c;
}
.npc-portrait:has(.npc-portrait-image:not([hidden])) .npc-silhouette {
  visibility: hidden;
}
.npc-portrait .npc-portrait-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 3px;
  object-fit: contain;
  image-rendering: auto;
  filter: drop-shadow(0 1px 1px #000a);
}
.npc-portrait .npc-portrait-image[hidden] {
  display: none;
}
.autocomplete-panel [role='option'].catalog-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 8px;
}
.catalog-option > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.catalog-option .npc-portrait {
  width: 32px;
  height: 32px;
}
.grid-cell .npc-portrait {
  width: 24px;
  height: 24px;
}
.grid-monster-name {
  overflow-wrap: anywhere;
  line-height: 1.15;
}
@container monster-grid (max-width: 350px) {
  .grid-cell {
    height: 120px;
  }
}
@container monster-grid (min-width: 560px) {
  .grid-cell {
    height: 88px;
  }
  .grid-cell.filled {
    display: grid;
    grid-template-columns: 32px minmax(0, max-content);
    grid-template-rows: auto auto;
    align-content: center;
    column-gap: 10px;
    text-align: left;
  }
  .grid-cell .npc-portrait {
    grid-row: 1 / 3;
    width: 32px;
    height: 32px;
  }
}
.result-answer {
  display: flex;
  align-items: center;
  gap: 13px;
}
.result-answer .npc-portrait,
.result-answer .catalog-icon {
  width: 64px;
  height: 64px;
}
.guess-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.guess-chip .npc-portrait,
.guess-chip .catalog-icon {
  width: 24px;
  height: 24px;
}
.grid-solution {
  margin-top: 16px;
}
.solution-monsters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 10px 0;
}
.solution-monster {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  line-height: 1.35;
}
.solution-monster > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
.solution-monster .npc-portrait {
  width: 32px;
  height: 32px;
}
.result-box .solution-order {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.catalog-option .catalog-icon {
  width: 40px;
  height: 36px;
}
.item-silhouette {
  width: 28px;
  height: 25px;
  color: #9a845c;
}
.item-icon:has(.item-icon-image:not([hidden])) .item-silhouette {
  visibility: hidden;
}
.item-sprite {
  position: absolute;
  width: 36px;
  height: 32px;
  overflow: hidden;
}
.item-icon .item-icon-image {
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: none;
  image-rendering: pixelated;
}
.item-atlas .item-icon-image {
  width: 3200%;
  height: 3200%;
  left: calc(-100% * var(--item-x));
  top: calc(-100% * var(--item-y));
}
.item-icon .item-icon-image[hidden] {
  display: none;
}
.result-answer .item-sprite {
  width: 54px;
  height: 48px;
}
.guess-chip .item-sprite {
  width: 22px;
  height: 19.5556px;
}
.quest-icon svg {
  width: 85%;
  height: 85%;
}
.result-answer > span:last-child,
.guess-chip > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}
