:root {
  --realm-bg: #0e0f12;
  --realm-bg-soft: #16151c;
  --realm-ink: #e7ecef;
  --realm-muted: #a7b6bc;
  --realm-accent: #e5b95c;
  --realm-accent-2: #9c3535;
  --realm-panel: rgba(12, 11, 18, 0.84);
  --realm-border: rgba(229, 185, 92, 0.28);
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 60px;
  color: var(--realm-ink);
  background:
    radial-gradient(1100px 650px at 80% -8%, rgba(160, 24, 24, 0.22), transparent 58%),
    radial-gradient(800px 500px at 5% 85%, rgba(72, 18, 110, 0.20), transparent 60%),
    radial-gradient(600px 400px at 50% 50%, rgba(30, 14, 14, 0.35), transparent 70%),
    linear-gradient(180deg, #08080b 0%, var(--realm-bg) 45%, #070a08 100%);
  font-family: "Rajdhani", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

h1, h2, h3, h4, .navbar-brand {
  font-family: "Cinzel", Georgia, "Times New Roman", serif;
  letter-spacing: 0.02em;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.15rem rgba(229, 185, 92, 0.18), 0 0 0 0.32rem rgba(80, 168, 216, 0.25);
}

.realm-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--realm-border);
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(12, 20, 24, 0.88), rgba(14, 26, 33, 0.9));
  min-height: 430px;
}

.realm-hero__backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(110deg, rgba(12, 18, 22, 0.95) 0%, rgba(12, 18, 22, 0.6) 45%, rgba(12, 18, 22, 0.8) 100%),
    url("https://images.unsplash.com/photo-1511512578047-dfb367046420?auto=format&fit=crop&w=1600&q=80") center/cover no-repeat;
  transform: scale(1.04);
}

.realm-hero__inner {
  position: relative;
  z-index: 1;
  padding: 2.1rem 1.4rem;
}

@media (min-width: 992px) {
  .realm-hero__inner {
    padding: 3rem 3rem 2.5rem;
    max-width: 70%;
  }
}

.realm-kicker {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(80, 168, 216, 0.55);
  color: #b9deef;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.realm-title {
  margin-top: 0.9rem;
  margin-bottom: 0.7rem;
  font-size: clamp(2rem, 4.6vw, 3.4rem);
}

.realm-subtitle {
  color: var(--realm-muted);
  max-width: 60ch;
  font-size: 1.02rem;
}

.realm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.2rem;
}

.btn-realm-primary {
  background: linear-gradient(90deg, #d9a842, #e5c16f);
  color: #13181b;
  border: 1px solid #e7c97f;
  font-weight: 700;
}

.btn-realm-primary:hover {
  color: #101518;
  filter: brightness(1.03);
}

.btn-realm-outline {
  border: 1px solid rgba(80, 168, 216, 0.8);
  color: #bfe3f5;
  background: rgba(9, 26, 35, 0.58);
}

.btn-realm-outline:hover {
  color: #d8effb;
  background: rgba(11, 34, 45, 0.82);
}

.btn-realm-ghost {
  border: 1px solid rgba(229, 185, 92, 0.48);
  color: #f1d39a;
  background: rgba(34, 28, 16, 0.45);
}

.btn-realm-ghost:hover {
  color: #ffe3b0;
  background: rgba(45, 36, 19, 0.75);
}

.realm-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.8rem;
}

.realm-meta__card {
  padding: 0.78rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 12px;
  background: rgba(10, 17, 21, 0.66);
}

.realm-meta__label {
  color: var(--realm-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.realm-meta__value {
  margin-top: 0.15rem;
  font-size: 1rem;
}

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

.realm-panel {
  border: 1px solid rgba(80, 168, 216, 0.22);
  background: var(--realm-panel);
  border-radius: 16px;
  padding: 1rem 1rem 1.2rem;
}

.realm-panel h3 {
  font-size: 1.14rem;
  margin-bottom: 0.55rem;
}

.realm-panel p {
  color: var(--realm-muted);
  margin-bottom: 0.6rem;
}

.realm-link {
  color: #93d2f0;
  font-weight: 600;
  text-decoration: none;
}

.realm-link:hover {
  color: #b5e6ff;
  text-decoration: underline;
}

.realm-feature-strip {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.realm-feature {
  border-left: 3px solid var(--realm-accent);
  padding: 0.65rem 0.9rem;
  background: rgba(11, 18, 22, 0.66);
  border-radius: 8px;
}

.realm-feature h4 {
  margin-bottom: 0.35rem;
  font-size: 1.03rem;
}

.realm-feature p {
  color: var(--realm-muted);
  margin-bottom: 0;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
  text-align: start;
}