@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700;900&family=Cinzel:wght@400;600;700&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400&display=swap');

:root {
  --bg-void: #05030b;
  --bg-deep: #090615;
  --bg-panel: rgba(12, 9, 25, 0.88);
  --bg-panel-2: rgba(15, 11, 31, 0.92);
  --bg-soft: rgba(139, 26, 26, 0.08);
  --crimson: #8b1a1a;
  --crimson-bright: #c0392b;
  --gold: #c9a84c;
  --gold-light: #e2c272;
  --gold-dim: #8e6f33;
  --silver: #9aa4b5;
  --silver-light: #d3d9e5;
  --text-main: #ddd7ee;
  --text-muted: #817a95;
  --text-dim: #57506a;
  --border-dark: #211a36;
  --border-crimson: rgba(192, 57, 43, 0.35);
  --border-gold: rgba(201, 168, 76, 0.25);
  --shadow-deep: 0 18px 60px rgba(0, 0, 0, 0.42);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top, rgba(139, 26, 26, 0.12), transparent 38%),
    linear-gradient(180deg, #07040f 0%, #05030b 100%);
  color: var(--text-main);
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 17px;
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.45;
  z-index: -1;
}

a {
  color: var(--gold-light);
  text-decoration: none;
}

a:hover {
  color: #f0d695;
}

img {
  max-width: 100%;
}

table {
  border-collapse: collapse;
}

code,
pre {
  font-family: Consolas, "Courier New", monospace;
}

.site-shell {
  min-height: 100vh;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border-crimson);
  background: rgba(5, 3, 11, 0.9);
  backdrop-filter: blur(14px);
}

.site-nav::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--crimson-bright) 35%, var(--gold) 50%, var(--crimson-bright) 65%, transparent);
  opacity: 0.4;
}

