@charset "UTF-8";
:root {
  --ink: #273c35;
  --sage: #6b8066;
  --paper: #f6f1e4;
  --rust: #a9583c;
  --line: #d6d1bd;
  --muted: #687064;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow: hidden;
  background: #c4d3cc;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
  color: inherit;
  background: var(--paper);
  border: 1px solid #b5bca9;
  border-radius: 4px;
  padding: 10px 15px;
  transition: background 0.15s;
}
button:hover {
  background: #e3e7d4;
}
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #a9583c;
  outline-offset: 3px;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
input,
select {
  min-width: 0;
  border: 1px solid #b8bead;
  border-radius: 3px;
  background: #fffdf5;
  padding: 11px;
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
#world {
  display: block;
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  outline: none;
}
#top {
  position: fixed;
  top: 25px;
  left: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  text-shadow: 0 1px 8px #f8f7e6b0;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}
.seal {
  font:
    30px Georgia,
    serif;
  background: var(--ink);
  color: var(--paper);
  width: 44px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 13px 2px 13px 2px;
}
.brand strong {
  font-size: 25px;
  letter-spacing: 6px;
  display: block;
}
.brand div > span {
  font-size: 9px;
  letter-spacing: 2px;
}
.session {
  text-align: right;
  font-size: 12px;
}
.session small {
  display: block;
  margin-top: 7px;
  opacity: 0.8;
}
#connection:before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 7px;
  background: #82905c;
  border-radius: 50%;
}
#compass {
  font: 12px monospace;
  letter-spacing: 5px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  padding: 11px 24px;
  border-bottom: 1px solid #3f594040;
}
#zone-label {
  position: fixed;
  left: 31px;
  top: 113px;
  pointer-events: none;
}
#zone-label span {
  display: block;
  font: 10px monospace;
  letter-spacing: 4px;
  color: #5f786c;
}
#zone-label b {
  display: block;
  font-size: 15px;
  font-weight: 400;
  margin-top: 7px;
}
#map-wrap {
  position: fixed;
  right: 30px;
  top: 108px;
  text-align: center;
  pointer-events: none;
}
#minimap {
  display: block;
  border-radius: 50%;
  border: 5px solid #f4f1ddaa;
  box-shadow: 0 5px 20px #193b2415;
  width: 150px;
  height: 150px;
}
#map-wrap > span {
  font-size: 9px;
  letter-spacing: 2px;
  display: block;
  margin-top: 9px;
}
#aim {
  position: fixed;
  top: 50%;
  left: 50%;
  font-size: 28px;
  color: #fff9e9aa;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
