:root {
  --void: #030207;
  --obsidian: #0c0712;
  --black-iron: #15101c;
  --deep-plum: #251031;
  --amethyst: #9d32ff;
  --rune: #e23cff;
  --ember: #ff2f96;
  --ice: #e7e4f3;
  --mist: #aaa4bd;
  --steel: #696174;
  --gold: #d8b36a;
  --green: #6eff8c;
  --line: rgba(231, 228, 243, 0.16);
  --panel: rgba(10, 6, 16, 0.76);
  --panel-strong: rgba(18, 10, 25, 0.92);
  --shadow-purple: 0 0 42px rgba(157, 50, 255, 0.36);
  --shadow-pink: 0 0 34px rgba(255, 47, 150, 0.28);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ice);
  background:
    linear-gradient(180deg, rgba(3, 2, 7, 0.4), var(--void) 680px),
    var(--void);
  font-family: "Rajdhani", "Trebuchet MS", sans-serif;
  font-size: 1rem;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  content: "";
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.8), transparent 88%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(115deg, transparent 0 38%, rgba(226, 60, 255, 0.22) 39%, transparent 42%),
    linear-gradient(245deg, transparent 0 55%, rgba(216, 179, 106, 0.12) 56%, transparent 59%);
}

img {
  display: block;
  max-width: 100%;
}

main section[id] {
  scroll-margin-top: 96px;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: "Cinzel", Georgia, serif;
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  margin-bottom: 1rem;
  font-size: 5.8rem;
  font-weight: 800;
  text-shadow: 0 0 24px rgba(226, 60, 255, 0.78);
}

h2 {
  margin-bottom: 1rem;
  font-size: 3.4rem;
  font-weight: 700;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: 1.22rem;
  font-weight: 700;
}

p {
  color: var(--mist);
  line-height: 1.65;
}

.page-shell {
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 20;
  display: grid;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.4rem;
  padding: 0.65rem 0.9rem 0.65rem 1rem;
  border: 1px solid rgba(231, 228, 243, 0.14);
  background: rgba(6, 3, 11, 0.66);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42), inset 0 0 22px rgba(157, 50, 255, 0.12);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: background 180ms ease, border-color 180ms ease, top 180ms ease;
}

.site-header.is-scrolled {
  top: 8px;
  border-color: rgba(226, 60, 255, 0.32);
  background: rgba(6, 3, 11, 0.9);
}

.site-header::before,
.site-header::after {
  position: absolute;
  width: 46px;
  height: 46px;
  content: "";
  pointer-events: none;
}

.site-header::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--rune);
  border-left: 2px solid var(--rune);
}

.site-header::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
}

.brand-mark {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 0.75rem;
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--ice);
}

.brand-mark img {
  width: 92px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(226, 60, 255, 0.7));
}

.brand-mark span {
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.site-nav a {
  position: relative;
  min-height: 42px;
  padding: 0.75rem 0.95rem;
  color: var(--mist);
  font-size: 0.94rem;
  font-weight: 700;
  white-space: nowrap;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0.95rem;
  bottom: 8px;
  left: 0.95rem;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--gold), var(--rune));
  opacity: 0;
  transform: scaleX(0.4);
  transform-origin: center;
  transition: opacity 180ms ease, transform 180ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ice);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  opacity: 1;
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.65rem;
}

.button,
.icon-button,
.menu-button {
  position: relative;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border: 1px solid rgba(231, 228, 243, 0.18);
  border-radius: 6px;
  color: var(--ice);
  font-family: "Rajdhani", "Trebuchet MS", sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button {
  min-width: 154px;
  padding: 0.9rem 1.1rem;
}

.button svg,
.icon-button svg,
.menu-button svg,
.text-link svg {
  width: 1.1rem;
  height: 1.1rem;
  flex: 0 0 auto;
}

.button:hover,
.icon-button:hover,
.menu-button:hover {
  border-color: rgba(226, 60, 255, 0.76);
  box-shadow: var(--shadow-purple);
  transform: translateY(-2px);
}

.button-primary {
  border-color: rgba(226, 60, 255, 0.8);
  background:
    linear-gradient(135deg, rgba(255, 47, 150, 0.84), rgba(157, 50, 255, 0.92) 58%, rgba(33, 14, 49, 0.94)),
    var(--deep-plum);
  box-shadow: 0 0 38px rgba(226, 60, 255, 0.34), inset 0 0 16px rgba(255, 255, 255, 0.12);
}

.button-secondary {
  border-color: rgba(216, 179, 106, 0.55);
  background:
    linear-gradient(135deg, rgba(216, 179, 106, 0.2), rgba(157, 50, 255, 0.26)),
    rgba(10, 6, 16, 0.88);
}

.button-ghost,
.icon-button,
.menu-button {
  background: rgba(8, 5, 13, 0.76);
}

.icon-button,
.menu-button {
  width: 46px;
  padding: 0;
}

.menu-button {
  display: none;
}

.hero-section {
  position: relative;
  display: flex;
  min-height: 88svh;
  align-items: center;
  padding: 124px 0 56px;
  isolation: isolate;
}

.hero-section::before {
  position: absolute;
  inset: 0;
  z-index: -3;
  content: "";
  background-image: url("assets/hero-party.png");
  background-position: center top;
  background-size: cover;
  filter: saturate(1.12) contrast(1.08);
  transform: scale(1.02);
}

.hero-section::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    linear-gradient(90deg, rgba(3, 2, 7, 0.96) 0%, rgba(3, 2, 7, 0.72) 30%, rgba(3, 2, 7, 0.34) 58%, rgba(3, 2, 7, 0.82) 100%),
    linear-gradient(180deg, rgba(3, 2, 7, 0.64), rgba(3, 2, 7, 0.18) 50%, var(--void) 100%);
}

