/* Die Legende von SHINVARA – Webseite. Lacquer black, bronze and gold, red title plates, divine light.
   Fonts are served from this site (OFL); nothing is loaded from elsewhere. */

@font-face {
  font-family: "Cinzel";
  src: url("../fonts/Cinzel-Bold.woff2") format("woff2"), url("../fonts/Cinzel-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif";
  src: url("../fonts/NotoSerif-Bold.woff2") format("woff2"), url("../fonts/NotoSerif-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --lack: #0d0807;
  --lack-2: #150d0a;
  --lack-3: #21140f;
  --rot: #8f1d18;
  --rot-hell: #c0332a;
  --rot-tief: #4f0b09;
  --bronze: #8a5a2b;
  --bronze-hell: #b8813f;
  --gold: #d6a84c;
  --gold-hell: #f3d892;
  --gold-weiss: #fff3cf;
  --text: #ece2cf;
  --text-dim: #c1b093;
  --text-faint: #94846a;
  --line: rgba(214, 168, 76, 0.38);
  --line-soft: rgba(214, 168, 76, 0.18);
  --display: "Cinzel", "Trajan Pro", "Times New Roman", serif;
  --strong: "Noto Serif", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --body: "Palatino Linotype", "Book Antiqua", Palatino, "Noto Serif", Georgia, "Times New Roman", serif;
  --wrap: 1240px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gold-grad: linear-gradient(180deg, #fff1c0 0%, #f0cd7a 22%, #c8922f 55%, #8a571c 82%, #5b3610 100%);
  --frame-shadow: 0 0 0 1px rgba(0, 0, 0, 0.8), 0 0 0 5px rgba(13, 8, 7, 0.92), 0 0 0 6px rgba(214, 168, 76, 0.42), 0 24px 60px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 64px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--lack);
  background-image:
    radial-gradient(ellipse at 50% 0%, rgba(143, 29, 24, 0.16), transparent 60%),
    linear-gradient(180deg, var(--lack-2), var(--lack) 40%);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.68;
  overflow-x: hidden;
}
img, video, canvas { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: var(--gold-hell); text-underline-offset: 0.18em; }
a:hover { color: var(--gold-weiss); }
:focus-visible { outline: 2px solid var(--gold-hell); outline-offset: 3px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.2; margin: 0; }
strong { font-family: var(--strong); }
code, kbd { font-family: Consolas, "Courier New", monospace; color: var(--gold-hell); background: rgba(214, 168, 76, 0.1); padding: 0.05em 0.35em; border-radius: 3px; }
kbd { border: 1px solid rgba(214, 168, 76, 0.45); border-bottom-width: 2px; background: linear-gradient(180deg, #2c1b13, #170e0b); color: var(--gold-weiss); font-size: 0.86em; white-space: nowrap; }
::selection { background: rgba(214, 168, 76, 0.35); color: #fff; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #1d0f05; padding: 10px 16px; font-family: var(--strong); text-decoration: none; }
.skip:focus { top: 12px; }

.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(840px, 100% - 32px); }
.center { text-align: center; }

/* ------------------------------------------------------------------ buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; position: relative; overflow: hidden;
  font-family: var(--strong); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  font-size: 0.95rem; text-decoration: none; padding: 0.85em 1.8em; border-radius: 2px;
  transition: transform 0.25s var(--ease), box-shadow 0.3s ease, filter 0.2s ease;
}
.btn-gold {
  color: #2a1404;
  background: var(--gold-grad);
  border: 1px solid #ffefb8;
  box-shadow: 0 0 0 1px #5a360f, 0 6px 22px rgba(0, 0, 0, 0.55), 0 0 24px rgba(243, 200, 110, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.7), inset 0 -2px 0 rgba(90, 50, 10, 0.5);
  text-shadow: 0 1px 0 rgba(255, 240, 200, 0.6);
}
.btn-gold::after { content: ""; position: absolute; inset: 0 auto 0 -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.65), transparent); transform: skewX(-20deg); animation: btn-sheen 5.5s ease-in-out infinite; }
@keyframes btn-sheen { 0%, 70% { left: -60%; } 100% { left: 130%; } }
.btn-gold:hover { color: #1d0d02; filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 0 0 1px #5a360f, 0 0 36px rgba(243, 200, 110, 0.6), 0 10px 28px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.7); }
.btn-ghost { color: var(--gold-hell); border: 1px solid var(--gold); background: rgba(14, 9, 8, 0.5); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.6); backdrop-filter: blur(3px); }
.btn-ghost:hover { background: rgba(143, 29, 24, 0.5); color: var(--gold-weiss); transform: translateY(-2px); }
.btn-large { font-size: 1.06rem; padding: 1em 2.3em; }
.btn-small { font-size: 0.76rem; padding: 0.62em 1.15em; }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; filter: grayscale(0.5); }
.btn[aria-disabled="true"]::after { display: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 1.6em; }
.btn-row.left { justify-content: flex-start; }

/* ------------------------------------------------------------------ header */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: linear-gradient(180deg, rgba(13, 8, 7, 0.94), rgba(13, 8, 7, 0.82));
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.6), 0 8px 30px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  transition: background 0.4s ease, border-color 0.4s ease;
}
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(243, 216, 146, 0.9), transparent); opacity: 0.55; }
body:not(.scrolled-page) .site-header:not(.scrolled) { background: linear-gradient(180deg, rgba(9, 5, 4, 0.78), rgba(9, 5, 4, 0)); border-bottom-color: transparent; box-shadow: none; backdrop-filter: none; }
body:not(.scrolled-page) .site-header:not(.scrolled)::after { opacity: 0; }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; width: min(1400px, 100% - 32px); margin-inline: auto; }
.brand { display: block; width: 132px; flex: none; }
.brand-logo { width: 132px; height: auto; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.8)); }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 0; }
.site-nav a:not(.btn) {
  display: block; padding: 0.55em 0.78em; color: var(--text); text-decoration: none;
  font-family: var(--display); font-size: 0.84rem; letter-spacing: 0.09em; text-transform: uppercase;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9); position: relative; white-space: nowrap;
}
.site-nav a:not(.btn)::after { content: ""; position: absolute; left: 0.78em; right: 0.78em; bottom: 0.2em; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-hell), transparent); transform: scaleX(0); transition: transform 0.3s var(--ease); }
.site-nav a:not(.btn)::before { content: "◆"; position: absolute; left: 50%; bottom: -0.55em; font-size: 0.5rem; color: var(--gold); transform: translateX(-50%) scale(0); transition: transform 0.3s var(--ease); }
.site-nav a:not(.btn):hover::after, .site-nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
.site-nav a[aria-current="page"]:not(.btn)::before { transform: translateX(-50%) scale(1); }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"]:not(.btn) { color: var(--gold-hell); }
.nav-cta { margin-left: 12px; }
.nav-toggle { display: none; }

