/*
================
Nicolas Cattolica - +54 9 381 509-0548
================
*/

:root {
  --text: #f8dfbf;
  --gold-soft: #ffefc6;
  --gold: #ffbe5a;
  --line-soft: rgba(255, 212, 158, 0.38);
  --line-hard: rgba(104, 51, 32, 0.9);
  --panel-top: rgba(51, 20, 71, 0.86);
  --panel-mid: rgba(29, 10, 43, 0.9);
  --panel-btm: rgba(10, 5, 19, 0.95);
  --shadow: 0 18px 34px rgba(0, 0, 0, 0.56);
  --font-body: "Marcellus SC", "Times New Roman", serif;
  --font-title: "Cinzel", "Times New Roman", serif;
  --font-alt: "Almendra SC", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-body);
  letter-spacing: 0.02em;
  cursor: url("../cursor/normal%20cursor.cur"), auto;
  background:
    radial-gradient(760px 320px at 18% -6%, rgba(255, 149, 54, 0.18), transparent 68%),
    radial-gradient(900px 460px at 88% 0%, rgba(140, 56, 197, 0.2), transparent 70%),
    linear-gradient(180deg, rgba(16, 6, 26, 0.26), rgba(9, 3, 18, 0.72)),
    url("../EJEMPLO.jpg") center top / cover no-repeat fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

a,
button,
[role="button"],
select,
label[for],
summary,
input[type="checkbox"],
input[type="radio"] {
  cursor: url("../cursor/link%20select.cur"), pointer !important;
}

input:not([type="checkbox"]):not([type="radio"]),
textarea,
[contenteditable="true"] {
  cursor: url("../cursor/text.cur"), text !important;
}

.form-grid .field,
.form-grid .field span,
.form-grid .mini-field span {
  cursor: url("../cursor/normal%20cursor.cur"), auto !important;
}

.portal-loader,
.portal-loader * {
  cursor: url("../cursor/busy.cur"), progress !important;
}

.scene-filter {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(12, 4, 22, 0.12) 0%, rgba(8, 2, 16, 0.38) 48%, rgba(7, 2, 15, 0.82) 100%),
    radial-gradient(900px 260px at 62% 53%, rgba(255, 123, 45, 0.16), transparent 72%);
}

.edge-flame {
  position: fixed;
  top: 0;
  bottom: 0;
  width: clamp(46px, 3.5vw, 82px);
  overflow: hidden;
  pointer-events: none;
  opacity: 0.42;
  opacity: clamp(0, calc((100vw - 980px) / 900), 0.42);
  mix-blend-mode: screen;
  z-index: 0;
}

.edge-flame::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 104vh;
  height: clamp(118px, 8.6vw, 168px);
  background: url("../llamas.gif") center 88% / 100% auto no-repeat;
  filter:
    saturate(1.08)
    brightness(1.03)
    contrast(1.01)
    drop-shadow(0 0 10px rgba(255, 137, 34, 0.28));
  transform-origin: center;
}

.edge-flame--left {
  left: clamp(1px, 0.2vw, 1px);
}

.edge-flame--left::before {
  transform: translate(-53%, -50%) rotate(90deg);
}

.edge-flame--right {
  right: clamp(1px, 0.2vw, 1px);
}

.edge-flame--right::before {
  transform: translate(-47%, -50%) rotate(-90deg);
}

@media (min-width: 1600px) {
  .edge-flame {
    width: clamp(54px, 3.4vw, 94px);
  }
}

@media (max-width: 1280px) {
  .edge-flame {
    width: clamp(34px, 3vw, 62px);
    opacity: 0.3;
  }
}

@media (max-width: 1100px) {
  .edge-flame {
    width: clamp(22px, 2.1vw, 42px);
    opacity: 0.16;
  }
}

.portal-loader {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 16px;
  background:
    radial-gradient(760px 320px at 12% 0%, rgba(255, 149, 54, 0.2), transparent 68%),
    radial-gradient(880px 420px at 88% 2%, rgba(140, 56, 197, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(10, 4, 19, 0.68), rgba(6, 2, 12, 0.9));
  backdrop-filter: blur(4px);
  transition: opacity 300ms ease, visibility 300ms ease;
}

.portal-loader[hidden] {
  display: none;
}

.portal-loader.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.portal-loader-card {
  position: relative;
  width: min(920px, 100%);
  border-radius: 18px;
  border: 1px solid rgba(255, 214, 158, 0.34);
  background: linear-gradient(180deg, rgba(51, 20, 71, 0.96), rgba(15, 6, 28, 0.95) 54%, rgba(10, 4, 19, 0.98));
  box-shadow: 0 26px 54px rgba(0, 0, 0, 0.62);
  overflow: hidden;
}

.portal-loader-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 214, 158, 0.06) 1px, transparent 1px) 0 0 / 56px 100%,
    linear-gradient(180deg, rgba(255, 214, 158, 0.06) 1px, transparent 1px) 0 0 / 100% 56px;
  pointer-events: none;
  opacity: 0.3;
}

.portal-loader-head,
.portal-loader-main,
.portal-loader-steps,
.portal-loader-bar {
  position: relative;
  z-index: 1;
}

.portal-loader-head {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid rgba(255, 214, 158, 0.2);
  font-family: var(--font-alt);
  font-size: clamp(12px, 1vw, 14px);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f0ddc2;
}

.portal-loader-main {
  display: grid;
  grid-template-columns: minmax(110px, 150px) 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 18px 18px;
}

.portal-loader-logo {
  width: clamp(96px, 12vw, 144px);
  height: auto;
  filter:
    drop-shadow(0 10px 24px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 18px rgba(255, 157, 58, 0.24));
}

.portal-loader-copy h1 {
  margin: 0;
  font-family: var(--font-title);
  font-size: clamp(24px, 2.25vw, 36px);
  color: var(--gold-soft);
  text-shadow: 0 2px 0 #512772, 0 5px 0 #34164d, 0 0 20px rgba(255, 180, 92, 0.25);
}

.portal-loader-copy p {
  margin: 8px 0 0;
  font-size: clamp(15px, 1.4vw, 21px);
  color: #dfccaf;
  opacity: 0.95;
  line-height: 1.35;
}

.portal-loader-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0 18px 14px;
}

.loader-step {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid rgba(255, 214, 158, 0.24);
  background: rgba(9, 3, 18, 0.3);
  color: #d8c4a7;
  font-family: var(--font-alt);
  font-size: clamp(13px, 1.1vw, 16px);
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transition: border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.loader-step.is-active {
  border-color: rgba(255, 214, 158, 0.64);
  background: linear-gradient(180deg, rgba(96, 39, 131, 0.6), rgba(18, 7, 31, 0.64));
  color: #f7e7cd;
}

.loader-step.is-done {
  border-color: rgba(255, 193, 129, 0.58);
  background: linear-gradient(180deg, rgba(255, 190, 90, 0.3), rgba(90, 41, 25, 0.34));
  color: #fff4df;
}

.portal-loader-bar {
  height: 8px;
  margin: 0 18px 18px;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 158, 0.24);
  background: rgba(8, 3, 16, 0.58);
}

.portal-loader-bar span {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255, 190, 90, 0.1), rgba(255, 190, 90, 0.92), rgba(255, 234, 194, 0.7));
  box-shadow: 0 0 16px rgba(255, 190, 90, 0.44);
  animation: loader-scan 1.25s ease-in-out infinite;
}

@keyframes loader-scan {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(260%); }
}

.layout {
  position: relative;
  z-index: 1;
  width: min(1210px, calc(100% - 34px));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 14px 0 14px;
  display: flex;
  flex-direction: column;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  min-height: clamp(220px, 30vw, 350px);
  border-bottom: 1px solid rgba(201, 109, 63, 0.42);
  padding-bottom: 10px;
}

