html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
/* A second way to visit. All game styles are scoped to the alternate mode. */
[hidden] {
  display: none !important;
}
.sf-toggle {
  position: fixed;
  top: 22px;
  right: 24px;
  z-index: 110;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid #7d816e;
  border-radius: 4px;
  background: #f7f3e8;
  box-shadow: 0 3px 12px #283a2520;
  color: #354b40;
  cursor: pointer;
  font:
    600 14px Georgia,
    serif;
  letter-spacing: 0.2px;
}
.sf-toggle:hover {
  background: #fff9e9;
  border-color: #4c6956;
}
.sf-toggle-icon {
  font:
    25px/18px Georgia,
    serif;
  color: #6b805e;
}
.sf-switch {
  width: 27px;
  height: 14px;
  border-radius: 10px;
  background: #c5c5b5;
  padding: 2px;
  box-sizing: border-box;
}
.sf-switch::after {
  content: '';
  display: block;
  background: #fff9e9;
  height: 10px;
  width: 10px;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 2px #26372a40;
}
.sf-toggle[aria-pressed='true'] .sf-switch {
  background: #5c7b5e;
}
.sf-toggle[aria-pressed='true'] .sf-switch::after {
  transform: translateX(13px);
}
body.sf-mode {
  overflow: hidden;
  overscroll-behavior: none;
}
body.sf-mode > .maintable {
  visibility: hidden;
}
#sf-world {
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  color: #35483d;
  background: #a4b5a5;
  font:
    15px/1.4 Georgia,
    'Times New Roman',
    serif;
  --sf-paper: #f3eddc;
  --sf-ink: #35483d;
  --sf-muted: #7a7e68;
  --sf-line: #9da185;
  --sf-hud-inset-x: 24px;
  --sf-hud-inset-y: 22px;
}
#sf-world *,
.sf-toggle {
  box-sizing: border-box;
}
#sf-world button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
#sf-world button:disabled {
  opacity: 0.4;
  cursor: default;
}
#sf-world canvas {
  cursor: default !important;
}
#sf-world button:focus-visible,
.sf-toggle:focus-visible,
#sf-world a:focus-visible {
  outline: 3px solid #a66b3e;
  outline-offset: 3px;
}
#sf-canvas {
  position: absolute;
  inset: 0;
  display: block;
  touch-action: none;
  outline: none;
  cursor: default;
}
.sf-actor-labels {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  pointer-events: none;
}
.sf-ground-items {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  overflow: hidden;
  pointer-events: none;
}
#sf-world[data-show-ground-items] .sf-ground-items {
  display: block;
}
#sf-world .sf-ground-items button {
  position: absolute;
  transform: translate(-50%, -100%);
  padding: 3px 8px;
  border: 1px solid #ec998c;
  background: #5b241ff2;
  color: #fff1d4;
  font:
    bold 12px Tahoma,
    sans-serif;
  white-space: nowrap;
  pointer-events: auto;
}
#sf-world .sf-ground-items button:hover,
#sf-world .sf-ground-items button:focus-visible,
#sf-world[data-show-ground-items] .sf-hover[data-ground-take],
#sf-world[data-show-ground-items]
  .sf-context
  button:is([data-action-id='interaction.10'], [data-action-id='interaction.16']) {
  background: #8f3029;
  color: #fff1d4;
}
.sf-place-markers {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}
.sf-click-marker {
  position: absolute;
  z-index: 26;
  width: 18px;
  height: 18px;
  color: #ffe15a;
  pointer-events: none;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 1px 1px #302815);
}
.sf-click-marker[data-accepted='false'] {
  color: #ef6251;
}
.sf-click-marker::before,
.sf-click-marker::after {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transform: rotate(45deg);
}
.sf-click-marker::after {
  transform: rotate(-45deg);
}
#sf-world .sf-place-marker {
  position: absolute;
  pointer-events: auto;
  width: 25px;
  height: 25px;
  padding: 4px;
  transform: translate(-50%, -100%);
  border: 1px solid var(--sf-place-color);
  border-radius: 50%;
  background: #28281fe8;
  color: var(--sf-place-color);
  box-shadow:
    0 0 10px var(--sf-place-color),
    inset 0 0 0 2px #161d1b;
  cursor: default;
}
.sf-place-marker svg {
  display: block;
  width: 100%;
  height: 100%;
}
#sf-world .sf-place-marker:hover,
#sf-world .sf-place-marker:focus-visible {
  background: #424232;
  box-shadow:
    0 0 15px var(--sf-place-color),
    inset 0 0 0 2px #161d1b;
}
.sf-map-panel,
.sf-bottom-bar {
  z-index: 6;
}
.sf-icon-legend {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 14px;
  margin: 14px 0 22px;
}
.sf-legend-item {
  display: flex;
  gap: 9px;
  align-items: center;
  min-width: 0;
}
.sf-legend-icon {
  flex: 0 0 25px;
  width: 25px;
  height: 25px;
  padding: 3px;
  border: 1px solid var(--sf-place-color);
  border-radius: 50%;
  color: var(--sf-place-color);
  background: #28281f;
  filter: drop-shadow(0 0 3px var(--sf-place-color));
}
.sf-legend-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}
#sf-world .sf-legend-item strong {
  display: block;
  font:
    600 12px Tahoma,
    sans-serif;
  color: #f4e1b4;
}
#sf-world .sf-legend-item small {
  display: block;
  margin-top: 2px;
  font:
    10px/1.4 Tahoma,
    sans-serif;
  color: #c8b996;
}
#sf-world .sf-help h3 {
  font:
    600 13px Tahoma,
    sans-serif;
  color: #f1d48e;
  margin: 20px 0 9px;
  padding-bottom: 7px;
  border-bottom: 1px solid #8b7853;
}
.sf-actor-label {
  position: absolute;
  transform: translate(-50%, -100%);
  color: #ffe59b;
  font:
    11px Tahoma,
    sans-serif;
  white-space: nowrap;
  text-align: center;
  text-shadow:
    1px 1px 2px #171b15,
    -1px -1px 2px #171b15;
}
.sf-actor-label .sf-speech {
  display: block;
  max-width: 220px;
  white-space: normal;
  color: #fff9dc;
  margin-bottom: 5px;
}
.sf-actor-label .sf-event-speech {
  color: #ffe59b;
  font-size: 14px;
}
.sf-actor-label [hidden] {
  display: none !important;
}
.sf-police-arrow {
  display: block;
  color: #ff3232;
  font-size: 23px;
  line-height: 25px;
  animation: sf-police-blink 0.65s steps(2, jump-none) infinite;
}
@keyframes sf-police-blink {
  to {
    opacity: 0.18;
  }
}
.sf-custody {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 24px;
  transform: translateX(-50%);
  padding: 13px 24px;
  background: #292c26ec;
  border: 2px solid #9d8b60;
  color: #f2e4be;
  text-align: center;
  pointer-events: none;
}
.sf-custody strong {
  display: block;
  font:
    bold 19px Georgia,
    serif;
}
.sf-custody span {
  display: block;
  margin-top: 5px;
  font:
    11px Tahoma,
    sans-serif;
}
.sf-wanted {
  position: absolute;
  z-index: 5;
  top: 70px;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 12px;
  color: #ffd1b1;
  background: #582e29e8;
  border: 1px solid #c07a5b;
  font:
    bold 11px Tahoma,
    sans-serif;
  pointer-events: none;
}
#sf-wanted-countdown {
  font-variant-numeric: tabular-nums;
}
@media (prefers-reduced-motion: reduce) {
  .sf-police-arrow {
    animation: none;
  }
}
.sf-eyebrow {
  font:
    10px/1.4 'Courier New',
    monospace;
  letter-spacing: 1.4px;
  font-weight: 600;
}
.sf-live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #66866a;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #738c6720;
  flex-shrink: 0;
}
.sf-map-panel {
  position: absolute;
  top: max(var(--sf-hud-inset-y), env(safe-area-inset-top));
  right: var(--sf-hud-inset-x);
  display: grid;
  grid-template-columns: auto auto;
  align-items: start;
  gap: 6px;
  padding: 11px;
  border: 1px solid #8e9278;
  background: #ece9d5ee;
  box-shadow:
    0 3px 12px #2f473017,
    inset 0 0 0 3px #f8f1da70;
}
#sf-minimap {
  display: block;
  width: 184px;
  height: 154px;
  border: 1px solid #acaf91;
}
.sf-hover {
  position: absolute;
  z-index: 4;
  pointer-events: none;
  background: #2f433bef;
  color: #f3e9cb;
  border: 1px solid #a5ab86;
  box-shadow: 2px 3px 0 #2f433b22;
  padding: 6px 10px;
  font:
    11px 'Courier New',
    monospace;
}
.sf-context {
  position: absolute;
  min-width: min(210px, calc(100% - 24px));
  max-width: calc(100% - 24px);
  max-height: calc(100% - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  z-index: 25;
  padding: 4px;
  background: #ede6cc;
  border: 2px solid #5b6650;
  outline: 1px solid #c6bb94;
  box-shadow: 4px 4px 0 #334d3540;
}
.sf-context-title {
  background: #4c5b46;
  color: #f1dfad;
  padding: 7px 10px;
  font:
    600 12px 'Courier New',
    monospace;
  margin-bottom: 3px;
}
#sf-world .sf-context button {
  width: 100%;
  display: block;
  text-align: left;
  background: none;
  border: 0;
  padding: 8px 10px;
  font:
    13px Georgia,
    serif;
}
#sf-world .sf-context button:hover,
#sf-world .sf-context button:focus-visible {
  background: #c9c5a6;
  outline-offset: -2px;
}
.sf-bottom-bar {
  position: absolute;
  bottom: max(var(--sf-hud-inset-y), env(safe-area-inset-bottom));
  left: var(--sf-hud-inset-x);
  right: var(--sf-hud-inset-x);
  display: flex;
  align-items: flex-end;
  gap: 24px;
  pointer-events: none;
}
.sf-bottom-bar > * {
  pointer-events: auto;
}
.sf-journal {
  width: 630px;
  max-width: calc(100vw - 350px);
  padding: 12px 16px;
  background: #efead7ee;
  border: 1px solid #92987b;
  box-shadow:
    inset 0 0 0 3px #f9f1d680,
    0 4px 15px #34472d10;
}
#sf-log {
  height: 98px;
  max-height: 98px;
  overflow: auto;
  font-size: 11px;
  line-height: 1.6;
  scrollbar-width: thin;
}
#sf-log time {
  color: #8c6c46;
  padding-right: 4px;
  font-style: italic;
}
.sf-zoom {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.sf-zoom-control {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: 0 4px;
}
.sf-zoom-ends {
  display: flex;
  justify-content: space-between;
  font:
    9px Tahoma,
    sans-serif;
}
#sf-zoom-slider {
  display: block;
  width: 100%;
  min-width: 0;
  height: 22px;
  margin: 0;
  accent-color: #dec27d;
  cursor: ew-resize;
}
#sf-zoom-slider:focus-visible {
  outline: 2px solid #ffe09a;
  outline-offset: 2px;
}
#sf-world .sf-zoom button {
  border: 0;
  background: none;
  width: 33px;
  height: 35px;
  font-size: 19px;
}
#sf-world .sf-zoom button {
  flex-shrink: 0;
}
#sf-world .sf-zoom button:hover {
  background: #dcdcc0;
}
.sf-key {
  border: 1px solid #9ba78160;
  padding: 1px 4px;
  color: #b3bf9b;
  font:
    9px 'Courier New',
    monospace;
}
.sf-reader-shade {
  position: absolute;
  inset: 0;
  background: #223e313b;
  backdrop-filter: blur(2px);
  z-index: 29;
}
.sf-reader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(650px, calc(100% - 40px));
  max-height: calc(100dvh - 135px);
  overflow: auto;
  background: #f6f0df;
  padding: 28px 34px 0;
  border: 1px solid #7f896c;
  box-shadow:
    0 15px 80px #233c3a44,
    inset 0 0 0 5px #dfdcc15c;
  z-index: 31;
  scrollbar-width: thin;
  scrollbar-color: #a5ad8b #ebe7d0;
}
.sf-reader-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.sf-reader-top .sf-eyebrow {
  color: #83906f;
  font-size: 9px;
}
#sf-world .sf-reader-top button {
  font-size: 26px;
  line-height: 1;
  background: none;
  border: none;
  padding: 0 0 6px 10px;
}
.sf-reader h2 {
  font-weight: 400;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: -1px;
  margin: 10px 0 12px;
}
#sf-world .sf-reader-description {
  font-size: 16px;
  line-height: 1.5;
  color: #7f836a;
  padding-bottom: 22px;
  margin: 0 0 20px;
  border-bottom: 1px solid #ccc8ac;
  text-align: left;
}
#sf-reader-content {
  font-size: 17px;
  line-height: 1.5;
}
#sf-reader-content p {
  text-align: left;
  line-height: 1.5;
}
#sf-reader-content ul {
  margin: 10px 0 24px;
  padding-left: 19px;
}
#sf-reader-content li {
  padding: 5px 0 5px 4px;
}
#sf-reader-content li::marker {
  color: #a6ad87;
  font-size: 10px;
}
#sf-reader-content a {
  color: #395f55;
  font-weight: 400;
  text-decoration: underline;
  text-decoration-color: #c6ceb3;
  text-underline-offset: 3px;
}
#sf-reader-content a:hover {
  color: #9b6945;
  text-decoration-color: #9b6945;
}
#sf-reader-content .yspace {
  color: #92947a;
  font:
    11px 'Courier New',
    monospace;
  margin: 25px 0 6px;
  letter-spacing: 1.5px;
}
#sf-reader-content .bio-content {
  margin-bottom: 20px;
}
.sf-contact {
  border-top: 1px solid #d9d2b9;
  padding: 15px 0 10px;
}
.sf-reader-footer {
  display: flex;
  justify-content: space-between;
  padding: 15px 0;
  margin-top: 25px;
  border-top: 1px solid #d3cdb3;
  color: #8a8e76;
  font:
    9px 'Courier New',
    monospace;
}
.sf-help {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #f2edd9;
  width: min(455px, calc(100% - 32px));
  max-height: calc(100dvh - 140px);
  overflow: auto;
  padding: 32px;
  border: 1px solid #8d9778;
  box-shadow:
    0 12px 50px #213c3233,
    inset 0 0 0 4px #fffae566;
  z-index: 32;
}
.sf-help h2 {
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.7px;
  margin: 10px 0;
}
#sf-world .sf-help p {
  text-align: left;
  font-size: 14px;
  color: #7a826b;
  line-height: 1.6;
}
.sf-help dl {
  display: grid;
  grid-template-columns: 1fr 1.45fr;
  gap: 12px 10px;
  padding: 18px 0;
  border-top: 1px solid #c9c8ac;
  border-bottom: 1px solid #c9c8ac;
  font-size: 12px;
}
.sf-help dt {
  color: #4c644e;
}
.sf-help dd {
  margin: 0;
  color: #8a8c73;
}
#sf-world .sf-help .sf-help-note {
  font-size: 11px;
}
#sf-world .sf-primary {
  width: 100%;
  background: #47624d;
  color: #f5eacb;
  border: 1px solid #657b58;
  padding: 12px;
  margin-top: 8px;
}
.sf-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 1050px) {
  .sf-journal {
    width: 495px;
  }
}
@media (max-width: 760px) {
  #sf-world {
    --sf-hud-inset-x: 16px;
    --sf-hud-inset-y: 16px;
  }
  .sf-custody {
    top: 56px;
    left: 16px;
    right: 16px;
    transform: none;
    padding: 6px 12px;
  }
  .sf-custody strong {
    font-size: 16px;
  }
  .sf-custody span {
    margin-top: 3px;
    line-height: 1.3;
  }
  .sf-wanted {
    top: 67px;
    left: 16px;
    transform: none;
    max-width: calc(100% - 70px);
  }
  .sf-toggle {
    top: 17px;
    right: 16px;
    padding: 8px 10px;
    font-size: 12px;
    gap: 7px;
  }
  .sf-toggle-icon {
    display: none;
  }
  .sf-map-panel {
    padding: 7px;
  }
  #sf-minimap {
    width: 120px;
    height: 101px;
  }
  .sf-bottom-bar {
    gap: 8px;
  }
  .sf-journal {
    position: absolute;
    bottom: 60px;
    left: 0;
    width: min(330px, calc(100vw - 32px));
    padding: 9px 12px;
  }
  #sf-log {
    max-height: 35px;
    font-size: 10px;
  }
  .sf-reader {
    padding: 20px 23px 0;
    max-height: calc(100dvh - 125px);
    top: calc(50% + 13px);
  }
  .sf-reader h2 {
    font-size: 31px;
  }
  #sf-reader-content {
    font-size: 16px;
  }
  .sf-reader-footer {
    font-size: 8px;
    gap: 10px;
  }
  .sf-help {
    padding: 25px;
    top: calc(50% + 15px);
    max-height: calc(100dvh - 125px);
  }
}
@media (max-width: 390px) {
  .sf-toggle {
    right: 12px;
    font-size: 11px;
  }
}
@media (max-height: 540px) and (min-width: 761px) {
  .sf-map-panel {
    transform: scale(0.75);
    transform-origin: top right;
  }
  .sf-reader,
  .sf-help {
    max-height: calc(100dvh - 100px);
    top: calc(50% + 20px);
  }
  .sf-journal {
    width: 510px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sf-switch::after {
    transition: none;
  }
}

/* Old-school game chrome: stone bevels, timber, parchment, and gold lettering. */
#sf-world {
  color: #ede0b8;
  background: #456c72;
  font-family: Tahoma, Verdana, sans-serif;
}
html[data-sf-entry='explore'] .sf-toggle,
body.sf-mode .sf-toggle {
  display: none;
}
.sf-map-panel,
.sf-help {
  background: repeating-linear-gradient(105deg, #ffffff03 0 3px, #00000004 3px 6px), #554e3e;
  border: 3px solid;
  border-color: #a39370 #2e2a22 #2e2a22 #a39370;
  box-shadow:
    inset 0 0 0 1px #29271f,
    2px 3px 0 #1e231d55;
  color: #efdfb1;
}
#sf-minimap {
  border: 4px solid #2a2921;
  border-radius: 50%;
  width: 180px;
  height: 151px;
  image-rendering: pixelated;
  box-shadow: 0 0 0 1px #a38c60;
}
#sf-world .sf-map-button {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  width: 100%;
  color: #e8d59f;
}
#sf-world #sf-minimap {
  border-radius: 1px;
}
.sf-hover {
  background: #25251deb;
  border-color: #9d8b60;
  color: #ffff81;
  font-family: Tahoma, sans-serif;
  box-shadow: 1px 1px #171710;
}
.sf-context {
  background: #5a5244;
  border-color: #28271f;
  outline-color: #a39371;
  color: #f9ecce;
}
.sf-context-title {
  background: #26261f;
  color: #d0b882;
  font-family: Tahoma, sans-serif;
}
#sf-world .sf-context button {
  color: #fff;
  font:
    12px Tahoma,
    sans-serif;
  text-shadow: 1px 1px #221d16;
}
#sf-world .sf-action-verb {
  color: #fff;
}
#sf-world .sf-action-target[data-kind='npc'] {
  color: #ffff00;
}
#sf-world .sf-action-target[data-kind='item'] {
  color: #ffa99b;
}
#sf-world .sf-action-target[data-kind='personal-item'] {
  color: #8ecbff;
}
#sf-world .sf-action-target[data-kind='object'] {
  color: #49c3bf;
}
#sf-world .sf-context button:hover,
#sf-world .sf-context button:focus-visible {
  background: #74654b;
  color: #fff;
}
.sf-journal {
  background: #c4b48f;
  color: #332d23;
  border: 3px solid;
  border-color: #9f8f67 #3f382c #3f382c #9f8f67;
  box-shadow: inset 0 0 0 1px #e5d4ac;
}
#sf-log {
  font:
    13px/1.45 Tahoma,
    sans-serif;
}
#sf-log time {
  color: #79502c;
}
#sf-world .sf-bike-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 43px;
  padding: 0 12px;
  white-space: nowrap;
  background: #66553a;
  color: #ffe29b;
  border: 3px solid;
  border-color: #b29b69 #30291f #30291f #b29b69;
  box-shadow: inset 0 0 0 1px #473b29;
  text-shadow: 1px 1px #262016;
  font-size: 12px;
}
#sf-world .sf-bike-button:hover {
  background: #7b6542;
}
#sf-world .sf-bike-button[aria-pressed='true'] {
  background: #405b3b;
  border-top-color: #a3b67a;
  color: #e1efab;
}
.sf-reader {
  top: 118px;
  bottom: 158px;
  left: 24px;
  transform: none;
  width: min(380px, calc(50% - 36px));
  max-height: none;
  padding: 20px 24px 0;
  background: #ded0a7;
  color: #3f3324;
  border: 3px solid;
  border-color: #b5a275 #524631 #524631 #b5a275;
  box-shadow:
    inset 0 0 0 2px #f0e1b9,
    3px 3px 0 #18221944;
  scrollbar-color: #8b7651 #cabb93;
}
.sf-reader h2 {
  font-size: 27px;
  letter-spacing: -0.5px;
}
.sf-reader-top .sf-eyebrow {
  color: #806a41;
  font-size: 8px;
}
#sf-world .sf-reader-description {
  font:
    13px/1.5 Tahoma,
    sans-serif;
  color: #74603e;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-color: #b7a57b;
}
#sf-reader-content {
  font:
    15px/1.55 Georgia,
    serif;
}
#sf-reader-content p {
  line-height: 1.55;
}
#sf-reader-content li {
  padding-top: 4px;
  padding-bottom: 4px;
}
#sf-reader-content a {
  color: #5d421d;
  text-decoration-color: #ae9667;
}
#sf-reader-content a:hover {
  color: #8f3b1f;
}
#sf-reader-content .yspace {
  color: #806d44;
}
.sf-reader-footer {
  border-color: #b3a178;
  color: #7f6b47;
  font-size: 8px;
  gap: 10px;
}
.sf-reader-shade {
  background: #171d1580;
  backdrop-filter: none;
}
#sf-world .sf-help p,
#sf-world .sf-help .sf-help-note,
.sf-help dd {
  color: #d0bf99;
}
.sf-help dt {
  color: #f1d48e;
}
.sf-help dl {
  border-color: #8b7853;
}
#sf-world .sf-primary {
  background: #77623e;
  color: #ffe7a4;
  border: 3px outset #a68b58;
}
@media (max-width: 760px) {
  .sf-actions .sf-key {
    display: none;
  }
  #sf-world .sf-bike-button {
    padding: 0 9px;
    font-size: 11px;
    gap: 6px;
  }
  #sf-world .sf-zoom button {
    width: 29px;
  }
  #sf-minimap {
    width: 116px;
    height: 98px;
    border-width: 3px;
  }
  .sf-reader {
    top: auto;
    bottom: 76px;
    left: 16px;
    width: calc(100% - 32px);
    height: 32dvh;
    max-height: min(280px, calc(50dvh - 100px));
    padding: 12px 18px 0;
  }
  .sf-reader h2 {
    font-size: 23px;
    margin: 4px 0 8px;
  }
  #sf-world .sf-reader-description {
    font-size: 12px;
    margin-bottom: 10px;
    padding-bottom: 10px;
  }
  #sf-reader-content {
    font-size: 15px;
  }
  .sf-reading .sf-journal {
    display: none;
  }
}

