* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #020811;
}

.emrp-body {
  min-height: 100vh;
  margin: 0;
  color: #eef6ff;
  font-family: Inter, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(circle at 50% 34%, rgba(18, 128, 176, .32), transparent 22%),
    radial-gradient(circle at 28% 64%, rgba(255, 119, 31, .18), transparent 26%),
    linear-gradient(180deg, rgba(2, 8, 17, .76), #020811 78%),
    url("../img/bg/status.png") center top / cover fixed no-repeat;
  overflow-x: hidden;
}

.emrp-profile {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.emrp-back {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  margin-bottom: 14px;
  border: 1px solid rgba(255, 139, 44, .55);
  border-radius: 999px;
  color: #ffd899;
  background: rgba(4, 16, 31, .72);
  text-decoration: none;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.emrp-alert {
  border: 1px solid rgba(255, 63, 118, .55);
  border-radius: 10px;
  padding: 18px 20px;
  background: rgba(91, 8, 38, .74);
  color: #ffd8e4;
  font-weight: 900;
}

.emrp-hero {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) minmax(340px, 1.3fr) minmax(170px, 1fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 14px;
}

.emrp-level-wing {
  min-height: 50px;
  padding: 10px 22px 10px 20px;
  color: #fff;
  background:
    linear-gradient(105deg, rgba(28, 103, 171, .94), rgba(12, 48, 93, .9) 72%, transparent 72%),
    linear-gradient(180deg, rgba(61, 149, 237, .35), rgba(3, 16, 34, .72));
  border: 1px solid rgba(54, 146, 235, .5);
  box-shadow: inset 0 1px rgba(255,255,255,.14), 0 12px 28px rgba(0,0,0,.35);
}

.emrp-wing-left {
  border-radius: 7px 28px 7px 7px;
  justify-self: end;
  width: 240px;
}

.emrp-wing-right {
  border-radius: 28px 7px 7px 7px;
  justify-self: start;
  width: 240px;
  text-align: right;
  background:
    linear-gradient(255deg, rgba(28, 103, 171, .94), rgba(12, 48, 93, .9) 72%, transparent 72%),
    linear-gradient(180deg, rgba(61, 149, 237, .35), rgba(3, 16, 34, .72));
}

.emrp-level-wing strong,
.emrp-level-wing span {
  display: block;
  line-height: 1.15;
  text-shadow: 0 2px 4px rgba(0,0,0,.45);
}

.emrp-level-wing strong {
  color: #ff8b2c;
  font-size: 15px;
  font-weight: 950;
}

.emrp-level-wing span {
  margin-top: 3px;
  color: #e7f1ff;
  font-size: 12px;
  font-weight: 900;
}

.emrp-level-wing b {
  color: #ff8b2c;
}

.emrp-char-head {
  text-align: center;
  min-width: 0;
}

.emrp-char-head img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 8px;
  filter: drop-shadow(0 0 12px rgba(255,139,44,.55));
}

.emrp-char-head h1 {
  display: inline;
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3.2vw, 34px);
  line-height: 1.05;
  font-weight: 500;
  letter-spacing: 0;
  vertical-align: middle;
}

.emrp-char-head p {
  margin: 7px 0 0;
  color: #9fb0c2;
  font-size: 13px;
  line-height: 1.35;
}

.emrp-char-head p span {
  margin-left: 10px;
}

.emrp-char-head b {
  color: #f5f7ff;
}

.emrp-online-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 8px;
  border-radius: 50%;
  background: #ff4e78;
  box-shadow: 0 0 12px rgba(255,78,120,.85);
  vertical-align: middle;
}

.emrp-online-dot.is-online {
  background: #3cff7c;
  box-shadow: 0 0 14px rgba(60,255,124,.9);
}

.emrp-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  width: min(720px, 100%);
  margin: 0 auto 14px;
  padding: 7px;
  border: 1px solid rgba(39, 144, 210, .44);
  border-radius: 10px;
  background: rgba(3, 28, 49, .82);
}

.emrp-stats div {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  gap: 6px;
  border-radius: 8px;
  border: 1px solid rgba(56, 143, 203, .36);
  background: rgba(9, 38, 67, .9);
  white-space: nowrap;
}

.emrp-stats span {
  color: #dce9f7;
  font-size: 12px;
  font-weight: 900;
}