@media (max-width: 1180px) {
  :root { --header-h: 64px; }
  .brand, .brand-logo { width: 108px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 10px; background: rgba(20, 12, 9, 0.8); color: var(--gold-hell);
    border: 1px solid var(--line); border-radius: 2px; padding: 9px 13px; font-family: var(--display); font-size: 0.85rem; letter-spacing: 0.08em; cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { display: block; width: 20px; height: 2px; background: currentColor; position: relative; transition: transform 0.25s ease, background 0.2s; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-open .nav-toggle-bars { background: transparent; }
  .nav-open .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-open .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }
  .site-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    background: linear-gradient(180deg, rgba(18, 11, 9, 0.98), rgba(12, 7, 6, 0.99));
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  }
  .js .site-nav { display: none; }
  .js .nav-open .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; padding: 10px 16px 18px; gap: 0; }
  .site-nav a:not(.btn) { padding: 0.85em 0.4em; border-bottom: 1px solid rgba(214, 168, 76, 0.14); font-size: 1rem; }
  .site-nav a:not(.btn)::after, .site-nav a:not(.btn)::before { display: none; }
  .nav-cta { margin: 14px 0 0; }
  .nav-cta .btn { width: 100%; font-size: 0.95rem; padding: 0.9em; }
  body:not(.scrolled-page) .site-header:not(.scrolled) { background: rgba(10, 6, 5, 0.62); }
  .site-header.nav-open, body:not(.scrolled-page) .site-header.nav-open { background: rgba(13, 8, 7, 0.97); }
  html:not(.js) .site-header { position: absolute; height: auto; }
  html:not(.js) .site-nav { position: static; }
}

/* ------------------------------------------------------------------ shared: light, motes, ornaments */
.motes { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.godrays { position: absolute; inset: -30% -20% auto; height: 160%; pointer-events: none; z-index: 0; mix-blend-mode: screen; opacity: 0.55;
  background: repeating-conic-gradient(from 0deg at 50% 0%, rgba(255, 226, 160, 0.16) 0deg 3deg, transparent 3deg 11deg, rgba(255, 210, 130, 0.09) 11deg 13deg, transparent 13deg 22deg);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, rgba(0, 0, 0, 0.5) 35%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, rgba(0, 0, 0, 0.5) 35%, transparent 70%);
  animation: rays-turn 60s linear infinite alternate; transform-origin: 50% 0%; }
@keyframes rays-turn { from { transform: rotate(-6deg); } to { transform: rotate(6deg); } }

.divider { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 0 auto; width: min(560px, 80%); color: var(--gold); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, rgba(214, 168, 76, 0.8)); }
.divider::after { background: linear-gradient(90deg, rgba(214, 168, 76, 0.8), transparent); }
.divider span { font-size: 0.85rem; letter-spacing: 0.4em; }

/* Corner ornaments of a gold frame (four small diamonds). */
.ornate { position: relative; }
.ornate::before, .ornate::after { content: ""; position: absolute; width: 18px; height: 18px; z-index: 3; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M0 0h18v2H2v16H0z' fill='%23f3d892'/%3E%3Cpath d='M5 5l3 3-3 3-3-3z' fill='%23d6a84c'/%3E%3C/svg%3E") no-repeat; }
.ornate::before { top: 6px; left: 6px; }
.ornate::after { bottom: 6px; right: 6px; transform: rotate(180deg); }

/* ------------------------------------------------------------------ home hero */
.hero { position: relative; min-height: min(100vh, 1060px); min-height: min(100svh, 1060px); display: grid; place-items: center; overflow: hidden; isolation: isolate; padding: calc(var(--header-h) + 30px) 16px 120px; }
.hero-layers { position: absolute; inset: 0; z-index: -1; }
.hero-layer { position: absolute; will-change: transform; }
.hero-sky { inset: -5%; }
.hero-sky picture, .hero-sky .hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; }
.hero-sky .hero-img { animation: sky-zoom 50s ease-in-out infinite alternate; transform-origin: 70% 35%; }
.hero-clouds { left: -20%; right: -20%; bottom: -10%; }
.hero-clouds .hero-img { width: 100%; opacity: 0.85; animation: cloud-drift 70s ease-in-out infinite alternate; }
.hero-shade { position: absolute; inset: 0; background:
  radial-gradient(ellipse at 50% 45%, rgba(9, 5, 4, 0.05) 10%, rgba(9, 5, 4, 0.5) 80%),
  linear-gradient(180deg, rgba(9, 5, 4, 0.4) 0%, rgba(9, 5, 4, 0) 20%, rgba(9, 5, 4, 0) 62%, var(--lack) 100%); }
@keyframes sky-zoom { from { transform: scale(1); } to { transform: scale(1.08) translateY(-1.5%); } }
@keyframes cloud-drift { from { transform: translateX(-3%); } to { transform: translateX(3%); } }

