:root {
  color-scheme: dark;
  --cinema-bg: #070b0f;
  --cinema-panel: rgb(8 12 16 / 78%);
  --cinema-panel-strong: rgb(10 15 20 / 92%);
  --cinema-line: rgb(236 190 96 / 22%);
  --cinema-line-soft: rgb(236 190 96 / 13%);
  --cinema-gold: #f4c66d;
  --cinema-gold-deep: #b87122;
  --cinema-red: #d23632;
  --cinema-text: #f8f2e5;
  --cinema-muted: rgb(248 242 229 / 72%);
  --cinema-faint: rgb(248 242 229 / 52%);
  --header-height: 76px;
  --article-width: 960px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--cinema-bg);
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  color: var(--cinema-text);
  background:
    linear-gradient(180deg, rgb(7 11 15 / 92%), rgb(9 13 17 / 96%)),
    url("/inc/backgroundFullSection1_blur15.webp") center / cover fixed;
}

body::before {
  position: fixed;
  z-index: 0;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 76% 18%, rgb(244 198 109 / 8%), transparent 30%),
    linear-gradient(180deg, transparent, rgb(7 11 15 / 42%) 48%, rgb(7 11 15 / 78%));
  pointer-events: none;
}

::selection {
  color: #17100a;
  background: var(--cinema-gold);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgb(236 190 96 / 30%);
  border: 2px solid rgb(7 11 15 / 90%);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgb(244 198 109 / 52%);
}

a {
  color: var(--cinema-gold);
}

a:hover {
  color: #ffd98a;
}

button,
select {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--cinema-gold);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 100001;
  top: 12px;
  left: 12px;
  padding: 11px 16px;
  color: #17100a;
  font-weight: 850;
  background: linear-gradient(180deg, var(--cinema-gold), var(--cinema-gold-deep));
  border-radius: 4px;
  box-shadow: 0 14px 34px rgb(184 113 34 / 32%);
  text-decoration: none;
  transform: translateY(-170%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 100000;
  top: 0;
  left: 0;
  display: flex;
  width: 100%;
  height: var(--header-height);
  align-items: center;
  padding: 0 clamp(14px, 2vw, 26px);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 5.5%), transparent),
    rgb(5 9 13 / 78%);
  border-bottom: 1px solid var(--cinema-line);
  box-shadow:
    inset 0 -1px 0 rgb(255 255 255 / 3.5%),
    0 18px 60px rgb(0 0 0 / 34%);
  backdrop-filter: blur(50px);
}

.brand {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  color: var(--cinema-text);
  text-decoration: none;
}

.brand:hover {
  color: var(--cinema-text);
}

.brand-logo {
  display: block;
  width: auto;
  height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 9px 16px rgb(0 0 0 / 55%));
}

.brand-section {
  margin-left: 14px;
  padding: 4px 0 4px 14px;
  color: var(--cinema-gold);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1;
  border-left: 1px solid var(--cinema-line);
  text-transform: uppercase;
}

.language-picker {
  min-width: 0;
  margin-left: auto;
}

.language-picker select {
  width: auto;
  min-height: 40px;
  margin: 0;
  padding: 8px 36px 8px 16px;
  color: var(--cinema-text);
  font-size: 14px;
  font-weight: 750;
  background: rgb(236 190 96 / 12%);
  border: 1px solid var(--cinema-line-soft);
  border-radius: 34px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 6%);
  cursor: pointer;
  transition: background 100ms linear, border-color 100ms linear;
}

.language-picker select:hover {
  background: rgb(236 190 96 / 20%);
  border-color: rgb(236 190 96 / 34%);
}

.language-picker select:focus {
  border-color: var(--cinema-gold);
  outline: 0;
  box-shadow:
    0 0 0 3px rgb(244 198 109 / 12%),
    inset 0 1px 0 rgb(255 255 255 / 6%);
}

.language-picker option {
  color: var(--cinema-text);
  background: #090d11;
}

.wiki-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.wiki-page .wiki-layout,
.wiki-not-found .wiki-layout {
  display: block;
  width: 100%;
  margin: 0 auto;
  padding: calc(var(--header-height) + 50px) clamp(14px, 4vw, 48px) 76px;
}

.wiki-content {
  min-width: 0;
}