.hero-embers {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.hero-embers span {
  position: absolute;
  bottom: -8%;
  width: 2px;
  height: 72px;
  background: linear-gradient(180deg, transparent, rgba(255, 47, 150, 0.86), transparent);
  opacity: 0.62;
  animation: emberRise 8s linear infinite;
}

.hero-embers span:nth-child(1) { left: 7%; animation-delay: 0s; }
.hero-embers span:nth-child(2) { left: 18%; animation-delay: 2.2s; height: 48px; }
.hero-embers span:nth-child(3) { left: 27%; animation-delay: 4.6s; }
.hero-embers span:nth-child(4) { left: 38%; animation-delay: 1.2s; height: 64px; }
.hero-embers span:nth-child(5) { left: 51%; animation-delay: 5.1s; }
.hero-embers span:nth-child(6) { left: 62%; animation-delay: 3.5s; height: 42px; }
.hero-embers span:nth-child(7) { left: 74%; animation-delay: 6.4s; }
.hero-embers span:nth-child(8) { left: 84%; animation-delay: 2.9s; height: 54px; }
.hero-embers span:nth-child(9) { left: 91%; animation-delay: 7.1s; }
.hero-embers span:nth-child(10) { left: 45%; animation-delay: 8.3s; height: 38px; }

.hero-content,
.section-inner,
.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.62fr);
  align-items: end;
  gap: 3rem;
}

.hero-copy {
  max-width: 760px;
}

.section-kicker {
  display: inline-flex;
  margin-bottom: 1rem;
  align-items: center;
  color: var(--gold);
  font-size: 0.98rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-kicker::before {
  width: 42px;
  height: 1px;
  margin-right: 0.8rem;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold), var(--rune));
}

.hero-logo {
  width: min(620px, 92%);
  margin: 0 0 -3rem -1rem;
  filter: drop-shadow(0 0 28px rgba(226, 60, 255, 0.7));
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 1.8rem;
  color: rgba(231, 228, 243, 0.88);
  font-size: 1.22rem;
  font-weight: 500;
}

.hero-actions,
.download-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.server-panel,
.sigil-card,
.realm-card,
.class-card,
.news-card,
.rank-board,
.launcher-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 34%),
    var(--panel);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.34), inset 0 0 30px rgba(157, 50, 255, 0.08);
  overflow: hidden;
}

.server-panel::before,
.sigil-card::before,
.realm-card::before,
.class-card::before,
.news-card::before,
.rank-board::before,
.launcher-frame::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  border: 1px solid rgba(226, 60, 255, 0.14);
  clip-path: polygon(0 0, 90px 0, 90px 1px, 1px 1px, 1px 90px, 0 90px);
}

.server-panel {
  padding: 1.25rem;
  background:
    linear-gradient(155deg, rgba(226, 60, 255, 0.18), transparent 38%),
    rgba(6, 3, 11, 0.82);
}

.server-panel-top {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.1rem;
  color: var(--green);
  font-size: 1rem;
  text-transform: uppercase;
}

.server-panel.is-offline .server-panel-top {
  color: #ff8a9f;
}

.server-panel.is-offline .status-dot {
  background: #ff4d7d;
  box-shadow: 0 0 18px rgba(255, 77, 125, 0.75);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 18px var(--green);
}

.server-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin: 0 0 1rem;
}

.server-stats div {
  min-width: 0;
  padding: 0.9rem;
  border: 1px solid rgba(231, 228, 243, 0.1);
  background: rgba(3, 2, 7, 0.52);
}

.server-stats dt {
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
}

.server-stats dd {
  margin: 0.15rem 0 0;
  color: var(--ice);
  font-size: 1.45rem;
  font-weight: 800;
}

.siege-note {
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem;
  border: 1px solid rgba(216, 179, 106, 0.28);
  background: rgba(216, 179, 106, 0.08);
  color: var(--ice);
  font-weight: 700;
}

.siege-note svg {
  color: var(--gold);
}

.quick-strip {
  position: relative;
  z-index: 2;
  display: grid;
  width: min(1180px, calc(100% - 32px));
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: -26px auto 0;
}

.sigil-card {
  min-height: 188px;
  padding: 1.15rem;
  background:
    linear-gradient(180deg, rgba(226, 60, 255, 0.14), transparent),
    var(--panel-strong);
}

.sigil-card svg {
  width: 2.1rem;
  height: 2.1rem;
  margin-bottom: 1rem;
  color: var(--rune);
  filter: drop-shadow(0 0 12px rgba(226, 60, 255, 0.65));
}

.sigil-card h2 {
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
}