.brand-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-width: min(600px, 100%);
}

.top-left-controls {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 210, 156, 0.55);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(61, 24, 88, 0.92), rgba(22, 9, 35, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 197, 0.22),
    0 6px 16px rgba(0, 0, 0, 0.45);
}

.lang-label {
  font-family: var(--font-alt);
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f9e7c8;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.45);
}

.lang-selector {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 88px;
  min-height: 36px;
  border: 1px solid rgba(255, 214, 158, 0.72);
  border-radius: 999px;
  background:
    linear-gradient(45deg, transparent 50%, #ffe9c2 50%) right 14px center / 8px 8px no-repeat,
    linear-gradient(135deg, #ffe9c2 50%, transparent 50%) right 9px center / 8px 8px no-repeat,
    linear-gradient(180deg, rgba(90, 36, 127, 0.94), rgba(28, 11, 44, 0.98));
  color: #fff2d7;
  font-family: var(--font-alt);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 28px 5px 12px;
  outline: none;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 239, 210, 0.22),
    0 4px 10px rgba(0, 0, 0, 0.35);
  transition: border-color 140ms ease, filter 140ms ease, box-shadow 140ms ease;
}

.lang-selector:hover {
  border-color: rgba(255, 219, 170, 0.92);
  filter: brightness(1.07);
}

.lang-selector:focus {
  border-color: rgba(255, 227, 190, 1);
  box-shadow:
    inset 0 1px 0 rgba(255, 245, 226, 0.3),
    0 0 0 2px rgba(255, 190, 95, 0.28),
    0 6px 14px rgba(0, 0, 0, 0.4);
}

.lang-selector option {
  color: #2a170f;
  background: #f5dbb2;
  font-weight: 700;
}

.logo-wrap {
  position: relative;
  display: block;
  width: min(560px, 100%);
  isolation: isolate;
}

.logo-wrap::before {
  content: "";
  position: absolute;
  left: -18px;
  right: -10px;
  top: -14px;
  bottom: -14px;
  z-index: -1;
  background:
    radial-gradient(220px 112px at 22% 48%, rgba(255, 158, 62, 0.24), transparent 74%),
    radial-gradient(300px 130px at 76% 52%, rgba(154, 61, 213, 0.32), transparent 76%);
  filter: blur(1px);
}

.site-logo {
  display: block;
  width: 100%;
  height: auto;
  filter:
    drop-shadow(0 10px 20px rgba(0, 0, 0, 0.48))
    drop-shadow(0 0 24px rgba(255, 157, 58, 0.22));
}

.menu-area {
  position: relative;
  margin-left: auto;
  padding-top: clamp(44px, 5.4vw, 72px);
  min-width: 370px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 14px;
}

.site-visits {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  max-width: min(420px, 100%);
  padding: 7px 12px;
  border: 1px solid rgba(255, 210, 156, 0.42);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(53, 20, 76, 0.92), rgba(17, 7, 29, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 232, 197, 0.18),
    0 8px 16px rgba(0, 0, 0, 0.34);
  text-align: right;
}

.site-visits-label {
  font-family: var(--font-alt);
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: rgba(249, 231, 200, 0.88);
}

.site-visits-value {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 1;
  color: #ffe7bb;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.menu-toggle {
  width: 44px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 198, 133, 0.46);
  background: linear-gradient(180deg, rgba(58, 23, 82, 0.9), rgba(17, 7, 29, 0.96));
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.4);
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffefc6, #ffbe5a);
  transition: transform 180ms ease, opacity 180ms ease;
  transform-origin: center;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.main-menu {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.main-menu a {
  min-width: 92px;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #f4dfc0;
  font-family: var(--font-alt);
  font-size: 22px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.82);
  border-radius: 12px;
  padding: 4px 6px;
  border: 1px solid transparent;
  transition: filter 140ms ease, border-color 140ms ease;
}

.main-menu a:hover {
  filter: brightness(1.12);
  border-color: rgba(255, 193, 129, 0.26);
}

.menu-icon {
  width: 48px;
  height: 48px;
  border-radius: 0;
  border: 0;
  box-shadow: none !important;
  background-color: transparent !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 116%;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.36));
}

.main-menu a.active .menu-icon {
  filter:
    drop-shadow(0 2px 6px rgba(0, 0, 0, 0.36))
    drop-shadow(0 0 8px rgba(255, 214, 158, 0.44));
}

.main-menu a[data-route="home"] .menu-icon {
  background-image: url("../assets/icons/inicio.png");
}

.main-menu a[data-route="register"] .menu-icon {
  background-image: url("../assets/icons/shop.png");
}

.main-menu a[data-route="download"] .menu-icon {
  background-image: url("../assets/icons/descarga.png");
}

.main-menu a[data-route="rankings"] .menu-icon {
  background-image: url("../assets/icons/ranking.png");
}

.main-menu a[data-route="donate"] .menu-icon {
  background-image: url("../assets/icons/donar.png");
}

.main-menu a[data-route="info"] .menu-icon {
  background-image: url("../assets/icons/info.png");
}

.portal {
  margin-top: 8px;
}

.view[hidden] {
  display: none !important;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  animation: view-fade 260ms ease;
}

.status-strip,
.portal-panels > *,
.content-card {
  content-visibility: auto;
  contain-intrinsic-size: 420px;
}

.status-strip {
  display: grid;
  grid-template-columns: 1.34fr 1fr 1fr 1fr;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(57, 23, 83, 0.84), rgba(15, 6, 28, 0.95));
  box-shadow: var(--shadow);
}

.server-time {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  padding: 7px 12px;
  color: #ead8bc;
  font-size: clamp(17px, 1.68vw, 24px);
  background: linear-gradient(180deg, rgba(22, 9, 33, 0.72), rgba(10, 4, 19, 0.84));
  border: 1px solid rgba(255, 197, 133, 0.16);
  border-radius: 9px;
}

.server-time strong {
  color: var(--gold-soft);
  font-weight: 700;
}

.server-time span {
  opacity: 0.92;
}

.strip-link {
  min-height: 58px;
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: auto auto;
  column-gap: 7px;
  padding: 6px 10px 5px;
  border-radius: 9px;
  background: linear-gradient(180deg, rgba(55, 22, 82, 0.72), rgba(16, 6, 29, 0.9));
  border: 1px solid rgba(255, 201, 141, 0.22);
  transition: filter 140ms ease;
}

.strip-link:hover {
  filter: brightness(1.08);
}

.strip-link strong {
  font-family: var(--font-title);
  font-size: clamp(16px, 1.6vw, 26px);
  color: #f4ddbe;
}

.strip-link small {
  margin-top: -1px;
  font-size: clamp(11px, 1.08vw, 16px);
  opacity: 0.92;
  color: #dbc7a9;
}

.mini-icon {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 4px;
  border: 1px solid rgba(255, 202, 149, 0.52);
  background:
    radial-gradient(circle at 30% 25%, #ffe9ac 10%, #ffc46d 44%, #8c4d2d 100%);
  box-shadow: 0 0 10px rgba(255, 157, 58, 0.3);
}

.portal-panels {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 246px 1fr 258px;
  gap: 7px;
}

.server-panel,
.news-panel,
.account-panel,
.content-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: linear-gradient(180deg, var(--panel-top), var(--panel-mid) 44%, var(--panel-btm));
  box-shadow: var(--shadow);
}

.server-panel::after,
.account-panel::after,
.content-card::after,
.modal-card::after {
  content: "";
  position: absolute;
  top: -30px;
  right: -44px;
  width: clamp(130px, 18vw, 220px);
  aspect-ratio: 16 / 9;
  background: url("../logo.png") center / contain no-repeat;
  opacity: 0.12;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.4));
  pointer-events: none;
  z-index: 0;
}

