:root {
  color-scheme: dark;
  --ink:#dfd8bf;
  --muted:#a39e87;
  --gold:#ded18b;
  --line:#5f5d4d;
  --panel:#2d2923;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background:#151412;
  color:var(--ink);
  font:
    12px/1.4 Arial,
    sans-serif;
}
header {
  max-width: 1440px;
  margin: auto;
  height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
}
.brand {
  font:
    bold 25px Georgia,
    serif;
  letter-spacing: 2px;
  color:#ddd4af;
  text-shadow: 2px 2px #000;
}
.brand span {
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0;
  color:#b4a479;
}
.server {
  display: flex;
  align-items: center;
  gap: 8px;
  color:#aaa994;
  font-size: 11px;
}
.server i {
  width: 5px;
  height: 5px;
  background:#96ab64;
}
.alpha {
  margin-left: 12px;
  color:#5b4b36;
  letter-spacing: 1px;
  font-size: 9px;
}
.game-shell {
  max-width: 1396px;
  margin: 0 auto 18px;
  border:3px ridge #797662;
  background:#211f1b;
  box-shadow:0 10px 50px #0006;
}
.client-bar {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom:2px ridge #6d6c56;
  background:#2d2923;
  color:#ded3a4;
  font-weight: bold;
}
.client-bar small {
  font-weight: normal;
  color:#b2b19a;
}
.client-bar > span:last-child {
  font-weight: normal;
  font-size: 10px;
  color:#bbbba2;
}
.play-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 218px;
  grid-template-rows: minmax(420px, calc(100vh - 258px)) 134px;
}
.world-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-right:2px ridge #66644f;
}
.canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  background:#5b4b36;
  overflow: hidden;
}
#world {
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  cursor: crosshair;
}
#world:focus-visible {
  outline: 1px solid #d9d18c;
  outline-offset: -2px;
}
#hoverAction {
  position: absolute;
  top: 9px;
  left: 12px;
  color:#fff8bc;
  text-shadow:
    1px 1px #000,
    -1px -1px #000;
  font-size: 13px;
  font-weight: bold;
  pointer-events: none;
}
.location {
  position: absolute;
  top: 34px;
  left: 12px;
  color:#e4dec6;
  font: bold 16px Georgia;
  text-shadow: 1px 1px #26301d;
  pointer-events: none;
}
.location small {
  display: block;
  font: 10px Arial;
  color:#d3d2b7;
  margin-top: 3px;
}
.camera-controls {
  position: absolute;
  top: 8px;
  right: 9px;
  display: flex;
  gap: 3px;
}
.camera-controls button {
  font-size: 18px;
  width: 28px;
  height: 26px;
  padding: 0;
  background:#2d2923c9;
}
button {
  border:2px outset #77755c;
  background:#40382d;
  color:#eae2b8;
  padding: 6px 8px;
  font: 12px Arial;
  cursor: pointer;
  border-radius:0;
}
button:hover {
  background:#40382d;
  color:#fff6bd;
}
button:active {
  border-style:inset;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
#toast {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  max-width: 90%;
  width: max-content;
  color:#f6edc3;
  background:#211f1bdb;
  border:1px solid #82806a;
  padding: 6px 12px;
  text-align: center;
  font-size: 12px;
  pointer-events: none;
}
.map-footer {
  height: 23px;
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  padding: 4px 9px;
  color:#bcbda5;
  background:#211f1b;
  border-top:1px solid #5b4b36;
  font-size: 10px;
}
aside {
  grid-column: 2;
  grid-row: 1/3;
  background:#2d2923;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #7c7e62 #32352b;
}
aside section {
  padding: 9px 10px;
  border-bottom:2px ridge #65634f;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  color:#e3d99f;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 8px;
}
.section-heading > span {
  color:#a3a28d;
  font-size: 9px;
  font-weight: normal;
}
.map-card {
  padding-top: 7px;
  padding-bottom: 7px;
}
#minimap {
  display: block;
  width: 100%;
  height: 90px;
  image-rendering: pixelated;
  border:2px inset #5b4b36;
}
.map-key {
  display: flex;
  justify-content: space-between;
  font-size: 8px;
  color:#b1b59a;
  margin-top: 5px;
}
.skill-row,
.split {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.skill-row {
  font-size: 11px;
}
.skill-row strong {
  color:#e2d379;
  font-weight: normal;
}
.muted {
  color:var(--muted);
  font-size: 9px;
}
progress {
  display: block;
  appearance: none;
  height: 7px;
  width: 100%;
  border:1px inset #5b4b36;
  margin: 6px 0;
  background:#211f1b;
}
progress::-webkit-progress-bar {
  background: #242920;
}
progress::-webkit-progress-value {
  background: #a7ab5b;
}
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  margin-bottom: 6px;
}
.slot {
  height: 50px;
  min-width: 0;
  position: relative;
  background:#211f1b;
  border:1px solid #5b4b36;
  padding: 3px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.slot svg {
  width: 30px;
  height: 30px;
  filter: drop-shadow(2px 2px 0 #141910);
}
.slot span {
  font-size: 8px;
  color:#c6c6a8;
  white-space: nowrap;
}
.slot b {
  position: absolute;
  left: 4px;
  top: 2px;
  color:#ffff67;
  font-size: 11px;
  font-weight: normal;
}
.slot.empty:after {
  content: "·";
  color:#40382d;
}
.task h2 {
  font-size: 12px;
  color:#e3dfb7;
  margin: 2px 0 5px;
}
.task p {
  font-size: 11px;
  color:#b0b19b;
  margin: 0 0 8px;
}
.task #taskProgress {
  color:#d9d98e;
  font-size: 10px;
  margin-bottom: 8px;
}
.task button {
  font-size: 10px;
  width: 100%;
}
.chat-panel {
  grid-column: 1;
  grid-row: 2;
  background:#211f1b;
  border-top:2px ridge #5b4b36;
  border-right:2px ridge #66644f;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.chat-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 23px;
  padding: 3px 10px;
  background:#2d2923;
  border-bottom:1px solid #5b4b36;
  font-size: 10px;
  color:#b8bea2;
}
.chat-heading strong {
  color:#e5db9f;
}
.chat-heading span {
  font-size: 9px;
  color:#8f9982;
}
#messages {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 4px 10px;
  font-size: 12px;
  scrollbar-width: thin;
  scrollbar-color: #767c58 #292e24;
}
#messages p {
  margin: 2px 0;
  color:#d8ddc2;
}
#messages strong {
  color:#d9cf89;
  margin-right: 8px;
}
#chatForm {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 8px;
  border-top:1px solid #40382d;
  height: 30px;
}
#chatForm label {
  color:#dfd68e;
}
input,
select {
  font: 12px Arial;
  background:#211f1b;
  color:#e3e7d1;
  border:1px inset #5b4b36;
  padding: 8px;
}
#chat {
  flex: 1;
  min-width: 0;
  padding: 3px;
  background:transparent;
  border:0;
  outline: none;
}
#chatForm button {
  font-size: 10px;
  padding: 2px 12px;
}
footer {
  height: 23px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  font-size: 9px;
  color:#969d85;
  border-top:1px solid #40382d;
}
dialog {
  border:3px ridge #999274;
  background:#2d2923;
  color:var(--ink);
  padding: 30px;
  width: 400px;
  box-shadow:0 10px 80px #000b;
}
dialog::backdrop {
  background:#151412e0;
}
dialog h1 {
  font: 28px Georgia;
  margin: 10px 0;
}
dialog p {
  color:#b4b8a1;
}
dialog label {
  display: block;
  margin: 16px 0 5px;
}
dialog input,
dialog select {
  width: 100%;
}
dialog small {
  display: block;
  color:#a8af98;
  font-size: 10px;
  margin-top: 14px;
}
dialog .primary {
  width: 100%;
  background:#5b4b36;
  font-weight: bold;
  padding: 10px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2px;
  color:#d5d195 !important;
}
#createError {
  color:#f2b995;
}
@media (min-width: 1500px) {
  .play-layout {
    grid-template-columns: minmax(0, 1fr) 238px;
  }
}
@media (max-width: 800px) {
  header {
    padding: 0 10px;
    height: 49px;
  }
  .brand {
    font-size: 20px;
  }
  .server {
    font-size: 9px;
  }
  .alpha {
    display: none;
  }
  .game-shell {
    margin: 0 5px 10px;
  }
  .play-layout {
    grid-template-columns: minmax(0, 1fr) 190px;
    grid-template-rows: minmax(350px, calc(100vh - 235px)) 134px;
  }
  aside section {
    padding: 8px;
  }
  .map-footer {
    font-size: 8px;
  }
  .location {
    font-size: 13px;
  }
  .location small {
    font-size: 8px;
  }
  .camera-controls button {
    width: 24px;
  }
  .slot span {
    font-size: 7px;
  }
}
@media (max-width: 540px) {
  .play-layout {
    grid-template-columns: minmax(0, 1fr) 146px;
  }
  .brand {
    font-size: 17px;
  }
  .server {
    font-size: 8px;
  }
  .slot {
    height: 50px;
  }
  .slot svg {
    width: 27px;
    height: 27px;
  }
  .slot span {
    display: none;
  }
  #minimap {
    height: 88px;
  }
  .map-key {
    font-size: 6px;
  }
  .section-heading {
    font-size: 10px;
  }
  .task p {
    font-size: 9px;
  }
  .map-footer span:last-child {
    display: none;
  }
  .camera-controls {
    top: auto;
    bottom: 46px;
  }
  .location small {
    display: none;
  }
  .client-bar {
    font-size: 10px;
  }
  .client-bar > span:last-child {
    font-size: 8px;
  }
  #toast {
    font-size: 10px;
    padding: 4px;
  }
  .muted {
    font-size: 8px;
  }
  footer {
    font-size: 7px;
  }
}