.emrp-stats b {
  color: #ff8b2c;
  font-size: 13px;
  font-weight: 950;
}

.emrp-layout {
  display: grid;
  grid-template-columns: minmax(520px, 1fr) 320px;
  gap: 12px;
  align-items: start;
  justify-content: center;
  width: min(910px, 100%);
  margin: 0 auto;
}

.emrp-equipment {
  display: grid;
  grid-template-columns: 120px 58px 120px 58px 120px;
  grid-template-rows: 120px 120px 120px;
  grid-template-areas:
    "pet pendant helm wing wings"
    "right ring1 armor ring2 left"
    "gloves small pants small2 boots";
  gap: 20px 28px;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
}

.emrp-eq-slot {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-width: 0;
  border: 1px solid rgba(49, 150, 211, .38);
  border-radius: 6px;
  background: rgba(6, 42, 67, .78);
  box-shadow: inset 0 1px rgba(255,255,255,.06);
}

.eq-pet { grid-area: pet; }
.eq-pendant { grid-area: pendant; width: 56px; height: 56px; justify-self: center; align-self: start; }
.eq-helm { grid-area: helm; }
.eq-wings { grid-area: wings; }
.eq-right { grid-area: right; }
.eq-left { grid-area: left; }
.eq-armor { grid-area: armor; }
.eq-ring1 { grid-area: ring1; width: 56px; height: 56px; justify-self: center; }
.eq-ring2 { grid-area: ring2; width: 56px; height: 56px; justify-self: center; }
.eq-gloves { grid-area: gloves; }
.eq-pants { grid-area: pants; }
.eq-boots { grid-area: boots; }

.emrp-empty-slot {
  display: grid;
  place-items: center;
  width: 70%;
  height: 70%;
  border: 1px dashed rgba(110, 154, 192, .18);
  border-radius: 6px;
  color: rgba(174, 198, 220, .18);
  font-size: 10px;
  font-weight: 900;
}

.emrp-empty-slot i {
  font-style: normal;
}

.emrp-live-item {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 30px;
  color: #fff;
  outline: none;
}

.emrp-live-item > b {
  position: absolute;
  right: 4px;
  top: 3px;
  z-index: 3;
  color: #f5d55c;
  font-size: 10px;
  line-height: 1;
  text-shadow: 0 1px 3px #000;
}

.emrp-real-icon,
.emrp-live-item .em-clean-item-badge {
  width: 76%;
  height: 76%;
  min-width: 28px;
  min-height: 28px;
  border-radius: 6px;
}

.emrp-live-item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  image-rendering: auto;
}

.emrp-real-icon i,
.emrp-live-item .em-clean-item-badge i {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  border: 1px solid rgba(46, 205, 139, .42);
  background: radial-gradient(circle, rgba(21, 184, 116, .46), rgba(10, 47, 73, .92));
  color: #c7fff0;
  font-size: 13px;
  font-style: normal;
  font-weight: 950;
  text-shadow: 0 1px 3px #000;
}

.emrp-live-item.rar-excellent .emrp-real-icon i,
.emrp-live-item.rar-excellent .em-clean-item-badge i {
  color: #00ff9a;
  border-color: rgba(0, 255, 154, .65);
}

.emrp-live-item.rar-ancient .emrp-real-icon i,
.emrp-live-item.rar-ancient .em-clean-item-badge i {
  color: #f7c64b;
  border-color: rgba(247, 198, 75, .7);
}

.emrp-side {
  min-width: 0;
  border: 1px solid rgba(48, 146, 214, .44);
  border-radius: 10px;
  background: rgba(5, 30, 54, .84);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}

.emrp-tabbar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 7px;
  border-bottom: 1px solid rgba(83, 160, 220, .32);
  background: rgba(6, 34, 60, .86);
}

.emrp-tabbar button {
  min-height: 32px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #9baec0;
  background: transparent;
  font: 800 12px/1 Inter, Segoe UI, Arial, sans-serif;
}