.server-panel > *,
.account-panel > *,
.content-card > *,
.modal-card > * {
  position: relative;
  z-index: 1;
}

.server-panel {
  padding: 9px 10px;
}

.server-panel h2 {
  margin: 0;
  padding: 2px 4px 6px;
  text-align: center;
  font-family: var(--font-title);
  font-size: clamp(22px, 2vw, 32px);
  color: #f4dfbd;
  border-bottom: 1px solid rgba(255, 199, 140, 0.22);
}

.server-panel p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 11px 4px;
  font-size: clamp(18px, 1.57vw, 24px);
  border-bottom: 1px solid rgba(255, 190, 132, 0.16);
}

.server-panel p:last-child {
  border-bottom: 0;
}

.server-panel p span {
  color: #cfbce8;
}

.news-panel {
  padding: 18px;
  display: flex;
  align-items: stretch;
  min-height: 0;
}

#newsList {
  width: 100%;
  display: grid;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  max-height: none;
  overflow: auto;
  padding-right: 4px;
}

#newsList::-webkit-scrollbar,
.ap-chars::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

#newsList::-webkit-scrollbar-thumb,
.ap-chars::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
  background: rgba(255, 190, 132, 0.42);
  border-radius: 999px;
}

.news-item {
  width: 100%;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #40291a;
  font-size: clamp(20px, 1.88vw, 28px);
  background: linear-gradient(180deg, #f4d9a8, #dfbe8b);
  border: 1px solid #9f6937;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.news-point {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid #8a532a;
  background:
    radial-gradient(circle at 32% 28%, #ffe19f 8%, #f3b454 45%, #985527 100%);
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.25);
  flex: 0 0 auto;
}

.event-item {
  width: 100%;
}

.event-head {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  text-align: left;
  color: #40291a;
  font-size: clamp(18px, 1.66vw, 24px);
  background: linear-gradient(180deg, #f4d9a8, #dfbe8b);
  border: 1px solid #9f6937;
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.event-head:hover {
  filter: brightness(1.03);
}

.event-name {
  font-family: var(--font-title);
  letter-spacing: 0.02em;
}

.event-badge {
  font-size: clamp(14px, 1.1vw, 16px);
  color: #5a3a24;
  opacity: 0.95;
  white-space: nowrap;
}

.event-body {
  padding: 10px 16px 14px;
  border: 1px solid rgba(159, 105, 55, 0.55);
  border-top: 0;
  border-radius: 0 0 10px 10px;
  background: linear-gradient(180deg, rgba(244, 217, 168, 0.92), rgba(223, 190, 139, 0.9));
  color: #2b1a10;
  font-size: clamp(14px, 1.1vw, 16px);
}

.event-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px dashed rgba(138, 83, 42, 0.25);
}

.event-row:last-child {
  border-bottom: 0;
}

.event-label {
  color: #5a3a24;
  font-weight: 700;
}

.event-value {
  color: #2b1a10;
}

.account-panel {
  padding: 10px 12px 12px;
}

.account-panel h2 {
  margin: 0 0 11px;
  text-align: center;
  font-family: var(--font-title);
  font-size: clamp(21px, 1.72vw, 30px);
  letter-spacing: 0.05em;
  color: #e8d5b8;
}

.account-hello {
  margin: 8px 0 10px;
  padding: 10px 12px;
  border-radius: 11px;
  border: 1px solid rgba(255, 214, 158, 0.18);
  background: rgba(9, 3, 18, 0.28);
}

.ap-vip-buy-link {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffe0b6;
  font-family: var(--font-alt);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ap-vip-buy-link:hover {
  filter: brightness(1.08);
}

.ap-vip-buy-link--admin {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 214, 158, 0.24);
  background: rgba(9, 3, 18, 0.34);
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  text-underline-offset: 0;
}

.account-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 12px;
  margin-top: 8px;
  font-size: clamp(19px, 1.6vw, 25px);
  color: #f0debf;
  border: 1px solid rgba(255, 195, 134, 0.34);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(68, 28, 96, 0.66), rgba(23, 8, 39, 0.92));
}

.account-btn:hover {
  filter: brightness(1.12);
}

.account-coins {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.account-coin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 214, 158, 0.24);
  background: linear-gradient(180deg, rgba(68, 28, 96, 0.4), rgba(23, 8, 39, 0.76));
}

.account-coin-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-alt);
  font-size: 17px;
  color: #f0debf;
  letter-spacing: 0.02em;
}

.account-coin-emoji {
  font-size: 16px;
  line-height: 1;
}

.account-coin-value {
  font-family: var(--font-title);
  font-size: 20px;
  color: var(--gold-soft);
  font-variant-numeric: tabular-nums;
}

.content-card {
  padding: clamp(16px, 3.2vw, 26px);
}

.content-title {
  margin: 0 0 6px;
  font-family: var(--font-title);
  letter-spacing: 0.03em;
  color: var(--gold-soft);
  text-shadow: 0 2px 0 #512772, 0 5px 0 #34164d, 0 0 22px rgba(255, 180, 92, 0.32);
}

.content-sub {
  margin: 0 0 18px;
  opacity: 0.92;
  line-height: 1.4;
}

.content-foot {
  margin-top: 16px;
  opacity: 0.85;
}

.inline-link {
  color: #ffe0b6;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.form-grid {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.field span,
.mini-field span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-alt);
  font-size: 18px;
  color: var(--gold-soft);
}

.field input,
.mini-field select {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 214, 158, 0.35);
  background: rgba(10, 5, 19, 0.55);
  color: var(--text);
  outline: none;
}

.field input:focus,
.mini-field select:focus {
  border-color: rgba(255, 196, 131, 0.72);
  box-shadow: 0 0 0 2px rgba(255, 180, 92, 0.16);
}

.form-msg {
  margin: 0;
  min-height: 18px;
  font-size: 14px;
  opacity: 0.92;
}

.form-msg.is-ok {
  color: #c7ffb5;
}

.form-msg.is-error {
  color: #ffb5b5;
}

.action-btn,
.ghost-btn,
.ap-equip-btn,
.rank-equip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 12px;
  min-height: 44px;
  padding: 10px 14px;
  font-family: var(--font-alt);
  font-size: 18px;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: filter 140ms ease, transform 140ms ease;
}

.action-btn {
  border: 1px solid rgba(255, 212, 158, 0.58);
  background:
    radial-gradient(circle at 35% 30%, #ffe59f 5%, #ffc35e 30%, #b26429 60%, #46211e 100%);
  color: #2a0b16;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.42);
}

.ghost-btn,
.ap-equip-btn,
.rank-equip-btn {
  border: 1px solid rgba(255, 212, 158, 0.35);
  background: rgba(10, 5, 19, 0.35);
  color: var(--text);
}

.action-btn:hover,
.ghost-btn:hover,
.ap-equip-btn:hover,
.rank-equip-btn:hover {
  filter: brightness(1.09);
}

.action-btn:active,
.ghost-btn:active,
.ap-equip-btn:active,
.rank-equip-btn:active {
  transform: translateY(1px);
}

.download-box {
  border: 1px solid rgba(255, 214, 158, 0.22);
  border-radius: 14px;
  padding: 14px;
  background: rgba(9, 3, 18, 0.35);
}

.download-title {
  font-family: var(--font-title);
  font-size: 22px;
  margin-bottom: 12px;
  color: var(--gold-soft);
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.rank-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.rank-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.table-wrap {
  margin-top: 14px;
  border: 1px solid rgba(255, 214, 158, 0.22);
  border-radius: 14px;
  overflow: auto;
  background: rgba(9, 3, 18, 0.22);
}

.rank-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.rank-table th,
.rank-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 214, 158, 0.14);
  text-align: left;
}