/* Brighter parchment and brass against a deeper, cooler client frame. */
:root {
  --ink:#f1e8cf;
  --muted:#bdc4b3;
  --gold:#f1cf6c;
  --line:#5b4b36;
  --panel:#2d2923;
}
body {
  background:#211f1b;
  color:var(--ink);
}
.game-shell {
  background:#2d2923;
  border-color:#a29465;
}
.client-bar {
  background:#40382d;
  color:#ffe3a0;
  border-bottom-color:#8d825b;
}
.client-bar small,
.client-bar > span:last-child {
  color:#ccd1b6;
}
aside {
  background:#2d2923;
  scrollbar-color: #819363 #22352b;
}
aside section {
  border-bottom-color:#5b4b36;
}
.section-heading {
  color:#f7d780;
}
.section-heading > span {
  color:#b4c2a8;
}
.slot {
  background:#211f1b;
  border-color:#5b4b36;
}
.slot span {
  color:#dedfc0;
}
.task h2 {
  color:#ffe6a5;
}
.task p {
  color:#c8d0b8;
}
.task #taskProgress {
  color:#e5df8a;
}
button {
  background:#40382d;
  border-color:#a69a63;
  color:#fff0b5;
}
button:hover {
  background:#5b4b36;
  color:#fff9d6;
}
.chat-panel {
  background:#211f1b;
}
.chat-heading {
  background:#40382d;
  color:#d7dfc5;
}
.chat-heading strong,
#chatForm label {
  color:#f2d277;
}
.chat-heading span {
  color:#bac7aa;
}
#messages p {
  color:#e0e8d5;
}
#messages strong {
  color:#f3d27a;
}
.map-footer {
  background:#2d2923;
  color:#d0dbc0;
}
footer {
  color:#b4c0a5;
}
#toast {
  background:#211f1bed;
  border-color:#a89b61;
  color:#fff0b6;
}
.brand {
  color:#f3dca0;
}
.brand span {
  color:#c6ad70;
}
.server {
  color:#c4cfb7;
}
progress::-webkit-progress-value {
  background: #9fcb54;
}