.sigil-card p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.server-section,
.panel-section,
.classes-section,
.news-section,
.ranking-section,
.market-section,
.webshop-section,
.download-section {
  position: relative;
  padding: 108px 0;
}

.server-section {
  background:
    linear-gradient(180deg, var(--void), rgba(12, 7, 18, 0.94)),
    var(--void);
}

.server-section::before {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.24;
  background-image: url("assets/abyss-lords.png");
  background-position: center;
  background-size: cover;
  mix-blend-mode: screen;
  mask-image: linear-gradient(90deg, transparent, #000 24%, #000 76%, transparent);
}

.split-layout,
.ranking-layout,
.download-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  align-items: center;
  gap: 3rem;
}

.section-copy {
  position: relative;
  z-index: 1;
}

.section-copy h2,
.section-heading h2,
.download-copy h2 {
  max-width: 760px;
}

.section-copy p,
.download-copy p {
  max-width: 620px;
  font-size: 1.08rem;
}

.realm-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.realm-card {
  min-height: 190px;
  padding: 1.25rem;
}

.realm-card span {
  display: inline-flex;
  margin-bottom: 1.6rem;
  color: var(--gold);
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.55rem;
  font-weight: 800;
}

.realm-card p,
.class-card p,
.news-card p {
  margin-bottom: 0;
}

.classes-section {
  background:
    linear-gradient(180deg, rgba(12, 7, 18, 0.94), rgba(3, 2, 7, 0.96)),
    var(--obsidian);
}

.panel-section,
.market-section {
  background:
    linear-gradient(180deg, rgba(3, 2, 7, 0.98), rgba(14, 7, 19, 0.96)),
    var(--void);
}

.castle-section {
  background:
    radial-gradient(circle at 74% 8%, rgba(216, 179, 106, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(6, 3, 11, 0.98), rgba(16, 7, 22, 0.96)),
    var(--obsidian);
}

.webshop-section {
  background:
    linear-gradient(180deg, rgba(14, 7, 19, 0.96), rgba(3, 2, 7, 0.98)),
    var(--obsidian);
}

.chaos-section {
  background:
    radial-gradient(circle at 18% 20%, rgba(226, 60, 255, 0.13), transparent 34%),
    linear-gradient(180deg, rgba(5, 3, 10, 0.98), rgba(11, 5, 15, 0.98)),
    var(--void);
}

.panel-layout,
.commerce-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: 3rem;
}

.commerce-layout-flip {
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
}

.account-console,
.commerce-board,
.modal-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), transparent 34%),
    var(--panel-strong);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.36), inset 0 0 30px rgba(157, 50, 255, 0.08);
  overflow: hidden;
}

.account-console,
.commerce-board {
  padding: 1.1rem;
}

.console-head,
.console-subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.console-head h3,
.console-subhead h3 {
  margin-bottom: 0;
}

.console-eyebrow,
.console-badge {
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.console-badge {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(216, 179, 106, 0.28);
  border-radius: 6px;
  background: rgba(216, 179, 106, 0.08);
  color: var(--ice);
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1.2rem;
}

.wallet-grid article,
.wallet-strip,
.commerce-card,
.character-card,
.warehouse-slot {
  border: 1px solid rgba(231, 228, 243, 0.12);
  border-radius: 6px;
  background: rgba(3, 2, 7, 0.52);
}

.wallet-grid article {
  min-width: 0;
  padding: 0.9rem;
}

.wallet-grid span,
.wallet-strip span,
.commerce-card small,
.character-card small,
.state-text {
  color: var(--mist);
  font-weight: 700;
}

.wallet-grid strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--ice);
  font-size: 1.45rem;
  line-height: 1;
}

.character-grid,
.commerce-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.character-card,
.commerce-card {
  min-width: 0;
  padding: 0.95rem;
}

.character-card.is-online {
  border-color: rgba(110, 255, 140, 0.32);
  box-shadow: inset 0 0 18px rgba(110, 255, 140, 0.05);
}

.character-top,
.commerce-top {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.85rem;
}

.character-avatar,
.item-icon-wrap {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(226, 60, 255, 0.22);
  border-radius: 6px;
  background: rgba(157, 50, 255, 0.09);
}

.character-avatar img,
.item-icon-wrap img {
  max-width: 50px;
  max-height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(226, 60, 255, 0.38));
}

.character-card h4,
.commerce-card h4 {
  min-width: 0;
  margin: 0 0 0.2rem;
  overflow: hidden;
  color: var(--ice);
  font-family: "Cinzel", Georgia, serif;
  font-size: 1rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-stats,
.commerce-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin-bottom: 0.8rem;
}

