:root {
  --bg: #090909;
  --bg-soft: #11100f;
  --panel: #171412;
  --panel-strong: #211a17;
  --line: rgba(255, 255, 255, 0.11);
  --text: #f6efe7;
  --muted: #b7aaa0;
  --red: #e7332f;
  --red-dark: #8f1716;
  --gold: #f1b85b;
  --steel: #9fb3bd;
  --teal: #45d0bf;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
  --radius: 8px;
  --cursor-normal: url("cursor/web/normal.cur") 0 0, auto;
  --cursor-action: url("cursor/web/target.cur") 1 1, pointer;
  --cursor-portal: url("cursor/web/portal.cur") 4 4, pointer;
  --cursor-move: url("cursor/web/move.cur") 0 0, move;
  --cursor-resize: url("cursor/web/resize.cur") 0 0, nwse-resize;
  --cursor-zoom: url("cursor/web/zoom.cur") 0 0, zoom-in;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, #060606 0%, #100d0b 42%, #080808 100%);
  color: var(--text);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  cursor: var(--cursor-normal);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(112deg, transparent 0 18%, rgba(231, 51, 47, 0.13) 18% 19%, transparent 19% 48%, rgba(241, 184, 91, 0.1) 48% 49%, transparent 49%),
    linear-gradient(24deg, transparent 0 58%, rgba(69, 208, 191, 0.08) 58% 60%, transparent 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 34%, rgba(231, 51, 47, 0.045) 78%, transparent);
}

a {
  color: inherit;
  text-decoration: none;
  cursor: var(--cursor-action);
}

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

button,
input[type="button"],
input[type="submit"],
summary,
[role="button"] {
  cursor: var(--cursor-action);
}

input,
textarea,
select {
  cursor: text;
}

.primary-button,
.secondary-button,
.donate-button,
.tab,
.social-link,
.nav-toggle {
  cursor: var(--cursor-action);
}

.topbar-actions a[href*="login"],
.topbar-actions a[href*="register"],
.topbar-actions a[href*="logout"],
.account-actions a[href*="login"],
.account-actions a[href*="register"],
.account-actions a[href*="logout"],
.auth-card .primary-button {
  cursor: var(--cursor-portal);
}

.cursor-move {
  cursor: var(--cursor-move);
}

.cursor-resize {
  cursor: var(--cursor-resize);
}

.cursor-zoom {
  cursor: var(--cursor-zoom);
}

.site-shell {
  overflow: hidden;
}

