:root {
  --black: #050505;
  --black-soft: #0b0b0d;
  --panel: rgba(12, 12, 14, 0.96);
  --panel-soft: rgba(20, 20, 23, 0.93);
  --line: rgba(174, 132, 72, 0.36);
  --line-soft: rgba(255, 255, 255, 0.09);
  --gold: #c99b52;
  --gold-bright: #f0cc83;
  --gold-dark: #6e4822;
  --red: #a51d1d;
  --red-bright: #e04632;
  --bone: #eee7da;
  --muted: #a7a09a;
  --exile: #aab0b5;
  --green: #79c76b;
  --danger: #e26455;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.48);
  --title: Georgia, "Times New Roman", serif;
  --body: "Segoe UI", Tahoma, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--bone);
  background:
    radial-gradient(circle at 50% -10%, rgba(127, 22, 17, 0.2), transparent 34%),
    linear-gradient(180deg, #09090a 0%, #030304 100%);
  font-family: var(--body);
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.2;
  background-image: url("/images/exile-texture.png");
  background-size: 760px auto;
  mix-blend-mode: soft-light;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  position: relative;
  z-index: 50;
  height: 86px;
  background:
    linear-gradient(180deg, rgba(30, 21, 16, 0.99), rgba(8, 8, 9, 0.99));
  border-bottom: 1px solid rgba(193, 139, 65, 0.48);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.75);
}

.header-glow {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red-bright), var(--gold-bright), var(--red-bright), transparent);
  opacity: 0.8;
}

.header-inner {
  position: relative;
  width: min(1240px, calc(100% - 32px));
  height: 100%;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 220px 1fr;
  align-items: center;
}

.brand {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 210px;
  transform: translateX(-50%);
  z-index: 3;
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.8));
}

.brand img {
  display: block;
  width: 100%;
  height: auto;
}

.desktop-nav,
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.desktop-nav {
  grid-column: 1;
}