.emrp-tabbar button.is-active {
  color: #fff;
  border-color: rgba(255, 139, 44, .55);
  background: linear-gradient(180deg, #ff8d32, #ff681f);
  box-shadow: 0 0 18px rgba(255, 105, 32, .4);
}

.emrp-panel {
  display: none;
  min-height: 398px;
  padding: 10px;
}

.emrp-panel.is-active {
  display: block;
}

.emrp-score-head {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  min-height: 42px;
  margin: -1px -1px 10px;
  padding: 0 12px;
  border-radius: 6px 6px 0 0;
  border-bottom: 3px solid #ff7d25;
  background: linear-gradient(180deg, rgba(27, 71, 127, .92), rgba(10, 38, 73, .92));
}

.emrp-score-head span,
.emrp-score-head em {
  color: #f1f5ff;
  font-size: 12px;
  font-weight: 900;
  font-style: normal;
}

.emrp-score-head strong {
  color: #ff8b2c;
  font-size: 18px;
  font-weight: 950;
}

.emrp-option-list {
  display: grid;
  gap: 0;
}

.emrp-option-list div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 30px;
  border-bottom: 1px solid rgba(140, 177, 209, .16);
  color: #8fb3de;
  font-size: 12px;
  font-weight: 800;
}

.emrp-option-list b {
  color: #fff000;
  font-weight: 950;
}

.emrp-empty-text {
  margin: 20px 8px;
  color: #9fb0c2;
  font-size: 13px;
  font-weight: 800;
}

.emrp-inventory-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 2px;
  width: 100%;
  max-height: 374px;
  padding: 4px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #426b91 rgba(255,255,255,.08);
}

.emrp-inv-cell {
  aspect-ratio: 1 / 1;
  min-width: 0;
  border: 1px solid rgba(78, 123, 166, .42);
  border-radius: 4px;
  background: rgba(14, 40, 69, .8);
}

.emrp-inv-cell .emrp-empty-slot {
  width: 100%;
  height: 100%;
  border: 0;
}

.emrp-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  z-index: 80;
  width: 240px;
  max-width: min(82vw, 260px);
  padding: 12px 14px;
  border: 1px solid rgba(68, 151, 207, .5);
  border-radius: 4px;
  background: rgba(2, 9, 15, .96);
  box-shadow: 0 16px 40px rgba(0,0,0,.55);
  color: #eaf7ff;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity .16s ease, transform .16s ease;
}

.emrp-live-item:hover .emrp-tip,
.emrp-live-item:focus .emrp-tip {
  opacity: 1;
  transform: translate(-50%, 0);
}

.emrp-tip__name {
  color: #00ff8a;
  font-size: 14px;
  font-weight: 950;
}

.emrp-tip__quality {
  margin: 4px 0 7px;
  color: #f8c94f;
  font-size: 12px;
  font-weight: 900;
}

.emrp-tip__line {
  color: #edf6ff;
  font-size: 12px;
  line-height: 1.25;
}

.emrp-tip__section {
  margin-top: 8px;
  color: #00ff8a;
  font-size: 12px;
  font-weight: 950;
}

.emrp-tip__option {
  color: #00f595;
  font-size: 12px;
  line-height: 1.24;
}

.emrp-tip__hex {
  margin-top: 7px;
  color: #6f8ba2;
  font-size: 8px;
  word-break: break-all;
}

@media (max-width: 980px) {
  .emrp-profile {
    width: min(100% - 20px, 760px);
    padding-top: 16px;
  }

  .emrp-hero {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .emrp-wing-left,
  .emrp-wing-right {
    width: min(100%, 360px);
    justify-self: center;
    text-align: center;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(28, 103, 171, .94), rgba(12, 48, 93, .9));
  }

  .emrp-char-head {
    order: -1;
  }

  .emrp-layout {
    grid-template-columns: 1fr;
    width: min(100%, 640px);
  }

  .emrp-side {
    width: min(100%, 420px);
    margin: 0 auto;
  }
}

@media (max-width: 680px) {
  .emrp-profile {
    width: min(100% - 14px, 520px);
  }

  .emrp-char-head h1 {
    display: block;
    margin-top: 6px;
  }

  .emrp-char-head p span {
    display: block;
    margin: 5px 0 0;
  }

  .emrp-stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .emrp-equipment {
    grid-template-columns: 1fr 52px 1fr;
    grid-template-rows: repeat(6, auto);
    grid-template-areas:
      "pet pendant helm"
      "right armor left"
      "ring1 armor ring2"
      "gloves pants boots"
      "wings wings wings";
    gap: 10px;
    padding: 8px 0;
  }

  .emrp-eq-slot {
    min-height: 92px;
  }

  .eq-pendant,
  .eq-ring1,
  .eq-ring2 {
    min-height: 52px;
  }

  .eq-wings {
    width: 120px;
    justify-self: center;
  }

  .emrp-panel {
    min-height: 0;
  }

  .emrp-inventory-grid {
    grid-template-columns: repeat(6, 1fr);
    max-height: 360px;
  }

  .emrp-score-head {
    grid-template-columns: 1fr auto;
  }

  .emrp-score-head em {
    grid-column: 1 / -1;
    padding-bottom: 6px;
  }
}