/* Compact exploration controls share one card in the bottom-right corner. */
.sf-side-hud {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
  margin-left: auto;
  pointer-events: none;
}
.sf-side-hud > * {
  pointer-events: auto;
}
.sf-actions {
  max-height: calc(100dvh - 120px);
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 8px;
  width: 286px;
  min-width: 0;
  padding: 10px;
  background: repeating-linear-gradient(105deg, #ffffff03 0 3px, #00000004 3px 6px), #554e3e;
  border: 3px solid;
  border-color: #a39370 #2e2a22 #2e2a22 #a39370;
  box-shadow:
    inset 0 0 0 1px #29271f,
    2px 3px 0 #1e231d55;
}
.sf-you,
.sf-high-scores {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.sf-you {
  display: grid;
  gap: 8px;
}
.sf-travel-controls {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.sf-quick-actions,
.sf-action-choices {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
#sf-world .sf-quick-actions [aria-expanded='true'] {
  background: #74654b;
}
.sf-quick-actions [aria-expanded]:not([data-sitting])::after {
  content: '▾';
}
.sf-quick-actions [aria-expanded='true']::after {
  content: '▴';
}
.sf-action-choices {
  padding: 5px;
  background: #302b22;
}
.sf-speech-controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.sf-atv-controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.sf-atv-controls[hidden] {
  display: none;
}
.sf-atv-controls button:last-child {
  grid-column: 1 / -1;
}
.sf-vehicle-tricks {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.sf-vehicle-tricks[hidden] {
  display: none;
}
.sf-vehicle-tricks .sf-bike-button {
  padding-inline: 3px;
  font-size: 11px;
}
#sf-world .sf-actions .sf-bike-button {
  min-width: 0;
  height: 34px;
  padding: 0 8px;
  font-size: 11px;
  gap: 6px;
}
#sf-climb-button {
  grid-column: 1 / -1;
}
#sf-say-button .sf-key {
  display: inline-block;
}
.sf-purse {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  color: #f0d79c;
  font:
    11px Tahoma,
    sans-serif;
  padding-bottom: 6px;
  border-bottom: 1px solid #a3937060;
}
.sf-purse strong {
  color: #ffe29a;
}
.sf-strength {
  display: grid;
  gap: 4px;
  color: #e7d4a6;
  font:
    11px Tahoma,
    sans-serif;
}
.sf-fuel-card {
  padding: 7px;
  background: #343e3c;
  border: 1px solid #8c947b;
  color: #e8dfba;
  font:
    11px Tahoma,
    sans-serif;
}
.sf-fuel-card label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 5px;
}
.sf-fuel-card meter {
  width: 100%;
  height: 12px;
}
.sf-fuel-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 6px;
}
#sf-world .sf-fuel-card button {
  font:
    10px Tahoma,
    sans-serif;
  padding: 5px;
  background: #736346;
  border: 1px solid #b29b6b;
  color: #ffedbf;
}
#sf-inventory {
  color: #d4c7a4;
  font-size: 10px;
}
#sf-rope-button,
#sf-ski-button {
  grid-column: 1 / -1;
}
.sf-dialogue {
  display: flex;
  gap: 18px;
  align-items: center;
  min-height: 148px;
  max-height: min(55vh, 420px);
  padding: 8px 0;
  overflow-y: auto;
}
.sf-reader[data-lore] .sf-reader-footer {
  display: none;
}
#sf-reader-content[data-format='torn-invoice'] p {
  min-height: 190px;
  padding: 28px 24px 72px;
  background: #f2e9ce;
  color: #354039;
  font:
    bold 25px/1.3 Georgia,
    serif;
  clip-path: polygon(
    0 0,
    100% 0,
    100% 91%,
    94% 95%,
    88% 90%,
    82% 97%,
    73% 92%,
    65% 100%,
    56% 91%,
    46% 96%,
    36% 90%,
    25% 98%,
    15% 92%,
    6% 96%,
    0 91%
  );
}
.sf-dialogue[hidden] {
  display: none;
}
.sf-chat-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 84px;
  width: 84px;
  align-self: center;
}
.sf-chat-name {
  width: 100%;
  color: #684526;
  text-align: center;
  font:
    bold 13px/1.35 Tahoma,
    sans-serif;
  overflow-wrap: anywhere;
}
.sf-chat-portrait {
  box-sizing: border-box;
  width: 80px;
  padding: 3px;
  border: 1px solid #9f8f67;
  background: #dfceaa;
}
.sf-chat-head svg {
  display: block;
  width: 100%;
  height: auto;
}
.sf-chat-copy {
  flex: 1;
  min-width: 0;
  font:
    15px/1.6 Tahoma,
    sans-serif;
}
.sf-chat-copy strong {
  color: #794523;
}
.sf-chat-copy p {
  margin: 0 0 14px;
}
.sf-chat-options {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
#sf-world .sf-chat-options button {
  box-sizing: border-box;
  min-height: 42px;
  min-width: 76px;
  max-width: 100%;
  padding: 9px 13px;
  background: #dfceaa;
  color: #3c3325;
  border: 2px outset #a89469;
  font:
    14px/1.45 Tahoma,
    sans-serif;
  text-align: left;
  cursor: pointer;
}
#sf-world .sf-chat-options button:focus-visible {
  outline: 2px solid #795922;
  outline-offset: 2px;
  background: #fff0bf;
}
.sf-dialogue[data-speaker='player'] .sf-chat-head {
  order: 2;
  flex-basis: 108px;
  width: 108px;
}
.sf-dialogue[data-speaker='player'] .sf-chat-name {
  font-size: 12px;
}
.sf-conversing #sf-log {
  display: none;
}
.sf-player-speech {
  position: absolute;
  z-index: 4;
  transform: translate(-50%, -100%);
  pointer-events: none;
  color: #fff9dc;
  font:
    14px Tahoma,
    sans-serif;
  white-space: nowrap;
  text-shadow:
    1px 1px 2px #171b15,
    -1px -1px 2px #171b15;
}
.sf-character {
  width: min(420px, calc(100% - 32px));
}
#sf-world .sf-character-close {
  position: absolute;
  right: 17px;
  top: 10px;
  background: none;
  border: 0;
  font-size: 26px;
}
.sf-character-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.sf-character-fields label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  font:
    12px Tahoma,
    sans-serif;
}
.sf-character-fields select {
  min-width: 0;
  max-width: 92px;
  background: #dfceaa;
  color: #332d23;
  border: 1px solid #8b7853;
  padding: 4px;
}
.sf-character-fields input[type='color'] {
  width: 44px;
  height: 28px;
  padding: 2px;
  border: 1px solid #8b7853;
  background: #dfceaa;
  cursor: pointer;
}
@media (max-width: 760px) {
  .sf-actions {
    width: 250px;
    padding: 8px;
  }
  .sf-bottom-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .sf-journal {
    position: static;
    width: min(495px, 100%);
    max-width: 100%;
  }
  #sf-log {
    height: 87px;
    max-height: 87px;
    font-size: 12px;
  }
  .sf-side-hud {
    justify-self: end;
    max-width: 100%;
  }
  .sf-dialogue {
    gap: 12px;
    min-height: 132px;
    max-height: min(52vh, 300px);
  }
  .sf-chat-head {
    flex-basis: 68px;
    width: 68px;
  }
  .sf-chat-portrait {
    width: 64px;
  }
  .sf-reader {
    bottom: 246px;
  }
}