#workshop {
  width: min(620px, 95vw);
  max-height: 90vh;
  overflow: auto;
  padding: 20px;
  background:#2d2923;
}
#workshop .section-heading {
  align-items: center;
}
#workshop h3 {
  margin: 0;
  color:#ffe198;
  font-size: 14px;
}
.recipe {
  padding: 12px 0;
  border-bottom:1px solid #5b4b36;
}
.recipe p {
  margin: 5px 0;
}
.recipe button {
  margin: 4px 6px 0 0;
}
#resourceRoutes {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
#resourceRoutes button {
  font-size: 11px;
}
#resourceSummary {
  font-size: 10px;
  color:#f4d593;
  margin: 8px 0;
}
#nextGoal {
  margin-top: 8px;
  color:#f6df95;
}
#collectionStatus {
  color:#ffe198;
}
#workshopNotice {
  color:#fce39e;
  min-height: 20px;
}
#buyCoat {
  margin-top: 8px;
}

#workshop {
  width: min(620px, 95vw);
  max-height: 90vh;
  overflow: auto;
  padding: 20px;
  background:#2d2923;
}
#workshop .section-heading {
  align-items: center;
}
#workshop h3 {
  margin: 0;
  color:#ffe198;
  font-size: 14px;
}
.recipe {
  padding: 12px 0;
  border-bottom:1px solid #5b4b36;
}
.recipe p {
  margin: 5px 0;
}
.recipe button {
  margin: 4px 6px 0 0;
}
#resourceRoutes {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
#resourceRoutes button {
  font-size: 11px;
}
#resourceSummary {
  font-size: 10px;
  color:#f4d593;
  margin: 8px 0;
}
#nextGoal {
  margin-top: 8px;
  color:#f6df95;
}
#collectionStatus {
  color:#ffe198;
}
#workshopNotice {
  color:#fce39e;
  min-height: 20px;
}
#buyCoat {
  margin-top: 8px;
}

#adventure {
  width: min(670px, 95vw);
  max-height: 90vh;
  overflow: auto;
  padding: 18px;
  background:#2d2923;
}
#adventureTitle {
  font-size: 14px;
  color:#ffe1a2;
}
#adventureTabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  border-bottom:1px solid #5b4b36;
  padding-bottom: 10px;
}
#adventureBody button {
  margin: 4px;
}
#adventureBody p {
  color:#dbe7c7;
}
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 15px 0;
}
.skills-grid > div,
.item-row {
  background:#211f1b;
  padding: 8px;
  border:1px solid #5b4b36;
}
.item-row {
  margin-top: 6px;
}
.item-row p {
  margin: 0;
}
#healthStatus {
  color: #ffe4a2;
  margin: 6px 0;
}
#combatStatus {
  color:#ffc796;
}
#adventureNotice {
  color:#ffe4a2;
}
#eatFood,
#fleeFight {
  margin-top: 4px;
}

.music-bar {
  max-width: 1396px;
  margin: 0 auto 7px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  font-size: 11px;
  color:#f2d277;
}
.music-bar button {
  font-size: 11px;
  padding: 4px 8px;
}
.music-bar input {
  width: 90px;
  padding: 0;
  accent-color: #c5bc6b;
}
.music-bar label {
  margin-left: auto;
  color:#bdc4b3;
}
#musicTrack {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.currency-card {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 9px;
  align-items: center;
  background:#2d2923;
}
.currency-card img {
  width: 58px;
  height: 58px;
  object-fit: contain;
}
.currency-card strong {
  color:#f4d277;
  font-size: 12px;
}
#currencyBalance {
  font-size: 23px;
  font-weight: bold;
  color:#fff1b8;
  line-height: 1.2;
}
.currency-card small {
  font-size: 9px;
  color:#bdc9ae;
}
.currency-card p {
  grid-column: 1/-1;
  margin: 0;
  color:#cbd4bd;
  font-size: 10px;
}

/* Sidebar hierarchy: status first, secondary tools expandable. */
.sidebar-fold {
  border-bottom:1px solid #5b4b36;
}
.sidebar-fold summary {
  padding: 10px;
  color:#f7d780;
  cursor: pointer;
  font-weight: bold;
}
.sidebar-fold[open] summary {
  background:#40382d;
}
.sidebar-fold section {
  border-bottom:0;
}
.sidebar-fold .task button {
  margin-top: 4px;
}
.currency-card {
  grid-template-columns: 44px 1fr;
  padding: 8px 10px;
}
.currency-card img {
  width: 44px;
  height: 44px;
}
#currencyBalance {
  font-size: 21px;
}
.map-card .section-heading b {
  font-size: 10px;
}
.inventory-grid {
  grid-template-columns: repeat(2, 1fr);
}
.play-layout {
  grid-template-rows: minmax(350px, calc(100vh - 275px)) 125px;
}
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #f9db83;
  outline-offset: 2px;
}
.skills-grid {
  font-size: 11px;
}

