:root {
  --gold: #d9ad54;
  --gold-light: #ffe19a;
  --gold-dark: #76501f;
  --green: #93bd53;
  --green-light: #c9e779;
  --panel: rgba(34, 25, 28, 0.94);
  --text: #eee2ce;
  --muted: #b9ad9e;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  background:
    radial-gradient(
      ellipse at 78% 5%,
      rgba(229, 116, 255, 0.58),
      rgba(172, 99, 208, 0.35) 18%,
      transparent 42%
    ),
    radial-gradient(
      ellipse at 18% 8%,
      rgba(255, 193, 164, 0.55),
      rgba(218, 137, 173, 0.32) 27%,
      transparent 48%
    ),
    linear-gradient(
      180deg,
      #6d537d,
      #9b6f8c 18%,
      #c28b92 34%,
      #807250 58%,
      #3e5535 78%,
      #182619
    );
  background-attachment: fixed;
}
body:before {
  content: "";
  position: fixed;
  z-index: -3;
  inset: 0;
  background:
    radial-gradient(ellipse at 12% 78%, #6f8d3e 0 11%, transparent 12%),
    radial-gradient(ellipse at 34% 86%, #759343 0 18%, transparent 19%),
    radial-gradient(ellipse at 72% 84%, #6d8b3b 0 20%, transparent 21%),
    radial-gradient(ellipse at 93% 74%, #789846 0 13%, transparent 14%),
    linear-gradient(
      to top,
      rgba(30, 53, 27, 0.96),
      rgba(54, 83, 38, 0.84) 17%,
      transparent 38%
    );
}
a {
  color: inherit;
}
.sky {
  position: fixed;
  z-index: -2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.cloud {
  position: absolute;
  width: 480px;
  height: 105px;
  border-radius: 50%;
  opacity: 0.3;
  filter: blur(15px);
  background: radial-gradient(
    ellipse,
    rgba(255, 225, 210, 0.9),
    rgba(238, 190, 201, 0.54) 55%,
    transparent 72%
  );
}
.cloud.one {
  top: 8%;
  left: -9%;
  transform: rotate(-7deg);
}
.cloud.two {
  top: 17%;
  right: -12%;
  width: 620px;
  transform: rotate(5deg);
}
.cloud.three {
  top: 36%;
  left: 30%;
  width: 390px;
  opacity: 0.2;
}
.island {
  position: absolute;
  border-radius: 48% 52% 42% 58%;
  background: linear-gradient(
    180deg,
    #829c46 0 15%,
    #657c3b 16% 23%,
    #8d6537 24% 37%,
    #5a3d28 38% 65%,
    #2a211d 66%
  );
  box-shadow:
    0 24px 35px rgba(31, 14, 21, 0.5),
    inset 0 7px 11px rgba(222, 238, 129, 0.26);
}
.island:after {
  content: "";
  position: absolute;
  top: 68%;
  left: 12%;
  width: 76%;
  height: 105%;
  clip-path: polygon(
    0 0,
    100% 0,
    84% 28%,
    72% 73%,
    58% 100%,
    43% 61%,
    28% 91%,
    15% 43%
  );
  background: linear-gradient(135deg, #6f4a2d, #422c23 48%, #21191a);
}
.island.one {
  top: 23%;
  left: 7%;
  width: 150px;
  height: 56px;
  transform: rotate(-7deg);
}
.island.two {
  top: 19%;
  right: 12%;
  width: 220px;
  height: 72px;
  transform: rotate(4deg);
}
.island.three {
  top: 48%;
  left: 53%;
  width: 90px;
  height: 32px;
  opacity: 0.82;
}
.emblem {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  place-items: center;
  border: 2px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-light);
  background: radial-gradient(
    circle,
    rgba(126, 181, 85, 0.8),
    rgba(27, 20, 28, 0.95) 68%
  );
  box-shadow: 0 0 24px rgba(119, 217, 94, 0.35);
}
.kicker {
  margin: 0 0 12px;
  color: var(--green-light);
  font:
    700 12px Arial,
    sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.subtitle {
  margin: 18px 0 0;
  font-size: clamp(17px, 2.5vw, 23px);
  font-style: italic;
  text-shadow: 0 2px 6px #000;
}
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--gold-dark);
  background: linear-gradient(
    180deg,
    rgba(66, 48, 40, 0.98),
    rgba(24, 20, 23, 0.98)
  );
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.5);
}
.nav-inner {
  display: flex;
  max-width: 1180px;
  min-height: 64px;
  margin: auto;
  justify-content: center;
}
.nav a {
  display: flex;
  padding: 0 24px;
  align-items: center;
  text-decoration: none;
  text-transform: uppercase;
  font:
    700 13px Arial,
    sans-serif;
  letter-spacing: 1px;
  color: #cec4b5;
  border-bottom: 2px solid transparent;
}
.nav a:hover,
.nav a.active {
  color: var(--gold-light);
  border-color: var(--gold);
  background: rgba(147, 189, 83, 0.08);
}
.nav a.account {
  color: var(--green-light);
}
main {
  width: min(1160px, calc(100% - 32px));
  margin: 52px auto 80px;
}
.panel {
  padding: 42px clamp(20px, 5vw, 62px);
  border: 1px solid rgba(216, 180, 92, 0.5);
  background: linear-gradient(
    145deg,
    rgba(61, 46, 39, 0.92),
    rgba(24, 22, 25, 0.94)
  );
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.48);
}
.overline {
  margin: 0;
  color: var(--green-light);
  font:
    700 11px Arial,
    sans-serif;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.panel h2,
.section-title h2 {
  margin: 5px 0 0;
  color: var(--gold-light);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 40px);
}
.panel p {
  color: #cec3b4;
  font:
    16px/1.75 Arial,
    sans-serif;
}
.section-title {
  display: flex;
  align-items: end;
  gap: 22px;
  margin: 58px 0 24px;
}
.section-title:after {
  content: "";
  height: 1px;
  flex: 1;
  margin-bottom: 9px;
  background: linear-gradient(90deg, var(--gold-dark), transparent);
}
.section-title p {
  margin: 0;
  color: var(--green-light);
  font:
    700 11px Arial,
    sans-serif;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.footer {
  padding: 38px 20px;
  text-align: center;
  color: #877d75;
  border-top: 1px solid rgba(216, 180, 92, 0.3);
  background: rgba(18, 15, 18, 0.97);
  font:
    13px Arial,
    sans-serif;
}
.footer strong {
  display: block;
  color: var(--gold);
  font-family: Georgia, serif;
  margin-bottom: 8px;
}
.header-logo {
    display: block;

    width: clamp(220px, 45vw, 500px);
    height: auto;

    margin: 0 auto 15px;

    object-fit: contain;

    filter:
        drop-shadow(0 6px 12px rgba(0, 0, 0, .8))
        drop-shadow(0 0 18px rgba(120, 70, 180, .35));
}

.hero.home-banner {
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;

    border-bottom: 1px solid rgba(224,185,103,.62);

    background: #171319;
}

.home-banner-image {
    display: block;

    width: 100%;
    height: auto;

    margin: 0;
    padding: 0;
}

@media (max-width: 768px) {
    .hero.home-banner {
        height: clamp(130px, 28vw, 210px);
        min-height: 0;
    }
}

@media (max-width: 480px) {
    .hero.home-banner {
        height: 140px;
        min-height: 0;
    }
}
@media (max-width: 820px) {
  .nav-inner {
    overflow-x: auto;
    justify-content: flex-start;
  }
  .nav a {
    min-width: max-content;
    padding: 0 17px;
  }
  .island {
    opacity: 0.55;
  }
}
@media (max-width: 560px) {
  main {
    width: min(100% - 18px, 1160px);
    margin-top: 28px;
  }
  .panel {
    padding: 30px 18px;
  }
}
.actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.button {
  display: inline-flex;
  min-height: 48px;
  padding: 0 25px;
  align-items: center;
  border: 1px solid var(--gold-dark);
  text-decoration: none;
  text-transform: uppercase;
  font:
    700 12px Arial,
    sans-serif;
  letter-spacing: 1px;
}
.button.primary {
  color: #18200f;
  background: linear-gradient(#c7e985, #719f45);
}
.button.secondary {
  background: #282229;
  color: var(--gold-light);
}
.updates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.update {
  overflow: hidden;
  border: 1px solid rgba(216, 180, 92, 0.35);
  background: var(--panel);
  box-shadow: 0 13px 30px rgba(0, 0, 0, 0.4);
}
.update-head {
  height: 130px;
  padding: 18px;
  background:
    radial-gradient(
      circle at 50% 20%,
      rgba(209, 132, 215, 0.38),
      transparent 35%
    ),
    linear-gradient(145deg, #6e8044, #664653);
}
.tag {
  display: inline-block;
  padding: 6px 10px;
  border: 1px solid rgba(255, 225, 154, 0.45);
  background: rgba(20, 15, 20, 0.75);
  color: var(--gold-light);
  font:
    700 10px Arial,
    sans-serif;
  text-transform: uppercase;
}
.update-body {
  padding: 23px;
}
.update time {
  color: var(--green-light);
  font:
    700 10px Arial,
    sans-serif;
  text-transform: uppercase;
}
.update h3 {
  margin: 9px 0 11px;
  color: var(--gold-light);
  font-size: 23px;
  font-weight: 400;
}
.update p {
  margin: 0;
  color: var(--muted);
  font:
    14px/1.7 Arial,
    sans-serif;
}
.realm {
  display: flex;
  margin-top: 40px;
  padding: 24px 28px;
  justify-content: space-between;
  gap: 25px;
  border: 1px solid rgba(216, 180, 92, 0.4);
  background: rgba(39, 30, 29, 0.92);
  font-family: Arial, sans-serif;
}
.realm small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 1px;
}
.realm strong {
  color: var(--gold-light);
}

.realm-status-line {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.server-status {
    display: inline-block;
    width: 13px;
    height: 13px;
    flex: 0 0 13px;

    border-radius: 50%;
}

.server-status.online {
    border: 1px solid #b8ff9f;

    background: #54ef57;

    box-shadow:
        0 0 5px #54ef57,
        0 0 11px rgba(84, 239, 87, 0.95),
        0 0 20px rgba(84, 239, 87, 0.65);

    animation: realmStatusPulse 2s ease-in-out infinite;
}

.server-status.offline {
    border: 1px solid #8c8c8c;

    background: #656565;

    box-shadow:
        inset 0 1px 2px rgba(255, 255, 255, 0.18),
        0 1px 3px rgba(0, 0, 0, 0.65);
}

.faction-counts {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.alliance-count {
    color: #78aaff;
}

.horde-count {
    color: #f07268;
}

.faction-separator {
    color: #8c837a;
}

@keyframes realmStatusPulse {
    0%,
    100% {
        transform: scale(0.94);

        box-shadow:
            0 0 4px #54ef57,
            0 0 9px rgba(84, 239, 87, 0.8),
            0 0 16px rgba(84, 239, 87, 0.45);
    }

    50% {
        transform: scale(1.12);

        box-shadow:
            0 0 7px #54ef57,
            0 0 16px rgba(84, 239, 87, 1),
            0 0 28px rgba(84, 239, 87, 0.75);
    }
}

@media (max-width: 720px) {
  .updates {
    grid-template-columns: 1fr;
  }
  .realm {
    flex-direction: column;
  }
}

/* =================================================
   Klickbare Updates und Update-Dialoge
================================================= */

body.modal-open {
  overflow: hidden;
}

.update {
  cursor: pointer;
  outline: none;

  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.update:hover,
.update:focus-visible {
  border-color: rgba(255, 225, 154, 0.82);

  transform: translateY(-5px);

  box-shadow:
    0 18px 38px rgba(0, 0, 0, 0.52),
    0 0 20px rgba(201, 231, 121, 0.08);
}

.update-head {
  position: relative;

  display: grid;
  height: 190px;
  padding: 18px;
  overflow: hidden;
  place-items: center;

  isolation: isolate;
}

.update-head::before,
.update-head::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.update-head::before {
  z-index: -2;
  inset: 0;

  background:
    radial-gradient(
      circle at 50% 48%,
      rgba(255, 255, 255, 0.18),
      transparent 25%
    ),
    linear-gradient(145deg, #6e8044, #664653);
}

.update-head::after {
  z-index: -1;
  inset: 0;

  opacity: 0.45;

  background: repeating-radial-gradient(
    circle at center,
    transparent 0 20px,
    rgba(255, 255, 255, 0.04) 22px,
    transparent 26px
  );
}

.update-head .tag {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 16px;
}

.update-icon {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;

  border: 1px solid rgba(255, 225, 154, 0.54);
  border-radius: 50%;

  font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
  font-size: 48px;

  background: rgba(19, 14, 20, 0.5);

  box-shadow:
    inset 0 0 24px rgba(255, 255, 255, 0.08),
    0 0 30px rgba(0, 0, 0, 0.35);

  transition:
    transform 180ms ease,
    filter 180ms ease;
}

.update:hover .update-icon,
.update:focus-visible .update-icon {
  transform: scale(1.08);
  filter: brightness(1.12);
}

.update-more {
  display: block;
  margin-top: 17px;

  color: var(--gold-light);

  font:
    700 11px Arial,
    sans-serif;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.updates-empty {
  padding: 30px;

  border: 1px solid rgba(216, 180, 92, 0.35);

  color: var(--muted);
  text-align: center;

  background: var(--panel);
}

.type-serverupdate .update-head::before,
.update-modal-card.type-serverupdate .update-modal-header {
  background:
    radial-gradient(
      circle at center,
      rgba(232, 177, 81, 0.32),
      transparent 42%
    ),
    linear-gradient(145deg, #67502f, #30251f);
}

.type-hotfix .update-head::before,
.update-modal-card.type-hotfix .update-modal-header {
  background:
    radial-gradient(
      circle at center,
      rgba(112, 198, 231, 0.3),
      transparent 42%
    ),
    linear-gradient(145deg, #345a66, #202b34);
}

.type-expansion .update-head::before,
.update-modal-card.type-expansion .update-modal-header {
  background:
    radial-gradient(circle at center, rgba(126, 255, 91, 0.3), transparent 42%),
    linear-gradient(145deg, #4e713d, #2b3141);
}

.type-event .update-head::before,
.update-modal-card.type-event .update-modal-header {
  background:
    radial-gradient(
      circle at center,
      rgba(255, 180, 208, 0.34),
      transparent 42%
    ),
    linear-gradient(145deg, #79495e, #352439);
}

.type-pvp .update-head::before,
.update-modal-card.type-pvp .update-modal-header {
  background:
    radial-gradient(circle at center, rgba(230, 78, 65, 0.35), transparent 42%),
    linear-gradient(145deg, #71352f, #2b2022);
}

.type-dungeon .update-head::before,
.update-modal-card.type-dungeon .update-modal-header {
  background:
    radial-gradient(
      circle at center,
      rgba(177, 148, 101, 0.32),
      transparent 42%
    ),
    linear-gradient(145deg, #554b40, #23262d);
}

.type-raid .update-head::before,
.update-modal-card.type-raid .update-modal-header {
  background:
    radial-gradient(
      circle at center,
      rgba(174, 92, 225, 0.34),
      transparent 42%
    ),
    linear-gradient(145deg, #5e3b72, #292034);
}

.type-website .update-head::before,
.update-modal-card.type-website .update-modal-header {
  background:
    radial-gradient(
      circle at center,
      rgba(82, 176, 226, 0.34),
      transparent 42%
    ),
    linear-gradient(145deg, #355f79, #252b3a);
}

.type-balance .update-head::before,
.update-modal-card.type-balance .update-modal-header {
  background:
    radial-gradient(
      circle at center,
      rgba(243, 213, 111, 0.31),
      transparent 42%
    ),
    linear-gradient(145deg, #6a6039, #2d2922);
}

.type-bugfix .update-head::before,
.update-modal-card.type-bugfix .update-modal-header {
  background:
    radial-gradient(
      circle at center,
      rgba(136, 207, 95, 0.31),
      transparent 42%
    ),
    linear-gradient(145deg, #49673c, #262c25);
}

.update-modal[hidden] {
  display: none;
}

.update-modal {
  position: fixed;
  z-index: 1000;
  inset: 0;

  display: grid;
  padding: 25px;
  overflow-y: auto;
  place-items: center;
}

.update-modal-backdrop {
  position: fixed;
  inset: 0;

  cursor: pointer;

  background: rgba(6, 5, 8, 0.88);
  backdrop-filter: blur(7px);
}

.update-modal-card {
  position: relative;
  z-index: 1;

  width: min(900px, 100%);
  max-height: calc(100vh - 50px);
  overflow-y: auto;

  border: 1px solid rgba(216, 180, 92, 0.7);

  background: #211a1e;

  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.78),
    0 0 32px rgba(216, 180, 92, 0.1);

  animation: updateModalOpen 180ms ease-out;
}

.update-modal-close {
  position: absolute;
  z-index: 5;
  top: 14px;
  right: 14px;

  width: 42px;
  height: 42px;
  padding: 0;

  border: 1px solid rgba(255, 225, 154, 0.5);
  border-radius: 50%;

  color: var(--gold-light);
  cursor: pointer;

  font:
    30px/1 Arial,
    sans-serif;

  background: rgba(16, 13, 17, 0.78);
}

.update-modal-close:hover,
.update-modal-close:focus-visible {
  border-color: var(--gold-light);
  outline: none;
  background: rgba(51, 38, 32, 0.96);
}

.update-modal-header {
  display: flex;
  min-height: 350px;
  padding: 55px 65px 45px;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  border-bottom: 1px solid rgba(216, 180, 92, 0.38);

  text-align: center;
}

.update-modal-header .tag {
  margin-bottom: 20px;
}

.update-modal-icon {
  display: grid;
  width: 110px;
  height: 110px;
  margin-bottom: 18px;
  place-items: center;

  border: 1px solid rgba(255, 225, 154, 0.62);
  border-radius: 50%;

  font-family: "Segoe UI Emoji", "Apple Color Emoji", sans-serif;
  font-size: 58px;

  background: rgba(18, 14, 19, 0.48);

  box-shadow:
    inset 0 0 28px rgba(255, 255, 255, 0.08),
    0 0 35px rgba(0, 0, 0, 0.3);
}

.update-modal-header time {
  color: var(--green-light);

  font:
    700 11px Arial,
    sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.update-modal-header h2 {
  margin: 10px 0 13px;

  color: var(--gold-light);

  font-size: clamp(30px, 5vw, 50px);
  font-weight: 400;
}

.update-modal-header p {
  max-width: 700px;
  margin: 0;

  color: #ddd0bc;

  font:
    16px/1.7 Arial,
    sans-serif;
}

.update-modal-content {
  padding: 45px clamp(25px, 6vw, 75px) 55px;

  color: #d4c8b7;

  font:
    16px/1.8 Arial,
    sans-serif;
}

.update-modal-content h2,
.update-modal-content h3 {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.update-modal-content h2 {
  margin: 0 0 20px;
  font-size: 32px;
}

.update-modal-content h3 {
  margin: 34px 0 12px;
  font-size: 23px;
}

.update-modal-content p {
  margin: 0 0 18px;
}

.update-modal-content ul,
.update-modal-content ol {
  padding-left: 24px;
}

.update-modal-content li {
  margin-bottom: 8px;
}

.update-modal-content strong {
  color: #f0dfb4;
}

.update-modal-content code {
  padding: 3px 6px;
  border: 1px solid rgba(216, 180, 92, 0.25);
  color: var(--green-light);
  background: rgba(8, 8, 10, 0.45);
}

@keyframes updateModalOpen {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 650px) {
  .update-modal {
    padding: 8px;
  }

  .update-modal-card {
    max-height: calc(100vh - 16px);
  }

  .update-modal-header {
    min-height: 300px;
    padding: 55px 25px 35px;
  }

  .update-modal-icon {
    width: 88px;
    height: 88px;
    font-size: 46px;
  }

  .update-modal-content {
    padding: 30px 20px 40px;
  }
}