.hero-content { text-align: center; max-width: 860px; position: relative; z-index: 2; }
.hero-logo { margin: 0 auto; width: min(660px, 88vw); position: relative; }
.hero-logo::before { content: ""; position: absolute; inset: 8% 4%; z-index: -1; background: radial-gradient(ellipse at 50% 50%, rgba(255, 214, 140, 0.35), transparent 65%); filter: blur(18px); animation: halo 6s ease-in-out infinite alternate; }
@keyframes halo { from { opacity: 0.6; transform: scale(0.96); } to { opacity: 1; transform: scale(1.04); } }
.hero-logo-img { width: 100%; filter: drop-shadow(0 0 34px rgba(255, 196, 92, 0.3)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.85)); animation: rise-in 1.8s var(--ease) both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px) scale(0.97); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
.hero-claim { font-family: var(--display); font-size: clamp(1.15rem, 2.7vw, 1.7rem); letter-spacing: 0.07em; margin: 0.45em 0 0.5em; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.95), 0 0 2px rgba(0, 0, 0, 0.9); animation: rise-in 1.8s 0.35s var(--ease) both; }
.hero-claim span { color: var(--gold-hell); }
.hero-sub { max-width: 620px; margin: 0 auto 1.6em; color: #e9dcc4; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95); animation: rise-in 1.8s 0.5s var(--ease) both; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; animation: rise-in 1.8s 0.7s var(--ease) both; }
.hero-note { margin-top: 1.5em; font-size: 0.86rem; color: var(--text-dim); letter-spacing: 0.16em; text-transform: uppercase; font-family: var(--display); text-shadow: 0 1px 6px #000; }
.hero-scroll { position: absolute; bottom: 30px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(243, 216, 146, 0.7); border-radius: 14px; z-index: 3; }
.hero-scroll::after { content: ""; position: absolute; left: 50%; top: 8px; width: 4px; height: 9px; margin-left: -2px; background: var(--gold-hell); border-radius: 2px; animation: scroll-dot 2.2s ease-in-out infinite; }
@keyframes scroll-dot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }

/* ------------------------------------------------------------------ inner page hero */
.page-hero { position: relative; min-height: clamp(380px, 62vh, 640px); display: grid; place-items: end center; padding: calc(var(--header-h) + 50px) 16px clamp(48px, 7vw, 80px); text-align: center; isolation: isolate; overflow: hidden; }
.page-hero .section-bg::after { background:
  radial-gradient(ellipse at 50% 70%, rgba(9, 5, 4, 0.1), rgba(9, 5, 4, 0.55) 80%),
  linear-gradient(180deg, rgba(9, 5, 4, 0.55) 0%, rgba(9, 5, 4, 0.15) 40%, rgba(13, 8, 7, 0.6) 75%, var(--lack) 100%); }
.page-hero .section-bg img { animation: sky-zoom 44s ease-in-out infinite alternate; }
.page-hero-inner { position: relative; z-index: 2; max-width: 860px; }
.page-hero h1.plate { font-size: clamp(1.7rem, 4.6vw, 3rem); }
.page-hero .eyebrow { text-shadow: 0 1px 8px #000; }
.page-hero .hero-lead { margin: 1.3em auto 0; max-width: 680px; font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: #efe3cc; text-shadow: 0 1px 10px rgba(0, 0, 0, 0.95); }
.page-hero.short { min-height: clamp(300px, 46vh, 480px); }

/* Jump links under the page hero, sticky under the header. */
.subnav { position: sticky; top: var(--header-h); z-index: 40; background: linear-gradient(180deg, rgba(20, 12, 9, 0.96), rgba(13, 8, 7, 0.94)); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.subnav ul { list-style: none; margin: 0 auto; padding: 0 12px; display: flex; justify-content: center; gap: 4px; overflow-x: auto; scrollbar-width: none; width: min(var(--wrap), 100%); }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 0.95em 1em; font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; transition: color 0.2s, border-color 0.3s; }
.subnav a:hover, .subnav a.active { color: var(--gold-hell); border-bottom-color: var(--gold); }
@media (max-width: 700px) { .subnav ul { justify-content: flex-start; } .subnav a { padding: 0.85em 0.8em; font-size: 0.74rem; } }

/* ------------------------------------------------------------------ sections */
.section { position: relative; padding: clamp(70px, 9vw, 130px) 0; isolation: isolate; }
.section + .section::before, .sep::before {
  content: ""; position: absolute; top: 0; left: 50%; width: min(620px, 82vw); height: 16px; transform: translate(-50%, -50%); z-index: 2;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 16'%3E%3Cpath d='M20 0 28 8 20 16 12 8Z' fill='%23d6a84c'/%3E%3Cpath d='M20 3.5 24.5 8 20 12.5 15.5 8Z' fill='%238f1d18'/%3E%3Cpath d='M6 8 9 5 12 8 9 11Z M28 8 31 5 34 8 31 11Z' fill='%23b8813f'/%3E%3C/svg%3E") center / 40px 16px no-repeat,
    linear-gradient(90deg, transparent, rgba(214, 168, 76, 0.8) 28%, rgba(214, 168, 76, 0.8) 72%, transparent) center / 100% 1px no-repeat;
}
.section-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.section-bg picture, .section-bg .bg-img { width: 100%; height: 100%; object-fit: cover; }
.section-bg::after { content: ""; position: absolute; inset: 0; }
.section-head { text-align: center; max-width: 860px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-lead { color: var(--text-dim); font-size: 1.1rem; margin-top: 1.3em; }
.eyebrow { font-family: var(--display); color: var(--gold); letter-spacing: 0.34em; text-transform: uppercase; font-size: 0.8rem; margin: 0 0 0.9em; }
.eyebrow::before, .eyebrow::after { content: "◆"; font-size: 0.6em; vertical-align: 0.25em; margin: 0 0.9em; color: var(--rot-hell); }
.lead { font-size: 1.24rem; color: var(--text); margin-top: 1.4em; }
.dim { color: var(--text-dim); }
.section-dark { background: linear-gradient(180deg, var(--lack), var(--lack-2) 50%, var(--lack)); }
.section-glow { background: radial-gradient(ellipse at 50% 0%, rgba(214, 168, 76, 0.1), transparent 60%), var(--lack); }
.section-red { background: radial-gradient(ellipse at 50% 100%, rgba(143, 29, 24, 0.22), transparent 62%), var(--lack); }

/* The red title plate: gold frame, lacquer red, cut corners. */
.plate {
  display: inline-block; position: relative; isolation: isolate;
  padding: 0.5em 2.2em 0.56em; margin: 0;
  font-size: clamp(1.45rem, 3.6vw, 2.4rem); letter-spacing: 0.06em; color: #fff1d0;
  text-shadow: 0 2px 0 #3b0806, 0 0 18px rgba(255, 190, 90, 0.3);
}
.plate::before, .plate::after { content: ""; position: absolute; clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 18px 100%, 0 50%); }
.plate::before { inset: 0; z-index: -2; background: linear-gradient(180deg, #fff0bd, #d9a64a 30%, #8f5d1d 70%, #5b3610 100%); filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.6)) drop-shadow(0 0 16px rgba(243, 200, 110, 0.25)); }
.plate::after { inset: 3px; z-index: -1; background:
  radial-gradient(ellipse at 50% 0%, rgba(255, 150, 110, 0.32), transparent 70%),
  linear-gradient(180deg, #a8261e 0%, #7a1612 48%, #4d0b09 100%);
  box-shadow: inset 0 0 0 1px rgba(40, 4, 3, 0.8); }

.subplate { display: inline-block; font-size: clamp(1.3rem, 2.6vw, 1.7rem); color: var(--gold-hell); padding-bottom: 0.3em; border-bottom: 1px solid var(--line); letter-spacing: 0.06em; }
.gold-title { font-size: clamp(1.6rem, 3.4vw, 2.5rem); letter-spacing: 0.05em; background: linear-gradient(180deg, #fff6d8 10%, #f0cd7a 50%, #b67e28 90%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.8)); }

/* Lacquer panel with a bronze frame. */
.panel, .realm, .class-card, .news, .region, .dungeon, .step, .req, .legal-box, .card, .faq details, .keys, .tile, .quote {
  position: relative; background: linear-gradient(180deg, rgba(36, 21, 15, 0.92), rgba(16, 10, 8, 0.95));
  border: 1px solid rgba(214, 168, 76, 0.42);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.75), inset 0 0 0 4px rgba(214, 168, 76, 0.07), 0 14px 36px rgba(0, 0, 0, 0.45);
}

/* ------------------------------------------------------------------ intro and facts */
.facts { list-style: none; padding: 0; margin: 2.6em 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.facts li { padding: 16px 6px 13px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(214, 168, 76, 0.08), transparent); text-align: center; }
.facts strong { display: block; font-family: var(--display); font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: var(--gold-hell); line-height: 1.1; text-shadow: 0 0 18px rgba(243, 200, 110, 0.35); }
.facts span { font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); font-family: var(--display); }
@media (max-width: 700px) { .facts { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------------------ portals (big link tiles on the start page) */
.portals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.portal { position: relative; display: block; overflow: hidden; aspect-ratio: 3 / 4.2; text-decoration: none; color: var(--text); box-shadow: var(--frame-shadow); isolation: isolate; }
.portal picture, .portal img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.portal img { transition: transform 1.4s var(--ease), filter 0.6s ease; filter: saturate(0.95) brightness(0.9); }
.portal::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(9, 5, 4, 0) 35%, rgba(9, 5, 4, 0.55) 62%, rgba(9, 5, 4, 0.95) 100%); }
.portal-text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 22px 20px 22px; text-align: center; }
.portal-text h3 { font-size: 1.45rem; color: #fff1d0; letter-spacing: 0.05em; text-shadow: 0 2px 10px #000; }
.portal-text p { margin: 0.45em 0 0; color: var(--text-dim); font-size: 0.95rem; text-shadow: 0 1px 6px #000; }
.portal-more { display: inline-block; margin-top: 0.8em; font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-hell); }
.portal-more::after { content: " →"; transition: margin 0.3s; }
.portal:hover img { transform: scale(1.07); filter: saturate(1.1) brightness(1.05); }
.portal:hover .portal-more::after { margin-left: 6px; }
.portal .shine { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(115deg, transparent 35%, rgba(255, 236, 190, 0.22) 50%, transparent 65%); transform: translateX(-120%); transition: transform 1.2s var(--ease); }
.portal:hover .shine { transform: translateX(120%); }
@media (max-width: 1000px) { .portals { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .portals { grid-template-columns: 1fr; } .portal { aspect-ratio: 4 / 3.4; } }

/* ------------------------------------------------------------------ class showcase (start page) */
.showcase { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; }
.showcase a { position: relative; display: block; overflow: hidden; aspect-ratio: 2 / 3.3; box-shadow: var(--frame-shadow); }
.showcase img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; transition: transform 1.2s var(--ease); }
.showcase a:hover img { transform: scale(1.06); }
.showcase span { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 6px 12px; text-align: center; font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.08em; color: #fff1d0; background: linear-gradient(180deg, transparent, rgba(9, 5, 4, 0.92)); }
@media (max-width: 1100px) { .showcase { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 520px) { .showcase { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------------------ feature rows (picture and text side by side) */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4.5vw, 64px); align-items: center; margin: 0 auto clamp(70px, 9vw, 120px); }
.feature:last-child { margin-bottom: 0; }
.feature.reverse { grid-template-columns: 1fr 1.15fr; }
.feature.reverse .feature-pic { order: 2; }
.feature-pic { position: relative; box-shadow: var(--frame-shadow); }
.feature-pic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.feature-pic::before { content: ""; position: absolute; inset: -14% -10%; z-index: -1; background: radial-gradient(ellipse at 50% 50%, rgba(214, 168, 76, 0.18), transparent 65%); filter: blur(10px); }
.feature-text h2, .feature-text h3 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: #fff1d0; letter-spacing: 0.04em; margin-bottom: 0.15em; }
.feature-text .kicker { font-family: var(--display); color: var(--gold); letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.78rem; margin: 0 0 0.7em; }
.feature-text .kicker + h2, .feature-text .kicker + h3 { margin-bottom: 0.55em; }
.feature-text p { color: var(--text-dim); }
.feature-text p strong { color: var(--gold-hell); }
.feature-caption { margin-top: 12px; font-size: 0.82rem; color: var(--text-faint); letter-spacing: 0.06em; text-align: center; }
@media (max-width: 900px) { .feature, .feature.reverse { grid-template-columns: 1fr; } .feature.reverse .feature-pic { order: 0; } }

/* Lists with gold diamonds. */
.list { list-style: none; padding: 0; margin: 0 0 1em; }
.list li { position: relative; padding-left: 1.5em; margin-bottom: 0.55em; color: var(--text-dim); }
.list li::before { content: ""; position: absolute; left: 0.2em; top: 0.62em; width: 7px; height: 7px; transform: rotate(45deg); background: linear-gradient(135deg, var(--gold-hell), var(--bronze)); box-shadow: 0 0 6px rgba(243, 200, 110, 0.5); }
.list li strong { color: var(--gold-hell); }
.list.cols { columns: 2; column-gap: 34px; }
.list.cols li { break-inside: avoid; }
@media (max-width: 640px) { .list.cols { columns: 1; } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0.4em 0 1.2em; padding: 0; list-style: none; }
.chips li { font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-hell); border: 1px solid var(--line); background: rgba(214, 168, 76, 0.07); padding: 0.4em 0.9em; }

/* ------------------------------------------------------------------ realms */
.realms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.realm { padding: 0 0 24px; text-align: center; border-top: 3px solid var(--realm); overflow: hidden; }
.realm-1 { --realm: #c0261d; }
.realm-2 { --realm: #e8b23a; }
.realm-3 { --realm: #3459d0; }
.realm::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, color-mix(in srgb, var(--realm) 26%, transparent), transparent 65%); pointer-events: none; z-index: 1; mix-blend-mode: screen; }
.realm-pic { position: relative; }
.realm-pic img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.realm-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(16, 10, 8, 0.96)); }
.realm-flag { width: 130px; margin: -78px auto 6px; position: relative; z-index: 2; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.7)); transition: transform 0.5s var(--ease); }
.realm:hover .realm-flag { transform: translateY(-5px) rotate(-1.5deg); }
.realm h3 { font-size: 1.75rem; color: #fff1d0; letter-spacing: 0.05em; position: relative; z-index: 2; }
.realm-home { font-family: var(--display); color: var(--gold); font-size: 0.84rem; letter-spacing: 0.1em; margin: 0.4em 0 1em; position: relative; z-index: 2; }
.realm-body { padding: 0 24px; position: relative; z-index: 2; }
.realm-body p { color: var(--text-dim); margin: 0; font-size: 1rem; }
@media (max-width: 960px) { .realms { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; } }

/* Realm in full on welt.html */
.realm-full { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; align-items: stretch; margin-bottom: 34px; border-top: 3px solid var(--realm); }
.realm-full .rf-pic { position: relative; min-height: 360px; }
.realm-full .rf-pic picture, .realm-full .rf-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.realm-full .rf-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 65%, rgba(16, 10, 8, 0.98)); }
.realm-full .rf-text { padding: clamp(24px, 4vw, 44px); position: relative; }
.realm-full .rf-flag { width: 120px; float: right; margin: -10px -6px 10px 16px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.7)); }
.realm-full h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); color: #fff1d0; }
.realm-full .realm-home { text-align: left; }
.realm-full p { color: var(--text-dim); }
.realm-full.reverse { grid-template-columns: 1fr 1.3fr; }
.realm-full.reverse .rf-pic { order: 2; }
.realm-full.reverse .rf-pic::after { background: linear-gradient(270deg, transparent 65%, rgba(16, 10, 8, 0.98)); }
@media (max-width: 860px) { .realm-full, .realm-full.reverse { grid-template-columns: 1fr; } .realm-full.reverse .rf-pic { order: 0; } .realm-full .rf-pic { min-height: 0; aspect-ratio: 3 / 2; } .realm-full .rf-pic::after, .realm-full.reverse .rf-pic::after { background: linear-gradient(180deg, transparent 60%, rgba(16, 10, 8, 0.98)); } }