.rank-table th {
  font-family: var(--font-alt);
  font-size: 18px;
  color: var(--gold-soft);
  position: sticky;
  top: 0;
  background: rgba(29, 10, 43, 0.92);
}

.rank-name {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.rank-char-icon {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(255, 206, 147, 0.44);
  background: rgba(11, 4, 20, 0.55);
  object-fit: cover;
  object-position: center 24%;
  flex: 0 0 auto;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.24),
    0 4px 10px rgba(0, 0, 0, 0.35);
}

.table-empty {
  text-align: center !important;
  padding: 18px 12px !important;
  opacity: 0.8;
}

.packs-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.pack-card {
  border: 1px solid rgba(255, 214, 158, 0.22);
  border-radius: 16px;
  padding: 14px;
  background: rgba(9, 3, 18, 0.35);
  display: grid;
  gap: 10px;
}

.pack-card h3 {
  margin: 0;
  font-family: var(--font-title);
  color: var(--gold-soft);
}

.pack-price {
  opacity: 0.92;
}

.pack-card .action-btn {
  width: 100%;
}

.donate-adminbar{
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 214, 158, 0.32);
  background: linear-gradient(180deg, rgba(81, 39, 114, 0.35), rgba(9, 3, 18, 0.38));
  box-shadow: 0 12px 24px rgba(0,0,0,0.28);
}

.donate-adminbar-head{
  display: grid;
  gap: 4px;
  color: var(--gold-soft);
}

.donate-adminbar-head strong{
  font-family: var(--font-title);
  letter-spacing: 0.06em;
}

.donate-adminbar-head span{
  opacity: 0.92;
  font-size: 14px;
}

.donate-adminbar-actions{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.donate-adminbar-btn{
  min-height: 40px;
  font-size: 16px;
}

.donate-adminbar .form-msg{
  margin-top: 8px;
}

.pack-card--edit{
  gap: 8px;
}

.pack-edit-field{
  display: grid;
  gap: 4px;
}

.pack-edit-field span{
  color: var(--gold-soft);
  font-family: var(--font-alt);
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pack-edit-field input,
.pack-edit-field select{
  width: 100%;
  min-height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 214, 158, 0.35);
  background: rgba(10, 5, 19, 0.55);
  color: var(--text);
  padding: 8px 10px;
  outline: none;
}

.pack-edit-field input:focus,
.pack-edit-field select:focus{
  border-color: rgba(255, 196, 131, 0.72);
  box-shadow: 0 0 0 2px rgba(255, 180, 92, 0.16);
}

.pack-remove-btn{
  width: 100%;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.info-card {
  border: 1px solid rgba(255, 214, 158, 0.18);
  border-radius: 16px;
  padding: 14px;
  background: rgba(9, 3, 18, 0.28);
}

.info-card h3 {
  margin: 0 0 8px;
  font-family: var(--font-title);
  color: var(--gold-soft);
}

.info-card ul {
  margin: 0;
  padding-left: 18px;
  opacity: 0.9;
  line-height: 1.5;
}

.site-footer {
  margin-top: 12px;
  padding-top: 8px;
  text-align: center;
  color: #dfccaf;
  border-top: 1px solid rgba(201, 109, 63, 0.45);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.footer-logo {
  width: min(290px, 82vw);
  height: auto;
  margin-bottom: 4px;
  filter:
    drop-shadow(0 8px 20px rgba(0, 0, 0, 0.55))
    drop-shadow(0 0 20px rgba(255, 157, 58, 0.2));
  opacity: 0.88;
}

.site-footer p {
  margin: 1px 0;
  font-size: clamp(14px, 1.18vw, 18px);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 14px 10px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.modal[hidden] {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(2px);
}

.modal-card {
  position: relative;
  width: min(520px, calc(100% - 28px));
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  border-radius: 18px;
  border: 1px solid rgba(255, 214, 158, 0.35);
  background: linear-gradient(180deg, rgba(51, 20, 71, 0.95), rgba(16, 6, 26, 0.96));
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.62);
  overflow-x: hidden;
  overflow-y: auto;
  padding: 18px 18px 16px;
  scrollbar-gutter: stable;
}

.modal-card--wide {
  width: min(820px, calc(100% - 28px));
}

#msgModal .modal-card {
  width: min(680px, calc(100% - 28px));
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  z-index: 4;
  border-radius: 12px;
  border: 1px solid rgba(255, 214, 158, 0.22);
  background: rgba(9, 3, 18, 0.35);
  color: var(--text);
  cursor: pointer;
}

.modal-title {
  margin: 0 0 6px;
  font-family: var(--font-title);
  color: var(--gold-soft);
}

.modal-sub {
  margin: 0 0 12px;
  opacity: 0.9;
  line-height: 1.4;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.modal-actions--center {
  justify-content: center;
}

.modal-rich {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-rich-copy {
  margin: 0;
  line-height: 1.5;
  opacity: 0.94;
}

.modal-transfer-box {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 214, 158, 0.22);
  border-radius: 16px;
  padding: 14px;
  background: rgba(9, 3, 18, 0.28);
}

.modal-transfer-row {
  display: grid;
  gap: 2px;
}

.modal-transfer-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

.modal-transfer-value {
  font-family: var(--font-title);
  font-size: 20px;
  color: var(--gold-soft);
  word-break: break-word;
}

.vip-buy-status {
  margin-top: 4px;
}

.vip-benefits-box,
.vip-admin-box {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(255, 214, 158, 0.22);
  border-radius: 16px;
  padding: 14px;
  background: rgba(9, 3, 18, 0.24);
  margin-bottom: 12px;
  min-width: 0;
}

.vip-benefits-title {
  font-family: var(--font-alt);
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.vip-benefits-list {
  display: grid;
  gap: 8px;
}

.vip-benefit-item {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 214, 158, 0.14);
  background: rgba(0, 0, 0, 0.18);
}

.vip-admin-toggle {
  width: 100%;
}

.vip-admin-head {
  display: grid;
  gap: 4px;
  color: var(--gold-soft);
}

.vip-admin-head strong {
  font-family: var(--font-title);
  letter-spacing: 0.04em;
}

.vip-admin-head span {
  font-size: 14px;
  opacity: 0.9;
}

.vip-admin-form {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.vip-admin-field {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.vip-admin-field span {
  color: var(--gold-soft);
  font-family: var(--font-alt);
  font-size: 14px;
  letter-spacing: 0.05em;
}

.vip-admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 10px;
}

.vip-admin-field input,
.vip-admin-field select,
.vip-admin-field textarea,
.vip-admin-benefit-row input {
  width: 100%;
  min-height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(255, 214, 158, 0.35);
  background: rgba(10, 5, 19, 0.55);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
}

.vip-admin-field textarea {
  min-height: 140px;
  resize: vertical;
}

.vip-admin-field input:focus,
.vip-admin-field select:focus,
.vip-admin-field textarea:focus,
.vip-admin-benefit-row input:focus {
  border-color: rgba(255, 196, 131, 0.72);
  box-shadow: 0 0 0 2px rgba(255, 180, 92, 0.16);
}

.vip-admin-benefits-list {
  display: grid;
  gap: 8px;
}

.vip-admin-benefit-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.vip-admin-benefit-row input {
  flex: 1 1 240px;
  min-width: 0;
}

.vip-admin-add {
  width: 100%;
}

.vip-admin-remove {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 10px 12px;
  white-space: nowrap;
}

.vip-admin-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 10px;
}

.vip-admin-action {
  width: 100%;
}

.modal-foot {
  margin-top: 12px;
  opacity: 0.85;
}

.ap-vip-badge {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 158, 0.25);
  border-radius: 16px;
  padding: 12px;
  background: rgba(9, 3, 18, 0.28);
  margin: 10px 0 14px;
}

.ap-vip-badge--active {
  background:
    radial-gradient(180px 90px at 12% 18%, rgba(255, 194, 88, 0.14), transparent 72%),
    linear-gradient(180deg, rgba(50, 19, 70, 0.5), rgba(9, 3, 18, 0.3));
}

.ap-vip-badge--cta {
  border-color: rgba(255, 205, 126, 0.48);
  padding: 16px;
  background:
    radial-gradient(180px 84px at 14% 16%, rgba(255, 209, 119, 0.28), transparent 74%),
    radial-gradient(220px 120px at 88% 50%, rgba(165, 72, 223, 0.22), transparent 76%),
    linear-gradient(180deg, rgba(74, 28, 106, 0.88), rgba(22, 8, 37, 0.98) 58%, rgba(11, 4, 21, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 236, 201, 0.14),
    0 16px 30px rgba(0, 0, 0, 0.34),
    0 0 24px rgba(255, 183, 77, 0.18);
}

.ap-vip-badge--cta::before,
.ap-vip-badge--cta::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.ap-vip-badge--cta::before {
  inset: auto -8% -56% auto;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 192, 92, 0.22) 0%, rgba(255, 192, 92, 0.06) 42%, transparent 72%);
  animation: vip-cta-pulse 3.6s ease-in-out infinite;
}

.ap-vip-badge--cta::after {
  top: -36%;
  left: -24%;
  width: 42%;
  height: 190%;
  transform: translateX(-160%) skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 245, 215, 0.2), transparent);
  animation: vip-cta-shine 4.4s ease-in-out infinite;
}