.desktop-nav a,
.header-link {
  color: #c7beb2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.desktop-nav a:hover,
.header-link:hover {
  color: var(--gold-bright);
}

.header-actions {
  grid-column: 3;
  justify-self: end;
}

.header-button {
  min-height: 38px;
  padding: 9px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--bone);
  background: linear-gradient(180deg, #201913, #0c0b0b);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08), 0 5px 14px rgba(0, 0, 0, 0.4);
}

.header-button-gold {
  color: #1b1107;
  border-color: #e0b661;
  background: linear-gradient(180deg, #f4d58c, #b47a2b 63%, #5d3517);
}

.header-button-red {
  border-color: #8f2a24;
  background: linear-gradient(180deg, #83231d, #35100f);
}

.logout-form {
  margin: 0;
}

.mobile-menu {
  display: none;
  position: relative;
}

.mobile-menu summary {
  width: 42px;
  height: 38px;
  display: grid;
  align-content: center;
  gap: 5px;
  padding: 8px;
  list-style: none;
  border: 1px solid var(--line);
  background: #111;
}

.mobile-menu summary::-webkit-details-marker {
  display: none;
}

.mobile-menu summary span {
  display: block;
  height: 2px;
  background: var(--gold-bright);
}

.mobile-menu nav {
  position: absolute;
  top: 48px;
  right: 0;
  width: 210px;
  padding: 8px;
  border: 1px solid var(--line);
  background: rgba(8, 8, 9, 0.99);
  box-shadow: var(--shadow);
}

.mobile-menu nav a,
.mobile-menu nav button {
  width: 100%;
  display: block;
  padding: 12px;
  color: var(--bone);
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metal-panel {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(29, 25, 22, 0.97), rgba(8, 8, 10, 0.98));
  box-shadow: var(--shadow), inset 0 1px rgba(255, 255, 255, 0.055);
}

.metal-panel::before {
  content: "";
  position: absolute;
  inset: 5px;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.035);
}

.eyebrow,
.hero-kicker,
.world-index,
.status-label {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.button {
  min-height: 44px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.18s ease, filter 0.18s ease, border-color 0.18s ease;
}

.button:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.button-primary {
  color: #170c07;
  border-color: #f0bd66;
  background: linear-gradient(180deg, #f0ce81 0%, #b77a29 59%, #613217 100%);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.5), 0 10px 24px rgba(0, 0, 0, 0.35);
}

.button-ghost {
  color: var(--bone);
  border-color: rgba(198, 153, 82, 0.48);
  background: rgba(7, 7, 8, 0.75);
}

.button-full {
  width: 100%;
}

.hero-section {
  position: relative;
  min-height: 640px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, rgba(3, 3, 4, 0.94) 0%, rgba(5, 5, 6, 0.74) 35%, rgba(5, 5, 6, 0.25) 68%, rgba(3, 3, 4, 0.78) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.12), #050506 100%),
    url("/images/hard-bg.png");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 45%, rgba(194, 50, 28, 0.17), transparent 25%),
    linear-gradient(180deg, transparent 50%, #050506 100%);
}

.hero-layout {
  position: relative;
  z-index: 1;
  min-height: 640px;
  padding: 92px 0 52px;
  display: grid;
  grid-template-columns: 310px 1fr;
  gap: 32px;
  align-items: center;
}

.account-panel {
  padding: 28px;
}

.panel-heading {
  position: relative;
  z-index: 1;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.panel-heading h2 {
  margin: 7px 0 0;
  font-family: var(--title);
  font-size: 27px;
  font-weight: 600;
}

.panel-heading p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.auth-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 15px;
  margin-top: 20px;
}

.auth-form label {
  display: grid;
  gap: 7px;
}

.auth-form label > span {
  color: #c6b9aa;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-form label em {
  color: #77716c;
  font-style: normal;
  font-weight: 600;
}

.auth-form input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  color: #fff;
  border: 1px solid #40352e;
  border-radius: 0;
  outline: none;
  background: rgba(0, 0, 0, 0.55);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.auth-form input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 155, 82, 0.11);
}

.auth-form small {
  color: #77716c;
  font-size: 11px;
}

.account-help {
  margin: 18px 0 8px;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
}

.account-security {
  margin-top: 22px;
  padding-top: 17px;
  display: flex;
  gap: 10px;
  color: #837d77;
  border-top: 1px solid var(--line-soft);
  font-size: 11px;
}

.account-security p {
  margin: 0;
}

.security-mark {
  color: var(--gold-dark);
}

.connected-account {
  position: relative;
  z-index: 1;
  margin: 22px 0 16px;
  padding: 16px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.03);
}

.connected-account span,
.connected-account strong {
  display: block;
}

.connected-account span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.connected-account strong {
  margin-top: 4px;
  color: var(--gold-bright);
  font-size: 21px;
}

.connected-account + .button + form {
  margin-top: 10px;
}

.alert {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  padding: 11px 12px;
  border: 1px solid;
  font-size: 12px;
}

.alert-error {
  color: #ffd0ca;
  border-color: rgba(226, 100, 85, 0.55);
  background: rgba(104, 24, 18, 0.32);
}

.alert-success {
  color: #d6f5d0;
  border-color: rgba(121, 199, 107, 0.5);
  background: rgba(28, 83, 28, 0.3);
}

.hero-content {
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-copy {
  max-width: 760px;
  padding: 40px 20px 34px 10px;
}

.hero-copy h1 {
  margin: 14px 0 20px;
  max-width: 780px;
  font-family: var(--title);
  font-size: clamp(41px, 5.5vw, 72px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-shadow: 0 4px 20px #000;
}

.hero-copy h1 em {
  color: #db4935;
  font-style: normal;
}

.hero-copy > p {
  max-width: 640px;
  margin: 0;
  color: #d0c7bd;
  font-size: 16px;
  line-height: 1.8;
  text-shadow: 0 2px 8px #000;
}

.hero-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
}

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

.status-card {
  min-height: 88px;
  padding: 17px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line-soft);
  background: rgba(7, 7, 8, 0.88);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.38);
}

