:root {
  --color-bg: #0b0f14;
  --color-surface: #121922;
  --color-surface-soft: #1b2430;
  --color-text: #d9e2f2;
  --color-muted: #9db0c9;
  --color-accent: #b28b4a;
  --color-accent-strong: #d6aa5d;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --play-banner-width: 88px;
  --play-banner-height: 114px;
  --header-height: 114px;
  --play-banner-object-fit: cover;
  --play-banner-radius: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Alumni Sans", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

body.popup-opened {
  overflow: hidden;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  padding: 0;
  background: transparent;
}


.site-nav {
  width: 100%;
  display: flex;
  justify-content: center;
}

.mobile-nav {
  display: none;
}

.mobile-nav-toggle {
  list-style: none;
}

.mobile-nav-toggle::-webkit-details-marker {
  display: none;
}

.nav-list {
  width: min(980px, 100vw);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: flex-start;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-side {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
}

.nav-side-left {
  justify-content: flex-end;
  padding-right: 1.25rem;
}

.nav-side-right {
  justify-content: flex-start;
  padding-left: 1.25rem;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.5rem;
  color: #e8edf6;
  text-decoration: none;
  text-transform: uppercase;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.65);
}

.nav-link:hover {
  color: #ffffff;
}

.play-banner-item {
  margin: 0 0.5rem;
}

.play-banner-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  margin-top: -4px;
}

.play-banner-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #f3f6fb;
  text-transform: uppercase;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.play-banner-link:hover {
  transform: translateY(2px);
}

.play-banner-image {
  width: var(--play-banner-width);
  height: var(--play-banner-height);
  object-fit: var(--play-banner-object-fit);
  object-position: center;
  border-radius: var(--play-banner-radius);
  display: block;
}


.hero {
  min-height: 100svh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 8rem 1.5rem 4rem;
  background-image:
    linear-gradient(180deg, rgba(4, 8, 12, 0.4), rgba(4, 8, 12, 0.88)),
    radial-gradient(circle at 20% 20%, rgba(178, 139, 74, 0.2), transparent 35%),
    url('../assets/images/backgrounds/wow-dnd-main-bg.jpg'),
    url('../assets/images/backgrounds/hero-placeholder.svg');
  background-size: cover;
  background-position: center;
}

.hero-content {
  max-width: 720px;
  text-align: center;
  transform: translateY(-220px);
}


.hero-video {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: clamp(1rem, 6vh, 5rem);
  width: min(420px, 42vw);
  aspect-ratio: 16 / 9;
  border: 2px solid rgba(178, 139, 74, 0.65);
  border-radius: 0.65rem;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: rgba(10, 14, 20, 0.8);
}

.hero-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent-strong);
  font-size: 0.75rem;
}

h1 {
  margin: 0.4rem 0 1rem;
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.1;
}

.hero-description {
  color: var(--color-muted);
  font-size: 1.05rem;
}

.hero-actions {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  padding: 0.75rem 1.15rem;
  border-radius: 0.4rem;
  text-decoration: none;
  font-weight: 600;
}

.btn-primary {
  background: var(--color-accent);
  color: #0e1116;
}

.btn-ghost {
  border: 1px solid rgba(217, 226, 242, 0.35);
  color: var(--color-text);
}

.play-popup {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.play-popup[hidden] {
  display: none;
}

.play-popup-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 15, 0.78);
}

.play-popup-panel {
  position: relative;
  z-index: 1;
  width: min(500px, 100%);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(178, 139, 74, 0.36);
  background: linear-gradient(180deg, rgba(18, 25, 34, 0.98), rgba(14, 20, 28, 0.98));
  box-shadow: var(--shadow);
}

.play-popup-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
}

.play-popup-list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.75rem;
  color: var(--color-muted);
}

.play-popup-list a {
  color: var(--color-accent-strong);
}

.play-popup-list a:hover {
  color: #f2ca82;
}

.wiki {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  display: grid;
  grid-template-columns: minmax(220px, 260px) 1fr;
  gap: 0;
}

.registration-description {
  margin: 0.45rem 0 0;
  color: var(--color-muted);
}