#labels {
  position: fixed;
  inset: 0;
  pointer-events: none;
}
.avatar-label {
  position: absolute;
  transform: translate(-50%, -100%);
  font-size: 11px;
  background: #233b32c9;
  color: #fffae9;
  padding: 4px 9px;
  border-radius: 3px;
  white-space: nowrap;
}
#status {
  position: fixed;
  left: 30px;
  bottom: 85px;
  width: 245px;
  padding: 16px 18px;
  background: #f6f1e4ec;
  border: 1px solid #ffffe899;
  border-radius: 3px;
  box-shadow: 0 4px 20px #143b2510;
}
.identity {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  font-size: 13px;
}
.identity > b {
  font:
    18px Georgia,
    serif;
  color: #96713d;
}
.identity small {
  font: 10px Arial;
}
.meter {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
  margin: 8px 0;
}
.meter span {
  width: 25px;
}
.meter b {
  font: 10px monospace;
  width: 21px;
  text-align: right;
}
progress {
  height: 5px;
  flex: 1;
  accent-color: #a15b45;
  border: 0;
  border-radius: 0;
}
#hunger {
  accent-color: #8d965a;
}
progress::-webkit-progress-bar {
  background: #dfdecd;
}
progress::-webkit-progress-value {
  background: #aa604a;
}
#hunger::-webkit-progress-value {
  background: #8c955a;
}
#debt {
  font-size: 10px;
  line-height: 1.7;
  margin-top: 12px;
  border-top: 1px solid var(--line);
  padding-top: 9px;
  color: #6a705e;
}
#quest-track {
  font-size: 11px;
  line-height: 1.7;
  color: #617a52;
}
#prompt {
  display:flex;align-items:center;gap:16px;z-index:12;
  position: fixed;
  left: 50%;
  bottom: 130px;
  transform: translateX(-50%);
  background: #283e33e8;
  color: var(--paper);
  padding: 11px 20px;
  border-radius: 3px;
  font-size: 13px;
  white-space: nowrap;
}
#nearby-action{min-height:44px;border-color:#d3d7b1;color:#273c35;background:#f6f1e4;font-weight:600;}
#tools {
  position: fixed;
  right: 30px;
  bottom: 85px;
  display: flex;
  gap: 5px;
}
#tools button {
  background: #f6f1e4e8;
  font-size: 11px;
  padding: 10px 12px;
  border: 0;
}
kbd {
  font: 10px monospace;
  display: inline-block;
  min-width: 19px;
  border: 1px solid currentColor;
  border-radius: 3px;
  padding: 3px 4px;
  text-align: center;
  opacity: 0.8;
  margin-right: 4px;
}
#hints {
  position: fixed;
  bottom: 23px;
  left: 30px;
  right: 30px;
  display: flex;
  align-items: center;
  gap: 23px;
  font-size: 11px;
  color: #283f32;
  text-shadow: 0 1px 3px #faf4db;
}
#hints button {
  margin-left: auto;
  background: #f6f1e4d9;
  padding: 6px 12px;
  border: 0;
  font-size: 11px;
}
#chat {
  position: fixed;
  right: 30px;
  bottom: 140px;
  width: 285px;
  pointer-events: none;
}
#chat-log {
  font-size: 11px;
  line-height: 1.8;
  text-shadow: 0 1px 3px #faf5e8;
  max-height: 140px;
  overflow: hidden;
  text-align: right;
}
#chat-log p {
  margin: 2px 0;
}
#chat-form {
  display: flex;
  margin-top: 9px;
  pointer-events: auto;
}
#chat-input {
  width: 100%;
  font-size: 12px;
  padding: 9px;
}
#chat-form button {
  font-size: 11px;
  padding: 8px;
}
#toast {
  position: fixed;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
  max-width: 550px;
  background: #293c33ed;
  color: var(--paper);
  padding: 13px 23px;
  font-size: 13px;
  border-radius: 3px;
  z-index: 15;
}
#duel-hud {
  position: fixed;
  left: 50%;
  top: 105px;
  transform: translateX(-50%);
  background: #f7f1dfef;
  text-align: center;
  padding: 10px 25px;
  font-size: 13px;
  border-bottom: 2px solid var(--rust);
}
.scrim {
  position: fixed;
  inset: 0;
  background: #1a302142;
  backdrop-filter: blur(5px);
  display: grid;
  place-items: center;
  z-index: 20;
  padding: 25px;
}
#start {
  background: linear-gradient(90deg, #e9e6d8f5, #e9e6d8c0 40%, #b8c8ab55);
  justify-items: start;
  padding-left: 8vw;
  backdrop-filter: none;
}
.start-panel {
  width: 510px;
  max-width: 100%;
  background: #faf6e9ed;
  border: 1px solid #fff9e9;
  padding: 26px 32px;
  max-height: calc(100dvh - 48px);
  overflow-y: auto;
  scrollbar-width: thin;
  box-shadow: 0 20px 80px #1e342320;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 3px;
  color: #73816b;
}
h1 {
  font:
    76px Georgia,
    "Songti SC",
    serif;
  letter-spacing: 13px;
  margin: 14px 0 12px;
  font-weight: 400;
}
h1 span {
  font: 12px Arial;
  letter-spacing: 9px;
  display: block;
  margin: 12px 0 0 5px;
}
.intro {
  font-size: 13px;
  color: #637160;
  line-height: 2;
  margin-bottom: 18px;
}
label {
  font-size: 11px;
  display: block;
  margin-bottom: 8px;
}
.join-row {
  display: flex;
  gap: 7px;
}
.join-row input {
  width: 100%;
}
.join-row button {
  flex: 1;
  background: #334e3e;
  color: var(--paper);
  border-color: #334e3e;
  white-space: nowrap;
}
.join-row button span {
  margin-left: 12px;
}
.guest {
  font-size: 10px;
  line-height: 1.8;
  color: #7a806e;
}
.start-controls {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.start-controls div {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
}
.start-controls kbd {
  min-width: 48px;
}
.fine {
  font-size: 10px;
  color: #7b8272;
  margin-bottom: 0;
  line-height: 1.7;
}
.edition {
  position: fixed;
  bottom: 27px;
  left: 8vw;
  font: 9px monospace;
  letter-spacing: 2px;
}
.dialog {
  width: 440px;
  max-width: 100%;
  max-height: 85vh;
  overflow: auto;
  background: var(--paper);
  padding: 26px 30px;
  border-top: 4px solid var(--sage);
  box-shadow: 0 20px 70px #132a2335;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font: 9px monospace;
  letter-spacing: 1px;
  color: #7d8974;
}
.dialog-head button {
  background: none;
  border: 0;
  font-size: 23px;
  padding: 0 4px;
}
.dialog h2 {
  font:
    27px Georgia,
    "Songti SC",
    serif;
  margin: 16px 0 20px;
}
.dialog p {
  font-size: 13px;
  line-height: 1.9;
}
.dialog .subtle {
  font-size: 11px;
  color: #78816d;
}
.dialog .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}
.dialog .primary {
  background: #36513f;
  color: var(--paper);
  border-color: #36513f;
}
.dialog .danger {
  color: #9c4935;
  border-color: #b98d73;
}
.dialog ul {
  padding: 0;
  list-style: none;
}
.dialog li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}
.dialog li button {
  padding: 6px 10px;
  font-size: 11px;
}
.dialog input[type="number"] {
  width: 100px;
}
.dialog select {
  width: 100%;
  margin-bottom: 12px;
}
.dialog .checks {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
}
.dialog .checks input {
  margin: 0;
}
.answer-row {
  display: flex;
  gap: 8px;
}
.answer-row input {
  width: 100%;
}
.options {
  display: grid;
  gap: 8px;
}
/* Free original outfits: native radios retain arrow-key navigation. */
#skin-picker { margin: 14px 0 0; padding: 0; border: 0; min-width: 0; }
#skin-picker legend { font-size: 11px; margin-bottom: 9px; width: 100%; }
#skin-picker legend span { float: right; color: var(--sage); font-size: 10px; }
#skin-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.skin-option { position: relative; margin: 0; cursor: pointer; }
.skin-option input { position: absolute; top: 8px; right: 7px; margin: 0; accent-color: var(--ink); width: 12px; height: 12px; }
.skin-card { display: flex; align-items: center; gap: 7px; min-height: 43px; padding: 7px; border: 1px solid var(--line); border-radius: 3px; font-size: 10px; background: #fffaf0; }
.skin-option input:checked + .skin-card { border-color: var(--sage); background: #e3e8d8; box-shadow: inset 0 0 0 1px var(--sage); }
.skin-option input:focus-visible + .skin-card { outline: 2px solid var(--rust); outline-offset: 2px; }
.skin-swatch { width: 17px; height: 25px; flex: none; background: var(--coat); border-radius: 8px 8px 3px 3px; border-top: 7px solid #d9b996; }
#skin-note { font-size: 10px; color: var(--muted); margin: 8px 0; }
#skin-preview { font-size: 11px; color: var(--sage); min-height: 19px; margin-bottom: 8px; }
#join-button { display: flex; justify-content: space-between; width: 100%; background: #334e3e; color: var(--paper); border-color: #334e3e; padding: 12px 15px; }
#join-button span { font: 11px monospace; align-self: center; opacity: .8; }
body:has(#start:not([hidden])) :is(#top, #zone-label, #map-wrap, #aim, #status, #tools, #hints, #chat) { visibility: hidden; }
#start-error:empty { display: none; }
#start-error {
  color: #9b3f2d;
  font-size: 12px;
}
.text-button {
  background: none;
  border: 0;
  text-decoration: underline;
  font-size: 11px;
  padding: 0;
}
#fatal {
  z-index: 40;
}
@media (max-width: 850px) {
  #top {
    left: 18px;
    right: 18px;
  }
  #compass {
    top: 55px;
  }
  #map-wrap {
    right: 18px;
  }
  #status {
    left: 18px;
    bottom: 100px;
    width: 210px;
  }
  #tools {
    right: 18px;
    bottom: 100px;
    flex-direction: column;
  }
  #hints {
    left: 18px;
    bottom: 18px;
    gap: 6px;
    flex-wrap: wrap;
    font-size: 10px;
  }
  #chat {
    bottom: 240px;
    right: 18px;
    width: 220px;
  }
  #start {
    padding-left: 25px;
  }
  .start-panel {
    padding: 28px;
  }
  h1 {
    font-size: 60px;
  }
  #minimap {
    width: 115px;
    height: 115px;
  }
}