.brand {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--crimson-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.brand-sub {
  display: block;
  margin-top: 0.1rem;
  font-family: "Cinzel", serif;
  font-size: 0.6rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links,
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-links a,
.nav-actions a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0.55rem 0.95rem;
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  border: 1px solid transparent;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a.active,
.nav-links a:hover,
.nav-actions a:hover {
  color: var(--gold-light);
  border-color: var(--border-crimson);
  background: rgba(139, 26, 26, 0.12);
}

.nav-actions .nav-register {
  border-color: var(--border-gold);
  background: linear-gradient(135deg, rgba(139, 26, 26, 0.5), rgba(98, 20, 20, 0.2));
  color: var(--gold-light);
}

.page-shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.page-header {
  margin: 0 0 2rem;
  padding: 2.25rem 2rem;
  border: 1px solid var(--border-crimson);
  background:
    linear-gradient(135deg, rgba(139, 26, 26, 0.14), rgba(9, 6, 21, 0.96) 35%, rgba(139, 26, 26, 0.07));
  box-shadow: var(--shadow-deep);
  overflow: hidden;
  position: relative;
}

.page-header::before,
.page-header::after {
  content: "";
  position: absolute;
  width: 52px;
  height: 52px;
  opacity: 0.45;
}

.page-header::before {
  top: 14px;
  left: 14px;
  border-top: 1px solid var(--gold-dim);
  border-left: 1px solid var(--gold-dim);
}

.page-header::after {
  right: 14px;
  bottom: 14px;
  border-right: 1px solid var(--gold-dim);
  border-bottom: 1px solid var(--gold-dim);
}

.page-eyebrow {
  margin: 0 0 0.6rem;
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--crimson-bright);
}

.page-title {
  margin: 0;
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  color: var(--gold-light);
}

.page-subtitle {
  margin: 0.85rem 0 0;
  max-width: 780px;
  color: var(--silver);
  font-size: 1rem;
}

.page-card,
.content-surface,
.TableContainer,
.SmallBox,
.Box1,
.Box2 {
  background: var(--bg-panel);
  border: 1px solid var(--border-dark);
  box-shadow: var(--shadow-deep);
}

.content-surface {
  padding: 1.75rem;
}

.content-surface > h1:first-child,
.content-surface > h2:first-child,
.content-surface > h3:first-child {
  margin-top: 0;
}

.page-shell h1,
.page-shell h2,
.page-shell h3 {
  font-family: "Cinzel", serif;
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1.25;
}

.page-shell h1 {
  font-size: 1.7rem;
}

.page-shell h2 {
  font-size: 1.3rem;
}

.page-shell h3 {
  font-size: 1rem;
}

.page-shell p,
.page-shell li,
.page-shell td,
.page-shell th,
.page-shell label,
.page-shell span,
.page-shell div {
  color: inherit;
}

.page-shell table {
  width: 100%;
}

.page-shell table[width="100%"],
.page-shell table[width="100%"] table,
.page-shell table[width="100%"] tbody {
  width: 100%;
}

.page-shell td,
.page-shell th {
  padding: 0.7rem 0.9rem;
  vertical-align: top;
}

.page-shell tr[bgcolor] td,
.page-shell tr[bgcolor] th {
  background: transparent;
}

.page-shell table[border="0"][cellpadding="4"][cellspacing="1"],
.page-shell table[border="0"][cellpadding="0"][cellspacing="0"],
.page-shell .TableContent {
  background: transparent;
  border: 1px solid var(--border-dark);
}

.page-shell table[border="0"][cellpadding="4"][cellspacing="1"] tr:first-child td,
.page-shell table[border="0"][cellpadding="4"][cellspacing="1"] tr:first-child th,
.page-shell .TableContent tr:first-child td,
.page-shell .TableContent tr:first-child th {
  background: rgba(139, 26, 26, 0.16);
  color: var(--gold-light);
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.page-shell table[border="0"][cellpadding="4"][cellspacing="1"] tr:not(:first-child),
.page-shell .TableContent tr:not(:first-child) {
  border-top: 1px solid rgba(33, 26, 54, 0.7);
}

.page-shell input[type="text"],
.page-shell input[type="password"],
.page-shell input[type="email"],
.page-shell input[type="number"],
.page-shell select,
.page-shell textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border-dark);
  background: rgba(8, 6, 20, 0.84);
  color: var(--text-main);
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-shell input[type="text"]:focus,
.page-shell input[type="password"]:focus,
.page-shell input[type="email"]:focus,
.page-shell input[type="number"]:focus,
.page-shell select:focus,
.page-shell textarea:focus {
  border-color: var(--crimson-bright);
  box-shadow: 0 0 0 2px rgba(192, 57, 43, 0.16);
}

.page-shell input[type="checkbox"],
.page-shell input[type="radio"] {
  accent-color: var(--crimson-bright);
}

.page-shell small,
.page-shell .size_xxs,
.page-shell .size_xs {
  color: var(--text-muted);
}

.FormFieldError,
.red {
  color: #ff8d84;
}

.LabelV {
  width: 180px;
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.OptionContainer {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0.25rem 1rem 0.25rem 0;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 2rem 3rem;
  border: 1px solid var(--border-crimson);
  background:
    radial-gradient(circle at 50% 15%, rgba(139, 26, 26, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(7, 4, 15, 0.96), rgba(5, 3, 11, 0.96));
  box-shadow: var(--shadow-deep);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(192, 57, 43, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 57, 43, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: 0.5;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.hero-eyebrow,
.section-eyebrow {
  margin: 0 0 0.8rem;
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--crimson-bright);
}

.hero-title {
  margin: 0;
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(2.8rem, 7vw, 5.8rem);
  line-height: 0.95;
}

.hero-title .line1 {
  display: block;
  background: linear-gradient(135deg, #fff 0%, var(--silver-light) 35%, var(--gold-light) 68%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-title .line2 {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.56em;
  letter-spacing: 0.08em;
  background: linear-gradient(135deg, var(--crimson-bright), #ff9a74);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy {
  max-width: 620px;
  margin: 1.2rem 0 0;
  color: var(--silver-light);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.btn-primary,
.btn-secondary,
.btn-soft {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.8rem 1.3rem;
  border: 1px solid transparent;
  font-family: "Cinzel", serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--crimson), #5e1111);
  border-color: rgba(255, 138, 120, 0.28);
}

.btn-secondary {
  color: var(--gold-light);
  background: transparent;
  border-color: var(--border-gold);
}

.btn-soft {
  color: var(--silver-light);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-dark);
}

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

.btn-primary:hover {
  box-shadow: 0 0 28px rgba(192, 57, 43, 0.28);
}

.btn-secondary:hover {
  box-shadow: 0 0 24px rgba(201, 168, 76, 0.18);
}

.rates-bar {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 0;
  margin-top: 1.1rem;
  border: 1px solid var(--border-dark);
  background: rgba(9, 6, 21, 0.96);
}

.rate-item {
  padding: 1rem 0.9rem;
  border-right: 1px solid rgba(33, 26, 54, 0.75);
  text-align: center;
}

.rate-item:last-child {
  border-right: 0;
}

.rate-label {
  display: block;
  font-family: "Cinzel", serif;
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.rate-value {
  display: block;
  margin-top: 0.25rem;
  font-family: "Cinzel Decorative", serif;
  font-size: 1.05rem;
  color: var(--gold-light);
}

.online-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 0.35rem;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.72);
}

.section {
  margin-top: 2rem;
}

.section-header {
  margin-bottom: 1.2rem;
}

.section-title {
  margin: 0;
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  color: var(--gold-light);
}

.cards-3,
.cards-2 {
  display: grid;
  gap: 1rem;
}

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

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

.stat-card,
.news-card,
.feature-card,
.info-card,
.rules-card {
  padding: 1.35rem;
  border: 1px solid var(--border-dark);
  background: var(--bg-panel);
  box-shadow: var(--shadow-deep);
}

.stat-rank {
  font-family: "Cinzel Decorative", serif;
  font-size: 1.7rem;
  color: var(--gold);
}

.stat-name {
  margin-top: 0.35rem;
  font-family: "Cinzel", serif;
  font-size: 0.92rem;
  color: var(--text-main);
}

.stat-sub {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.news-date {
  font-family: "Cinzel", serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson-bright);
}

.news-title {
  margin: 0.45rem 0 0;
  font-family: "Cinzel", serif;
  font-size: 1rem;
  color: var(--gold-light);
}

.news-body {
  margin-top: 0.55rem;
  color: var(--silver);
}

.news-more {
  display: inline-block;
  margin-top: 1rem;
  font-family: "Cinzel", serif;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.cta-banner {
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 1rem;
  align-items: center;
  padding: 2rem;
  border: 1px solid var(--border-crimson);
  background: linear-gradient(135deg, rgba(139, 26, 26, 0.12), rgba(9, 6, 21, 0.95));
  box-shadow: var(--shadow-deep);
}

.cta-title {
  margin: 0;
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: var(--gold-light);
}

.cta-copy {
  margin: 0.6rem 0 0;
  color: var(--silver);
}

.page-footer {
  margin-top: 3rem;
  padding: 2rem 0 3rem;
  border-top: 1px solid var(--border-dark);
  color: var(--text-muted);
}

.page-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 1.5rem;
}

.page-footer h4 {
  margin: 0 0 0.8rem;
  font-family: "Cinzel", serif;
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.page-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-footer li + li {
  margin-top: 0.35rem;
}

.footer-copy {
  margin-top: 1.5rem;
  font-size: 0.88rem;
}

.faq-list {
  display: grid;
  gap: 0.8rem;
}

.faq-item {
  border: 1px solid var(--border-dark);
  background: var(--bg-panel);
  box-shadow: var(--shadow-deep);
}

.faq-question {
  display: block;
  width: 100%;
  padding: 1rem 1.2rem;
  border: 0;
  background: transparent;
  color: var(--gold-light);
  text-align: left;
  font: 700 0.92rem/1.4 "Cinzel", serif;
  cursor: pointer;
}

.faq-answer {
  padding: 0 1.2rem 1.1rem;
  color: var(--silver);
}

.highscores-toolbar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.highscores-table {
  width: 100%;
  border: 1px solid var(--border-dark);
  background: var(--bg-panel);
  box-shadow: var(--shadow-deep);
}

.highscores-table thead th {
  background: rgba(139, 26, 26, 0.16);
  color: var(--gold-light);
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.highscores-table tbody tr {
  border-top: 1px solid rgba(33, 26, 54, 0.7);
}

.highscores-table tbody tr:hover {
  background: rgba(139, 26, 26, 0.08);
}

.outfit-preview {
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  border: 1px solid rgba(201, 168, 76, 0.24);
  background:
    radial-gradient(circle at 50% 20%, rgba(201, 168, 76, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(20, 14, 34, 0.95), rgba(10, 7, 20, 0.98));
}

.outfit-preview--table {
  width: 92px;
  height: 92px;
}

.outfit-preview--card {
  width: 112px;
  height: 112px;
  margin: 0.35rem auto 0.7rem;
}

.outfit-sprite {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.outfit-sprite--table {
  top: -12px;
  width: 108px;
}

.outfit-sprite--card {
  top: -8px;
  width: 124px;
}

.pager {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1rem;
}

.meta-note {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.page-shell input[type="submit"],
.page-shell button[type="submit"],
.velox-button {
  appearance: none;
  border: 1px solid var(--border-gold);
  background: linear-gradient(135deg, rgba(139, 26, 26, 0.58), rgba(65, 20, 20, 0.35));
  color: var(--gold-light);
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.8rem 1.15rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.page-shell input[type="submit"]:hover,
.page-shell button[type="submit"]:hover,
.velox-button:hover {
  transform: translateY(-1px);
  border-color: rgba(226, 194, 114, 0.55);
  background: linear-gradient(135deg, rgba(160, 32, 32, 0.7), rgba(87, 22, 22, 0.45));
}

.velox-form,
.velox-panel,
.character-card {
  border: 1px solid var(--border-dark);
  background: rgba(9, 7, 20, 0.9);
  box-shadow: var(--shadow-deep);
}

.velox-form {
  padding: 1.5rem;
}

.velox-form-grid,
.character-meta-grid,
.velox-stat-grid,
.character-columns {
  display: grid;
  gap: 1rem;
}

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

.velox-form-section {
  padding: 1.2rem;
  border: 1px solid rgba(201, 168, 76, 0.14);
  background: rgba(14, 10, 29, 0.88);
}

.velox-form-section h2,
.character-card h2,
.character-card h3,
.velox-panel h2,
.velox-panel h3 {
  margin: 0 0 0.9rem;
  font-size: 1rem;
}

.velox-form-stack {
  display: grid;
  gap: 1rem;
}

.velox-field {
  display: grid;
  gap: 0.4rem;
}

.velox-field label,
.velox-form-note,
.velox-checkbox label {
  font-family: "Cinzel", serif;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.velox-form-note {
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
  font-family: "Crimson Pro", Georgia, serif;
  font-size: 0.95rem;
}

.velox-choice-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.velox-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(201, 168, 76, 0.12);
  background: rgba(18, 12, 33, 0.85);
}

.velox-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}

.velox-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.velox-login-panel,
.velox-account-layout {
  display: grid;
  gap: 1.25rem;
}

.velox-login-panel {
  max-width: 680px;
  margin: 0 auto;
}

.velox-account-layout {
  grid-template-columns: 280px minmax(0, 1fr);
}

.velox-side-menu {
  display: grid;
  gap: 0.6rem;
  align-content: start;
}

.velox-side-menu a {
  display: block;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(201, 168, 76, 0.14);
  background: rgba(14, 10, 29, 0.88);
  color: var(--silver-light);
}

.velox-side-menu a:hover {
  border-color: var(--border-crimson);
  color: var(--gold-light);
}

.velox-table {
  width: 100%;
  border: 1px solid var(--border-dark);
}

.velox-table th,
.velox-table td {
  padding: 0.85rem 1rem;
  text-align: left;
}

.velox-table thead th {
  background: rgba(139, 26, 26, 0.16);
  color: var(--gold-light);
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.velox-table tbody tr:nth-child(odd) td {
  background: rgba(16, 11, 30, 0.92);
}

.velox-table tbody tr:nth-child(even) td {
  background: rgba(10, 7, 21, 0.94);
}

.velox-table tbody tr:hover td {
  background: rgba(139, 26, 26, 0.11);
}

.character-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 220px;
  gap: 1.2rem;
  align-items: stretch;
  margin-bottom: 1rem;
}

.character-hero-main,
.character-outfit-card {
  padding: 1.35rem;
}

.character-hero-main {
  border: 1px solid var(--border-dark);
  background:
    radial-gradient(circle at 15% 10%, rgba(139, 26, 26, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(12, 9, 25, 0.95), rgba(6, 4, 14, 0.98));
  box-shadow: var(--shadow-deep);
}

.character-title {
  margin: 0;
  font-family: "Cinzel Decorative", serif;
  font-size: clamp(1.65rem, 4vw, 2.4rem);
  color: var(--gold-light);
}

.character-subtitle {
  margin: 0.45rem 0 0;
  color: var(--silver);
}

.character-meta-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 1.15rem;
}

.character-meta-item {
  padding: 0.9rem 1rem;
  border: 1px solid rgba(201, 168, 76, 0.12);
  background: rgba(16, 11, 30, 0.9);
}

.character-meta-label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.character-meta-value {
  color: var(--silver-light);
}

.character-outfit-card {
  border: 1px solid rgba(201, 168, 76, 0.2);
  background: rgba(12, 9, 25, 0.96);
  box-shadow: var(--shadow-deep);
}

.character-outfit-stage {
  position: relative;
  height: 210px;
  overflow: hidden;
  border: 1px solid rgba(201, 168, 76, 0.12);
  background:
    radial-gradient(circle at 50% 16%, rgba(201, 168, 76, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(19, 14, 34, 0.98), rgba(10, 7, 20, 0.98));
}

.character-outfit-stage img {
  position: absolute;
  left: 50%;
  top: 8px;
  width: 172px;
  transform: translateX(-50%);
}

.character-columns {
  grid-template-columns: 300px minmax(0, 1fr);
  align-items: start;
}

.skill-list {
  display: grid;
  gap: 0.55rem;
}

.skill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(201, 168, 76, 0.1);
  background: rgba(16, 11, 30, 0.9);
}

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

.equipment-slot {
  position: relative;
  overflow: visible;
  padding: 0.8rem;
  border: 1px solid rgba(201, 168, 76, 0.14);
  background: rgba(16, 11, 30, 0.9);
}

.equipment-slot--rarity::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 1;
}

.equipment-slot--rarity[data-rarity="rare"]::before {
  background:
    radial-gradient(circle at 82% 16%, rgba(133, 255, 165, 0.1), transparent 26%),
    linear-gradient(180deg, rgba(21, 54, 29, 0.16), rgba(10, 28, 16, 0.08));
}

.equipment-slot--rarity[data-rarity="epic"]::before {
  background:
    radial-gradient(circle at 82% 16%, rgba(205, 149, 255, 0.11), transparent 26%),
    linear-gradient(180deg, rgba(54, 24, 83, 0.18), rgba(20, 12, 39, 0.08));
}

.equipment-slot--rarity[data-rarity="legendary"]::before {
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 220, 130, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(86, 63, 17, 0.18), rgba(35, 23, 8, 0.08));
}

.equipment-slot--rarity[data-rarity="mythic"]::before {
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 137, 137, 0.13), transparent 26%),
    linear-gradient(180deg, rgba(88, 22, 28, 0.2), rgba(34, 11, 15, 0.09));
}

.equipment-slot--rarity[data-rarity="divine"]::before {
  background:
    radial-gradient(circle at 82% 16%, rgba(163, 231, 255, 0.13), transparent 26%),
    linear-gradient(180deg, rgba(18, 58, 89, 0.2), rgba(8, 24, 39, 0.09));
}

.equipment-slot--empty {
  opacity: 0.7;
}

.equipment-slot-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: 72px;
}

.equipment-slot-label {
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-dim);
}

.equipment-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.equipment-icon-wrap--interactive {
  cursor: help;
}

.equipment-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border: 1px solid rgba(201, 168, 76, 0.18);
  background: rgba(8, 6, 20, 0.88);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.28) inset;
}

.equipment-icon::before {
  content: "";
  position: absolute;
  inset: 2px;
  pointer-events: none;
  opacity: 0;
  border-radius: 2px;
  transition: opacity 0.18s ease;
}

.equipment-icon::after {
  content: "";
  position: absolute;
  inset: 11px;
  pointer-events: none;
  opacity: 0;
  border-radius: 50%;
  filter: blur(7px);
  transition: opacity 0.18s ease;
}

.equipment-item-sprite,
.equipment-icon img {
  position: relative;
  z-index: 2;
  width: 32px;
  height: 32px;
  image-rendering: pixelated;
}

.equipment-icon--rarity[data-rarity="rare"] {
  border-color: rgba(83, 195, 111, 0.52);
  background:
    radial-gradient(circle at 50% 35%, rgba(105, 232, 129, 0.3), transparent 58%),
    linear-gradient(180deg, rgba(18, 54, 25, 0.98), rgba(9, 28, 14, 0.98));
  box-shadow:
    0 0 22px rgba(71, 194, 100, 0.18),
    0 0 0 1px rgba(0, 0, 0, 0.28) inset;
}

.equipment-icon--rarity[data-rarity="rare"]::before {
  background: radial-gradient(circle at 50% 50%, rgba(150, 255, 173, 0.34), transparent 74%);
  opacity: 1;
}

.equipment-icon--rarity[data-rarity="rare"]::after {
  background: rgba(108, 255, 147, 0.34);
  opacity: 1;
}

.equipment-icon--rarity[data-rarity="epic"] {
  border-color: rgba(169, 113, 255, 0.56);
  background:
    radial-gradient(circle at 50% 35%, rgba(196, 133, 255, 0.3), transparent 58%),
    linear-gradient(180deg, rgba(45, 20, 70, 0.98), rgba(23, 11, 41, 0.98));
  box-shadow:
    0 0 22px rgba(169, 113, 255, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.28) inset;
}

.equipment-icon--rarity[data-rarity="epic"]::before {
  background: radial-gradient(circle at 50% 50%, rgba(214, 162, 255, 0.38), transparent 74%);
  opacity: 1;
}

.equipment-icon--rarity[data-rarity="epic"]::after {
  background: rgba(190, 126, 255, 0.36);
  opacity: 1;
}

.equipment-icon--rarity[data-rarity="legendary"] {
  border-color: rgba(229, 182, 84, 0.6);
  background:
    radial-gradient(circle at 50% 35%, rgba(247, 209, 110, 0.34), transparent 58%),
    linear-gradient(180deg, rgba(74, 52, 13, 0.98), rgba(38, 25, 7, 0.98));
  box-shadow:
    0 0 22px rgba(229, 182, 84, 0.22),
    0 0 0 1px rgba(0, 0, 0, 0.28) inset;
}

.equipment-icon--rarity[data-rarity="legendary"]::before {
  background: radial-gradient(circle at 50% 50%, rgba(255, 222, 138, 0.42), transparent 74%);
  opacity: 1;
}

.equipment-icon--rarity[data-rarity="legendary"]::after {
  background: rgba(255, 210, 95, 0.38);
  opacity: 1;
}

.equipment-icon--rarity[data-rarity="mythic"] {
  border-color: rgba(238, 86, 86, 0.62);
  background:
    radial-gradient(circle at 50% 35%, rgba(255, 120, 120, 0.32), transparent 58%),
    linear-gradient(180deg, rgba(72, 18, 22, 0.98), rgba(36, 10, 13, 0.98));
  box-shadow:
    0 0 22px rgba(238, 86, 86, 0.24),
    0 0 0 1px rgba(0, 0, 0, 0.28) inset;
}

.equipment-icon--rarity[data-rarity="mythic"]::before {
  background: radial-gradient(circle at 50% 50%, rgba(255, 150, 150, 0.4), transparent 74%);
  opacity: 1;
}

.equipment-icon--rarity[data-rarity="mythic"]::after {
  background: rgba(255, 101, 101, 0.38);
  opacity: 1;
}

.equipment-icon--rarity[data-rarity="divine"] {
  border-color: rgba(110, 203, 255, 0.62);
  background:
    radial-gradient(circle at 50% 35%, rgba(139, 220, 255, 0.34), transparent 58%),
    linear-gradient(180deg, rgba(15, 48, 72, 0.98), rgba(8, 26, 39, 0.98));
  box-shadow:
    0 0 22px rgba(110, 203, 255, 0.24),
    0 0 0 1px rgba(0, 0, 0, 0.28) inset;
}

.equipment-icon--rarity[data-rarity="divine"]::before {
  background: radial-gradient(circle at 50% 50%, rgba(183, 236, 255, 0.42), transparent 74%);
  opacity: 1;
}

.equipment-icon--rarity[data-rarity="divine"]::after {
  background: rgba(120, 213, 255, 0.38);
  opacity: 1;
}

.equipment-name {
  color: var(--silver-light);
  font-weight: 600;
}

.rarity-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.18rem 0.5rem;
  border: 1px solid rgba(201, 168, 76, 0.2);
  background: rgba(201, 168, 76, 0.08);
  color: var(--gold-light);
  font-family: "Cinzel", serif;
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rarity-pill[data-rarity="epic"] {
  border-color: rgba(163, 109, 255, 0.45);
  background: rgba(91, 50, 162, 0.18);
  color: #d1b3ff;
}

.rarity-pill[data-rarity="legendary"] {
  border-color: rgba(255, 162, 56, 0.45);
  background: rgba(139, 74, 18, 0.2);
  color: #ffcb7d;
}

.rarity-pill[data-rarity="mythic"] {
  border-color: rgba(255, 72, 72, 0.55);
  background: rgba(124, 22, 22, 0.25);
  color: #ff9d9d;
}

.rarity-pill[data-rarity="divine"] {
  border-color: rgba(120, 208, 255, 0.5);
  background: rgba(27, 71, 106, 0.22);
  color: #bce9ff;
}

.client-item-tooltip {
  position: absolute;
  right: -12px;
  bottom: calc(100% + 12px);
  z-index: 50;
  display: none;
  visibility: hidden;
  width: 320px;
  max-width: min(320px, calc(100vw - 2rem));
  padding: 0.55rem;
  border: 1px solid rgba(138, 110, 28, 0.95);
  background: rgba(20, 17, 11, 0.98);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(71, 53, 17, 0.65) inset;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.client-item-tooltip::after {
  content: "";
  position: absolute;
  right: 34px;
  bottom: -8px;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgba(138, 110, 28, 0.95);
  border-bottom: 1px solid rgba(138, 110, 28, 0.95);
  background: rgba(20, 17, 11, 0.98);
  transform: rotate(45deg);
}

.equipment-slot:hover .client-item-tooltip,
.equipment-slot:focus-within .client-item-tooltip,
.equipment-icon-wrap--interactive:hover .client-item-tooltip,
.equipment-icon-wrap--interactive:focus-within .client-item-tooltip,
.equipment-icon-wrap--interactive:focus .client-item-tooltip {
  display: block;
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.client-item-tooltip__head,
.client-item-tooltip__section {
  border: 1px solid rgba(138, 110, 28, 0.55);
  background: rgba(23, 21, 16, 0.94);
}

.client-item-tooltip img,
.client-item-tooltip__thumb,
.client-tooltip-icon {
  display: none !important;
}

.client-item-tooltip__head {
  display: block;
  padding: 0.7rem 0.85rem;
}

.client-item-tooltip__section {
  margin-top: 0.45rem;
  padding: 0.7rem 0.85rem;
}

.client-item-tooltip__section--crystals {
  padding: 0.7rem;
}

.client-item-tooltip__title,
.client-item-tooltip__section,
.client-item-tooltip__line {
  color: #d9d0bf;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

.client-item-tooltip__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f0eee6;
  line-height: 1.2;
}

.client-item-tooltip__section--rarity {
  text-align: center;
  font-size: 0.9rem;
  font-weight: 700;
}

.client-item-tooltip__section--rarity strong {
  color: #efe8d0;
}

.client-item-tooltip__crystal-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  min-height: 54px;
}

.crystal-slot {
  position: relative;
  width: 26px;
  height: 26px;
  transform: rotate(45deg);
  border: 1px solid rgba(216, 187, 93, 0.72);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.05));
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.35) inset,
    0 0 12px rgba(255, 255, 255, 0.1);
}