.registration-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
}

.registration-label {
  font-size: 1.2rem;
  font-weight: 700;
}

.registration-input {
  border: 1px solid #5f5b53;
  border-radius: 0.3rem;
  background: #f6f3ed;
  color: #191919;
  padding: 0.5rem 0.6rem;
  font: inherit;
  font-size: 1.1rem;
}

.password-input-wrap {
  position: relative;
}

.registration-input-password {
  width: 100%;
  padding-right: 2.4rem;
}

.password-toggle-button {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #2b2720;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0.1rem;
}

.registration-submit {
  margin-top: 0.35rem;
  justify-self: start;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.registration-submit:disabled {
  cursor: not-allowed;
  opacity: 0.8;
}

.registration-submit-spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: registration-spin 0.75s linear infinite;
  display: none;
}

.registration-submit.is-loading .registration-submit-spinner {
  display: inline-block;
}

@keyframes registration-spin {
  to {
    transform: rotate(360deg);
  }
}

.registration-modal,
.status-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.registration-modal[hidden],
.status-modal[hidden] {
  display: none;
}

.registration-modal-backdrop,
.status-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 15, 0.72);
}

.registration-modal-panel,
.status-modal-panel {
  position: relative;
  z-index: 1;
  width: min(540px, 100%);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(178, 139, 74, 0.36);
  background: linear-gradient(180deg, rgba(18, 25, 34, 0.98), rgba(14, 20, 28, 0.98));
  box-shadow: var(--shadow);
}

.registration-modal-close,
.status-modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  border: 0;
  background: transparent;
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
}

.status-modal-message {
  margin: 0;
  color: var(--color-text);
  font-size: 1.2rem;
}

.wiki-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  align-self: start;
  padding: 108px 1rem 112px;
  background-image: url("../assets/images/sidebar/sidebar-top.png"), url("../assets/images/sidebar/sidebar-bottom.png"), url("../assets/images/sidebar/sidebar-middle.png");
  background-repeat: no-repeat, no-repeat, repeat-y;
  background-position: top center, bottom center, top center;
  background-size: 100% auto, 100% auto, 100% auto;
  filter: drop-shadow(0 12px 22px rgba(6, 4, 2, 0.45));
}

.wiki-sidebar-title {
  margin: 0 0 0.75rem;
  font-size: 1.8rem;
  color: #f1d8a8;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.55);
}

.wiki-sections {
  display: grid;
  gap: 0.35rem;
}

.wiki-section-button {
  width: 100%;
  border: 1px solid rgba(37, 24, 11, 0.55);
  background: rgba(52, 31, 16, 0.56);
  color: #f7ead0;
  text-align: left;
  padding: 0.6rem 0.65rem;
  border-radius: 0.35rem;
  cursor: pointer;
  font: inherit;
  font-size: 1.35rem;
}

.wiki-section-button:hover,
.wiki-section-button.is-active {
  background: rgba(87, 50, 20, 0.72);
  border-color: #d4a86a;
  color: #ffe9ba;
}


.wiki-mobile-menu-open {
  display: none;
  border: 1px solid rgba(178, 139, 74, 0.7);
  background: rgba(24, 16, 8, 0.92);
  color: #f1d8a8;
  border-radius: 0.4rem;
  padding: 0.4rem 0.7rem;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
}

.wiki-mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.wiki-mobile-menu[hidden] {
  display: none;
}

.wiki-mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 4, 1, 0.78);
}

.wiki-mobile-menu-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  max-height: 85svh;
  overflow-y: auto;
  padding: 1.1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(178, 139, 74, 0.55);
  background: linear-gradient(180deg, #25170c, #130c06);
}

.wiki-mobile-menu-title {
  margin: 0 0 0.8rem;
  color: #f1d8a8;
  font-size: 2rem;
  text-align: center;
}

.wiki-mobile-menu-close {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  border: 0;
  background: transparent;
  color: #f1d8a8;
  font-size: 1.8rem;
  cursor: pointer;
}

.wiki-sections-mobile .wiki-section-button {
  font-size: 1.5rem;
}

.wiki-content {
  position: relative;
}