/* ------------------------------------------------------------------ timeline (the legend) */
.timeline { list-style: none; margin: 0 auto; padding: 0; max-width: 860px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: linear-gradient(180deg, transparent, var(--gold) 8%, var(--gold) 92%, transparent); }
.timeline li { position: relative; width: 50%; padding: 0 44px 40px 0; text-align: right; }
.timeline li:nth-child(even) { margin-left: 50%; padding: 0 0 40px 44px; text-align: left; }
.timeline li::after { content: ""; position: absolute; top: 6px; right: -9px; width: 18px; height: 18px; transform: rotate(45deg); background: linear-gradient(135deg, #fff0bd, #a26c22); box-shadow: 0 0 0 4px var(--lack), 0 0 16px rgba(243, 200, 110, 0.6); }
.timeline li:nth-child(even)::after { right: auto; left: -9px; }
.timeline h3 { font-size: 1.3rem; color: var(--gold-hell); margin-bottom: 0.4em; }
.timeline p { color: var(--text-dim); margin: 0; }
@media (max-width: 700px) { .timeline::before { left: 9px; } .timeline li, .timeline li:nth-child(even) { width: auto; margin-left: 0; padding: 0 0 32px 40px; text-align: left; } .timeline li::after, .timeline li:nth-child(even)::after { left: 0; right: auto; } }

/* ------------------------------------------------------------------ classes page */
.class-block { padding: clamp(70px, 9vw, 120px) 0; position: relative; }
.class-block + .class-block::before { content: ""; position: absolute; top: 0; left: 50%; width: min(620px, 82vw); height: 1px; transform: translateX(-50%); background: linear-gradient(90deg, transparent, rgba(214, 168, 76, 0.7), transparent); }
.class-block::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 50% 35%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 62%); }
.cls-krieger { --accent: #e0632a; }
.cls-schatten { --accent: #2bbd8c; }
.cls-runen { --accent: #9a36d6; }
.cls-mystiker { --accent: #e3b13a; }
.class-head { text-align: center; max-width: 860px; margin: 0 auto 40px; }
.class-head .role { font-family: var(--display); color: var(--gold); letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.8rem; margin: 0.9em 0 0; }
.class-head h2 { font-size: clamp(2.2rem, 6vw, 4rem); letter-spacing: 0.06em; background: linear-gradient(180deg, #fff6d8 15%, #f0cd7a 52%, #a8711f 92%); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 3px 3px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 24px color-mix(in srgb, var(--accent) 40%, transparent)); }
.class-head p.intro { color: var(--text-dim); font-size: 1.1rem; margin-top: 1.1em; }
.class-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(18px, 3vw, 34px); align-items: start; }
.class-portrait { position: sticky; top: calc(var(--header-h) + 64px); margin: 0; box-shadow: var(--frame-shadow); overflow: hidden; }
.class-portrait img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; transition: transform 1.6s var(--ease); }
.class-portrait:hover img { transform: scale(1.04); }
.class-portrait::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 70%, rgba(9, 5, 4, 0.9)); pointer-events: none; }
.class-portrait figcaption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 14px; text-align: center; font-family: var(--display); letter-spacing: 0.1em; color: #fff1d0; font-size: 0.95rem; }
.class-portrait figcaption small { display: block; font-family: var(--body); letter-spacing: 0.02em; color: var(--text-dim); font-size: 0.82rem; margin-top: 2px; }
.class-info { display: flex; flex-direction: column; gap: 18px; }
.class-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 0; }
.class-stats div { padding: 10px 12px; border: 1px solid var(--line-soft); background: rgba(214, 168, 76, 0.05); }
.class-stats dt { font-family: var(--display); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); }
.class-stats dd { margin: 0.15em 0 0; color: var(--text); font-size: 0.95rem; }
.path { padding: 18px 20px 16px; border-left: 3px solid var(--accent); }
.path h3 { font-size: 1.3rem; color: #fff1d0; }
.path .path-role { font-family: var(--display); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin: 0.25em 0 0.6em; }
.path p { color: var(--text-dim); font-size: 0.97rem; margin-bottom: 0.7em; }
.skills { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 14px; }
.skills li { font-size: 0.9rem; color: var(--text-dim); padding: 3px 0 3px 16px; position: relative; }
.skills li::before { content: "◆"; position: absolute; left: 0; top: 4px; font-size: 0.6rem; color: var(--accent); }
.skills li strong { color: var(--gold-hell); font-size: 0.92rem; }
.skills li span { display: block; font-size: 0.84rem; line-height: 1.45; color: var(--text-faint); }
@media (max-width: 1100px) { .class-grid { grid-template-columns: 1fr 1fr; } .class-info { grid-column: 1 / -1; order: 3; } }
@media (max-width: 560px) { .class-grid { gap: 12px; } .skills { grid-template-columns: 1fr; } .class-stats { grid-template-columns: 1fr 1fr; } }

/* ------------------------------------------------------------------ class cards (short, on the start page) */
.classes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.class-card { padding: 22px 22px 18px; }
.class-card h3 { font-size: 1.5rem; color: #fff1d0; margin: 0.2em 0 0.55em; }
.class-role { font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin: 0; }

/* ------------------------------------------------------------------ regions and dungeons */
.regions, .dungeons { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.region, .dungeon { overflow: hidden; display: flex; flex-direction: column; }
.region picture, .dungeon picture { overflow: hidden; border-bottom: 1px solid var(--line); }
.region img, .dungeon img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 1s var(--ease); }
.region:hover img, .dungeon:hover img { transform: scale(1.06); }
.region-text, .dungeon-text { padding: 16px 20px 18px; }
.region h3, .dungeon h3 { font-size: 1.3rem; color: #fff1d0; }
.lvl { font-family: var(--display); color: var(--gold); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0.3em 0 0.55em; }
.region-text p, .dungeon-text p { margin: 0 0 0.5em; color: var(--text-dim); font-size: 0.95rem; }
.region-text p:last-child, .dungeon-text p:last-child { margin-bottom: 0; }
.foes { font-size: 0.86rem !important; color: var(--text-faint) !important; }
.foes strong { color: var(--gold); font-size: 0.82rem; letter-spacing: 0.04em; }
.subhead { text-align: center; max-width: 780px; margin: clamp(60px, 7vw, 90px) auto 34px; }
.subhead p { color: var(--text-dim); margin-top: 1em; }
.shot-note { text-align: center; font-size: 0.8rem; color: var(--text-faint); letter-spacing: 0.08em; margin: 26px 0 0; text-transform: uppercase; font-family: var(--display); }
@media (max-width: 1000px) { .regions, .dungeons { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .regions, .dungeons { grid-template-columns: 1fr; } }

.levelbar { display: grid; grid-template-columns: repeat(10, 1fr); margin: 0 auto 50px; max-width: 980px; border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45); }
.levelbar span { padding: 10px 2px; text-align: center; font-family: var(--display); font-size: 0.74rem; letter-spacing: 0.06em; color: #fff1d0; background: linear-gradient(180deg, var(--c1), var(--c2)); border-right: 1px solid rgba(0, 0, 0, 0.5); text-shadow: 0 1px 3px #000; }
.levelbar span:last-child { border-right: 0; }
@media (max-width: 700px) { .levelbar { grid-template-columns: repeat(5, 1fr); } .levelbar span { font-size: 0.66rem; } }

/* ------------------------------------------------------------------ tiles (small info boxes) */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tiles.two { grid-template-columns: repeat(2, 1fr); }
.tiles.four { grid-template-columns: repeat(4, 1fr); }
.tile { padding: 20px 22px 18px; }
.tile h3, .tile h4 { font-size: 1.15rem; color: var(--gold-hell); margin-bottom: 0.45em; }
.tile p { color: var(--text-dim); font-size: 0.96rem; margin-bottom: 0.6em; }
.tile p:last-child { margin-bottom: 0; }
.tile .big { font-family: var(--display); font-size: 2rem; color: var(--gold-hell); line-height: 1; margin-bottom: 0.2em; text-shadow: 0 0 16px rgba(243, 200, 110, 0.35); }
@media (max-width: 1000px) { .tiles, .tiles.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tiles, .tiles.two, .tiles.four { grid-template-columns: 1fr; } }

/* The +0 to +9 ladder. */
.upgrade-steps { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 1.2em 0 0.5em; }
.upgrade-steps span { text-align: center; padding: 8px 0; font-family: var(--display); font-size: 0.82rem; color: #fff1d0; border: 1px solid rgba(214, 168, 76, 0.3); background: linear-gradient(180deg, #2a1a12, #140c09); }
.upgrade-steps span:nth-child(n+5) { background: linear-gradient(180deg, #4a3016, #24150b); }
.upgrade-steps span:nth-child(n+8) { background: linear-gradient(180deg, #8a5a1c, #3e2508); box-shadow: 0 0 12px rgba(243, 200, 110, 0.35); }
.upgrade-steps span:last-child { background: linear-gradient(180deg, #f3d892, #a8711f); color: #2a1404; box-shadow: 0 0 22px rgba(255, 220, 140, 0.7); text-shadow: none; }

/* ------------------------------------------------------------------ outlook (things that come later) */
.outlook { padding: 22px 26px; border: 1px dashed rgba(214, 168, 76, 0.5); background: rgba(214, 168, 76, 0.04); }
.outlook h3 { font-size: 1.15rem; color: var(--gold-hell); margin-bottom: 0.4em; }
.outlook p { color: var(--text-dim); margin: 0; }
.badge { display: inline-block; font-family: var(--display); letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.7rem; color: #2a1404; background: linear-gradient(180deg, #fbe8a6, #c8952f); padding: 0.3em 0.9em; margin-bottom: 0.8em; }

/* ------------------------------------------------------------------ film */
.film-frame { margin: 40px auto 0; padding: 8px; background: linear-gradient(180deg, #f3d892, #8a5a2b); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), 0 0 60px rgba(243, 200, 110, 0.15); }
.film-frame video { width: 100%; aspect-ratio: 16 / 9; background: #000; border: 2px solid #1a0f0b; }
.film-credit { margin-top: 18px; font-size: 0.86rem; color: var(--text-dim); }
.section-film .section-bg::after { background: linear-gradient(180deg, var(--lack) 0%, rgba(13, 8, 7, 0.78) 25%, rgba(13, 8, 7, 0.78) 75%, var(--lack) 100%); }

/* ------------------------------------------------------------------ gallery and viewer */
.gallery { list-style: none; padding: 0; margin: 0; columns: 3 300px; column-gap: 16px; }
.g-item { break-inside: avoid; margin: 0 0 16px; }
.g-item a { position: relative; display: block; overflow: hidden; box-shadow: var(--frame-shadow); }
.g-item img { width: 100%; transition: transform 1.2s var(--ease), filter 0.5s; }
.g-item a:hover img { transform: scale(1.05); filter: brightness(1.08); }
.g-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 10px; font-family: var(--display); font-size: 0.8rem; letter-spacing: 0.08em; color: #fff1d0; background: linear-gradient(180deg, transparent, rgba(9, 5, 4, 0.9)); opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.4s var(--ease); }
.g-item a:hover .g-cap, .g-item a:focus-visible .g-cap { opacity: 1; transform: none; }
@media (hover: none) { .g-cap { opacity: 1; transform: none; } }
.viewer { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 50px 16px 70px; background: rgba(6, 3, 2, 0.94); backdrop-filter: blur(4px); }
.viewer[hidden] { display: none; }
.viewer img { max-width: min(1500px, 100%); max-height: calc(100vh - 140px); width: auto; height: auto; box-shadow: 0 0 0 1px rgba(214, 168, 76, 0.5), 0 0 80px rgba(243, 200, 110, 0.15), 0 30px 80px #000; }
.viewer p { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; font-family: var(--display); letter-spacing: 0.1em; color: var(--gold-hell); margin: 0; }
.viewer button { position: absolute; background: rgba(20, 12, 9, 0.85); color: var(--gold-hell); border: 1px solid var(--line); width: 48px; height: 48px; font-size: 1.4rem; line-height: 1; cursor: pointer; font-family: var(--strong); }
.viewer button:hover { background: rgba(143, 29, 24, 0.7); }
.viewer .v-close { top: 14px; right: 14px; }
.viewer .v-prev { left: 14px; top: 50%; margin-top: -24px; }
.viewer .v-next { right: 14px; top: 50%; margin-top: -24px; }

/* ------------------------------------------------------------------ news */
.news-list { display: grid; gap: 22px; }
.news { padding: 28px clamp(20px, 4vw, 40px) 24px; border-left: 4px solid var(--rot-hell); }
.news-date { font-family: var(--display); color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.8rem; margin: 0 0 0.6em; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.news-tag { font-size: 0.68rem; letter-spacing: 0.16em; color: #2a1404; background: linear-gradient(180deg, #fbe8a6, #c8952f); padding: 0.2em 0.75em; }
.news h3 { font-size: clamp(1.3rem, 2.8vw, 1.7rem); color: #fff1d0; margin-bottom: 0.7em; }
.news p { color: var(--text-dim); }
.news p:last-child { margin-bottom: 0; }
.news-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.news-teaser .news { padding: 22px 22px 20px; }
.news-teaser .news h3 { font-size: 1.2rem; }
.news-teaser .news p { font-size: 0.95rem; }
.news-teaser .news p + p { display: none; }
@media (max-width: 960px) { .news-teaser { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ help: FAQ and keys */
.faq { display: grid; gap: 12px; }
.faq details { padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 56px 18px 22px; font-family: var(--strong); font-size: 1.05rem; color: #fff1d0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 50%; width: 28px; height: 28px; margin-top: -14px; display: grid; place-items: center; font-family: var(--display); color: #2a1404; background: var(--gold-grad); border-radius: 50%; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { content: "–"; }
.faq details[open] summary { color: var(--gold-hell); border-bottom: 1px solid var(--line-soft); }
.faq .answer { padding: 16px 22px 18px; color: var(--text-dim); }
.faq .answer p:last-child { margin-bottom: 0; }
.keys { padding: 8px 22px; }
.keys table { width: 100%; border-collapse: collapse; }
.keys td { padding: 0.6em 0.4em; border-bottom: 1px solid var(--line-soft); vertical-align: top; color: var(--text-dim); }
.keys tr:last-child td { border-bottom: 0; }
.keys td:first-child { width: 42%; }
.keys caption { text-align: left; font-family: var(--display); color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.82rem; padding: 14px 0 6px; }

/* ------------------------------------------------------------------ call to action */
.section-cta { padding: clamp(90px, 13vw, 170px) 0; overflow: hidden; }
.section-cta .section-bg::after { background: linear-gradient(180deg, var(--lack) 0%, rgba(13, 8, 7, 0.35) 30%, rgba(13, 8, 7, 0.5) 70%, var(--lack) 100%); }
.cta-title { font-size: clamp(2rem, 5.4vw, 3.6rem); color: #fff6dd; text-shadow: 0 2px 14px rgba(0, 0, 0, 0.9), 0 0 36px rgba(255, 200, 100, 0.35); margin-bottom: 0.4em; }
.section-cta p { font-size: 1.14rem; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.95); margin-bottom: 1.6em; }

/* ------------------------------------------------------------------ download and legal pages */
.page-body { padding: clamp(46px, 6vw, 80px) 0 clamp(80px, 9vw, 120px); }
.page-body h2 { font-size: clamp(1.35rem, 2.8vw, 1.8rem); color: var(--gold-hell); margin: 1.8em 0 0.7em; letter-spacing: 0.04em; }
.page-body h2:first-child { margin-top: 0; }
.page-body h3 { font-size: 1.2rem; color: #fff1d0; }
.page-body li { margin-bottom: 0.4em; }

.notice {
  display: flex; gap: 16px; align-items: flex-start; padding: 18px 22px; margin: 0 0 34px;
  background: linear-gradient(180deg, rgba(143, 29, 24, 0.32), rgba(79, 11, 9, 0.32));
  border: 1px solid rgba(214, 120, 76, 0.55); border-left: 4px solid #d24a2e;
}
.notice::before { content: "!"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: var(--strong); color: #2a1404; background: var(--gold); margin-top: 2px; }
.notice p { margin: 0; }
.notice strong { color: var(--gold-hell); }

.soon { text-align: center; padding: clamp(26px, 4vw, 44px); margin-bottom: 40px; }
.soon h2 { margin-top: 0; }
.soon .btn { margin-top: 1em; }

.steps { list-style: none; padding: 0; margin: 44px 0 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { padding: 50px 18px 18px; counter-increment: step; text-align: center; }
.step h3 { font-size: 1.12rem; margin-bottom: 0.5em; color: var(--gold-hell); }
.step p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }
.step::before { content: ""; position: absolute; top: -22px; left: 50%; width: 46px; height: 46px; transform: translateX(-50%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); background: linear-gradient(180deg, #e8bf63, #8a5a2b); }
.step::after { content: counter(step); position: absolute; top: -22px; left: 50%; transform: translateX(-50%); width: 46px; height: 46px; display: grid; place-items: center; font-family: var(--display); font-size: 1.2rem; color: #fff1d0; clip-path: polygon(50% 4px, calc(100% - 4px) 50%, 50% calc(100% - 4px), 4px 50%); background: linear-gradient(180deg, #a3241d, #520c0a); }

.req { padding: 22px 26px; margin-bottom: 30px; }
.req table { width: 100%; border-collapse: collapse; }
.req th, .req td { text-align: left; padding: 0.7em 0.6em; border-bottom: 1px solid rgba(214, 168, 76, 0.18); vertical-align: top; }
.req th { font-family: var(--strong); color: var(--gold-hell); width: 34%; font-size: 0.98rem; }
.req tr:last-child th, .req tr:last-child td { border-bottom: 0; }
.req caption { text-align: left; font-family: var(--display); color: var(--gold); letter-spacing: 0.12em; text-transform: uppercase; font-size: 0.82rem; padding-bottom: 0.6em; }

.notice-small { font-size: 0.9rem; color: var(--text-dim); margin-top: -14px; }
.rules-version { font-family: var(--display); color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase; font-size: 0.85rem; }
.rules { list-style: none; padding: 0; margin: 0; counter-reset: rule; display: grid; gap: 14px; }
.rules li { counter-increment: rule; position: relative; padding: 18px 22px 16px 78px; background: linear-gradient(180deg, rgba(34, 20, 15, 0.9), rgba(16, 10, 8, 0.92)); border: 1px solid rgba(214, 168, 76, 0.35); margin: 0; }
.rules li::before { content: counter(rule); position: absolute; left: 20px; top: 18px; width: 40px; height: 40px; display: grid; place-items: center; font-family: var(--display); font-size: 1.2rem; color: #fff1d0; background: linear-gradient(180deg, #a3241d, #520c0a); border: 1px solid var(--gold); border-radius: 50%; }
.rules h3 { font-size: 1.2rem; color: var(--gold-hell); margin-bottom: 0.35em; }
.rules p { margin: 0; color: var(--text); }
@media (max-width: 520px) { .rules li { padding-left: 64px; } .rules li::before { left: 14px; } }

.legal-box { padding: clamp(22px, 4vw, 36px); }
.legal-box dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.6em 1.4em; margin: 0; }
.legal-box dt { font-family: var(--strong); color: var(--gold-hell); }
.legal-box dd { margin: 0; color: var(--text-dim); }
.placeholder { color: #e9a774; font-style: italic; }
@media (max-width: 560px) { .legal-box dl { grid-template-columns: 1fr; } .legal-box dd { margin-bottom: 0.6em; } }

.credits { display: grid; gap: 20px; }
.card { padding: 22px 26px; }
.card h2 { margin-top: 0 !important; }
.card p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------------ footer */
.site-footer { position: relative; border-top: 1px solid var(--line); background: radial-gradient(ellipse at 50% 0%, rgba(214, 168, 76, 0.08), transparent 55%), linear-gradient(180deg, #120b09, #070403); padding: 60px 0 26px; }
.footer-ornament { position: absolute; top: 0; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%) rotate(45deg); background: linear-gradient(135deg, #f3d892, #8a5a2b); box-shadow: 0 0 0 5px var(--lack), 0 0 0 6px var(--line), 0 0 30px rgba(243, 200, 110, 0.4); }
.footer-ornament::after { content: ""; position: absolute; inset: 9px; background: linear-gradient(135deg, #a3241d, #4f0b09); }
.footer-inner { width: min(var(--wrap), 100% - 32px); margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; align-items: start; }
.footer-logo { width: 190px; margin-bottom: 14px; filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8)); }
.footer-sub { font-family: var(--display); color: var(--text-dim); letter-spacing: 0.12em; font-size: 0.82rem; margin: 0 0 1em; }
.footer-note { color: var(--text-faint); font-size: 0.88rem; max-width: 40ch; }
.footer-col h2 { font-family: var(--display); font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 0 0 1em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 0.5em; }
.footer-col a { color: var(--text-dim); text-decoration: none; }
.footer-col a:hover { color: var(--gold-hell); text-decoration: underline; }
.footer-copy { width: min(var(--wrap), 100% - 32px); margin: 36px auto 0; padding-top: 18px; border-top: 1px solid rgba(214, 168, 76, 0.16); color: #85775f; font-size: 0.84rem; text-align: center; }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; text-align: center; } .footer-logo, .footer-note { margin-inline: auto; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr 1fr; } .footer-col:last-child { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ additions: motes canvas, hero figures, dragons, help */
.hero-embers { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.page-hero > .hero-embers { z-index: 1; }
.page-hero::before { content: ""; position: absolute; inset: -40% -20% auto; height: 170%; z-index: 0; pointer-events: none; mix-blend-mode: screen; opacity: 0.4;
  background: repeating-conic-gradient(from 0deg at 50% 0%, rgba(255, 226, 160, 0.14) 0deg 3deg, transparent 3deg 11deg, rgba(255, 210, 130, 0.08) 11deg 13deg, transparent 13deg 22deg);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, rgba(0, 0, 0, 0.45) 35%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, rgba(0, 0, 0, 0.45) 35%, transparent 70%);
  animation: rays-turn 70s linear infinite alternate; transform-origin: 50% 0%; }
.page-hero::after { content: ""; position: absolute; left: 50%; bottom: 0; width: min(760px, 86vw); height: 1px; transform: translateX(-50%); z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(243, 216, 146, 0.95), transparent); box-shadow: 0 0 18px rgba(243, 200, 110, 0.7); }
.page-hero .page-hero-inner { z-index: 3; }
.page-hero-heroes { min-height: clamp(620px, 96vh, 940px); place-items: start center; padding-top: calc(var(--header-h) + clamp(40px, 6vw, 70px)); }
.page-hero-figures { position: absolute; left: 50%; bottom: -3%; width: min(860px, 118vw); transform: translateX(-50%); z-index: 2; pointer-events: none;
  filter: drop-shadow(0 0 40px rgba(255, 214, 140, 0.25)) drop-shadow(0 20px 30px rgba(0, 0, 0, 0.6)); }
.page-hero-figures img { width: 100%; height: auto; }
.page-hero-heroes .section-bg::after { background: linear-gradient(180deg, rgba(9, 5, 4, 0.6) 0%, rgba(9, 5, 4, 0.1) 35%, rgba(9, 5, 4, 0.05) 60%, rgba(13, 8, 7, 0.75) 90%, var(--lack) 100%); }
.page-hero-heroes .page-hero-inner { text-shadow: 0 2px 14px #000; }

.dragons { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: clamp(36px, 5vw, 56px); }
.dragons figure { margin: 0; position: relative; overflow: hidden; box-shadow: var(--frame-shadow); }
.dragons img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transition: transform 1.2s var(--ease); }
.dragons figure:hover img { transform: scale(1.06); }
.dragons figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 8px 10px; text-align: center; font-family: var(--display); letter-spacing: 0.1em; font-size: 0.9rem; color: #fff1d0; background: linear-gradient(180deg, transparent, rgba(9, 5, 4, 0.92)); }
@media (max-width: 760px) { .dragons { grid-template-columns: repeat(2, 1fr); } }

.help-block { margin: 0 0 clamp(70px, 9vw, 110px); }
.help-block:last-child { margin-bottom: 0; }
.help-block .section-head { margin-bottom: clamp(30px, 4vw, 46px); }
.narrow-faq { max-width: 880px; margin-inline: auto; }
.keys td:last-child { color: var(--text); }
.tile h3 code { font-size: 0.95em; }
.rank-tiles .tile { text-align: center; }
.rank-tiles .big { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.feature-text h2 + p, .feature-text h3 + p { margin-top: 0.2em; }
.feature-text .btn-row { margin-top: 1.2em; }
.section-realms { background: radial-gradient(ellipse at 50% 20%, rgba(214, 168, 76, 0.08), transparent 60%), var(--lack); }
.realm .realm-pic img { transition: transform 1.4s var(--ease); }
.realm:hover .realm-pic img { transform: scale(1.05); }
.realm-pic { overflow: hidden; }

.outlook .badge { color: #2a1404; margin: 0 0 0.8em; }
.page-body h2.plate { font-size: clamp(1.45rem, 3.6vw, 2.4rem); color: #fff1d0; margin: 0; }
.page-body .feature-text h2 { margin-top: 0; }
@media (min-width: 1001px) { .dungeons > li:last-child:nth-child(3n+1) { grid-column: 2; } }

@media (max-width: 1100px) { .class-portrait { position: relative; top: auto; } }
@media (max-width: 560px) { .class-portrait figcaption { font-size: 0.76rem; letter-spacing: 0.03em; padding: 10px 4px; } }

/* ------------------------------------------------------------------ motion */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-sky .hero-img, .hero-clouds .hero-img, .hero-logo-img, .hero-logo::before, .hero-claim, .hero-sub, .hero-actions, .hero-scroll::after,
  .page-hero .section-bg img, .godrays, .page-hero::before, .btn-gold::after { animation: none; }
}

/* Screenshot mode (class shotmode on <html>, set by shoot.py): everything at its final state, no motion. */
.shotmode *, .shotmode *::before, .shotmode *::after { animation: none !important; transition: none !important; }
.shotmode .reveal { opacity: 1; transform: none; }
.shotmode .subnav { position: relative; top: 0; }
