:root {
  color-scheme: dark;
  --bg: #141b18;
  --panel: #1d2621;
  --panel-deep: #18201c;
  --line: #344035;
  --text: #edf0e4;
  --muted: #9fa998;
  --green: #bedb8e;
  --gold: #e2c58a;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:
    radial-gradient(ellipse at 18% 0%, #25312680, transparent 50%), var(--bg);
  color: var(--text);
  font-size: 14px;
}
button,
input {
  font: inherit;
}
button,
a,
input,
canvas {
  outline-offset: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
canvas:focus-visible {
  outline: 2px solid var(--green);
}
button {
  border: 1px solid #465441;
  border-radius: 7px;
  background: #2a352b;
  color: var(--text);
  padding: 10px 12px;
  cursor: pointer;
  transition:
    background 0.15s,
    border-color 0.15s;
}
button:hover:not(:disabled) {
  background: #394935;
  border-color: #80976a;
}
button:disabled {
  opacity: 0.42;
  cursor: default;
}
button.primary {
  background: var(--green);
  color: #21301b;
  border-color: var(--green);
  font-weight: 650;
}
button.primary:hover:not(:disabled) {
  background: #d1e9a8;
}
a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 17px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
  font-weight: 600;
}
.site-header {
  height: 91px;
  border-bottom: 1px solid #36403480;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  max-width: 1800px;
  margin: auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 16px;
  letter-spacing: 3px;
  font-weight: 650;
}
.brand-mark {
  color: var(--green);
  font-size: 42px;
  line-height: 1;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 2.3px;
  margin-top: 6px;
  font-weight: 500;
}
.header-right {
  display: flex;
  align-items: center;
  gap: 30px;
}
.version {
  font-size: 10px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.version b {
  margin-left: 9px;
  color: var(--gold);
  font-weight: 500;
}
.connection {
  border: 1px solid #3d493c;
  border-radius: 99px;
  padding: 8px 12px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #b5bcae;
  white-space: nowrap;
}
.connection i,
.population i {
  width: 6px;
  height: 6px;
  display: inline-block;
  background: #a4ad9b;
  border-radius: 50%;
}
.connection.online {
  color: var(--green);
}
.connection.online i {
  background: var(--green);
  box-shadow: 0 0 9px #bede8b50;
}
main {
  max-width: 1640px;
  padding: 35px 5% 0;
  margin: auto;
}
.page-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 27px;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.65px;
  color: var(--muted);
  font-weight: 600;
}
.page-intro .eyebrow {
  color: var(--green);
  margin-bottom: 10px;
}
.page-intro h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 33px;
  letter-spacing: -0.7px;
  font-weight: 400;
  line-height: 1.15;
}
.page-intro > p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  text-align: right;
}
.mobile-break {
  display: none;
}
.game-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 284px;
  gap: 18px;
  align-items: stretch;
}
.world-panel {
  position: relative;
  overflow: hidden;
  background: #202c24;
  border: 1px solid #3b483a;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.world-heading {
  position: absolute;
  top: 22px;
  left: 23px;
  right: 23px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 1;
  pointer-events: none;
}
.world-heading > div {
  display: flex;
  gap: 12px;
  align-items: center;
}
.map-symbol {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #57664b;
  border-radius: 8px;
  font-size: 23px;
  color: #c1dca2;
  background: #1c2b24a0;
}
.world-heading h2 {
  font-family: Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  text-shadow: 0 2px 8px #132019;
}
.world-heading div div > span {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #a7b69b;
}
.population {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  background: #18271fb0;
  border: 1px solid #4b5b4380;
  border-radius: 99px;
  padding: 8px 10px;
  color: #c5d3b6;
}
.population i {
  background: var(--green);
}
#world {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 630px;
  flex: 1;
  touch-action: manipulation;
  cursor: crosshair;
}
.map-caption {
  position: absolute;
  bottom: 62px;
  left: 23px;
  display: flex;
  gap: 20px;
  pointer-events: none;
}
.map-caption span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #a4b297;
  font-size: 8px;
  letter-spacing: 1px;
}
.map-caption i {
  width: 5px;
  height: 5px;
  border-radius: 2px;
}
.camp-dot {
  background: var(--gold);
}
.meadow-dot {
  background: #b0d880;
}
.world-controls {
  height: 43px;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  border-top: 1px solid #4b5b3f50;
  background: #17251ddb;
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 0 18px;
  color: #a7b39e;
  font-size: 9px;
}
.world-controls span {
  white-space: nowrap;
}
kbd {
  font-family: inherit;
  font-size: 8px;
  letter-spacing: 0.4px;
  border: 1px solid #6e805450;
  border-radius: 3px;
  padding: 2px 4px;
  color: #c2cfaf;
  font-weight: 500;
}
.world-controls kbd {
  margin-right: 4px;
}
.coordinates {
  margin-left: auto;
  color: #b1bda5;
  font-variant-numeric: tabular-nums;
}
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.panel {
  background: linear-gradient(120deg, #25302740, transparent 80%), var(--panel);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 18px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.guest-label,
.tag {
  font-size: 8px;
  letter-spacing: 1px;
  border: 1px solid #4d5c43;
  border-radius: 3px;
  color: #b2c59c;
  padding: 3px 5px;
}
.guest-label {
  color: #929e89;
  border-color: #414c3b;
}
.character-summary {
  display: flex;
  align-items: center;
  gap: 11px;
}
.portrait {
  display: grid;
  place-items: center;
  width: 43px;
  height: 45px;
  border: 1px solid #5a7250;
  background: linear-gradient(140deg, #3d6348, #293c32);
  border-radius: 8px;
  font-size: 32px;
  color: #dce8ca;
  flex-shrink: 0;
}
.character-summary h2 {
  font-size: 15px;
  max-width: 125px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.character-summary p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.coin-value {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  max-width: 49px;
  justify-content: end;
}
.coin-value > span {
  color: var(--gold);
  font-size: 13px;
}
.coin-value b {
  font-size: 20px;
  font-weight: 500;
  color: var(--gold);
}
.coin-value small {
  font-size: 7px;
  letter-spacing: 1px;
  color: #a7a78c;
  width: 100%;
  text-align: right;
}
.health-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  margin-top: 17px;
  margin-bottom: 6px;
}
.health-track {
  height: 4px;
  background: #3b4736;
  border-radius: 10px;
  overflow: hidden;
}
.health-track span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #7f9f61, #c3dca1);
  transition: width 0.2s;
}
.journey .eyebrow {
  margin-bottom: 11px;
}
.journey h3 {
  font-family: Georgia, serif;
  font-size: 18px;
  color: #e8e8ce;
  font-weight: 400;
}
.journey > p:not(.eyebrow) {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 8px;
}
.journey ol {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  counter-reset: step;
}
.journey li {
  counter-increment: step;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  color: #89957f;
  margin-top: 8px;
}
.journey li:before {
  content: counter(step);
  font-size: 8px;
  width: 15px;
  height: 15px;
  border: 1px solid #4f5d43;
  display: grid;
  place-items: center;
  border-radius: 50%;
}
.journey li.active {
  color: var(--green);
}
.journey li.active:before {
  background: #36482d;
  border-color: #90ae6f;
}
.journey li.done {
  color: #c4cdac;
}
.journey li.done:before {
  content: "✓";
  background: #35432e;
  color: #c3da9c;
}
.slime-summary {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 16px;
}
.slime-summary h3 {
  font-size: 14px;
}
.slime-summary p {
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.slime-icon {
  position: relative;
  background: linear-gradient(135deg, #c4e788, #7fa951);
  width: 43px;
  height: 30px;
  display: block;
  border-radius: 50% 50% 35% 35%;
  box-shadow:
    inset 3px 3px 0 #e4f4c030,
    0 5px 0 #121a1550;
  margin-top: 6px;
}
.slime-icon i {
  position: absolute;
  background: #344126;
  top: 15px;
  left: 14px;
  height: 5px;
  width: 3px;
  border-radius: 50%;
}
.slime-icon i + i {
  left: 25px;
}
.button-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.button-pair button {
  font-size: 11px;
  padding: 9px 5px;
}
.button-pair .primary kbd {
  border: 0;
  color: #415a2b;
  font-size: 6px;
  padding: 0;
  margin-left: 3px;
}
.text-button {
  border: 0;
  background: transparent;
  color: #a9be90;
  font-size: 10px;
  padding: 12px 0 0;
  width: 100%;
  text-align: left;
}
.text-button:hover:not(:disabled) {
  background: transparent;
  color: var(--green);
}
.text-button kbd {
  float: right;
}
.bag {
  flex: 1;
  padding-bottom: 0;
}
.bag .section-heading > span {
  font-size: 9px;
  color: var(--muted);
}
.inventory {
  min-height: 57px;
  display: flex;
  gap: 12px;
  align-items: center;
}
.empty-icon {
  font-size: 25px;
  color: #798a6b;
  opacity: 0.7;
}
.inventory p {
  font-size: 11px;
  color: #bcc5b0;
}
.inventory small {
  display: block;
  font-size: 9px;
  color: #85917e;
  margin-top: 6px;
}
.inventory .gel-glyph {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #64784a;
  background: #2e412b;
  border-radius: 6px;
  font-size: 23px;
  color: #b7da7e;
}
.merchant-actions {
  margin-top: 16px;
  border-top: 1px solid #3a4635;
  padding: 15px 0 17px;
}
.merchant-actions > div:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  color: #d0d1b6;
  margin-bottom: 13px;
}
.merchant-actions small {
  display: block;
  font-size: 9px;
  color: #9f9f84;
  margin-top: 4px;
}
.merchant-dot {
  width: 7px;
  height: 7px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #cfb980;
  box-shadow: 0 0 10px #cfb98030;
}
.merchant-actions button {
  color: #cfceae;
  background: #31372a;
  border-color: #555a40;
}
.journal {
  display: grid;
  grid-template-columns: 235px 1fr;
  gap: 25px;
  margin-top: 18px;
  padding: 21px 24px;
  background: #1a231e;
}
.journal .eyebrow {
  margin-bottom: 8px;
}
.journal h3 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 17px;
}
.journal > div > span {
  font-size: 9px;
  color: #83917b;
  display: block;
  margin-top: 10px;
}
.journal ol {
  list-style: none;
  padding: 0 0 0 21px;
  margin: 0;
  border-left: 1px solid #354230;
  height: 83px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #4b6040 transparent;
}
.journal li {
  font-size: 11px;
  line-height: 1.7;
  color: #b6c1aa;
  padding: 1px 0;
}
.journal li:before {
  content: "·";
  color: var(--green);
  padding-right: 9px;
}
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0 26px;
  color: #7c8a73;
  font-size: 9px;
}
footer > span:last-child {
  font-size: 8px;
  letter-spacing: 1.3px;
}
.footer-star {
  color: #a9bb8e;
  margin-right: 8px;
}
.login-overlay {
  position: absolute;
  inset: 0;
  background: #132019b8;
  backdrop-filter: blur(6px);
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 22px;
}
.login-overlay[hidden] {
  display: none;
}
.join-card {
  max-width: 360px;
  width: 100%;
  padding: 30px;
  border: 1px solid #59674a;
  border-radius: 13px;
  background: linear-gradient(140deg, #33412b, #1d2b22);
  box-shadow: 0 25px 90px #0a100c90;
}
.join-glyph {
  font-size: 39px;
  color: var(--green);
  display: block;
  margin-bottom: 15px;
}
.join-card .eyebrow {
  color: #afc895;
  font-size: 8px;
  margin-bottom: 10px;
}
.join-card h2 {
  font-family: Georgia, serif;
  font-weight: 400;
  font-size: 26px;
}
.join-card > p:not(.eyebrow) {
  font-size: 11px;
  line-height: 1.8;
  color: #b6c0a9;
  margin-top: 13px;
}
.join-card label {
  display: block;
  font-size: 10px;
  color: #c4d0b5;
  margin-top: 23px;
  margin-bottom: 8px;
}
.join-card input {
  background: #16251bb0;
  border: 1px solid #647555;
  border-radius: 6px;
  padding: 12px;
  color: #e4edda;
  width: 100%;
}
.join-card button {
  width: 100%;
  margin-top: 12px;
}
.join-card .join-note {
  font-size: 9px !important;
  color: #9aaa8d !important;
  text-align: center;
}
.toast {
  position: absolute;
  bottom: 66px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: #17271fec;
  border: 1px solid #9eae7750;
  padding: 12px 17px;
  border-radius: 7px;
  box-shadow: 0 5px 20px #101a1380;
  max-width: 85%;
  font-size: 12px;
  color: #e0e6cc;
  pointer-events: none;
  text-align: center;
}
.toast.error {
  border-color: #bb8b6560;
  color: #f0c9a4;
}
dialog {
  border: 1px solid #6f7b53;
  border-radius: 12px;
  background: linear-gradient(135deg, #2b3729, #1c291f);
  color: var(--text);
  width: min(450px, calc(100% - 36px));
  padding: 27px;
  box-shadow: 0 20px 100px #0008;
}
dialog::backdrop {
  background: #09130cb0;
  backdrop-filter: blur(3px);
}
.shop-heading {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}
.shop-heading .eyebrow {
  font-size: 8px;
  color: var(--gold);
  margin-bottom: 9px;
}
.shop-heading h2 {
  font-family: Georgia, serif;
  font-size: 25px;
  font-weight: 400;
}
.shop-heading button {
  border: 0;
  background: transparent;
  font-size: 25px;
  padding: 0 5px;
  color: #bfc5ad;
}
dialog > p {
  font-size: 12px;
  line-height: 1.7;
  color: #b5c0a6;
  margin-top: 16px;
}
.shop-rate {
  display: flex;
  gap: 13px;
  align-items: center;
  border-top: 1px solid #53613f80;
  border-bottom: 1px solid #53613f80;
  padding: 20px 0;
  margin: 23px 0;
}
.shop-rate .gel-glyph {
  font-size: 30px;
  color: var(--green);
}
.shop-rate > div {
  font-size: 13px;
}
.shop-rate small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.shop-rate b {
  margin-left: auto;
  color: var(--gold);
  font-size: 24px;
  font-weight: 400;
}
.shop-rate b span {
  display: block;
  font-size: 8px;
  text-align: right;
  color: #b0b295;
}
.sell-button {
  width: 100%;
  margin-bottom: 8px;
  background: var(--green);
  color: #23311e;
  border-color: var(--green);
}
#shop-items > p {
  font-size: 12px;
  color: #adb99c;
  padding: 12px 0;
}
.shop-footnote {
  font-size: 9px !important;
  color: #899a7d !important;
  text-align: center;
  margin-top: 17px !important;
}
@media (min-width: 1500px) {
  #world {
    min-height: 700px;
  }
  .sidebar {
    gap: 16px;
  }
  .panel {
    padding: 21px;
  }
  .merchant-actions {
    padding-bottom: 21px;
  }
  .journey li {
    margin-top: 12px;
  }
}
@media (max-width: 1100px) {
  main {
    padding-left: 3%;
    padding-right: 3%;
  }
  .site-header {
    padding: 0 3%;
  }
  .game-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 12px;
  }
  .panel {
    padding: 15px;
  }
  .world-controls {
    gap: 8px;
    padding: 0 10px;
  }
  .world-controls span {
    font-size: 8px;
  }
  .world-controls .coordinates {
    display: none;
  }
  .world-heading {
    left: 17px;
    right: 17px;
  }
  .population {
    font-size: 9px;
  }
  .world-heading h2 {
    font-size: 18px;
  }
  .map-caption {
    left: 17px;
    gap: 12px;
  }
  .map-caption span {
    font-size: 7px;
  }
}
@media (max-width: 800px) {
  .game-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .world-panel {
    height: 580px;
  }
  #world {
    min-height: 0;
  }
  .world-heading {
    top: 18px;
  }
  .bag {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .character {
    grid-column: 1;
    grid-row: 1;
  }
  .encounter {
    grid-column: 1;
    grid-row: 2;
  }
  .journey {
    grid-column: 1 / -1;
    grid-row: 3;
  }
  .journey ol {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 10px;
  }
  .journey li {
    margin: 0;
  }
  .journal {
    grid-template-columns: 180px 1fr;
    gap: 15px;
    padding: 18px;
  }
  .page-intro > p {
    display: none;
  }
  .version {
    display: none;
  }
}
@media (max-width: 480px) {
  .site-header {
    height: 76px;
  }
  .brand {
    font-size: 12px;
    letter-spacing: 2px;
    gap: 8px;
  }
  .brand-mark {
    font-size: 33px;
  }
  .brand small {
    font-size: 6px;
    letter-spacing: 1.5px;
  }
  .connection {
    font-size: 9px;
    padding: 7px 9px;
  }
  main {
    padding-top: 25px;
  }
  .page-intro h1 {
    font-size: 30px;
  }
  .page-intro {
    margin-bottom: 20px;
  }
  .mobile-break {
    display: block;
  }
  .world-panel {
    height: 450px;
  }
  .population {
    padding: 6px 8px;
  }
  .world-heading h2 {
    font-size: 17px;
  }
  .world-heading div div > span {
    font-size: 6px;
  }
  .map-symbol {
    display: none;
  }
  .world-controls {
    justify-content: space-between;
    gap: 4px;
  }
  .world-controls span {
    font-size: 7px;
  }
  .world-controls kbd {
    font-size: 6px;
  }
  .world-controls span:nth-child(4) {
    display: none;
  }
  .map-caption {
    bottom: 57px;
  }
  .sidebar {
    gap: 9px;
  }
  .panel {
    padding: 14px;
  }
  .portrait {
    width: 30px;
    height: 35px;
    font-size: 25px;
  }
  .character-summary {
    gap: 7px;
  }
  .character-summary h2 {
    font-size: 12px;
    max-width: 80px;
  }
  .character-summary p {
    font-size: 8px;
  }
  .coin-value {
    max-width: 35px;
    gap: 3px;
  }
  .coin-value b {
    font-size: 17px;
  }
  .coin-value small {
    font-size: 6px;
  }
  .section-heading .eyebrow {
    font-size: 7px;
    letter-spacing: 1px;
  }
  .guest-label {
    font-size: 6px;
  }
  .slime-summary {
    gap: 9px;
  }
  .slime-summary h3 {
    font-size: 12px;
  }
  .button-pair button {
    font-size: 9px;
  }
  .button-pair kbd {
    display: none;
  }
  .inventory {
    gap: 6px;
  }
  .inventory p {
    font-size: 9px;
  }
  .inventory small {
    font-size: 8px;
    line-height: 1.5;
  }
  .empty-icon {
    display: none;
  }
  .merchant-actions > div:first-child {
    font-size: 10px;
  }
  .merchant-actions small {
    font-size: 8px;
  }
  .journal {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .journal > div > span {
    display: none;
  }
  .journal ol {
    height: 75px;
    padding-left: 13px;
  }
  .journal h3 {
    font-size: 16px;
  }
  .journal .eyebrow {
    font-size: 8px;
  }
  .journal li {
    font-size: 10px;
  }
  footer {
    font-size: 8px;
  }
  footer > span:last-child {
    font-size: 6px;
  }
  .join-card {
    padding: 25px;
  }
  .join-card h2 {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