.ap-vip-row {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.ap-vip-row--off {
  opacity: 0.92;
}

.ap-vip-row--cta {
  align-items: center;
  gap: 16px;
}

.ap-vip-text {
  min-width: 0;
}

.ap-vip-text--cta {
  flex: 1 1 auto;
}

.ap-vip-cta-icon {
  width: 68px;
  height: 68px;
  flex: 0 0 68px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  border: 1px solid rgba(255, 214, 158, 0.34);
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 241, 202, 0.92), rgba(255, 195, 82, 0.7) 34%, rgba(98, 35, 26, 0.7) 100%),
    linear-gradient(180deg, rgba(255, 192, 86, 0.2), rgba(81, 32, 15, 0.18));
  box-shadow:
    inset 0 1px 0 rgba(255, 250, 226, 0.45),
    0 0 18px rgba(255, 183, 77, 0.32),
    0 10px 18px rgba(0, 0, 0, 0.28);
}

.ap-vip-cta-orb {
  position: relative;
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 248, 225, 0.96) 0%, rgba(255, 221, 145, 0.94) 16%, rgba(255, 177, 65, 0.86) 42%, rgba(124, 50, 23, 0.78) 100%);
  box-shadow:
    0 0 22px rgba(255, 198, 94, 0.42),
    0 0 44px rgba(187, 92, 255, 0.14);
}

.ap-vip-cta-orb::before,
.ap-vip-cta-orb::after {
  content: "";
  position: absolute;
  inset: 50% auto auto 50%;
  border-radius: 999px;
  transform: translate(-50%, -50%);
}

.ap-vip-cta-orb::before {
  width: 56px;
  height: 56px;
  border: 1px solid rgba(255, 232, 191, 0.22);
  box-shadow: inset 0 0 0 1px rgba(106, 34, 22, 0.12);
}

.ap-vip-cta-orb::after {
  width: 22px;
  height: 4px;
  background: rgba(255, 248, 222, 0.65);
  filter: blur(1px);
}

.ap-vip-cta-core {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 243, 0.96);
  box-shadow:
    0 0 0 6px rgba(255, 225, 161, 0.2),
    0 0 18px rgba(255, 242, 198, 0.56);
}

.ap-crown {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  object-fit: cover;
}

.ap-crown--cta {
  width: 56px;
  height: 56px;
  filter:
    drop-shadow(0 3px 6px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 12px rgba(255, 233, 172, 0.34));
}

.ap-vip-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 226, 170, 0.3);
  background: rgba(255, 202, 103, 0.14);
  color: #fff0d5;
  font-family: var(--font-alt);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 14px rgba(255, 183, 77, 0.14);
}

.ap-vip-title {
  font-family: var(--font-title);
  letter-spacing: 0.04em;
  font-size: 18px;
}

.ap-vip-title--cta {
  margin-top: 6px;
  font-size: clamp(28px, 2.3vw, 34px);
  color: #fff2d8;
  text-shadow:
    0 1px 0 rgba(81, 28, 10, 0.65),
    0 0 18px rgba(255, 187, 89, 0.22);
}

.ap-vip-sub {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 2px;
}

.ap-vip-sub--cta {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.4;
  color: #f3e4c9;
  opacity: 0.98;
}

.ap-vip-sub--minor {
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.76;
}

.ap-vip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.ap-vip-buy-link--cta {
  margin-top: 0;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 220, 172, 0.52);
  background:
    radial-gradient(circle at 30% 28%, #fff0c6 0%, #ffd786 24%, #f1a53d 52%, #8d451f 100%);
  color: #33160b;
  font-size: 17px;
  text-decoration: none;
  text-underline-offset: 0;
  box-shadow:
    inset 0 1px 0 rgba(255, 248, 228, 0.46),
    0 0 22px rgba(255, 184, 77, 0.2),
    0 12px 20px rgba(0, 0, 0, 0.32);
}

.ap-vip-buy-link--cta:hover {
  filter: brightness(1.06);
}

.ap-section-title {
  margin: 10px 0;
  font-family: var(--font-title);
  font-size: 16px;
  letter-spacing: 0.03em;
  color: rgba(255, 244, 223, 0.95);
}

.ap-chars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  max-height: min(52vh, 420px);
  overflow: auto;
  padding-right: 2px;
}

.ap-char-card {
  border: 1px solid rgba(255, 214, 158, 0.18);
  border-radius: 16px;
  background: rgba(9, 3, 18, 0.22);
  padding: 10px;
}

.ap-char-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ap-char-icon {
  width: clamp(120px, 18vw, 176px);
  height: clamp(120px, 18vw, 176px);
  border-radius: 18px;
  border: 1px solid rgba(255, 214, 158, 0.25);
  background: rgba(0, 0, 0, 0.2);
  object-fit: cover;
}

.ap-char-name {
  font-family: var(--font-title);
  font-size: 18px;
  letter-spacing: 0.03em;
}

.ap-char-meta {
  margin-top: 3px;
  font-size: 12.5px;
  opacity: 0.9;
  line-height: 1.25;
}

.ap-char-actions {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.ap-equip-btn {
  font-size: 16px;
}

.rank-equip-btn {
  padding: 8px 10px;
  font-size: 15px;
  white-space: nowrap;
}

.muted {
  opacity: 0.78;
}

.ap-loading,
.ap-empty {
  text-align: center;
  padding: 14px 10px;
  opacity: 0.85;
}

.modal-card--equip {
  padding-top: 16px;
}

.equip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-right: 50px;
}

.equip-refresh {
  padding: 10px 12px;
  font-size: 16px;
  border-radius: 12px;
  white-space: nowrap;
}

.equip-wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
  margin-top: 10px;
}

.equip-board {
  position: relative;
  width: 100%;
  aspect-ratio: 270 / 250;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 214, 158, 0.18);
  background:
    url("../asset/inventory/equipment_bg.png") center/100% 100% no-repeat,
    url("../assets/inventory/equipment_bg.png") center/100% 100% no-repeat,
    rgba(9, 3, 18, 0.22);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}