@media (max-width: 420px) {
  .emrp-stats {
    grid-template-columns: 1fr;
  }

  .emrp-equipment {
    grid-template-columns: 1fr 46px 1fr;
  }

  .emrp-eq-slot {
    min-height: 78px;
  }

  .emrp-inventory-grid {
    grid-template-columns: repeat(5, 1fr);
  }

  .emrp-tip {
    width: 220px;
  }
}

/* EternalMU cosmic skin */
.emrp-body {
  background:
    radial-gradient(circle at 50% 18%, rgba(143, 42, 255, .24), transparent 24%),
    radial-gradient(circle at 31% 44%, rgba(255, 116, 30, .16), transparent 28%),
    radial-gradient(circle at 70% 48%, rgba(0, 195, 255, .12), transparent 28%),
    linear-gradient(180deg, rgba(2, 5, 12, .88), rgba(3, 2, 9, .96) 62%, #030209),
    url("../img/bg/status.png") center top / cover fixed no-repeat;
}

.emrp-body:before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 0, rgba(255, 129, 35, .08) 49%, rgba(131, 66, 255, .14) 50%, rgba(0, 201, 255, .08) 51%, transparent 100%),
    radial-gradient(ellipse at 50% 46%, rgba(23, 218, 255, .16), transparent 34%),
    radial-gradient(ellipse at 50% 100%, rgba(255, 83, 22, .11), transparent 44%);
  mix-blend-mode: screen;
}

.emrp-profile {
  padding-top: 28px;
}

.emrp-back {
  border-color: rgba(255, 143, 36, .78);
  color: #fff0bd;
  background:
    linear-gradient(180deg, rgba(21, 10, 33, .92), rgba(7, 5, 14, .92)),
    radial-gradient(circle at 50% 0, rgba(255, 143, 36, .24), transparent 70%);
  box-shadow: 0 0 18px rgba(255, 113, 31, .18), inset 0 1px rgba(255,255,255,.12);
}

.emrp-level-wing {
  background:
    linear-gradient(105deg, rgba(33, 84, 158, .9), rgba(11, 33, 68, .88) 68%, rgba(255, 129, 31, .12) 68%),
    radial-gradient(circle at 0 0, rgba(128, 73, 255, .24), transparent 58%);
  border-color: rgba(72, 166, 240, .54);
  box-shadow: 0 0 28px rgba(74, 159, 255, .14), inset 0 1px rgba(255,255,255,.16);
}

.emrp-wing-right {
  background:
    linear-gradient(255deg, rgba(33, 84, 158, .9), rgba(11, 33, 68, .88) 68%, rgba(255, 129, 31, .12) 68%),
    radial-gradient(circle at 100% 0, rgba(128, 73, 255, .24), transparent 58%);
}

.emrp-level-wing strong,
.emrp-level-wing b,
.emrp-stats b,
.emrp-score-head strong,
.emrp-option-list b {
  color: #ff8b2f;
  text-shadow: 0 0 10px rgba(255, 122, 36, .46);
}

.emrp-char-head img {
  border: 1px solid rgba(255, 143, 36, .58);
  background: radial-gradient(circle, rgba(127, 60, 255, .34), rgba(5, 13, 27, .7));
  box-shadow: 0 0 22px rgba(129, 67, 255, .42), 0 0 18px rgba(255, 119, 31, .22);
}

.emrp-char-head h1 {
  color: #fff8ec;
  text-shadow: 0 0 18px rgba(120, 70, 255, .35), 0 2px 8px rgba(0,0,0,.8);
}

.emrp-char-head p {
  color: #9fc6e8;
}

.emrp-stats {
  border-color: rgba(42, 180, 245, .48);
  background: linear-gradient(180deg, rgba(4, 24, 45, .76), rgba(7, 10, 27, .82));
  box-shadow: 0 0 28px rgba(0, 188, 255, .08), inset 0 1px rgba(255,255,255,.08);
}