.character-stats span,
.commerce-meta span {
  min-width: 0;
  padding: 0.48rem;
  overflow: hidden;
  border: 1px solid rgba(231, 228, 243, 0.08);
  background: rgba(0, 0, 0, 0.24);
  color: var(--mist);
  font-size: 0.85rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-actions,
.commerce-actions,
.shop-tabs,
.rank-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.rank-tabs {
  margin: 1.1rem 0 1.25rem;
}

.mini-action {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid rgba(231, 228, 243, 0.14);
  border-radius: 6px;
  background: rgba(8, 5, 13, 0.68);
  color: var(--mist);
  font-family: "Rajdhani", "Trebuchet MS", sans-serif;
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.mini-action:hover,
.mini-action.is-active {
  border-color: rgba(226, 60, 255, 0.56);
  background: rgba(157, 50, 255, 0.14);
  color: var(--ice);
}

.mini-action svg {
  width: 0.95rem;
  height: 0.95rem;
}

.commerce-card .mini-action {
  flex: 1 1 auto;
}

.state-text {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem;
  border: 1px dashed rgba(231, 228, 243, 0.14);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.24);
}

.mini-feed {
  display: grid;
  gap: 0.55rem;
}

.feed-entry {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem;
  border: 1px solid rgba(231, 228, 243, 0.1);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
}

.feed-entry img {
  max-width: 38px;
  max-height: 38px;
  object-fit: contain;
}

.feed-entry strong,
.feed-entry span {
  min-width: 0;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-entry span {
  color: var(--mist);
  font-size: 0.86rem;
}

.wallet-strip {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.35rem;
  padding: 0.9rem 1rem;
}

.wallet-strip strong {
  color: var(--gold);
  font-size: 1.25rem;
}

.modal-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
}

.modal-layer[hidden] {
  display: none;
}

.modal-card {
  width: min(520px, 100%);
  max-height: calc(100svh - 32px);
  padding: 1.3rem;
  overflow: auto;
}

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

.modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  z-index: 2;
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(231, 228, 243, 0.14);
  border-radius: 6px;
  background: rgba(8, 5, 13, 0.8);
  color: var(--ice);
  cursor: pointer;
}

.modal-close svg {
  width: 1.1rem;
  height: 1.1rem;
}

.modal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.system-form {
  display: grid;
  gap: 0.85rem;
}

.system-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--mist);
  font-weight: 800;
  text-transform: uppercase;
}

.system-form input,
.system-form select {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(231, 228, 243, 0.16);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.46);
  color: var(--ice);
  font: inherit;
  font-weight: 700;
}

.form-grid,
.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

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

.check-grid label {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem;
  border: 1px solid rgba(231, 228, 243, 0.12);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
}

.check-grid input {
  width: auto;
  min-height: auto;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--mist);
  font-weight: 700;
}

.form-message.is-good {
  color: var(--green);
}

.form-message.is-bad {
  color: #ff8a9f;
}

.warehouse-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.warehouse-slot {
  display: grid;
  min-height: 86px;
  place-items: center;
  padding: 0.5rem;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease;
}

.warehouse-slot.is-selected {
  border-color: var(--rune);
  background: rgba(157, 50, 255, 0.16);
}

.warehouse-slot img {
  max-width: 58px;
  max-height: 58px;
  object-fit: contain;
}

.shop-preview {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.85rem;
  border: 1px solid rgba(231, 228, 243, 0.12);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.24);
}

.shop-preview img {
  max-width: 64px;
  max-height: 64px;
  object-fit: contain;
}

.shop-preview strong {
  display: block;
  color: var(--gold);
  font-size: 1.3rem;
}

.shop-preview p {
  margin: 0;
}

.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.profile-stat {
  padding: 0.85rem;
  border: 1px solid rgba(231, 228, 243, 0.12);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.24);
}

.profile-stat span {
  display: block;
  color: var(--mist);
  font-weight: 800;
  text-transform: uppercase;
}

.profile-stat strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--ice);
  font-size: 1.15rem;
}

.section-heading {
  margin-bottom: 2.1rem;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.class-card {
  min-height: 430px;
  padding: 0.75rem;
  background: rgba(9, 5, 15, 0.86);
}

.class-image {
  height: 248px;
  margin-bottom: 1rem;
  border: 1px solid rgba(231, 228, 243, 0.12);
  border-radius: 6px;
  background-position: center;
  background-size: cover;
  filter: saturate(1.08);
}

.class-image-mage {
  background-image: linear-gradient(180deg, transparent 56%, rgba(3, 2, 7, 0.82)), url("assets/hero-duo.png");
  background-position: 56% 24%;
}

.class-image-knight {
  background-image: linear-gradient(180deg, transparent 52%, rgba(3, 2, 7, 0.82)), url("assets/abyss-lords.png");
  background-position: 50% 18%;
}

.class-image-elf {
  background-image: linear-gradient(180deg, transparent 54%, rgba(3, 2, 7, 0.82)), url("assets/hero-party.png");
  background-position: 76% 28%;
}

.class-image-lord {
  background-image: linear-gradient(180deg, transparent 54%, rgba(3, 2, 7, 0.82)), url("assets/abyss-lords.png");
  background-position: 78% 18%;
}

.class-card h3,
.class-card p {
  padding-inline: 0.35rem;
}

.news-section {
  background:
    linear-gradient(180deg, rgba(3, 2, 7, 0.98), rgba(14, 7, 19, 0.94)),
    var(--void);
}

.news-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.85fr 0.85fr;
  gap: 1rem;
}

.news-card {
  min-height: 260px;
  padding: 1.35rem;
}

.feature-news {
  background:
    linear-gradient(90deg, rgba(3, 2, 7, 0.82), rgba(3, 2, 7, 0.28)),
    url("assets/hero-duo.png");
  background-position: center;
  background-size: cover;
}