.equip-slot {
  position: absolute;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  border-radius: 16px;
  overflow: visible;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.equip-slot:focus {
  outline: none;
}

.equip-slot img {
  width: 76%;
  height: 76%;
  object-fit: contain;
  image-rendering: pixelated;
  transform: translateZ(0);
  transition: transform 140ms ease, filter 140ms ease;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.55));
}

.equip-slot:hover img {
  transform: scale(1.06);
}

.equip-slot.is-selected img {
  filter:
    drop-shadow(0 0 14px rgba(255, 214, 158, 0.35))
    drop-shadow(0 6px 14px rgba(0, 0, 0, 0.55));
}

.equip-slotlbl {
  display: none !important;
}

.equip-slot[data-slot="0"] { left: 1.0%; top: 36.0%; width: 27.0%; height: 30.0%; }
.equip-slot[data-slot="1"] { left: 73.0%; top: 38.0%; width: 26.7%; height: 28.8%; }
.equip-slot[data-slot="2"] { left: 38.0%; top: 2.0%; width: 26.7%; height: 28.8%; }
.equip-slot[data-slot="3"] { left: 37.0%; top: 36.0%; width: 26.7%; height: 28.8%; }
.equip-slot[data-slot="4"] { left: 37.0%; top: 70.0%; width: 26.7%; height: 28.8%; }
.equip-slot[data-slot="5"] { left: 2.0%; top: 70.0%; width: 26.7%; height: 28.8%; }
.equip-slot[data-slot="6"] { left: 74.1%; top: 70.0%; width: 25.6%; height: 28.8%; }
.equip-slot[data-slot="7"] { left: 70.0%; top: 4.0%; width: 26.7%; height: 28.8%; }
.equip-slot[data-slot="8"] { left: 1.7%; top: 2.0%; width: 26.7%; height: 28.8%; }
.equip-slot[data-slot="9"] { left: 25.5%; top: 31.0%; width: 13.3%; height: 14.4%; border-radius: 14px; }
.equip-slot[data-slot="10"] { left: 25.9%; top: 69.4%; width: 14.8%; height: 16.0%; border-radius: 14px; }
.equip-slot[data-slot="11"] { left: 61.4%; top: 70.0%; width: 14.8%; height: 16.0%; border-radius: 14px; }

.equip-info {
  border: 1px solid rgba(255, 214, 158, 0.2);
  border-radius: 16px;
  background: rgba(9, 3, 18, 0.22);
  padding: 12px;
  min-height: 260px;
}

.equip-titleline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.equip-itemname {
  font-family: var(--font-title);
  font-size: 18px;
  color: var(--gold-soft);
  line-height: 1.15;
}

.equip-lvl {
  font-family: var(--font-alt);
  font-size: 18px;
  color: var(--gold);
}

.equip-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.equip-tag {
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 13px;
  border: 1px solid rgba(255, 214, 158, 0.22);
  background: rgba(0, 0, 0, 0.22);
}

.equip-kv {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 214, 158, 0.1);
}

.equip-kv:last-child {
  border-bottom: 0;
}

.equip-k {
  opacity: 0.8;
}

.equip-v {
  text-align: right;
}

.equip-subttl {
  margin-top: 10px;
  font-family: var(--font-alt);
  font-size: 16px;
  color: var(--gold-soft);
}

.equip-list {
  margin: 8px 0 0 18px;
  padding: 0;
  line-height: 1.35;
  opacity: 0.95;
}

@keyframes vip-cta-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.72;
  }
  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes vip-cta-shine {
  0%,
  14% {
    transform: translateX(-160%) skewX(-20deg);
    opacity: 0;
  }
  20% {
    opacity: 1;
  }
  42%,
  100% {
    transform: translateX(340%) skewX(-20deg);
    opacity: 0;
  }
}

@keyframes view-fade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes desktop-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes desktop-float {
  0%,
  100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes desktop-drift {
  0% { transform: translate3d(-6%, 0, 0); }
  50% { transform: translate3d(5%, -2%, 0); }
  100% { transform: translate3d(-6%, 0, 0); }
}

@keyframes desktop-pulse-dot {
  0%,
  100% {
    transform: scale(1);
    filter:
      drop-shadow(0 2px 6px rgba(0, 0, 0, 0.36))
      drop-shadow(0 0 6px rgba(255, 190, 100, 0.28));
  }
  50% {
    transform: scale(1.08);
    filter:
      drop-shadow(0 2px 6px rgba(0, 0, 0, 0.36))
      drop-shadow(0 0 12px rgba(255, 213, 145, 0.52));
  }
}

@keyframes desktop-btn-shine {
  0% {
    transform: translateX(-180%) skewX(-22deg);
    opacity: 0;
  }
  32% {
    opacity: 0.28;
  }
  100% {
    transform: translateX(220%) skewX(-22deg);
    opacity: 0;
  }
}

@keyframes desktop-modal-pop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (min-width: 961px) and (hover: hover) and (pointer: fine) {
  .hero-top {
    animation: desktop-fade-up 560ms ease both;
  }

  .logo-wrap {
    animation: desktop-float 6.4s ease-in-out infinite;
  }

  .logo-wrap::before {
    animation: desktop-drift 12s ease-in-out infinite;
  }

  .footer-logo {
    animation: desktop-float 7s ease-in-out infinite;
    animation-delay: 220ms;
  }

  .main-menu a {
    opacity: 0;
    transform: translateY(-14px);
    animation: desktop-fade-up 500ms ease forwards;
  }

  .main-menu a:nth-child(1) { animation-delay: 110ms; }
  .main-menu a:nth-child(2) { animation-delay: 170ms; }
  .main-menu a:nth-child(3) { animation-delay: 230ms; }
  .main-menu a:nth-child(4) { animation-delay: 290ms; }
  .main-menu a:nth-child(5) { animation-delay: 350ms; }
  .main-menu a:nth-child(6) { animation-delay: 410ms; }

  .main-menu a .menu-icon {
    animation: desktop-pulse-dot 3s ease-in-out infinite;
  }

  .main-menu a:nth-child(2) .menu-icon { animation-delay: 220ms; }
  .main-menu a:nth-child(3) .menu-icon { animation-delay: 440ms; }
  .main-menu a:nth-child(4) .menu-icon { animation-delay: 660ms; }
  .main-menu a:nth-child(5) .menu-icon { animation-delay: 880ms; }
  .main-menu a:nth-child(6) .menu-icon { animation-delay: 1100ms; }

  .status-strip > * {
    opacity: 0;
    transform: translateY(14px);
    animation: desktop-fade-up 540ms ease forwards;
  }

  .status-strip > *:nth-child(1) { animation-delay: 180ms; }
  .status-strip > *:nth-child(2) { animation-delay: 250ms; }
  .status-strip > *:nth-child(3) { animation-delay: 320ms; }
  .status-strip > *:nth-child(4) { animation-delay: 390ms; }

  #newsList > * {
    animation: desktop-fade-up 420ms ease both;
  }

  #newsList > *:nth-child(2) { animation-delay: 50ms; }
  #newsList > *:nth-child(3) { animation-delay: 100ms; }
  #newsList > *:nth-child(4) { animation-delay: 150ms; }
  #newsList > *:nth-child(5) { animation-delay: 200ms; }
  #newsList > *:nth-child(6) { animation-delay: 250ms; }

  .server-panel,
  .news-panel,
  .account-panel,
  .content-card,
  .pack-card,
  .info-card,
  .muinfo-card,
  .muinfo-tablewrap {
    transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease, filter 240ms ease;
  }

  .server-panel:hover,
  .news-panel:hover,
  .account-panel:hover,
  .content-card:hover,
  .pack-card:hover,
  .info-card:hover,
  .muinfo-card:hover,
  .muinfo-tablewrap:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 214, 158, 0.46);
    box-shadow: 0 24px 42px rgba(0, 0, 0, 0.52);
    filter: brightness(1.02);
  }

  .event-head,
  .news-item,
  .ap-char-card,
  .rank-table tbody tr {
    transition: transform 180ms ease, filter 180ms ease, background-color 180ms ease;
  }

  .event-head:hover,
  .news-item:hover,
  .ap-char-card:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
  }

  .rank-table tbody tr:hover {
    background: rgba(255, 190, 90, 0.09);
  }

  .action-btn,
  .ghost-btn,
  .ap-equip-btn,
  .rank-equip-btn {
    position: relative;
    overflow: hidden;
  }

  .action-btn::after,
  .ghost-btn::after,
  .ap-equip-btn::after,
  .rank-equip-btn::after {
    content: "";
    position: absolute;
    top: -120%;
    left: -30%;
    width: 26%;
    height: 340%;
    transform: translateX(-180%) skewX(-22deg);
    background: linear-gradient(90deg, transparent, rgba(255, 245, 220, 0.35), transparent);
    pointer-events: none;
  }

  .action-btn:hover::after,
  .ghost-btn:hover::after,
  .ap-equip-btn:hover::after,
  .rank-equip-btn:hover::after {
    animation: desktop-btn-shine 680ms ease;
  }

  .modal:not([hidden]) .modal-card {
    animation: desktop-modal-pop 240ms cubic-bezier(0.18, 0.8, 0.18, 1);
  }
}