.wiki-page .wiki-content,
.wiki-not-found .wiki-content {
  position: relative;
  width: min(100%, var(--article-width));
  margin: 0 auto;
  padding: clamp(30px, 5vw, 58px);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 5%), rgb(255 255 255 / 1.2%)),
    rgb(8 12 16 / 88%);
  border: 1px solid var(--cinema-line);
  border-radius: 8px;
  box-shadow: 0 28px 80px rgb(0 0 0 / 34%);
  backdrop-filter: blur(18px);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 28px;
  color: var(--cinema-faint);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.breadcrumbs a {
  color: var(--cinema-muted);
  text-decoration: none;
}

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

.article-header {
  position: relative;
  max-width: 840px;
  margin: 0 0 40px;
  padding: 0 0 32px;
}

.article-header::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, rgb(244 198 109 / 78%), rgb(244 198 109 / 3%));
}

.eyebrow,
.card-category {
  margin: 0 0 12px;
  color: #e5b75e;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.4;
  text-transform: uppercase;
}

.wiki-content h1,
.wiki-content h2,
.wiki-content h3,
.wiki-content h4 {
  color: #fff7e8;
  font-family: inherit;
  hyphens: auto;
  line-height: 1.1;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.article-header h1 {
  max-width: 18ch;
  margin: 0 0 18px;
  font-size: clamp(40px, 5vw, 62px);
  font-weight: 920;
  letter-spacing: -0.02em;
  line-height: 0.98;
  text-shadow: 0 18px 34px rgb(0 0 0 / 42%);
}

.lede,
.home-hero-text {
  max-width: 68ch;
  margin: 0;
  color: rgb(248 242 229 / 82%);
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.58;
}

.wiki-content article > h2 {
  position: relative;
  margin: 48px 0 18px;
  padding-bottom: 12px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 850;
}

.wiki-content article > h2::after {
  position: absolute;
  bottom: 0;
  left: 0;
  width: min(240px, 46%);
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--cinema-gold), transparent);
}

.wiki-content article > h3 {
  margin: 38px 0 14px;
  font-size: 23px;
  font-weight: 820;
}

.wiki-content article > h4 {
  margin: 30px 0 12px;
  color: var(--cinema-gold);
  font-size: 17px;
  font-weight: 850;
}

.wiki-text {
  max-width: 72ch;
  color: rgb(248 242 229 / 82%);
  font-size: 17px;
  line-height: 1.75;
}

.wiki-text + .wiki-text {
  margin-top: 20px;
}

.wiki-text p {
  margin: 0 0 20px;
}

.wiki-text p:last-child {
  margin-bottom: 0;
}

.wiki-text ul,
.wiki-text ol {
  padding-left: 1.4rem;
}

.wiki-text li + li {
  margin-top: 8px;
}

.wiki-text strong {
  color: #fff8ea;
  font-weight: 800;
}

.wiki-text code {
  padding: 2px 5px;
  color: var(--cinema-gold);
  background: rgb(5 9 13 / 66%);
  border: 1px solid var(--cinema-line-soft);
  border-radius: 4px;
}

.translation-notice {
  max-width: 76ch;
  margin: 0 0 30px;
  padding: 14px 17px;
  color: #fff2cf;
  background: rgb(244 198 109 / 12%);
  border: 1px solid rgb(244 198 109 / 45%);
  border-left: 4px solid var(--cinema-gold);
  border-radius: 4px;
}

.wiki-table {
  max-width: 100%;
  margin: 30px 0 42px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgb(255 255 255 / 4.5%), rgb(255 255 255 / 1.5%)),
    rgb(8 12 16 / 76%);
  border: 1px solid rgb(236 190 96 / 20%);
  border-radius: 8px;
  box-shadow: 0 26px 76px rgb(0 0 0 / 28%);
  backdrop-filter: blur(14px);
}

.wiki-table:last-child {
  margin-bottom: 0;
}

.wiki-table figcaption {
  padding: 18px clamp(18px, 2.5vw, 26px);
  color: #fff6e4;
  font-size: 18px;
  font-weight: 850;
  line-height: 1.3;
  background: rgb(5 9 13 / 28%);
  border-bottom: 1px solid var(--cinema-line-soft);
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.table-scroll:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--cinema-gold);
}

table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  color: var(--cinema-text);
  background: transparent;
}

th,
td {
  padding: 15px clamp(16px, 2vw, 24px);
  text-align: left;
  vertical-align: top;
  border-right: 1px solid rgb(236 190 96 / 9%);
  border-bottom: 1px solid rgb(236 190 96 / 11%);
}

thead th {
  color: #f8d58b;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgb(5 9 13 / 42%);
}

tbody th {
  color: var(--cinema-gold);
  font-weight: 850;
}

