/* CROWN OF WESTEROS — official website
   Dark, gold and deep crimson; painted 2D cinematic scenes; Arabic first (RTL), English second. */

@font-face { font-family: "Amiri"; src: url("../fonts/Amiri-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Amiri"; src: url("../fonts/Amiri-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Aref Ruqaa"; src: url("../fonts/ArefRuqaa-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Aref Ruqaa"; src: url("../fonts/ArefRuqaa-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Cinzel"; src: url("../fonts/Cinzel-Variable.ttf") format("truetype"); font-weight: 400 900; font-display: swap; }

:root {
  --black: #0b0908; --ink: #120e0c; --ink2: #1a1411; --line: #3a2c1d;
  --gold: #c9a24a; --gold-hi: #f1d48a; --gold-lo: #7d5d27; --crimson: #4a0b11; --crimson-hi: #8e1a22;
  --ivory: #eee2c8; --muted: #a99878; --dim: #6f6350; --ok: #8fbf6a; --dev: #d39a3c;
  --ar: "Amiri", "Sakkal Majalla", "Traditional Arabic", "Noto Naskh Arabic", "Geeza Pro", serif;
  --ar-title: "Aref Ruqaa", "Amiri", serif;
  --en: "Cinzel", "Trajan Pro", "Perpetua Titling MT", Georgia, serif;
  --gold-grad: linear-gradient(180deg, #fff1c2 0%, #f1d48a 22%, #c9a24a 52%, #8a6626 78%, #d8b462 100%);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --top: 72px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
/* iPhone/Safari rule used across this file: never animate `filter`, and never put `filter` on the same element as
   gradient text (background-clip: text). Shadows sit on a still parent instead; otherwise Safari paints white boxes. */
body {
  margin: 0; color: var(--ivory); background: var(--black); font-family: var(--ar); font-size: 19px; line-height: 1.8;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden;
}
body::before { /* film grain + vignette over everything */
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
}
img { max-width: 100%; display: block; }
a { color: var(--gold-hi); text-decoration: none; }
button { font: inherit; color: inherit; }
.skip { position: fixed; inset-inline-start: 8px; top: 8px; background: var(--gold); color: #000; padding: 6px 12px; z-index: 100; transform: translateY(-300%); }
.skip:focus { transform: none; }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }

/* ---------- top bar ---------- */
.topbar {
  position: fixed; inset-inline: 0; top: 0; height: var(--top); z-index: 40; display: flex; align-items: center; gap: 18px;
  padding: 0 clamp(14px, 3vw, 36px);
  background: linear-gradient(180deg, rgba(8,6,5,.92), rgba(8,6,5,.55) 70%, rgba(8,6,5,0));
  transition: background .4s var(--ease);
}
.topbar.solid { background: rgba(10,8,7,.94); border-bottom: 1px solid rgba(201,162,74,.18); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ivory); white-space: nowrap; }
.brand img { width: 44px; height: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }
.brand-ar { font-family: var(--ar-title); font-weight: 700; font-size: 1.35rem; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-en { font-family: var(--en); font-size: .62rem; letter-spacing: .22em; color: var(--muted); }
.nav { display: flex; gap: clamp(10px, 1.4vw, 22px); margin-inline-start: auto; align-items: center; }
.nav a { font-size: .98rem; color: var(--ivory); opacity: .82; position: relative; padding: 4px 0; white-space: nowrap; transition: opacity .3s; }
.nav a:hover, .nav a.active { opacity: 1; color: var(--gold-hi); }
.nav a.active::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 1px; background: var(--gold-grad); }
.nav a.soon { opacity: .4; cursor: default; }
.nav a.soon::after { content: "قريبًا"; position: absolute; top: -10px; inset-inline-start: 0; font-size: .58rem; color: var(--dev); opacity: 0; transition: opacity .25s; }
.nav a.soon:hover::after { opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; margin-inline-start: auto; cursor: pointer; padding: 10px 8px; }
.nav-toggle span { display: block; height: 2px; background: var(--gold); margin: 5px 0; transition: transform .3s, opacity .3s; }

/* ---------- buttons ---------- */
.btn {
  --b: var(--gold); position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0; padding: 12px 26px 10px; min-width: 190px; border: 1px solid var(--b); color: var(--ivory); background: rgba(12,9,8,.55);
  font-family: var(--ar); font-weight: 700; font-size: 1.05rem; line-height: 1.3; cursor: pointer; text-align: center;
  clip-path: polygon(10px 0, calc(100% - 10px) 0, 100% 50%, calc(100% - 10px) 100%, 10px 100%, 0 50%);
  transition: transform .25s var(--ease), background .3s, color .3s, box-shadow .3s;
}
.btn small { font-weight: 400; font-size: .74rem; opacity: .9; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: linear-gradient(180deg, #e7c777, #b88b35 55%, #8e6421); color: #1b1208; border-color: #f3d98f; text-shadow: 0 1px 0 rgba(255,240,200,.5); }
.btn-gold:hover { background: linear-gradient(180deg, #f6dc92, #c99a40 55%, #9c6e25); }
.btn-ghost { background: rgba(10,8,7,.55); border-color: rgba(201,162,74,.7); }
.btn-ghost:hover { background: rgba(74,11,17,.55); }
.btn-sm { min-width: 0; padding: 8px 18px 7px; font-size: .92rem; }
.btn.is-disabled { opacity: .55; cursor: default; }
.status.ok { color: #23360f; }
.btn-ghost .status.dev, .status.dev { color: var(--dev); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-inline-end: 8px; vertical-align: middle; }
.dot.ok { background: var(--ok); box-shadow: 0 0 10px var(--ok); }
.dot.dev { background: var(--dev); box-shadow: 0 0 10px var(--dev); }

/* ---------- music ---------- */
.music { position: fixed; inset-inline-end: clamp(12px, 2vw, 26px); bottom: calc(clamp(12px, 2vw, 24px) + env(safe-area-inset-bottom, 0px)); z-index: 45; }
.music-btn {
  display: flex; align-items: center; gap: 12px; padding: 9px 16px 9px 14px; cursor: pointer;
  background: rgba(10,8,7,.82); border: 1px solid rgba(201,162,74,.55); border-radius: 40px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  box-shadow: 0 8px 30px rgba(0,0,0,.5); transition: border-color .3s, transform .25s var(--ease);
}
.music-btn:hover { border-color: var(--gold-hi); transform: translateY(-2px); }
.music-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.music-txt b { font-family: var(--en); font-size: .78rem; letter-spacing: .12em; color: var(--gold-hi); font-weight: 600; }
.music-txt small { font-size: .72rem; color: var(--muted); }
.eq { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.eq i { width: 3px; height: 4px; background: var(--gold); border-radius: 1px; }
.music.playing .eq i { animation: eq 1s ease-in-out infinite; }
.music.playing .eq i:nth-child(2) { animation-delay: -.3s; } .music.playing .eq i:nth-child(3) { animation-delay: -.6s; } .music.playing .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 18px; } }

/* ---------- views & veil ---------- */
.view[hidden] { display: none; }
.veil { position: fixed; inset: 0; z-index: 70; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, #120806 0%, #000 70%); transition: opacity .55s var(--ease); }
.veil.on, .is-loading .veil { opacity: 1; }
.discord-link.is-disabled { opacity: .55; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero { position: relative; height: 100vh; height: 100svh; min-height: 560px; overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: -3%; background: #120c0a center 40% / cover no-repeat;
  animation: kenburns 46s ease-in-out infinite alternate; transform-origin: 55% 35%; filter: saturate(1.04) contrast(1.04);
}
@keyframes kenburns { from { transform: scale(1.02) translate3d(0,0,0); } to { transform: scale(1.12) translate3d(-1.2%, 1%, 0); } }
.hero .fx, .stage-box .fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero .dragon { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(5,4,3,.70) 0%, rgba(5,4,3,.10) 26%, rgba(5,4,3,.05) 55%, rgba(8,6,5,.88) 88%, #0b0908 100%),
  radial-gradient(ellipse at 50% 46%, rgba(0,0,0,.42) 0%, rgba(0,0,0,0) 46%); pointer-events: none; }
.hero-inner { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--top) + 10px) 16px 70px; text-align: center; }
.crown { position: relative; width: min(30vw, 330px); aspect-ratio: 1400 / 1294; margin-bottom: -2.2%; filter: drop-shadow(0 10px 24px rgba(0,0,0,.75)); }
.crown img { position: absolute; inset: 0; width: 100%; height: 100%; }
.crown .sword { opacity: 0; transform: translateY(-120%); }
.crown .gem { opacity: 0; }
.crown .c-band { opacity: 0; clip-path: inset(0 100% 0 0); }
.crown .flash { position: absolute; width: 18%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(255,230,170,.95), rgba(255,180,80,.35) 40%, transparent 70%); opacity: 0; pointer-events: none; }
.reveal .crown .c-band { animation: cband 1.4s var(--ease) .2s forwards; }
@keyframes cband { to { opacity: 1; clip-path: inset(0 0 0 0); } }
.reveal .crown .sword { animation: drop .55s cubic-bezier(.5, 0, .75, .3) forwards; }
@keyframes drop { 0% { opacity: 0; transform: translateY(-120%); } 30% { opacity: 1; } 82% { transform: translateY(2%); } 90% { transform: translateY(-1.2%); } 100% { opacity: 1; transform: translateY(0); } }
.reveal .crown .gem { animation: gemon .5s ease-out forwards; }
@keyframes gemon { to { opacity: 1; } }
.reveal .crown .flash { animation: flash .7s ease-out forwards; }
@keyframes flash { 0% { opacity: 0; } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); } }

.wordmark { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .9vh; filter: drop-shadow(0 6px 18px rgba(0,0,0,.8)); }
.wm-ar { width: min(56vw, 640px); height: auto; opacity: 0; }
.wm-en { width: min(48vw, 520px); height: auto; opacity: 0; }
.reveal .wm-ar { animation: rise 1.3s var(--ease) 4.4s forwards; }
.reveal .wm-en { animation: rise 1.1s var(--ease) 5.0s forwards; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.tagline { margin: 1.6vh 0 0; display: flex; flex-direction: column; gap: 2px; opacity: 0; }
.tagline .ar { font-family: var(--ar-title); font-size: clamp(1.3rem, 2.4vw, 2rem); color: var(--ivory); text-shadow: 0 2px 12px #000; }
.tagline .en { font-family: var(--en); font-size: clamp(.72rem, 1.1vw, .92rem); letter-spacing: .3em; color: var(--muted); }
.reveal .tagline { animation: rise 1s var(--ease) 5.6s forwards; }
.hero-cta { margin-top: 3.4vh; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; opacity: 0; }
.reveal .hero-cta { animation: rise 1s var(--ease) 6.2s forwards; }
.scroll-cue { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 1px solid rgba(201,162,74,.6); border-radius: 14px; opacity: 0; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: var(--gold); border-radius: 2px; animation: cue 1.8s infinite; }
.reveal .scroll-cue { animation: rise 1s var(--ease) 7s forwards; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- bands / sections ---------- */
.band { position: relative; padding: clamp(60px, 9vw, 120px) clamp(16px, 5vw, 64px); max-width: 1320px; margin: 0 auto; }
.sec-head { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.kicker { margin: 0; font-family: var(--en); letter-spacing: .34em; font-size: .78rem; color: var(--gold); opacity: .85; }
.sec-head h2 { margin: .2em 0 .1em; font-family: var(--ar-title); font-weight: 700; font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.25;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rule { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px auto 0; width: min(420px, 70%); }
.rule::before, .rule::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.rule i { width: 9px; height: 9px; transform: rotate(45deg); background: var(--gold); box-shadow: 0 0 10px rgba(201,162,74,.6); }
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.fade-in.seen { opacity: 1; transform: none; }

/* film */
.film-frame { position: relative; padding: clamp(8px, 1.2vw, 14px); background: linear-gradient(135deg, #3c2c14, #c9a24a 30%, #5d4319 50%, #e0c27a 70%, #3c2c14);
  box-shadow: 0 30px 80px rgba(0,0,0,.7), 0 0 0 1px rgba(0,0,0,.8) inset; }
.film { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #000; }
.film-poster { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; }
.film:hover .film-poster { transform: scale(1.03); filter: brightness(1.1); }
.film-play { position: absolute; inset: 0; margin: auto; width: clamp(74px, 9vw, 112px); aspect-ratio: 1; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--gold-hi); background: radial-gradient(circle, rgba(74,11,17,.85), rgba(10,8,7,.85)); box-shadow: 0 0 0 10px rgba(201,162,74,.12), 0 0 50px rgba(0,0,0,.8);
  transition: transform .3s var(--ease), box-shadow .3s; }
.film-play:hover { transform: scale(1.08); box-shadow: 0 0 0 14px rgba(201,162,74,.18), 0 0 60px rgba(201,162,74,.25); }
.film-play span { position: absolute; inset: 0; margin: auto; width: 0; height: 0; border-style: solid; border-width: 16px 0 16px 26px;
  border-color: transparent transparent transparent var(--gold-hi); transform: translateX(4px); }
.film-note { text-align: center; color: var(--muted); font-size: .95rem; margin-top: 18px; }

/* about */
.about { display: grid; gap: 30px; }
.about-lead { text-align: center; font-family: var(--ar-title); font-size: clamp(1.4rem, 2.6vw, 2.1rem); line-height: 1.7; margin: 0; color: var(--ivory); }
.about-lead span { display: block; }
.status-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.status-card { display: grid; grid-template-columns: 42% 1fr; align-items: stretch; background: linear-gradient(160deg, #1b1411, #0f0b09);
  border: 1px solid var(--line); overflow: hidden; min-height: 190px; }
.status-card img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.95) brightness(.9); }
.status-card div { padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.status-card h3 { margin: 0; font-family: var(--ar-title); font-size: 1.6rem; color: var(--gold-hi); }
.status-card p { margin: 0 0 10px; color: var(--ivory); }
.status-card .btn { align-self: flex-start; }

/* news */
.news { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.news-card { position: relative; display: flex; flex-direction: column; background: linear-gradient(170deg, #1a1310, #0e0a08 70%);
  border: 1px solid var(--line); box-shadow: 0 20px 50px rgba(0,0,0,.45); overflow: hidden; transition: transform .4s var(--ease), border-color .4s; }
.news-card:hover { transform: translateY(-4px); border-color: rgba(201,162,74,.6); }
.news-card:first-child { grid-column: span 2; grid-row: span 2; }
.news-img { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.news-card:first-child .news-img { aspect-ratio: 16 / 8.2; }
.news-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.news-card:hover .news-img img { transform: scale(1.05); }
.news-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(14,10,8,.95)); }
.news-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.news-meta { display: flex; gap: 12px; align-items: center; font-size: .82rem; color: var(--muted); }
.news-tag { color: var(--gold); border: 1px solid rgba(201,162,74,.45); padding: 0 10px; }
.news-card h3 { margin: 0; font-family: var(--ar-title); font-size: 1.35rem; line-height: 1.45; color: var(--ivory); }
.news-card:first-child h3 { font-size: 1.9rem; }
.news-card p { margin: 0; color: #cdbf9f; font-size: .98rem; line-height: 1.75; }

/* throne teaser */
.throne-teaser { position: relative; display: block; height: clamp(260px, 36vw, 460px); overflow: hidden; margin-top: 20px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.throne-teaser img { width: 100%; height: 100%; object-fit: cover; object-position: center 38%; filter: brightness(.7); transition: transform 2s var(--ease), filter .8s; }
.throne-teaser:hover img { transform: scale(1.05); filter: brightness(.9); }
.teaser-txt { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  background: radial-gradient(ellipse at center, rgba(0,0,0,.25), rgba(0,0,0,.7)); }
.teaser-txt small { font-family: var(--en); letter-spacing: .34em; color: var(--gold); font-size: .8rem; }
.teaser-txt b { font-family: var(--ar-title); font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.3; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.teaser-txt i { font-style: normal; color: var(--ivory); opacity: .85; }

/* ---------- Iron Throne ---------- */
.throne-stage { position: relative; padding-top: var(--top); background: #050403; }
.stage-box { position: relative; width: min(100vw, calc((100vh - var(--top)) * 16 / 9)); aspect-ratio: 16 / 9; margin: 0 auto; }
.stage-clip { position: absolute; inset: 0; overflow: hidden; }
.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: push 60s ease-in-out infinite alternate; transform-origin: 50% 42%; }
@keyframes push { from { transform: scale(1); } to { transform: scale(1.06); } }
.stage-clip::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,4,3,.55), transparent 22%, transparent 70%, rgba(5,4,3,.85)), radial-gradient(ellipse at 50% 55%, transparent 50%, rgba(0,0,0,.6)); }
.banner-l, .banner-r { position: absolute; top: -2%; width: 11.5%; height: auto; transform-origin: 50% 0; filter: brightness(.78) drop-shadow(0 14px 18px rgba(0,0,0,.7)); z-index: 2; }
.banner-l { left: 1.5%; animation: sway 7s ease-in-out infinite; }
.banner-r { right: 1.5%; animation: sway 8s ease-in-out -2s infinite; }
@keyframes sway { 0%, 100% { transform: rotate(.8deg) skewX(.6deg); } 50% { transform: rotate(-.8deg) skewX(-.8deg); } }
.fire { position: absolute; bottom: 0; width: 34%; height: 46%; pointer-events: none; z-index: 1; mix-blend-mode: screen;
  background: radial-gradient(ellipse at 50% 100%, rgba(255,140,50,.45), rgba(200,60,20,.18) 40%, transparent 70%); animation: flick 3.2s infinite; }
.fire-l { left: -6%; } .fire-r { right: -6%; animation-delay: -1.3s; }
@keyframes flick { 0%, 100% { opacity: .75; } 20% { opacity: .95; } 35% { opacity: .62; } 55% { opacity: 1; } 75% { opacity: .7; } }
.figures { position: absolute; inset: 0; z-index: 3; }
.figure { position: absolute; cursor: pointer; background: none; border: 0; padding: 0; }
.figure { filter: brightness(1.25) drop-shadow(0 0 2px rgba(241,212,138,.9)) drop-shadow(0 0 16px rgba(201,162,74,.55)); }
.figure img { width: 100%; height: 100%; opacity: 0; transition: opacity .45s var(--ease); }
.figure:hover img, .figure:focus-visible img, .figure.lit img { opacity: 1; }
.labels { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.label { position: absolute; transform: translate(-50%, 0); text-align: center; opacity: 0; transition: opacity 1s var(--ease), transform 1s var(--ease); white-space: nowrap; }
.label.on { opacity: 1; transform: translate(-50%, -8px); }
.label .role { display: block; font-family: var(--en); font-size: clamp(.5rem, .85vw, .78rem); letter-spacing: .28em; color: var(--gold); text-shadow: 0 2px 8px #000; }
.label .name { display: block; font-family: var(--ar-title); font-weight: 700; font-size: clamp(.95rem, 1.9vw, 1.9rem); line-height: 1.3;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.label { filter: drop-shadow(0 2px 6px rgba(0,0,0,.95)); }
.label .en { display: block; font-family: var(--en); font-size: clamp(.45rem, .72vw, .68rem); letter-spacing: .14em; color: var(--ivory); opacity: .85; text-shadow: 0 2px 6px #000; }
.label.below::before { content: ""; display: block; width: 1px; height: clamp(10px, 2vw, 28px); margin: 0 auto 4px; background: linear-gradient(180deg, transparent, var(--gold)); }
.label.above { transform: translate(-50%, -100%); }
.label.above.on { transform: translate(-50%, calc(-100% - 8px)); }
.label.above::after { content: ""; display: block; width: 1px; height: clamp(10px, 2vw, 28px); margin: 4px auto 0; background: linear-gradient(0deg, transparent, var(--gold)); }
.stage-title { position: absolute; top: calc(var(--top) + 1.5vh); left: 50%; transform: translateX(-50%); text-align: center; z-index: 5; pointer-events: none; }
.stage-title { filter: drop-shadow(0 6px 20px rgba(0,0,0,.9)); }
.stage-title img { width: min(34vw, 420px); height: auto; opacity: 0; }
.stage-title p { margin: 0; font-family: var(--en); letter-spacing: .38em; font-size: clamp(.6rem, 1vw, .85rem); color: var(--gold); opacity: 0; }
.show .stage-title img { animation: rise 1.4s var(--ease) .3s forwards; }
.show .stage-title p { animation: rise 1.2s var(--ease) .8s forwards; }
.stage-hint { text-align: center; color: var(--muted); font-size: .9rem; margin: clamp(26px, 3.4vw, 48px) 0 0; position: relative; z-index: 5; }

.court { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.court-card { position: relative; cursor: pointer; text-align: center; background: linear-gradient(170deg, #1b1411, #0d0a08 75%); border: 1px solid var(--line);
  padding: 0 0 20px; overflow: hidden; transition: transform .4s var(--ease), border-color .4s, box-shadow .4s; }
.court-card:hover, .court-card:focus-visible { transform: translateY(-5px); border-color: rgba(201,162,74,.7); box-shadow: 0 24px 60px rgba(0,0,0,.6), 0 0 30px rgba(201,162,74,.12); }
.court-card .arch { position: relative; margin: 20px auto 14px; width: 62%; aspect-ratio: 3 / 4; border-radius: 50% 50% 0 0 / 34% 34% 0 0; overflow: hidden;
  border: 2px solid var(--gold); box-shadow: 0 0 0 6px rgba(201,162,74,.12), inset 0 0 30px rgba(0,0,0,.8); background: #0b0807; }
.court-card .arch img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.court-card .role { font-family: var(--en); letter-spacing: .26em; font-size: .72rem; color: var(--gold); }
.court-card h3 { margin: 2px 0 0; font-family: var(--ar-title); font-size: 1.7rem; color: var(--ivory); line-height: 1.35; }
.court-card .en { font-family: var(--en); font-size: .72rem; letter-spacing: .12em; color: var(--muted); }
.court-card .ar-role { margin: 6px 0 0; color: var(--gold-hi); }
.court-card { display: flex; flex-direction: column; align-items: center; }
.court-card .arch, .court-card .role, .court-card .en, .court-card .ar-role { display: block; }
.court-card .cc-name { display: block; margin: 2px 0 0; font-family: var(--ar-title); font-weight: 700; font-size: 1.7rem; color: var(--ivory); line-height: 1.35; }

/* ---------- inner pages: shared ---------- */
.page-head { position: relative; height: clamp(380px, 58vh, 640px); overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; justify-content: center; }
.page-head .ph-bg, .house-hero .ph-bg { position: absolute; inset: -3%; background: #120c0a center 40% / cover no-repeat; animation: kenburns 46s ease-in-out infinite alternate; transform-origin: 50% 40%; filter: saturate(1.02) contrast(1.04); }
.page-head .fx, .house-hero .fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ph-shade { position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(180deg, rgba(5,4,3,.8) 0%, rgba(5,4,3,.2) 28%, rgba(5,4,3,.3) 60%, rgba(11,9,8,.96) 94%, #0b0908 100%),
  radial-gradient(ellipse at 50% 72%, rgba(0,0,0,.5), transparent 60%); }
.ph-inner { position: relative; text-align: center; padding: 0 18px clamp(30px, 6vh, 64px); max-width: 920px; }
.ph-inner h1 { margin: .08em 0 0; font-family: var(--ar-title); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1.2;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise 1.2s var(--ease) both; }
.ph-inner { filter: drop-shadow(0 4px 14px rgba(0,0,0,.8)); }
.ph-inner .kicker { animation: rise 1s var(--ease) .1s both; text-shadow: 0 2px 8px #000; }
.ph-inner .rule { animation: rise 1s var(--ease) .35s both; }
.ph-sub { margin: 14px auto 0; max-width: 700px; color: #e6d9bd; font-size: clamp(1rem, 1.6vw, 1.2rem); text-shadow: 0 2px 10px #000; animation: rise 1s var(--ease) .5s both; }
.h-sec { font-family: var(--ar-title); font-weight: 700; font-size: clamp(1.6rem, 2.8vw, 2.2rem); color: var(--gold-hi); margin: 0 0 14px; line-height: 1.3; }
.empty { display: flex; align-items: center; justify-content: center; gap: 12px; text-align: center; color: var(--muted); border: 1px dashed rgba(201,162,74,.3);
  padding: 20px 18px; margin: 10px 0; background: rgba(20,15,12,.5); }
.empty-mark { width: 9px; height: 9px; transform: rotate(45deg); border: 1px solid var(--gold); flex: none; }
.rich p { margin: 0 0 .8em; }
.rich p:last-child { margin-bottom: 0; }
.rich ol, .rich ul { margin: 0 0 .8em; padding-inline-start: 1.5em; }
.rich li { margin: .25em 0; }
.rich li::marker { color: var(--gold); }
.rich ol { list-style-type: arabic-indic; }
.news-card:first-child .news-img { flex: 1 1 auto; aspect-ratio: auto; min-height: 300px; }
.news-card:first-child .news-body { flex: 0 0 auto; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 34px; }
.chips button { cursor: pointer; background: rgba(14,10,8,.7); border: 1px solid rgba(201,162,74,.35); color: var(--ivory); padding: 6px 16px; font-size: .95rem;
  transition: background .3s, border-color .3s, color .3s; }
.chips button small { color: var(--muted); margin-inline-start: 4px; font-size: .8rem; }
.chips button:hover { border-color: var(--gold); }
.chips button[aria-selected="true"] { background: linear-gradient(180deg, rgba(142,26,34,.6), rgba(74,11,17,.8)); border-color: var(--gold); color: var(--gold-hi); }
.chips button[aria-selected="true"] small { color: var(--gold); }
.more { text-align: center; margin: 30px 0 0; }
.news-card { cursor: pointer; }
.news-body { flex: 1; }
.news-more { margin-top: auto; align-self: flex-start; background: none; border: 0; padding: 6px 0 0; color: var(--gold); cursor: pointer; font-size: .9rem; }
.news-more::after { content: " ‹"; }
.news-noimg { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 30%, #3a1a14, #0e0a08 70%); }

/* wax seal */
.wax { position: relative; display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 48% 52% 50% 47% / 52% 47% 53% 48%;
  background: radial-gradient(circle at 38% 32%, #c3343a, #8a141b 45%, #5a0a10 80%);
  box-shadow: 0 6px 14px rgba(0,0,0,.6), inset 0 -4px 10px rgba(0,0,0,.45), inset 0 3px 6px rgba(255,150,140,.25); }
.wax::before { content: ""; position: absolute; inset: 8px; border-radius: 50%; border: 1px solid rgba(255,190,170,.25); box-shadow: inset 0 0 8px rgba(0,0,0,.4); }
.wax img { width: 58%; height: auto; opacity: .85; filter: brightness(0) invert(.14) sepia(1) saturate(4) hue-rotate(-30deg) drop-shadow(0 1px 0 rgba(255,170,160,.35)); }

/* ---------- world of Westeros ---------- */
.world-band { max-width: 1480px; }
.world { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); align-items: start; }
.map-wrap { position: sticky; top: calc(var(--top) + 14px); width: min(46vw, calc((100vh - var(--top) - 30px) * 920 / 1640)); aspect-ratio: 920 / 1640;
  border: 1px solid var(--gold-lo); box-shadow: 0 30px 80px rgba(0,0,0,.7), inset 0 0 0 1px #000; background: #050707; overflow: hidden; }
.map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.map-grain { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay; }
.map-wrap::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 70px rgba(0,0,0,.85); }
.map .waves { fill: none; stroke: rgba(201,162,74,.28); stroke-width: 1.6; stroke-linecap: round; }
.map .sea-names text { font-family: var(--ar-title); font-size: 26px; fill: rgba(201,162,74,.45); text-anchor: middle; }
.map .sea-names text.en { font-family: var(--en); font-size: 10px; letter-spacing: .4em; fill: rgba(201,162,74,.32); }
.map .compass circle { fill: none; stroke: rgba(201,162,74,.45); stroke-width: 1.2; }
.map .compass path { fill: rgba(201,162,74,.55); }
.map .compass path.c2 { fill: rgba(201,162,74,.28); }
.map .compass text { font-family: var(--ar-title); font-size: 18px; fill: var(--gold); text-anchor: middle; }
.map .coast-halo { fill: none; stroke: rgba(201,162,74,.13); stroke-width: 10; stroke-linejoin: round; }
.map .beyond { fill: #1c2125; stroke: rgba(220,230,240,.35); stroke-width: 1.2; }
.map .beyond-ice { pointer-events: none; }
.map .region { fill: var(--f); stroke: rgba(201,162,74,.6); stroke-width: 1.3; stroke-linejoin: round; cursor: pointer; outline: none;
  transition: fill .4s, opacity .5s, stroke .3s, stroke-width .3s; }
.map .region:hover, .map .region:focus-visible { fill: var(--fh); stroke: var(--gold-hi); stroke-width: 2; }
.map.focus .region:not(.active) { opacity: .5; }
.map .region.active { fill: var(--fh); stroke: var(--gold-hi); stroke-width: 2.6; }
.r-north { --f: #262b2f; --fh: #3c454c; } .r-vale { --f: #282c32; --fh: #3e4751; } .r-riverlands { --f: #29291f; --fh: #404131; }
.r-iron { --f: #222426; --fh: #3b3e42; } .r-west { --f: #30201b; --fh: #4b3128; } .r-crown { --f: #34201c; --fh: #54302a; }
.r-reach { --f: #2b2a1b; --fh: #45432b; } .r-storm { --f: #24282b; --fh: #3a4248; } .r-dorne { --f: #36281a; --fh: #563f28; }
.map .deco { pointer-events: none; }
.map .mounts path { fill: #1a1410; stroke: rgba(201,162,74,.55); stroke-width: 1.2; stroke-linejoin: round; }
.map .mounts path.m-shade { fill: none; stroke: rgba(201,162,74,.3); }
.map .trees path { fill: rgba(120,140,90,.3); stroke: rgba(201,162,74,.35); stroke-width: .8; }
.map .wall-glow { fill: none; stroke: rgba(200,225,255,.22); stroke-width: 13; stroke-linecap: round; }
.map .wall { fill: none; stroke: #e6f0fa; stroke-width: 4; stroke-linecap: round; }
.map .wall-name { font-family: var(--ar-title); font-weight: 700; font-size: 21px; fill: #e6f0fa; text-anchor: middle; paint-order: stroke; stroke: #0b0d0f; stroke-width: 4px; }
.map .beyond-name { font-family: var(--ar-title); font-size: 26px; fill: rgba(230,238,245,.62); text-anchor: middle; }
.map .beyond-name.en { font-family: var(--en); font-size: 10px; letter-spacing: .32em; }
.map .rlabel { pointer-events: none; transition: opacity .5s; }
.map .rl { font-family: var(--ar-title); font-weight: 700; font-size: 30px; fill: var(--gold-hi); text-anchor: middle;
  paint-order: stroke; stroke: rgba(8,6,5,.92); stroke-width: 5px; stroke-linejoin: round; }
.map .rl-en { font-family: var(--en); font-size: 10.5px; letter-spacing: .3em; fill: rgba(238,226,200,.72); text-anchor: middle;
  paint-order: stroke; stroke: rgba(8,6,5,.9); stroke-width: 3px; }
.map.focus .rlabel:not(.active) { opacity: .35; }
.map .place { cursor: pointer; }
.map .place use { fill: var(--gold); stroke: #0b0908; stroke-width: 1.3; transition: fill .3s; }
.map .place .gate { fill: #0b0908; stroke: none; }
.map .place:hover use { fill: var(--gold-hi); }
.map .place text { font-family: var(--ar); font-weight: 700; font-size: 17px; fill: var(--ivory); text-anchor: middle;
  paint-order: stroke; stroke: rgba(8,6,5,.92); stroke-width: 4px; stroke-linejoin: round; }
.realm-panel { min-width: 0; transition: opacity .26s var(--ease), transform .26s var(--ease); }
.realm-panel.swap { opacity: 0; transform: translateY(10px); }
.rp-intro h2, .rp-body h2 { margin: .05em 0 .2em; font-family: var(--ar-title); font-weight: 700; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.2;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rp-lead { color: #dccfb2; margin: 0; }
.rp-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rp-list button { width: 100%; display: flex; align-items: center; gap: 12px; text-align: start; cursor: pointer; padding: 8px;
  background: linear-gradient(160deg, #1b1411, #0f0b09); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.rp-list button:hover { border-color: var(--gold); transform: translateY(-2px); }
.rp-list img { width: 72px; height: 50px; object-fit: cover; flex: none; }
.rp-list b { display: block; font-family: var(--ar-title); font-size: 1.25rem; color: var(--gold-hi); line-height: 1.25; }
.rp-list small { display: block; font-family: var(--en); font-size: .6rem; letter-spacing: .16em; color: var(--muted); }
.rp { background: linear-gradient(170deg, #1a1310, #0d0a08 70%); border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0,0,0,.6); }
.rp-art { position: relative; aspect-ratio: 16 / 8; overflow: hidden; }
.rp-art img { width: 100%; height: 100%; object-fit: cover; animation: push 30s ease-in-out infinite alternate; }
.rp-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(13,10,8,.96)); }
.rp-mood { position: absolute; bottom: 12px; inset-inline-start: 16px; z-index: 1; font-size: .8rem; color: var(--gold); border: 1px solid rgba(201,162,74,.45); padding: 0 10px; background: rgba(10,8,7,.6); }
.rp-mood:empty { display: none; }
.rp-body { padding: 6px clamp(18px, 2.4vw, 32px) 28px; }
.rp-seat { margin: 0 0 12px; color: var(--muted); }
.rp-seat b { color: var(--ivory); }
.rp-seat small { font-family: var(--en); font-size: .7rem; letter-spacing: .1em; }
.rp-body .rich { color: #e0d3b6; }
.rp-h { font-family: var(--ar-title); font-size: 1.45rem; color: var(--gold-hi); margin: 24px 0 10px; display: flex; align-items: center; gap: 12px; }
.rp-h::after { content: ""; flex: 1; height: 1px; background: linear-gradient(270deg, rgba(201,162,74,.5), transparent); }
.castles { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.castles li { display: grid; grid-template-columns: 124px 1fr; gap: 14px; align-items: center; padding: 8px; border: 1px solid var(--line); background: rgba(12,9,8,.6);
  transition: border-color .4s, box-shadow .4s; }
.castles li.hl { border-color: var(--gold); box-shadow: 0 0 26px rgba(201,162,74,.2); }
.castles img { width: 124px; height: 74px; object-fit: cover; }
.castles b { display: block; font-family: var(--ar-title); font-size: 1.25rem; color: var(--ivory); line-height: 1.25; }
.castles small { display: block; font-family: var(--en); font-size: .62rem; letter-spacing: .14em; color: var(--muted); }
.castles p { margin: 2px 0 0; font-size: .95rem; color: #cdbf9f; line-height: 1.6; }
.rp-houses { display: flex; flex-wrap: wrap; gap: 10px; }
.rp-house { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border: 1px solid var(--line); background: rgba(12,9,8,.6); color: var(--ivory);
  transition: border-color .3s, transform .3s var(--ease); }
.rp-house:hover { border-color: var(--gold); transform: translateY(-2px); }
.rp-house img { width: 42px; height: 42px; object-fit: contain; }
.rp-house b { display: block; font-family: var(--ar-title); font-size: 1.15rem; color: var(--gold-hi); line-height: 1.25; }
.rp-house small { display: block; font-size: .8rem; color: var(--muted); line-height: 1.4; }
.rp-nav { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; margin-top: 28px; }

/* ---------- great houses ---------- */
.houses-band { max-width: 1400px; }
.houses-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 236px), 1fr)); gap: 26px 20px; }
.house-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; color: var(--ivory); overflow: hidden;
  padding: 0 14px 22px; background: linear-gradient(170deg, #1b1411, #0d0a08 75%); border: 1px solid var(--line); box-shadow: 0 22px 50px rgba(0,0,0,.45);
  transition: border-color .4s, transform .4s var(--ease), box-shadow .4s; }
.house-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--c2), var(--c1), var(--c2)); z-index: 2; }
.house-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55; transition: opacity .4s;
  background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--c1) 30%, transparent), transparent 62%); }
.house-card:hover, .house-card:focus-visible { transform: translateY(-6px); border-color: rgba(201,162,74,.65); box-shadow: 0 28px 60px rgba(0,0,0,.6); }
.house-card:hover::after { opacity: 1; }
.hc-banner { position: relative; z-index: 1; display: block; width: 56%; margin: 0 auto 4px; transform-origin: 50% 0; filter: drop-shadow(0 14px 16px rgba(0,0,0,.75)); }
.hc-banner img { width: 100%; height: auto; }
.house-card:hover .hc-banner { animation: sway 3.4s ease-in-out infinite; }
.hc-body { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 1px; }
.hc-name { font-family: var(--ar-title); font-weight: 700; font-size: 1.75rem; line-height: 1.25; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hc-en { font-family: var(--en); font-size: .64rem; letter-spacing: .26em; color: var(--muted); }
.hc-words { margin-top: 6px; color: #e2d5b9; font-size: 1rem; line-height: 1.5; }
.hc-seat { color: var(--muted); font-size: .88rem; }
.reg { display: inline-flex; align-items: center; margin-top: 10px; font-size: .82rem; color: var(--muted); border: 1px solid rgba(201,162,74,.3); padding: 1px 10px; }
.reg .dot { width: 7px; height: 7px; margin-inline-end: 7px; background: var(--dim); box-shadow: none; }
.reg-open .dot { background: var(--ok); box-shadow: 0 0 8px var(--ok); }
.reg-registered .dot { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.reg-closed .dot { background: var(--crimson-hi); }
.house-hero { position: relative; height: clamp(560px, 88vh, 880px); overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: center; }
.house-hero .ph-shade { background: linear-gradient(180deg, rgba(5,4,3,.78) 0%, rgba(5,4,3,.3) 30%, rgba(5,4,3,.42) 64%, rgba(11,9,8,.97) 95%, #0b0908 100%),
  radial-gradient(ellipse at 50% 45%, rgba(0,0,0,.5), transparent 62%); }
.hh-banner { position: absolute; top: calc(var(--top) - 10px); width: clamp(78px, 9vw, 150px); height: auto; transform-origin: 50% 0; z-index: 2;
  filter: drop-shadow(0 18px 20px rgba(0,0,0,.75)) brightness(.92); }
.hh-l { left: clamp(10px, 4vw, 70px); animation: sway 7s ease-in-out infinite; }
.hh-r { right: clamp(10px, 4vw, 70px); animation: sway 8s ease-in-out -2s infinite; }
.hh-inner { position: relative; z-index: 3; text-align: center; padding: var(--top) 18px 130px; }
.hh-inner { filter: drop-shadow(0 6px 18px rgba(0,0,0,.85)); }
.hh-sigil { width: clamp(120px, 14vw, 200px); height: auto; margin: 0 auto 4px; animation: rise 1.2s var(--ease) both; }
.hh-inner .kicker { animation: rise 1s var(--ease) .15s both; text-shadow: 0 2px 8px #000; }
.hh-inner h1 { margin: 0; font-family: var(--ar-title); font-weight: 700; font-size: clamp(2.8rem, 7vw, 5.4rem); line-height: 1.15;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise 1.2s var(--ease) .25s both; }
.hh-words { margin: 8px 0 0; font-family: var(--ar-title); font-size: clamp(1.3rem, 2.6vw, 2rem); color: var(--ivory); text-shadow: 0 2px 12px #000; animation: rise 1s var(--ease) .45s both; }
.hh-words-en { margin: 0; font-family: var(--en); letter-spacing: .3em; font-size: clamp(.64rem, 1vw, .84rem); color: var(--muted); text-transform: uppercase; animation: rise 1s var(--ease) .6s both; }
.viz { position: absolute; z-index: 3; inset: auto 0 0 0; padding: 0 clamp(16px, 5vw, 64px) 20px; display: grid; justify-items: center; gap: 4px; }
.viz-c { width: min(920px, 100%); height: 60px; display: block; }
.viz-cap { margin: 0; display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; justify-content: center; text-align: center; font-size: .9rem; color: var(--muted); }
.viz-cap b { color: var(--gold-hi); font-family: var(--ar-title); font-size: 1.15rem; font-weight: 700; }
.house-band { padding-top: clamp(40px, 6vw, 80px); }
.house-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(22px, 3vw, 40px); align-items: start; }
.house-about .lead { font-size: 1.15rem; color: #e6dac0; }
.facts { margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.facts div { padding: 12px 16px; border: 1px solid var(--line); border-inline-start: 2px solid var(--c1); background: rgba(14,10,8,.6); }
.facts dt { font-size: .82rem; color: var(--gold); }
.facts dd { margin: 0; font-family: var(--ar-title); font-size: 1.25rem; color: var(--ivory); line-height: 1.45; }
.facts dd small { display: block; font-family: var(--en); font-size: .64rem; letter-spacing: .14em; color: var(--muted); }
.swatches { display: inline-flex; gap: 6px; margin-inline-end: 10px; vertical-align: middle; }
.swatches i { width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); box-shadow: 0 0 0 2px rgba(0,0,0,.5); }
.house-roles { position: relative; margin-top: 50px; padding: 26px 24px; text-align: center; border: 1px solid var(--gold-lo);
  background: linear-gradient(170deg, #1d1512, #0c0907 75%); box-shadow: 0 30px 70px rgba(0,0,0,.6); }
.hr-sigil { width: 88px; margin: -70px auto 4px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.8)); }
.roles { list-style: none; margin: 0 0 16px; padding: 0; text-align: start; }
.roles li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid rgba(58,44,29,.8); }
.roles span { color: var(--gold); }
.roles b { font-family: var(--ar-title); font-size: 1.2rem; color: var(--ivory); }
.roles b.unset { font-family: var(--ar); font-weight: 400; font-size: .95rem; color: var(--muted); }
.house-roles .reg { margin: 0 0 18px; font-size: .95rem; }
.house-roles .reg b { color: var(--ivory); margin-inline-start: 6px; }
.seat { position: relative; margin: clamp(30px, 5vw, 60px) 0 0; height: clamp(260px, 38vw, 480px); overflow: hidden; border: 1px solid var(--line); }
.seat img { width: 100%; height: 100%; object-fit: cover; animation: push 40s ease-in-out infinite alternate; }
.seat figcaption { position: absolute; inset: auto 0 0 0; padding: 70px 26px 22px; display: flex; flex-direction: column; background: linear-gradient(180deg, transparent, rgba(8,6,5,.92)); }
.seat b { font-family: var(--ar-title); font-size: clamp(1.8rem, 3.6vw, 2.8rem); line-height: 1.2; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.seat small { font-family: var(--en); letter-spacing: .2em; color: var(--muted); font-size: .7rem; }
.house-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 34px; }

/* ---------- constitution: a royal document ---------- */
.doc-band { max-width: 1080px; }
.royal-doc { position: relative; padding: clamp(36px, 6vw, 84px) clamp(22px, 6vw, 88px);
  background: radial-gradient(ellipse at 50% 0%, #2b2016 0%, #1a130d 55%, #120d09 100%);
  border: 1px solid var(--gold-lo); outline: 1px solid rgba(201,162,74,.32); outline-offset: -14px;
  box-shadow: 0 40px 110px rgba(0,0,0,.85), inset 0 0 120px rgba(0,0,0,.55); }
.rd-head { text-align: center; }
.rd-crest { width: clamp(110px, 14vw, 160px); margin: 0 auto 8px; filter: drop-shadow(0 10px 24px rgba(0,0,0,.8)); }
.rd-head h2 { margin: .15em 0 .1em; font-family: var(--ar-title); font-weight: 700; font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.25;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rd-toc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 30px 0 6px; }
.rd-toc a { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 12px 10px; border: 1px solid rgba(201,162,74,.3);
  color: var(--ivory); background: rgba(10,8,6,.4); font-family: var(--ar-title); font-size: 1.12rem; line-height: 1.4; transition: border-color .3s, background .3s; }
.rd-toc a span { font-family: var(--ar); font-size: .8rem; color: var(--gold); }
.rd-toc a small { font-family: var(--ar); font-size: .78rem; color: var(--muted); }
.rd-toc a:hover { border-color: var(--gold); background: rgba(74,11,17,.35); }
.rd-sec { margin-top: clamp(34px, 5vw, 56px); scroll-margin-top: calc(var(--top) + 20px); }
.rd-chap { margin: 0; text-align: center; color: var(--gold); font-size: .95rem; }
.rd-chap span { display: block; font-family: var(--en); font-size: .64rem; letter-spacing: .34em; color: var(--muted); }
.rd-sec h3 { margin: 4px 0 18px; text-align: center; font-family: var(--ar-title); font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--gold-hi); line-height: 1.3; }
.rd-sec h3::after { content: ""; display: block; width: 120px; height: 1px; margin: 10px auto 0; background: linear-gradient(90deg, transparent, var(--gold), transparent); }
.article { padding: 16px 0; border-bottom: 1px solid rgba(201,162,74,.16); }
.art-no { margin: 0; font-size: .85rem; color: var(--gold); }
.article h4 { margin: 0 0 6px; font-family: var(--ar-title); font-size: 1.35rem; color: var(--ivory); }
.article .rich { color: #dccfb2; }
.royal-doc .empty { background: rgba(10,8,6,.35); }
.rd-foot { margin-top: 44px; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--muted); font-size: .9rem; text-align: center; }
.rd-foot p { margin: 0; }

/* ---------- royal archive ---------- */
.archive-band { max-width: 1320px; }
.ms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 22px; }
.ms-card { position: relative; cursor: pointer; padding: 26px 22px 70px; min-height: 270px; color: var(--ivory);
  background: linear-gradient(175deg, #2a2016, #18120d 60%, #120d09); border: 1px solid rgba(201,162,74,.35);
  box-shadow: 0 22px 50px rgba(0,0,0,.55), inset 0 0 40px rgba(0,0,0,.5); transition: transform .4s var(--ease), border-color .4s; outline: none; }
.ms-card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(201,162,74,.14); pointer-events: none; }
.ms-card:hover, .ms-card:focus-visible { transform: translateY(-5px) rotate(-.3deg); border-color: var(--gold); }
.ms-ctype { display: inline-block; font-size: .8rem; color: var(--gold); border-bottom: 1px solid rgba(201,162,74,.4); padding-bottom: 2px; }
.ms-card h3 { margin: 10px 0 4px; font-family: var(--ar-title); font-size: 1.5rem; line-height: 1.35; color: var(--gold-hi); }
.ms-when { margin: 0 0 8px; font-size: .85rem; color: var(--muted); }
.ms-ex { margin: 0; font-size: .96rem; color: #d2c4a4; line-height: 1.7; }
.ms-by { margin: 10px 0 0; font-size: .85rem; color: var(--muted); }
.ms-card .wax { position: absolute; bottom: 14px; inset-inline-end: 16px; width: 54px; height: 54px; }
.docdlg[open] { display: block; width: min(860px, 94vw); animation: cardin .5s var(--ease); }
.docdlg .scroll { max-height: 90vh; overflow-y: auto; padding: clamp(36px, 5vw, 64px) clamp(22px, 5vw, 70px);
  background: radial-gradient(ellipse at 50% 0%, #2a1f15, #18110c 60%, #120d09); border: 1px solid var(--gold-lo);
  outline: 1px solid rgba(201,162,74,.3); outline-offset: -12px; box-shadow: 0 40px 120px rgba(0,0,0,.9); }
.docdlg .card-x { top: 16px; inset-inline-end: 18px; }
.ms { text-align: center; }
.ms-crest { width: 110px; margin: 0 auto 6px; }
.ms-type { margin: 0; color: var(--gold); font-size: .95rem; }
.ms h2 { margin: .1em 0 0; font-family: var(--ar-title); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.8rem); line-height: 1.3;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ms-date { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.ms .rule { margin: 18px auto 22px; }
.ms-body { text-align: start; font-size: 1.12rem; color: #e2d5b9; line-height: 1.95; }
.ms-foot { margin-top: 30px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.ms-sign { margin: 0; font-family: var(--ar-title); font-size: 1.3rem; color: var(--gold-hi); }
.ms-img { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; margin: 0 0 20px; border: 1px solid var(--line); }

/* ---------- news & events ---------- */
.news-page { max-width: 1320px; }
.news-list { margin-bottom: 44px; }
.events { display: grid; gap: 14px; margin-bottom: 44px; }
.event { display: grid; grid-template-columns: 112px 1fr; gap: 20px; padding: 18px; background: linear-gradient(170deg, #1a1310, #0e0a08 70%); border: 1px solid var(--line); }
.ev-date { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 10px 6px; border: 1px solid var(--gold-lo); background: rgba(74,11,17,.35); }
.ev-date b { font-family: var(--ar-title); font-size: 2.4rem; line-height: 1.1; color: var(--gold-hi); }
.ev-date span { font-size: .8rem; color: var(--muted); }
.ev-body h3 { margin: 0; font-family: var(--ar-title); font-size: 1.5rem; color: var(--ivory); line-height: 1.35; }
.ev-meta { margin: 2px 0 8px; display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .88rem; color: var(--gold); }
.ev-meta:empty { display: none; }
.events.past .event { opacity: .7; }

/* ---------- development team ---------- */
.team-band { max-width: 1220px; }
.team-sec { margin-bottom: clamp(40px, 6vw, 70px); }
.ts-head { text-align: center; margin-bottom: 20px; }
.ts-head h2 { margin: 0; font-family: var(--ar-title); font-weight: 700; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.3;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.member { text-align: center; padding: 22px 16px; background: linear-gradient(170deg, #1b1411, #0d0a08 75%); border: 1px solid var(--line); }
.av { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 10px; object-fit: cover; border: 2px solid var(--gold); box-shadow: 0 0 0 5px rgba(201,162,74,.12); }
.av-mono { display: grid; place-items: center; font-family: var(--ar-title); font-size: 2.6rem; color: var(--gold-hi); background: radial-gradient(circle at 40% 30%, #4a1a16, #140d0b); }
.member h3 { margin: 0; font-family: var(--ar-title); font-size: 1.35rem; color: var(--ivory); line-height: 1.35; }
.m-role { margin: 0; color: var(--gold); font-size: .92rem; }
.m-note { margin: 6px 0 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* ---------- kingdom guide ---------- */
.guide-band { max-width: 1100px; }
.guide-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin-bottom: 36px; }
.guide-toc a { color: var(--ivory); border: 1px solid rgba(201,162,74,.35); padding: 4px 14px; font-size: .95rem; background: rgba(14,10,8,.6); transition: border-color .3s, color .3s; }
.guide-toc a:hover { border-color: var(--gold); color: var(--gold-hi); }
.guide-list { display: grid; gap: 22px; }
.guide-sec { position: relative; padding: 28px clamp(20px, 4vw, 44px); padding-inline-start: clamp(84px, 9vw, 112px); scroll-margin-top: calc(var(--top) + 20px);
  background: linear-gradient(170deg, #1a1310, #0e0a08 70%); border: 1px solid var(--line); }
.gs-num { position: absolute; top: 26px; inset-inline-start: clamp(18px, 3vw, 32px); width: 50px; height: 50px; display: grid; place-items: center; isolation: isolate;
  font-family: var(--ar-title); font-size: 1.5rem; color: var(--gold-hi); }
.gs-num::before { content: ""; position: absolute; inset: 6px; z-index: -1; border: 1px solid var(--gold); background: rgba(74,11,17,.45); transform: rotate(45deg); }
.guide-sec h2 { margin: 0 0 10px; font-family: var(--ar-title); font-weight: 700; font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--gold-hi); line-height: 1.3; }
.guide-sec .rich { color: #e0d3b6; font-size: 1.08rem; }
.faq { border-top: 1px solid rgba(58,44,29,.9); }
.faq summary { cursor: pointer; list-style: none; padding: 14px 0; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--ar-title); font-size: 1.22rem; color: var(--ivory); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; color: var(--gold); font-family: var(--en); font-size: 1.4rem; transition: transform .3s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq .rich { padding: 0 0 16px; color: #cdbf9f; }
.guide-cta { margin-top: 30px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.guide-cta > div { padding: 24px; text-align: center; border: 1px solid var(--gold-lo); background: linear-gradient(170deg, #1d1512, #0c0907 75%); }
.guide-cta h3 { margin: 0; font-family: var(--ar-title); font-size: 1.6rem; color: var(--gold-hi); }
.guide-cta p { margin: 4px 0 14px; }

/* ---------- 404 / error ---------- */
.nf { min-height: 82vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: calc(var(--top) + 30px) 18px 60px; }
.nf img { width: 160px; margin-bottom: 10px; filter: drop-shadow(0 10px 30px rgba(0,0,0,.8)); }
.nf h1 { margin: 0; font-family: var(--ar-title); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.8rem); line-height: 1.35;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf p { color: var(--muted); margin: 0 0 16px; }

/* ---------- dialogs ---------- */
dialog { border: 0; padding: 0; background: transparent; color: var(--ivory); max-width: 94vw; }
dialog::backdrop { background: rgba(0,0,0,.78); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.card[open] { display: grid; grid-template-columns: minmax(0, 42%) 1fr; width: min(980px, 94vw); max-height: 90vh;
  background: linear-gradient(160deg, #1c1512, #0c0907 70%); border: 1px solid var(--gold-lo); box-shadow: 0 40px 120px rgba(0,0,0,.9), 0 0 0 1px #000;
  animation: cardin .5s var(--ease); overflow: hidden; }
@keyframes cardin { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.card-art { position: relative; background: #070605; min-height: 340px; }
.card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.card-art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(201,162,74,.45), inset 0 0 60px rgba(0,0,0,.85);
  background: linear-gradient(90deg, rgba(12,9,7,.0) 60%, rgba(12,9,7,.9)); }
.card-body { padding: clamp(22px, 3vw, 40px); overflow-y: auto; }
.card-role { margin: 0; font-family: var(--en); letter-spacing: .3em; font-size: .78rem; color: var(--gold); }
.card-name { margin: .1em 0 0; font-family: var(--ar-title); font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.25; background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card-en { margin: 0; font-family: var(--en); font-size: .86rem; letter-spacing: .12em; color: var(--muted); }
.card-body .rule { margin: 14px 0 16px; width: 100%; }
.card-sum { font-size: 1.2rem; margin: 0 0 10px; }
.card-facts { margin: 0 0 16px; padding: 0; list-style: none; }
.card-facts li { position: relative; padding-inline-start: 22px; margin: 6px 0; color: #d5c7a7; }
.card-facts li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .8em; width: 7px; height: 7px; transform: rotate(45deg); background: var(--gold); }
.card-status { margin: 0; color: var(--ivory); font-size: .95rem; }
.card-x { position: absolute; top: 10px; inset-inline-end: 12px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(201,162,74,.6);
  background: rgba(10,8,7,.8); color: var(--gold-hi); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.filmdlg[open] { width: min(1280px, 94vw); background: #000; border: 1px solid var(--gold-lo); box-shadow: 0 40px 120px rgba(0,0,0,.9); }
.filmdlg video { display: block; width: 100%; height: auto; max-height: 86vh; background: #000; }

.toast { position: fixed; bottom: 90px; left: 50%; transform: translate(-50%, 20px); z-index: 80; background: rgba(12,9,8,.95); border: 1px solid var(--gold-lo);
  padding: 12px 22px; opacity: 0; pointer-events: none; transition: opacity .4s, transform .4s var(--ease); max-width: 90vw; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- footer ---------- */
.footer { text-align: center; padding: 56px 18px 90px; border-top: 1px solid var(--line); background: linear-gradient(180deg, #0b0908, #060504); }
.footer img { width: 54px; margin: 0 auto 10px; opacity: .9; }
.f-name { margin: 0; font-family: var(--ar-title); font-size: 1.4rem; color: var(--gold-hi); }
.f-tag { margin: 0; color: var(--muted); font-size: .95rem; }
.f-legal { margin: 14px auto 0; max-width: 680px; color: var(--dim); font-size: .82rem; }
.f-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin: 16px 0 0; }
.f-links a { color: var(--ivory); opacity: .8; font-size: .95rem; }
.f-links a:hover { color: var(--gold-hi); opacity: 1; }
.f-admin { display: inline-block; margin-top: 12px; font-size: .78rem; color: var(--dim); }
.f-admin:hover { color: var(--gold); }

/* ---------- responsive ---------- */
@media (max-height: 940px) and (min-width: 761px) {
  .scroll-cue { display: none; }
  .crown { width: min(24vw, 270px); }
  .wm-ar { width: min(46vw, 560px); }
}
@media (max-width: 1640px) { .topbar .discord-link { display: none; } }
@media (max-width: 1460px) { .brand-en { display: none; } .nav { gap: 14px; } .nav a { font-size: .92rem; } }
@media (max-width: 1240px) {
  .nav { position: fixed; inset: var(--top) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; background: rgba(10,8,7,.97);
    border-bottom: 1px solid var(--line); padding: 8px 20px 16px; transform: translateY(-110%); transition: transform .45s var(--ease); z-index: -1;
    max-height: calc(100vh - var(--top)); overflow-y: auto; }
  .nav.open { transform: none; }
  .nav a { padding: 11px 0; border-bottom: 1px solid rgba(58,44,29,.6); font-size: 1.05rem; }
  .nav a.active::after { display: none; }
  .nav-toggle { display: block; }
}
@media (max-width: 1100px) {
  .news { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .world { grid-template-columns: 1fr; }
  .map-wrap { position: relative; top: 0; width: min(100%, 620px); margin: 0 auto; }
  .house-grid { grid-template-columns: 1fr; }
  .house-roles { max-width: 560px; width: 100%; margin-inline: auto; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  :root { --top: 62px; }
  .brand-en { display: none; }
  .crown { width: min(46vw, 210px); }
  .wm-ar { width: 80vw; } .wm-en { width: 74vw; }
  /* the hero grows with its content on phones, so nothing is ever cut off on short screens */
  .hero { height: auto; min-height: 100vh; min-height: 100svh; }
  .hero-inner { position: relative; inset: auto; min-height: 100vh; min-height: 100svh; padding: calc(var(--top) + 18px) 16px 92px; }
  .scroll-cue { display: none; }
  .tagline { margin-top: 1.2vh; }
  .hero-cta { margin-top: 2.6vh; gap: 10px; }
  .hero-cta .btn { padding: 10px 20px 9px; }
  .hero-cta { flex-direction: column; width: min(86vw, 340px); }
  .hero-cta .btn { width: 100%; }
  .status-cards, .news, .court { grid-template-columns: 1fr; }
  .news-card:first-child { grid-column: auto; grid-row: auto; }
  .status-card { grid-template-columns: 38% 1fr; }
  .card[open] { grid-template-columns: 1fr; }
  .card-art { min-height: 280px; }
  .stage-box { width: 100vw; }
  .throne-stage { display: flex; flex-direction: column; }
  .label .role { font-size: .5rem; letter-spacing: .14em; }
  .label .name { font-size: .8rem; }
  .label.below::before, .label.above::after { height: 8px; }
  .stage-title { order: -1; position: relative; top: auto; left: auto; transform: none; padding: 12px 0 8px; }
  .stage-title img { width: 58vw; margin: 0 auto; }
  .label .en { display: none; }
  .music-txt small { display: none; }
  /* compact round music button on phones */
  .music-btn { padding: 0; width: 48px; height: 48px; justify-content: center; border-radius: 50%; }
  .music-txt { display: none; }
  .map:not(.zoomed) .place text, .map:not(.zoomed) .rl-en, .map .sea-names .en { display: none; }
  .rp-list { grid-template-columns: 1fr; }
  .castles li { grid-template-columns: 96px 1fr; }
  .castles img { width: 96px; height: 64px; }
  .facts { grid-template-columns: 1fr; }
  .rd-toc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-cta { grid-template-columns: 1fr; }
  .guide-sec { padding-inline-start: 20px; padding-top: 84px; }
  .event { grid-template-columns: 84px 1fr; gap: 14px; }
  .hh-banner { width: 64px; }
  .hh-inner { padding-bottom: 150px; }
  .rp-nav .btn { flex: 1 1 40%; }
}
/* ?static : final frame of every intro animation (used for still previews) */
.static .crown .sword, .static .crown .gem, .static .crown .c-band, .static .wm-ar, .static .wm-en, .static .tagline, .static .hero-cta,
.static .scroll-cue, .static .stage-title img, .static .stage-title p, .static .fade-in { opacity: 1 !important; transform: none !important; clip-path: none !important; animation: none !important; filter: none !important; }
.static .label { opacity: 1 !important; }
.static .veil { display: none !important; }
.static .ph-inner h1, .static .ph-inner .kicker, .static .ph-inner .rule, .static .ph-sub, .static .hh-sigil, .static .hh-inner .kicker,
.static .hh-inner h1, .static .hh-words, .static .hh-words-en { animation: none !important; opacity: 1 !important; transform: none !important; }
.shot .hero { height: 900px !important; min-height: 0 !important; }
.shot .stage-box { width: 100vw !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .crown .sword, .crown .gem, .crown .c-band, .wm-ar, .wm-en, .tagline, .hero-cta, .scroll-cue { opacity: 1 !important; transform: none !important; clip-path: none !important; }
}