@media (max-width: 1200px) {
  .main-menu {
    max-width: 650px;
  }

  .main-menu a {
    font-size: 18px;
  }
}

@media (max-width: 1080px) {
  .portal-panels {
    grid-template-columns: 220px 1fr 234px;
  }

  .status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .server-time {
    grid-column: 1 / -1;
  }
}

@media (max-width: 960px) {
  body {
    background-attachment: scroll;
  }

  .edge-flame {
    display: none;
  }

  .portal-loader-main {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 12px;
  }

  .portal-loader-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .layout {
    width: min(1210px, calc(100% - 18px));
  }

  .hero-top {
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 12px;
  }

  .brand-side {
    grid-column: 1;
    grid-row: 1 / span 2;
    min-width: 0;
  }

  .menu-area {
    grid-column: 2;
    grid-row: 1;
    min-width: auto;
    padding-top: 0;
    justify-self: end;
  }

  .site-visits {
    justify-content: center;
    text-align: center;
    border-radius: 14px;
    padding: 8px 12px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .main-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(320px, calc(100vw - 24px));
    border: 1px solid rgba(255, 196, 131, 0.38);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(57, 23, 83, 0.96), rgba(14, 5, 25, 0.98));
    box-shadow: var(--shadow);
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 170ms ease, transform 170ms ease;
    z-index: 30;
  }

  .main-menu.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }

  .main-menu a {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    grid-template-columns: 46px 1fr;
    grid-template-rows: auto;
    justify-items: start;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    font-size: 16px;
    border: 1px solid rgba(255, 196, 131, 0.15);
  }

  .main-menu a.active {
    border-color: rgba(255, 196, 131, 0.45);
  }

  .portal-panels {
    grid-template-columns: 1fr;
  }

  .server-panel {
    order: 1;
  }

  .account-panel {
    order: 2;
  }

  .news-panel {
    order: 3;
  }

  .packs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .donate-adminbar-actions{
    flex-direction: column;
  }

  .donate-adminbar-btn{
    width: 100%;
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .equip-wrap {
    grid-template-columns: 1fr;
  }

  .view.is-active,
  .portal-loader-bar span,
  .logo-wrap,
  .logo-wrap::before,
  .site-logo,
  .footer-logo,
  .main-menu a,
  .status-strip > *,
  #newsList > *,
  .modal-card {
    animation: none !important;
  }

  .menu-toggle span,
  .main-menu,
  .main-menu a,
  .strip-link,
  .action-btn,
  .ghost-btn,
  .ap-equip-btn,
  .rank-equip-btn,
  .event-head,
  .news-item,
  .server-panel,
  .news-panel,
  .account-panel,
  .content-card,
  .pack-card,
  .info-card,
  .muinfo-card,
  .muinfo-tablewrap {
    transition: none !important;
  }
}

@media (max-width: 700px) {
  .status-strip {
    grid-template-columns: 1fr;
  }

  .portal-loader-head {
    min-height: auto;
    padding: 14px 14px 12px;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .portal-loader-main {
    padding: 16px 14px 14px;
  }

  .portal-loader-steps {
    padding: 0 14px 12px;
    gap: 8px;
  }

  .portal-loader-bar {
    margin: 0 14px 14px;
  }

  .site-logo {
    max-width: 480px;
  }

  .rank-controls {
    width: 100%;
  }

  .rank-controls > * {
    flex: 1 1 100%;
  }

  .packs-grid {
    grid-template-columns: 1fr;
  }

  .ap-char-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .ap-char-icon {
    width: 96px;
    height: 96px;
  }

  .ap-vip-row--cta {
    align-items: flex-start;
  }

  .ap-vip-cta-icon {
    width: 58px;
    height: 58px;
    flex-basis: 58px;
    border-radius: 18px;
  }

  .ap-vip-cta-orb {
    width: 34px;
    height: 34px;
  }

  .ap-vip-title--cta {
    font-size: 24px;
  }

  .ap-vip-actions {
    flex-direction: column;
  }

  .ap-vip-buy-link--cta,
  .ap-vip-buy-link--admin {
    width: 100%;
  }

  .vip-admin-remove,
  .vip-admin-action {
    width: 100%;
  }
}

@media (max-width: 540px) {
  .rank-table {
    min-width: 520px;
  }

  .content-card {
    padding: 16px;
  }

  .modal-card,
  .modal-card--wide {
    width: calc(100% - 16px);
    max-height: calc(100vh - 16px);
    max-height: calc(100dvh - 16px);
    padding: 14px;
  }

  #msgModal .modal-card {
    width: calc(100% - 16px);
  }

  .site-footer {
    padding-bottom: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* Creditos: Nicolas Cattolica - +54 9 381 509-0548 */

.muinfo-adminbar{
  margin: 0 0 12px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 214, 158, 0.32);
  background: linear-gradient(180deg, rgba(81, 39, 114, 0.35), rgba(9, 3, 18, 0.38));
  box-shadow: 0 12px 24px rgba(0,0,0,0.28);
}

.muinfo-adminbar-head{
  display: grid;
  gap: 4px;
  color: var(--gold-soft);
}

.muinfo-adminbar-head strong{
  font-family: var(--font-title);
  letter-spacing: 0.06em;
}

.muinfo-adminbar-head span{
  opacity: 0.92;
  font-size: 14px;
}

.muinfo-adminbar-actions{
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.muinfo-adminbar-btn{
  min-height: 40px;
  font-size: 16px;
}

.muinfo-adminbar .form-msg{
  margin-top: 8px;
}

.muinfo-editing-target{
  outline: 2px dashed rgba(255, 214, 158, 0.75);
  outline-offset: 4px;
  border-radius: 14px;
}

.muinfo-editing-target[contenteditable="true"]{
  cursor: url("../cursor/text.cur"), text !important;
}

.muinfo-grid{
  display:grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 860px){
  .muinfo-grid{ grid-template-columns: 1fr; }
  .muinfo-adminbar-actions{ flex-direction: column; }
  .muinfo-adminbar-btn{ width: 100%; }
}

.muinfo-card{
  border: 1px solid rgba(255, 214, 158, 0.18);
  border-radius: 18px;
  padding: 14px;
  background: rgba(9, 3, 18, 0.30);
  box-shadow: 0 12px 24px rgba(0,0,0,0.32);
}

.muinfo-card--vip{
  border-color: rgba(255, 190, 90, 0.42);
  background: linear-gradient(180deg, rgba(51, 20, 71, 0.55), rgba(9, 3, 18, 0.30));
}

.muinfo-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.muinfo-title{
  margin: 0;
  font-family: var(--font-title);
  letter-spacing: 0.03em;
  color: var(--gold-soft);
  text-shadow: 0 2px 0 #512772, 0 5px 0 #34164d, 0 0 22px rgba(255, 180, 92, 0.26);
  display:flex;
  align-items:center;
  gap: 8px;
  line-height: 1.1;
}

.muinfo-ico{
  display:inline-flex;
  width: 28px;
  height: 28px;
  align-items:center;
  justify-content:center;
  border-radius: 10px;
  background: rgba(255, 214, 158, 0.10);
  border: 1px solid rgba(255, 214, 158, 0.14);
  box-shadow: 0 10px 18px rgba(0,0,0,0.18);
}

.muinfo-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 214, 158, 0.20);
  background: rgba(0, 0, 0, 0.22);
  color: var(--gold-soft);
  white-space: nowrap;
}

