:root {
  --bg: #050205;
  --bg2: #120507;
  --black: #070307;
  --gold: #f8d779;
  --gold2: #a96817;
  --red: #b21024;
  --red2: #50070f;
  --white: #fff7e6;
  --text: #f4ead7;
  --muted: #c9b99a;
  --glass: rgba(255, 255, 255, 0.07);
  --line: rgba(248, 215, 121, 0.25);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.65);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(178, 16, 36, 0.3), transparent 35%),
    radial-gradient(circle at 85% 15%, rgba(248, 215, 121, 0.14), transparent 22%),
    linear-gradient(180deg, #050205, #0b0305 45%, #030103);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mix-blend-mode: screen;
}

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

.cursor-glow {
  position: fixed;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248, 215, 121, 0.11), transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 1;
  mix-blend-mode: screen;
}

.embers {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}

.embers span {
  position: absolute;
  bottom: -20px;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow:
    0 0 8px var(--gold),
    0 0 22px var(--red);
  opacity: 0;
  animation: emberRise linear infinite;
}

@keyframes emberRise {
  0% {
    transform: translateY(0) translateX(0) scale(0.6);
    opacity: 0;
  }

  15% {
    opacity: 1;
  }

  100% {
    transform: translateY(-115vh) translateX(80px) scale(1.7);
    opacity: 0;
  }
}

.lightning {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  background:
    linear-gradient(
      115deg,
      transparent 0%,
      transparent 48%,
      rgba(255, 247, 225, 0.18) 49%,
      transparent 51%,
      transparent 100%
    );
  animation: lightningFlash 9s infinite;
}

@keyframes lightningFlash {
  0%, 82%, 86%, 100% {
    opacity: 0;
  }

  83% {
    opacity: 0.8;
  }

  84% {
    opacity: 0.08;
  }

  85% {
    opacity: 0.5;
  }
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 66px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.18));
  border-bottom: 1px solid rgba(248, 215, 121, 0.14);
  backdrop-filter: blur(16px);
}

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

.logo small {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.25em;
}