.status-card > div > span,
.status-card > div > strong {
  display: block;
}

.status-card > div > strong {
  margin-top: 4px;
  font-family: var(--title);
  font-size: 22px;
  line-height: 1.1;
}

.status-hard {
  border-left: 3px solid var(--red-bright);
}

.status-exile {
  border-left: 3px solid #a5abb1;
}

.world-focus {
  flex: 0 0 auto;
  padding: 7px 9px;
  color: #e8b96a;
  border: 1px solid rgba(201, 155, 82, 0.35);
  background: rgba(103, 42, 22, 0.25);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.world-focus-exile {
  color: #c5cbd0;
  border-color: rgba(180, 188, 194, 0.25);
  background: rgba(125, 134, 142, 0.1);
}

.server-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.server-status i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.server-status.is-online {
  color: #bcefb3;
}

.server-status.is-online i {
  background: var(--green);
  box-shadow: 0 0 12px rgba(121, 199, 107, 0.8);
}

.server-status.is-offline {
  color: #928d88;
}

.server-status.is-offline i {
  background: #6f6b68;
}

.numbers-section {
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #0d0c0c, #080809);
}

.numbers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.numbers-grid > div {
  min-height: 105px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line-soft);
}

.numbers-grid > div:first-child {
  border-left: 1px solid var(--line-soft);
}

.numbers-grid span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.numbers-grid strong {
  margin-top: 4px;
  color: var(--gold-bright);
  font-family: var(--title);
  font-size: 27px;
  font-weight: 500;
}

.section-space {
  padding: 90px 0;
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading.centered {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading h2,
.ranking-header h2,
.final-cta h2,
.characters-section h2 {
  margin: 8px 0 0;
  font-family: var(--title);
  font-size: clamp(31px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.1;
}

.section-heading p,
.ranking-header p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.worlds-section {
  position: relative;
  background:
    radial-gradient(circle at 15% 40%, rgba(145, 31, 25, 0.14), transparent 28%),
    radial-gradient(circle at 85% 65%, rgba(137, 145, 153, 0.09), transparent 30%),
    #050506;
}

.world-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.world-card {
  position: relative;
  min-height: 510px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
}

.world-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  transition: transform 0.6s ease;
}

.world-card:hover .world-art {
  transform: scale(1.035);
}

.world-hard .world-art {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.02) 20%, rgba(4, 4, 5, 0.98) 83%),
    url("/images/hard-bg.png");
  background-position: center;
}

.world-exile .world-art {
  background-image:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03) 20%, rgba(4, 4, 5, 0.99) 83%),
    url("/images/exile-hero.png");
  background-position: center 35%;
}

.world-hard {
  border-bottom: 3px solid #a32c23;
}

.world-exile {
  border-bottom: 3px solid #9ba1a6;
}

.world-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 38px;
}

.world-content h3 {
  margin: 6px 0 10px;
  font-family: var(--title);
  font-size: 48px;
  font-weight: 500;
}

.world-hard h3 {
  color: #ef654e;
}

.world-exile h3 {
  color: #d3d7da;
}

.world-content p {
  max-width: 520px;
  margin: 0;
  color: #c5bdb4;
  font-size: 14px;
  line-height: 1.7;
}

.world-content ul {
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  list-style: none;
}

.world-content li {
  padding: 7px 9px;
  color: #d5cec5;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(0, 0, 0, 0.5);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.same-world-note {
  margin-top: 18px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(90deg, rgba(114, 19, 17, 0.15), rgba(255, 255, 255, 0.035));
  text-align: center;
}

.same-world-note span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.same-world-note strong {
  color: var(--bone);
  font-size: 14px;
}

.community-section {
  position: relative;
  border-top: 1px solid var(--line-soft);
  background:
    radial-gradient(circle at 18% 25%, rgba(157, 39, 26, 0.12), transparent 27%),
    radial-gradient(circle at 83% 70%, rgba(201, 155, 82, 0.08), transparent 30%),
    #080809;
}