.sf-quests {
  width: min(440px, calc(100% - 32px));
}
.sf-quest-card {
  margin: 14px 0;
  padding: 16px;
  background: #e4d6b7;
  border: 1px solid #a38b5c;
  text-align: left;
  color: #473b2b;
}
#sf-world .sf-quest-card h3 {
  margin: 5px 0 10px;
  padding: 0;
  border: 0;
  font:
    22px Georgia,
    serif;
  color: #624c32;
}
#sf-world .sf-quest-card p {
  font:
    14px/1.6 Tahoma,
    sans-serif;
  color: #473b2b;
}
.sf-quest-status {
  font:
    12px Tahoma,
    sans-serif;
  color: #876b43;
}
.sf-quest-card[data-stage='completed'] .sf-quest-status {
  color: #3c704d;
}
.sf-quest-card[data-stage='carrying'] .sf-quest-status {
  color: #925b21;
}
#sf-world .sf-quest-card .sf-quest-reward {
  color: #705322;
  font-weight: bold;
}
#sf-quests-button[data-quest='carrying'] {
  color: #ffe196;
}
#sf-quests-button[data-quest='completed'] {
  color: #bce0a5;
}
#sf-close-quests {
  position: absolute;
  right: 17px;
  top: 10px;
  background: none;
  border: 0;
  font-size: 26px;
}

