:root {
  --scale: 1;
  --cyan: #57efff;
  --green: #4aff5d;
  --gold: #f2c86a;
  --red: #7e1321;
  --metal: #302f31;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; }
body {
  margin: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #050506;
  color: #eee;
  font-family: Arial, Helvetica, sans-serif;
}

button { font: inherit; cursor: pointer; }

.client {
  position: relative;
  width: 1048px;
  height: 768px;
  overflow: hidden;
  transform: scale(var(--scale));
  transform-origin: center center;
  background:
    linear-gradient(90deg, #21141d 0 22px, transparent 22px 728px, #231721 728px 100%),
    radial-gradient(circle at 50% 50%, #231820, #09070a 72%);
  border: 2px solid #331929;
  box-shadow: 0 0 0 1px #09070b inset, 0 0 38px #000;
}

.client::before,
.client::after {
  content: "";
  position: absolute;
  z-index: 7;
  pointer-events: none;
}

.client::before {
  left: 724px;
  top: 28px;
  bottom: 0;
  width: 18px;
  background: linear-gradient(90deg, #09090a, #625b61 38%, #141016 72%, #000);
  border-left: 1px solid #493541;
  border-right: 1px solid #000;
}

.client::after {
  left: 20px;
  top: 724px;
  width: 708px;
  height: 18px;
  background: linear-gradient(#60424f, #1a0f16 45%, #090609);
  border-top: 1px solid #7e5a67;
}

.chat-window {
  position: absolute;
  left: 27px;
  top: 27px;
  width: 700px;
  height: 132px;
  border: 2px solid #5a3341;
  background:
    linear-gradient(rgba(30, 6, 10, .68), rgba(12, 3, 5, .82)),
    radial-gradient(circle at 40% 0, rgba(95, 33, 37, .5), transparent 55%);
  box-shadow: 0 0 0 1px #13070a inset, 0 0 18px rgba(0, 0, 0, .9) inset;
  z-index: 5;
}

.chat-lines {
  height: 100%;
  padding: 4px 24px 4px 4px;
  overflow: hidden;
  font: 11px/1.25 "Trebuchet MS", Arial, sans-serif;
}

.chat-lines p {
  margin: 0;
  color: var(--cyan);
  text-shadow: 0 1px 0 #000;
}

.chat-lines b {
  color: #6dff5b;
  font-weight: 700;
}

.scrollbar {
  position: absolute;
  right: 2px;
  top: 17px;
  width: 16px;
  height: 92px;
  background: #efeff0;
}

.scrollbar i {
  display: block;
  width: 100%;
  height: 36px;
  margin-top: 74px;
  background: #9c9a9b;
}

.chat-tabs {
  position: absolute;
  z-index: 6;
  left: 30px;
  top: 161px;
  height: 18px;
  width: 240px;
  display: flex;
  gap: 3px;
  color: #fff;
  font: 13px/18px Arial, sans-serif;
}

.chat-tabs span {
  min-width: 69px;
  padding: 0 9px;
  background: linear-gradient(#34333a, #070708);
  border: 1px solid #77717a;
  box-shadow: 0 0 0 1px #000 inset;
}

.chat-tabs i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 7px;
  background: #4aff5d;
  border: 1px solid #052e05;
}

.viewport {
  position: absolute;
  left: 23px;
  top: 188px;
  width: 706px;
  height: 535px;
  overflow: hidden;
  border: 2px solid #252027;
  background: #161a27;
  z-index: 2;
}

.viewport canvas {
  display: block;
  image-rendering: pixelated;
}

.client-error {
  position: absolute;
  z-index: 30;
  left: 35px;
  top: 202px;
  max-width: 660px;
  padding: 8px 10px;
  border: 1px solid #ff7488;
  background: rgba(24, 0, 6, .92);
  color: #fff;
  font: 700 12px/1.35 Arial, sans-serif;
  text-shadow: 0 1px 1px #000;
}

.right-panel {
  position: absolute;
  z-index: 8;
  right: 5px;
  top: 15px;
  width: 302px;
  height: 758px;
  border: 2px solid #3a1827;
  background:
    linear-gradient(90deg, #1a0b13, #31252a 4%, #111 8%, transparent 9% 91%, #111 92%, #31252a 96%, #170a11),
    linear-gradient(#25151c, #0b090b 40%, #2a0e18);
  box-shadow: 0 0 0 1px #000 inset, 0 0 20px #000;
}

.char-card {
  position: relative;
  height: 101px;
  margin: 10px 8px 7px;
  border: 2px solid #5b2638;
  background:
    linear-gradient(180deg, rgba(10, 8, 10, .84), rgba(70, 14, 26, .55)),
    radial-gradient(circle at 50% 28%, #4c2634, #13090d 62%);
  box-shadow: 0 0 0 1px #000 inset, 0 7px 8px rgba(0,0,0,.8);
}

.win-btn {
  position: absolute;
  top: -1px;
  width: 20px;
  height: 20px;
  border: 1px solid #8b8990;
  background: linear-gradient(#5e6472, #11131a);
}

.win-btn.min { right: 21px; }
.win-btn.close { right: 0; }
.win-btn.min::before { content: ""; display: block; width: 12px; height: 2px; margin: 12px 3px 0; background: #cbd1df; }
.win-btn.close::before { content: "×"; color: #e4e7ef; font-size: 21px; line-height: 16px; }

.avatar-ring {
  position: absolute;
  left: 39px;
  top: 39px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font: 700 13px Georgia, serif;
  background: radial-gradient(circle, #70421a, #1b0c08 70%);
  border: 2px solid #c99142;
}

.char-card h1 {
  position: absolute;
  left: 91px;
  top: 27px;
  width: 120px;
  margin: 0;
  text-align: center;
  color: #fff;
  font: 700 20px/1 Arial, sans-serif;
  text-shadow: 0 2px 2px #000;
}

.levelbar {
  position: absolute;
  left: 91px;
  top: 57px;
  width: 138px;
  height: 16px;
  border: 1px solid #bba9b3;
  background: #151018;
}

.levelbar span {
  position: absolute;
  inset: 0;
  text-align: center;
  color: #fff;
  font: 700 11px/15px Arial, sans-serif;
}

.candle {
  position: absolute;
  bottom: 6px;
  width: 7px;
  height: 27px;
  background: linear-gradient(#f2a300, #643300);
  box-shadow: 0 -5px 10px #ffbc18;
}

.candle.left { left: 25px; }
.candle.right { right: 25px; }

.tabs {
  height: 34px;
  display: grid;
  grid-template-columns: 75px 68px 61px 29px 49px;
  gap: 2px;
  margin: 0 6px;
}

.tabs button,
.attr {
  border: 1px solid #6d5b63;
  color: #eee;
  background: linear-gradient(#6c6970, #1d1b1e 44%, #070607);
  font: 700 15px/1 "Times New Roman", serif;
  text-transform: capitalize;
  text-shadow: 0 1px 2px #000;
}

.tabs .red {
  color: #d20b17;
  font-weight: 900;
}

.bag {
  position: relative;
  margin: 7px 14px 0;
  height: 249px;
  border: 2px solid #342328;
  background:
    linear-gradient(rgba(255,255,255,.05), transparent 20%),
    #090909;
  box-shadow: 0 0 0 1px #000 inset;
}

.slot-grid {
  position: absolute;
  inset: 13px 14px;
  display: grid;
  grid-template-columns: repeat(6, 34px);
  grid-auto-rows: 38px;
  gap: 3px;
}

.slot,
.hot-slot {
  position: relative;
  border: 1px solid #272323;
  background:
    var(--icon),
    radial-gradient(circle at 50% 45%, rgba(90, 88, 88, .18), transparent 55%),
    #0b0b0b;
  background-repeat: no-repeat;
  background-size: 512px 512px, auto, auto;
  background-position: var(--x, 0) var(--y, 0), center, center;
  box-shadow: 0 0 0 1px #000 inset;
}

.slot.empty,
.hot-slot.empty {
  background-image: radial-gradient(circle at 50% 45%, rgba(90, 88, 88, .15), transparent 55%);
}

.qty {
  position: absolute;
  right: 2px;
  bottom: 1px;
  color: #fff;
  font: 700 12px/1 Arial, sans-serif;
  text-shadow: 0 1px 2px #000;
}

.meters {
  position: relative;
  margin: 7px 7px 0;
  height: 92px;
  border-top: 2px solid #47313a;
  background: linear-gradient(180deg, #171215, #591620);
}

.load-row {
  height: 28px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 0 8px;
  color: #fff;
  font: 700 11px Arial, sans-serif;
  text-align: center;
}

.bar-row {
  position: relative;
  display: grid;
  grid-template-columns: 24px 92px 68px;
  align-items: center;
  gap: 4px;
  height: 18px;
  margin-left: 7px;
  color: #fff;
  font: 700 11px Arial, sans-serif;
}

.bar-row b { text-align: right; }
.bar-row i {
  height: 12px;
  border: 1px solid #989898;
  background: #070707;
  padding: 1px;
}

.bar-row em {
  display: block;
  height: 100%;
  width: 100%;
}

.hp em { background: linear-gradient(#ff6a67, #d10023); }
.mp em { background: linear-gradient(#62b8ff, #004bff); }
.sp em { background: linear-gradient(#ffbf57, #ff5f1b); }

.mini-mail {
  position: absolute;
  right: 8px;
  top: 36px;
  width: 38px;
  height: 22px;
  display: grid;
  place-items: center;
  background: linear-gradient(#ddd, #897e83);
  border: 1px solid #10080b;
  color: #5d0d16;
}

.mini-mail strong {
  position: absolute;
  right: -5px;
  top: -7px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #d80018;
  color: #fff;
  font-size: 11px;
}

.coin {
  position: absolute;
  right: 73px;
  top: 43px;
  font: 700 11px Arial, sans-serif;
}

.map-panel {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 7px;
  height: 165px;
  border-top: 2px solid #4b303a;
  background: linear-gradient(#140d10, #1d1116);
}

.map-title {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 18px;
  text-align: center;
  color: #fff;
  font: 700 11px/18px Arial, sans-serif;
  border: 1px solid #4d3b40;
  background: linear-gradient(#5d565a, #0b0a0b);
}

.stance {
  position: absolute;
  left: 14px;
  top: 30px;
  display: flex;
  gap: 5px;
}

.stance button {
  width: 31px;
  height: 31px;
  border: 1px solid #5d4a51;
  background: #050505;
  color: #f0c866;
}

.banner {
  position: absolute;
  left: 125px;
  top: 24px;
  width: 27px;
  height: 88px;
  text-align: center;
  padding-top: 6px;
  color: #fff;
  font: 700 11px Arial, sans-serif;
  background: linear-gradient(#5e141b, #941b2a 45%, #4a0d15);
  clip-path: polygon(0 0, 100% 0, 100% 86%, 50% 100%, 0 86%);
}

.minimap {
  position: absolute;
  right: 16px;
  top: 31px;
  width: 105px;
  height: 126px;
  border: 2px solid #44323b;
  background: #929bc4;
  overflow: hidden;
}

.minimap i {
  position: absolute;
  inset: 12px 4px 0;
  background:
    linear-gradient(160deg, transparent 0 34%, #1f243b 35% 58%, transparent 59%),
    linear-gradient(10deg, transparent 0 43%, #2f354f 44% 62%, transparent 63%),
    #aab2d7;
}

.minimap::after {
  content: "";
  position: absolute;
  left: 53px;
  top: 48px;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-bottom: 11px solid #ff2a11;
}

.attr {
  position: absolute;
  left: 22px;
  top: 90px;
  width: 86px;
  height: 23px;
  font-size: 12px;
}

.shields {
  position: absolute;
  left: 16px;
  bottom: 10px;
  display: flex;
  gap: 31px;
  color: #ff3131;
  font: 700 15px Arial, sans-serif;
}

.hotbar {
  position: absolute;
  z-index: 9;
  left: 24px;
  bottom: 0;
  width: 704px;
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(#190b12, #070607);
  border-top: 2px solid #382431;
}

.orb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #dcfaff, #5a8dff 45%, #071936 72%);
  box-shadow: 0 0 8px #6bdfff;
}

.hot-slots {
  display: flex;
  gap: 8px;
}

.hot-slot {
  width: 40px;
  height: 40px;
  border-color: #501827;
  background-color: #080808;
}

.scene-thumb {
  margin-left: auto;
  width: 105px;
  height: 40px;
  background:
    radial-gradient(circle at 70% 15%, #ffedff 0 5px, transparent 6px),
    linear-gradient(175deg, transparent 0 46%, #202944 47% 100%),
    linear-gradient(#46446a, #0d1223);
  border: 1px solid #482031;
}

.status-line {
  position: absolute;
  left: 0;
  bottom: -3px;
  margin: 0;
  color: #e8eefc;
  font: 14px Arial, sans-serif;
  text-shadow: 0 1px 1px #000;
}