.news-date {
  color: var(--gold);
  font-size: 0.9rem;
  font-weight: 800;
  text-transform: uppercase;
}

.text-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.15rem;
  color: var(--ice);
  font-weight: 800;
  text-transform: uppercase;
}

.text-link svg {
  color: var(--rune);
  transition: transform 180ms ease;
}

.text-link:hover svg {
  transform: translateX(4px);
}

.ranking-section {
  background:
    linear-gradient(180deg, rgba(14, 7, 19, 0.94), rgba(3, 2, 7, 0.96)),
    var(--obsidian);
}

.rank-board {
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(216, 179, 106, 0.09), rgba(157, 50, 255, 0.08)),
    var(--panel-strong);
}

.rank-row {
  display: grid;
  min-height: 58px;
  grid-template-columns: 56px minmax(0, 1.2fr) minmax(0, 1fr) 70px;
  align-items: center;
  gap: 0.7rem;
  border-bottom: 1px solid rgba(231, 228, 243, 0.1);
  color: var(--mist);
  font-weight: 700;
}

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

.rank-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ice);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rank-row span:first-child {
  color: var(--gold);
  font-family: "Cinzel", Georgia, serif;
  font-weight: 800;
}

.rank-head {
  min-height: 44px;
  color: var(--steel);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.inline-link {
  display: inline;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
}

.inline-link:hover {
  color: var(--rune);
}

.download-section {
  background:
    linear-gradient(90deg, rgba(3, 2, 7, 0.96), rgba(3, 2, 7, 0.76)),
    url("assets/abyss-lords.png");
  background-position: center;
  background-size: cover;
}

.download-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.launcher-frame {
  padding: 0.6rem;
  background: rgba(3, 2, 7, 0.84);
  box-shadow: var(--shadow-purple), 0 28px 88px rgba(0, 0, 0, 0.48);
}

.launcher-frame img {
  width: 100%;
  border-radius: 6px;
}

.download-copy {
  padding-left: 0.5rem;
}

.requirements-list {
  display: grid;
  gap: 0.7rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.requirements-list li {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0.9rem;
  border: 1px solid rgba(231, 228, 243, 0.12);
  background: rgba(6, 3, 11, 0.62);
}

.requirements-list span {
  color: var(--mist);
  font-weight: 700;
}

.requirements-list strong {
  color: var(--ice);
}

.site-footer {
  padding: 48px 0;
  border-top: 1px solid rgba(231, 228, 243, 0.12);
  background: #050309;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--steel);
  font-weight: 600;
}

.footer-inner img {
  width: 120px;
  filter: drop-shadow(0 0 12px rgba(226, 60, 255, 0.45));
}

.footer-inner p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.castle-hero,
.castle-panel,
.chaos-feed-large,
.profile-shell {
  min-width: 0;
}

.castle-section .section-heading h2,
.chaos-section .section-heading h2 {
  color: var(--ice);
  text-shadow: 0 0 26px rgba(226, 60, 255, 0.36);
}

.castle-section .section-heading p,
.chaos-section .section-heading p {
  max-width: 900px;
  color: #c9c3d8;
}

.castle-hero,
.castle-panel {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(216, 179, 106, 0.08), transparent 36%),
    var(--panel-strong);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38), inset 0 0 32px rgba(157, 50, 255, 0.08);
  overflow: hidden;
}

.castle-hero::before,
.castle-panel::before {
  position: absolute;
  top: 0;
  right: 11%;
  left: 11%;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--gold), var(--rune), transparent);
  opacity: 0.82;
}

.castle-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  padding: 2rem;
  margin-bottom: 1.35rem;
}

.castle-mark {
  position: relative;
  display: grid;
  min-height: 220px;
  place-items: center;
}

.castle-crown {
  position: absolute;
  top: 6px;
  z-index: 2;
  color: var(--gold);
  filter: drop-shadow(0 0 16px rgba(216, 179, 106, 0.72));
}

.castle-emblem {
  display: grid;
  width: 164px;
  height: 164px;
  place-items: center;
  border: 1px solid rgba(216, 179, 106, 0.32);
  border-radius: 8px;
  background:
    radial-gradient(circle, rgba(226, 60, 255, 0.14), transparent 62%),
    rgba(3, 2, 7, 0.72);
  color: var(--rune);
  box-shadow: inset 0 0 28px rgba(0, 0, 0, 0.58), var(--shadow-purple);
}

.castle-emblem img {
  width: 132px;
  height: 132px;
  object-fit: contain;
  image-rendering: pixelated;
}

.castle-emblem svg {
  width: 76px;
  height: 76px;
}

.castle-info h3 {
  margin: 0.35rem 0 0.45rem;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  color: var(--ice);
  text-shadow: 0 0 28px rgba(226, 60, 255, 0.55);
}

.castle-info p {
  max-width: 780px;
  margin-bottom: 1.2rem;
}

.castle-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.castle-stats article {
  min-width: 0;
  padding: 0.95rem;
  border: 1px solid rgba(231, 228, 243, 0.11);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
}

.castle-stats span,
.castle-table .table-head,
.castle-table small {
  color: var(--mist);
  font-weight: 800;
  text-transform: uppercase;
}