.community-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.castle-card,
.factions-card {
  min-height: 260px;
  padding: 34px;
}

.castle-card {
  display: flex;
  align-items: center;
  gap: 28px;
  overflow: hidden;
}

.castle-card::after {
  content: "";
  position: absolute;
  right: -65px;
  bottom: -100px;
  width: 260px;
  height: 260px;
  border: 1px solid rgba(201, 155, 82, 0.09);
  transform: rotate(45deg);
}

.castle-emblem,
.castle-content,
.community-card-heading,
.faction-list,
.community-unavailable {
  position: relative;
  z-index: 1;
}

.castle-emblem {
  flex: 0 0 88px;
  width: 88px;
  height: 108px;
  display: grid;
  place-items: center;
  color: #211307;
  border: 1px solid #e4bd70;
  background:
    linear-gradient(135deg, transparent 14px, #e4bd70 0) top left,
    linear-gradient(225deg, transparent 14px, #a56825 0) top right,
    linear-gradient(45deg, transparent 14px, #7d471d 0) bottom left,
    linear-gradient(315deg, transparent 14px, #c18d43 0) bottom right;
  background-size: 50% 50%;
  background-repeat: no-repeat;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.46), inset 0 1px rgba(255, 255, 255, 0.45);
  font-family: var(--title);
  font-size: 25px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.castle-content h3,
.community-card-heading h3,
.community-card-heading h2 {
  margin: 7px 0 0;
  font-family: var(--title);
  font-size: 27px;
  font-weight: 500;
}

.castle-owner,
.castle-master {
  display: block;
}

.castle-owner {
  margin-top: 18px;
  color: var(--gold-bright);
  font-family: var(--title);
  font-size: 31px;
  font-weight: 500;
  line-height: 1.05;
}

.castle-owner-empty {
  max-width: 250px;
  color: #928a82;
  font-size: 20px;
}

.castle-master {
  margin-top: 8px;
  color: #8e8780;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.castle-master b {
  color: #cfc5ba;
}

.community-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.community-card-heading > strong {
  color: var(--gold-bright);
  font-family: var(--title);
  font-size: 29px;
  font-weight: 500;
}

.faction-list {
  margin-top: 18px;
  display: grid;
  gap: 8px;
}

.faction-summary-item {
  min-height: 48px;
  padding: 10px 13px;
  display: grid;
  grid-template-columns: 8px 1fr auto;
  align-items: center;
  gap: 11px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.28);
}

.faction-summary-item i {
  width: 8px;
  height: 26px;
  background: var(--faction-accent, var(--gold));
  box-shadow: 0 0 13px rgba(201, 155, 82, 0.32);
}

.faction-summary-item span {
  color: #c8beb4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faction-summary-item strong {
  color: var(--bone);
  font-family: var(--title);
  font-size: 23px;
  font-weight: 500;
}

.community-unavailable {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.ranking-section {
  background:
    linear-gradient(180deg, rgba(24, 20, 17, 0.72), rgba(4, 4, 5, 0.96)),
    url("/images/bg-blk.png");
}

.ranking-panel {
  padding: 38px;
}

.ranking-header {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.ranking-badge {
  padding: 10px 14px;
  color: var(--gold-bright);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.3);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.17em;
}

.ranking-table-wrap {
  position: relative;
  z-index: 1;
  overflow-x: auto;
  border: 1px solid var(--line-soft);
}

.ranking-table {
  width: 100%;
  min-width: 1040px;
  border-collapse: collapse;
}

.ranking-table th,
.ranking-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
}

.ranking-table th {
  color: #8f8881;
  background: rgba(0, 0, 0, 0.45);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ranking-table td {
  color: #bcb5ae;
  font-size: 13px;
}

.ranking-table tbody tr:last-child td {
  border-bottom: 0;
}

.ranking-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.025);
}

.ranking-table td strong {
  color: var(--bone);
}

.ranking-faction {
  color: #d3c4b2;
}

.ranking-level,
.ranking-hostility {
  color: var(--gold-bright) !important;
}

.rank-position {
  width: 29px;
  height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #111;
  font-size: 11px;
  font-weight: 900;
}

.rank-1 {
  color: #201304;
  border-color: #f2cb6d;
  background: linear-gradient(180deg, #f4d98f, #a96f20);
}

.rank-2 {
  color: #191919;
  border-color: #d4d8da;
  background: linear-gradient(180deg, #eef0f1, #8c9398);
}

.rank-3 {
  color: #1d0d06;
  border-color: #d17e49;
  background: linear-gradient(180deg, #dc9360, #74361b);
}

.empty-state {
  position: relative;
  z-index: 1;
  padding: 32px;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  text-align: center;
}

.final-cta {
  padding: 46px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(85, 15, 12, 0.85), rgba(18, 15, 14, 0.92)),
    url("/images/hard-bg.png") center 68% / cover;
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.final-cta h2 {
  font-size: clamp(30px, 4vw, 43px);
}

.site-footer {
  padding: 34px 0;
  background: #050506;
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 75px 1fr auto;
  align-items: center;
  gap: 20px;
}

.footer-inner img {
  width: 75px;
}

.footer-inner strong {
  color: var(--gold-bright);
  font-family: var(--title);
  font-size: 21px;
}

.footer-inner p,
.footer-legal {
  margin: 3px 0 0;
  color: #77716c;
  font-size: 11px;
}

.footer-legal {
  display: grid;
  gap: 4px;
  text-align: right;
}

.inner-main {
  min-height: calc(100vh - 230px);
  padding: 110px 0 85px;
  background:
    radial-gradient(circle at 15% 15%, rgba(148, 27, 20, 0.15), transparent 28%),
    radial-gradient(circle at 85% 75%, rgba(144, 150, 155, 0.08), transparent 25%);
}

.auth-layout {
  display: grid;
  grid-template-columns: 1fr 500px;
  gap: 36px;
  align-items: center;
}

.register-story {
  padding: 25px;
}

.register-story h1 {
  max-width: 600px;
  margin: 12px 0 18px;
  font-family: var(--title);
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 500;
  line-height: 1;
}

.register-story h1 strong {
  color: var(--red-bright);
  font-weight: 500;
}

.register-story > p {
  max-width: 610px;
  color: #aaa29a;
  font-size: 15px;
  line-height: 1.75;
}

.register-worlds {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.register-world {
  padding: 20px;
  border: 1px solid var(--line-soft);
  background: rgba(10, 10, 11, 0.72);
}

.register-world span,
.register-world strong {
  display: block;
}

.register-world span {
  color: var(--gold);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

.register-world strong {
  margin-top: 4px;
  font-family: var(--title);
  font-size: 25px;
}

.register-world p {
  margin: 8px 0 0;
  color: #89837d;
  font-size: 12px;
}

.hard-mini {
  border-left: 3px solid var(--red-bright);
}

.exile-mini {
  border-left: 3px solid #9da3a8;
}

.form-panel {
  padding: 34px;
}

.form-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.text-link {
  color: var(--gold);
  font-size: 12px;
  font-weight: 700;
}

.text-link:hover {
  color: var(--gold-bright);
}

.centered-link {
  display: block;
  text-align: center;
}

.player-area .page-shell {
  display: grid;
  gap: 30px;
}

.area-heading {
  padding: 34px 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.area-heading > div:first-child {
  position: relative;
  z-index: 1;
}

.area-heading h1 {
  margin: 8px 0 8px;
  font-family: var(--title);
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 500;
}

.area-heading h1 strong {
  color: var(--gold-bright);
  font-weight: 500;
}

.area-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.area-summary {
  position: relative;
  z-index: 1;
  min-width: 120px;
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  text-align: center;
}

.area-summary span,
.area-summary strong {
  display: block;
}

.area-summary span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.area-summary strong {
  color: var(--gold-bright);
  font-family: var(--title);
  font-size: 32px;
  font-weight: 500;
}

.area-world-note {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.world-pip {
  padding: 15px 18px;
  display: flex;
  justify-content: space-between;
  border: 1px solid var(--line-soft);
  background: rgba(8, 8, 9, 0.75);
}

.world-pip span {
  font-family: var(--title);
  font-size: 20px;
}

.world-pip strong {
  align-self: center;
  color: #77716c;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hard-pip {
  border-left: 3px solid var(--red-bright);
}

.exile-pip {
  border-right: 3px solid #a1a7ac;
}

.shared-character {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

.shared-character i {
  width: 26px;
  height: 1px;
  background: var(--line);
}

.account-overview {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.wallet-panel,
.donate-banner {
  padding: 28px;
}

.balance-grid {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.balance-item {
  min-width: 0;
  padding: 15px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.3);
}

.balance-item span,
.balance-item strong {
  display: block;
}

.balance-item span {
  color: #817a74;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.balance-item strong {
  margin-top: 4px;
  overflow: hidden;
  color: #d7cec3;
  font-family: var(--title);
  font-size: 25px;
  font-weight: 500;
  text-overflow: ellipsis;
}

.balance-wcoin {
  border-color: rgba(201, 155, 82, 0.34);
  background: linear-gradient(145deg, rgba(130, 82, 29, 0.22), rgba(0, 0, 0, 0.31));
}

.balance-wcoin strong {
  color: var(--gold-bright);
}

.wallet-unavailable {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding: 15px;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  font-size: 12px;
}

.donate-banner {
  min-height: 205px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 15%, rgba(240, 204, 131, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(83, 28, 18, 0.96), rgba(13, 12, 13, 0.98));
}

.donate-banner::after {
  content: "W";
  position: absolute;
  right: 17px;
  bottom: -47px;
  color: rgba(255, 255, 255, 0.035);
  font-family: var(--title);
  font-size: 180px;
  font-weight: 900;
  line-height: 1;
}

.donate-banner > * {
  position: relative;
  z-index: 1;
}

.donate-banner h2 {
  margin: 8px 0 7px;
  font-family: var(--title);
  font-size: 29px;
  font-weight: 500;
}

.donate-banner p {
  max-width: 315px;
  margin: 0;
  color: #afa39a;
  font-size: 12px;
}

.button-disabled {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 10px 13px;
  color: #887f77;
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(0, 0, 0, 0.3);
  cursor: not-allowed;
  pointer-events: none;
}

.characters-section {
  padding-top: 20px;
}

.characters-section h2 {
  font-size: 38px;
}

.character-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.character-card {
  padding: 27px;
}

.character-top,
.character-stats {
  position: relative;
  z-index: 1;
}

.character-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
}

.character-class {
  color: var(--gold);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.character-top h3 {
  margin: 3px 0 0;
  font-family: var(--title);
  font-size: 28px;
  font-weight: 500;
}

.level-mark {
  text-align: right;
}

.level-mark span,
.level-mark strong {
  display: block;
}

.level-mark span {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.level-mark strong {
  color: var(--gold-bright);
  font-family: var(--title);
  font-size: 26px;
  font-weight: 500;
}

.character-stats {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}

.character-stats > div {
  padding: 12px;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.27);
}

.character-stats .wide {
  grid-column: span 2;
}

.character-stats span,
.character-stats strong {
  display: block;
}

.character-stats span {
  color: #77716c;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.character-stats strong {
  margin-top: 3px;
  color: #d6cec5;
  font-size: 13px;
}

.area-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.error-page {
  display: grid;
  place-items: center;
}

.error-panel {
  width: min(600px, calc(100% - 32px));
  padding: 50px;
  text-align: center;
}

.error-panel > * {
  position: relative;
  z-index: 1;
}

.error-code {
  display: block;
  color: var(--red-bright);
  font-family: var(--title);
  font-size: 80px;
  line-height: 1;
}

.error-panel h1 {
  margin: 12px 0;
  font-family: var(--title);
  font-weight: 500;
}

.error-panel p {
  margin: 0 0 25px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr 180px 1fr;
  }

  .brand {
    width: 180px;
  }

  .desktop-nav,
  .desktop-only {
    display: none;
  }

  .header-actions {
    grid-column: 3;
  }

  .mobile-menu {
    display: block;
  }

  .hero-layout {
    grid-template-columns: 285px 1fr;
    gap: 22px;
  }

  .hero-copy h1 {
    font-size: 47px;
  }

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

  .auth-layout {
    grid-template-columns: 1fr 460px;
    gap: 16px;
  }

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

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

@media (max-width: 760px) {
  .site-header {
    height: 72px;
  }

  .header-inner {
    width: calc(100% - 22px);
    grid-template-columns: 1fr 120px 1fr;
  }

  .brand {
    width: 145px;
    top: 8px;
  }

  .header-button-gold {
    display: none;
  }

  .hero-section,
  .hero-layout {
    min-height: auto;
  }

  .hero-backdrop {
    background-image:
      linear-gradient(180deg, rgba(3, 3, 4, 0.5), rgba(3, 3, 4, 0.9) 42%, #050506 100%),
      url("/images/hard-bg.png");
    background-position: 66% center;
  }

  .hero-layout {
    padding: 90px 0 38px;
    grid-template-columns: 1fr;
  }

  .hero-content {
    grid-row: 1;
  }

  .account-panel {
    grid-row: 2;
  }

  .hero-copy {
    padding: 25px 4px;
    text-align: center;
  }

  .hero-copy h1 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .hero-copy > p {
    font-size: 14px;
  }

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

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

  .status-card {
    padding: 14px;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

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

  .numbers-grid > div,
  .numbers-grid > div:first-child {
    min-height: 90px;
    border: 0;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
  }

  .section-space {
    padding: 65px 0;
  }

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

  .world-card {
    min-height: 490px;
  }

  .world-content {
    padding: 26px;
  }

  .world-content h3 {
    font-size: 41px;
  }

  .same-world-note {
    align-items: center;
    flex-direction: column;
    gap: 6px;
  }

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

  .castle-card,
  .factions-card {
    min-height: auto;
    padding: 28px 22px;
  }

  .ranking-panel {
    padding: 24px 16px;
  }

  .ranking-header {
    align-items: flex-start;
  }

  .ranking-header h2 {
    font-size: 32px;
  }

  .ranking-table th,
  .ranking-table td {
    padding: 12px;
  }

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

  .footer-inner {
    grid-template-columns: 60px 1fr;
  }

  .footer-inner img {
    width: 60px;
  }

  .footer-legal {
    grid-column: 1 / -1;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
    text-align: left;
  }

  .inner-main {
    padding: 85px 0 65px;
  }

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

  .register-story {
    padding: 0;
  }

  .register-story h1 {
    font-size: 45px;
  }

  .register-worlds,
  .form-columns {
    grid-template-columns: 1fr;
  }

  .form-panel {
    padding: 26px 20px;
  }

  .area-heading {
    padding: 28px 22px;
    align-items: flex-start;
    flex-direction: column;
  }

  .area-world-note {
    grid-template-columns: 1fr;
  }

  .shared-character {
    justify-content: center;
  }

  .exile-pip {
    border-right: 1px solid var(--line-soft);
    border-left: 3px solid #a1a7ac;
  }

  .character-card {
    padding: 22px 18px;
  }

  .donate-banner {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 420px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .hero-actions .button {
    width: 100%;
  }

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

  .account-panel {
    padding: 23px 18px;
  }

  .world-card {
    min-height: 520px;
  }

  .ranking-badge {
    display: none;
  }

  .character-stats {
    grid-template-columns: 1fr;
  }

  .character-stats .wide {
    grid-column: auto;
  }

  .castle-card {
    align-items: flex-start;
    flex-direction: column;
  }

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