/* Compact classic-inspired character panels; gameplay stays visible. */
.classic-tabs {
  display: flex;
  gap: 2px;
  padding: 6px;
  background:#2d2923;
  border-bottom:2px ridge #a7a58d;
}
.classic-tabs button {
  flex: 1;
  padding: 8px 4px;
  color:#ffe48a;
}
#adventure {
  position: fixed;
  inset: 145px 24px auto auto;
  margin: 0;
  width: 370px;
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 170px);
  overflow: auto;
  background:#2d2923;
  color:#f5f0d8;
  border:3px ridge #a6a48c;
  padding: 12px;
  box-shadow:0 8px 30px #0008;
  z-index: 20;
  font:
    13px/1.45 Arial,
    sans-serif;
}
#adventure .section-heading {
  color:#ffe482;
}
#adventureTabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin: 10px 0;
  border-bottom:1px solid #5b4b36;
  padding-bottom: 8px;
}
#adventureTabs button {
  padding: 5px 8px;
}
.skills-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.stat-cell {
  text-align: left;
  padding: 9px 6px;
  background:#40382d;
  color:#ffe482;
  font-size: 12px;
}
button[aria-pressed="true"] {
  background:#6a653e;
  color:#fff3ad;
  border-color:#e9cc72;
}
.skill-detail {
  padding: 8px;
  background:#211f1b;
  border:1px solid #5b4b36;
  margin-top: 10px;
}
.skill-detail p {
  margin: 4px 0 9px;
}
.skill-detail progress {
  width: 100%;
}
.classic-pack {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.pack-slot {
  min-width: 0;
  min-height: 61px;
  padding: 4px;
  font-size: 10px;
  background:#40382d;
  border:1px solid #5b4b36;
  color:#fff2c6;
}
.pack-slot.equipped {
  background:#5b4b36;
  border:2px solid #88cc7a;
}
.pack-slot.empty {
  background:#40382d;
}
.quest-new {
  color:#ff9890;
}
.quest-active {
  color:#ffe47e;
}
.quest-done {
  color:#8ef29a;
}
.action-menu {
  position: fixed;
  z-index: 60;
  max-width: 300px;
  background:#211f1b;
  border:2px ridge #b5ac7e;
  box-shadow:3px 4px 12px #000a;
  padding: 5px;
  color:#ffe783;
}
.action-menu p {
  margin: 3px 5px 7px;
  color:#b7b9b1;
}
.action-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border:0;
  background:transparent;
  color:#ffe783;
  padding: 7px;
}
.action-menu button:hover {
  background:#40382d;
  color:#fff;
}
.chat-heading nav {
  display: flex;
  gap: 3px;
}
.chat-heading button {
  font-size: 11px;
  padding: 2px 12px;
}
#messages p[hidden],
.action-menu[hidden] {
  display: none;
}
@media (max-width: 600px) {
  #adventure {
    inset: 85px 8px auto auto;
    max-height: calc(100vh - 100px);
  }
}

/* Right-hand dashboard: map first, character panels permanently docked. */
.play-layout {
  grid-template-columns: minmax(0, 1fr) 320px;
}
aside > .map-card {
  position: sticky;
  top: 0;
  z-index: 3;
  background:#2d2923;
}
#minimap {
  display: block;
  width: 100%;
  height: 130px;
  object-fit: contain;
}
#adventure {
  position: static;
  inset: auto;
  width: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 10px;
  overflow: visible;
  box-shadow:none;
  border:0;
  border-bottom:2px ridge #5b4b36;
  font:
    12px/1.4 Arial,
    sans-serif;
}
#adventure .stat-cell {
  padding: 6px 4px;
}
#adventure .section-heading {
  margin-bottom: 5px;
}
#adventureTabs {
  gap: 2px;
  margin: 5px 0;
}
#adventureTabs button {
  padding: 4px 6px;
  font-size: 11px;
}
.classic-tabs,
#openAdventure {
  display: none;
}
@media (max-width: 750px) {
  .play-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
  }
}
@media (max-width: 560px) {
  .play-layout {
    display: flex;
    flex-direction: column;
  }
  aside {
    max-height: 600px;
  }
  .world-panel {
    height: 55vh;
    min-height: 300px;
  }
}

/* Original illustrated icons keep their labels for accessibility and quick recognition. */
.game-icon {
  width: 24px;
  height: 24px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  margin-right: 6px;
  filter: drop-shadow(0 1px 1px #0006);
  pointer-events: none;
}
.stat-cell {
  display: flex;
  align-items: center;
  gap: 5px;
}
.stat-cell .game-icon {
  width: 29px;
  height: 29px;
  margin: 0;
}
#adventureTabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}
#adventureTabs button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  padding: 5px 2px;
}
#adventureTabs .game-icon {
  width: 27px;
  height: 27px;
  margin: 0;
}
.pack-slot .game-icon {
  display: block;
  width: 29px;
  height: 29px;
  margin: 0 auto 3px;
}
.chat-heading .game-icon,
.music-bar .game-icon {
  width: 17px;
  height: 17px;
  margin-right: 4px;
}
.sidebar-fold summary .game-icon {
  width: 22px;
  height: 22px;
}
.map-card .section-heading {
  justify-content: flex-start;
  gap: 4px;
}
.map-card .section-heading > span:last-child {
  margin-left: auto;
}

#adventureTabs {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.ranking-table {
  width: 100%;
  border-collapse:collapse;
  font-size: 11px;
  margin-top: 12px;
}
.ranking-table th,
.ranking-table td {
  padding: 7px 3px;
  text-align: left;
  border-bottom:1px solid #5b4b36;
}
.ranking-table td:last-child {
  text-align: right;
  color:#f4d279;
}
.your-rank {
  background:#40382d;
}
#adventureBody > progress {
  width: 100%;
}

.unlock-guide {
  padding: 6px 0 !important;
}
.unlock-guide h3 {
  color:#f4d28b;
  font-size: 13px;
  margin: 8px 0;
}
.unlock-row {
  display: flex;
  gap: 9px;
  align-items: center;
  padding: 10px 0;
  border-bottom:1px solid #5b4b36;
}
.fish-portrait {
  width: 76px;
  height: 52px;
  flex-shrink: 0;
}
.unlock-row > .game-icon {
  width: 42px;
  height: 42px;
}
.unlock-row strong {
  display: block;
  color:#f5e1ba;
}
.unlock-row small {
  display: block;
  color:#c2cdbb;
  margin-top: 4px;
}
.unlock-ready {
  color:#9ce7a4;
  font-size: 11px;
}
.unlock-locked {
  color:#e2c27d;
  font-size: 11px;
}