.crystal-slot__core {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.18);
}

.crystal-slot[data-color="red"] {
  background: linear-gradient(135deg, #ffb1b1, #ff6a6a 40%, #8f1a1a);
  box-shadow: 0 0 12px rgba(255, 88, 88, 0.42);
}

.crystal-slot[data-color="cyan"] {
  background: linear-gradient(135deg, #dbffff, #75f2ff 42%, #1578a2);
  box-shadow: 0 0 12px rgba(74, 225, 255, 0.4);
}

.crystal-slot[data-color="blue"] {
  background: linear-gradient(135deg, #d7ecff, #7eb7ff 42%, #2756c8);
  box-shadow: 0 0 12px rgba(91, 141, 255, 0.38);
}

.crystal-slot[data-color="violet"],
.crystal-slot[data-color="purple"] {
  background: linear-gradient(135deg, #f0d9ff, #ca7eff 42%, #7422b8);
  box-shadow: 0 0 12px rgba(193, 105, 255, 0.4);
}

.crystal-slot[data-color="green"] {
  background: linear-gradient(135deg, #dffff2, #79efb5 42%, #1f925f);
  box-shadow: 0 0 12px rgba(99, 240, 164, 0.38);
}

.crystal-slot[data-color="yellow"] {
  background: linear-gradient(135deg, #fff2bd, #f6cf5f 42%, #9d6a11);
  box-shadow: 0 0 12px rgba(255, 210, 88, 0.38);
}

.crystal-slot--empty,
.crystal-slot[data-color="empty"] {
  border-color: rgba(109, 96, 61, 0.6);
  background: linear-gradient(135deg, rgba(92, 83, 62, 0.32), rgba(48, 42, 29, 0.6));
  box-shadow: none;
}

.client-item-tooltip__line {
  font-size: 0.95rem;
  line-height: 1.35;
  white-space: normal;
}

.client-item-tooltip__section--stats .client-item-tooltip__line + .client-item-tooltip__line {
  margin-top: 0.22rem;
}

.character-search-form {
  margin-top: 1.75rem;
}

.download-grid,
.rules-grid {
  display: grid;
  gap: 1rem;
}

.download-hero {
  padding: 2.4rem 2rem;
  border: 1px solid var(--border-crimson);
  background: linear-gradient(135deg, rgba(139, 26, 26, 0.13), rgba(9, 6, 21, 0.95));
  box-shadow: var(--shadow-deep);
}

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

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

.rule-block {
  margin-top: 1rem;
}

.rule-block-title {
  margin: 0 0 0.8rem;
  padding: 0.8rem 1rem;
  border-left: 3px solid var(--crimson-bright);
  background: rgba(139, 26, 26, 0.12);
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
}

.rule-item {
  padding: 1rem 1.1rem;
  border: 1px solid var(--border-dark);
  background: var(--bg-panel);
}

.rule-item + .rule-item {
  margin-top: 0.7rem;
}

.rule-tag {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.12rem 0.42rem;
  border: 1px solid var(--border-dark);
  font-family: "Cinzel", serif;
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rule-tag.warn {
  color: #ffcf76;
  border-color: rgba(255, 207, 118, 0.25);
}

.rule-tag.ban {
  color: #ff9185;
  border-color: rgba(255, 145, 133, 0.3);
}

.rule-tag.perm {
  color: #ff7164;
  border-color: rgba(255, 113, 100, 0.32);
}

@media (max-width: 980px) {
  .cards-3,
  .page-footer-grid,
  .download-meta,
  .download-step-grid,
  .cta-banner {
    grid-template-columns: 1fr;
  }

  .velox-account-layout,
  .character-hero,
  .character-columns,
  .velox-form-grid {
    grid-template-columns: 1fr;
  }

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

  .highscores-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .page-shell {
    width: min(100% - 1rem, 1180px);
  }

  .page-header,
  .hero,
  .content-surface,
  .download-hero {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .cards-2,
  .download-step-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

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

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

  .outfit-preview--table,
  .outfit-preview--card {
    width: 92px;
    height: 92px;
  }

  .outfit-sprite--card,
  .outfit-sprite--table {
    width: 108px;
    top: -12px;
  }
}