#sf-world .sf-character-fields .sf-sunglasses-option {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
#sf-world .sf-sunglasses-option input {
  width: 16px;
  height: 16px;
  accent-color: #8ca477;
}
.sf-sunglasses-hint {
  grid-column: 1 / -1;
  font:
    11px/1.5 Tahoma,
    sans-serif;
  color: #d8c8a3;
}

#sf-world .sf-quest-card ul {
  margin: 10px 0;
  padding-left: 18px;
  color: #473b2b;
  font:
    14px/1.8 Tahoma,
    sans-serif;
}
.sf-purse > span:first-child {
  white-space: nowrap;
}
.sf-quest-inventory {
  display: block;
  flex-basis: 100%;
  max-width: 280px;
  color: #d3c49c;
  font:
    11px/1.5 Tahoma,
    sans-serif;
}
.sf-quest-inventory[hidden] {
  display: none;
}

/* Health and food share the compact exploration control card. */
.sf-hitpoints {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  font-size: 12px;
  color: #f1e1c3;
}
#sf-enemy-health {
  color: #edb39d;
}
.sf-food-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

/* The lab interview remains usable with a keyboard and a phone number pad. */
.sf-interview-layer {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 18px;
  background: #152324b8;
}
.sf-interview-layer[hidden] {
  display: none;
}
.sf-interview-card {
  box-sizing: border-box;
  width: min(540px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: 24px;
  background: #e5d9b9;
  color: #353a32;
  border: 3px solid;
  border-color: #a39370 #3f4035 #3f4035 #a39370;
  box-shadow: 0 15px 70px #12222988;
  font:
    14px/1.5 Tahoma,
    sans-serif;
}
.sf-interview-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: #5a6f6c;
}
.sf-interview-card h2 {
  font:
    28px Georgia,
    serif;
  margin: 18px 0 10px;
}
.sf-interview-stats {
  display: flex;
  justify-content: space-between;
  margin: 22px 0 12px;
  font-size: 15px;
}
.sf-interview-stats strong {
  font-variant-numeric: tabular-nums;
}
.sf-interview-equation {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  min-height: 110px;
  padding: 12px 0;
  font:
    clamp(24px, 5vw, 38px) Tahoma,
    sans-serif;
}
#sf-interview-answer {
  width: 115px;
  min-width: 0;
  box-sizing: border-box;
  padding: 9px 7px;
  border: 2px solid #8b997e;
  background: #f6f2df;
  color: #253f3e;
  font: inherit;
  text-align: center;
}
#sf-interview-answer[aria-invalid='true'] {
  border-color: #b17857;
}
#sf-interview-answer:focus-visible {
  outline: 3px solid #508e96;
  outline-offset: 3px;
}
.sf-interview-result {
  padding: 12px;
  background: #c5d3b7;
  border-left: 3px solid #658264;
}
.sf-interview-note {
  font-size: 12px;
  color: #667264;
  margin: 20px 0 0;
}
#sf-employment {
  color: #bce1d3;
}
.sf-wave-controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 5px;
  padding: 5px 0;
  border-top: 1px solid #b4a174;
}
.sf-wave-controls[hidden] {
  display: none;
}
.sf-actions:has(#sf-wave-controls:not([hidden])) {
  max-height: calc(100dvh - 320px);
}
#sf-wave-status {
  grid-column: 1 / -1;
  color: #eadfbc;
  font-size: 11px;
}