#tutorialGuide {
  background:#2d2923;
  border:1px solid #e3ca56;
  color:#fff0b5;
  padding: 10px;
}
#tutorialGuide[hidden] {
  display: none;
}
#tutorialGuide p {
  font-size: 12px;
  margin: 7px 0;
}
.tutorial-target {
  position: relative;
  outline: 2px solid #ffe336 !important;
  outline-offset: 2px;
}
.tutorial-target::after {
  content: "⬇";
  position: absolute;
  right: 1px;
  top: -22px;
  color:#ffe336;
  font-size: 25px;
  text-shadow: 1px 1px #352b00;
  pointer-events: none;
}

.live-ranking {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 7px 9px;
  text-align: left;
  background:#2d2923;
  border:1px solid #958451;
  cursor: pointer;
}
.live-rank-heading {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  letter-spacing: 0.5px;
  color:#a8d3a6;
}
#liveRankPlace {
  color:#ffe28c;
  font-size: 14px;
  font-weight: bold;
}
#liveRankTitle {
  display: block;
  font-size: 12px;
  color:#f2deb0;
  margin: 2px 0;
}
#liveRankTotal {
  display: block;
  color:#bac7ae;
  font-size: 10px;
}

.effects-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 3px 8px;
  background:#211f1b;
  color:#c7cfb7;
  font-size: 10px;
}
.effects-bar button {
  font-size: 10px;
  padding: 3px 7px;
}
.effects-bar input {
  width: 100px;
  height: 14px;
}

/* Small arrow tip is the click hotspot. */
#world {
  cursor:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2218%22%20height%3D%2222%22%20viewBox%3D%220%200%2018%2022%22%3E%3Cpath%20d%3D%22M2%201v16l4-4%204%207%203-2-4-7h6Z%22%20fill%3D%22%23f5e6bb%22%20stroke%3D%22%2324332b%22%20stroke-width%3D%221.2%22%20stroke-linejoin%3D%22round%22%2F%3E%3C%2Fsvg%3E")
      2 1,
    default;
}

.level-popup {
  position: absolute;
  z-index: 9;
  top: 52px;
  left: 50%;
  transform: translateX(-50%);
  width: min(320px, calc(100% - 32px));
  padding: 16px 22px;
  background:linear-gradient(135deg, #2d2923f5, #211f1bf5);
  border:2px solid #edce70;
  box-shadow:0 6px 25px #0007,
    0 0 20px #e6cb4d22;
  text-align: center;
  color:#f6eacb;
  pointer-events: none;
}
.level-popup[hidden] {
  display: none;
}
.level-popup-heading {
  display: block;
  font-size: 12px;
  font-weight: bold;
  letter-spacing: 3px;
  color:#ffe48b;
  margin-bottom: 8px;
}
#levelPopupSkill {
  display: block;
  font-size: 19px;
  color:#fff1b0;
}
#levelPopupSkill .game-icon {
  width: 34px;
  height: 34px;
}
.level-popup p {
  font-size: 12px;
  line-height: 1.5;
  margin: 8px 0 0;
}
.level-popup button {
  position: absolute;
  right: 4px;
  top: 4px;
  padding: 0 6px;
  background:transparent;
  border:0;
  pointer-events: auto;
  color:#ebd99c;
  font-size: 20px;
}

/* A pointing hand marks clickable world icons and activity targets. */
#world.interactable {
  cursor:
    url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2228%22%20height%3D%2230%22%20viewBox%3D%220%200%2028%2030%22%3E%3Cpath%20d%3D%22M10%2015V4q0-4%204-2v10-3q3-3%205%200v3-2q4-2%205%202v9l-5%207H9l-6-9q-3-5%201-5l6%205Z%22%20fill%3D%22%23f2d3a0%22%20stroke%3D%22%2325352c%22%20stroke-width%3D%221.5%22%20stroke-linejoin%3D%22round%22%2F%3E%3Cpath%20d%3D%22M14%2012v6m5-6v6M9%2025h12%22%20fill%3D%22none%22%20stroke%3D%22%23ad8857%22%20stroke-width%3D%221.2%22%2F%3E%3C%2Fsvg%3E")
      12 2,
    pointer;
}

#skillPopup {
  width: 440px;
  max-width: calc(100vw - 32px);
  max-height: 80vh;
  padding: 0 18px 18px;
  background:#2d2923;
  color:#efead5;
  border:2px solid #c7ac64;
  overflow: auto;
}
.skill-popup-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background:#2d2923;
  padding: 12px 0;
  z-index: 1;
  border-bottom:1px solid #5b4b36;
}
.skill-popup-header h2 {
  font-size: 18px;
  margin: 0;
  color:#ffe5a2;
}
#closeSkillPopup {
  font-size: 22px;
  padding: 2px 10px;
}
#skillPopup::backdrop {
  background:#15141266;
}