tbody td {
  color: rgb(248 242 229 / 78%);
  line-height: 1.5;
}

tbody tr {
  transition: background 120ms ease;
}

tbody tr:hover {
  background: rgb(236 190 96 / 4.5%);
}

tr:last-child th,
tr:last-child td {
  border-bottom: 0;
}

th:last-child,
td:last-child {
  border-right: 0;
}

.wiki-home {
  background: var(--cinema-bg);
}

.wiki-home .wiki-layout {
  display: block;
  width: 100%;
}

.wiki-home .wiki-content {
  width: 100%;
}

.home-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  width: 100%;
  min-height: clamp(600px, 72svh, 760px);
  padding: calc(var(--header-height) + 48px) clamp(18px, 4vw, 72px) 48px;
  overflow: hidden;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(90deg, rgb(7 11 15 / 96%) 0%, rgb(7 11 15 / 70%) 44%, rgb(7 11 15 / 22%) 72%),
    linear-gradient(180deg, rgb(7 11 15 / 24%), var(--cinema-bg) 100%),
    url("/inc/backgroundFullSection1_blur15.webp") center / cover;
  border-bottom: 1px solid var(--cinema-line-soft);
}

.home-hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 72% 43%, rgb(219 145 61 / 30%), transparent 27%),
    linear-gradient(115deg, transparent 0 48%, rgb(229 43 57 / 13%) 48% 51%, transparent 51% 100%);
  mix-blend-mode: screen;
  opacity: 0.85;
  pointer-events: none;
}

.home-hero::after {
  position: absolute;
  z-index: -1;
  right: 0;
  bottom: 0;
  left: 0;
  height: 150px;
  content: "";
  background: linear-gradient(180deg, transparent, #0b1117 72%);
  pointer-events: none;
}

.home-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(100%, 1320px);
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.home-hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.home-hero .eyebrow {
  margin-bottom: 12px;
}

.home-hero h1 {
  max-width: 700px;
  margin: 0 0 20px;
  color: #fff7e8;
  font-size: clamp(44px, 5.6vw, 76px);
  font-weight: 920;
  letter-spacing: -0.025em;
  line-height: 0.94;
  text-transform: uppercase;
  text-shadow: 0 22px 42px rgb(0 0 0 / 52%);
}

.home-hero-art {
  display: flex;
  min-width: 0;
  min-height: min(54vw, 440px);
  align-items: center;
  justify-content: center;
}

.home-hero-art img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter:
    drop-shadow(0 42px 80px rgb(0 0 0 / 62%))
    saturate(1.05)
    contrast(1.04);
  transform: translateX(4%) scale(1.06);
}

@media (max-width: 1120px) {
  .home-hero {
    min-height: auto;
    padding-top: calc(var(--header-height) + 82px);
    padding-bottom: 70px;
  }

  .home-hero-inner {
    grid-template-columns: 1fr;
  }

  .home-hero-copy {
    align-items: center;
    text-align: center;
  }

  .home-hero-art {
    min-height: auto;
    margin-top: -18px;
  }

  .home-hero-art img {
    width: min(680px, 92vw);
    transform: none;
  }
}

.page-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  padding:
    clamp(72px, 9vw, 120px)
    max(clamp(18px, 5vw, 78px), calc((100% - 1180px) / 2));
  background: linear-gradient(180deg, #0b1117, #121017 56%, #170f11);
}

