:root {
  --bg: #07080d;
  --panel: rgba(12, 14, 21, 0.84);
  --line: rgba(255, 255, 255, 0.13);
  --text: #f7efe2;
  --muted: rgba(247, 239, 226, 0.66);
  --gold: #f0b853;
  --red: #d14a3d;
  --blue: #5ba8ff;
  --violet: #955cff;
  --mint: #37e5b2;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, sans-serif;
}

body {
  overflow-x: hidden;
}

button,
a {
  font: inherit;
}

.client {
  min-height: 100vh;
  padding: 18px;
  background:
    radial-gradient(circle at 70% 0%, rgba(149, 92, 255, 0.18), transparent 35%),
    radial-gradient(circle at 16% 28%, rgba(209, 74, 61, 0.16), transparent 32%),
    linear-gradient(135deg, #06070d, #15121d 48%, #080f13);
}

.topbar {
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  gap: 18px;
  padding: 12px 16px;
  background: rgba(7, 8, 13, 0.86);
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.34);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sigil {
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  border: 2px solid #ffd98a;
  background: linear-gradient(145deg, #381a1b, #101a2f);
  color: #ffe0a0;
  font: 900 24px Cinzel, serif;
  box-shadow: inset 0 0 20px rgba(240, 184, 83, 0.22), 0 0 24px rgba(149, 92, 255, 0.25);
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font: 900 clamp(24px, 3vw, 38px) Cinzel, serif;
}

.brand p,
.muted,
.panel-head span,
.wallet span,
.market-list span,
.item span,
.guild-box span,
.raid-card span {
  color: var(--muted);
}

nav {
  display: flex;
  gap: 8px;
}

nav a,
.wallet,
.hotspot,
.skillbar button,
.primary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  text-decoration: none;
}

nav a {
  padding: 10px 13px;
  font-weight: 900;
}

.wallet {
  justify-self: end;
  min-width: 170px;
  padding: 10px 14px;
  text-align: right;
}

.wallet strong {
  display: block;
  margin-top: 3px;
  color: var(--mint);
}

.layout {
  height: calc(100vh - 112px);
  min-height: 700px;
  display: grid;
  grid-template-columns: 282px minmax(560px, 1fr) 306px;
  gap: 14px;
  margin-top: 14px;
}

.panel,
.world {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.4);
}

.panel {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 900;
}

.panel-head b {
  color: var(--mint);
}

.portrait {
  position: relative;
  height: 220px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(149, 92, 255, 0.18), rgba(209, 74, 61, 0.08)),
    linear-gradient(145deg, #11192b, #190d12);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.portrait i {
  position: absolute;
  display: block;
}

.wing {
  width: 104px;
  height: 142px;
  top: 34px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(91, 168, 255, 0.3));
  clip-path: polygon(0 18%, 100% 0, 82% 28%, 100% 42%, 70% 50%, 94% 70%, 50% 66%, 55% 100%, 22% 74%);
  opacity: 0.9;
}

.wing.left {
  left: 26px;
  transform: scaleX(-1) rotate(-11deg);
}

.wing.right {
  right: 26px;
  transform: rotate(-11deg);
}

.helm {
  width: 42px;
  height: 38px;
  top: 62px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #ffe6a4, #7b372e);
  clip-path: polygon(50% 0, 82% 32%, 70% 100%, 30% 100%, 18% 32%);
}

.body {
  width: 76px;
  height: 92px;
  top: 98px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #334468, #b94338);
  clip-path: polygon(26% 0, 74% 0, 100% 100%, 0 100%);
}

.blade {
  width: 9px;
  height: 126px;
  top: 76px;
  right: 66px;
  background: linear-gradient(180deg, #fff6cb, #68dfff 62%, #513fe2);
  transform: rotate(22deg);
  box-shadow: 0 0 18px rgba(91, 168, 255, 0.55);
}

h2 {
  font: 900 24px Cinzel, serif;
}

.bars {
  display: grid;
  gap: 10px;
}

.bars label {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 10px;
  font-weight: 900;
}

.bars i {
  height: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--line);
  overflow: hidden;
}

.bars i::before {
  content: "";
  display: block;
  width: var(--fill);
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--mint));
}

.primary {
  height: 50px;
  margin-top: auto;
  cursor: pointer;
  background: linear-gradient(135deg, var(--gold), var(--red));
  color: #170809;
  font-weight: 900;
}

.world {
  position: relative;
  overflow: hidden;
}

.world img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 4, 8, 0.08), rgba(3, 4, 8, 0.42)),
    linear-gradient(90deg, rgba(0, 0, 0, 0.4), transparent 24%, transparent 74%, rgba(0, 0, 0, 0.34));
  pointer-events: none;
}

.hotspot {
  position: absolute;
  padding: 8px 11px;
  background: rgba(7, 8, 13, 0.78);
  backdrop-filter: blur(8px);
  font-weight: 900;
  cursor: pointer;
}

.hotspot::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 6px;
  background: var(--mint);
  box-shadow: 0 0 12px var(--mint);
}

.forge {
  left: 24%;
  top: 41%;
}

.portal {
  left: 8%;
  top: 35%;
}

.arena {
  right: 22%;
  top: 32%;
}

.boss {
  right: 7%;
  top: 33%;
}

.market {
  right: 12%;
  bottom: 27%;
}

.raid-card {
  position: absolute;
  left: 18px;
  bottom: 96px;
  width: min(360px, calc(100% - 36px));
  padding: 14px;
  background: rgba(7, 8, 13, 0.82);
  border: 1px solid var(--line);
}

.raid-card strong {
  display: block;
  margin: 6px 0;
  color: #ff786d;
  font: 900 22px Cinzel, serif;
}

.skillbar {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  background: rgba(7, 8, 13, 0.86);
  border: 1px solid var(--line);
}

.skillbar button {
  min-height: 46px;
  color: #ffe0a0;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
}

.loot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.item {
  min-height: 84px;
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--line);
  text-align: center;
}

.item b {
  font-size: 24px;
  color: var(--gold);
}

.item.jewel {
  background: linear-gradient(145deg, rgba(55, 229, 178, 0.2), rgba(149, 92, 255, 0.16));
}

.item.wing {
  background: linear-gradient(145deg, rgba(91, 168, 255, 0.24), rgba(240, 184, 83, 0.14));
}

.market-list,
.guild-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid var(--line);
}

.market-list div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.market-list b {
  color: var(--mint);
  white-space: nowrap;
}

.guild-box strong {
  color: var(--gold);
  font: 900 20px Cinzel, serif;
}

.guild-box p {
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 1120px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  nav {
    overflow-x: auto;
  }

  .wallet {
    justify-self: stretch;
    text-align: left;
  }

  .layout {
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
  }

  .world {
    min-height: 640px;
  }
}

@media (max-width: 620px) {
  .client {
    padding: 10px;
  }

  .world {
    min-height: 560px;
  }

  .skillbar {
    grid-template-columns: repeat(3, 1fr);
  }

  .raid-card {
    bottom: 150px;
  }

  .hotspot {
    font-size: 12px;
    padding: 7px 8px;
  }
}