.castle-stats span {
  display: block;
  font-size: 0.78rem;
}

.castle-stats strong {
  display: block;
  min-width: 0;
  margin-top: 0.25rem;
  overflow: hidden;
  color: var(--ice);
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.3rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.castle-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
}

.castle-panel {
  padding: 1.25rem;
}

.castle-timer {
  display: grid;
  min-height: 160px;
  place-items: center;
  margin-bottom: 1rem;
  border: 1px solid rgba(216, 179, 106, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(216, 179, 106, 0.14), transparent 58%),
    rgba(0, 0, 0, 0.26);
  text-align: center;
}

.castle-timer span {
  color: var(--mist);
  font-weight: 800;
  text-transform: uppercase;
}

.castle-timer strong {
  display: block;
  color: var(--gold);
  font-family: "Cinzel", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 3rem);
  text-shadow: 0 0 20px rgba(216, 179, 106, 0.38);
}

.castle-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.castle-steps article {
  display: grid;
  min-width: 0;
  place-items: center;
  gap: 0.25rem;
  padding: 0.9rem 0.5rem;
  border: 1px solid rgba(231, 228, 243, 0.1);
  border-radius: 6px;
  background: rgba(3, 2, 7, 0.44);
  color: var(--mist);
  text-align: center;
}

.castle-steps article.is-war {
  border-color: rgba(226, 60, 255, 0.32);
  color: var(--ice);
  box-shadow: inset 0 0 22px rgba(226, 60, 255, 0.08);
}

.castle-steps svg {
  color: var(--gold);
}

.castle-steps strong {
  color: var(--ice);
  font-family: "Cinzel", Georgia, serif;
  font-size: 0.92rem;
}

.castle-steps span {
  color: var(--steel);
  font-size: 0.82rem;
  font-weight: 800;
}

.castle-table {
  display: grid;
  gap: 0.55rem;
}

.castle-row {
  display: grid;
  min-height: 64px;
  grid-template-columns: 52px minmax(0, 1.2fr) minmax(0, 1fr) 86px;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(231, 228, 243, 0.1);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.castle-row.table-head {
  min-height: 42px;
  background: rgba(216, 179, 106, 0.06);
  font-size: 0.78rem;
}

.castle-row strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ice);
  font-family: "Cinzel", Georgia, serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.castle-row span,
.castle-row small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.castle-rank {
  color: var(--gold);
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.15rem;
  font-weight: 800;
}

.panel-layout {
  grid-template-columns: 1fr;
  gap: 1.45rem;
}

.panel-section .section-copy {
  max-width: 900px;
}

.account-console {
  padding: 1.35rem;
}

.character-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

.character-card {
  position: relative;
  padding: 1.1rem;
  overflow: hidden;
  border-color: rgba(231, 228, 243, 0.14);
  background:
    radial-gradient(circle at 100% 0%, rgba(226, 60, 255, 0.13), transparent 46%),
    rgba(3, 2, 7, 0.58);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.character-card:hover {
  border-color: rgba(226, 60, 255, 0.4);
  box-shadow: 0 18px 52px rgba(157, 50, 255, 0.18);
  transform: translateY(-2px);
}

.character-top {
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1rem;
}

.character-avatar {
  width: 88px;
  height: 88px;
  border-radius: 8px;
}

.character-avatar img {
  max-width: 82px;
  max-height: 82px;
}

.character-card h4 {
  font-size: 1.35rem;
}

.character-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.35rem;
  color: var(--steel);
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
}

.character-status::before {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  content: "";
  background: var(--steel);
}

.character-card.is-online .character-status {
  color: var(--green);
}

.character-card.is-online .character-status::before {
  background: var(--green);
  box-shadow: 0 0 12px rgba(110, 255, 140, 0.6);
}

.character-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.character-stats span {
  display: grid;
  min-height: 58px;
  place-items: center;
  padding: 0.55rem 0.4rem;
  text-align: center;
}

.character-map,
.character-attributes {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}

.character-map {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  padding: 0.7rem 0.8rem;
  border: 1px solid rgba(216, 179, 106, 0.16);
  border-radius: 6px;
  background: rgba(216, 179, 106, 0.05);
  color: var(--mist);
  font-weight: 800;
}

.character-map svg {
  color: var(--gold);
}

.character-map strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--ice);
  font-family: "Cinzel", Georgia, serif;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.character-map small {
  color: var(--steel);
}

.character-attributes {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.character-attributes span {
  padding: 0.45rem 0.25rem;
  border: 1px solid rgba(231, 228, 243, 0.08);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--mist);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

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

.character-actions .mini-action:last-child {
  grid-column: 1 / -1;
}

.chaos-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: -0.8rem 0 1rem;
}

.chaos-feed-large {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.chaos-feed-large > .state-text {
  grid-column: 1 / -1;
  min-height: 170px;
  padding: 2rem;
  border: 1px dashed rgba(226, 60, 255, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(226, 60, 255, 0.12), transparent 55%),
    rgba(0, 0, 0, 0.22);
  color: #c9c3d8;
  font-size: 1.1rem;
}

.chaos-card {
  position: relative;
  min-height: 290px;
  padding: 1.05rem;
  overflow: hidden;
  border: 1px solid rgba(231, 228, 243, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 0%, rgba(226, 60, 255, 0.15), transparent 52%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.045), transparent 38%),
    rgba(3, 2, 7, 0.66);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.32);
}