.wiki-content-paper {
  padding: 126px 1.2rem 136px;
  background-image: url("../assets/images/content/rightpanel-top.png"), url("../assets/images/content/rightpanel-bottom.png"), url("../assets/images/content/rightpanel-middle.png");
  background-repeat: no-repeat, no-repeat, repeat-y;
  background-position: top center, bottom center, top center;
  background-size: 100% auto, 100% auto, 100% auto;
  filter: drop-shadow(0 14px 28px rgba(8, 4, 0, 0.5));
  color: #121212;
}

.wiki-content-inner {
  margin-left: 2.2rem;
  margin-right: 10rem;
  padding: 1rem 1.25rem 1.2rem;
  box-sizing: border-box;
  overflow: visible;
  overflow-wrap: anywhere;
}

.wiki-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 2px solid #2b2720;
  padding-bottom: 0.65rem;
}

.wiki-content-title {
  margin: 0;
  font-size: clamp(1.65rem, 2.6vw, 2.1rem);
}

.wiki-search-wrap {
  display: grid;
  gap: 0.25rem;
  max-width: 360px;
  width: 100%;
}

.wiki-search-label {
  font-size: 1.15rem;
  font-weight: 700;
}

.wiki-search-input {
  border: 1px solid #5f5b53;
  border-radius: 0.3rem;
  background: #f6f3ed;
  color: #191919;
  padding: 0.5rem 0.6rem;
  font: inherit;
  font-size: 1.1rem;
}

.wiki-articles {
  margin-top: 0.85rem;
  display: grid;
  gap: 0.75rem;
}

.wiki-article-card {
  background: transparent;
  border: 0;
  border-top: 2px solid rgba(43, 39, 32, 0.75);
  border-radius: 0;
  padding: 0.9rem 0 0;
  max-width: 100%;
  overflow: hidden;
}

.wiki-article-title {
  margin: 0;
  font-size: 2rem;
}

.wiki-article-text {
  margin: 0.65rem 0 0;
  font-size: 1.3rem;
  line-height: 1.25;
  white-space: normal;
  max-width: 100%;
  overflow-wrap: anywhere;
}



.wiki-article-text .table-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 1.2rem 0;
  border: 2px solid rgba(70, 45, 24, 0.55);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255, 248, 224, 0.18), rgba(134, 89, 40, 0.06));
  box-shadow: inset 0 0 24px rgba(82, 52, 24, 0.13), 0 2px 0 rgba(255, 245, 210, 0.18);
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.wiki-article-text .table-wrapper::-webkit-scrollbar {
  height: 10px;
}

.wiki-article-text .table-wrapper::-webkit-scrollbar-track {
  background: rgba(53, 33, 17, 0.12);
}

.wiki-article-text .table-wrapper::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(89, 56, 28, 0.48);
}

.wiki-article-text .table-wrapper::-webkit-scrollbar-thumb:hover {
  background: rgba(89, 56, 28, 0.68);
}

.wiki-article-text table {
  width: 100%;
  max-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: #241409;
  table-layout: auto;
  min-width: 0;
}

.wiki-article-text td {
  vertical-align: middle;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(70, 45, 24, 0.14);
  font-size: 18px;
  line-height: 1.28;
  color: #241409;
}

.wiki-article-text .table_header td {
  font-weight: 700;
  color: #231409;
  font-size: 18px;
  line-height: 1.2;
  background: linear-gradient(180deg, rgba(88, 58, 30, 0.22), rgba(88, 58, 30, 0.12));
  border-bottom: 2px solid rgba(65, 42, 23, 0.45);
}

.wiki-article-text tr:nth-child(even):not(.table_header) {
  background: linear-gradient(90deg, rgba(118, 77, 35, 0), rgba(118, 77, 35, 0.1) 8%, rgba(118, 77, 35, 0.12) 88%, rgba(118, 77, 35, 0));
}

.wiki-article-text tr:nth-child(odd):not(.table_header) {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.08) 12%, rgba(255, 255, 255, 0.05) 86%, rgba(255, 255, 255, 0));
}