#sf-world .sf-character-fields .sf-hat-option {
  grid-column: 1 / -1;
  align-items: stretch;
}
#sf-world .sf-hat-option select {
  max-width: none;
  width: 100%;
}

/* Opt-in world commands and live map coordinates. */
.sf-debug,
.sf-command {
  position: fixed;
  z-index: 120;
  background: #3d3b30f5;
  color: #f1dfb7;
  border: 2px solid;
  border-color: #a39370 #29271f #29271f #a39370;
  box-shadow: 2px 3px 0 #17201966;
  font:
    12px/1.5 Tahoma,
    sans-serif;
}
.sf-debug {
  left: 16px;
  top: 16px;
  width: 220px;
  padding: 12px;
}
.sf-debug header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sf-debug header button {
  border: 0;
  background: none;
  color: #f1dfb7;
  font-size: 22px;
  line-height: 1;
  padding: 0 4px;
}
.sf-debug dl {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 3px 8px;
  margin: 8px 0;
  font:
    12px/1.5 ui-monospace,
    monospace;
}
.sf-debug dd {
  margin: 0;
  text-align: right;
  color: #d5e4bd;
  font-variant-numeric: tabular-nums;
}
.sf-debug p,
.sf-command p {
  margin: 6px 0 0;
  color: #cabb9a;
  font:
    11px/1.5 Tahoma,
    sans-serif;
}
.sf-debug > button,
.sf-command button {
  border: 1px solid #a39370;
  padding: 5px 9px;
  background: #645b47;
  color: #f1dfb7;
}
.sf-command {
  left: 16px;
  bottom: 112px;
  width: min(480px, calc(100% - 32px));
  padding: 12px;
  box-sizing: border-box;
}
.sf-command label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.sf-command > div {
  display: flex;
  gap: 6px;
}
#sf-command-input {
  flex: 1;
  min-width: 0;
  border: 1px solid #a39370;
  background: #242a25;
  color: #e5eacb;
  padding: 6px 8px;
  font:
    16px/1.4 ui-monospace,
    monospace;
  caret-color: #f4d68c;
}
.sf-command p[data-error='true'] {
  color: #efb8a4;
}
@media (max-width: 600px) {
  .sf-debug {
    top: 12px;
    left: 12px;
    width: 180px;
  }
  .sf-command {
    left: 12px;
    bottom: 120px;
    width: calc(100% - 24px);
  }
}