.topbar {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 74px;
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(12, 11, 10, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.topbar.is-scrolled {
  border-color: rgba(231, 51, 47, 0.34);
  background: rgba(9, 8, 8, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand__badge {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(241, 184, 91, 0.45);
  border-radius: 7px;
  overflow: hidden;
  background: #070707;
  color: #070707;
  font-weight: 950;
  letter-spacing: 0;
}

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

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
}

.brand small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}

.main-nav {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.main-nav a {
  padding: 12px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: #dfd4ca;
  font-size: 14px;
  font-weight: 700;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.main-nav a:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.topbar-actions,
.account-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.topbar-actions .secondary-button,
.account-actions .secondary-button {
  min-height: 44px;
  padding: 0 14px;
  font-size: 13px;
}

.account-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  max-width: 170px;
  padding: 0 10px;
  overflow: hidden;
  border: 1px solid rgba(241, 184, 91, 0.22);
  border-radius: var(--radius);
  background: rgba(241, 184, 91, 0.08);
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.is-hidden {
  display: none !important;
}

.donate-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 900;
  letter-spacing: 0;
  transition: transform 180ms ease, filter 180ms ease, border-color 180ms ease, background 180ms ease;
}

.donate-button,
.primary-button {
  background: linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  box-shadow: 0 14px 30px rgba(231, 51, 47, 0.28);
  color: #fff;
}

.donate-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.secondary-button {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--text);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: 56px;
  align-items: center;
  width: min(1180px, calc(100% - 32px));
  min-height: 760px;
  margin: 0 auto;
  padding: 140px 0 70px;
}

.hero__backdrop {
  position: absolute;
  inset: 118px -120px 34px;
  z-index: -1;
  background:
    linear-gradient(120deg, rgba(231, 51, 47, 0.12), transparent 34%),
    linear-gradient(310deg, rgba(241, 184, 91, 0.12), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.015));
  clip-path: polygon(0 8%, 100% 0, 96% 92%, 10% 100%);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  max-width: 100%;
  overflow-wrap: normal;
  white-space: nowrap;
  font-size: clamp(58px, 6vw, 86px);
  line-height: 0.9;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.95;
  text-transform: uppercase;
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.08;
}

p {
  color: var(--muted);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.hero__lead {
  max-width: 670px;
  margin-bottom: 30px;
  font-size: 20px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.social-links--hero {
  margin-bottom: 34px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(241, 184, 91, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(231, 51, 47, 0.12), transparent 58%),
    rgba(255, 255, 255, 0.045);
  color: #f7efe8;
  font-size: 13px;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.social-link:hover {
  border-color: rgba(231, 51, 47, 0.55);
  background:
    linear-gradient(135deg, rgba(231, 51, 47, 0.22), transparent 58%),
    rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.social-link svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: currentColor;
}

.social-link.is-muted {
  border-color: rgba(255, 255, 255, 0.11);
  color: var(--muted);
}

.social-link.is-muted::after {
  content: "скоро";
  color: var(--gold);
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.social-link--icon {
  width: 42px;
  padding: 0;
  justify-content: center;
}

.social-link--icon.is-muted::after {
  content: none;
}

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

.stat-grid article {
  min-height: 108px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17, 16, 15, 0.82);
}

.stat-grid__value {
  display: block;
  margin-bottom: 8px;
  color: #fff;
  font-size: 36px;
  font-weight: 950;
}

.stat-grid__label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero__visual {
  position: relative;
  min-height: 0;
}

.r2-showcase {
  display: grid;
  gap: 14px;
}

.r2-showcase__media {
  position: relative;
  display: grid;
  min-height: 360px;
  overflow: hidden;
  place-items: stretch;
  border: 1px solid rgba(241, 184, 91, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(115deg, rgba(231, 51, 47, 0.2), transparent 37%, rgba(241, 184, 91, 0.12) 72%, transparent),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.58)),
    #15100e;
  box-shadow: var(--shadow);
}

.r2-showcase__media::before,
.r2-showcase__media::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
}

.r2-showcase__media::before {
  background:
    linear-gradient(90deg, transparent 0 24%, rgba(241, 184, 91, 0.18) 24% 24.5%, transparent 24.5% 52%, rgba(255, 255, 255, 0.08) 52% 52.5%, transparent 52.5%),
    linear-gradient(0deg, rgba(241, 184, 91, 0.2) 0 1px, transparent 1px 100%) 0 74% / 100% 58px;
}

.r2-showcase__media::after {
  background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.58));
}

.r2-showcase__media img {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
}

.r2-showcase__label {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(9, 8, 8, 0.82);
  backdrop-filter: blur(12px);
}

.r2-showcase__label span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.r2-showcase__label strong {
  font-size: 14px;
  text-align: right;
}

.r2-class-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 8px;
}

.r2-class-strip article {
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.r2-class-strip b,
.r2-class-strip span {
  display: block;
}

.r2-class-strip b {
  margin-bottom: 8px;
  color: #fff;
  font-size: 14px;
}

.r2-class-strip span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.server-status-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.r2-stage {
  position: absolute;
  inset: 36px 0 86px 20px;
  overflow: hidden;
  border: 1px solid rgba(241, 184, 91, 0.28);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(14, 13, 12, 0.15), rgba(0, 0, 0, 0.68)),
    linear-gradient(115deg, rgba(231, 51, 47, 0.22), transparent 36%, rgba(241, 184, 91, 0.12) 72%, transparent),
    #15100e;
  box-shadow: var(--shadow);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.r2-stage::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 23%, rgba(255, 255, 255, 0.07) 23% 23.5%, transparent 23.5% 58%, rgba(255, 255, 255, 0.06) 58% 58.5%, transparent 58.5%),
    linear-gradient(0deg, rgba(241, 184, 91, 0.28) 0 1px, transparent 1px 100%) 0 78% / 100% 62px,
    linear-gradient(180deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.74));
}

.r2-stage::after {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 76px;
  height: 82px;
  content: "";
  background:
    linear-gradient(90deg, transparent 0 10%, rgba(241, 184, 91, 0.34) 10% 10.5%, transparent 10.5% 24%, rgba(241, 184, 91, 0.22) 24% 24.5%, transparent 24.5% 52%, rgba(231, 51, 47, 0.26) 52% 52.5%, transparent 52.5%),
    linear-gradient(180deg, transparent 0 40%, rgba(255, 255, 255, 0.08) 40% 42%, transparent 42%);
  transform: skewX(-13deg);
}

.stage-logo {
  position: absolute;
  top: 28px;
  left: 42px;
  z-index: 4;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 5px 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(241, 184, 91, 0.32);
  border-radius: var(--radius);
  background: rgba(9, 8, 8, 0.68);
  backdrop-filter: blur(12px);
}

.stage-logo img {
  grid-row: span 2;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  object-fit: cover;
}