.muinfo-pill--gold{
  border-color: rgba(255, 190, 90, 0.40);
  background: rgba(255, 190, 90, 0.12);
}

.muinfo-pill--vip{
  border-color: rgba(255, 190, 90, 0.38);
  background: rgba(81, 39, 114, 0.22);
}

.muinfo-kv{
  display:grid;
  gap: 8px;
}

.muinfo-row{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 214, 158, 0.12);
  background: rgba(0, 0, 0, 0.18);
}

.muinfo-k{
  color: var(--gold-soft);
  font-weight: 700;
  font-size: 0.95rem;
}

.muinfo-v{
  color: var(--text);
  font-weight: 900;
  font-size: 0.95rem;
  text-align: right;
}

.muinfo-divider{
  height: 1px;
  margin: 12px 0;
  background: linear-gradient(90deg, transparent, rgba(255, 214, 158, 0.28), transparent);
}

.muinfo-subhead{
  margin: 0 0 8px;
  font-family: var(--font-alt);
  color: var(--gold-soft);
  opacity: 0.92;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.muinfo-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 214, 158, 0.20);
  background: rgba(0, 0, 0, 0.18);
  color: var(--gold-soft);
  white-space: nowrap;
}

.muinfo-badge--gold{
  border-color: rgba(255, 190, 90, 0.42);
  background: rgba(255, 190, 90, 0.12);
}

.muinfo-badge--vip{
  border-color: rgba(255, 190, 90, 0.36);
  background: rgba(81, 39, 114, 0.22);
}

.muinfo-msg{
  border-radius: 14px;
  border: 1px solid rgba(255, 214, 158, 0.16);
  background: rgba(9, 3, 18, 0.26);
  padding: 10px 12px;
  color: var(--text);
}

.muinfo-features{
  display:grid;
  gap: 8px;
}

.muinfo-feature{
  padding: 8px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 214, 158, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  font-weight: 800;
}

.muinfo-notes{
  margin-top: 12px;
}

.muinfo-note{
  color: var(--text);
  opacity: 0.92;
  margin-top: 8px;
  line-height: 1.4;
}

.muinfo-tablewrap{ margin-top: 12px; }

.muinfo-scroll{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 16px;
  border: 1px solid rgba(255, 214, 158, 0.14);
  background: rgba(0,0,0,0.12);
}

.muinfo-table{
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.muinfo-table th,
.muinfo-table td{
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 214, 158, 0.12);
  text-align: left;
  color: var(--text);
  vertical-align: top;
}

.muinfo-table thead th{
  position: sticky;
  top: 0;
  background: rgba(9, 3, 18, 0.92);
  color: var(--gold-soft);
  font-family: var(--font-title);
  letter-spacing: 0.03em;
  z-index: 1;
}

.muinfo-table tbody tr:hover td{
  background: rgba(255, 190, 90, 0.06);
}

.muinfo-rowhead td{
  background: rgba(81, 39, 114, 0.18);
  color: var(--gold-soft);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-shell {
  display: grid;
  gap: 18px;
}

.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.admin-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.admin-search-field {
  min-width: min(340px, 100%);
}

.admin-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 214, 158, 0.16);
  background: rgba(6, 2, 12, 0.36);
}

.admin-locked,
.admin-empty,
.admin-panel {
  border-radius: 18px;
  border: 1px solid rgba(255, 214, 158, 0.14);
  background: linear-gradient(180deg, rgba(31, 12, 46, 0.82), rgba(10, 4, 19, 0.9));
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.24);
}

.admin-locked,
.admin-empty {
  padding: 22px 20px;
  text-align: center;
}

.admin-locked h3,
.admin-empty h3,
.admin-subsection h4 {
  margin: 0 0 10px;
  font-family: var(--font-title);
  color: var(--gold-soft);
}

.admin-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr);
  gap: 18px;
}

.admin-panel {
  padding: 16px;
}

.admin-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-panel-head strong {
  display: block;
  font-family: var(--font-title);
  color: var(--gold-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-summary {
  display: inline-block;
  margin-top: 4px;
  color: rgba(248, 223, 191, 0.78);
  font-size: 0.92rem;
}

.admin-table tbody tr {
  transition: background 180ms ease, transform 180ms ease;
}

.admin-table tbody tr:hover {
  background: rgba(255, 190, 90, 0.06);
}

.admin-row {
  cursor: pointer;
}

.admin-row.is-selected td {
  background: rgba(255, 190, 90, 0.12);
}

.admin-status-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.04);
}

.admin-status-dot.is-online {
  background: #66e09f;
  box-shadow: 0 0 0 3px rgba(102, 224, 159, 0.18), 0 0 16px rgba(102, 224, 159, 0.26);
}

.admin-status-dot.is-offline {
  background: #ff8a5b;
  box-shadow: 0 0 0 3px rgba(255, 138, 91, 0.18), 0 0 16px rgba(255, 138, 91, 0.18);
}

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-form-grid--coins {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-subsection {
  padding-top: 6px;
  border-top: 1px solid rgba(255, 214, 158, 0.12);
}

.admin-detail-badges,
.admin-detail-actions,
.admin-character-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.admin-panel-head--detail {
  margin-bottom: 4px;
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 190, 90, 0.12);
  border: 1px solid rgba(255, 214, 158, 0.16);
  color: var(--gold-soft);
  font-size: 0.88rem;
}

.admin-badge.is-online {
  background: rgba(102, 224, 159, 0.14);
  color: #d8ffea;
}

.admin-badge.is-offline {
  background: rgba(255, 138, 91, 0.14);
  color: #ffe1d5;
}

.admin-badge--sub {
  background: rgba(6, 2, 12, 0.4);
  color: rgba(248, 223, 191, 0.8);
}

.admin-character-picker {
  min-width: min(260px, 100%);
}

.admin-delete-btn {
  border-color: rgba(255, 138, 91, 0.34);
  color: #ffe1d5;
}

.admin-delete-btn:hover {
  background: rgba(255, 138, 91, 0.12);
}

@media (max-width: 1040px) {
  .admin-grid,
  .admin-form-grid,
  .admin-form-grid--coins {
    grid-template-columns: 1fr;
  }

  .admin-head,
  .admin-panel-head,
  .admin-panel-head--detail {
    flex-direction: column;
  }

  .admin-toolbar {
    width: 100%;
    justify-content: stretch;
  }

  .admin-toolbar > * {
    width: 100%;
  }
}

/*
================
Nicolas Cattolica - +54 9 381 509-0548
================
*/