.emrp-stats div {
  border-color: rgba(48, 162, 236, .45);
  background:
    linear-gradient(180deg, rgba(11, 50, 88, .88), rgba(8, 22, 51, .88)),
    radial-gradient(circle at 50% 0, rgba(135, 72, 255, .18), transparent 70%);
}

.emrp-layout {
  width: min(950px, 100%);
}

.emrp-equipment {
  position: relative;
}

.emrp-equipment:before {
  content: "";
  position: absolute;
  inset: -34px -50px;
  z-index: -1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 44%, rgba(0, 212, 255, .18), transparent 28%),
    radial-gradient(circle at 40% 60%, rgba(255, 119, 31, .12), transparent 34%),
    radial-gradient(circle at 64% 48%, rgba(137, 68, 255, .18), transparent 36%);
  filter: blur(10px);
}

.emrp-eq-slot {
  border-color: rgba(24, 163, 235, .55);
  background:
    linear-gradient(180deg, rgba(7, 41, 74, .68), rgba(5, 13, 31, .78)),
    radial-gradient(circle at 50% 50%, rgba(0, 219, 184, .18), transparent 68%);
  box-shadow:
    0 0 22px rgba(20, 161, 236, .12),
    inset 0 0 26px rgba(24, 147, 210, .1),
    inset 0 1px rgba(255,255,255,.09);
}

.emrp-empty-slot {
  border-color: rgba(78, 143, 204, .22);
  color: rgba(165, 205, 237, .22);
  background: rgba(6, 18, 37, .42);
}

.emrp-real-icon i,
.emrp-live-item .em-clean-item-badge i {
  color: #eaffff;
  border-color: rgba(34, 243, 215, .42);
  background:
    radial-gradient(circle at 48% 35%, rgba(0, 238, 190, .52), rgba(13, 87, 93, .62) 48%, rgba(15, 20, 54, .92));
  box-shadow: inset 0 0 18px rgba(38, 255, 219, .18), 0 0 14px rgba(0, 240, 218, .18);
}

.emrp-side {
  border-color: rgba(31, 151, 226, .58);
  background:
    linear-gradient(180deg, rgba(6, 31, 58, .91), rgba(5, 13, 32, .94)),
    radial-gradient(circle at 50% 0, rgba(128, 72, 255, .18), transparent 64%);
  box-shadow: 0 22px 50px rgba(0,0,0,.42), 0 0 26px rgba(0, 190, 255, .08);
}

.emrp-tabbar {
  background: rgba(6, 25, 48, .9);
  border-bottom-color: rgba(49, 160, 236, .38);
}

.emrp-tabbar button {
  color: #9bbce0;
}

.emrp-tabbar button.is-active {
  color: #fff;
  border-color: rgba(255, 211, 121, .72);
  background: linear-gradient(180deg, #ffad52, #ff681f);
  box-shadow: 0 0 22px rgba(255, 104, 31, .48), inset 0 1px rgba(255,255,255,.34);
}

.emrp-score-head {
  border-bottom-color: #ff7b23;
  background:
    linear-gradient(180deg, rgba(21, 76, 139, .9), rgba(9, 37, 75, .94)),
    radial-gradient(circle at 88% 0, rgba(255, 132, 30, .18), transparent 64%);
}

.emrp-option-list div {
  border-bottom-color: rgba(103, 161, 207, .18);
  color: #8cc4ff;
}

.emrp-inv-cell {
  border-color: rgba(73, 135, 195, .44);
  background:
    linear-gradient(180deg, rgba(11, 40, 74, .8), rgba(8, 24, 52, .82)),
    radial-gradient(circle at 50% 50%, rgba(0, 208, 255, .08), transparent 70%);
}

.emrp-tip {
  border-color: rgba(64, 183, 246, .6);
  background:
    linear-gradient(180deg, rgba(3, 10, 22, .98), rgba(7, 5, 16, .98)),
    radial-gradient(circle at 50% 0, rgba(119, 62, 255, .18), transparent 70%);
  box-shadow: 0 18px 42px rgba(0,0,0,.64), 0 0 24px rgba(0, 185, 255, .15);
}

.emrp-tip__name {
  color: #00ff9c;
}

.emrp-tip__quality {
  color: #ffca54;
}