/* Viewport dashboard: persistent map, compact action strip, paged long content. */
html,
body {
  height: 100%;
  overflow: hidden;
}
body {
  display: flex;
  flex-direction: column;
}
header {
  height: 40px;
  min-height: 40px;
  width: 100%;
  padding: 0 14px;
}
.brand {
  font-size: 21px;
}
.music-bar,
.effects-bar {
  flex-shrink: 0;
  padding: 2px 8px;
  min-height: 24px;
}
.game-shell {
  flex: 1;
  min-height: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.client-bar {
  height: 24px;
  min-height: 24px;
}
.game-shell > footer {
  display: none;
}
.play-layout {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  grid-template-rows: minmax(0, 1fr) 105px;
}
.world-panel {
  min-height: 0;
}
.map-footer {
  font-size: 9px;
  height: 19px;
  min-height: 19px;
}
aside {
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  grid-row: 1/3;
}
aside > .map-card {
  position: static;
  flex-shrink: 0;
  padding: 4px 8px;
}
#minimap {
  height: 88px;
  width: 100%;
}
.map-card .section-heading {
  margin: 0;
  font-size: 10px;
  height: 20px;
}
.map-key {
  display: none;
}
.live-ranking {
  padding: 3px 6px;
  margin-top: 3px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 6px;
}
.live-rank-heading {
  grid-column: 1/3;
}
#liveRankTitle,
#liveRankTotal {
  font-size: 9px;
  margin: 0;
}
#liveRankTotal {
  font-size: 8px;
}
#liveRankPlace {
  font-size: 12px;
}
#adventure {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 6px;
}
#adventure > .section-heading,
#adventureNotice {
  display: none;
}
#adventureTabs {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 5px;
  padding-bottom: 4px;
  flex-shrink: 0;
}
#adventureTabs button {
  font-size: 9px;
  padding: 3px 0;
}
#adventureTabs .game-icon {
  width: 21px;
  height: 21px;
}
#adventureBody {
  flex: 1;
  min-height: 0;
}
.paged-content {
  overflow: hidden;
  min-height: 0;
}
.paged-content > [hidden] {
  display: none !important;
}
.page-controls {
  height: 28px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top:1px solid #5b4b36;
  padding-top: 3px;
}
.page-controls button {
  padding: 3px 7px;
  font-size: 10px;
}
.page-controls span {
  font-size: 10px;
  color:#d6c58f;
}
#adventureBody p {
  margin: 6px 0;
  font-size: 11px;
}
#adventureBody .stat-cell {
  min-height: 28px;
  padding: 3px;
  font-size: 11px;
}
#adventureBody .stat-cell .game-icon {
  width: 22px;
  height: 22px;
}
#adventureBody .skills-grid {
  gap: 3px;
}
.classic-pack {
  gap: 2px;
}
.pack-slot {
  min-height: 40px;
  font-size: 9px;
  padding: 2px;
}
.pack-slot .game-icon {
  height: 19px;
  width: 19px;
}
.item-row {
  padding: 5px !important;
  margin: 3px 0 !important;
}
.item-row button {
  font-size: 10px;
  padding: 4px;
}
.player-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 43px;
  flex-shrink: 0;
  padding: 3px 8px;
  background:#2d2923;
  border-bottom:1px solid #7f7e58;
}
.player-strip .currency-card {
  display: flex;
  align-items: center;
  padding: 0;
  border:0;
  gap: 5px;
}
.player-strip .currency-card img {
  width: 30px;
  height: 30px;
}
.player-strip .currency-card small,
.player-strip .currency-card strong {
  display: none;
}
#currencyBalance {
  font-size: 16px;
}
.player-strip > .task {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}
.player-strip p {
  margin: 0;
  font-size: 10px;
}
#combatStatus {
  max-width: 180px;
}
.player-strip button {
  font-size: 10px;
  padding: 4px 7px;
}
.quick-tools {
  display: flex;
  gap: 4px;
}
#tutorialGuide {
  position: absolute;
  left: 10px;
  bottom: 38px;
  max-width: 300px;
  padding: 7px;
  z-index: 4;
  background:#2d2923ee;
  font-size: 10px;
}
#tutorialGuide p {
  font-size: 11px;
  margin: 4px 0;
}
#tutorialGuide button {
  font-size: 10px;
  padding: 3px 7px;
}
.chat-panel {
  min-height: 0;
}
.chat-heading {
  height: 24px;
  min-height: 24px;
}
#messages {
  overflow: hidden;
  font-size: 11px;
}
#chatForm {
  height: 26px;
  min-height: 26px;
}
dialog#skillPopup,
dialog#townTools,
dialog#chatHistory,
dialog#workshop {
  width: 500px;
  max-width: calc(100vw - 24px);
  height: min(570px, calc(100dvh - 36px));
  max-height: none;
  overflow: hidden;
  padding: 10px 14px;
}
dialog[open]#skillPopup,
dialog[open]#townTools,
dialog[open]#chatHistory,
dialog[open]#workshop {
  display: flex;
  flex-direction: column;
}
dialog .paged-content {
  flex: 1;
}
dialog .skill-popup-header {
  flex-shrink: 0;
  padding: 5px 0 10px;
}
dialog .unlock-row {
  padding: 7px 0;
}
#welcome {
  max-height: calc(100dvh - 16px);
  overflow: hidden;
}
#townToolsBody section {
  padding: 5px 0;
}
#townToolsBody .inventory-grid {
  display: flex;
}
#workshopBody #recipeList,
#workshopBody #resourceRoutes {
  display: block !important;
}
.rank-entry {
  padding: 7px;
  background:#2d2923;
}
.skill-detail {
  padding: 7px;
}
.skill-routes[open] {
  font-size: 10px;
}
.skill-routes button {
  padding: 3px;
  font-size: 10px;
}
@media (max-height: 650px) {
  #minimap {
    height: 62px;
  }
  .live-ranking {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  #liveRankTotal {
    display: none;
  }
  .play-layout {
    grid-template-rows: minmax(0, 1fr) 80px;
  }
  header {
    height: 32px;
    min-height: 32px;
  }
  .player-strip {
    min-height: 36px;
  }
  #adventureBody .stat-cell {
    min-height: 23px;
    padding: 1px;
  }
  .stat-cell .game-icon {
    width: 18px !important;
    height: 18px !important;
  }
}
@media (max-width: 750px) {
  .play-layout {
    grid-template-columns: minmax(0, 1fr) 270px;
  }
  .player-strip {
    gap: 4px;
  }
  .player-strip > .task {
    gap: 4px;
  }
  #combatStatus {
    display: none;
  }
  .quick-tools button {
    font-size: 9px;
    padding: 3px;
  }
  .brand {
    font-size: 17px;
  }
  .server .alpha {
    display: none;
  }
}
@media (max-width: 560px) {
  .play-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 215px;
    grid-template-rows: minmax(0, 1fr) 80px;
  }
  .world-panel {
    height: auto;
    min-height: 0;
  }
  aside {
    max-height: none;
  }
  .player-strip {
    flex-wrap: wrap;
  }
  .quick-tools {
    margin-left: auto;
  }
  #adventureTabs button {
    font-size: 8px;
  }
  #adventureTabs .game-icon {
    height: 16px;
    width: 16px;
  }
  .skills-grid {
    grid-template-columns: 1fr !important;
  }
  .stat-cell {
    min-height: 24px !important;
  }
  .player-strip .task {
    flex-wrap: wrap;
  }
  .map-footer {
    display: none;
  }
  #tutorialGuide {
    max-width: calc(100% - 16px);
    left: 8px;
    bottom: 40px;
  }
  .brand {
    font-size: 14px;
  }
  .server {
    font-size: 9px;
  }
}