.logo-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #130804;
  font-size: 0.72rem;
  background:
    linear-gradient(135deg, #fff3b4, var(--gold), var(--gold2));
  box-shadow:
    0 0 22px rgba(248, 215, 121, 0.34),
    inset 0 0 0 2px rgba(255,255,255,0.2);
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.nav a {
  transition: 0.25s;
}

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

.nav-button {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(248, 215, 121, 0.08);
}

.menu-button {
  display: none;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 120px 22px 60px;
}

.hero-background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 30%, rgba(248, 215, 121, 0.18), transparent 14%),
    radial-gradient(circle at 50% 45%, rgba(178, 16, 36, 0.32), transparent 32%),
    linear-gradient(180deg, #18070d, #050205 78%);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), transparent 40%, rgba(0, 0, 0, 0.88)),
    linear-gradient(180deg, rgba(0,0,0,0.14), #050205 96%);
}

.moon {
  position: absolute;
  top: 13%;
  left: 50%;
  width: min(28vw, 260px);
  height: min(28vw, 260px);
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(circle at 42% 38%, #fff3b3, #cf8027 45%, #4a0a12 72%, transparent 73%);
  opacity: 0.45;
  filter: blur(1px);
  box-shadow: 0 0 120px rgba(248, 215, 121, 0.32);
}

.castle {
  position: absolute;
  left: 50%;
  bottom: 15%;
  width: min(52vw, 760px);
  height: min(40vw, 480px);
  transform: translateX(-50%);
  opacity: 0.95;
}

.castle-main {
  position: absolute;
  left: 22%;
  right: 22%;
  bottom: 0;
  height: 48%;
  background: #070205;
  border: 2px solid rgba(248, 215, 121, 0.3);
  box-shadow: 0 0 60px rgba(0,0,0,0.9);
}

.castle-main::before {
  content: "";
  position: absolute;
  top: -36px;
  left: 0;
  right: 0;
  height: 36px;
  background:
    linear-gradient(90deg,
      #070205 0 12%,
      transparent 12% 18%,
      #070205 18% 30%,
      transparent 30% 36%,
      #070205 36% 48%,
      transparent 48% 54%,
      #070205 54% 66%,
      transparent 66% 72%,
      #070205 72% 84%,
      transparent 84% 90%,
      #070205 90% 100%
    );
}

.castle-gate {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 18%;
  height: 30%;
  transform: translateX(-50%);
  background: #010001;
  border-radius: 60px 60px 0 0;
  box-shadow: inset 0 0 24px rgba(178,16,36,0.6);
}

.castle-roof {
  position: absolute;
  left: 35%;
  right: 35%;
  bottom: 48%;
  height: 24%;
  clip-path: polygon(50% 0%, 100% 100%, 0 100%);
  background:
    linear-gradient(135deg, rgba(248,215,121,0.8), rgba(80,7,15,0.9));
}

.tower {
  position: absolute;
  bottom: 0;
  width: 17%;
  height: 74%;
  background: #070205;
  border: 2px solid rgba(248, 215, 121, 0.3);
}

.tower::before {
  content: "";
  position: absolute;
  top: -46px;
  left: -15%;
  width: 130%;
  height: 52px;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background:
    linear-gradient(135deg, rgba(248,215,121,0.75), rgba(80,7,15,0.9));
}

.tower-left {
  left: 5%;
}

.tower-right {
  right: 5%;
}

.banner {
  position: absolute;
  width: 80px;
  height: 260px;
  top: 32%;
  opacity: 0.8;
  border-left: 7px solid var(--gold);
  transform-origin: top;
  animation: bannerWave 3.4s ease-in-out infinite alternate;
}

.banner::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  width: 74px;
  height: 145px;
  clip-path: polygon(0 0, 100% 10%, 100% 86%, 50% 70%, 0 86%);
  background: linear-gradient(135deg, #170308, var(--red), #240207);
  border: 1px solid rgba(248, 215, 121, 0.42);
}

.banner-left {
  left: 10%;
}

.banner-right {
  right: 10%;
  animation-delay: 0.8s;
}

@keyframes bannerWave {
  from {
    transform: rotate(-2deg);
  }

  to {
    transform: rotate(2deg);
  }
}

.army {
  position: absolute;
  bottom: 6%;
  width: 34%;
  height: 90px;
  opacity: 0.72;
  background:
    radial-gradient(circle at 10% 80%, #010101 0 10px, transparent 11px),
    radial-gradient(circle at 22% 70%, #010101 0 13px, transparent 14px),
    radial-gradient(circle at 35% 82%, #010101 0 11px, transparent 12px),
    radial-gradient(circle at 48% 68%, #010101 0 12px, transparent 13px),
    radial-gradient(circle at 63% 78%, #010101 0 10px, transparent 11px),
    radial-gradient(circle at 76% 72%, #010101 0 13px, transparent 14px),
    radial-gradient(circle at 90% 84%, #010101 0 10px, transparent 11px);
}

.army-left {
  left: 4%;
}

.army-right {
  right: 4%;
}

.hero-content {
  position: relative;
  z-index: 10;
  width: min(980px, 100%);
  text-align: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

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

h1 {
  margin: 0;
  text-transform: uppercase;
  line-height: 0.78;
  font-size: clamp(4rem, 12vw, 10rem);
  letter-spacing: -0.07em;
  text-shadow:
    0 0 28px rgba(248, 215, 121, 0.25),
    0 25px 60px rgba(0, 0, 0, 0.85);
}

h1 span {
  display: block;
}

h1 span:first-child {
  background:
    linear-gradient(180deg, #fff8d9 0%, var(--gold) 38%, #9b5610 82%);
  -webkit-background-clip: text;
  color: transparent;
}

h1 span:last-child {
  color: #fff;
  font-size: 0.42em;
  letter-spacing: 0.18em;
  margin-top: 0.22em;
}

.hero-subtitle {
  margin: 32px auto 14px;
  color: white;
  font-size: clamp(1.4rem, 3.4vw, 3rem);
  font-weight: 900;
  text-transform: uppercase;
}

.hero-text {
  max-width: 760px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.85;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

.button {
  min-height: 52px;
  padding: 0 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: 0.25s;
}

.button:hover {
  transform: translateY(-4px);
}

.primary {
  color: #150804;
  background:
    linear-gradient(135deg, #fff1a8, var(--gold), var(--gold2));
  box-shadow: 0 0 44px rgba(248, 215, 121, 0.28);
}

.secondary {
  color: var(--gold);
  background: rgba(0, 0, 0, 0.46);
}

.large {
  min-height: 60px;
  padding: 0 34px;
}

.oath-card {
  position: absolute;
  z-index: 10;
  right: clamp(20px, 5vw, 84px);
  bottom: clamp(26px, 7vh, 84px);
  width: min(430px, calc(100% - 40px));
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.oath-icon {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 22px;
  color: #170704;
  font-size: 2.2rem;
  background: linear-gradient(135deg, #fff2a8, var(--gold), var(--gold2));
}

.oath-card h2 {
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 1rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.oath-card p {
  margin: 0;
  color: var(--muted);
}

.section {
  position: relative;
  min-height: 70vh;
  padding: 112px clamp(20px, 5vw, 86px);
}

.section-heading {
  max-width: 850px;
  margin: 0 auto 46px;
  text-align: center;
}

.section-heading h2,
.split-text h2,
.map-text h2,
.join-panel h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 5vw, 5rem);
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.section-heading p,
.split-text p,
.map-text p,
.join-panel p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.8;
}

.card-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

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

.card-grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.card,
.profile,
.rule {
  position: relative;
  overflow: hidden;
  min-height: 240px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 0%, rgba(248, 215, 121, 0.17), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025));
  box-shadow: var(--shadow);
}

.card::after,
.profile::after,
.rule::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, transparent, rgba(255,255,255,0.08), transparent);
  transform: translateX(-120%);
  transition: 0.6s;
}

.card:hover::after,
.profile:hover::after,
.rule:hover::after {
  transform: translateX(120%);
}

.card-icon {
  margin-bottom: 22px;
  color: var(--gold);
  font-size: 2.5rem;
}

.card h3,
.profile h3,
.rule h3 {
  color: var(--gold);
  font-size: 1.35rem;
  text-transform: uppercase;
}

.card p,
.profile p,
.rule p {
  color: var(--muted);
  line-height: 1.75;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 54px;
}

.war-art {
  position: relative;
  min-height: 540px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background:
    radial-gradient(circle at 50% 35%, rgba(178,16,36,0.28), transparent 33%),
    linear-gradient(145deg, rgba(255,255,255,0.06), rgba(0,0,0,0.35));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.flag-group {
  position: absolute;
  inset: 0;
}

.flag-pole {
  position: absolute;
  left: 24%;
  bottom: 10%;
  width: 10px;
  height: 74%;
  background: linear-gradient(180deg, #fff2a8, var(--gold2));
  box-shadow: 0 0 22px rgba(248,215,121,0.25);
}

.flag-pole.center {
  left: 49%;
  height: 82%;
}

.flag-pole.right {
  left: 74%;
  height: 68%;
}

.flag {
  position: absolute;
  top: 20%;
  width: 180px;
  height: 250px;
  display: grid;
  place-items: center;
  clip-path: polygon(0 0, 100% 8%, 100% 82%, 50% 68%, 0 82%);
  border: 1px solid var(--line);
  transform-origin: top left;
  animation: flagWave 3s ease-in-out infinite alternate;
}

.flag span {
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 3.5rem;
  font-weight: 900;
  text-shadow: 0 0 20px rgba(248,215,121,0.35);
}

.red-flag {
  left: 25%;
  background: linear-gradient(135deg, #260307, var(--red), #31040a);
}

.black-flag {
  left: 50%;
  top: 12%;
  background: linear-gradient(135deg, #0a0a0d, #1a1114, #050505);
  animation-delay: 0.5s;
}

.gold-flag {
  left: 75%;
  top: 26%;
  background: linear-gradient(135deg, #211204, #8d4c0e, #170805);
  animation-delay: 1s;
}

@keyframes flagWave {
  from {
    transform: skewY(-2deg) rotate(-1deg);
  }

  to {
    transform: skewY(3deg) rotate(1.5deg);
  }
}

.legion-list {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.legion-list div {
  padding: 18px 20px;
  border: 1px solid rgba(248, 215, 121, 0.18);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.36);
}

.legion-list strong {
  display: block;
  margin-bottom: 5px;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legion-list span {
  color: var(--muted);
}

.conquests {
  background:
    radial-gradient(circle at 50% 0%, rgba(178, 16, 36, 0.24), transparent 42%),
    linear-gradient(180deg, transparent, rgba(178, 16, 36, 0.05));
}

.timeline {
  max-width: 1060px;
  margin: 0 auto;
  display: grid;
  gap: 22px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 22px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(0, 0, 0, 0.43);
  box-shadow: var(--shadow);
}

.timeline-item span {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #140804;
  font-weight: 900;
  background: linear-gradient(135deg, #fff2a8, var(--gold), var(--gold2));
}

.timeline-item h3 {
  margin-bottom: 8px;
  color: var(--gold);
  font-size: 1.45rem;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.map-section {
  min-height: 80vh;
  display: grid;
  place-items: center;
}

.map-card {
  position: relative;
  width: min(1180px, 100%);
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 40px;
  background:
    radial-gradient(circle at 50% 50%, rgba(248,215,121,0.14), transparent 34%),
    linear-gradient(135deg, #2b170d, #100606 50%, #060203);
  box-shadow: var(--shadow);
}

.map-lines {
  position: absolute;
  inset: 0;
  opacity: 0.13;
  background-image:
    linear-gradient(rgba(248,215,121,0.7) 1px, transparent 1px),
    linear-gradient(90deg, rgba(248,215,121,0.7) 1px, transparent 1px);
  background-size: 80px 80px;
}

.map-land {
  position: absolute;
  left: 16%;
  top: 22%;
  width: 68%;
  height: 48%;
  background: rgba(28, 10, 8, 0.92);
  border: 4px solid rgba(248,215,121,0.65);
  clip-path: polygon(
    5% 52%,
    16% 20%,
    30% 25%,
    38% 5%,
    52% 24%,
    64% 8%,
    79% 24%,
    88% 48%,
    96% 62%,
    82% 78%,
    70% 96%,
    55% 80%,
    45% 96%,
    32% 78%,
    18% 85%,
    8% 70%
  );
}

.map-route {
  position: absolute;
  height: 4px;
  background: rgba(178,16,36,0.75);
  box-shadow: 0 0 20px rgba(178,16,36,0.65);
  transform-origin: left center;
}

.route-one {
  left: 28%;
  top: 46%;
  width: 44%;
  transform: rotate(-8deg);
}

.route-two {
  left: 33%;
  top: 58%;
  width: 36%;
  transform: rotate(12deg);
  background: rgba(248,215,121,0.55);
}

.map-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 24px var(--gold);
}

.dot-one {
  left: 29%;
  top: 43%;
}

.dot-two {
  left: 50%;
  top: 36%;
}

.dot-three {
  left: 70%;
  top: 47%;
}

.dot-four {
  left: 58%;
  top: 62%;
}

.map-text {
  position: absolute;
  left: 40px;
  bottom: 34px;
  max-width: 640px;
}

.profile {
  min-height: 220px;
  text-align: center;
}

.profile div {
  color: var(--gold);
  font-size: 3rem;
  filter: drop-shadow(0 0 20px rgba(248,215,121,0.3));
}

.rule {
  min-height: 190px;
}

.join-section {
  min-height: 90vh;
  display: grid;
  place-items: center;
}

.join-panel {
  width: min(920px, 100%);
  padding: 52px clamp(24px, 5vw, 70px);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 42px;
  background:
    radial-gradient(circle at 50% 0%, rgba(248, 215, 121, 0.18), transparent 40%),
    linear-gradient(145deg, rgba(255,255,255,0.1), rgba(0,0,0,0.35));
  box-shadow: 0 40px 140px rgba(0,0,0,0.7);
}

.join-crest {
  width: 118px;
  height: 118px;
  margin: 0 auto 20px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  color: #160704;
  font-family: Georgia, serif;
  font-size: 1.55rem;
  font-weight: 900;
  background:
    linear-gradient(135deg, #fff3b4, var(--gold), var(--gold2));
  box-shadow:
    0 0 45px rgba(248,215,121,0.35),
    inset 0 0 0 3px rgba(255,255,255,0.22);
}

.requirements {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px 0 34px;
}

.requirements span {
  padding: 10px 15px;
  border: 1px solid rgba(248,215,121,0.24);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(0,0,0,0.34);
  font-weight: 800;
}

.footer {
  padding: 34px 20px;
  text-align: center;
  color: rgba(201,185,154,0.74);
  border-top: 1px solid rgba(248,215,121,0.12);
  background: #030103;
  font-size: 0.86rem;
}

.footer p {
  margin: 5px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(34px) scale(0.98);
  transition:
    opacity 0.8s ease,
    transform 0.8s ease;
}

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

.delay-1 {
  transition-delay: 0.12s;
}

.delay-2 {
  transition-delay: 0.24s;
}

.delay-3 {
  transition-delay: 0.36s;
}

@media (max-width: 960px) {
  .menu-button {
    display: block;
    color: var(--gold);
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(0,0,0,0.35);
    padding: 8px 12px;
    font-size: 1.2rem;
  }

  .nav {
    position: absolute;
    top: 80px;
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(0,0,0,0.88);
  }

  .nav.open {
    display: flex;
  }

  .hero-content {
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .oath-card {
    position: relative;
    right: auto;
    bottom: auto;
    margin-top: 34px;
  }

  .section {
    padding: 92px 20px;
  }

  .section-heading {
    text-align: left;
  }

  .card-grid.three,
  .card-grid.four,
  .card-grid.two,
  .split {
    grid-template-columns: 1fr;
  }

  .war-art {
    min-height: 420px;
  }

  .flag {
    width: 140px;
    height: 210px;
  }

  .flag span {
    font-size: 2.2rem;
  }

  .map-card {
    min-height: 620px;
  }

  .map-text {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }

  .castle {
    width: 90vw;
    height: 62vw;
    bottom: 18%;
  }

  .banner {
    display: none;
  }

  .army {
    display: none;
  }
}

@media (max-width: 560px) {
  .logo div:last-child {
    display: none;
  }

  h1 {
    font-size: clamp(3.2rem, 18vw, 6rem);
  }

  h1 span:last-child {
    letter-spacing: 0.1em;
  }

  .hero {
    padding-top: 105px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }

  .timeline-item span {
    width: 46px;
    height: 46px;
  }
}

/* ================================
   Kingdom 3401 Custom Additions
================================ */

.hero-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 4px;
}

.hero-badges span {
  padding: 10px 15px;
  border: 1px solid rgba(248, 215, 121, 0.32);
  border-radius: 999px;
  color: #160704;
  background:
    linear-gradient(135deg, #fff3b4, #f8d779, #a96817);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow:
    0 0 24px rgba(248, 215, 121, 0.22),
    inset 0 0 0 1px rgba(255,255,255,0.22);
}

.discord-button {
  width: min(520px, 100%);
  margin: 6px auto 0;
  min-height: 78px;
  padding: 16px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border-radius: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,0.22), transparent 32%),
    linear-gradient(135deg, #5865f2, #3946b8 48%, #20275f);
  border: 1px solid rgba(255,255,255,0.24);
  box-shadow:
    0 0 38px rgba(88, 101, 242, 0.42),
    0 24px 70px rgba(0,0,0,0.55);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.discord-button:hover {
  transform: translateY(-5px) scale(1.02);
  filter: brightness(1.08);
  box-shadow:
    0 0 52px rgba(88, 101, 242, 0.62),
    0 30px 90px rgba(0,0,0,0.7);
}

.discord-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  color: #5865f2;
  background: #ffffff;
  font-size: 1.8rem;
  box-shadow: inset 0 0 0 2px rgba(0,0,0,0.04);
}

.discord-button strong {
  display: block;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.discord-button small {
  display: block;
  margin-top: 3px;
  color: rgba(255,255,255,0.82);
  font-size: 0.78rem;
}

#overview .card,
#management .profile,
#alliances .legion-list div,
#days .rule,
#history .timeline-item {
  border-color: rgba(248, 215, 121, 0.32);
}

#overview .card:hover,
#management .profile:hover,
#days .rule:hover,
#history .timeline-item:hover {
  box-shadow:
    0 0 38px rgba(248, 215, 121, 0.15),
    0 30px 90px rgba(0,0,0,0.7);
}

#history .timeline-item span {
  box-shadow: 0 0 28px rgba(248, 215, 121, 0.35);
}

#history .timeline-item:nth-child(1) span,
#history .timeline-item:nth-child(3) span,
#history .timeline-item:nth-child(4) span {
  background:
    linear-gradient(135deg, #fff7c7, #f8d779, #a96817);
}

@media (max-width: 960px) {
  .hero-badges {
    justify-content: flex-start;
  }

  .discord-button {
    align-items: flex-start;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .discord-button {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