.sf-debug button,
.sf-command button {
  font: inherit;
  cursor: pointer;
}
.sf-debug button:focus-visible,
.sf-command button:focus-visible,
#sf-command-input:focus-visible {
  outline: 2px solid #dfc285;
  outline-offset: 2px;
}

.sf-combat-overlay {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 4;
}
.sf-combat-actor {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}
.sf-combat-bar {
  position: absolute;
  left: -26px;
  top: -5px;
  width: 52px;
  height: 7px;
  box-sizing: border-box;
  background: #ab292b;
  border: 1px solid #191c17;
}
.sf-combat-bar > span {
  display: block;
  height: 100%;
  background: #38c348;
  box-shadow: inset 0 1px #a7f19b88;
}
.sf-hitsplat {
  position: absolute;
  left: -14px;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  isolation: isolate;
  color: #fff;
  font:
    bold 15px/1 Tahoma,
    sans-serif;
  text-shadow:
    1px 1px #301017,
    -1px -1px #301017;
  filter: drop-shadow(0 1px 1px #000b);
}
.sf-hitsplat::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: #b91f29;
  box-shadow: inset 0 0 0 2px #e97a6b;
  clip-path: polygon(
    50% 0,
    62% 13%,
    80% 6%,
    84% 25%,
    100% 34%,
    89% 51%,
    98% 69%,
    80% 77%,
    73% 96%,
    54% 88%,
    37% 100%,
    27% 82%,
    7% 80%,
    13% 59%,
    0 44%,
    18% 32%,
    18% 12%,
    39% 17%
  );
}
.sf-hitsplat[data-other='true']::before {
  background: #6e2530;
  box-shadow: inset 0 0 0 2px #a45850;
}
.sf-hitsplat[data-other='true'][data-miss='true']::before {
  background: #263d64;
  box-shadow: inset 0 0 0 2px #56719c;
}
.sf-hitsplat[data-miss='true']::before {
  background: #335eaa;
  box-shadow: inset 0 0 0 2px #86b3ec;
}
@media (prefers-reduced-motion: reduce) {
  .sf-combat-actor {
    will-change: auto;
  }
}
.sf-username-form {
  margin: 12px 0 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #938261;
}
.sf-username-form > label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}
.sf-username-form > div {
  display: flex;
  gap: 8px;
}
.sf-username-form input {
  min-width: 0;
  flex: 1;
  width: 120px;
  padding: 7px;
  border: 1px solid #8d7d5e;
  background: #302f27;
  color: #f1dfb7;
  font:
    16px Tahoma,
    sans-serif;
}
.sf-username-form button {
  border: 1px solid #988969;
  background: #655d49;
  color: #f1dfb7;
  padding: 7px 10px;
  cursor: pointer;
}
.sf-username-form small {
  display: block;
  margin-top: 6px;
  color: #d5c5a3;
  font:
    11px/1.5 Tahoma,
    sans-serif;
}
.sf-username-form small[data-error='true'] {
  color: #f1a79a;
}
#sf-world .sf-username-form small {
  color: #655239;
}
#sf-world .sf-username-form small[data-error='true'] {
  color: #8a302a;
}
.sf-actor-label .sf-player-name {
  color: #c9e9f2;
  font-size: 11px;
}
.sf-pvp-option {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #987657;
  background: #4b3b3033;
}
.sf-pvp-option label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: bold;
}
.sf-pvp-option input {
  accent-color: #b95d47;
}
.sf-pvp-option small,
.sf-pvp-option p {
  display: block;
  margin: 6px 0 0;
  font:
    11px/1.5 Tahoma,
    sans-serif;
  color: #e2c4a2;
}
.sf-player-name[data-pvp='true'] {
  color: #f2a18c;
}
.sf-guild-status {
  margin: 10px 0;
  color: #e2d0a2;
  font:
    12px/1.5 Tahoma,
    sans-serif;
}
.sf-instance-level {
  display: block;
  grid-column: 1 / -1;
  padding: 4px 8px;
  color: #e2d4ac;
  background: #353d33;
  font:
    11px/1.4 Tahoma,
    sans-serif;
  text-align: center;
}
.sf-bomber-controls {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  padding: 6px;
  border: 1px solid #a99b73;
  background: #35433e;
}
.sf-bomber-controls > span {
  grid-column: 1 / -1;
  text-align: center;
  font:
    11px/1.5 Tahoma,
    sans-serif;
  color: #e7d5a5;
}
#sf-world .sf-bomber-controls .sf-bike-button {
  min-width: 0;
  padding: 3px;
  font-size: 11px;
  white-space: normal;
}
#sf-bomber-land {
  grid-column: 1 / -1;
}
.sf-loading {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: #fff;
  color: #222;
  outline: none;
  font:
    14px/1.5 Tahoma,
    sans-serif;
}
.sf-loading[hidden] {
  display: none !important;
}
.sf-server-required {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 20px;
  background: #263b3ae8;
  color: #efe4c5;
  font:
    14px/1.5 Tahoma,
    sans-serif;
}
.sf-server-required[hidden] {
  display: none !important;
}
.sf-server-required-card {
  width: min(390px, 100%);
  box-sizing: border-box;
  padding: 28px;
  border: 1px solid #a5ad90;
  background: #34483f;
  box-shadow: 0 12px 60px #12242280;
}
.sf-server-required h2 {
  margin: 0 0 12px;
  font:
    24px Georgia,
    serif;
}
.sf-server-required p {
  text-align: left;
}
.sf-server-required form {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}
.sf-server-required input {
  min-width: 0;
  padding: 10px;
  font:
    16px Tahoma,
    sans-serif;
  background: #263b32;
  border: 1px solid #a5ad90;
  color: #fff0c5;
}
.sf-server-required button {
  padding: 10px;
  border: 1px solid #a5ad90;
  background: #657b58;
  color: #fff0c5;
  cursor: pointer;
  font: inherit;
}
.sf-server-required a {
  color: #efe4c5;
}
.sf-loading-card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(420px, 100%);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  padding: 26px;
}
.sf-loading-card strong {
  font:
    22px Georgia,
    serif;
}
.sf-loading-card progress {
  width: 100%;
  height: 8px;
  accent-color: #454545;
}
.sf-loading-card small {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #8a302a;
}
.sf-loading-tips {
  align-self: stretch;
  margin: 0;
  padding-left: 18px;
  list-style: disc;
  text-align: left;
  font-size: 12px;
  line-height: 1.7;
  color: #555;
}
.sf-loading-illustration {
  display: grid;
  justify-items: center;
  align-self: stretch;
}
.sf-loading-npc {
  display: block;
  width: min(192px, 60vw);
  height: auto;
}
.sf-loading .sf-username-form small {
  color: #555;
}
.sf-loading .sf-username-form small[data-error='true'] {
  color: #8a302a;
}
.sf-loading :is(input, button:not([data-character-login-link])) {
  border: 1px solid #777;
  background: #fff;
  color: inherit;
}
.sf-loading :is(input, button):focus-visible {
  outline: 2px solid #222;
  outline-offset: 2px;
}
.sf-loading-username {
  align-self: stretch;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
}
.sf-loading-username input {
  width: 100%;
}
.sf-loading-username small {
  min-height: 2.8em;
  font-size: 12px;
}
.sf-loading-play {
  box-sizing: border-box;
  width: 100%;
  padding: 11px 18px;
  font:
    bold 16px Tahoma,
    sans-serif;
  cursor: pointer;
}
.sf-loading-play[hidden] {
  display: none;
}
[data-character-login-link] {
  padding: 3px 5px;
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
[data-character-login] {
  width: 100%;
}
[data-character-login][hidden] {
  display: none;
}
.sf-loading button:disabled {
  opacity: 0.55;
  cursor: default;
}
@media (max-height: 760px) {
  .sf-loading-card {
    gap: 10px;
    padding: 20px;
  }
  .sf-loading-npc {
    width: min(144px, 52vw);
  }
}
.sf-bank {
  box-sizing: border-box;
  width: min(420px, calc(100% - 24px));
  padding: clamp(12px, 4vw, 24px);
  scrollbar-gutter: stable;
}
.sf-bank-welcome {
  color: #e1dbb7;
  font:
    13px/1.6 Tahoma,
    sans-serif;
}
.sf-bank-balances {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.sf-bank-balances > div {
  min-width: 0;
  padding: clamp(7px, 2.5vw, 12px);
  border: 1px solid #88947b;
  background: #354b3c;
}
.sf-bank-balances dt {
  margin-bottom: 7px;
  font:
    11px Tahoma,
    sans-serif;
  color: #ccdbba;
}
.sf-bank-balances dd {
  margin: 0;
  font:
    15px Tahoma,
    sans-serif;
  color: #fff0b9;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow-x: auto;
}
.sf-bank-form > label {
  display: block;
  margin: 15px 0 6px;
  font:
    12px Tahoma,
    sans-serif;
}
.sf-bank-form input {
  box-sizing: border-box;
  width: 100%;
  padding: 10px;
  background: #303e32;
  color: #fff0c5;
  border: 1px solid #a6b28b;
  font:
    16px Tahoma,
    sans-serif;
}
.sf-bank-form > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 9px;
}
.sf-bank-form button {
  padding: 9px;
  color: #f7e4b1;
  background: #526c4c;
  border: 1px solid #9dac82;
  cursor: pointer;
}
.sf-bank-status {
  min-height: 3em;
  color: #dbe0ba;
  font:
    12px/1.5 Tahoma,
    sans-serif;
}
.sf-bank-status[data-error='true'] {
  color: #f3b5a0;
}

.sf-growth-ticker {
  grid-column: 1 / -1;
  padding: 7px;
  border: 1px solid #a18b5e;
  background: #3b4c42;
}
.sf-growth-ticker[hidden] {
  display: none;
}
.sf-growth-ticker strong,
.sf-growth-ticker span {
  display: block;
  font:
    11px/1.5 Tahoma,
    sans-serif;
}
.sf-market-up {
  color: #c1dfa3;
}
.sf-market-down {
  color: #efb4a3;
}
.sf-growth-ticker svg {
  display: block;
  width: 100%;
  height: 28px;
  margin-top: 4px;
}
.sf-growth-ticker polyline {
  fill: none;
  stroke: #d7c68d;
  stroke-width: 1.6;
}
.sf-duel form {
  display: grid;
  gap: 12px;
}
.sf-duel label {
  display: grid;
  gap: 5px;
}
.sf-duel input,
.sf-duel select {
  padding: 8px;
  background: #e3d4b1;
  color: #332c23;
  border: 1px solid #9e895c;
}
.sf-duel-flipping::before {
  content: '●';
  display: inline-block;
  margin-right: 10px;
  color: #edcc73;
  animation: sf-coin-flip 0.35s linear infinite;
}
@keyframes sf-coin-flip {
  50% {
    transform: scaleX(0.1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .sf-duel-flipping::before {
    animation: none;
  }
}

#sf-collection-list h3 {
  margin: 14px 0 6px;
}
#sf-collection-list ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  padding: 0;
  list-style: none;
  font:
    14px/1.45 Tahoma,
    sans-serif;
}
#sf-collection-list li {
  padding: 8px 10px;
  border: 1px solid #b9ac8e;
  background: #e5dcc5;
  color: #6e6d62;
}
#sf-collection-list li[data-found='true'] {
  color: #354e40;
  background: #e5ead0;
  border-color: #92a481;
}
.sf-strength label {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
}
.sf-strength progress {
  width: 100%;
  height: 8px;
  appearance: none;
  border: 0;
  background: #302a24;
  accent-color: #cbb373;
}
.sf-strength progress::-webkit-progress-bar {
  background: #302a24;
}
.sf-strength progress::-webkit-progress-value {
  background: #cbb373;
}
.sf-strength progress::-moz-progress-bar {
  background: #cbb373;
}
@media (max-width: 500px) {
  #sf-collection-list ul {
    grid-template-columns: 1fr;
  }
}