.paged-content [data-page-part][hidden] {
  display: none !important;
}
.player-strip .task button {
  width: auto;
  flex: none;
}
.player-strip .task p {
  white-space: nowrap;
}
.music-bar {
  width: 100%;
  margin: 0;
  justify-content: flex-start;
}
#workshopBody [data-page-group] {
  display: contents !important;
}
.paged-content > details[open] {
  margin: 0;
}
.paged-content .recipe-card {
  margin: 4px 0;
  padding: 8px;
}

#adventureTabs {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
#adventureTabs button {
  font-size: 8px;
}
.equipment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}
.equipment-slot {
  font-size: 10px;
  padding: 5px 2px;
  min-height: 67px;
  line-height: 1.25;
}
.equipment-slot .game-icon {
  display: block;
  width: 26px;
  height: 26px;
  margin: 0 auto 4px;
}
.equipment-detail {
  padding: 5px;
  background:#2d2923;
  border:1px solid #5b4b36;
  margin: 6px 0;
}
.equipment-detail button {
  font-size: 11px;
  padding: 5px 9px;
}
.equipment-grid .equipment-slot {
  min-height: 44px;
  margin: 0;
  padding: 3px 2px;
  font-size: 9px;
}
.equipment-slot .game-icon {
  width: 19px;
  height: 19px;
  margin-bottom: 1px;
}
.equipment-detail p {
  margin: 0 0 4px;
  font-size: 11px;
}

.coin-reward {
  position: absolute;
  left: 50%;
  top: 25%;
  z-index: 12;
  pointer-events: none;
  color:#ffe28b;
  background:#2d2923ee;
  border:1px solid #edce70;
  padding: 8px 14px;
  font-weight: bold;
  animation: coin-float 2.4s ease-out forwards;
}
@keyframes coin-float {
  0% {
    opacity: 0;
    transform: translate(-50%, 15px);
  }
  15%,
  70% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -35px);
  }
}
.work-rewards {
  color:#edcf79;
  font-size: 10px !important;
  margin: 2px 0 5px !important;
}

#frontierWorkshop {
  width: min(460px, 90vw);
  padding: 20px;
  background:#2d2923;
  color:#f7e6b6;
  border:2px solid #bda15f;
}
#frontierWorkshop select {
  width: 100%;
  padding: 8px;
  background:#211f1b;
  color:#f7e6b6;
}
#frontierWorkshop button {
  margin: 4px;
}
.recipe-preview .game-icon {
  width: 90px;
  height: 64px;
}
@media (prefers-reduced-motion: reduce) {
  .coin-reward {
    animation: none;
    transform: translateX(-50%);
  }
}

/* Clean HUD: one audio row, clear panel spacing, details on hover. */
.audio-toolbar {
  display: flex;
  align-items: center;
  gap: 24px;
  background:#211f1b;
  padding: 0 12px;
  flex-shrink: 0;
  min-height: 30px;
}
.audio-toolbar .music-bar {
  width: auto;
  flex: 1;
  margin: 0;
  background:none;
}
.audio-toolbar .effects-bar {
  background:none;
  gap: 8px;
}
#zoneName,
#zoneCaption {
  display: none;
}
#hoverAction {
  top: 12px;
  left: 12px;
  max-width: calc(100% - 190px);
  padding: 7px 10px;
  background:#211f1bdb;
  border:1px solid #5b4b3680;
  font: 12px/1.4 Arial;
  color:#f3e8c7;
  text-shadow: none;
  border-radius:3px;
}
.player-strip {
  gap: 14px;
  padding: 8px 12px;
  min-height: 46px;
}
#adventureTabs {
  gap: 3px;
  padding: 5px 0;
}
#adventureTabs button {
  border:1px solid #5b4b36;
  box-shadow:none;
  background:#2d2923;
  min-height: 47px;
}
#adventureTabs button[aria-pressed="true"] {
  background:#5b4b36;
  border-color:#e3c778;
}
#adventureBody {
  padding: 8px 7px;
}
#adventureBody .stat-cell {
  margin: 0;
  padding: 7px 6px;
  border:1px solid #5b4b36;
  background:#40382d;
  box-shadow:none;
}
.skills-grid {
  gap: 6px;
}
.work-rewards {
  padding: 5px 7px;
  background:#2d2923;
  border-radius:3px;
  color:#dac887;
}
#liveRanking {
  padding: 6px 8px;
}
#liveRankTotal {
  font-size: 9px;
  line-height: 1.4;
}
@media (max-width: 850px) {
  .audio-toolbar {
    gap: 4px;
    padding: 0 4px;
  }
  .audio-toolbar .music-bar {
    flex-wrap: wrap;
  }
  .audio-toolbar .effects-bar {
    flex-wrap: wrap;
  }
}