.wiki-article-text tr:hover:not(.table_header) {
  background: linear-gradient(90deg, rgba(171, 111, 42, 0.02), rgba(171, 111, 42, 0.2) 8%, rgba(171, 111, 42, 0.18) 88%, rgba(171, 111, 42, 0.02));
}

.wiki-article-text tr:last-child td {
  border-bottom: 0;
}

.wiki-article-text td:first-child {
  font-size: 20px;
  font-weight: 700;
}

.wiki-article-text td:last-child {
  text-align: center;
}

.wiki-mark {
  background: #f4c22d;
  color: #211700;
  padding: 0 0.1rem;
}

.wiki-match-section,
.wiki-match-title {
  margin: 0.55rem 0 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.wiki-match-list {
  margin: 0.45rem 0 0;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.35rem;
}

.wiki-match-item {
  font-size: 1.12rem;
  line-height: 1.25;
}

.wiki-match-link {
  border: 0;
  padding: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  border-bottom: 1px dashed rgba(43, 39, 32, 0.45);
}

.wiki-match-link:hover {
  color: #6a4914;
  border-bottom-color: rgba(106, 73, 20, 0.7);
}

.wiki-match-line {
  font-weight: 700;
}

.wiki-open-full-button {
  margin-top: 0.75rem;
  color: #6a4914;
  font-weight: 700;
}


.wiki-article-line {
  display: block;
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.wiki-article-line-number {
  font-weight: 700;
  color: #736048;
}

.wiki-article-line.is-line-focused {
  background: rgba(244, 194, 45, 0.38);
}

.wiki-article-card.is-focused {
  box-shadow: inset 0 0 0 2px rgba(244, 194, 45, 0.45);
}
.wiki-empty {
  margin: 0.85rem 0 0;
  font-size: 1.2rem;
}

@media (max-width: 900px) {

  .mobile-nav {
    display: block;
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    z-index: 25;
  }

  .mobile-nav-toggle {
    width: 52px;
    height: 52px;
    border-radius: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    background: linear-gradient(180deg, #111 0%, #000 100%);
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  }

  .burger-icon {
    position: relative;
    width: 24px;
    height: 16px;
    border-top: 3px solid #fff;
    border-bottom: 3px solid #fff;
  }

  .burger-icon::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    border-top: 3px solid #fff;
  }

  .mobile-nav-panel {
    margin-top: 0.5rem;
    min-width: 200px;
    padding: 0.8rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background: #000;
    display: grid;
    gap: 0.35rem;
  }

  .mobile-nav-link {
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.4rem 0.2rem;
  }

  .mobile-nav-link:hover {
    color: #e2e2e2;
  }

  .nav-list {
    display: none;
  }

  .hero-content {
    transform: translateY(-80px);
  }

  .hero-video {
    position: static;
    width: min(560px, 92vw);
    margin: 1rem auto 0;
    transform: none;
  }

  .wiki {
    grid-template-columns: 1fr;
  }

  .wiki-sidebar {
    display: none;
  }

  .wiki-mobile-menu-open {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    align-self: flex-start;
  }

  .wiki-content {
    padding-top: 0;
    padding-bottom: 0;
  }

  .wiki-content-paper {
    padding-top: 10px;
    padding-bottom: 120px;
    background-image: url("../assets/images/content/paper-top.png"), url("../assets/images/content/paper-bottom.png"), url("../assets/images/content/paper-middle.png");
    background-repeat: no-repeat, no-repeat, repeat-y;
    background-position: top center, bottom center, top center;
    background-size: 100% auto, 100% auto, 100% auto;
  }

  .wiki-content-inner {
    margin-left: 0;
    margin-right: 0;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .wiki-toolbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 760px) {
  .wiki-article-text .table-wrapper {
    overflow-x: hidden;
  }

  .wiki-article-text table {
    table-layout: fixed;
    width: 100%;
  }

  .wiki-article-text .table_header td,
  .wiki-article-text td {
    font-size: 14px;
    padding: 8px 6px;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  .wiki-article-text td:first-child {
    font-size: 15px;
  }
}



.site-footer {
  padding: 1rem;
  text-align: center;
  color: var(--color-muted);
}