.chaos-card::before {
  position: absolute;
  top: 0;
  right: 18px;
  left: 18px;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, transparent, var(--rune), transparent);
}

.chaos-card.is-success::before {
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.chaos-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.chaos-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.chaos-result {
  flex: 0 0 auto;
  padding: 0.3rem 0.55rem;
  border: 1px solid rgba(231, 228, 243, 0.12);
  border-radius: 999px;
  color: #ff8a9f;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.chaos-card.is-success .chaos-result {
  color: var(--green);
}

.chaos-image {
  display: grid;
  width: 126px;
  height: 126px;
  place-items: center;
  margin: 0.2rem auto 1rem;
  border: 1px solid rgba(226, 60, 255, 0.22);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
}

.chaos-image img {
  max-width: 108px;
  max-height: 108px;
  object-fit: contain;
  image-rendering: pixelated;
  filter: drop-shadow(0 0 12px rgba(226, 60, 255, 0.42));
}

.chaos-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.chaos-fields span {
  min-width: 0;
  padding: 0.55rem;
  border: 1px solid rgba(231, 228, 243, 0.08);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--mist);
  font-weight: 800;
}

.chaos-fields strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: var(--ice);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-card-profile {
  width: min(1240px, calc(100vw - 32px));
  max-height: min(92vh, 980px);
  overflow: auto;
}

.modal-card-profile > [data-profile-title] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.profile-shell {
  display: grid;
  gap: 1rem;
}

.profile-hero {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
  padding: 1rem;
  border: 1px solid rgba(231, 228, 243, 0.12);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 10%, rgba(226, 60, 255, 0.16), transparent 45%),
    rgba(0, 0, 0, 0.25);
}

.profile-avatar {
  display: grid;
  min-height: 250px;
  place-items: end center;
}

.profile-avatar img {
  max-height: 250px;
  object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(0, 0, 0, 0.75)) drop-shadow(0 0 18px rgba(226, 60, 255, 0.4));
}

.profile-name {
  margin: 0 0 0.35rem;
  color: var(--ice);
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.profile-subline {
  margin-bottom: 1rem;
  color: var(--mist);
  font-size: 0.95rem;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.8rem;
  padding: 0.35rem 0.6rem;
  border: 1px solid rgba(231, 228, 243, 0.12);
  border-radius: 999px;
  color: #ff8a9f;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-status.is-online {
  color: var(--green);
  border-color: rgba(110, 255, 140, 0.26);
}

.profile-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.profile-metrics article,
.profile-panel {
  border: 1px solid rgba(231, 228, 243, 0.11);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.profile-metrics article {
  padding: 0.75rem;
  text-align: center;
}

.profile-metrics span,
.profile-panel li span:first-child {
  color: var(--mist);
  font-weight: 800;
  text-transform: uppercase;
}

.profile-metrics strong {
  display: block;
  color: var(--ice);
  font-family: "Cinzel", Georgia, serif;
  font-size: 1.35rem;
}

.profile-equipment {
  padding: 1rem;
  border: 1px solid rgba(231, 228, 243, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(216, 179, 106, 0.055), transparent 38%),
    rgba(0, 0, 0, 0.22);
}

.profile-equipment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid rgba(231, 228, 243, 0.1);
}

.profile-equipment-head h3 {
  margin: 0;
}

.profile-equipment-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1fr);
  gap: 1rem;
}

.equipment-board {
  position: relative;
  width: 100%;
  aspect-ratio: 270 / 250;
  overflow: hidden;
  border: 1px solid rgba(231, 228, 243, 0.16);
  border-radius: 8px;
  background:
    url("img/inventory/equipment_bg.webp") center/100% 100% no-repeat,
    rgba(0, 0, 0, 0.35);
}

.equipment-slot {
  position: absolute;
  display: grid;
  place-items: center;
  border: 1px solid rgba(226, 60, 255, 0.18);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

.equipment-slot:hover,
.equipment-slot.is-selected {
  border-color: var(--rune);
  box-shadow: 0 0 18px rgba(226, 60, 255, 0.35);
}

.equipment-slot.is-empty {
  opacity: 0.42;
}

.equipment-slot img {
  width: 92%;
  height: 92%;
  object-fit: contain;
  image-rendering: pixelated;
}

.equipment-slot[data-slot="8"]  { left: 1.7%; top: 2%; width: 26.7%; height: 28.8%; }
.equipment-slot[data-slot="2"]  { left: 38%; top: 2%; width: 26.7%; height: 28.8%; }
.equipment-slot[data-slot="7"]  { left: 70%; top: 4%; width: 26.7%; height: 28.8%; }
.equipment-slot[data-slot="0"]  { left: 1%; top: 36%; width: 27%; height: 30%; }
.equipment-slot[data-slot="3"]  { left: 37%; top: 36%; width: 26.7%; height: 28.8%; }
.equipment-slot[data-slot="1"]  { left: 73%; top: 38%; width: 26.7%; height: 28.8%; }
.equipment-slot[data-slot="5"]  { left: 2%; top: 70%; width: 26.7%; height: 28.8%; }
.equipment-slot[data-slot="4"]  { left: 37%; top: 70%; width: 26.7%; height: 28.8%; }
.equipment-slot[data-slot="6"]  { left: 74.1%; top: 70%; width: 25.6%; height: 28.8%; }
.equipment-slot[data-slot="9"]  { left: 25.5%; top: 31%; width: 13.3%; height: 14.4%; }
.equipment-slot[data-slot="10"] { left: 25.9%; top: 69.4%; width: 14.8%; height: 16%; }
.equipment-slot[data-slot="11"] { left: 61.4%; top: 70%; width: 14.8%; height: 16%; }

.equipment-info {
  min-height: 100%;
  padding: 1rem;
  border: 1px solid rgba(231, 228, 243, 0.1);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
}

.equipment-info h4 {
  margin: 0 0 0.65rem;
  color: var(--ice);
  font-family: "Cinzel", Georgia, serif;
}

.equipment-info dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 0;
}