#sf-collection-list small {
  display: block;
  margin-top: 5px;
  font-size: 12px;
  line-height: 1.45;
  color: #62675b;
}
#sf-light-decorative-rocket {
  padding: 9px 12px;
  font:
    14px Tahoma,
    sans-serif;
}

/* Conversation controls need room for their focus outline. */
.sf-chat-options {
  padding: 3px 0 3px 3px;
}
.sf-chat-portrait {
  border: 0;
  background: transparent;
  padding: 0;
}
.sf-chat-portrait canvas {
  display: block;
  width: 100%;
  height: auto;
}
.sf-journal {
  min-height: 128px;
}
#sf-current-password-row[hidden] {
  display: none;
}
#sf-world #sf-character-save-status {
  display: block;
  color: #f0ddb0;
  margin: 6px 0;
}
#sf-character-save-status:empty {
  display: none !important;
}
#sf-equipment-hint {
  white-space: pre-line;
}

#sf-log {
  height: 122px;
  max-height: 122px;
}
@media (max-width: 600px) {
  #sf-log {
    height: 105px;
    max-height: 105px;
  }
}

.sf-map-layers {
  display: grid;
  gap: 4px;
}
#sf-world .sf-map-layers button {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 4px 7px;
  border: 1px solid #a7936c;
  background: #484332;
  color: #ecdfb9;
  font:
    11px Tahoma,
    sans-serif;
}
#sf-world .sf-map-layers button[aria-pressed='true'] {
  background: #ddc387;
  color: #342919;
}
#sf-world .sf-map-layers button span {
  width: 8px;
  height: 8px;
  border: 1px solid #2c2922;
  flex: none;
}
#sf-map-npcs span {
  background: #eddd72;
  border-radius: 50%;
}
#sf-map-shops span {
  background: #91e0d2;
}
#sf-map-tasks span {
  background: #ffc7ec;
  transform: rotate(45deg) scale(0.85);
}