.stage-logo span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stage-logo strong {
  color: #fff;
  font-size: 20px;
  line-height: 1;
  text-transform: uppercase;
}

.character {
  position: absolute;
  z-index: 3;
  bottom: 78px;
  width: 82px;
  height: 230px;
  filter: drop-shadow(0 18px 20px rgba(0, 0, 0, 0.62));
  animation: battle-idle 4.6s ease-in-out infinite;
}

.character .head,
.character .body,
.character .cloak,
.character .weapon,
.character .aura {
  position: absolute;
  display: block;
}

.character .head {
  left: 50%;
  top: 17px;
  width: 38px;
  height: 42px;
  border: 2px solid rgba(246, 239, 231, 0.88);
  border-radius: 8px 8px 5px 5px;
  background: linear-gradient(145deg, #d9d0c5, #5f5650 58%, #201b19);
  transform: translateX(-50%);
  clip-path: polygon(18% 0, 82% 0, 100% 58%, 72% 100%, 28% 100%, 0 58%);
}

.character .body {
  left: 50%;
  top: 58px;
  width: 62px;
  height: 112px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background:
    linear-gradient(90deg, transparent 0 47%, rgba(255, 255, 255, 0.18) 47% 53%, transparent 53%),
    linear-gradient(145deg, #2b2522, #75655a 40%, #1a1514 100%);
  transform: translateX(-50%);
  clip-path: polygon(18% 0, 82% 0, 100% 52%, 74% 100%, 26% 100%, 0 52%);
}

.character .body::before,
.character .body::after {
  position: absolute;
  bottom: -48px;
  width: 18px;
  height: 54px;
  content: "";
  background: linear-gradient(180deg, #2a2421, #0b0a09);
  clip-path: polygon(20% 0, 100% 0, 80% 100%, 0 100%);
}

.character .body::before {
  left: 10px;
}

.character .body::after {
  right: 10px;
  transform: scaleX(-1);
}

.character .cloak {
  left: 50%;
  top: 64px;
  z-index: -1;
  width: 82px;
  height: 134px;
  background: linear-gradient(180deg, rgba(120, 20, 19, 0.94), rgba(22, 13, 12, 0.25));
  transform: translateX(-50%);
  clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
}

.weapon--sword {
  left: 57px;
  top: 12px;
  width: 8px;
  height: 182px;
  background: linear-gradient(180deg, #f6efe7 0 58%, #5a4639 58% 100%);
  transform: rotate(18deg);
  transform-origin: 50% 90%;
  clip-path: polygon(50% 0, 100% 12%, 62% 78%, 62% 100%, 38% 100%, 38% 78%, 0 12%);
}

.weapon--bow {
  left: -5px;
  top: 28px;
  width: 64px;
  height: 168px;
  border-left: 4px solid #c89d5a;
  border-radius: 50% 0 0 50%;
  transform: rotate(-12deg);
}

.weapon--bow::after {
  position: absolute;
  left: 4px;
  top: 8px;
  width: 1px;
  height: 146px;
  content: "";
  background: rgba(246, 239, 231, 0.6);
}

.weapon--staff {
  right: 2px;
  top: 6px;
  width: 7px;
  height: 196px;
  background: linear-gradient(180deg, #45d0bf, #d8c08a 18%, #654c35 100%);
  transform: rotate(9deg);
}

.weapon--staff::before {
  position: absolute;
  left: -10px;
  top: -2px;
  width: 27px;
  height: 27px;
  border: 2px solid rgba(69, 208, 191, 0.9);
  border-radius: 50%;
  content: "";
  background: rgba(69, 208, 191, 0.13);
}

.weapon--dagger {
  right: -4px;
  top: 66px;
  width: 10px;
  height: 82px;
  background: linear-gradient(180deg, #f6efe7, #78604a 55%, #191412);
  transform: rotate(-36deg);
  clip-path: polygon(50% 0, 100% 22%, 62% 78%, 62% 100%, 38% 100%, 38% 78%, 0 22%);
}

.character--knight {
  left: 22%;
  bottom: 70px;
  transform: scale(1.16);
}

.character--knight .body {
  background:
    linear-gradient(90deg, transparent 0 47%, rgba(255, 255, 255, 0.2) 47% 53%, transparent 53%),
    linear-gradient(145deg, #3b312b, #b39a70 42%, #181412 100%);
}

.character--ranger {
  left: 45%;
  bottom: 62px;
  transform: scale(0.95);
  animation-delay: -1.2s;
}

.character--ranger .cloak {
  background: linear-gradient(180deg, rgba(39, 83, 71, 0.92), rgba(18, 16, 14, 0.2));
}

.character--mage {
  left: 63%;
  bottom: 58px;
  transform: scale(1.04);
  animation-delay: -2.1s;
}

.character--mage .aura {
  left: 9px;
  top: 28px;
  z-index: -2;
  width: 70px;
  height: 178px;
  border: 1px solid rgba(69, 208, 191, 0.35);
  background: linear-gradient(180deg, rgba(69, 208, 191, 0.16), transparent);
  clip-path: polygon(50% 0, 100% 48%, 64% 100%, 36% 100%, 0 48%);
}

.character--assassin {
  left: 77%;
  bottom: 54px;
  transform: scale(0.86);
  animation-delay: -3s;
}

.character--assassin .cloak {
  background: linear-gradient(180deg, rgba(46, 40, 38, 0.92), rgba(10, 9, 8, 0.12));
}

.server-card {
  position: static;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 74px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 14, 13, 0.9);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.server-card strong,
.server-card small {
  display: block;
}

.server-card small {
  margin-top: 4px;
  color: var(--muted);
}

.server-card b {
  color: var(--gold);
  font-size: 28px;
}

.server-card--main {
  border-color: rgba(69, 208, 191, 0.22);
}

.server-card--ghost {
  opacity: 0.9;
}

.pulse-dot,
.server-card--ghost span {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 8px rgba(69, 208, 191, 0.12);
}

.server-card--ghost span {
  background: var(--gold);
  box-shadow: 0 0 0 8px rgba(241, 184, 91, 0.13);
}

.pulse-dot {
  animation: pulse 1.8s ease-in-out infinite;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 88px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 34px;
}

.feature-grid,
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card,
.download-card,
.rating-card,
.news-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.feature-card {
  min-height: 270px;
  padding: 24px;
}

.feature-card__icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 42px;
  border: 1px solid rgba(241, 184, 91, 0.35);
  border-radius: var(--radius);
  color: var(--gold);
  font-weight: 950;
}

.class-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
  gap: 16px;
  align-items: stretch;
  justify-content: center;
}

.class-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 520px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
    #12100f;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.class-card::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(130deg, transparent 0 26%, rgba(241, 184, 91, 0.16) 26% 27%, transparent 27% 68%, rgba(255, 255, 255, 0.07) 68% 69%, transparent 69%),
    linear-gradient(180deg, transparent 0 64%, rgba(0, 0, 0, 0.62));
}

.class-card--knight::before {
  background:
    linear-gradient(130deg, transparent 0 27%, rgba(241, 184, 91, 0.2) 27% 28%, transparent 28%),
    linear-gradient(180deg, rgba(177, 138, 78, 0.1), rgba(0, 0, 0, 0.62));
}

.class-card--ranger::before {
  background:
    linear-gradient(130deg, transparent 0 30%, rgba(69, 208, 191, 0.16) 30% 31%, transparent 31%),
    linear-gradient(180deg, rgba(42, 92, 72, 0.12), rgba(0, 0, 0, 0.62));
}

.class-card--assassin::before {
  background:
    linear-gradient(130deg, transparent 0 22%, rgba(231, 51, 47, 0.18) 22% 23%, transparent 23%),
    linear-gradient(180deg, rgba(104, 28, 27, 0.16), rgba(0, 0, 0, 0.62));
}

.class-card--mage::before {
  background:
    linear-gradient(130deg, transparent 0 24%, rgba(69, 208, 191, 0.2) 24% 25%, transparent 25%),
    linear-gradient(180deg, rgba(48, 86, 102, 0.14), rgba(0, 0, 0, 0.62));
}

.class-card--summoner::before {
  background:
    linear-gradient(130deg, transparent 0 26%, rgba(241, 184, 91, 0.18) 26% 27%, transparent 27%),
    linear-gradient(180deg, rgba(92, 64, 137, 0.14), rgba(0, 0, 0, 0.62));
}

.class-card > * {
  position: relative;
  z-index: 2;
}

.class-card__art {
  position: relative;
  display: grid;
  height: clamp(250px, 23vw, 292px);
  margin: -22px -22px 22px;
  overflow: hidden;
  place-items: stretch;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
}

.class-card__art::before {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  width: 100%;
  height: 48%;
  content: "";
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.45));
  transform: translateX(-50%);
}

.class-card__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.class-emblem {
  display: grid;
  width: 96px;
  height: 96px;
  place-items: center;
  border: 1px solid rgba(241, 184, 91, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(231, 51, 47, 0.2), transparent 62%),
    rgba(255, 255, 255, 0.06);
  color: var(--gold);
  font-size: 52px;
  font-weight: 950;
  text-transform: uppercase;
}

.mini-character {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 96px;
  height: 188px;
  transform: translateX(-50%);
  filter: drop-shadow(0 18px 16px rgba(0, 0, 0, 0.56));
}

.mini-character::before {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 44px;
  height: 46px;
  border: 2px solid rgba(246, 239, 231, 0.8);
  border-radius: 8px 8px 5px 5px;
  content: "";
  background: linear-gradient(145deg, #d7c8b5, #514640 62%, #171312);
  transform: translateX(-50%);
  clip-path: polygon(18% 0, 82% 0, 100% 55%, 70% 100%, 30% 100%, 0 55%);
}

.mini-character::after {
  position: absolute;
  left: 50%;
  top: 55px;
  width: 76px;
  height: 126px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  content: "";
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(255, 255, 255, 0.16) 48% 52%, transparent 52%),
    linear-gradient(145deg, #1d1816, #836f58 45%, #100d0c);
  transform: translateX(-50%);
  clip-path: polygon(18% 0, 82% 0, 100% 54%, 72% 100%, 28% 100%, 0 54%);
}

.mini-character--knight {
  width: 114px;
}

.mini-character--knight::after {
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(255, 255, 255, 0.18) 48% 52%, transparent 52%),
    linear-gradient(145deg, #27211e, #b39163 46%, #100d0c);
}

.mini-character--knight {
  background:
    linear-gradient(101deg, transparent 0 72%, #f6efe7 72% 76%, transparent 76%) 12px 4px / 100% 100% no-repeat;
}

.mini-character--ranger {
  background:
    linear-gradient(96deg, transparent 0 22%, rgba(246, 239, 231, 0.58) 22% 23%, transparent 23%) 0 22px / 100% 82% no-repeat;
}

.mini-character--ranger::after {
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(255, 255, 255, 0.16) 48% 52%, transparent 52%),
    linear-gradient(145deg, #151a17, #4f8066 48%, #100d0c);
}

.mini-character--assassin::after {
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(255, 255, 255, 0.13) 48% 52%, transparent 52%),
    linear-gradient(145deg, #151211, #6f2a28 50%, #090807);
}

.mini-character--assassin {
  background:
    linear-gradient(122deg, transparent 0 68%, #f6efe7 68% 73%, transparent 73%) 0 62px / 100% 80px no-repeat,
    linear-gradient(58deg, transparent 0 25%, #d5c4ad 25% 30%, transparent 30%) 0 76px / 100% 80px no-repeat;
}

.mini-character--mage::after {
  background:
    linear-gradient(90deg, transparent 0 48%, rgba(255, 255, 255, 0.14) 48% 52%, transparent 52%),
    linear-gradient(145deg, #14161a, #416c7d 50%, #0b0908);
}

.mini-character--mage {
  background:
    linear-gradient(92deg, transparent 0 80%, #45d0bf 80% 84%, transparent 84%) 0 4px / 100% 100% no-repeat;
}

.download-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.download-card {
  min-height: 250px;
  padding: 26px;
}

.download-card--large {
  grid-row: span 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 514px;
  background:
    linear-gradient(145deg, rgba(231, 51, 47, 0.18), transparent 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
}

.tag {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  color: var(--steel);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.rating-card {
  padding: 18px;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tab {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: var(--cursor-action);
  font: inherit;
  font-weight: 900;
}

.tab.is-active {
  border-color: rgba(231, 51, 47, 0.48);
  background: rgba(231, 51, 47, 0.18);
  color: #fff;
}

.rating-row {
  display: grid;
  grid-template-columns: 60px 1fr 160px 90px;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 0 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.rating-head {
  display: grid;
  gap: 12px;
  min-height: 38px;
  padding: 0 16px 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.rating-head--guild,
.rating-row--guild {
  grid-template-columns: 60px minmax(180px, 1fr) minmax(330px, 0.95fr);
}

.rating-row:first-child {
  border-top: 0;
}

.rating-row span {
  color: var(--muted);
}

.rating-row strong {
  color: #fff;
}

.rating-row b {
  color: var(--gold);
}

.guild-cell {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.guild-cell > span:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.guild-mark {
  display: grid;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgba(241, 184, 91, 0.38);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
}

.guild-mark img {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  object-fit: contain;
}

.guild-mark--empty::before {
  width: 14px;
  height: 14px;
  border: 1px solid rgba(241, 184, 91, 0.68);
  border-radius: 3px;
  content: "";
  transform: rotate(45deg);
}

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

.guild-metrics span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.guild-metrics small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.guild-metrics b {
  color: var(--gold);
}

.rating-message,
.rating-note {
  padding: 18px 16px;
  color: var(--muted);
  font-weight: 700;
}

.rating-note {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

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

.news-card {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 26px;
}

.news-card--linked {
  overflow: hidden;
  padding: 0;
}

.news-card--linked time,
.news-card--linked h3,
.news-card--linked p {
  margin-left: 22px;
  margin-right: 22px;
}

.news-card time {
  display: block;
  margin-bottom: 24px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.news-card__image {
  display: block;
  height: 180px;
  margin-bottom: 20px;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
}

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

.news-card h3 a:hover {
  color: var(--gold);
}

.section-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.donate-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 40px auto 80px;
  padding: 34px;
  border: 1px solid rgba(231, 51, 47, 0.34);
  border-radius: var(--radius);
  background:
    linear-gradient(120deg, rgba(231, 51, 47, 0.22), transparent 52%),
    rgba(255, 255, 255, 0.05);
  box-shadow: var(--shadow);
}

.donate-strip h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4vw, 48px);
}

.donate-button--large {
  min-width: 220px;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 44px;
  border-top: 1px solid var(--line);
}

.footer p {
  margin: 0;
  font-size: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.footer-links a:hover {
  color: var(--gold);
}

.footer .social-links {
  margin-left: auto;
}

.account-page {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, #060606 0%, #100d0b 46%, #080808 100%);
}

.account-topbar {
  grid-template-columns: auto 1fr auto;
}

.account-main {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - 150px);
  margin: 0 auto;
  padding: 142px 0 70px;
}

.account-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
  gap: 42px;
  align-items: start;
}

.account-hero--compact {
  max-width: 980px;
  margin: 0 auto;
}

.account-hero__copy {
  padding-top: 24px;
}

.account-hero__copy h1,
.account-dashboard__head h1 {
  margin-bottom: 20px;
  font-size: clamp(46px, 6vw, 76px);
}

.auth-card,
.account-panel,
.account-summary article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.auth-card {
  display: grid;
  gap: 16px;
  padding: 26px;
}

.auth-card h2,
.account-panel h2 {
  margin-bottom: 0;
  font-size: 26px;
}

.auth-card label,
.account-form label {
  display: grid;
  gap: 8px;
}

.auth-card label span,
.account-form label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.auth-card input,
.account-form input {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  outline: 0;
  background: rgba(5, 5, 5, 0.55);
  color: var(--text);
  font: inherit;
}

.auth-card input:focus,
.account-form input:focus {
  border-color: rgba(241, 184, 91, 0.5);
}

.form-alert {
  padding: 12px 14px;
  border: 1px solid rgba(69, 208, 191, 0.26);
  border-radius: var(--radius);
  background: rgba(69, 208, 191, 0.08);
  color: #dffdf8;
  font-size: 14px;
  font-weight: 800;
}

.form-alert--error {
  border-color: rgba(231, 51, 47, 0.38);
  background: rgba(231, 51, 47, 0.1);
  color: #ffd9d9;
}

.form-hint {
  margin: 0;
  font-size: 14px;
}

.form-hint a {
  color: var(--gold);
  font-weight: 900;
}

.account-dashboard {
  display: grid;
  gap: 22px;
}

.account-dashboard__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
}

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

.account-summary article {
  min-height: 124px;
  padding: 20px;
}

.account-summary span,
.account-summary small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.account-summary strong {
  display: block;
  margin: 10px 0 8px;
  overflow: hidden;
  color: #fff;
  font-size: 28px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 14px;
  align-items: start;
}

.account-side {
  display: grid;
  gap: 14px;
}

.account-panel {
  padding: 22px;
}

.account-panel--wide {
  min-width: 0;
}

.account-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.account-panel__head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-form {
  display: grid;
  gap: 14px;
}

.account-table {
  display: grid;
}

.account-table__head,
.account-table__row {
  display: grid;
  grid-template-columns: 1fr 150px 90px 90px;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 0 6px;
}

.account-table__head {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.account-table__row {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.account-table__row strong {
  min-width: 0;
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-table__row span {
  color: var(--muted);
}

.account-table__row b {
  color: var(--gold);
}

.account-table--payments .account-table__head,
.account-table--payments .account-table__row {
  grid-template-columns: 1fr 120px 120px 120px;
}

.empty-state {
  margin: 0;
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}

.news-page-layout {
  display: grid;
  gap: 28px;
}

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

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.pagination a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-weight: 900;
}

.pagination a.is-active,
.pagination a:hover {
  border-color: rgba(231, 51, 47, 0.48);
  background: rgba(231, 51, 47, 0.18);
  color: #fff;
}

.news-detail {
  max-width: 940px;
  margin: 0 auto;
}

.news-detail time {
  display: block;
  margin: 12px 0 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
}

.news-detail h1 {
  white-space: normal;
}

.news-detail__lead {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: 19px;
}

.news-detail__cover {
  display: block;
  width: 100%;
  max-height: 520px;
  margin-bottom: 28px;
  border: 1px solid rgba(241, 184, 91, 0.24);
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.news-content {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.025));
}

.news-content h2 {
  margin: 10px 0 0;
  font-size: clamp(26px, 4vw, 40px);
}

.news-content p,
.news-content ul {
  margin-bottom: 0;
}

.news-content ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.news-figure {
  margin: 10px 0;
}

.news-figure img {
  display: block;
  width: 100%;
  max-height: 620px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  object-fit: contain;
  background: rgba(0, 0, 0, 0.24);
}

.news-inline-image {
  display: inline-block;
  width: auto;
  max-width: 100%;
  max-height: 1.35em;
  margin: 0 6px;
  vertical-align: -0.22em;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 4px;
  object-fit: contain;
  background: rgba(0, 0, 0, 0.2);
}

.news-inline-image:first-child {
  margin-left: 0;
}

.news-inline-image:last-child {
  margin-right: 0;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.admin-news-table .account-table__head,
.admin-news-table .account-table__row {
  grid-template-columns: minmax(0, 1fr) 110px 150px 240px;
}

.admin-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.admin-row-actions a,
.admin-row-actions button {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  cursor: var(--cursor-action);
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.admin-row-actions button {
  color: #ffd9d9;
}

.editor-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.75fr);
  gap: 14px;
  align-items: start;
}

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

.news-editor-form label {
  display: grid;
  gap: 8px;
}

.news-editor-form label span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.news-editor-form input,
.news-editor-form textarea,
.news-editor-form select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius);
  outline: 0;
  background: rgba(5, 5, 5, 0.55);
  color: var(--text);
  font: inherit;
}

.news-editor-form textarea {
  min-height: 120px;
  padding: 12px 14px;
  resize: vertical;
}

.news-editor-form textarea[name="body"] {
  min-height: 330px;
}

.editor-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 12px;
}

.editor-help {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border: 1px dashed rgba(241, 184, 91, 0.24);
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.editor-help b {
  color: var(--gold);
}

.editor-help code {
  color: #fff;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 14px;
}

.checkbox-line input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
}

.news-preview {
  position: sticky;
  top: 112px;
}

.news-card--preview {
  margin-bottom: 14px;
}

.news-content--preview {
  max-height: 520px;
  overflow: auto;
}

.legal-layout {
  display: grid;
  gap: 24px;
}

.legal-hero {
  max-width: 880px;
}

.legal-hero h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 6vw, 72px);
}

.legal-card {
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.legal-card h2 {
  margin: 10px 0 0;
  font-size: clamp(24px, 3vw, 34px);
}

.legal-card p,
.legal-card ul {
  margin-bottom: 0;
}

.legal-card ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.65;
}

.rules-table {
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  overflow: hidden;
}

.rules-table div {
  display: grid;
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.025);
}

.rules-table div:first-child {
  border-top: 0;
}

.rules-table b {
  color: #fff;
}

.rules-table span {
  color: var(--muted);
  line-height: 1.55;
}

.reveal {
  opacity: 1;
  transform: none;
  transition: transform 220ms ease;
}

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

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 8px rgba(69, 208, 191, 0.12);
  }

  50% {
    box-shadow: 0 0 0 15px rgba(69, 208, 191, 0.02);
  }
}

@keyframes battle-idle {
  0%,
  100% {
    margin-bottom: 0;
  }

  50% {
    margin-bottom: 7px;
  }
}

@media (max-width: 980px) {
  .topbar {
    display: flex;
    gap: 10px;
  }

  .topbar .brand {
    margin-right: auto;
  }

  .account-nav {
    display: none;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 44px;
    justify-self: end;
    order: 1;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(9, 8, 8, 0.96);
  }

  .main-nav.is-open {
    display: flex;
  }

  .donate-button {
    flex: 0 0 auto;
    order: 2;
    justify-self: end;
  }

  .topbar-actions {
    order: 2;
  }

  .account-actions {
    order: 2;
  }

  .topbar-actions .secondary-button,
  .account-actions .secondary-button {
    min-height: 40px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    padding-top: 142px;
  }

  .hero__visual {
    min-height: 0;
  }

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

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

  .download-layout {
    grid-template-columns: 1fr;
  }

  .download-card--large {
    min-height: 360px;
  }
}

@media (max-width: 700px) {
  .topbar {
    top: 10px;
    width: calc(100% - 20px);
    min-height: 104px;
    padding: 10px;
    align-items: start;
    flex-wrap: wrap;
  }

  .brand small {
    display: none;
  }

  .brand strong {
    font-size: 14px;
  }

  .brand__badge {
    width: 38px;
    height: 38px;
  }

  .donate-button {
    min-height: 40px;
    padding: 0 12px;
    font-size: 13px;
  }

  .topbar > .donate-button,
  .topbar-actions .donate-button {
    display: inline-flex;
  }

  .topbar-actions,
  .account-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    order: 3;
    width: 100%;
    margin-right: 0;
  }

  .topbar-actions .secondary-button,
  .topbar-actions .donate-button,
  .account-actions .secondary-button,
  .account-actions .donate-button {
    display: inline-flex;
    min-height: 38px;
    padding: 0 8px;
    font-size: 11px;
    white-space: nowrap;
  }

  .topbar-actions .account-chip,
  .account-actions .account-chip {
    grid-column: 1 / -1;
    justify-content: center;
    max-width: none;
    min-height: 30px;
  }

  .nav-toggle {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: block;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.08);
    transform: none;
  }

  .hero,
  .section,
  .donate-strip,
  .footer,
  .account-main {
    width: min(100% - 20px, 1180px);
  }

  .hero {
    min-height: auto;
    padding-top: 166px;
    padding-bottom: 44px;
  }

  h1 {
    font-size: clamp(40px, 12vw, 50px);
    white-space: normal;
  }

  h2 {
    overflow-wrap: anywhere;
    font-size: clamp(26px, 8vw, 34px);
  }

  .hero__lead {
    font-size: 17px;
  }

  .hero__actions,
  .stat-grid,
  .feature-grid,
  .news-grid,
  .news-grid--archive,
  .editor-grid {
    grid-template-columns: 1fr;
  }

  .hero__actions {
    display: grid;
  }

  .hero__actions a {
    width: 100%;
  }

  .social-links--hero {
    display: grid;
    grid-template-columns: 1fr;
  }

  .social-link {
    justify-content: center;
  }

  .hero__visual {
    min-height: 0;
  }

  .r2-stage {
    inset: 28px 0 70px 0;
  }

  .r2-showcase__media {
    min-height: 300px;
  }

  .r2-showcase__label {
    align-items: flex-start;
    flex-direction: column;
  }

  .r2-showcase__label strong {
    text-align: left;
  }

  .r2-class-strip,
  .server-status-row {
    grid-template-columns: 1fr;
  }

  .stage-logo {
    left: 24px;
    top: 22px;
  }

  .character {
    width: 68px;
    height: 200px;
  }

  .character--knight {
    left: 20%;
  }

  .character--ranger {
    left: 43%;
  }

  .character--mage {
    left: 62%;
  }

  .character--assassin {
    left: 78%;
  }

  .section {
    padding: 58px 0;
  }

  .feature-card {
    min-height: 230px;
  }

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

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

  .rating-row {
    grid-template-columns: 44px 1fr 58px;
    padding: 12px 6px;
  }

  .rating-row:not(.rating-row--guild) span:nth-child(3) {
    display: none;
  }

  .rating-head--guild {
    display: none;
  }

  .rating-row--guild {
    grid-template-columns: 38px 1fr;
    gap: 8px 10px;
    padding: 14px 6px;
  }

  .rating-row--guild .guild-metrics {
    grid-column: 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guild-mark {
    flex-basis: 28px;
    width: 28px;
    height: 28px;
  }

  .guild-metrics small {
    font-size: 10px;
    line-height: 1.2;
  }

  .donate-strip,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer .social-links {
    margin-left: 0;
  }

  .donate-button--large {
    width: 100%;
  }

  .account-main {
    padding-top: 166px;
  }

  .account-hero,
  .account-grid,
  .account-summary {
    grid-template-columns: 1fr;
  }

  .account-dashboard__head {
    align-items: flex-start;
    flex-direction: column;
  }

  .account-hero__copy h1,
  .account-dashboard__head h1 {
    font-size: clamp(34px, 11vw, 48px);
    white-space: normal;
  }

  .auth-card,
  .account-panel {
    padding: 18px;
  }

  .account-table__head {
    display: none;
  }

  .account-table__row,
  .account-table--payments .account-table__row {
    grid-template-columns: 1fr 72px;
    gap: 6px 12px;
    padding: 12px 0;
  }

  .account-table__row span,
  .account-table__row b {
    font-size: 13px;
  }

  .admin-news-table .account-table__row {
    grid-template-columns: 1fr;
  }

  .admin-row-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .editor-row {
    grid-template-columns: 1fr;
  }

  .news-preview {
    position: static;
  }

  .news-content {
    padding: 18px;
  }

  .section-actions {
    justify-content: stretch;
  }

  .section-actions a {
    width: 100%;
  }

  .rules-table div {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .legal-card {
    padding: 18px;
  }
}

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