/* The cabinet's look over the public template pages: 3px corners, gold primary
   buttons with a gloss, glass secondary buttons, glass header, soft shadows.
   The template's own blocks, pictures and texts stay as they are. */

:root {
  --skin-radius: 3px;
  --skin-gold: linear-gradient(180deg, #fbdc9f 0%, #f4c879 48%, #e5ad55 100%);
  --skin-gold-shadow: inset 0 1px 0 #ffffffb3, inset 0 -1px 0 #9a6a2499, 0 10px 24px -10px #f4c879a6, 0 2px 4px #01080f66;
}

/* Eyebrows over titles ("L2 · WELLYSSAR LEGACY") retell the title: gone, as in the cabinet. */
.poster-eyebrow,
[class*='eyebrow'] {
  display: none !important;
}

/* Primary buttons: the cabinet's gold. */
.poster-button,
.btn-primary,
.btn-yellow {
  border-radius: var(--skin-radius) !important;
  background: var(--skin-gold) !important;
  color: #1b2f33 !important;
  border: 0 !important;
  box-shadow: var(--skin-gold-shadow) !important;
  font-weight: 700;
  text-shadow: none !important;
}

.poster-button:hover,
.btn-primary:hover,
.btn-yellow:hover {
  filter: brightness(1.05);
}

/* Secondary buttons: glass with a light edge. */
.btn-outline-yellow,
.btn-outline,
.btn-secondary {
  border-radius: var(--skin-radius) !important;
  background: #ffffff14 !important;
  border: 1px solid #ffffff2e !important;
  box-shadow: inset 0 1px 0 #ffffff33 !important;
}

/* Cards and panels: 3px corners. */
[class*='card'],
[class*='panel'],
.poster-feature,
.poster-guide-link,
.download-dialog,
.dropdown-menu {
  border-radius: var(--skin-radius) !important;
}

/* Light theme: the cabinet's parchment glass and ink on the secondary buttons. */
html[data-site-theme='light'] .btn-outline-yellow,
html[data-site-theme='light'] .btn-outline,
html[data-site-theme='light'] .btn-secondary {
  background: linear-gradient(180deg, #fffaf0e6, #f6ecd8d9) !important;
  border: 1px solid #8a5a1c59 !important;
  color: #6e4513 !important;
  box-shadow: inset 0 1px 0 #ffffff, 0 4px 12px -8px #3a2a1466 !important;
}

/* ---- Light theme: the parts the template keeps dark teal by value ---- */
html[data-site-theme='light'] {
  --skin-paper: #f3e9d6;
  --skin-paper-rgb: 243, 233, 214;
  --skin-ink: #1b2f33;
  --skin-ink-soft: #3b4f4e;
  --skin-gold-ink: #7a4d14;
}

html[data-site-theme='light'] body {
  background-color: var(--skin-paper);
}

/* Header and footer: parchment glass. */
html[data-site-theme='light'] #app > header,
html[data-site-theme='light'] body > header,
html[data-site-theme='light'] .site-shell > header {
  background: rgba(248, 240, 224, 0.9) !important;
  border-bottom: 1px solid #19343b1f !important;
  box-shadow: 0 6px 20px -14px #3a2a1466 !important;
  color: var(--skin-ink);
}

html[data-site-theme='light'] header :is(a, button, .language-code) {
  color: var(--skin-ink) !important;
}

html[data-site-theme='light'] footer.new-footer {
  background: #efe4cf !important;
  color: var(--skin-ink) !important;
  box-shadow: inset 0 1px 0 #ffffffcc, 0 -1px 0 #19343b1f !important;
}

html[data-site-theme='light'] footer.new-footer :is(a, p, span, small, li, h2, h3, h4, button) {
  color: var(--skin-ink-soft) !important;
}

/* Poster sections: the glow next to the art turns from teal to parchment. */
html[data-site-theme='light'] .poster-hero.poster-scene,
html[data-site-theme='light'] .poster-community.poster-scene,
html[data-site-theme='light'] .poster-market.poster-scene {
  background-color: var(--skin-paper) !important;
}

html[data-site-theme='light'] .poster-hero.poster-scene::before {
  background: linear-gradient(90deg, rgba(var(--skin-paper-rgb), 0.98) 8%, rgba(var(--skin-paper-rgb), 0.87) 35%, rgba(var(--skin-paper-rgb), 0.4) 68%, rgba(var(--skin-paper-rgb), 0)) !important;
}

html[data-site-theme='light'] .poster-hero.poster-scene::after {
  background: linear-gradient(0deg, rgba(var(--skin-paper-rgb), 0.85), rgba(var(--skin-paper-rgb), 0) 24%) !important;
}

html[data-site-theme='light'] .poster-market.poster-scene::before {
  background: linear-gradient(90deg, rgba(var(--skin-paper-rgb), 0) 10%, rgba(var(--skin-paper-rgb), 0.35) 43%, rgba(var(--skin-paper-rgb), 0.95) 76%) !important;
}

html[data-site-theme='light'] .poster-community.poster-scene::before {
  background: linear-gradient(90deg, rgba(var(--skin-paper-rgb), 0.97) 20%, rgba(var(--skin-paper-rgb), 0.7) 50%, rgba(var(--skin-paper-rgb), 0.12) 90%) !important;
}

/* Text over the parchment: dark ink, gold lines in dark gold, no dark halos. */
html[data-site-theme='light'] .poster-scene :is(h1, h2, h3, .poster-title, .l2-title-line) {
  color: var(--skin-ink) !important;
  text-shadow: 0 1px 0 #ffffffb3 !important;
  -webkit-text-stroke: 0 !important;
}

html[data-site-theme='light'] .poster-scene .l2-title-line + .l2-title-line {
  color: var(--skin-gold-ink) !important;
}

html[data-site-theme='light'] .poster-scene :is(p, .poster-intro, .poster-text-link, li) {
  color: var(--skin-ink-soft) !important;
  text-shadow: none !important;
}

html[data-site-theme='light'] .poster-scene .poster-text-link {
  color: var(--skin-gold-ink) !important;
  border-color: #8a5a1c66 !important;
}
/* Section edges: a thin line like the cabinet's, not thick ink bands. */
.poster-hero,
.poster-market,
.poster-community,
.poster-live-strip,
footer.new-footer {
  border-top-width: 0 !important;
  border-bottom-width: 1px !important;
  border-color: #ffffff1f !important;
}

.poster-play-art {
  border-right-width: 1px !important;
  border-color: #ffffff1f !important;
}

html[data-site-theme='light'] :is(.poster-hero, .poster-market, .poster-community, .poster-live-strip, footer.new-footer, .poster-play-art) {
  border-color: #19343b4d !important;
}

/* Back-to-top: the cabinet's gold button, soft shadow instead of a hard offset. */
.site-back-to-top {
  border: 0 !important;
  border-radius: var(--skin-radius) !important;
  background: var(--skin-gold) !important;
  color: #1b2f33 !important;
  box-shadow: var(--skin-gold-shadow) !important;
}

/* Social icons under the hero buttons. */
html[data-site-theme='light'] .poster-hero-socials a {
  color: var(--skin-ink-soft) !important;
}

html[data-site-theme='light'] .poster-hero-socials a:hover {
  color: var(--skin-gold-ink) !important;
}
/* Scrollbar in the page's colours (a dark bar beside the light header looked broken). */
html {
  scrollbar-color: #ffffff40 #10272c;
}

html[data-site-theme='light'] {
  scrollbar-color: #8a5a1c80 #efe4cf;
}

/* Light theme: every thin divider of the template gets visible ink. */
html[data-site-theme='light'] :is(hr, [class*='divider'], [class*='separator']) {
  border-color: #19343b4d !important;
  background-color: #19343b33;
}

html[data-site-theme='light'] :is(.poster-feature, .poster-guide-link, .poster-live-server, .poster-live-value) {
  border-color: #19343b40 !important;
}

/* Cards: the cabinet's soft shadow instead of the template's hard offset one. */
[class*='card'],
.knowledge-hero,
[class*='hero-panel'],
.start-hero {
  box-shadow: 0 1px 2px #020c1a40, 0 16px 40px -18px #020c1ab3 !important;
}

html[data-site-theme='light'] :is([class*='card'], .knowledge-hero, [class*='hero-panel'], .start-hero) {
  box-shadow: 0 1px 2px #3a2a1426, 0 16px 40px -18px #3a2a1466 !important;
}
/* Home hero: the character stands on the bottom edge instead of floating above it. */
.poster-hero .poster-hero-art {
  transform: translateY(48px);
}

@media (max-width: 760px) {
  .poster-hero .poster-hero-art {
    transform: translateY(24px);
  }
}

/* ======== The cabinet's liquid glass over the whole public site ======== */
:root {
  --g-fill: #1c343e73;
  --g-strong: #142a33d9;
  --g-edge: #ffffff2e;
  --g-blur: blur(22px) saturate(1.6) brightness(1.04);
  --g-blur-soft: blur(14px) saturate(1.4);
  --g-inner: inset 0 1px 0 #ffffff47, inset 0 0 0 1px #ffffff0a;
  --g-drop: 0 24px 60px -28px #01080fe6, 0 2px 6px #01080f59;
  --g-veil: radial-gradient(120% 80% at 50% 30%, #1b2b3326 0%, #1b2b33b3 60%, #101a1ff2 100%);
  /* The template's own colour names follow the cabinet's palette. */
  --text: #efe9d7;
  --muted: #c9c6b6;
  --gold: #f4c879;
  --gold-bright: #ffdf9e;
  --line: #cee6ef2e;
  --line-soft: #cee6ef1a;
}

html[data-site-theme='light'] {
  --g-fill: #fbf5e9e6;
  --g-strong: #fdf8eef5;
  --g-edge: #ffffffb3;
  --g-blur: blur(22px) saturate(1.3) brightness(1.08);
  --g-blur-soft: blur(14px) saturate(1.2) brightness(1.06);
  --g-inner: inset 0 1px 0 #ffffffcc, inset 0 0 0 1px #ffffff33;
  --g-drop: 0 24px 60px -30px #3a2a1466, 0 2px 6px #3a2a1426;
  --g-veil: linear-gradient(#efe4cf8c, #efe4cf8c), radial-gradient(120% 80% at 50% 30%, #f6ecd84d 0%, #f1e4cbc7 60%, #e8dcc1f5 100%);
  --text: #20363b;
  --muted: #3b4f4e;
  --gold: #8a5a1c;
  --gold-bright: #6e4513;
  --line: #19343b33;
  --line-soft: #19343b1f;
}

/* The scene behind everything, as in the cabinet. */
body {
  background: var(--g-veil), url('/template/wellyssar/images/home-loading/scene-2.webp') center 35% / cover fixed no-repeat, #101a1f !important;
}

html[data-site-theme='light'] body {
  background: var(--g-veil), url('/template/wellyssar/images/home-loading/scene-2.webp') center 35% / cover fixed no-repeat, #e8dcc1 !important;
}

/* Header, footer, the phone menu and drop-downs: glass. */
#app > header,
footer.new-footer,
.uc-content,
.sidebar-collapse .uc-content,
.dropdown-menu,
.download-dialog,
dialog {
  background: var(--g-strong) !important;
  border-color: var(--g-edge) !important;
  backdrop-filter: var(--g-blur) !important;
  -webkit-backdrop-filter: var(--g-blur) !important;
  box-shadow: var(--g-inner), var(--g-drop) !important;
  color: var(--text) !important;
}

#app > header {
  background: color-mix(in srgb, var(--g-strong) 70%, transparent) !important;
  backdrop-filter: var(--g-blur-soft) !important;
  -webkit-backdrop-filter: var(--g-blur-soft) !important;
}

/* Every reading surface of the template: the cabinet's glass card. */
#main-container :is(
    .poster-live-strip, .poster-feature-list, .poster-heading-radio .radio-panel,
    .knowledge-nav, .quest-card, .quest-catalog-card, .quest-overview, .profession-card,
    .item-database-card, .fish-catch-card, .guide-note, .guide-facts,
    .guide-number-cards > div, .guide-table-cards > div, .guide-rule, .guide-faq details,
    .guide-command-list > div, .fishing-skill, .quest-finder, .item-attributes > div,
    .download-panel, .help-panel, .enchant-panel, .enchant-window, .enchant-results, .enchant-settings,
    .project-doc-sidebar nav, .project-doc-contact, .project-doc-related
  ) {
  background-color: var(--g-fill) !important;
  border: 1px solid var(--g-edge) !important;
  border-radius: var(--skin-radius) !important;
  backdrop-filter: var(--g-blur) !important;
  -webkit-backdrop-filter: var(--g-blur) !important;
  box-shadow: var(--g-inner), var(--g-drop) !important;
}

/* Tables in guides and item pages: no ink grid, the cabinet's thin lines. */
#main-container table th,
#main-container table td {
  border-color: var(--line-soft) !important;
}

/* The logo is the cabinet's picture everywhere (header, phone menu, footer). */
.logo .brand-lockup,
.sidebar-logo .brand-lockup,
.footer-brand .brand-lockup {
  display: inline-block;
  width: 118px;
  height: 46px;
  background: url('/template/wellyssar/images/home-loading/logo.webp') center / contain no-repeat;
}

.sidebar-logo .brand-lockup {
  width: 176px;
  height: 64px;
}

.footer-brand .brand-lockup {
  width: 150px;
  height: 58px;
}

:is(.logo, .sidebar-logo, .footer-brand) .brand-lockup > * {
  visibility: hidden;
}
/* Marked by site-skin.js: hard ink shadows and thick ink borders become the cabinet's. */
.wy-soft {
  box-shadow: var(--g-inner), var(--g-drop) !important;
}

.wy-edge {
  border-width: 1px !important;
  border-color: var(--g-edge) !important;
}
/* Marked by site-skin.js in the light theme: text that would not read. */
html[data-site-theme='light'] .wy-ink {
  color: #2c4245 !important;
  text-shadow: none !important;
}

html[data-site-theme='light'] .wy-ink-gold {
  color: #7a4d14 !important;
  text-shadow: none !important;
}

/* Guides and long pages: the reading column sits on glass, never straight on the art. */
#main-container .knowledge-content {
  background-color: var(--g-fill);
  border: 1px solid var(--g-edge);
  border-radius: var(--skin-radius);
  backdrop-filter: var(--g-blur);
  -webkit-backdrop-filter: var(--g-blur);
  box-shadow: var(--g-inner), var(--g-drop);
  padding: 20px clamp(14px, 2.4vw, 28px) 28px;
}