.equipment-info div {
  padding: 0.55rem;
  border: 1px solid rgba(231, 228, 243, 0.08);
  border-radius: 6px;
}

.equipment-info dt {
  color: var(--mist);
  font-weight: 800;
  text-transform: uppercase;
}

.equipment-info dd {
  margin: 0;
  color: var(--ice);
}

.equipment-options {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--green);
  font-weight: 700;
}

.profile-lower {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1rem;
}

.profile-panel {
  padding: 1rem;
}

.profile-panel h3 {
  margin-bottom: 0.75rem;
}

.profile-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.profile-panel li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(231, 228, 243, 0.08);
}

.profile-panel li:last-child {
  border-bottom: 0;
}

.profile-panel li strong,
.profile-panel li span:last-child {
  color: var(--ice);
}

.profile-siblings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}

.profile-sibling {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
  padding: 0.65rem;
  border: 1px solid rgba(231, 228, 243, 0.1);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}

.profile-sibling img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.profile-sibling strong,
.profile-sibling span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

@keyframes emberRise {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(8deg);
  }
  15% {
    opacity: 0.78;
  }
  100% {
    opacity: 0;
    transform: translateY(-110vh) rotate(-10deg);
  }
}

@media (max-width: 1080px) {
  h1 {
    font-size: 4.4rem;
  }

  h2 {
    font-size: 2.7rem;
  }

  .site-header {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    display: none;
    width: min(360px, calc(100vw - 32px));
    padding: 0.7rem;
    border: 1px solid rgba(226, 60, 255, 0.28);
    background: rgba(6, 3, 11, 0.96);
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.5);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    width: 100%;
  }

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

  .hero-content,
  .split-layout,
  .ranking-layout,
  .download-layout,
  .panel-layout,
  .commerce-layout,
  .commerce-layout-flip {
    grid-template-columns: 1fr;
  }

  .castle-hero,
  .castle-grid,
  .profile-hero,
  .profile-equipment-layout,
  .profile-lower {
    grid-template-columns: 1fr;
  }

  .castle-stats,
  .chaos-feed-large,
  .profile-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-content {
    gap: 2rem;
  }

  .server-panel {
    max-width: 560px;
  }

  .quick-strip,
  .class-grid,
  .wallet-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .download-copy {
    padding-left: 0;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 0.97rem;
  }

  h1 {
    font-size: 3.1rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .site-header {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 64px;
    padding: 0.55rem;
  }

  .brand-mark img {
    width: 74px;
    height: 42px;
  }

  .brand-mark span,
  .header-actions .button-ghost span {
    display: none;
  }

  .header-actions .button-ghost {
    min-width: 46px;
    padding: 0;
  }

  .hero-section {
    min-height: 84svh;
    padding-top: 112px;
  }

  .hero-logo {
    width: 100%;
    margin-bottom: -1.6rem;
  }

  .hero-lead {
    font-size: 1.08rem;
  }

  .button {
    width: 100%;
  }

  .server-stats,
  .realm-grid,
  .quick-strip,
  .class-grid,
  .wallet-grid,
  .character-grid,
  .commerce-grid,
  .castle-stats,
  .castle-grid,
  .castle-steps,
  .chaos-feed-large,
  .form-grid,
  .check-grid,
  .profile-grid,
  .profile-metrics,
  .profile-lower,
  .profile-siblings,
  .equipment-info dl {
    grid-template-columns: 1fr;
  }

  .server-section,
  .castle-section,
  .panel-section,
  .classes-section,
  .news-section,
  .ranking-section,
  .market-section,
  .webshop-section,
  .chaos-section,
  .download-section {
    padding: 76px 0;
  }

  .castle-hero,
  .castle-panel,
  .profile-equipment,
  .profile-hero {
    padding: 1rem;
  }

  .castle-row {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .castle-row span:nth-child(3),
  .castle-row span:nth-child(4),
  .castle-row.table-head {
    display: none;
  }

  .profile-avatar {
    min-height: 190px;
  }

  .profile-avatar img {
    max-height: 190px;
  }

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

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

  .class-card {
    min-height: 370px;
  }

  .class-image {
    height: 220px;
  }

  .rank-board {
    overflow-x: auto;
  }

  .rank-row {
    width: 620px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