#toast[hidden] {
  display: none;
}
#adventureBody .stat-cell {
  padding: 5px 6px;
  min-height: 30px;
}
#adventureBody .stat-cell .game-icon {
  width: 19px;
  height: 19px;
}
.skill-xp-meter {
  width: 100%;
  margin-top: 3px;
}
.skill-xp-meter progress {
  height: 5px;
  margin: 0 0 2px;
  border-width:1px;
}
.skill-xp-meter span {
  display: block;
  color:#c5d4c5;
  font-size: 8px;
  line-height: 1.1;
  white-space: nowrap;
}

.needs-attention {
  outline: 2px solid #ffd875 !important;
  outline-offset: 2px;
  animation: attention-glow 1.2s ease-in-out infinite;
}
@keyframes attention-glow {
  50% {
    box-shadow:0 0 14px 3px #ffd87590;
  }
}
.attention-popup {
  position: absolute;
  z-index: 15;
  right: 12px;
  bottom: 42px;
  width: min(300px, calc(100% - 24px));
  padding: 14px;
  background:#2d2923f5;
  border:1px solid #eccb79;
  border-radius:6px;
  box-shadow:0 8px 24px #0005;
  color:#f4e8c8;
}
.attention-popup[hidden] {
  display: none;
}
.attention-popup strong {
  display: block;
  padding-right: 24px;
  color:#ffe19a;
  font-size: 14px;
}
.attention-popup p {
  margin: 8px 0;
  line-height: 1.45;
  font-size: 12px;
}
.attention-popup p + p {
  color:#c5d4c5;
}
.attention-popup .attention-dismiss {
  position: absolute;
  right: 6px;
  top: 6px;
  background:none;
  border:0;
  box-shadow:none;
  font-size: 19px;
}
@media (prefers-reduced-motion: reduce) {
  .needs-attention {
    animation: none;
    box-shadow:0 0 0 3px #ffd87540;
  }
}

/* Phone play: keep the map usable, then put the dashboard below it. */
@media (max-width: 700px) {
  html,
  body {
    min-width: 0;
    overflow-x: hidden;
  }
  header {
    padding: 0 8px;
  }
  .brand {
    font-size: 16px;
  }
  .audio-toolbar {
    min-height: 48px;
    align-items: stretch;
    gap: 4px;
    padding: 3px 6px;
  }
  .audio-toolbar .music-bar,
  .audio-toolbar .effects-bar {
    min-width: 0;
    font-size: 10px;
  }
  .client-bar {
    height: 22px;
    min-height: 22px;
    font-size: 10px;
  }
  .player-strip {
    min-height: 58px;
    padding: 5px 7px;
    gap: 5px;
    overflow: hidden;
  }
  .player-strip .currency-card img {
    width: 30px;
    height: 30px;
  }
  #currencyBalance {
    font-size: 17px;
  }
  .quick-tools button,
  .player-strip button {
    min-height: 36px;
    padding: 6px 7px;
  }
  .play-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(270px, 42dvh) minmax(285px, 1fr) 94px;
  }
  .world-panel {
    grid-column: 1;
    grid-row: 1;
  }
  aside {
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
    border-left:0;
    border-top:2px solid #92865c;
  }
  aside > .map-card {
    padding: 3px 6px;
  }
  #minimap {
    height: 64px;
  }
  .live-ranking {
    min-height: 34px;
  }
  #adventure {
    padding: 4px 6px;
  }
  #adventureTabs {
    gap: 2px;
    overflow: hidden;
  }
  #adventureTabs button {
    min-height: 45px;
    font-size: 8px;
    padding: 3px 1px;
  }
  #adventureTabs .game-icon {
    width: 18px;
    height: 18px;
  }
  #adventureBody .stat-cell {
    min-height: 44px;
    padding: 4px;
  }
  .skill-xp-meter span {
    font-size: 8px;
  }
  .chat-panel {
    grid-column: 1;
    grid-row: 3;
    min-height: 0;
  }
  #messages {
    min-height: 0;
    overflow: hidden;
  }
  #chatForm {
    height: 38px;
    min-height: 38px;
  }
  #chatForm input,
  #chatForm button,
  .chat-heading button {
    min-height: 34px;
  }
  .map-footer {
    display: none;
  }
}

/* Equipment reads as a loadout, with rarity and tradeoffs visible at a glance. */
.equipment-guide-card{border-left:4px solid var(--loot-color,#a3a69a);background:linear-gradient(135deg,#28352c,#17261f);padding:14px;margin:10px 0;border-radius:8px}
.gear-stat-bars{display:grid;grid-template-columns:1fr 1fr;gap:7px}.gear-stat-bars>div{display:flex;flex-direction:column;font-size:12px}.gear-stat-bars meter{width:100%;height:12px;accent-color:var(--loot-color)}
.equipment-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:15px;background:radial-gradient(ellipse,#40382d,#211f1b 75%);border:2px solid #897c52;border-radius:12px}
.equipment-grid .equipment-slot{min-height:88px;border:2px solid var(--loot-color,#5b4b36);background:#211f1b;font-size:11px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.equipment-slot[data-slot=helm]{grid-column:2}.equipment-slot[data-slot=weapon]{grid-column:1;grid-row:2}.equipment-slot[data-slot=armour]{grid-column:2;grid-row:2}.equipment-slot[data-slot=shield]{grid-column:3;grid-row:2}.equipment-slot[data-slot=legs]{grid-column:2;grid-row:3}.equipment-slot[data-slot=cape]{grid-column:1;grid-row:3}.equipment-slot[data-slot=necklace]{grid-column:3;grid-row:3}
.inventory-slot[data-rarity]{border-color:var(--loot-color)!important;box-shadow:inset 0 -3px var(--loot-color)}.gear-comparison{padding:8px;background:#211f1b;color:#d5e8d0;font-size:12px}