/* Menu icons in the light theme: dark gold, clearly visible. */
html[data-site-theme='light'] :is(.uc-content, .sidebar-menu, .menu, footer.new-footer) svg {
  color: #8a5a1c !important;
  stroke: currentColor;
  opacity: 1 !important;
}

/* The radio row on the home page: compact. */
.poster-play-heading {
  padding-top: clamp(20px, 3vw, 36px) !important;
  padding-bottom: clamp(16px, 2vw, 24px) !important;
  min-height: 0 !important;
  align-items: center !important;
}

.poster-heading-radio .radio-panel {
  padding: 12px 16px !important;
  gap: 8px 14px !important;
}

.poster-heading-radio .radio-panel :is(h3, h4, .radio-title, [class*='headline']) {
  font-size: 18px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

.poster-heading-radio .radio-panel p {
  margin: 0 !important;
}

/* The second, golden line of titles: real gold in the light theme, not brown. */
html[data-site-theme='light'] :is(.poster-scene, .poster-play-heading, #main-container) .l2-title-line + .l2-title-line,
html[data-site-theme='light'] .poster-play-heading .poster-title .l2-title-line:nth-child(2) {
  background: linear-gradient(180deg, #d79a2b 0%, #b97a17 55%, #94600f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  text-shadow: none !important;
  filter: drop-shadow(0 1px 0 #ffffffb3);
}
/* The template's abstract line ornaments, back on the header, footer and page field.
   The SVGs draw faint light strokes; used as a mask they keep their shape and take
   the theme's ink, so they show on light glass too. */
#app > header,
footer.new-footer {
  position: relative;
  isolation: isolate;
}

#app > header::after,
footer.new-footer::after,
body::after {
  content: '';
  pointer-events: none;
  background-color: #cfe3e8;
  -webkit-mask: url('/template/wellyssar/images/ui/frame-ornament.svg') center / cover no-repeat;
  mask: url('/template/wellyssar/images/ui/frame-ornament.svg') center / cover no-repeat;
  opacity: 0.9;
}

#app > header::after,
footer.new-footer::after {
  position: absolute;
  inset: 0;
  z-index: -1;
}

body::after {
  position: fixed;
  inset: 0;
  z-index: 0;
  -webkit-mask-image: url('/template/wellyssar/images/ui/atmosphere-lines.svg');
  mask-image: url('/template/wellyssar/images/ui/atmosphere-lines.svg');
  -webkit-mask-size: cover;
  mask-size: cover;
  opacity: 0.7;
}

#app {
  position: relative;
  z-index: 1;
}

html[data-site-theme='light'] #app > header::after,
html[data-site-theme='light'] footer.new-footer::after,
html[data-site-theme='light'] body::after {
  background-color: #6e4513;
  opacity: 1;
}
/* ---- Living background: drifting ornament lines and slow glowing light ---- */
@keyframes wy-drift-a {
  from { -webkit-mask-position: 0% 50%; mask-position: 0% 50%; }
  to { -webkit-mask-position: 100% 50%; mask-position: 100% 50%; }
}

@keyframes wy-drift-b {
  from { -webkit-mask-position: 100% 40%; mask-position: 100% 40%; }
  to { -webkit-mask-position: 0% 60%; mask-position: 0% 60%; }
}

@keyframes wy-glow {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(3%, -2%, 0) scale(1.08); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

/* Lines: wider than the screen so they can travel. */
body::after,
#app > header::after,
footer.new-footer::after {
  -webkit-mask-size: 160% auto !important;
  mask-size: 160% auto !important;
  -webkit-mask-repeat: repeat-x !important;
  mask-repeat: repeat-x !important;
  animation: wy-drift-a 90s linear infinite alternate;
}

footer.new-footer::after {
  animation-name: wy-drift-b;
  animation-duration: 110s;
}

/* A second, slower layer of lines crossing the first on the page field. */
#app::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-color: #cfe3e8;
  opacity: 0.45;
  -webkit-mask: url('/template/wellyssar/images/ui/frame-ornament.svg') 100% 40% / 180% auto repeat-x;
  mask: url('/template/wellyssar/images/ui/frame-ornament.svg') 100% 40% / 180% auto repeat-x;
  transform: scaleY(-1);
  animation: wy-drift-b 140s linear infinite alternate;
}

/* Soft light: gold on one side, teal on the other, breathing slowly. */
html::before {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(40% 35% at 18% 30%, #f4c8792e, transparent 70%),
    radial-gradient(38% 32% at 82% 72%, #5fb3c226, transparent 70%);
  animation: wy-glow 38s ease-in-out infinite;
}

html[data-site-theme='light'] #app::before {
  background-color: #8a5a1c;
  opacity: 0.5;
}

html[data-site-theme='light']::before {
  background:
    radial-gradient(40% 35% at 18% 30%, #f6c25a40, transparent 70%),
    radial-gradient(38% 32% at 82% 72%, #7fc0c833, transparent 70%);
}

@media (prefers-reduced-motion: reduce) {
  body::after,
  #app::before,
  html::before,
  #app > header::after,
  footer.new-footer::after {
    animation: none !important;
  }
}
/* Marketplace dwarf: down to the ground, not standing on the tree. */
.poster-market .poster-market-character {
  translate: 0 56px;
}

@media (max-width: 760px) {
  .poster-market .poster-market-character {
    translate: 0 28px;
  }
}

/* ---- World gate: two halves, each a blurred live preview of its site ---- */
html.wy-gated {
  overflow: hidden;
}

.wy-gate {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #07121a;
  transition: opacity 0.35s ease;
}

.wy-gate.out {
  opacity: 0;
}

.wy-gate h2,
.wy-gate-hint {
  position: absolute;
  left: 50%;
  z-index: 3;
  translate: -50% 0;
  margin: 0;
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}

.wy-gate h2 {
  top: clamp(18px, 5vh, 48px);
  font: 400 clamp(28px, 3.6vw, 48px) / 1.1 'Wellyssar Display', 'Arial Black', sans-serif;
  background: linear-gradient(180deg, #ffe7b0 0%, #f4c879 45%, #c98f2a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 #061b25) drop-shadow(0 10px 24px #000000cc);
}

.wy-gate-hint {
  bottom: 14px;
  color: #c9d6d6;
  font: 500 13px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  text-shadow: 0 1px 3px #000;
}

.wy-gate-half {
  position: relative;
  display: grid;
  align-content: end;
  justify-items: center;
  overflow: hidden;
  padding: 0 24px clamp(48px, 9vh, 90px);
  text-decoration: none;
  isolation: isolate;
  cursor: pointer;
}

/* The seam between the worlds: a thin line of gold and ice. */
.wy-gate-l2 {
  box-shadow: inset -1px 0 0 #f4c87999;
}

.wy-gate-wow {
  box-shadow: inset 1px 0 0 #9fd8ff99;
}

/* The live page behind, small and blurred. */
.wy-gate-preview {
  position: absolute;
  inset: 0;
  z-index: -3;
  overflow: hidden;
}

.wy-gate-preview iframe {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1600px;
  height: 1100px;
  border: 0;
  pointer-events: none;
  transform-origin: top center;
  translate: -50% 0;
  scale: max(0.62, calc(100vh / 1100px));
  filter: blur(7px) saturate(1.15) brightness(0.62);
  transition: filter 0.5s ease;
}

.wy-gate-half::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(180deg, #07121a66 0%, transparent 30%, #07121aeb 86%);
  transition: opacity 0.4s ease;
}

.wy-gate-l2::before,
.wy-gate-wow::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.wy-gate-l2::before {
  background: radial-gradient(60% 50% at 50% 55%, #f4c87940, transparent 70%);
}

.wy-gate-wow::before {
  background: radial-gradient(60% 50% at 50% 55%, #9fd8ff40, transparent 70%);
}

.wy-gate-half:hover .wy-gate-preview iframe,
.wy-gate-half:focus-visible .wy-gate-preview iframe {
  filter: blur(3px) saturate(1.2) brightness(0.8);
}

.wy-gate-half:hover::before,
.wy-gate-half:focus-visible::before {
  opacity: 1;
}

@keyframes wy-breathe {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-6px) scale(1.01); }
}

.wy-gate-art {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: -1;
  height: min(86vh, 900px);
  width: auto;
  translate: -50% 0;
  filter: drop-shadow(0 20px 40px #000000cc);
  animation: wy-breathe 7s ease-in-out infinite;
  transition: filter 0.4s ease, scale 0.4s ease;
}

.wy-gate-half:hover .wy-gate-art {
  scale: 1.02;
  filter: drop-shadow(0 20px 40px #000000cc) brightness(1.08);
}

.wy-gate-info {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.wy-gate-logo {
  width: min(70%, 300px);
  height: auto;
  filter: drop-shadow(0 6px 18px #000000cc);
}

.wy-gate-sub {
  color: #f3eee0;
  font: 700 clamp(14px, 1.3vw, 17px) / 1.3 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  text-shadow: 0 1px 3px #000;
}

.wy-gate-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid #ffffff33;
  border-radius: 3px;
  background: #0b171cb3;
  color: #dfe8e6;
  font: 600 12px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  backdrop-filter: blur(6px);
}

.wy-gate-chip b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7fd18f;
  box-shadow: 0 0 0 3px #7fd18f33;
}

.wy-gate-chip em {
  font-style: normal;
  color: #f4c879;
  font-variant-numeric: tabular-nums;
}

.wy-gate-cta {
  margin-top: 6px;
  padding: 12px 28px;
  border-radius: 3px;
  font: 700 15px/1 -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  transition: transform 0.25s ease;
}

.wy-gate-half:hover .wy-gate-cta {
  transform: translateY(-2px);
}

.wy-gate-l2 .wy-gate-cta {
  background: linear-gradient(180deg, #fbdc9f 0%, #f4c879 48%, #e5ad55 100%);
  color: #1b2f33;
  box-shadow: inset 0 1px 0 #ffffffb3, 0 10px 24px -10px #f4c879a6;
}

.wy-gate-wow .wy-gate-cta {
  background: linear-gradient(180deg, #d6f0ff 0%, #9fd8ff 48%, #5fa8d8 100%);
  color: #0b1726;
  box-shadow: inset 0 1px 0 #ffffffb3, 0 10px 24px -10px #9fd8ffa6;
}

@media (max-width: 760px) {
  .wy-gate {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 1fr;
  }

  .wy-gate h2 {
    top: 10px;
    font-size: 24px;
  }

  .wy-gate-half {
    padding-bottom: 20px;
  }

  .wy-gate-l2 {
    box-shadow: inset 0 -1px 0 #f4c87999;
  }

  .wy-gate-art {
    height: 92%;
    left: 72%;
    opacity: 0.85;
  }

  .wy-gate-logo {
    width: min(56%, 220px);
  }

  .wy-gate-hint {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wy-gate,
  .wy-gate-half,
  .wy-gate-art,
  .wy-gate-preview iframe {
    animation: none;
    transition: none;
  }
}
/* Profession and similar art cards in the light theme: a light wash under the text, not a dark one. */
html[data-site-theme='light'] .profession-card::after {
  background: linear-gradient(90deg, rgba(251, 245, 233, 0.96) 10%, rgba(251, 245, 233, 0.6) 55%, rgba(251, 245, 233, 0)) !important;
}
/* Picking a side: it opens over the other one, the page behind comes into focus. */
.wy-gate {
  transition: opacity 0.4s ease, grid-template-columns 0.65s cubic-bezier(0.7, 0, 0.2, 1), grid-template-rows 0.65s cubic-bezier(0.7, 0, 0.2, 1);
}

.wy-gate.pick-l2 {
  grid-template-columns: 1fr 0fr;
}

.wy-gate.pick-wow {
  grid-template-columns: 0fr 1fr;
}

.wy-gate:is(.pick-l2, .pick-wow) :is(h2, .wy-gate-hint) {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.wy-gate.pick-l2 .wy-gate-l2 .wy-gate-preview iframe,
.wy-gate.pick-wow .wy-gate-wow .wy-gate-preview iframe {
  filter: none;
}

.wy-gate:is(.pick-l2, .pick-wow) .wy-gate-half {
  min-width: 0;
}

.wy-gate:is(.pick-l2, .pick-wow) :is(.wy-gate-info, .wy-gate-art) {
  opacity: 0;
  transition: opacity 0.3s ease;
}

@media (max-width: 760px) {
  .wy-gate.pick-l2 {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr 0fr;
  }

  .wy-gate.pick-wow {
    grid-template-columns: 1fr;
    grid-template-rows: 0fr 1fr;
  }
}
/* Gate title: plain gold with a shadow (a clipped gradient can fail and show a block). */
.wy-gate h2 {
  background: none !important;
  color: #f4c879 !important;
  -webkit-text-fill-color: #f4c879 !important;
  filter: none !important;
  text-shadow: 0 3px 0 #061b25, 0 10px 28px #000000e6, 0 0 30px #f4c87940 !important;
}

/* Gate halves: each world's own art as the background (no page previews). */
.wy-gate-preview {
  background: center / cover no-repeat;
  filter: blur(1.5px) saturate(1.15) brightness(0.62);
  transform: scale(1.04);
  transition: filter 0.5s ease, transform 0.8s ease;
}

.wy-gate-half:hover .wy-gate-preview,
.wy-gate-half:focus-visible .wy-gate-preview,
.wy-gate.pick-l2 .wy-gate-l2 .wy-gate-preview,
.wy-gate.pick-wow .wy-gate-wow .wy-gate-preview {
  filter: blur(0) saturate(1.2) brightness(0.82);
  transform: scale(1.08);
}
/* Gate, take 3: brighter worlds, heroes standing on the bottom edge. */
.wy-gate-preview {
  filter: saturate(1.2) brightness(0.92) !important;
}

.wy-gate-half:hover .wy-gate-preview,
.wy-gate-half:focus-visible .wy-gate-preview {
  filter: saturate(1.25) brightness(1.05) !important;
}

.wy-gate-half::after {
  background: linear-gradient(180deg, #07121a40 0%, transparent 22%, transparent 55%, #07121acc 92%) !important;
}

.wy-gate-art {
  height: min(80vh, 840px) !important;
  bottom: -9vh !important;
}

.wy-gate-info {
  position: relative;
  z-index: 1;
}

@media (max-width: 760px) {
  .wy-gate-art {
    height: 88% !important;
    bottom: -6% !important;
  }
}
/* Gate, take 4: a visible seam, and the chosen world opens sideways, pushing the other away. */
.wy-gate {
  display: flex !important;
}

.wy-gate-half {
  flex: 1 1 50%;
  min-width: 0;
  transition: flex-basis 0.8s cubic-bezier(0.7, 0, 0.2, 1), flex-grow 0.8s cubic-bezier(0.7, 0, 0.2, 1), transform 0.8s cubic-bezier(0.7, 0, 0.2, 1) !important;
}

.wy-gate.pick-l2 .wy-gate-l2,
.wy-gate.pick-wow .wy-gate-wow {
  flex: 1 0 100%;
}

.wy-gate.pick-l2 .wy-gate-wow {
  flex: 0 0 0%;
  transform: translateX(30%);
}

.wy-gate.pick-wow .wy-gate-l2 {
  flex: 0 0 0%;
  transform: translateX(-30%);
}

/* The seam: gold on the Lineage side, ice on the Warcraft side, glowing. */
.wy-gate-seam {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: 3px;
  pointer-events: none;
}

.wy-gate-l2 .wy-gate-seam {
  right: 0;
  background: linear-gradient(180deg, transparent, #ffe2a0 18%, #f4c879 50%, #ffe2a0 82%, transparent);
  box-shadow: -6px 0 18px #f4c87999, -2px 0 4px #f4c879;
}

.wy-gate-wow .wy-gate-seam {
  left: 0;
  background: linear-gradient(180deg, transparent, #d6f0ff 18%, #9fd8ff 50%, #d6f0ff 82%, transparent);
  box-shadow: 6px 0 18px #9fd8ff99, 2px 0 4px #9fd8ff;
}

.wy-gate.pick-l2 .wy-gate-l2 .wy-gate-seam,
.wy-gate.pick-wow .wy-gate-wow .wy-gate-seam {
  opacity: 0;
  transition: opacity 0.4s ease 0.4s;
}

@media (max-width: 760px) {
  .wy-gate {
    flex-direction: column;
  }

  .wy-gate.pick-l2 .wy-gate-wow {
    transform: translateY(30%);
  }

  .wy-gate.pick-wow .wy-gate-l2 {
    transform: translateY(-30%);
  }

  .wy-gate-l2 .wy-gate-seam,
  .wy-gate-wow .wy-gate-seam {
    top: auto;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 3px;
  }

  .wy-gate-l2 .wy-gate-seam {
    bottom: 0;
    background: linear-gradient(90deg, transparent, #f4c879 50%, transparent);
    box-shadow: 0 -6px 18px #f4c87999;
  }

  .wy-gate-wow .wy-gate-seam {
    top: 0;
    background: linear-gradient(90deg, transparent, #9fd8ff 50%, transparent);
    box-shadow: 0 6px 18px #9fd8ff99;
  }
}
/* Gate, take 5: the elf for Lineage 2, the Lich King turned to the seam and lower. */
.wy-gate-wow .wy-gate-art {
  scale: -1 1;
  bottom: -15vh !important;
}

.wy-gate-wow:hover .wy-gate-art {
  scale: -1.02 1.02;
}

.wy-gate-l2 .wy-gate-art {
  height: min(78vh, 820px) !important;
  bottom: -4vh !important;
}

/* Weather layers. */
.wy-weather {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

@keyframes wy-leaf {
  0% { transform: translate3d(-12vw, 0, 0) rotate(0deg) scale(var(--s)); opacity: 0; }
  10% { opacity: 0.95; }
  50% { transform: translate3d(22vw, 6vh, 0) rotate(calc(220deg + var(--h))) scale(var(--s)); }
  90% { opacity: 0.9; }
  100% { transform: translate3d(56vw, 18vh, 0) rotate(calc(480deg + var(--h))) scale(var(--s)); opacity: 0; }
}

.wy-leaves i {
  position: absolute;
  left: 0;
  width: 22px;
  height: 22px;
  background: linear-gradient(135deg, #f2a23a, #c4541e);
  -webkit-mask: url('/template/wellyssar/images/seasonal/maple-leaf.svg') center / contain no-repeat;
  mask: url('/template/wellyssar/images/seasonal/maple-leaf.svg') center / contain no-repeat;
  filter: drop-shadow(0 2px 2px #00000059);
  animation: wy-leaf var(--d) linear var(--w) infinite;
}

.wy-leaves i:nth-child(3n) {
  background: linear-gradient(135deg, #e8c25a, #b0731c);
}

.wy-leaves i:nth-child(4n) {
  background: linear-gradient(135deg, #d9683a, #8f2f1f);
}

/* A soft gust over the meadow. */
.wy-gate-l2 .wy-leaves::before {
  content: '';
  position: absolute;
  inset: 20% -20%;
  background: linear-gradient(100deg, transparent 30%, #ffffff14 48%, transparent 66%);
  animation: wy-gust 9s ease-in-out infinite;
}

@keyframes wy-gust {
  0%, 100% { transform: translateX(-30%); opacity: 0; }
  50% { transform: translateX(30%); opacity: 1; }
}

@keyframes wy-flake {
  from { transform: translate3d(0, -6vh, 0) scale(var(--s)); }
  to { transform: translate3d(var(--x), 106vh, 0) scale(var(--s)); }
}

.wy-snow i {
  position: absolute;
  top: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffffff 0%, #e6f6ff 45%, transparent 70%);
  box-shadow: 0 0 6px #cfeeff;
  animation: wy-flake var(--d) linear var(--w) infinite;
}

/* Frost: icy light creeping in from the edges, mist at the feet. */
.wy-gate-wow .wy-snow::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 70% at 100% 0%, #bfe8ff40, transparent 55%),
    radial-gradient(90% 60% at 100% 100%, #9fd8ff33, transparent 60%),
    linear-gradient(0deg, #d6f0ff38, transparent 26%);
  box-shadow: inset -40px 0 80px -40px #cfeeff80, inset 0 40px 80px -50px #cfeeff66;
}

.wy-gate-wow .wy-snow::after {
  content: '';
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -4%;
  height: 34%;
  background: url('/template/wellyssar/images/frozenfrog/fog-clouds.svg') center bottom / cover no-repeat;
  opacity: 0.55;
  animation: wy-gust 16s ease-in-out infinite;
}
.wy-gate-wow .wy-gate-art {
  bottom: -8vh !important;
}

.wy-gate-wow .wy-snow::after {
  opacity: 0.32;
  height: 24%;
}

/* The elf archer: the picture has empty space on top, so it is larger and lower. */
.wy-gate-l2 .wy-gate-art {
  height: min(96vh, 1000px) !important;
  bottom: -9vh !important;
}

@media (max-width: 760px) {
  .wy-gate-l2 .wy-gate-art {
    height: 108% !important;
    bottom: -10% !important;
  }
}

/* The Lich King's picture has ~13% empty space under his boots: compensate exactly. */
.wy-gate-wow .wy-gate-art {
  height: min(82vh, 860px) !important;
  bottom: calc(min(82vh, 860px) * -0.125) !important;
}

/* Ground under him: a soft drift of snow and shadow. */
.wy-gate-wow .wy-gate-preview::after {
  content: '';
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: -2%;
  height: 14%;
  background: radial-gradient(50% 60% at 50% 70%, #e9f7ff99 0%, #bfe3f640 45%, transparent 75%);
  filter: blur(8px);
}

/* Softer cold: wide glows without hard edges, blurred mist. */
.wy-gate-wow .wy-snow::before {
  background:
    radial-gradient(140% 90% at 105% -5%, #bfe8ff33, transparent 60%),
    radial-gradient(120% 80% at 105% 105%, #9fd8ff26, transparent 65%),
    linear-gradient(0deg, #d6f0ff2e, transparent 30%) !important;
  box-shadow: none !important;
  filter: blur(6px);
}

.wy-gate-wow .wy-snow::after {
  filter: blur(10px);
  opacity: 0.28 !important;
}

.wy-snow i {
  filter: blur(0.4px);
}
/* The Lich King larger, his boots below the edge: he rises out of the frame. */
.wy-gate-wow .wy-gate-art {
  height: min(118vh, 1240px) !important;
  bottom: calc(min(118vh, 1240px) * -0.3) !important;
}

@media (max-width: 760px) {
  .wy-gate-wow .wy-gate-art {
    height: 140% !important;
    bottom: -42% !important;
  }
}

/* Desktop: the Lich King even larger. */
@media (min-width: 761px) {
  .wy-gate-wow .wy-gate-art {
    height: min(138vh, 1440px) !important;
    bottom: calc(min(138vh, 1440px) * -0.34) !important;
  }
}

/* Phone: each half is a row — the hero on the right, the logo and button on the left. */
@media (max-width: 760px) {
  .wy-gate-half {
    justify-items: start !important;
    align-content: center !important;
    padding: 44px 16px 16px !important;
  }

  .wy-gate-wow {
    padding-top: 16px !important;
  }

  .wy-gate-info {
    justify-items: start !important;
    max-width: 58%;
    text-align: left;
  }

  .wy-gate-logo {
    width: 100% !important;
    max-width: 210px;
  }

  .wy-gate-sub {
    font-size: 13px !important;
  }

  .wy-gate-cta {
    padding: 10px 18px !important;
    font-size: 14px !important;
  }

  .wy-gate-art {
    left: auto !important;
    right: -6% !important;
    translate: 0 0 !important;
  }

  .wy-gate-l2 .wy-gate-art {
    height: 128% !important;
    bottom: -22% !important;
  }

  .wy-gate-wow .wy-gate-art {
    height: 150% !important;
    bottom: -48% !important;
    right: -14% !important;
  }

  .wy-gate-half::after {
    background: linear-gradient(90deg, #07121acc 0%, #07121a80 48%, transparent 75%) !important;
  }
}
/* One seam between the worlds: a fine glowing thread, gold into ice, with an emblem. */
.wy-gate-seam {
  display: none !important;
}

.wy-gate-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 4;
  width: 64px;
  translate: -50% 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

/* Soft halo, wide and borderless. */
.wy-gate-divider::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, #f4c87926 30%, #fff6e080 49%, #e6f6ff80 51%, #9fd8ff26 70%, transparent 100%);
  -webkit-mask: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  mask: linear-gradient(180deg, transparent, #000 12%, #000 88%, transparent);
  filter: blur(4px);
}

/* The thread itself. */
.wy-gate-divider::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  translate: -50% 0;
  background: linear-gradient(90deg, #ffd88a, #d6f0ff);
  -webkit-mask: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  mask: linear-gradient(180deg, transparent, #000 8%, #000 92%, transparent);
  box-shadow: 0 0 8px #fff3d6, 0 0 2px #ffffff;
}

/* The emblem in the middle. */
.wy-gate-divider i {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 16px;
  height: 16px;
  translate: -50% -50%;
  rotate: 45deg;
  border: 1px solid #ffffffcc;
  background: linear-gradient(135deg, #ffe2a0 0%, #f4c879 45%, #9fd8ff 55%, #d6f0ff 100%);
  box-shadow: 0 0 0 3px #07121a99, 0 0 18px #fff3d6cc;
  animation: wy-emblem 4s ease-in-out infinite;
}

@keyframes wy-emblem {
  0%, 100% { box-shadow: 0 0 0 3px #07121a99, 0 0 14px #f4c879b3; }
  50% { box-shadow: 0 0 0 3px #07121a99, 0 0 22px #9fd8ffcc; }
}

.wy-gate:is(.pick-l2, .pick-wow) .wy-gate-divider {
  opacity: 0;
}

@media (max-width: 760px) {
  .wy-gate-divider {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 64px;
    translate: 0 -50%;
  }

  .wy-gate-divider::before {
    background: linear-gradient(180deg, transparent 0%, #f4c87926 30%, #fff6e080 49%, #e6f6ff80 51%, #9fd8ff26 70%, transparent 100%);
    -webkit-mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  }

  .wy-gate-divider::after {
    top: 50%;
    bottom: auto;
    left: 0;
    right: 0;
    width: auto;
    height: 2px;
    translate: 0 -50%;
    background: linear-gradient(180deg, #ffd88a, #d6f0ff);
    -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wy-gate-divider i {
    animation: none;
  }
}
/* Heroes keep their proportions (the template caps images at the block width). */
.wy-gate-art {
  max-width: none !important;
  width: auto !important;
}

/* Divider: only the thread and its own glow, no halo band. */
.wy-gate-divider::before {
  display: none !important;
}

.wy-gate-divider::after {
  box-shadow: none !important;
  filter: drop-shadow(0 0 3px #fff3d6) drop-shadow(0 0 6px #f4c87980);
}

/* Title and hint above the divider thread. */
.wy-gate h2,
.wy-gate-hint {
  z-index: 6 !important;
}

/* No shadows or frames on the halves: a hovered half used to cast a dark band onto the other. */
.wy-gate-half,
.wy-gate-half:hover,
.wy-gate-half:focus-visible {
  box-shadow: none !important;
  border: 0 !important;
  transform: none !important;
}

.wy-gate-half:focus-visible {
  outline: 2px solid #f4c879;
  outline-offset: -4px;
}

/* Leaves, take 2: they fall from above, drift with the wind, sway and turn over. */
.wy-leaves i {
  top: -6%;
  width: 24px;
  height: 24px;
  background: none !important;
  -webkit-mask: none !important;
  mask: none !important;
  filter: none !important;
  animation: wy-leaf-fall var(--d) linear var(--w) infinite !important;
}

.wy-leaves i::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #f2a23a, #c4541e);
  -webkit-mask: url('/template/wellyssar/images/seasonal/maple-leaf.svg') center / contain no-repeat;
  mask: url('/template/wellyssar/images/seasonal/maple-leaf.svg') center / contain no-repeat;
  filter: drop-shadow(0 2px 2px #00000059);
  transform: scale(var(--s));
  animation: wy-leaf-sway var(--sw) ease-in-out var(--w) infinite alternate;
}

.wy-leaves i:nth-child(3n)::before {
  background: linear-gradient(135deg, #e8c25a, #b0731c);
}

.wy-leaves i:nth-child(4n)::before {
  background: linear-gradient(135deg, #d9683a, #8f2f1f);
}

@keyframes wy-leaf-fall {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { transform: translate3d(var(--dx), 112vh, 0); opacity: 0; }
}

@keyframes wy-leaf-sway {
  0% { transform: translateX(-26px) rotate(-35deg) rotateY(0deg) scale(var(--s)); }
  50% { transform: translateX(0) rotate(10deg) rotateY(160deg) scale(var(--s)); }
  100% { transform: translateX(26px) rotate(45deg) rotateY(320deg) scale(var(--s)); }
}

.wy-gate-cta {
  display: none !important;
}
/* The light theme's generic divider fill must not touch the gate's seam zone. */
.wy-gate-divider,
html[data-site-theme='light'] .wy-gate-divider {
  background: none !important;
  border: 0 !important;
}

/* Gate brighter: lighter worlds, a lighter wash only where the text sits. */
.wy-gate-l2 .wy-gate-preview {
  filter: saturate(1.15) brightness(1.08) !important;
}

.wy-gate-wow .wy-gate-preview {
  filter: saturate(1.2) brightness(1.22) !important;
}

.wy-gate-half:hover .wy-gate-preview {
  filter: saturate(1.25) brightness(1.25) !important;
}

.wy-gate-half::after {
  background: linear-gradient(180deg, transparent 0%, transparent 62%, #07121aa6 94%) !important;
}

.wy-gate-wow .wy-gate-art {
  filter: drop-shadow(0 20px 40px #000000b3) brightness(1.12) !important;
}

/* Gate title: gold turning into ice, with rime on the last letters. */
.wy-gate h2 {
  position: absolute;
  background-color: transparent !important;
  background-image: linear-gradient(90deg, #ffe6a8 0%, #f4c879 28%, #e9c98c 46%, #cfe9f5 62%, #a9dcff 80%, #e8f7ff 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  text-shadow: none !important;
  filter: drop-shadow(0 3px 0 #061b25) drop-shadow(0 10px 22px #000000b3) !important;
}

/* Rime: a frosty copy of the text, showing only towards the end. */
.wy-gate h2::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, #ffffff 0 1px, transparent 1.6px),
    radial-gradient(circle at 70% 60%, #ffffff 0 1px, transparent 1.4px),
    radial-gradient(circle at 45% 85%, #e8f7ff 0 0.8px, transparent 1.3px),
    linear-gradient(180deg, #ffffffcc 0%, #ffffff00 45%, #d6f0ff99 100%);
  background-size: 7px 7px, 9px 9px, 5px 5px, 100% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  -webkit-mask: linear-gradient(90deg, transparent 0%, transparent 52%, #000 82%);
  mask: linear-gradient(90deg, transparent 0%, transparent 52%, #000 82%);
  pointer-events: none;
}
/* Gate, take 8: the chosen world slides over and pushes the other one out,
   the camera moves in on its hero, then it all melts into the site. */
.wy-gate:is(.pick-l2, .pick-wow) {
  background: transparent !important;
  transform-origin: 50% 70%;
  transform: scale(1.12);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 1.3s cubic-bezier(0.3, 0.5, 0.3, 1), opacity 0.6s ease, backdrop-filter 0.6s ease, -webkit-backdrop-filter 0.6s ease !important;
}

.wy-gate:is(.pick-l2, .pick-wow) .wy-gate-half {
  transition: flex-grow 0.75s cubic-bezier(0.7, 0, 0.2, 1), flex-basis 0.75s cubic-bezier(0.7, 0, 0.2, 1), transform 0.75s cubic-bezier(0.7, 0, 0.2, 1), filter 0.6s ease !important;
}

.wy-gate.pick-l2 .wy-gate-l2,
.wy-gate.pick-wow .wy-gate-wow {
  flex: 1 0 100% !important;
}

.wy-gate.pick-l2 .wy-gate-wow {
  flex: 0 0 0% !important;
  transform: translateX(40%) !important;
}

.wy-gate.pick-wow .wy-gate-l2 {
  flex: 0 0 0% !important;
  transform: translateX(-40%) !important;
}

@media (max-width: 760px) {
  .wy-gate.pick-l2 .wy-gate-wow {
    transform: translateY(40%) !important;
  }

  .wy-gate.pick-wow .wy-gate-l2 {
    transform: translateY(-40%) !important;
  }
}

.wy-gate:is(.pick-l2, .pick-wow) .wy-gate-art {
  opacity: 1 !important;
  animation: none !important;
}

.wy-gate:is(.pick-l2, .pick-wow) .wy-gate-info {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.wy-gate:is(.pick-l2, .pick-wow) :is(.wy-gate-divider, .wy-gate-seam) {
  opacity: 0 !important;
  transition: opacity 0.25s ease !important;
}

.wy-gate.melt .wy-gate-half {
  filter: blur(6px) brightness(1.1);
}

.wy-gate.melt {
  opacity: 0;
  -webkit-backdrop-filter: blur(0);
  backdrop-filter: blur(0);
}
/* Rime, take 2: an icy rim and a frosted top on the last letters, no specks. */
.wy-gate h2::after {
  background-image: linear-gradient(180deg, #ffffff 0%, #f2fbff 22%, #ffffff00 58%, #ffffff00 78%, #e3f5ff99 100%) !important;
  background-size: 100% 100% !important;
  -webkit-text-stroke: 1px #ffffffb3;
  -webkit-mask: linear-gradient(90deg, transparent 0%, transparent 58%, #000 88%) !important;
  mask: linear-gradient(90deg, transparent 0%, transparent 58%, #000 88%) !important;
  filter: drop-shadow(0 0 5px #bfe8ffb3);
}
/* Light theme: the template's ornament SVGs draw strokes at 6-30% alpha, too faint
   on parchment. Own copies with solid strokes; the layer's opacity sets the strength. */
html[data-site-theme='light'] body::after {
  -webkit-mask-image: url('/ornament-lines.svg');
  mask-image: url('/ornament-lines.svg');
  background-color: #8a5a1c;
  opacity: 0.22;
}

html[data-site-theme='light'] #app::before {
  -webkit-mask-image: url('/ornament-frame.svg');
  mask-image: url('/ornament-frame.svg');
  background-color: #8a5a1c;
  opacity: 0.16;
}

html[data-site-theme='light'] :is(#app > header, footer.new-footer)::after {
  -webkit-mask-image: url('/ornament-frame.svg');
  mask-image: url('/ornament-frame.svg');
  opacity: 0.2;
}
/* The radio row sits above the next block, so the station list is never covered. */
.poster-play-heading,
.ff-radio-band {
  position: relative;
  z-index: 6;
}

/* Warcraft radio: as compact as on the Lineage page. */
.ff-radio-band {
  padding-top: clamp(16px, 2.4vw, 28px) !important;
  padding-bottom: clamp(16px, 2.4vw, 28px) !important;
  min-height: 0 !important;
}

.ff-radio-band .radio-panel {
  padding: 12px 16px !important;
  gap: 8px 14px !important;
}

.ff-radio-band .radio-panel :is(h3, h4, .radio-title, [class*='headline']) {
  font-size: 18px !important;
  line-height: 1.2 !important;
  margin: 0 !important;
}

.ff-radio-band .radio-panel p {
  margin: 0 !important;
}

/* Station search: one plain field, no dark strip and no second frame. */
html[data-site-theme='light'] .radio-search {
  background: #fff8e9 !important;
  border: 1px solid #c9b48c !important;
  border-radius: 3px;
  color: #5b4520;
}

html[data-site-theme='light'] .radio-search input {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  outline: none !important;
  color: #2a2116 !important;
}

html[data-site-theme='light'] .radio-search:focus-within {
  border-color: #b97a17 !important;
  box-shadow: 0 0 0 2px #f4c87966 !important;
}
/* Light theme: the template's section lines (--ambient-lines) in a darker ink copy. */
html[data-site-theme='light'] body {
  --ambient-lines: url('/ornament-lines-ink.svg') !important;
}

/* The fine diagonal hatch from the home hero, now under every page. */
html::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M0 0L8 8M-4 0L4 8M4 0L12 8' stroke='%230c2024' stroke-width='.6'/%3E%3C/svg%3E");
  opacity: 0.09;
}

html[data-site-theme='dark']::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8'%3E%3Cpath d='M0 0L8 8M-4 0L4 8M4 0L12 8' stroke='%23cfe3e8' stroke-width='.6'/%3E%3C/svg%3E");
  opacity: 0.05;
}
/* "Start" page steps: no little figures beside each step, the text takes the row. */
.howto-step > .image {
  display: none !important;
}

.howto-step > .description {
  flex: 1 1 auto;
  max-width: none;
}
/* Light theme, text on a panel that stays dark: light ink. */
html[data-site-theme='light'] .wy-ink-light {
  color: #f3ead7 !important;
  text-shadow: 0 1px 2px #00000066 !important;
}

html[data-site-theme='light'] .wy-ink-gold-light {
  color: #f4c879 !important;
  text-shadow: 0 1px 2px #00000066 !important;
}
/* Radio row, tighter: less air around it and inside the player (both worlds). */
.poster-play-section {
  padding-top: clamp(24px, 3vw, 40px) !important;
}

.poster-play-heading {
  padding-top: 8px !important;
  padding-bottom: 8px !important;
  margin-bottom: clamp(20px, 2.5vw, 32px) !important;
}

:is(.poster-heading-radio, .ff-radio-band) .radio-panel {
  padding: 0 !important;
}

:is(.poster-heading-radio, .ff-radio-band) .radio-main {
  padding: 12px 16px !important;
  gap: 8px 14px !important;
}

:is(.poster-heading-radio, .ff-radio-band) .radio-playback {
  gap: 12px !important;
}

:is(.poster-heading-radio, .ff-radio-band) .radio-track :is(strong, h3, h4, [class*='title']) {
  font-size: 18px !important;
  line-height: 1.2 !important;
}

:is(.poster-heading-radio, .ff-radio-band) .radio-brand img {
  max-height: 40px;
  width: auto;
}

/* Light theme: pale icons and the station chevron get real ink. */
html[data-site-theme='light'] .radio-station-toggle svg {
  color: #3b4f4e !important;
  stroke: currentColor;
}

html[data-site-theme='light'] main svg.icon {
  color: #8a5a1c !important;
}

/* Fix classes must beat the template's own link colours. */
html[data-site-theme='light'] body .wy-ink-light.wy-ink-light {
  color: #f3ead7 !important;
}

html[data-site-theme='light'] body .wy-ink-gold-light.wy-ink-gold-light {
  color: #f4c879 !important;
}

html[data-site-theme='light'] body .wy-ink.wy-ink {
  color: #2c4245 !important;
}

html[data-site-theme='light'] body .wy-ink-gold.wy-ink-gold {
  color: #7a4d14 !important;
}
/* Server status: "Работает" sits on the line of the server name. */
.poster-live-server .realm-status {
  grid-row: 2;
  grid-column: 2;
  align-self: center !important;
  margin: 0 !important;
}
/* Players' rating on the home hero, after the social icons. */
.poster-hero-socials {
  align-items: center;
  flex-wrap: wrap;
}

.wy-rating {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  margin-left: 8px;
  padding: 7px 12px !important;
  border: 1px solid #f4c87966 !important;
  border-radius: 3px;
  background: #0b1d22b3 !important;
  color: #efe9d7 !important;
  font-size: 14px;
  text-decoration: none !important;
  white-space: nowrap;
  width: auto !important;
  height: auto !important;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.wy-rating:hover,
.wy-rating:focus-visible {
  border-color: #f4c879 !important;
  background: #0b1d22e6 !important;
}

.wy-rating-stars {
  display: inline-flex;
  gap: 2px;
}

.wy-rating-stars i {
  width: 15px;
  height: 15px;
  background: #ffffff40;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.75l-6.17 3.24 1.18-6.87-5-4.86 6.9-1 3.09-6.26 3.09 6.26 6.9 1-5 4.86 1.18 6.87z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.75l-6.17 3.24 1.18-6.87-5-4.86 6.9-1 3.09-6.26 3.09 6.26 6.9 1-5 4.86 1.18 6.87z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.wy-rating-stars i.on {
  background: #f4c879;
}

.wy-rating-text b {
  color: #ffe2a0;
  font-size: 16px;
}
html body .poster-hero-socials a.wy-rating {
  color: #efe9d7 !important;
}

/* Light theme: a light card with dark ink, like the cabinet. */
html[data-site-theme='light'] body .poster-hero-socials a.wy-rating {
  background: #fff8e9e6 !important;
  border-color: #c9a35c !important;
  color: #2a2116 !important;
  box-shadow: 0 2px 8px #3b2a1022;
}

html[data-site-theme='light'] .wy-rating-stars i {
  background: #2a211633;
}

html[data-site-theme='light'] .wy-rating-stars i.on {
  background: #d39422;
}

html[data-site-theme='light'] .wy-rating-text b {
  color: #7a4d14;
}
/* Phones: the template hides the social row; keep it for the rating (icons too, they fit). */
@media (max-width: 640px) {
  :is(.poster-home, .loading-site) .poster-hero-socials {
    display: flex !important;
    margin-top: 18px;
    gap: 12px;
  }

  .wy-rating {
    margin-left: 0;
  }
}
/* Public-site audit (rendered, 18.11). */
/* Cookie banner: dark ink on the gold button, soft edges instead of thick black frames. */
.cookie-dialog .cookie-choice {
  border-width: 1px !important;
  border-color: #8a5a1c66 !important;
  box-shadow: 0 2px 8px #3b2a1022 !important;
}

.cookie-dialog .cookie-choice.cookie-choice-primary,
.cookie-dialog .cookie-choice.cookie-save {
  color: #1b343b !important;
}

/* Language and account menus: dark ink on the light menu. */
html[data-site-theme='light'] :is(.dropdown-menu, .dropdown-menu a, .dropdown-item, .dropdown-item span) {
  color: #2c4245 !important;
}

html[data-site-theme='light'] :is(.dropdown-item:hover, .dropdown-item:focus-visible, .dropdown-item.active) span {
  color: #7a4d14 !important;
}

/* Download window close button. */
html[data-site-theme='light'] .uc-close {
  color: #2c4245 !important;
}

/* Enchant simulator: the "+N" on the grey slot stays light. */
html[data-site-theme='light'] body .enchant-slot strong,
html[data-site-theme='light'] body .enchant-slot .wy-ink-gold.wy-ink-gold {
  color: #fff3d6 !important;
  text-shadow: 0 1px 2px #000000a6 !important;
}
/* World gate, smoother ending. */
html {
  scrollbar-gutter: stable; /* the scrollbar coming back never shifts the page */
}

.wy-gate.melt {
  transition: opacity 0.9s cubic-bezier(0.4, 0, 0.2, 1), backdrop-filter 0.9s ease, -webkit-backdrop-filter 0.9s ease,
    transform 1.3s cubic-bezier(0.3, 0.5, 0.3, 1) !important;
}

/* Warcraft: the gate fades into the dark... */
.wy-gate.leave {
  filter: brightness(0.06) blur(2px);
  transition: filter 0.55s ease-in, transform 1.3s cubic-bezier(0.3, 0.5, 0.3, 1) !important;
}

/* ...and the Warcraft page comes out of it. */
html.wy-arrive body {
  opacity: 0;
}

html.wy-arrive.wy-arrive-go body {
  opacity: 1;
  transition: opacity 0.9s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  html.wy-arrive body {
    opacity: 1;
  }
}
/* While the gate is open the scrollbar keeps its place (scrolling itself is blocked
   on the gate), so revealing the site never shifts it sideways. */
html.wy-gated {
  overflow-y: scroll !important;
}
/* Light theme: text over the section art. A denser parchment veil under the text,
   darker and bolder copy, and a soft paper halo so busy art never shows through letters. */
html[data-site-theme='light'] .poster-scene :is(p, .poster-intro, li, small, .poster-eyebrow) {
  color: #1d2f33 !important;
  font-weight: 600;
  text-shadow: 0 0 2px rgba(var(--skin-paper-rgb), 0.95), 0 0 10px rgba(var(--skin-paper-rgb), 0.9), 0 0 18px rgba(var(--skin-paper-rgb), 0.7) !important;
}

html[data-site-theme='light'] .poster-hero.poster-scene::before {
  background: linear-gradient(90deg, rgba(var(--skin-paper-rgb), 0.99) 10%, rgba(var(--skin-paper-rgb), 0.94) 40%, rgba(var(--skin-paper-rgb), 0.55) 62%, rgba(var(--skin-paper-rgb), 0) 80%) !important;
}

html[data-site-theme='light'] .poster-market.poster-scene::before {
  background: linear-gradient(90deg, rgba(var(--skin-paper-rgb), 0) 18%, rgba(var(--skin-paper-rgb), 0.55) 40%, rgba(var(--skin-paper-rgb), 0.97) 62%) !important;
}

html[data-site-theme='light'] .poster-community.poster-scene::before {
  background: linear-gradient(90deg, rgba(var(--skin-paper-rgb), 0.99) 22%, rgba(var(--skin-paper-rgb), 0.9) 50%, rgba(var(--skin-paper-rgb), 0.3) 80%, rgba(var(--skin-paper-rgb), 0.1)) !important;
}

/* Tablets and phones: the text sits above the art, so the veil runs top to bottom. */
@media (max-width: 991px) {
  html[data-site-theme='light'] :is(.poster-hero, .poster-market, .poster-community).poster-scene::before {
    background: linear-gradient(180deg, rgba(var(--skin-paper-rgb), 0.98) 0%, rgba(var(--skin-paper-rgb), 0.95) 42%, rgba(var(--skin-paper-rgb), 0.6) 58%, rgba(var(--skin-paper-rgb), 0) 76%) !important;
  }
}

/* Warcraft header: icy blue glass like the footer, nothing golden shining through. */
body.warcraft-page #header,
body.warcraft-page header.warcraft-header {
  background: linear-gradient(180deg, #0b1c28f5 0%, #0a1722eb 100%) !important;
  border-bottom: 1px solid #9fd8ff40 !important;
  box-shadow: inset 0 1px 0 #d6f0ff1f, 0 8px 24px -12px #000000b3 !important;
  backdrop-filter: blur(10px) saturate(1.1);
}

body.warcraft-page #header::after,
body.warcraft-page header.warcraft-header::after {
  background-color: #9fd8ff !important;
  opacity: 0.22 !important;
}