.page-card {
  position: relative;
  display: flex;
  min-height: 228px;
  padding: clamp(24px, 3vw, 34px);
  overflow: hidden;
  flex-direction: column;
  color: var(--cinema-text);
  background:
    linear-gradient(180deg, rgb(255 255 255 / 4.5%), rgb(255 255 255 / 1.5%)),
    rgb(8 12 16 / 76%);
  border: 1px solid rgb(236 190 96 / 18%);
  border-radius: 6px;
  box-shadow: 0 20px 54px rgb(0 0 0 / 22%);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.page-card::after {
  position: absolute;
  right: -48px;
  bottom: -62px;
  width: 150px;
  height: 150px;
  content: "";
  background: radial-gradient(circle, rgb(210 54 50 / 16%), transparent 68%);
  pointer-events: none;
}

.page-card:hover {
  color: var(--cinema-text);
  background:
    linear-gradient(180deg, rgb(244 198 109 / 9%), rgb(255 255 255 / 1.5%)),
    rgb(8 12 16 / 84%);
  border-color: rgb(244 198 109 / 46%);
  transform: translateY(-3px);
}

.page-card .card-category {
  display: inline-flex;
  margin-bottom: 34px;
  color: var(--cinema-red);
  font-size: 13px;
  font-weight: 900;
}

.page-card strong {
  position: relative;
  z-index: 1;
  margin: 0 0 12px;
  color: var(--cinema-text);
  font-size: clamp(23px, 2.2vw, 32px);
  font-weight: 850;
  line-height: 1.04;
  text-transform: uppercase;
}

.page-card > span:last-child {
  position: relative;
  z-index: 1;
  color: rgb(248 242 229 / 76%);
  font-size: 16px;
  line-height: 1.62;
}

.empty-state {
  max-width: 720px;
  padding-top: 7vh;
}

.empty-state h1 {
  margin: 0 0 18px;
  font-size: clamp(44px, 7vw, 76px);
  font-weight: 920;
  line-height: 0.96;
  text-transform: uppercase;
}

.empty-state p:not(.eyebrow) {
  max-width: 58ch;
  color: var(--cinema-muted);
  font-size: 18px;
  line-height: 1.6;
}

.primary-link {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 0 24px;
  color: #17100a;
  font-size: 15px;
  font-weight: 850;
  background: linear-gradient(180deg, var(--cinema-gold), var(--cinema-gold-deep));
  border-radius: 4px;
  box-shadow: 0 14px 34px rgb(184 113 34 / 32%);
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease;
}

.primary-link:hover {
  color: #17100a;
  background: linear-gradient(180deg, #ffd98a, #c9822c);
  transform: translateY(-2px);
}

@media (max-width: 860px) {
  :root {
    --header-height: 70px;
  }

  body {
    background-attachment: scroll;
  }

  .site-header {
    padding-right: 12px;
    padding-left: 12px;
  }

  .brand-logo {
    height: 44px;
  }

  .brand-section {
    margin-left: 10px;
    padding-left: 10px;
  }

  .language-picker select {
    max-width: 138px;
    min-height: 40px;
    padding-right: 30px;
    text-overflow: ellipsis;
  }

  .wiki-page .wiki-layout,
  .wiki-not-found .wiki-layout,
  .wiki-home .wiki-layout {
    display: block;
    width: 100%;
    padding: calc(var(--header-height) + 34px) 18px 60px;
  }

  .wiki-home .wiki-layout {
    padding: 0;
  }

  .wiki-page .wiki-content,
  .wiki-not-found .wiki-content {
    padding: clamp(28px, 6vw, 46px);
  }

  .home-hero {
    min-height: auto;
    padding: calc(var(--header-height) + 64px) clamp(18px, 6vw, 48px) 70px;
  }

  .page-grid {
    padding: 72px clamp(18px, 6vw, 48px);
  }
}

@media (max-width: 820px) {
  .home-hero-copy {
    align-items: flex-start;
    text-align: left;
  }

  .home-hero-art {
    display: none;
  }
}

@media (max-width: 560px) {
  .brand-logo {
    height: 38px;
  }

  .brand-section {
    display: none;
  }

  .language-picker select {
    max-width: 108px;
    padding-right: 26px;
    padding-left: 12px;
  }

  .wiki-page .wiki-layout,
  .wiki-not-found .wiki-layout {
    padding-right: 12px;
    padding-left: 12px;
  }

  .wiki-page .wiki-content,
  .wiki-not-found .wiki-content {
    padding: 26px 20px 32px;
  }

  .breadcrumbs {
    margin-bottom: 24px;
  }

  .article-header {
    margin-bottom: 34px;
    padding-bottom: 26px;
  }

  .article-header h1 {
    font-size: clamp(34px, 11vw, 46px);
  }

  .wiki-text {
    font-size: 16px;
    line-height: 1.7;
  }

  .wiki-content article > h2 {
    margin-top: 42px;
    font-size: 26px;
  }

  .home-hero {
    min-height: auto;
    padding-right: 16px;
    padding-left: 16px;
  }

  .home-hero h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .page-grid {
    grid-template-columns: 1fr;
    padding: 58px 16px 72px;
  }

  .page-card {
    min-height: 0;
    padding: 24px;
  }

  .page-card .card-category {
    margin-bottom: 26px;
  }

  table {
    min-width: 520px;
  }
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header,
  .wiki-page .wiki-content,
  .wiki-not-found .wiki-content,
  .wiki-table {
    background-color: #0a0f14;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  .site-header,
  .wiki-page .wiki-content,
  .wiki-not-found .wiki-content,
  .wiki-table,
  .page-card {
    border: 1px solid CanvasText;
  }
}