.sf-action-tabs {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #ab936b;
  gap: 3px;
}
.sf-tablist {
  display: flex;
}
#sf-world .sf-tablist button,
#sf-world #sf-help-button {
  padding: 6px 7px;
  border: 1px solid transparent;
  background: transparent;
  color: #f1deb3;
  font-size: 11px;
  white-space: nowrap;
}
#sf-world .sf-action-tabs [role='tab'][aria-selected='true'] {
  background: #736448;
  border-color: transparent #9f895f #9f895f;
  color: #fff1c9;
}
#sf-world .sf-tablist button:hover,
#sf-world #sf-help-button:hover {
  color: #fff9df;
  background: #756348;
}
#sf-character-tabs {
  border-bottom: 1px solid #ab936b;
  margin-bottom: 12px;
}
#sf-world #sf-character-tabs [aria-selected='true'] {
  background: #736448;
  border-color: #9f895f #9f895f transparent;
}
.sf-online-count {
  color: #efdfb9;
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#sf-world .sf-tablets button {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 29px;
  padding: 4px 6px;
  background: linear-gradient(160deg, #895dc3, #452672);
  border: 1px solid #b893e1;
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 2px #381b5966,
    0 2px 3px #23123788;
  color: #fff0ff;
  font:
    11px Tahoma,
    sans-serif;
  text-align: left;
}
.sf-tablets button::before {
  content: '';
  flex: 0 0 10px;
  height: 14px;
  border: 1px solid #cdb0f4;
  border-radius: 2px;
  background: linear-gradient(135deg, #ebd6ff, #a275d8 55%, #5c3286);
  transform: rotate(12deg);
}
.sf-tablets button span {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
#sf-world .sf-tablets button:not(:disabled):hover {
  filter: brightness(1.18);
}
.sf-tablets button:disabled {
  opacity: 0.55;
}
.sf-rocket-ignition {
  display: grid;
  gap: 3px;
  text-align: center;
  color: #e7d4a6;
}
#sf-world #sf-light-decorative-rocket:disabled {
  background: #53514b;
  color: #c5c0b5;
}
.sf-high-scores ol {
  padding-inline-start: 1.55rem;
}
.sf-high-scores li {
  padding: 0.24rem 0;
  border-bottom: 1px solid #a595743c;
}
.sf-high-scores strong {
  float: right;
  margin-inline-start: 0.4rem;
}

#sf-world .sf-player-trade {
  box-sizing: border-box;
  inset: 0;
  width: min(94vw, 620px);
  max-height: 88dvh;
  margin: auto;
  padding: clamp(14px, 3vw, 25px);
  overflow: auto;
  color: #eee3c6;
  background: #494331;
  border: 3px solid;
  border-color: #bba47b #2b261a #2b261a #bba47b;
  box-shadow: 0 12px 42px #0009;
}
.sf-player-trade::backdrop {
  background: #11150ebb;
}
.sf-player-trade h2,
.sf-player-trade h3 {
  margin: 0 0 0.4rem;
}
.sf-trade-offers:not([hidden]) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.sf-trade-offers section {
  min-width: 0;
  padding: 10px;
  background: #292920;
  border: 1px solid #867754;
}
.sf-trade-offers small {
  color: #c7b990;
}
.sf-trade-offers ul {
  display: grid;
  gap: 5px;
  max-height: 28vh;
  overflow: auto;
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}
.sf-trade-offers li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 5px;
  overflow-wrap: anywhere;
}
.sf-trade-inventory:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(55px, 105px) auto;
  gap: 8px;
  align-items: end;
  margin-top: 14px;
}
.sf-trade-inventory label {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.sf-trade-inventory :is(input, select) {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
  padding: 4px;
}
.sf-trade-buttons {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.sf-trade-status:empty {
  display: none;
}
.sf-trade-status {
  color: #f0d7a5;
}
.sf-character-resources {
  color: #5c503b;
}
#sf-world .sf-player-trade button:not(.sf-primary) {
  padding: 5px 9px;
  color: #eee3c6;
  background: #615338;
  border: 1px solid #ab9467;
}
#sf-world .sf-player-trade button:not(.sf-primary):hover:not(:disabled) {
  background: #786546;
}
#sf-world .sf-player-trade button:disabled {
  opacity: 0.55;
}
.sf-player-trade .sf-trade-inventory :is(input, select) {
  font: inherit;
  color: #eee3c6;
  background: #302e24;
  border: 1px solid #ab9467;
}
#sf-world .sf-trade-buttons > button {
  width: auto;
  min-height: 34px;
  white-space: nowrap;
}
#sf-world .sf-trade-buttons > .sf-primary {
  margin: 0;
  padding: 6px 16px;
}
